2004-12-07 Randolph Chung <tausq@debian.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-12-07 Randolph Chung <tausq@debian.org>
2
3 * frame.c (get_prev_frame): Don't terminate unwinding at main if we
4 are unwinding through a dummy frame.
5
6 2004-12-07 Randolph Chung <tausq@debian.org>
7
8 * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
9 * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
10 (hppa_hpux_init_abi) Set unwind_adjust_stub method.
11 * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
12 if defined.
13
14 2004-12-07 Randolph Chung <tausq@debian.org>
15
16 * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
17 unwinding from a frame with pc == 0.
18 (hppa_stub_frame_this_id): Likewise.
19 (hppa_stub_frame_prev_register): Only provide real values if the frame
20 cache is not NULL.
21
22 2004-12-07 Randolph Chung <tausq@debian.org>
23
24 * solib-som.c: New file.
25 * solib-som.h: New file.
26 * solib-pa64.c: New file.
27 * solib-pa64.h: New file.
28
29 2004-12-07 Mark Kettenis <kettenis@gnu.org>
30
31 * Makefile.in (inf-ttrace.o): Fix typo.
32
33 2004-12-07 Jim Blandy <jimb@redhat.com>
34
35 * remote.c (remote_threads_info, remote_current_thread): Use
36 strtoul to parse thread ID numbers.
37
38 2004-12-07 Mark Kettenis <kettenis@gnu.org>
39
40 * inf-ttrace.c: Include "gdbthread.h".
41 (inf_ttrace_num_lwps): New variable.
42 (inf_ttrace_num_lwps_in_syscall): Renamed from
43 inf_ttrace_num_threads_in_syscall.
44 (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
45 TTEVT_LWP_TERMINATE events.
46 (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
47 zero.
48 (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
49 (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
50 Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
51 events.
52 (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
53 default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
54 TTEVT_LWP_TERMINATE events.
55 (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
56 (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
57 * Makefile.in (inf-ttrace.o): Update dependencies.
58
59 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
60 prototypes.
61 * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
62 Make global. Remove HP-UX specific code. Use
63 frame_unwind_register_unsigned instead of
64 frame_unwind_register_signed.
65 (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
66 Remove HP-UX specific code.
67 (hppa_unwind_pc): Make global. Remove HP-UX specific code.
68 (hppa_frame_prev_register_helper): Set "flags" register to zero
69 for all unwound frames.
70 (hppa_gdbarch_init): Adjust.
71 * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
72 (hppa_hpux_read_pc, hppa_hpux_write_pc)
73 (hppa_hpux_unwind_pc): New functions.
74 (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
75
76 2004-12-07 Andreas Schwab <schwab@suse.de>
77
78 * main.c (long_options): Add entry for "-l".
79 (print_gdb_help): Add line for -l option.
80 * NEWS: Mention it.
81
82 2004-12-05 Randolph Chung <tausq@debian.org>
83
84 * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
85 DEPRECATED_REGISTER_BYTE.
86
87 2004-12-05 Randolph Chung <tausq@debian.org>
88
89 * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
90 records.
91
92 2004-12-05 Mark Kettenis <kettenis@gnu.org>
93
94 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
95 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
96
97 * hppa-hpux-tdep.c: Update copyright notice and year.
98
99 2004-12-05 Richard Earnshaw <rearnsha@arm.com>
100
101 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
102 (get_field, put_field): Assert that the format is one we can handle.
103 Simplify logic accordingly.
104 (floatformat_normalize_byteorder): New function.
105 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
106 to normalize and select modified byte order. Pass modified byte order
107 to get_field.
108 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
109 Likewise.
110 (convert_doublest_to_floatformat): Select an appropriate intermediate
111 byte order if necessary. Always convert to the final format before
112 returning.
113
114 2004-12-04 Daniel Jacobowitz <dan@debian.org>
115
116 PR tui/1703
117 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
118 Suggested by Joshua Neuheisel.
119
120 2004-12-03 Randolph Chung <tausq@debian.org>
121
122 * gdbarch.sh (instruction_nullified): Delete.
123 * gdbarch.c: Regenerate.
124 * gdbarch.h: Regenerate.
125 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
126 nullified.
127 (hppa_unwind_pc): Likewise.
128 (hppa_instruction_nullified): Delete.
129 (hppa_gdbarch_init): Don't set instruction_nullified method.
130 * infrun.c (infwait_states): Remove infwait_nullified_state.
131 (handle_inferior_event): Remove handling of infwait_nullified_state.
132 Remove handling of nullified instructions.
133
134 2004-12-03 Mark Kettenis <kettenis@gnu.org>
135
136 * inf-ttrace.c: Include <sys/mman.h>.
137 (struct inf_ttrace_page): New.
138 (struct inf_ttrace_page_dict): New.
139 (inf_ttrace_num_threads_in_syscall)
140 (inf_ttrace_reenable_page_protections): New variables.
141 (inf_ttrace_enable_syscall_events)
142 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
143 (inf_ttrace_add_page, inf_ttrace_insert_page)
144 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
145 (inf_ttrace_enable_page_protections)
146 (inf_ttrace_disable_page_protections)
147 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
148 (inf_ttrace_can_use_hw_breakpoint)
149 (inf_ttrace_region_size_ok_for_hw_watchpoint)
150 (inf_ttrace_stopped_by_watchpoint): New functions.
151 (inf_ttrace_him): Remove unsused varaible `tts'.
152 (inf_ttrace_create_inferior): Add assertionts.
153 (inf_ttrace_mourn_inferior): Clear page dictionary.
154 (inf_ttrace_attach): Set initial event mask.
155 (inf_ttrace_detach): Reset number of threads in system call.
156 (inf_ttrace_wait): Deal with system call events.
157 (inf_ttrace_target): Initialize "hardware" watchpoint-related
158 parts of the target vector.
159 (_initialize_inf_ttrace): New prototype and function.
160
161 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
162 type of `gp' variable.
163
164 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
165
166 * README: Remove config.if from directory listing.
167
168 2004-12-01 Joel Brobecker <brobecker@gnat.com>
169
170 * alpha-tdep.c (alpha_register_name): Add comment.
171 (alpha_cannot_fetch_register): Exclude registers numbers which
172 are no longer used from the list of registers that can be fetched.
173 (alpha_cannot_store_register): Exclude registers numbers which
174 are no longer used from the list of registers that can be stored.
175 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
176 core_reg_mapping array.
177
178 2004-12-01 Joel Brobecker <brobecker@gnat.com>
179
180 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
181 the register value from the correct frame.
182
183 2004-11-30 Randolph Chung <tausq@debian.org>
184
185 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
186 (hppa_linux_in_dyncall): Check that we are inside the range of
187 $$dyncall, not necessarily at the first insn.
188 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
189 even if the pc does not point to the first insn of the trampoline.
190
191 2004-11-30 Randolph Chung <tausq@debian.org>
192
193 * breakpoint.c (break_at_finish_command): Delete.
194 (break_at_finish_command_1): Delete.
195 (break_at_finish_at_depth_command): Delete.
196 (break_at_finish_at_depth_command_1): Delete.
197 (tbreak_at_finish_command): Delete.
198 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
199 and bx commands.
200
201 2004-11-30 Andrew Cagney <cagney@gnu.org>
202
203 * config/nm-gnu.h: Delete file.
204 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
205
206 * config/nm-sysv4.h: Delete file.
207 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
208 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
209 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
210 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
211 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
212
213 2004-11-29 Andrew Cagney <cagney@gnu.org>
214
215 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
216 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
217 as can-commit architecture developers.
218
219 2004-11-29 Mark Kettenis <kettenis@gnu.org>
220
221 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
222 (sparc32_skip_prologue): Skip instructions that store arguments in
223 registers into their corresponding stack slots.
224
225 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
226 tm-solib.h.
227 * config/m68k/obsd.mh (NAT_FILE): Likewise.
228
229 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
230 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
231 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
232 sparc32nbsd_elf_init_abi. Remove duplicate code.
233
234 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
235 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
236 * config/sparc/nm-nbsd.h: Remove file.
237 * config/sparc/nm-nbsdaout.h: Remove file.
238
239 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
240 (sparc_xfer_partial): New function.
241 (sparc_target): Save value of to_xfer_partial from ptrace vector.
242 Set to_xfer_partial.
243
244 * fork-child.c (fork_inferior): Fork instead of vfork if
245 PRE_TRACE_FUN is non-null.
246
247 2004-11-24 Fred Fish <fnf@specifixinc.com>
248
249 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
250 compiler generated function calls made as part of a prologue.
251
252 2004-11-23 Mark Kettenis <kettenis@gnu.org>
253
254 * inf-ttrace.c: New file.
255 * inf-ttrace.h: New file.
256 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
257 Include "inf-ttrace.h".
258 (ss_mpsfu_high): Define to ss_tlsp if necessary.
259 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
260 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
261 ptrace systems.
262 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
263 instead of inf_ptrace_target.
264 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
265 * Makefile.in (inf_ttrace_h): New variable.
266 (hppa-hpux-nat.o): Update dependency.
267 (inf-ttrace.o): New dependency.
268 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
269
270 2004-11-23 Randolph Chung <tausq@debian.org>
271
272 * arch-utils.c (generic_instruction_nullified): New.
273 * arch-utils.h (generic_instruction_nullified): New.
274 * gdbarch.sh (instruction_nullified): New method.
275 * gdbarch.c: Regenerate.
276 * gdbarch.h: Regenerate.
277 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
278 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
279 new gdbarch method.
280 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
281 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
282 static. Rewrite to work directly off the passed regcache.
283 (hppa_gdbarch_init): Set instruction_nullified method.
284
285 2004-11-23 Joel Brobecker <brobecker@gnat.com>
286
287 * sparc-tdep.c (sparc_is_unimp_insn): New function.
288 (sparc32_frame_cache): For functions where there is no debugging
289 information to help us determine whether it's a struct-return
290 function or not, fallback on checking whether the instruction
291 at the return address is an "unimp" instruction or not.
292
293 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
294
295 * MAINTAINERS: Add myself to write after approval section.
296
297 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
298 hpux-thread.c to suppress children from running.
299 (hppa_hpux_child_can_run): New function.
300 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
301 * hpux-thread.c: Include string.h and hppa-tdep.h.
302 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
303 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
304 (hpux_thread_store_registers): Replace deprecated_registers with
305 calls to regcache_raw_read.
306 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
307
308 2004-11-21 Mark Kettenis <kettenis@gnu.org>
309
310 * sparc64fbsd-nat.c: Update copyright year.
311 (_initialize_sparc64fbsd_nat): Construct and add target vector.
312 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
313 inftarg.o.
314
315 2004-11-21 Daniel Jacobowitz <dan@debian.org>
316
317 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
318
319 2004-11-21 Daniel Jacobowitz <dan@debian.org>
320
321 * linux-nat.c (my_waitpid): New function.
322 (linux_test_for_tracefork): Make more robust and verbose. Take
323 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
324 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
325 argument. Update calls to linux_test_for_tracefork.
326 (linux_enable_event_reporting, child_follow_fork)
327 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
328 (child_insert_exec_catchpoint): Update calls to
329 linux_supports_tracefork and linux_supports_tracevforkdone.
330
331 2004-11-21 Daniel Jacobowitz <dan@debian.org>
332
333 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
334 (value_subscripted_rvalue): Likewise.
335 * valops.c (search_struct_field, value_slice): Likewise.
336
337 2004-11-21 Mark Kettenis <kettenis@gnu.org>
338
339 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
340 Reorder includes a bit. Fix comment.
341 * Makefile.in (inf-ptrace.o): Update dependencies.
342
343 2004-11-21 Andreas Schwab <schwab@suse.de>
344
345 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
346 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
347 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
348 to glibc_skip_solib_resolver.
349 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
350 solib-legacy.o.
351 * Makefile.in (m68klinux-tdep.o): Update dependencies.
352
353 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
354
355 * infttrace.h (ttrace_write_reg_64): Add prototype.
356 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
357 expression.
358 (store_inferior_registers): Correct formatting. Replace uses of
359 deprecated_registers with calls to regcache_raw_read,
360 regcache_raw_write_part and regcache_raw_read_part.
361
362 2004-11-21 Mark Kettenis <kettenis@gnu.org>
363
364 * config/pa/hppahpux.mh: Remove file.
365 * config/pa/hpux1020.mh: Remove file.
366
367 2004-11-20 Andreas Schwab <schwab@suse.de>
368
369 * configure.host: Set host floatformat for m68k.
370
371 2004-11-20 Eli Zaretskii <eliz@gnu.org>
372
373 * config/djgpp/fnchange.lst: Resolve file-name clash between
374 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
375
376 2004-11-20 Mark Kettenis <kettenis@gnu.org>
377
378 * hppa-hpux-nat.c: New file.
379 * config/pa/hpux.mh (NATDEPFILES): New file.
380 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
381 (hppa-hpux-nat.o): New dependency.
382 * configure.host: Remove hppa*-*-hpux10.20.
383 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
384
385 * inf-ptrace.c: Fix coding style.
386
387 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
388 * infptrace.c (call_ptrace): Simply call ptrace with four
389 arguments.
390
391 * dbxread.c (process_one_symbol): Fix a few coding standard
392 issues. Improve code formatting.
393
394 * dbxread.c: Include "gdb_string.h".
395 (record_minimal_symbol, read_ofile_symtab): Replace
396 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
397 * Makefile.in (dbxread.o): Update dependencies.
398
399 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
400 of bytes read for aligned LEB128 encodings.
401
402 2004-11-19 Mark Kettenis <kettenis@gnu.org>
403
404 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
405 parse_and_eval_address to u_long before converting it to a pointer
406 type.
407 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
408 ps_strings from int to u_long.
409 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
410 u_long instead of CORE_ADDR.
411
412 2004-11-18 Mark Kettenis <kettenis@gnu.org>
413
414 * dbxread.c (process_one_symbol): Do not adjust address of first
415 N_SLINE stab for a function for code generated by non-GCC
416 compilers.
417
418 2004-11-18 Kevin Buettner <kevinb@redhat.com>
419
420 * solib-null.c: New file.
421
422 2004-11-17 Andrew Cagney <cagney@gnu.org>
423
424 * MAINTAINERS: Drop MIPS and remote.
425
426 2004-11-15 Andrew Cagney <cagney@gnu.org>
427
428 * findvar.c (value_of_register): Set the frame ID.
429 * value.c (value_primitive_field): Copy the frame ID.
430 * valops.c (value_assign): Simplify lval_register case, there's
431 always a frame.
432
433 2004-11-14 Daniel Jacobowitz <dan@debian.org>
434
435 * Makefile.in (mips-linux-tdep.o): Update dependencies.
436 * mips-linux-tdep.c: Include "regcache.h".
437 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
438
439 2004-11-14 Daniel Jacobowitz <dan@debian.org>
440
441 * Makefile.in (linux-thread-db.o): Fix typo in last change.
442
443 2004-11-14 Daniel Jacobowitz <dan@debian.org>
444
445 * linux-thread-db.c: New file, renamed from thread-db.c.
446 * thread-db.c: Remove.
447 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
448 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
449 to linux-thread-db.o.
450 * config/arm/linux.mh (NATDEPFILES): Likewise.
451 * config/i386/linux.mh (NATDEPFILES): Likewise.
452 * config/i386/linux64.mh (NATDEPFILES): Likewise.
453 * config/ia64/linux.mh (NATDEPFILES): Likewise.
454 * config/m32r/linux.mh (NATDEPFILES): Likewise.
455 * config/m68k/linux.mh (NATDEPFILES): Likewise.
456 * config/mips/linux.mh (NATDEPFILES): Likewise.
457 * config/pa/linux.mh (NATDEPFILES): Likewise.
458 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
459 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
460 * config/s390/s390.mh (NATDEPFILES): Likewise.
461 * config/sparc/linux.mh (NATDEPFILES): Likewise.
462 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
463
464 2004-11-13 Andrew Cagney <cagney@gnu.org>
465
466 * config/i386/i386lynx.mh: Delete file.
467 * config/i386/i386lynx.mt: Delete file.
468 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
469 * i386ly-tdep.c: Delete.
470
471 * config/tm-lynx.h: Delete, inline contents ...
472 * config/rs6000/tm-rs6000ly.h: ... here.
473
474 * config/tm-sysv4.h: Delete file, inlining contents.
475 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
476 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
477 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
478
479 * regcache.h (deprecated_register_valid): Delete.
480 (deprecated_registers): Delete.
481 * regcache.c (deprecated_register_valid): Delete.
482 (deprecated_registers): Delete.
483 (deprecated_read_register_byte, _initialize_regcache)
484 (deprecated_write_register_bytes, build_regcache): Update.
485 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
486 remote-sds.o.
487 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
488 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
489
490 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
491 v850-*-* under removed.
492 * configure.host: Delete ns32k-*-netbsd*.
493 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
494 ns32k-*-netbsd*, and v850*-*-*.
495 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
496 "Deleted"
497 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
498 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
499 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
500 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
501 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
502 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
503 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
504 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
505 * v850-tdep.c: Delete.
506
507 2004-11-13 Joel Brobecker <brobecker@gnat.com>
508
509 * irix5-nat.c (fetch_core_registers): Replace use of
510 deprecated_registers by equivalent code.
511
512 2004-11-13 Joel Brobecker <brobecker@gnat.com>
513
514 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
515 with equivalent code.
516 (fill_fpregset): Likewise.
517
518 2004-11-13 Andrew Cagney <cagney@gnu.org>
519
520 * MAINTAINERS: Do not list "Deleted" architectures.
521
522 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
523 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
524 sparc-*-vxworks*.
525 * NEWS: Mention that vxworks was deleted.
526 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
527 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
528 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
529 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
530 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
531 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
532 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
533 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
534 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
535 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
536 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
537 * remote-vxmips.c, remote-vx.c: Delete.
538 * remote-vx68.c: Delete.
539 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
540 * config/m68k/os68k.mt, ada-lang.h: Ditto.
541 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
542 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
543
544 2004-11-13 Eli Zaretskii <eliz@gnu.org>
545
546 * config/i386/xm-go32.h: Don't include fopen-bin.h.
547 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
548
549 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
550 branch that doesn't define CRLF_SOURCE_FILES; always use
551 binary-mode open.
552 (print_source_lines_base, forward_search_command)
553 (reverse_search_command): Enable the code that accepts DOS-style
554 CRLF line endings on all platforms (this removes the need for
555 CRLF_SOURCE_FILES).
556
557 * defs.h: Fix wording of the comment before FOPEN_RB.
558 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
559
560 * config/djgpp/fnchange.lst: Group renames for opcode directory
561 together.
562
563 * config/djgpp/djconfig.sh: Replace file names that don't exist
564 anymore with existing files, for checking the unpacked
565 distribution.
566
567 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
568 Export pre-cooked values in configure-* targets that begin with
569 "@test -f stage_last".
570
571 2004-11-12 Andrew Cagney <cagney@gnu.org>
572
573 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
574 * value.h (struct value): Update comment.
575 * valops.c (value_assign): Fold lval_reg_fame_relative into
576 lval_register.
577 * findvar.c (value_from_register, locate_var_value): Ditto.
578
579 2004-11-12 Randolph Chung <tausq@debian.org>
580
581 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
582 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
583 (write_exp_msymbol): Remove conditional check for symbols starting
584 with $. Update comments.
585
586 2004-11-12 Randolph Chung <tausq@debian.org>
587
588 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
589 so_lib_thread_start_addr.
590 * pa64solib.h (so_list): Forward declare.
591 (pa64_solib_thread_start_addr): Prototype.
592 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
593 (no_shared_libraries): Remove.
594 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
595 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
596 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
597 the elf solib handler to find the start address.
598
599 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
600 files to the target makefile.
601 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
602 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
603 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
604
605 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
606 files for symbol reading and shared library handling here.
607 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
608 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
609 without bringing in 64-bit support.
610
611 2004-11-12 Andrew Cagney <cagney@gnu.org>
612
613 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
614 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
615 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
616 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
617 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
618 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
619 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
620
621 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
622 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
623 (VALUE_REGNUM): Define.
624 (struct value): Delete location.regnum, rename "regno" to
625 "regnum".
626 * value.c, valops.c, valarith.c, findvar.c: Update.
627
628 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
629 (VALUE_BITPOS): Delete.
630 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
631 * value.c (value_type, value_offset, value_bitpos)
632 (value_bitsize): New functions. Update references.
633 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
634 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
635 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
636 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
637 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
638 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
639 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
640 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
641 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
642
643 2004-11-12 Andrew Cagney <cagney@gnu.org>
644
645 * cris-tdep.c (cris_register_offset): Delete, never called.
646 (cris_spec_reg_applicable): Delete cris_ver_sim.
647 * MAINTAINERS: List d10v as OBSOLETE.
648 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
649 FOPEN_WB et.al., defined by "fopen-bin.h".
650
651 2004-11-12 Randolph Chung <tausq@debian.org>
652
653 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
654 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
655 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
656 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
657
658 2004-11-12 Mark Kettenis <kettenis@jive.nl>
659
660 * tui/tui-io.c: Don't include "terminal.h".
661 * Makefile.in (tui-io.o): Update dependencies.
662
663 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
664
665 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
666 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
667 set_gdbarch_regset_from_core_section for core file support.
668 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
669 New functions.
670
671 2004-11-11 Randolph Chung <tausq@debian.org>
672
673 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
674 stop_after_branch parameter and use it to determine if we should look
675 at the delay slot of the first branch insn to find prologue insns.
676 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
677 (hppa_frame_cache): Likewise.
678
679 2004-11-11 Randolph Chung <tausq@debian.org>
680
681 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
682 register so that it can be unwound from anywhere in the prologue.
683
684 2004-11-10 msnyder <msnyder@redhat.com>
685
686 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
687 must invalidate lr_reg (so we don't try to save it again).
688 Ditto for cr_offset and cr_reg.
689
690 2004-11-05 Jon Beniston <jon@beniston.com>
691
692 Committed by Andrew Cagney.
693 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
694 when an unexpected packet is received, as the target stubs
695 continually retransmit the same packet until ACKed.
696
697 2004-11-10 Randolph Chung <tausq@debian.org>
698
699 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
700 frame's type.
701
702 2004-11-10 Randolph Chung <tausq@debian.org>
703
704 * blockframe.c (inside_entry_func): Move to .....
705 * frame.c (inside_entry_func): ... here, and make static.
706 (backtrace_past_entry): New flag.
707 (get_prev_frame): Stop backtrace at the entry function if enabled
708 by flag. Update comments.
709 (_initialize_frame): Add command to set backtrace_past_entry flag.
710 * defs.h (inside_entry_func): Remove prototype.
711
712 2004-11-10 Mark Kettenis <kettenis@gnu.org>
713
714 * dwarf2read.c: Fix formatting.
715
716 2004-11-10 Andrew Cagney <cagney@gnu.org>
717
718 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
719 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
720 macros with function declarations.
721 * value.c (coerce_ref, coerce_array, coerce_number)
722 (coerce_enum): New functions.
723 (value_as_long, value_as_address): Update.
724 * ada-lang.c (ada_coerce_ref, ada_value_binop)
725 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
726 * jv-lang.c (evaluate_subexp_java): Update.
727 * valarith.c (value_less, value_neg, value_complement)
728 (value_binop, value_add, value_subscript, value_x_binop)
729 (value_logical_not, value_sub): Update.
730 * valops.c (check_field, value_struct_elt, value_ind)
731 (value_find_oload_method_list, value_cast, value_assign): Update.
732 * eval.c (evaluate_subexp_standard): Update.
733
734 2004-11-10 Mark Kettenis <kettenis@gnu.org>
735
736 * mips-tdep.c (mips32_relative_offset): Change return type to
737 LONGEST, change argument type to ULONGEST. Fix sign-extension.
738
739 2004-11-10 Randolph Chung <tausq@debian.org>
740
741 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
742 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
743 (hppa_fetch_pointer_argument): Likewise.
744 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
745 deprecated_read_memory_nobpt.
746 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
747 add_set_cmd sequence with add_setshow_boolean_cmd.
748
749 2004-11-09 Andrew Cagney <cagney@gnu.org>
750
751 GDB 6.3 released from GDB 6.3 branch.
752
753 2004-11-09 Andrew Cagney <cagney@gnu.org>
754
755 * values.c: Rename to ...
756 * value.c: ..., new file.
757 * Makefile.in: Update.
758
759 2004-11-09 Daniel Jacobowitz <dan@debian.org>
760
761 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
762 size.
763
764 2004-11-09 Andrew Cagney <cagney@gnu.org>
765
766 * TODO: Delete.
767
768 * value.h (struct value): Delete field bfd_section.
769 (VALUE_BFD_SECTION): Delete macro.
770 (COERCE_REF): Update.
771 (value_at, value_at_lazy): Delete asection parameter.
772 * printcmd.c (print_formatted, x_command): Update.
773 (do_examine): Delete asection parameter.
774 (next_section): Delete variable.
775 * valops.c (value_cast, value_at, value_at_lazy)
776 (value_coerce_function, value_addr, value_ind, value_string)
777 (find_rt_vbase_offset, value_full_object): Update.
778 * hpacc-abi.c (hpacc_virtual_fn_field)
779 (hpacc_value_rtti_type): Update.
780 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
781 (gnuv3_baseclass_offset): Update.
782 * f-valprint.c (f_val_print): Update.
783 * c-valprint.c (c_val_print): Update.
784 * p-valprint.c (pascal_val_print): Update.
785 * jv-valprint.c (java_value_print): Update.
786 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
787 * ada-lang.c (ada_value_primitive_packed_val)
788 (ada_evaluate_subexp): Update.
789 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
790 * expprint.c (print_subexp_standard): Update.
791 * infcall.c (call_function_by_hand): Update.
792 * valarith.c (value_add): Update.
793 * eval.c (evaluate_subexp_standard): Update.
794 * values.c (allocate_value, value_copy, value_static_field): Update.
795 * findvar.c (read_var_value, locate_var_value): Update.
796
797 2004-11-09 Andrew Cagney <cagney@gnu.org>
798
799 * i386-linux-tdep.c: Include "dwarf2-frame.h".
800 * Makefile.in: Update all dependencies.
801
802 2004-11-08 Andrew Cagney <cagney@gnu.org>
803
804 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
805 (sentinel_frame_unwinder): Add the prev_pc method.
806 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
807 available. Do not handle the sentinel-frame case.
808 * frame-unwind.h (frame_prev_register_ftype): Define.
809 (struct frame_unwind): Add prev_pc;
810
811 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
812
813 * configure.in: Check for ncurses/term.h.
814 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
815 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
816 * tui/tui.c: Don't include term.h.
817 * configure, config.in: Rebuilt.
818
819 2004-11-08 Mark Kettenis <kettenis@gnu.org>
820
821 * m68kbsd-nat.c: Include "inf-ptrace.h".
822 (_initialize_m68kbsd_nat): Fix pasto.
823 * Makefile.in (m68kbsd-nat.o): Update dependencies.
824
825 2004-11-08 Randolph Chung <tausq@debian.org>
826
827 * infrun.c (debug_infrun): New variable.
828 (resume, proceed, wait_for_inferior): Annotate with debug messages.
829 (handle_inferior_event, keep_going): Likewise.
830 (_initialize_infrun): Register "set debug infrun" command.
831
832 2004-11-08 Andreas Schwab <schwab@suse.de>
833
834 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
835 PTRACE_EVENT_VFORKDONE.
836 (child_follow_fork): Adjust.
837
838 2004-11-08 Andrew Cagney <cagney@gnu.org>
839
840 * README: Refer to 6.3, not 6.2, update directory listing droppng
841 references to intl/ and mmalloc/.
842 * PROBLEMS: Refer to 6.3 not 6.2.
843
844 * PROBLEMS: Delete no-longer applicable problems.
845
846 2004-11-07 Andrew Cagney <cagney@redhat.com>
847 Daniel Jacobowitz <dan@debian.org>
848 Roland McGrath <roland@redhat.com>
849
850 * Makefile.in (symfile-mem.o): Update dependencies.
851 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
852 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
853 * inf-ptrace.c (inf_ptrace_attach): Call
854 observer_notify_inferior_created.
855 * inftarg.c (child_attach): Likewise.
856 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
857 (symbol_file_add_from_memory): Take NAME argument. Use it for
858 the new BFD's filename.
859 (add_symbol_file_from_memory_command): Update call to
860 symbol_file_add_from_memory.
861 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
862 (symbol_file_add_from_memory_wrapper): New.
863 (_initialize_symfile_mem): Register add_vsyscall_page as an
864 inferior_created observer.
865
866 2004-11-07 Mark Kettenis <kettenis@gnu.org>
867
868 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
869 fetch_inferior_registers. Make static.
870 (m68kbsd_store_inferior_registers): Rename from
871 store_inferior_registers. Make static.
872 (_initialize_m68kbsd_nat): Construct and add target vector.
873 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
874 inftarg.o. Add inf-ptrace.o.
875 (NAT_FILE): Set to tm-solib.h.
876 (LOADLIBES): New variable.
877 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
878 inftarg.o. Add inf-ptrace.o.
879 (NAT_FILE): Delete variable.
880 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
881 inftarg.o. Add inf-ptrace.o.
882 (NAT_FILE): Set to tm-solib.h.
883 * config/m68k/nm-nbsdaout.h: Remove file.
884
885 2004-11-07 Daniel Jacobowitz <dan@debian.org>
886
887 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
888 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
889 (dwarf2_signal_frame_unwind): New.
890 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
891 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
892
893 2004-11-07 Mark Kettenis <kettenis@gnu.org>
894
895 * Makefile.in (mips64obsd-tdep.o): Fix typo.
896
897 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
898 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
899 to only include the structure members we actually need.
900 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
901 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
902 only include the structure members we actually need.
903 (mipsnbsd_init_abi): Update.
904
905 * mips64obsd-nat.c: Include "mips-tdep.h".
906 (MIPS64OBSD_NUM_REGS): Remove define.
907 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
908 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
909 floating-point registers correctly.
910 * Makefile.in (mips64obsd-nat.o): Update dependencies.
911
912 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
913 "gdb_assert.h".
914 (mips64obsd_sigframe_init): New function.
915 (mips64obsd_sigframe): New variable.
916 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
917 unwinder.
918 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
919
920 2004-11-06 Joel Brobecker <brobecker@gnat.com>
921
922 * alpha-mdebug-tdep.c: #include mdebugread.h.
923 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
924 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
925
926 2004-11-05 Andrew Cagney <cagney@gnu.org>
927
928 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
929 CFI and the init_reg method leave the register unspecified.
930 Include the register name in the "Incomplete CFI data" complaint.
931 Supress leading zeros in the address.
932
933 2004-11-05 Mark Kettenis <kettenis@gnu.org>
934
935 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
936 skipping a personality routine in a CIE augmentation.
937
938 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
939
940 * defs.h (fatal, vfatal): New function prototypes.
941 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
942 via catch_errors.
943 (backtrace_command): Change to call backtrace_command_stub via
944 catch_errors instead of calling backtrace_command_1 directly.
945 (backtrace_full_command): Ditto.
946 * utils.c (error_stream_1): New static function.
947 (verror): Change to call error_stream_1 instead of error_stream.
948 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
949 (vfatal, fatal): New functions.
950
951 2004-11-05 Andrew Cagney <cagney@gnu.org>
952
953 * stack.c (parse_frame_specification_1): Clear selected_frame_p
954 when not using selected frame.
955
956 2004-11-05 Mark Kettenis <kettenis@jive.nl>
957
958 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
959 personality routine in a CIE augmentation.
960
961 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
962
963 * stack.c (set_current_sal_from_frame): New function.
964 (print_args_stub): Use it.
965 (print_frame_info): Don't set sal here.
966
967 2004-11-04 Mark Kettenis <kettenis@gnu.org>
968
969 * dwarf2-frame.c (read_encoded_value): Change type of third
970 argument to `unsigned char *'. Add support for LEB128 encodings.
971
972 2004-11-04 Jim Blandy <jimb@redhat.com>
973
974 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
975 prevent cross-objfile references.
976 (make_cv_type): Doc fix. Don't create cross-objfile references,
977 even for stub types.
978 (replace_type): Add assertion to prevent cross-objfile references.
979 (check_typedef): Never resolve a stub type by copying over a type
980 from another file.
981
982 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
983
984 * Makefile.in (m32r-tdep.o): Update dependencies.
985 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
986 ABI-specific overrides.
987
988 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
989
990 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
991 unnecessary parallel execution bit.
992 (m32r_memory_remove_breakpoint): Ditto.
993 (m32r_breakpoint_from_pc): Update.
994
995 2004-11-03 Randolph Chung <tausq@debian.org>
996
997 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
998 frame_func_unwind to locate the unwind entry.
999 (hppa_frame_this_id): Likewise.
1000
1001 2004-11-03 Andrew Cagney <cagney@gnu.org>
1002
1003 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1004 packet, obsolete configurations, end-of-life deprecated_registers.
1005
1006 2004-11-02 Mark Kettenis <kettenis@gnu.org>
1007
1008 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1009 encodings as well as unsigned encodings.
1010
1011 2004-11-02 Andrew Cagney <cagney@gnu.org>
1012
1013 * value.h (COERCE_VARYING_ARRAY): Delete.
1014 * valops.c (value_cast, value_slice): Delete use.
1015 * valarith.c (value_subscript, value_concat): Delete use.
1016
1017 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1018
1019 * NEWS: GDB understands GNAT Ada.
1020
1021 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1022
1023 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1024 (amd64-sol2-tdep.o): Add dependencies.
1025 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1026 config/i386/sol2-64.mt: New files.
1027 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1028 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1029 (supply_gregset): Correct order of arguments to
1030 amd64_supply_native_gregset.
1031 (fill_gregset): Correct order of arguments to
1032 amd64_collect_native_gregset.
1033 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1034 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1035 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1036 for definition of NEW_PROC_API.
1037 * configure: Regenerate.
1038
1039 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1040
1041 * MAINTAINERS (Write After Approval): Add myself.
1042
1043 2004-11-01 Andrew Cagney <cagney@gnu.org>
1044
1045 * configure.tgt: Mark d10v-*-* as obsolete.
1046 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1047
1048 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1049
1050 * values.c (modify_field): Correct handling of bit-fields that
1051 don't fit in 32 bits. Use unsigned operations throughout and
1052 simplify the code a bit. Document preconditions.
1053
1054 2004-10-31 Andrew Cagney <cagney@gnu.org>
1055
1056 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1057 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1058 (in_plt_section): Delete.
1059
1060 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1061 (mips_gdbarch_init): Do not set same.
1062
1063 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1064 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1065
1066 * gdbarch.sh (in_solib_call_trampoline): Delete.
1067 * gdbarch.h, gdbarch.c: Re-generate.
1068
1069 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1070 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1071 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1072 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1073 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1074
1075 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1076
1077 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1078 (mipsnbsd_fetch_inferior_registers): Rename from
1079 fetch_inferior_registers. Make static.
1080 (mipsnbsd_store_inferior_registers): Rename from
1081 store_inferior_registers. Make static.
1082 (_initialize_mipsnbsd_nat): New function and prototype.
1083 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1084 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1085 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1086 inf-ptrace.o.
1087
1088 2004-10-31 Andrew Cagney <cagney@gnu.org>
1089
1090 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1091 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1092 delete corresponding unused function.
1093 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1094 in_solib_call_trampoline.
1095 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1096 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1097 * config/mips/tm-nbsd.h: Ditto.
1098 * config/arm/tm-linux.h: Ditto.
1099 * config/mips/tm-linux.h: Ditto.
1100
1101 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1102 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1103 in_solib_call_trampoline, delete corresponding unused function.
1104 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1105 (vaxnbsd_aout_init_abi): Ditto.
1106 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1107 (sparc32nbsd_aout_init_abi): Ditto.
1108 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1109 (ppc_linux_init_abi): Ditto.
1110 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1111 (ns32knbsd_init_abi_aout): Ditto.
1112 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1113 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1114 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1115 (m68kbsd_aout_init_abi): Ditto.
1116 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1117 (i386_cygwin_init_abi): Ditto.
1118 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1119 (i386bsd_init_abi): Ditto.
1120
1121 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1122 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1123 isn't used by this architecture.
1124 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1125 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1126 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1127 * s390-tdep.c (s390_gdbarch_init): Ditto.
1128 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1129 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1130 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1131 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1132 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1133 * amd64-tdep.c (amd64_init_abi): Ditto.
1134
1135 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1136 in_solib_call_trampoline to its default value of
1137 generic_in_solib_call_trampoline.
1138 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1139 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1140 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1141 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1142 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1143 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1144
1145 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1146
1147 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1148
1149 * config/mips/tm-mips.h: Delete file.
1150 * remote-mips.c: Delete tm-mips.h from comment.
1151 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1152 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1153 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1154 * config/mips/tm-linux.h: Don't include tm-mips.h.
1155 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1156 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1157 * config/mips/tm-wince.h: Don't include.
1158
1159 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1160 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1161 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1162 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1163
1164 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1165 * mdebugread.c (ecoff_relocate_efi): Delete function.
1166 * objfiles.c (objfile_relocate): Delete #ifdef
1167 MDEBUG_EFI_SYMBOL_NAME code.
1168
1169 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
1170 Andrew Cagney <cagney@gnu.org>
1171
1172 * gdbarch.sh (single_step_through_delay): Add.
1173 * gdbarch.h, gdbarch.c: Re-generate.
1174 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1175 (mips_step_skips_delay): Delete.
1176 * mips-tdep.c (mips_single_step_through_delay): Replace
1177 mips_step_skips_delay.
1178 (mips_gdbarch_init): Set single_step_through_delay.
1179 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1180
1181 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1182
1183 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1184 from TRAMP_FRAME frame type.
1185
1186 2004-10-31 Andrew Cagney <cagney@gnu.org>
1187
1188 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1189
1190 * mips-tdep.c (mips_ignore_helper): Delete.
1191 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1192 * infrun.c (handle_inferior_event): Delete #ifdef
1193 DEPRECATED_IGNORE_HELPER_CALL code.
1194
1195 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1196
1197 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1198
1199 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1200 (fill_fpregset): Do not compile for 64-bit systems.
1201 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1202 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1203 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1204
1205 2004-10-30 Andrew Cagney <cagney@gnu.org>
1206
1207 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1208 (struct mdebug_extra_func_info): Define.
1209 * config/alpha/tm-alpha.h: Delete same.
1210 * config/mips/tm-mips.h: Delete same.
1211 * mdebugread.c: Delete same.
1212 * Makefile.in: Update dependencies.
1213 * mips-mdebug-tdep.c: Include "mdebugread.h".
1214
1215 * objfiles.c: Include "mdebugread.h".
1216 * mdebugread.c: Include "mdebugread.h".
1217 (ecoff_relocate_cfi): Delete.
1218 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1219 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1220 * mdebugread.h (ecoff_relocate_efi): New file.
1221 * Makefile.in: Update dependencies.
1222
1223 * mips-tdep.c (struct frame_extra_info): Delete.
1224 (temp_proc_desc): Delete.
1225
1226 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1227 MIPS_EFI_SYMBOL_NAME.
1228 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1229 (struct mdebug_extra_func_info): Replace struct
1230 alpha_extra_func_info and alpha_extra_func_info_t.
1231 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1232 MIPS_EFI_SYMBOL_NAME.
1233 (struct mdebug_extra_func_info): Replace struct
1234 alpha_extra_func_info and alpha_extra_func_info_t.
1235 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1236 * mdebugread.c, alpha-mdebug-tdep.c:
1237
1238 Suggested by Mark Kettenis.
1239 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1240 fields frame_adjust and high_addr.
1241 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1242 (non_heuristic_proc_desc): Delete references.
1243
1244 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1245 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1246 * mips-tdep.c: Update.
1247
1248 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1249 (MIPS_LAST_EMBED_REGNUM): Add.
1250 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1251 (LAST_EMBED_REGNUM): Delete.
1252 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1253
1254 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1255 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1256 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1257 * mips-linux-nat.c: Update.
1258
1259 * mips-tdep.h: Add comments on registers.
1260 (MIPS_UNUSED_REGNUM): Define.
1261 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1262 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1263 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1264 * mips-linux-nat.c, remote-mips.c: Update.
1265
1266 * config/mips/tm-mips.h (t_insn): Delete.
1267 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1268 Replace t_insn with ULONGEST.
1269
1270 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1271
1272 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1273 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1274 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1275 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1276 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1277 (mipsnbsd_core_osabi_sniffer): New function.
1278 (mipsnbsd_init_abi): Set regset_from_core_section.
1279 (_initialize_mipsnbsd_tdep): Remove calls to
1280 deprecated_add_core_fns.
1281 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1282 (mipsnbsd_regset_from_core_section): New functions.
1283 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1284 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1285
1286 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1287 Remove optimization for DEPRECATED_FP_REGNUM.
1288
1289 2004-10-30 Andrew Cagney <cagney@gnu.org>
1290
1291 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1292 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1293 (alpha_setup_arbitrary_frame): Delete.
1294 * mips-tdep.c (setup_arbitrary_frame): Delete.
1295 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1296 (setup_arbitrary_frame): Delete.
1297 * stack.c (parse_frame_specification_1): When specified, call
1298 create_new_frame with two parameters. Delete #ifdef
1299 SETUP_ARBITRARY_FRAME.
1300
1301 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1302 (MIPS_INSTLEN): Delete.
1303 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1304 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1305 * remote-mips.c, mips-tdep.c: Update.
1306
1307 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1308 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1309 * mips-tdep.c (mips_mdebug_frame_cache)
1310 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1311 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1312 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1313 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1314 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1315 (mips_gdbarch_init): Do not append mdebug sniffers.
1316 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1317 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1318 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1319 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1320 * Makefile.in: Update dependencies.
1321
1322 * mips-tdep.h (mips_abi_regsize): Declare.
1323 * mips-tdep.c (mips_abi_regsize): Make non-static.
1324
1325 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1326 (make_mips16_addr): Delete.
1327
1328 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1329
1330 * i386-sol2-nat.c: New file.
1331 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1332 i386-sol2-tdep.c.
1333 (i386-sol2-nat.o): Update dependencies.
1334 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1335 i386-sol2-nat.o.
1336
1337 2004-10-30 Andrew Cagney <cagney@gnu.org>
1338
1339 Total breakage identified by Joel Brobecker.
1340 * mips-tdep.c (after_prologue): Delete.
1341 (mips_skip_prologue): Use skip_prologue_using_sal.
1342 (heuristic_proc_desc): Delete, unused.
1343
1344 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1345
1346 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1347 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1348 Cleanup coding style.
1349
1350 2004-10-30 Andrew Cagney <cagney@gnu.org>
1351
1352 * mips-tdep.h (mips_pc_is_mips16): Declare.
1353 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1354 non-static. Update calls.
1355
1356 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1357 * command.h (add_setshow_enum_cmd): Declare.
1358 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1359
1360 * mips-tdep.c (_initialize_mips_tdep): Use
1361 add_setshow_zinteger_cmd.
1362
1363 * mips-tdep.c (mips_eabi_extract_return_value)
1364 (mips_o64_extract_return_value, mips_o64_store_return_value)
1365 (return_value_location, mips_eabi_reg_struct_has_addr)
1366 (mips_eabi_use_struct_convention)
1367 (mips_eabi_store_return_value): Delete.
1368 (mips_eabi_store_return_value): New function.
1369 (mips_eabi_return_value): New function.
1370 (mips_gdbarch_init): For O64 and EABI, delete
1371 extract_return_value, store_return_value, use_struct_convention
1372 and reg_struct_has_addr, add return_value.
1373
1374 * mips-tdep.c (read_signed_register): Use
1375 regcache_cooked_read_signed.
1376
1377 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1378
1379 * mipsread.c: Cleanup coding style.
1380 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1381 (mipscoff_symfile_finish): Remove prototypes.
1382
1383 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1384
1385 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1386 (mips_mdebug_frame_cache, mips16_scan_prologue)
1387 (mips32_scan_prologue, mips_stub_frame_cache)
1388 (heuristic_proc_start, heuristic_proc_desc)
1389 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1390 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1391 (mips_o32_return_value, mips_o64_push_dummy_call)
1392 (mips_step_skips_delay, mips_skip_trampoline_code)
1393 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1394 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1395 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1396 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1397 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1398 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1399 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1400 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1401 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1402 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1403 ZERO_REGNUM.
1404 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1405 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1406 ZERO_REGNUM.
1407 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1408 A0_REGNUM.
1409 * mipsnbsd-nat.c: Include "mips-tdep.h".
1410 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1411 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1412
1413 2004-10-29 Andrew Cagney <cagney@gnu.org>
1414
1415 * stack.c (parse_frame_specification_1): New function based on
1416 parse_frame_specification. Add message and selected_frame_p
1417 paramters. Truely always return non-NULL.
1418 (parse_frame_specification): Call parse_frame_specification_1.
1419 (frame_info): Update. Eliminate target_has_stack check.
1420 (select_frame_command): Update.
1421
1422 2004-10-29 Andrew Cagney <cagney@gnu.org>
1423
1424 * frame.h (get_selected_frame): Add message parameter.
1425 * frame.c (get_selected_frame): Add and use message parameter.
1426 * stack.c (current_frame_command, return_command, locals_info)
1427 (catch_info, args_info, up_silently_base, down_silently_base): Use
1428 get_selected_frame with an explicit message.
1429 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1430 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1431 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1432 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1433 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1434 * breakpoint.c: Update.
1435
1436 2004-10-29 Andrew Cagney <cagney@gnu.org>
1437
1438 * trad-frame.c (trad_frame_get_prev_register): Use
1439 frame_unwind_register instead of frame_register_unwind, do not
1440 recurse the register's location.
1441 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1442 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1443 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1444 * sh-tdep.c (sh_frame_prev_register): Ditto.
1445 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1446 * i386-tdep.c (i386_frame_prev_register): Ditto.
1447 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1448 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1449
1450 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1451
1452 * proc-events.c: Fix several coding-style issues. Consistently
1453 use #ifdef instead of #if defined().
1454 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1455 ARRAY_SIZE.
1456 (_initialize_proc_events): New prototype.
1457
1458 * proc-why.c: Fix several coding-style issues.
1459 (proc_prettyfprint_why): Use ARRAY_SIZE.
1460
1461 2004-10-27 Jim Blandy <jimb@redhat.com>
1462
1463 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1464 manner independent of the host byte order.
1465
1466 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1467
1468 * mips-tdep.c (id_delayed): Remove prototype.
1469
1470 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1471
1472 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1473 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1474 to enum with register numbers.
1475 (enum mips_insn_size): New enum.
1476
1477 2004-10-26 Andrew Cagney <cagney@gnu.org>
1478
1479 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1480 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1481 (mips_gdbarch_init): Update.
1482 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1483
1484 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1485 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1486 IN_SOLIB_RETURN_TRAMPOLINE.
1487 * mips-tdep.c (mips_dump_tdep): Do not print
1488 IN_SOLIB_RETURN_TRAMPOLINE.
1489 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1490 (mips_gdbarch_init): Update.
1491
1492 * mips-tdep.h (mips_software_single_step): Move to here ...
1493 * config/mips/tm-mips.h: ... from here.
1494 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1495 (SOFTWARE_SINGLE_STEP): Delete.
1496 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1497
1498 2004-10-25 Andrew Cagney <cagney@gnu.org>
1499
1500 * NEWS: Add Changes since GDB 6.3 section.
1501
1502 2004-10-23 Andreas Schwab <schwab@suse.de>
1503
1504 * ada-lang.c (grow_vect): Return the new array instead of
1505 expecting pointer to pointer to avoid violation of aliasing rules.
1506 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1507
1508 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1509
1510 * s390-tdep.c (enum pv_boolean): Remove.
1511 (pv_is_array_ref): Remove.
1512 (s390_on_stack): Remove.
1513 (S390_NUM_SPILL_SLOTS): Remove.
1514 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1515 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1516 (s390_store): Track all stores of orginal incoming registers to the
1517 stack constant offsets relative to the CFA, instead of only tracking
1518 stores into specific spill slots.
1519 (s390_load): Likewise.
1520 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1521 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1522 defined as call-saved by the ABI.
1523 (s390_push_dummy_call): Use bottom of dummy call argument save area
1524 as return value, not the top. Do not store to the called function's
1525 register save area.
1526 (s390_unwind_dummy_id): Adapt accordingly.
1527
1528 2004-10-23 Andrew Cagney <cagney@gnu.org>
1529
1530 * objfiles.h (struct objfile): Rename obj_private to
1531 deprecated_obj_private, sym_private to deprecated_sym_private, and
1532 sym_stab_info to deprecated_sym_stab_info.
1533 * gdb-stabs.h: Update.
1534 * elfread.c: Update.
1535 * dbxread.c: Update.
1536 * coffread.c: Update.
1537 * xcoffread.c: Update.
1538 * symfile.c: Update.
1539 * somread.c: Update.
1540 * nlmread.c: Update.
1541 * mdebugread.c: Update.
1542 * hpread.c: Update.
1543 * coffread.c: Update.
1544
1545 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1546
1547 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1548 * configure.host: Add mips64*-*-openbsd*.
1549 * configure.tgt: Add mips64*-*-openbsd*.
1550 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1551 mips64obsd-tdep.c.
1552 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1553 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1554
1555 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1556
1557 * symtab.c (symbol_search_name): Minor reformatting.
1558
1559 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1560
1561 * symtab.h: Fix typo in comment.
1562
1563 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1564
1565 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1566 (dwarf_decode_line_header): Likewise.
1567
1568 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1569
1570 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1571
1572 2004-10-19 Andrew Cagney <cagney@gnu.org>
1573
1574 GDB 6.3 branch created.
1575 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1576
1577 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1578
1579 * dwarf2read.c (set_cu_language): Set language to Ada for
1580 DW_LANG_Ada83 and DW_LANG_Ada95.
1581
1582 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1583
1584 From Andreas Schwab <schwab@suse.de>:
1585 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1586 for xmalloc and xrealloc.
1587
1588 2004-10-15 Andrew Cagney <cagney@gnu.org>
1589
1590 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1591 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1592 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1593 Update dependencies.
1594
1595 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1596
1597 * ada-lang.c (ada_lookup_symbol): Correct comment.
1598 (ada_evaluate_subexp): Change error message for
1599 OP_FUNCALL case so as not to indicate an internal error.
1600
1601 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1602
1603 Committed by Paul Hilfinger.
1604 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1605 type sizes in XVE/XVU types, and emit a warning when that happens,
1606 instead of rounding up the size of the resulting type.
1607 Some minor reformatting.
1608 (ada_is_aligner_type): Do not consider a type as an aligner type
1609 if there is a corresponding XVS type as well.
1610 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1611 have several levels of pointer indirection to the array.
1612
1613 2004-10-15 Jerome Guitton <guitton@gnat.com>
1614
1615 Committed by Paul Hilfinger.
1616 * ada-lang.c (check_size): New function.
1617 (coerce_unspec_val_to_type): call check_size to make sure
1618 that the object size is reasonable.
1619 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1620 Implements the case when we get a reference when we evaluate
1621 the expression of one of the bounds of the slice.
1622 (ada_value_struct_elt): when a packed array field is
1623 a reference, use ada_coerce_ref to dereference it; use
1624 ada_value_ind only if it is a pointer.
1625
1626 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1627
1628 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1629 a bit to avoid the necessity of an advance declaration. Remove
1630 declaration.
1631 (set_reg_offset): Move implemenation up.
1632 (mips16_get_imm): Likewise.
1633 (mips16_scan_prologue): Likewise.
1634 (reset_saved_regs): Likewise.
1635 (mips32_scan_prologue): Likewise.
1636
1637 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1638
1639 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1640 Remove sp as a parameter, compute it internally instead. Move
1641 prologue scanning limit from heuristic_proc_desc to here.
1642 (mips16_scan_prologue): Likewise.
1643 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1644 by call to mips16_scan_prologue.
1645 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1646 by call to mips32_scan_prologue.
1647 (heuristic_proc_desc): Remove code that's no longer necessary.
1648 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1649 (mips_skip_prologue): Update calls to mips16_scan_prologue
1650 and mips32_scan_prologue.
1651
1652 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1653
1654 * mips-tdep.c (mips16_scan_prologue): Merge code from
1655 mips16_skip_prologue. Now return the address of the first
1656 instruction past the function prologue.
1657 (mips16_skip_prologue): Remove, no longer necessary.
1658 (mips_skip_prologue): Replace call to mips16_skip_prologue
1659 by call to mips16_scan_prologue.
1660
1661 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1662
1663 * mips-tdep.c (mips32_scan_prologue): Merge code from
1664 mips32_skip_prologue. Now return the address of the first
1665 instruction past the function prologue.
1666 (mips32_skip_prologue): Remove. No longer necessary.
1667 (mips16_skip_prologue): Add parameter end_pc instead of
1668 computing it.
1669 (mips_skip_prologue): Compute the upper limit for the
1670 prologue scanning. Update call to mips16_skip_prologue.
1671 Replace call to mips32_skip_prologue by call to
1672 mips32_scan_prologue.
1673
1674 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1675
1676 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1677 NetBSD system call stubs that store %rp in the ERP slot of the
1678 stack frame.
1679
1680 * source.c: Always define O_BINARY to 0 if not defined already.
1681 (openp): Unconditionally use O_BINARY.
1682
1683 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1684 * event-top.c (gdb_readline2): Likewise.
1685
1686 2004-10-14 Orjan Friberg <orjanf@axis.com>
1687
1688 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1689 deprecated_add_core_fns which was removed by mistake.
1690
1691 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1692
1693 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1694 references to deprecated_registers[] with equivalent code.
1695
1696 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1697
1698 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1699 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1700 instead of explicit test and print statement.
1701
1702 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1703
1704 * sparc-nat.c: Include "inf-ptrace.h".
1705 (sparc_target): New function.
1706 * sparc-nat.h: Update copyright year.
1707 (sparc_target): New prototype.
1708 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1709 (_initialize_sparcnbsd_nat): Construct and add target vector.
1710 * sparc64nbsd-nat.c: Include "target.h".
1711 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1712 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1713 Update dependencies.
1714 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1715 inftarg.o, add inf-ptrace.o.
1716 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1717 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1718 (NAT_FILE): Set to nm-bsd.h.
1719 (LOADLIBES): New variable.
1720 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1721 infarg.o, add inf-ptrace.o.
1722 * config/sparc/nm-nbsdaout.h: Remove file.
1723 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1724 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1725 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1726
1727 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1728 "fopen-same.h". Update comment.
1729
1730 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1731
1732 * i386gnu-nat.c: Include "gdb_string.h".
1733 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1734 registers when the floating-point state isn't initialized.
1735 * Makefile.in (i386gnu-nat.o): Update dependencies.
1736
1737 2004-10-11 David Anderson <davea@sgi.com>
1738
1739 * regcache.c (regcache_raw_read): Comment was missing "to".
1740 Extraneous ' removed.
1741 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1742 comment now describes use.
1743
1744 2004-10-11 Orjan Friberg <orjanf@axis.com>
1745
1746 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1747 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1748 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1749 (cris_sigtramp_frame_sniffer): New functions.
1750 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1751 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1752 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1753 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1754 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1755 command.
1756 (cris_version_update): Remove, replace with ...
1757 (set_cris_version): New function.
1758 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1759 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1760 (_initialize_cris_tdep): Remove CRIS mode command.
1761 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1762 cris-fpless-backtrace command.
1763 (cris_scan_prologue): Fix prologue scanning limit.
1764 (cris_register_type): Update to reflect actual registers.
1765 (cris_register_bytes_ok) Remove.
1766 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1767 Remove set_gdbarch_deprecated_register_size,
1768 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1769
1770 2004-10-10 Andrew Cagney <cagney@gnu.org>
1771
1772 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1773 comment.
1774
1775 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1776
1777 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1778
1779 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1780
1781 * mips-tdep.c (mips16_scan_prologue): Renames
1782 mips16_heuristic_proc_desc. Update comment.
1783 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1784 (heuristic_proc_desc): Update calls to the 2 functions above.
1785
1786 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1787
1788 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1789 Update comments. Also immediately return empty cache when the start
1790 address of our function could not be found.
1791 (mips_insn32_frame_cache): Likewise.
1792
1793 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1794
1795 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1796 (mips_insn16_frame_cache): Pass frame cache in call to
1797 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1798 Remove code that became redundant as a consequence.
1799 (mips32_heuristic_proc_desc): No longer compute a fake
1800 procedure descriptor. Compute the full frame cache instead.
1801 Some minor comment reformatting.
1802
1803 2004-10-10 Jim Blandy <jimb@redhat.com>
1804
1805 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1806 reader, tracing bytecode stuff): Remove self.
1807
1808 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1809
1810 * sparc64-linux-tdep.c: Update copyright year. Don't include
1811 "solib-svr4.h".
1812 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1813 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1814 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1815
1816 * sparc-linux-tdep.c: Update copyright year.
1817 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1818 to struct frame_info *. Use safe_frame_unwind_memory instead of
1819 deprecated_read_memory_nobpt.
1820 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1821 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1822 changed signature of sparc_linux_sigtramp_start.
1823 (sparc32_linux_pc_in_sigtramp): Remove function.
1824 (sparc32_linux_sigtramp_p): New function.
1825 (sparc32_linux_sigtramp_frame_sniffer): Use
1826 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1827
1828 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1829 Remove function.
1830 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1831
1832 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1833 (decode_packed_array_type, value_subscript_packed)
1834 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1835 argument in call to lim_warning.
1836
1837 * configure.in: Really disable the TUI if an enhanced curses
1838 library isn't found.
1839 * configure: Regenerate.
1840
1841 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1842
1843 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1844 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1845 * config/i386/nm-nbsdaout.h: Remove file.
1846 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1847 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1848 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1849 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1850 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1851 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1852 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1853 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1854 (ldd, ld_un, ld_2): Remove defines.
1855 * config/i386/nm-obsd.h: Likewise.
1856
1857 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1858
1859 * ada-lex.l: Remove useless rule whose right-context clause
1860 causes unreferenced static function warning for yyrealloc.
1861 (ada_flex_use): Remove the artificial reference to yyrealloc.
1862
1863 2004-10-08 Andrew Cagney <cagney@gnu.org>
1864
1865 * target.h (struct target_ops): Rename to_xfer_memory to
1866 deprecated_xfer_memory.
1867 * target.c: Update.
1868 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1869 * wince.c: Update.
1870 * win32-nat.c: Update.
1871 * v850ice.c: Update.
1872 * uw-thread.c: Update.
1873 * thread-db.c: Update.
1874 * sol-thread.c: Update.
1875 * remote.c: Update.
1876 * remote-vx.c: Update.
1877 * remote-st.c: Update.
1878 * remote-sim.c: Update.
1879 * remote-sds.c: Update.
1880 * remote-rdp.c: Update.
1881 * remote-rdi.c: Update.
1882 * remote-mips.c: Update.
1883 * remote-m32r-sdi.c: Update.
1884 * remote-e7000.c: Update.
1885 * procfs.c: Update.
1886 * ppc-bdm.c: Update.
1887 * nto-procfs.c: Update.
1888 * monitor.c: Update.
1889 * linux-nat.c: Update.
1890 * inftarg.c: Update.
1891 * hpux-thread.c: Update.
1892 * go32-nat.c: Update.
1893 * gnu-nat.c: Update.
1894 * exec.c: Update.
1895 * corelow.c: Update.
1896 * bsd-kvm.c: Update.
1897 * aix-thread.c: Update.
1898
1899 2004-10-08 Andrew Cagney <cagney@gnu.org>
1900
1901 * target.c (debug_target): Move to near start of file.
1902 (target_stopped_data_address_p): Re-org logic, add casts.
1903
1904 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1905
1906 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1907 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1908 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1909 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1910 New defines.
1911
1912 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1913
1914 * target.h (to_stopped_data_address): Change prototype to
1915 take a CORE_ADDR pointer and return an int.
1916 * target.c (update_current_target): Change to_stopped_data_address
1917 to match new prototype.
1918 (debug_to_stopped_data_address): Change appropriately.
1919 * breakpoint.c (bpstat_stop_status): Change call to
1920 target_stopped_data_address to use new prototype.
1921 * frv-tdep.c (frv_have_stopped_data_address): New function.
1922 (frv_stopped_data_address): Change to new prototype and
1923 functionality.
1924 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1925 prototype and functionality.
1926 (ia64_stopped_by_watchpoint): New function.
1927 * i386-nat.c (i386_stopped_data_address): Change to new
1928 prototype and functionality.
1929 (i386_stopped_by_watchpoint): New function.
1930 * remote.c (remote_stopped_data_address): Change to new prototype
1931 and functionality.
1932 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1933 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1934 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1935 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1936 new i386_stopped_by_watchpoint function.
1937 (i386_stopped_by_watchpoint): New prototype.
1938 (i386_stoppped_data_address): Change to new prototype.
1939 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1940 new ia64_stopped_by_watchpoint function.
1941 (ia64_stopped_by_watchpoint): New prototype.
1942 (ia64_stopped_data_address): Ditto.
1943
1944 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1945
1946 * ada-typeprint.c (ada_print_type): Use int_string for printing
1947 modulus of modular type.
1948 * ada-lang.h (ada_modulus): Change return type to unsigned.
1949 * ada-lang.c (ada_language_arch_info): Correct type of
1950 string_char_type.
1951 (ada_modulus): Return unsigned result.
1952 (ada_lookup_symbol): Remove user disambiguation and modify comment
1953 accordingly.
1954
1955 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1956
1957 Committed by Paul Hilfinger.
1958 * ada-lang.c (decode_packed_array): On big-endian targets,
1959 left-justify the value if it comes with a modular type.
1960
1961 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1962
1963 Committed by Paul Hilfinger.
1964 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1965 (is_name_suffix): Add support for "___JM" suffixes.
1966 (ada_check_typedef): Renames ada_completed_type.
1967 Update all users of CHECK_TYPEDEF, check_typedef, and
1968 ada_complete_type to call ada_check_typedef.
1969 * ada-typeprint.c: Likewise.
1970 * ada-valprint.c: Likewise.
1971
1972 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1973
1974 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1975
1976 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1977
1978 * MAINTAINERS: Update e-mail address.
1979
1980 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1981
1982 From Maciej W. Rozycki <macro@mips.com>:
1983 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1984 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1985
1986 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1987
1988 * m32r-tdep.c (decode_prologue): Support functions written
1989 in assembler language. Recognize trap instructions as the
1990 end of prologue.
1991 (m32r_frame_unwind_cache): Ditto.
1992 (m32r_skip_prologue): Extend search limit. Quit analyzing
1993 prologue if pc's location is not readable.
1994
1995 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1996
1997 * Makefile.in (.l.c): Do conversions of names of alloc and free
1998 functions that are done for .y.c files, plus special one
1999 for yy_flex_realloc. Also, correct missing-file tests here.
2000 * ada-lex.l (malloc, free): Remove macros.
2001 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2002 xrealloc.
2003 (ada_flex_use): Dummy definition to remove warnings about unused
2004 functions.
2005 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2006 to suppress warning.
2007
2008 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2009
2010 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2011 RETURN_VALUE.
2012 (sh_return_value_fpu): Ditto for CPUs with FPU.
2013 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2014 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2015 Install sh_return_value_nofpu resp. sh_return_value_fpu as
2016 RETURN_VALUE functions.
2017
2018 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2019
2020 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
2021 (sh_pseudo_register_write): Ditto.
2022
2023 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2024
2025 * sh-tdep.c (IS_MACL_STS): New define.
2026 (IS_MOVI20): Ditto.
2027 (IS_MACL_LDS): Ditto.
2028 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2029 instructions in prologue.
2030 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2031 instructions in epilogue.
2032
2033 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2034
2035 * sh-tdep.c (SH_NUM_REGS): Define as 67.
2036 (sh_sh_register_name): Add eight empty register names.
2037 (sh_sh3_register_name): Ditto.
2038 (sh_sh3e_register_name): Ditto.
2039 (sh_sh2e_register_name): Ditto.
2040 (sh_sh2a_register_name): New function, defining SH2A register set.
2041 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2042 in nofpu case.
2043 (sh_sh_dsp_register_name): Add eight empty register names.
2044 (sh_sh3_dsp_register_name): Ditto.
2045 (sh_sh4_register_name): Ditto.
2046 (sh_sh4_nofpu_register_name): Ditto.
2047 (sh_sh4al_dsp_register_name): Ditto.
2048 (sh2a_show_regs): New function.
2049 (sh2a_nofpu_show_regs): New function.
2050 (sh_sh2a_register_type): New function.
2051 (do_bank_register_info): New function.
2052 (sh_print_pseudo_register): Call do_bank_register_info.
2053 Call sh_print_pseudo_register for valid "bank" register.
2054 (sh_sh2a_register_sim_regno): New function.
2055 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2056 Increment pseudo register count by one for all sh variants with
2057 pseudo registers to accomodate pseudo bank register.
2058 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2059 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2060 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
2061 Increment pseudo register numbers.
2062
2063 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2064
2065 * dwarf2read.c (read_subroutine_type): Call make_function_type
2066 instead of lookup_function_type.
2067
2068 2004-10-05 Jim Blandy <jimb@redhat.com>
2069
2070 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2071 (Previous change missed some uses.)
2072
2073 2004-10-05 Andrew Cagney <cagney@gnu.org>
2074
2075 * target.h (deprecated_child_ops): Rename child_ops.
2076 * wince.c: Update copyright. Rename child_ops.
2077 * win32-nat.c: Rename child_ops.
2078 * target.c: Rename child_ops.
2079 * rs6000-nat.c: Rename child_ops.
2080 * linux-nat.c: Rename child_ops.
2081 * infttrace.c: Rename child_ops.
2082 * inftarg.c: Rename child_ops.
2083 * infptrace.c: Rename child_ops.
2084 * hppah-nat.c: Update copyright. Rename child_ops.
2085 * hpux-thread.c: Update copyright. Rename child_ops.
2086
2087 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2088
2089 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2090
2091 2004-10-05 Andrew Cagney <cagney@gnu.org>
2092
2093 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2094
2095 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2096
2097 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2098 (die_ref_table): Remove.
2099 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2100 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2101 the usage of this type.
2102 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2103 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2104 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2105 (dwarf2_create_include_psymtab): Update comment.
2106 (find_partial_die): Remove third argument. Remove unreachable call
2107 to error ().
2108 (dwarf2_find_containing_comp_unit): Update comments. Change one
2109 assertion to an error. Remove an unreachable error.
2110 (dwarf2_find_comp_unit): Update comments.
2111 (type_at_offset): Remove dead code.
2112 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2113 (store_in_ref_table): Add CU argument.
2114 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2115 inter-compilation-unit references.
2116 (load_full_comp_unit, process_full_comp_unit): New functions, based
2117 on psymtab_to_symtab_1.
2118 (psymtab_to_symtab_1): Use them.
2119 (dwarf2_add_dependence): New function.
2120 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2121 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2122 (partial_die_parent_scope, guess_structure_name): Update for changes
2123 to find_partial_die.
2124 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2125 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2126 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2127 (read_die_and_children): Update call to store_in_ref_table.
2128 (do_free_die_list_cleanup): Remove.
2129 (fixup_partial_die): Update for changes to find_partial_die.
2130 (read_full_die): Handle queueing absolute references.
2131 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2132 (dwarf2_attr, die_specification, die_type)
2133 (die_containing_type, dwarf2_extension): Update calls to
2134 follow_die_ref.
2135 (dump_die): Update DW_FORM_ref* handling.
2136 (dwarf2_get_ref_die_offset): Likewise.
2137 (free_one_comp_unit): Release the dies list.
2138 (dwarf2_mark_helper): New function.
2139 (dwarf2_mark): Use it.
2140
2141 2004-10-05 Mark Kettenis <kettenis@jive.nl>
2142
2143 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2144 when writing to memory.
2145
2146 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2147
2148 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2149 (m32r_extract_struct_value_address): Delete function.
2150 (m32r_return_value): New function.
2151 (m32r_gdbarch_init): Instead of store_return_value,
2152 extract_return_value, deprecated_extract_struct_value_address
2153 and deprecated_use_struct_convention, set return_value.
2154
2155 2004-10-03 Daniel Jacobowitz <dan@debian.org>
2156
2157 * dwarf2read.c (read_subrange_type): Add comment for variable
2158 sized arrays.
2159
2160 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2161
2162 * Makefile.in (.l.c): Modify rule for compatibility with recent
2163 versions of flex, and remove most command-line options.
2164 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2165 options.
2166
2167 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2168
2169 Turn on initial Ada support (mainly expression evaluation).
2170
2171 * Makefile.in (SFILES): Remove ada-tasks.c.
2172 (HFILES_NO_SRCDIR): Add ada-lang.h.
2173 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2174 (YYOBJ): Add ada-exp.o.
2175 (rule .l.c): Generalize to not mention ada.
2176 * symtab.c: Include ada-lang.h.
2177 (symbol_natural_name, symbol_demangled_name)
2178 (symbol_search_name): Add Ada case.
2179
2180 2004-10-01 Andrew Cagney <cagney@gnu.org>
2181
2182 * Makefile.in (COMMON_OBS): Add inf-child.o.
2183 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2184 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2185 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2186 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2187 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2188 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2189 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2190 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2191 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2192 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2193 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2194 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2195 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2196
2197 * target.c (xfer_using_stratum): Change return type to LONGEST.
2198 On each iteration offset, readbuf and writebuf.
2199 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2200 partial_length, and read/modify/write predicate, update comments.
2201 Pass buffer.word to ptrace write.
2202
2203 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2204
2205 * symfile.c (init_filename_language_table): Add extensions for
2206 Ada.
2207 * defs.h (enum language): Add language_ada.
2208 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2209 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2210 (add_symbols_from_enclosing_procs): Make a no-op for now.
2211 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2212 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2213 (find_line_in_linetable, find_next_line_in_linetable)
2214 (read_all_symtabs, is_plausible_func_for_line)
2215 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2216 (is_runtime_sym_defined, check_size): Remove declaration.
2217 (function_name_from_pc, ada_translate_error_message)
2218 (ada_lookup_minimal_symbol): Remove definition.
2219 (ada_add_block_symbols): Remove useless label.
2220 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2221 useless declaration.
2222 (ada_is_exception_sym): Likewise.
2223
2224 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2225
2226 Add m32r-linux support.
2227 * configure.tgt: Add m32r*-*-linux*.
2228 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2229 and m32r-linux-tdep.c.
2230 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2231 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2232 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2233 m32r-linux-tdep.c.
2234 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2235 config/m32r/linux.mh, config/m32r/linux.mt,
2236 config/m32r/nm-linux.h: New files.
2237
2238 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2239
2240 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2241 (mips32_fetch_instruction): Remove, unused.
2242
2243 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2244
2245 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2246 conditions that will always be true.
2247
2248 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2249
2250 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2251 (vaxbsd_fetch_inferior_registers): Rename from
2252 fetch_inferior_registers. Make static.
2253 (vaxbsd_store_inferior_registers): Rename from
2254 store_inferior_registers. Make static.
2255 (_initialize_vaxbsd_nat): Construct and add target vector.
2256 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2257 inftarg.o. Add inf-child.o and inf-ptrace.o.
2258 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2259 inftarg.o. Add inf-child.o and inf-ptrace.o.
2260 (NAT_FILE): Remove.
2261 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2262 inftarg.o. Add inf-child.o and inf-ptrace.o.
2263 (NAT_FILE): Remove.
2264 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2265
2266 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2267 (m88kbsd_fetch_inferior_registers): Rename from
2268 fetch_inferior_registers. Make static.
2269 (m88kbsd_store_inferior_registers): Rename from
2270 store_inferior_registers. Make static.
2271 (_initialize_m88kbsd_nat): New prototype and function.
2272 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2273 inftarg.o. Add inf-child.o and inf-ptrace.o.
2274 (NAT_FILE): Remove.
2275 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2276
2277 2004-09-30 Andrew Cagney <cagney@gnu.org>
2278
2279 * target.c (target_xfer_partial): New function.
2280 (target_read_memory_partial, target_write_memory_partial)
2281 (default_xfer_partial, target_read_partial, target_write_partial)
2282 (xfer_using_stratum): Use.
2283 (debug_to_xfer_partial): Delete function.
2284 (setup_target_debug): Do not override to_xfer_partial.
2285
2286 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2287
2288 * fork-child.c: Update copyright year. Fix coding style.
2289
2290 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2291
2292 * defs.h (msavestring, mstrsave): Remove prototypes.
2293 * utils.c (msavestring, mstrsave): Remove functions.
2294 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2295 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2296 of mstrsave.
2297 * source.c (find_and_open_source): Use xstrdup instead of
2298 mstrsave.
2299
2300 2004-09-30 Andrew Cagney <cagney@gnu.org>
2301
2302 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2303 (inf_ptrace_xfer_memory): Delete.
2304 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2305 (target_read_memory, target_write_memory): Use xfer_using_stratum
2306 when target_xfer_partial_p.
2307 (debug_target): Move to start of file.
2308 (target_read_memory_partial, target_write_memory_partial): Use
2309 to_xfer_partial when target_xfer_partial_p.
2310
2311 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2312 inf_ptrace_xfer_memory with equivalent code.
2313 * inftarg.c (child_xfer_partial): When performing a write, pass
2314 writebuf to child_xfer_memory.
2315
2316 * target.c (target_read_string): Use target_read_memory instead of
2317 target_xfer_memory.
2318
2319 2004-09-29 Andrew Cagney <cagney@gnu.org>
2320
2321 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2322 the address of status.
2323
2324 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2325 (kill_inferior): Inline ptrace_wait call.
2326 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2327 * inftarg.c (child_wait): Inline ptrace_wait call.
2328
2329 * target.h (struct target_ops): Delete field to_post_wait.
2330 (target_post_wait): Delete macro.
2331 (child_post_wait): Delete declaration.
2332 * target.c (update_current_target, update_current_target)
2333 (debug_to_post_wait, setup_target_debug): Delete functions and
2334 references.
2335 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2336 * inftarg.c (child_post_wait): Delete.
2337 (init_child_ops): Do not set to_post_wait.
2338 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2339 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2340 * inf-child.c (inf_child_post_wait): Delete.
2341 (inf_child_target): Do not set to_post_wait.
2342 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2343 (inf_ptrace_target): Do not set to_post_wait.
2344
2345 * wince.c (child_ops): Delete.
2346 * win32-nat.c (child_ops): Delete.
2347
2348 * inftarg.c (inftarg_set_find_memory_regions)
2349 (inftarg_set_make_corefile_notes): Delete functions.
2350 (_initialize_linux_nat): Inline calls.
2351
2352 * target.h (child_ops): Declare.
2353 * inftarg.c (child_ops): Move from here ...
2354 * target.c (child_ops): ... to here.
2355 * wince.c (child_ops): Delete extern declaration.
2356 * win32-nat.c (child_ops): Delete extern declaration.
2357 * linux-nat.c (child_ops): Delete extern declaration.
2358 * hpux-thread.c (child_ops): Delete extern declaration.
2359
2360 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2361
2362 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2363
2364 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2365
2366 * configure.in: Only set host_makefile_frag when building a native
2367 debugger.
2368 * configure: Regenerate.
2369
2370 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2371 for OpenBSD ELF.
2372
2373 2004-09-28 Andrew Cagney <cagney@gnu.org>
2374
2375 Problem identified by Paul Hilfinger.
2376 * Makefile.in (ada_lex_c): Define.
2377 (ada-lex.o): Delete rule.
2378
2379 * linux-proc.c: Delete file.
2380 * Makefile.in: Update.
2381 * config/sparc/linux64.mh (NATDEPFILES):
2382 * config/sparc/linux.mh (NATDEPFILES): Update.
2383 * config/s390/s390.mh (NATDEPFILES): Update.
2384 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2385 * config/powerpc/linux.mh (NATDEPFILES): Update.
2386 * config/pa/linux.mh (NATDEPFILES): Update.
2387 * config/mips/linux.mh (NATDEPFILES): Update.
2388 * config/m68k/linux.mh (NATDEPFILES): Update.
2389 * config/ia64/linux.mh (NATDEPFILES): Update.
2390 * config/i386/linux64.mh (NATDEPFILES): Update.
2391 * config/i386/linux.mh (NATDEPFILES): Update.
2392 * config/arm/linux.mh (NATDEPFILES): Update.
2393 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2394 * linux-nat.c: Update copyright. Include <sys/param.h>,
2395 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2396 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2397 (O_LARGEFILE): Possibly define.
2398 (_initialize_linux_nat, linux_proc_pending_signals)
2399 (add_line_to_sigset, linux_proc_xfer_memory)
2400 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2401 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2402 (struct linux_corefile_thread_data)
2403 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2404 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2405
2406 2004-09-16 Andrew Cagney <cagney@gnu.org>
2407
2408 * lin-lwp.c: Delete file.
2409 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2410 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2411 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2412 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2413 (linux_nat_attach, detach_callback, linux_nat_detach)
2414 (resume_callback, resume_clear_callback, linux_nat_resume)
2415 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2416 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2417 (status_callback, running_callback, count_events_callback)
2418 (select_singlestep_lwp_callback, select_event_lwp_callback)
2419 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2420 (child_wait, stop_and_resume_callback, linux_nat_wait)
2421 (kill_callback, kill_wait_callback, linux_nat_kill)
2422 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2423 (linux_nat_xfer_memory, linux_nat_thread_alive)
2424 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2425 (_initialize_linux_nat): New functions.
2426 * Makefile.in: Update all dependencies.
2427 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2428 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2429 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2430 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2431 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2432 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2433 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2434 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2435 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2436 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2437 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2438 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2439 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2440
2441 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2442
2443 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2444 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2445
2446 * configure.in: Don't comment out NATDEPFILES in the generated
2447 Makefile if NAT_FILE is unset.
2448 * configure: Regenerate.
2449
2450 2004-09-27 Andrew Cagney <cagney@gnu.org>
2451
2452 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2453 (insert_step_resume_breakpoint): Delete.
2454 (insert_step_resume_breakpoint_at_frame): New function.
2455 (insert_step_resume_breakpoint_at_sal): New function.
2456 (handle_inferior_event, step_into_function)
2457 (insert_step_resume_breakpoint): Simplify by using same.
2458
2459 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2460
2461 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2462
2463 * fbsd-proc.c: Remove file.
2464 * Makefile.in (fbsd-proc.o): Remove dependency.
2465
2466 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2467 code together.
2468
2469 * config/i386/nm-fbsd64.h: Remove file.
2470 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2471
2472 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2473
2474 * amd64-nat.h: Update copyright year.
2475 (amd64bsd_target): New prototype.
2476 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2477 (amd64bsd_target): New function.
2478 (amd64bsd_fetch_inferior_registers): Rename from
2479 fetch_inferior_registers. Make static.
2480 (amd64bsd_store_inferior_registers): Rename from
2481 store_inferior_registers. Make static.
2482 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2483 (_initialize_amd64fbsd_nat): Construct and add target vector.
2484 * amd64nbsd-nat.o: Include "target.h".
2485 (_initialize_amd64nbsd_nat): Construct and add target vector.
2486 * amd64obsd-nat.c: Include "target.h".
2487 (_initialize_amd64obsd_nat): Construct and add target vector.
2488 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2489 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2490 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2491 fbsd-nat.o.
2492 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2493 Remove infptrace.o and inftarg.o. Add inf-child.o and
2494 inf-ptrace.o.
2495 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2496 (amd64obsd-nat.o): Update dependencies.
2497
2498 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2499
2500 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2501 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2502 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2503 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2504 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2505
2506 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2507 Inline attach call.
2508 (inf_ptrace_detach): Inline detach call.
2509
2510 * configure.in: Check for waddstr instead of mvwaddstr when
2511 searching for curses library. Check for wborder.
2512 * configure, config.in: Regenerate.
2513 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2514 available.
2515
2516 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2517
2518 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2519
2520 Committed by Andrew Cagney.
2521 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2522 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2523 configuration.
2524 (fetch_register_using_p): Implement 'p' packet. Based on code by
2525 Fernando Nasser.
2526 (remote_fetch_registers): Call fetch_register_using_p.
2527 (init_all_packet_configs, show_remote_cmd)
2528 (_initialize_remote): Add p-packet.
2529
2530 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2531
2532 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2533 instead of call_ptrace. Call wait directly instead of
2534 ptrace_wait.
2535 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2536 (inf_ptrace_wait): Inline ptrace_wait call.
2537
2538 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2539
2540 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2541 rolled back instead.
2542
2543 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2544
2545 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2546 the new argument order.
2547
2548 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2549
2550 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2551 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2552 (struct gdbarch_tdep): Remove.
2553 (struct xstormy16_frame_cache): New frame cache structure.
2554 (xstormy16_register_byte, xstormy16_register_raw_size)
2555 (xstormy16_reg_virtual_type, xstormy16_register_type)
2556 (xstormy16_push_arguments, xstormy16_push_return_address)
2557 (xstormy16_pop_frame, xstormy16_store_struct_return)
2558 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2559 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2560 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2561 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2562 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2563 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2564 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2565 (xstormy16_extract_return_value, xstormy16_store_return_value):
2566 Regcachify. Drop useless struct convention handling.
2567 (xstormy16_register_type, xstormy16_return_value)
2568 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2569 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2570 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2571 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2572 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2573 (xstormy16_unwind_dummy_id) : New functions.
2574 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2575 of xstormy16_scan_prologue.
2576 (xstormy16_frame_unwind): New frame_unwind structure.
2577 (xstormy16_frame_base): New frame_base structure.
2578 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2579 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2580
2581 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2582
2583 * language.c (language_gdbarch_post_init): Fix off-by one error.
2584
2585 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2586
2587 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2588 (struct dwarf2_offset_and_type): New.
2589 (set_die_type, reset_die_and_siblings_types, get_die_type)
2590 (offset_and_type_hash, offset_and_type_eq): New functions.
2591 (read_structure_type, read_enumeration_type, read_array_type)
2592 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2593 (read_tag_reference_type, read_tag_const_type)
2594 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2595 (read_typedef, read_base_type, read_subrange_type): Use
2596 set_die_type.
2597
2598 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2599
2600 * Makefile.in (dwarf2read.o): Update dependencies.
2601 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2602 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2603 and read_in_chain.
2604 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2605 mark, and has_form_ref_addr.
2606 (struct dwarf2_per_cu_data): New.
2607 (dwarf2_max_cache_age): New.
2608 (dwarf2_build_psymtabs_hard): Free cached compilation units
2609 after loading. Create and manage the list of compilation units.
2610 Remove unnecessary NULL initialization. Fix indentation.
2611 (psymtab_to_symtab_1): Initialize all of CU.
2612 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2613 (find_partial_die): Use dwarf2_find_containing_comp_unit
2614 and load_comp_unit.
2615 (free_stack_comp_unit): Update comments. Clear the per-cu
2616 pointer. Handle aging.
2617 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2618 (age_cached_comp_units, free_one_cached_comp_unit)
2619 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2620 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2621 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2622 (show_dwarf2_cmd): New.
2623 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2624 and "maint show dwarf2 max-cache-age".
2625 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2626 externs.
2627 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2628 global.
2629
2630 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2631
2632 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2633 and dwarf2_cu struct pointer as arguments. Change function to use
2634 obstack if provided and use dwarf2_cu to determine language-specific
2635 separator.
2636 (partial_die_parent_scope): Change comment to include java. Use
2637 new version of typename_concat instead of obconcat.
2638 (partial_die_full_name): Use typename_concat.
2639 (read_namespace): Ditto.
2640 (read_enumeration_type): Use typename_concat instead of obconcat.
2641 (new_symbol): Ditto.
2642 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2643 (guess_structure_name): Ditto.
2644 (read_subroutine_type): Ditto.
2645 (read_structure_type): Ditto.
2646 (is_vtable_name): Add Java support.
2647 (determine_class_name): Switch to new typename_concat call.
2648 (determine_prefix): Switch to new typename_concat call.
2649 * jv-exp.y (FuncStart): New pattern.
2650 (MethodInvocation): Add support for simple function calls. Change
2651 warning message for other forms of inferior call currently not
2652 supported.
2653 * valarith.c (value_subscript): Treat an array with upper-bound
2654 of -1 as unknown size.
2655
2656 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2657
2658 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2659 (lookup_partial_symtab): Use symtab_to_fullname.
2660
2661 2004-09-19 Jim Blandy <jimb@redhat.com>
2662
2663 * minsyms.c (lookup_minimal_symbol): Doc fix.
2664
2665 2004-09-20 Andrew Cagney <cagney@gnu.org>
2666
2667 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2668 CHILD_RESUME.
2669 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2670 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2671 KILL_INFERIOR.
2672 * infptrace.c: Update.
2673
2674 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2675
2676 * symtab.c (output_source_filename): Mark first argument as const.
2677 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2678 for "info sources" output.
2679
2680 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2681
2682 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2683 <machine/vmparam.h>.
2684 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2685 (register_u_addr): Remove prototype.
2686
2687 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2688
2689 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2690 (i386bsd_fetch_inferior_registers): Rename from
2691 fetch_inferior_registers. Make static.
2692 (i386bsd_store_inferior_registers): Rename from
2693 store_inferior_registers. Make static.
2694 (i386bsd_target): New function.
2695 * i386bsd-nat.h: New file.
2696 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2697 "i386bsd-nat.h".
2698 (i386fbsd_resume): Rename from child_resume. Make static.
2699 (_initialize_i386fbsd_nat): Construct and add target vector.
2700 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2701 (_initialize_i386nbsd_nat): Construct and add target vector.
2702 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2703 Remove defines.
2704 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2705 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2706 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2707 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2708 (LOADLIBES): New variable.
2709 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2710 inf-ptrace.o. Remove inftarg.o.
2711 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2712 inf-ptrace.o. Remove inftarg.o.
2713 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2714 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2715 (LOADLIBES): New variable.
2716 * Makefile.in (i386bsd_nat_h): New variable.
2717 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2718 dependencies.
2719
2720 * sparc64nbsd-tdep.c: Include "objfiles.h".
2721 (sparc64nbsd_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 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2725 "nbsd-tdep.h".
2726 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2727 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2728 svr4_lp64_fetch_link_map_offsets.
2729 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2730 dependencies.
2731
2732 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2733 * fbsd-nat.h: New file.
2734 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2735 (fbsd_nat_h): New variable.
2736 (fbsd-nat.o): New dependency.
2737
2738 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2739 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2740
2741 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2742 comment.
2743
2744 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2745
2746 * ada-exp.y (type_int): New function to add layer of abstraction
2747 around references to expression types.
2748 (type_long): Ditto.
2749 (type_long_long): Ditto.
2750 (type_float): Ditto.
2751 (type_double): Ditto.
2752 (type_long_double): Ditto.
2753 (type_char): Ditto.
2754 (type_system_address): Ditto.
2755 (simple_exp): Use type_* functions in place of builtin_*
2756 variables.
2757 (exp): Ditto.
2758 (write_var_from_name): Ditto.
2759 (write_object_renaming): Ditto.
2760 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2761 declaration.
2762 (build_ada_types): Remove, replacing with...
2763 (ada_language_arch_info): New function to initialize primitive
2764 type vector in language_arch_info.
2765 (ada_array_length): Remove use of builtin_type_ada_int.
2766 (value_pos_atr): Ditto.
2767 (ada_evaluate_subexp): Ditto.
2768 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2769 builtin_type_ada_long_long, builtin_type_ada_char,
2770 builtin_type_ada_float, builtin_type_ada_double,
2771 builtin_type_ada_long_double, builtin_type_ada_natural,
2772 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2773 (ada_builtin_types): Remove.
2774 (ada_language_defn): Remove entries for la_builtin_type_vector and
2775 string_char_type and use ada_language_arch_info.
2776 (_initialize_ada_language): Do type-vector initialization along
2777 the lines of c-lang.c.
2778 (ada_create_fundamental_type): Break up line.
2779 (ada_dump_symtab): Remove unused function.
2780 (enum ada_primitive_types): Define.
2781 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2782 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2783 builtin_type_ada_float, builtin_type_ada_double,
2784 builtin_type_ada_long_double, builtin_type_ada_natural,
2785 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2786 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2787 (processInt): Ditto.
2788 (processReal): Ditto.
2789 (name_lookup): Ditto.
2790 * ada-typeprint.c (print_range): Use builtin_type_int, not
2791 builtin_type_ada_int.
2792
2793 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2794
2795 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2796
2797 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2798 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2799 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2800 * configure.in: Improve checks for curses library by checking for
2801 mvwaddstr instead of initscr. Drop HP curses in favour of
2802 standard curses on HP-UX.
2803 * configure: Regenerated.
2804
2805 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2806
2807 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2808 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2809 Minor formatting changes.
2810 (empty_array): Slight rewrite for formatting.
2811 (emit_char,parse,ada_language_defn,build_ada_types,
2812 ada_is_exception_sym, _initialize_ada_language): Move
2813 definitions around.
2814 (ada_dump_symtab): Remove unused definition.
2815 (ada_maybe_exception_partial_symbol): Remove unused definition.
2816
2817 2004-09-16 Andrew Cagney <cagney@gnu.org>
2818
2819 * inf-child.c: Include "gdb_string.h".
2820 (inf_child_core_file_to_sym_file): Delete.
2821 (inf_child_target): Set to_fetch_registers and to_store_registers.
2822 * inf-ptrace.c: Include "gdb_string.h".
2823 * Makefile.in: Update all dependencies.
2824
2825 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2826 problem.
2827
2828 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2829
2830 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2831 call to heuristic_proc_desc. Remove code that became redundant
2832 as a consequence.
2833 (read_next_frame_reg): Remove special case for SP_REGNUM.
2834 (set_reg_offset): Fix small typo.
2835 (reset_saved_regs): New procedure.
2836 (mips32_heuristic_proc_desc): No longer compute a fake
2837 procedure descriptor. Compute the full frame cache instead.
2838 Some minor comment reformatting.
2839
2840 2004-09-14 Andrew Cagney <cagney@gnu.org>
2841
2842 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2843 maintainer.
2844
2845 * thread-db.c (thread_db_new_objfile): Assume that there is a
2846 child process.
2847
2848 2004-09-13 Jim Blandy <jimb@redhat.com>
2849
2850 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2851 so that its storage isn't referenced after its lifetime ends.
2852
2853 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2854 and never assigned to. Delete it, and the 'if (use_buffer)'
2855 clauses. Delete 'raw_buffer', since it is now unused.
2856
2857 2004-09-13 Andrew Cagney <cagney@gnu.org>
2858
2859 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2860 * configure: Re-generate.
2861 * nlm/Makefile.in (TAGS): Update.
2862 * Makefile.in (TAGS): Update.
2863 * config/vax/nbsd.mt (TM_FILE): Update.
2864 * config/sparc/vxworks.mt (TM_FILE): Update.
2865 * config/sparc/sol2.mt (TM_FILE): Update.
2866 * config/sparc/sol2-64.mt (TM_FILE): Update.
2867 * config/sparc/obsd64.mt (TM_FILE): Update.
2868 * config/sparc/obsd.mt (TM_FILE): Update.
2869 * config/sparc/nbsd64.mt (TM_FILE): Update.
2870 * config/sparc/nbsd.mt (TM_FILE): Update.
2871 * config/sparc/linux64.mt (TM_FILE): Update.
2872 * config/sparc/linux.mt (TM_FILE): Update.
2873 * config/sparc/fbsd.mt (TM_FILE): Update.
2874 * config/sh/wince.mt (TM_FILE): Update.
2875 * config/sh/nbsd.mt (TM_FILE): Update.
2876 * config/sh/linux.mt (TM_FILE): Update.
2877 * config/sh/embed.mt (TM_FILE): Update.
2878 * config/s390/s390.mt (TM_FILE): Update.
2879 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2880 * config/rs6000/rs6000.mt (TM_FILE): Update.
2881 * config/rs6000/aix4.mt (TM_FILE): Update.
2882 * config/powerpc/vxworks.mt (TM_FILE): Update.
2883 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2884 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2885 * config/powerpc/obsd.mt (TM_FILE): Update.
2886 * config/powerpc/nbsd.mt (TM_FILE): Update.
2887 * config/powerpc/linux.mt (TM_FILE): Update.
2888 * config/powerpc/aix.mt (TM_FILE): Update.
2889 * config/pa/obsd.mt (TM_FILE): Update.
2890 * config/pa/linux.mt (TM_FILE): Update.
2891 * config/pa/hppahpux.mt (TM_FILE): Update.
2892 * config/pa/hppa64.mt (TM_FILE): Update.
2893 * config/pa/hppa.mt (TM_FILE): Update.
2894 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2895 * config/mips/wince.mt (TM_FILE): Update.
2896 * config/mips/vxmips.mt (TM_FILE): Update.
2897 * config/mips/nbsd.mt (TM_FILE): Update.
2898 * config/mips/linux.mt (TM_FILE): Update.
2899 * config/mips/irix6.mt (TM_FILE): Update.
2900 * config/mips/irix5.mt (TM_FILE): Update.
2901 * config/mips/embed.mt (TM_FILE): Update.
2902 * config/m68k/vxworks68.mt (TM_FILE): Update.
2903 * config/m68k/st2000.mt (TM_FILE): Update.
2904 * config/m68k/os68k.mt (TM_FILE): Update.
2905 * config/m68k/obsd.mt (TM_FILE): Update.
2906 * config/m68k/nbsd.mt (TM_FILE): Update.
2907 * config/m68k/monitor.mt (TM_FILE): Update.
2908 * config/m68k/linux.mt (TM_FILE): Update.
2909 * config/m68k/cisco.mt (TM_FILE): Update.
2910 * config/ia64/linux.mt (TM_FILE): Update.
2911 * config/ia64/aix.mt (TM_FILE): Update.
2912 * config/ia64/ia64.mt (TM_FILE): Update.
2913 * config/i386/vxworks.mt (TM_FILE): Update.
2914 * config/i386/obsd64.mt (TM_FILE): Update.
2915 * config/i386/obsd.mt (TM_FILE): Update.
2916 * config/i386/nto.mt (TM_FILE): Update.
2917 * config/i386/nbsd64.mt (TM_FILE): Update.
2918 * config/i386/nbsd.mt (TM_FILE): Update.
2919 * config/i386/linux64.mt (TM_FILE): Update.
2920 * config/i386/linux.mt (TM_FILE): Update.
2921 * config/i386/i386sol2.mt (TM_FILE): Update.
2922 * config/i386/i386lynx.mt (TM_FILE): Update.
2923 * config/i386/fbsd64.mt (TM_FILE): Update.
2924 * config/i386/fbsd.mt (TM_FILE): Update.
2925 * config/i386/cygwin.mt (TM_FILE): Update.
2926 * config/h8300/h8300.mt (TM_FILE): Update.
2927 * config/frv/frv.mt (TM_FILE): Update.
2928 * config/cris/cris.mt (TM_FILE): Update.
2929 * config/arm/wince.mt (TM_FILE): Update.
2930 * config/arm/nbsd.mt (TM_FILE): Update.
2931 * config/arm/linux.mt (TM_FILE): Update.
2932 * config/arm/embed.mt (TM_FILE): Update.
2933 * config/alpha/nbsd.mt (TM_FILE): Update.
2934 * config/alpha/fbsd.mt (TM_FILE): Update.
2935 * config/alpha/alpha.mt (TM_FILE): Update.
2936 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2937 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2938
2939 Eliminate event_loop_p, always has the value 1.
2940 * defs.h (event_loop_p): Delete macro.
2941 * breakpoint.c (until_break_command): Simplify.
2942 * utils.c (prompt_for_continue): Simplify.
2943 * tracepoint.c (read_actions): Simplify.
2944 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2945 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2946 (set_prompt, init_main): Simplify.
2947 (init_signals, disconnect): Delete, unused.
2948 * remote.c (remote_async_resume)
2949 (extended_remote_async_create_inferior): Simplify.
2950 * mi/mi-interp.c (mi_input): Delete, unused.
2951 (mi_interpreter_resume, mi_command_loop): Simplify.
2952 * interps.c (current_interp_command_loop): Simplify.
2953 * infrun.c (proceed): Simplify.
2954 * infcmd.c (run_command, continue_command, step_1, jump_command)
2955 (until_command, advance_command, finish_command)
2956 (interrupt_target_command): Simplify.
2957 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2958
2959 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2960 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2961 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2962 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2963 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2964 * mips-tdep.c (mips_dump_tdep): Do not print same.
2965
2966 2004-09-12 Andrew Cagney <cagney@gnu.org>
2967
2968 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2969 const.
2970 * Makefile.in (valprint.o): Delete explict rule.
2971
2972 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2973 reported by Dave Anderson.
2974
2975 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2976
2977 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2978
2979 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2980 Andrew Cagney <cagney@gnu.org>
2981
2982 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2983 (mi_cmd_data_list_register_values)
2984 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2985 the register number computation.
2986
2987 2004-09-12 Andrew Cagney <cagney@gnu.org>
2988
2989 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2990 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2991 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2992 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2993 target.
2994 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2995 inf-ptrace.o and inf-child.o.
2996 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2997 * Makefile.in: Update dependencies.
2998
2999 2004-09-11 Andrew Cagney <cagney@gnu.org>
3000
3001 * language.c (hex_string, hex_string_custom): Move from here ...
3002 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3003 (CELLSIZE): Increase to 50.
3004 * language.h (hex_string, hex_string_custom): Move from here ...
3005 * defs.h: ... to here.
3006 * Makefile.in: Update all dependencies.
3007
3008 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
3009
3010 * language.c (local_hex_format_custom): Remove.
3011 (local_hex_string): Rename to hex_string, use C format, and move to
3012 utils.c
3013 (local_hex_string_custom): Rename to hex_string_custom and change
3014 interface. Now uses C format. Move to utils.c
3015 (local_octal_format_custom): Remove.
3016 (local_decimal_format_custom): Remove.
3017 (unknown_language_defn): Remove language-specific number
3018 formatting entries.
3019 (auto_language_defn): Ditto.
3020 (local_language_defn): Ditto.
3021 * language.h (struct language_format_info): Delete declaration.
3022 (struct language_defn): Remove language_format_info fields
3023 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3024 (local_binary_format): Remove macro.
3025 (local_binary_format_prefix): Remove macro.
3026 (local_binary_format_specifier): Remove macro.
3027 (local_binary_format_suffix): Remove macro.
3028 (local_octal_format): Remove macro.
3029 (local_octal_format_prefix): Remove macro.
3030 (local_octal_format_specifier): Remove macro.
3031 (local_octal_format_suffix): Remove macro.
3032 (local_decimal_format): Remove macro.
3033 (local_decimal_format_prefix): Remove macro.
3034 (local_decimal_format_specifier): Remove macro.
3035 (local_decimal_format_suffix): Remove macro.
3036 (local_hex_format): Remove macro.
3037 (local_hex_format_prefix): Remove macro.
3038 (local_hex_format_specifier): Remove macro.
3039 (local_hex_format_suffix): Remove macro.
3040 (local_decimal_format_custom): Remove.
3041 (local_octal_format_custom): Remove.
3042 (local_hex_format_custom): Remove.
3043 (local_hex_string): Rename to hex_string and move to defs.h.
3044 (local_hex_string_custom): Rename to hex_string_custom, change
3045 interface, and move to defs.h.
3046 * utils.c: (int_string): New function.
3047 (hex_string): New function (from language.c).
3048 (hex_string_custom): New function (from language.c).
3049 (octal2str): New function.
3050 (decimal2str): Add width parameter.
3051 (paddr_u): Use new decimal2str interface.
3052 (paddr_d): Ditto.
3053 * defs.h (hex_string): Declare.
3054 (hex_string_custom): Declare.
3055 (int_string): Declare.
3056 * printcmd.c (print_scalar_formatted): Remove localized binary
3057 formatting.
3058 * valprint.c (print_longest): Use int_string.
3059 (print_floating): Use C hex format.
3060 (print_hex_chars): Ditto.
3061 (print_binary_chars): Remove language-specific formatting.
3062 (print_octal_chars): Use C octal format.
3063 (print_decimal_chars): Delocalize format.
3064 (print_decimal): Remove.
3065 * ada-lang.c (ada_language_defn): Remove language-specific number
3066 formatting entries.
3067 * p-lang.c (pascal_language_defn): Ditto.
3068 * c-lang.c (c_language_defn): Ditto.
3069 (cplus_language_defn): Ditto.
3070 (asm_language_defn): Ditto.
3071 (minimal_language_defn): Ditto.
3072 * f-lang.c (f_language_defn): Ditto.
3073 * jv-lang.c (java_language_defn): Ditto.
3074 * m2-lang.c (m2_language_defn): Ditto.
3075 * scm-lang.c (scm_language_defn): Ditto.
3076 * objc-lang.c (objc_language_defn): Ditto.
3077 * memattr.c (mem_info_command): Use renamed hex_string_custom with
3078 new interface.
3079 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3080 * ui-out.c (ui_out_field_core_addr): Ditto.
3081 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3082 * exec.c (print_section_info): Ditto.
3083 * i387-tdep.c (print_i387_status_word): Ditto.
3084 (print_i387_control_word): Ditto.
3085 (i387_print_float_info): Ditto.
3086 * maint.c (maint_print_section_info): Ditto.
3087 * solib.c (info_sharedlibrary_command): Ditto.
3088 * somsolib.c (som_sharedlibrary_info_command): Ditto.
3089 * symtab.c (print_msymbol_info): Ditto.
3090 * tracepoint.c (tracepoints_info): Ditto.
3091 * solib-frv.c (lm_base): Ditto.
3092 (frv_current_sos): Ditto.
3093 (enable_break2): Ditto.
3094 (enable_break): Ditto.
3095 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3096 (process_one_symbol): Ditto.
3097 * infcmd.c (program_info): Ditto.
3098 * mdebugread.c (parse_partial_symbols): Ditto.
3099 * symfile.c (add_symbol_file_command): Ditto.
3100 * cli/cli-cmds.c (edit_command): Ditto.
3101 (list_command): Ditto.
3102 * infcall.c (call_function_by_hand): Ditto.
3103 * remote-vx.c (vx_run_files_info): Ditto.
3104 (vx_wait): Ditto.
3105 (vx_attach): Ditto.
3106 (vx_detach): Ditto.
3107 (vx_kill): Ditto.
3108 * aix-thread.c (pdc_symbol_addrs): Ditto.
3109 (pdc_read_regs): Ditto.
3110 (pdc_write_regs): Ditto.
3111 (pdc_read_data): Ditto.
3112 (pdc_write_data): Ditto.
3113 * d10v-tdep.c (display_trace): Ditto.
3114 * rs6000-nat.c (find_toc_address): Ditto.
3115 * aix-thread.c: Don't include language.h.
3116 * buildsym.c: Ditto.
3117 * dbxread.c: Ditto.
3118 * mdebugread.c: Ditto.
3119 * rs6000-nat.c: Ditto.
3120 * buildsym.c (make_blockvector): Use renamed hex_string.
3121
3122 2004-09-10 Jason Molenda (jmolenda@apple.com)
3123
3124 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3125 chars after 'if' or 'while' commands in user-defined commands.
3126
3127 2004-09-08 Jim Blandy <jimb@redhat.com>
3128
3129 Fix bug reported and analyzed by Olivier Crete:
3130 * symfile.c (copy_section_addr_info): New function.
3131 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3132 original set of address arguments, instead of handwritten code
3133 that uses one length to allocate and a different length to
3134 initialize. Use make_cleanup_free_section_addr_info.
3135 * symfile.h (copy_section_addr_info): New declaration.
3136 * utils.c: #include "symfile.h".
3137 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3138 New functions.
3139 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3140 * Makefile.in (utils.o): Update dependencies.
3141
3142 2004-09-08 Andrew Cagney <cagney@gnu.org>
3143
3144 * thread-db.c (keep_thread_db): Delete.
3145 (thread_db_new_objfile, thread_db_create_inferior)
3146 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3147
3148 2004-09-08 Mark Kettenis <kettenis@gnu.org>
3149
3150 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3151 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3152 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3153 (i386_frameless_signal_p): Remove prototype.
3154 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3155 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3156 I386_SSE_NUM_REGS.
3157 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3158 instead of FP0_REGNUM.
3159 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3160 of FP0_REGNUM and FPC_REGNUM.
3161
3162 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3163 (sunos_solib_create_inferior_hook): Don't call
3164 sunos_relocate_main_executable.
3165
3166 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3167 solib_svr4_fetch_link_map_offsets to
3168 svr4_ilp32_fetch_link_map_offsets.
3169 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3170 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3171 svr4_ilp32_fetch_link_map_offsets.
3172 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3173
3174 2004-09-07 Jim Blandy <jimb@redhat.com>
3175
3176 * frame.h (frame_register): Doc fix.
3177
3178 2004-09-07 Andrew Cagney <cagney@gnu.org>
3179
3180 * vx-share/wait.h: Delete #ifdef USG.
3181 * utils.c (request_quit): Ditto.
3182 * tui/tui.c (tui_reset): Ditto.
3183 * remote.c: Ditto.
3184 * remote-sds.c: Ditto.
3185 * remote-rdi.c: Ditto.
3186 * mdebugread.c: Ditto.
3187 * m68klinux-nat.c: Ditto.
3188 * infttrace.c: Ditto.
3189 * infptrace.c: Ditto.
3190 * i386v-nat.c: Ditto.
3191 * exec.c: Ditto.
3192 * dbxread.c: Ditto.
3193 * core-aout.c: Ditto.
3194
3195 2004-09-05 Joel Brobecker <brobecker@gnat.com>
3196
3197 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3198 heuristic_proc_desc.
3199 (mips_insn32_frame_cache): Likewise.
3200
3201 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3202
3203 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3204 left behind by error.
3205
3206 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3207
3208 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3209 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3210
3211 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3212
3213 * config/rs6000/xm-aix4.h: Remove this file.
3214 * config/rs6000/aix4.mh (XM_FILE): Delete.
3215
3216 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3217
3218 * config/rs6000/xm-rs6000.h: Remove this file.
3219 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3220
3221 2004-09-03 Andrew Cagney <cagney@gnu.org>
3222
3223 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3224 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3225 only use.
3226
3227 * mips-tdep.c (temp_saved_regs): Delete.
3228 (set_reg_offset): Replace saved_regs parameter with this_cache.
3229 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3230 (mips32_heuristic_proc_desc): Add this_cache parameter.
3231 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3232 (after_prologue): Pass a NULL this_cache.
3233
3234 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3235 non-kernel trap prologues.
3236
3237 * mips-tdep.c (find_proc_desc): Delete function.
3238 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3239 simplify.
3240 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3241 mips_insn32_frame_cache.
3242
3243 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3244 Simplify as NEXT_FRAME is NULL.
3245 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3246
3247 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3248 local variable.
3249 (mips_skip_prologue): Update.
3250
3251 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3252 "cur_frame" parameter.
3253 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3254 (mips_insn32_frame_cache, find_proc_desc): Update
3255
3256 * config/vax/nm-obsd.h: Delete file.
3257 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3258 * config/vax/nm-nbsd.h: Delete file.
3259 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3260 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3261 * config/sh/nm-nbsd.h: Delete file.
3262 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3263 * config/rs6000/nm-rs6000ly.h: Delete file.
3264 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3265 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3266 * config/powerpc/nm-obsd.h: Delete file.
3267 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3268 * config/powerpc/nm-nbsd.h: Delete file.
3269 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3270 * config/pa/nm-obsd.h: Delete file.
3271 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3272 * config/mips/nm-nbsd.h: Delete file.
3273 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3274 * config/m88k/nm-obsd.h: Delete file.
3275 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3276 * config/m68k/nm-nbsd.h: Delete file.
3277 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3278 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3279 * config/i386/nm-nbsd.h: Delete file.
3280 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3281 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3282 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3283 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3284 * config/i386/nm-i386lynx.h: Delete file.
3285 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3286 * config/arm/nm-nbsd.h: Delete file.
3287 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3288 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3289
3290 * config/i386/tm-fbsd.h: Delete file.
3291 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3292 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3293
3294 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3295 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3296 * config/rs6000/aix4.mt (TM_FILE): Set to
3297 config/rs6000/tm-rs6000.h.
3298 * config/powerpc/tm-ppc-aix.h: Delete file.
3299 * config/powerpc/aix.mt (TM_FILE): Set to
3300 config/rs6000/tm-rs6000.h.
3301 * config/m68k/tm-linux.h: Delete file.
3302 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3303 * config/i386/tm-linux64.h: Delete file.
3304 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3305 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3306
3307 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3308 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3309 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3310 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3311 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3312 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3313 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3314 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3315 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3316
3317 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3318 gdb_host_cpu.
3319
3320 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3321
3322 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3323 Minor reformatting. Some code factoring.
3324
3325 2004-09-02 Andrew Cagney <cagney@gnu.org>
3326
3327 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3328 * config/vax/tm-nbsd.h: Delete file.
3329 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3330 * config/sparc/tm-vxworks.h: Delete file.
3331 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3332 * config/sparc/tm-nbsd.h: Delete file.
3333 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3334 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3335 * config/sparc/tm-linux.h: Delete file.
3336 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3337 * config/s390/tm-linux.h: Delete file.
3338 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3339 * config/pa/tm-bsd.h: Delete file.
3340 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3341 * config/m68k/tm-obsd.h: Delete file.
3342 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3343 * config/m68k/tm-nbsd.h: Delete file.
3344 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3345 * config/i386/tm-vxworks.h: Delete file.
3346 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3347 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3348 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3349 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3350 * config/i386/tm-nbsd.h: Delete file.
3351 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3352 * config/i386/tm-i386lynx.h: Delete file.
3353 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3354 * config/cris/tm-cris.h: Delete file.
3355
3356 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3357 * configure: Re-generate.
3358 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3359 * config/arm/tm-nbsd.h: Delete file.
3360
3361 * config/powerpc/tm-ppcle-sim.h: Delete.
3362 * config/powerpc/tm-ppcle-eabi.h: Delete.
3363 * config/powerpc/tm-nbsd.h: Delete.
3364 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3365 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3366 tm-ppcle-eabi.h.
3367
3368 * config/i386/nto.mh (NAT_FILE): Delete.
3369 * config/i386/nm-nto.h: Delete.
3370
3371 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3372 * config/m68k/tm-os68k.h: Ditto.
3373 * config/m68k/tm-monitor.h: Ditto.
3374 * config/m68k/tm-cisco.h: Ditto.
3375 * config/m68k/st2000.mt (TM_FILE): Delete.
3376 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3377 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3378 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3379 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3380
3381 * config/m68k/tm-st2000.h: Delete.
3382 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3383 * config/sparc/fbsd.mt (TM_FILE): Delete.
3384 * config/sparc/tm-fbsd.h: Delete.
3385
3386 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3387 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3388 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3389
3390 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3391 GDB_TM_FILE and GDB_XM_FILE.
3392 * gdbarch.c: Re-generate.
3393 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3394 quotes in macro definition.
3395 * configure.in: Re-generate.
3396
3397 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3398 validating architecture methods.
3399 * gdbarch.c: Re-generate.
3400
3401 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3402 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3403 GDB_MULTI_ARCH_PARTIAL.
3404 * gdbarch.h: Re-generate.
3405
3406 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3407 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3408 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3409 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3410 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3411 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3412 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3413 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3414 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3415 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3416 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3417 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3418
3419 2004-09-01 Andrew Cagney <cagney@gnu.org>
3420
3421 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3422 and main_func_highpc.
3423 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3424 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3425 * nlmread.c (nlm_symfile_read): Update.
3426
3427 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3428
3429 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3430 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3431 (find_proc_desc): Remove dead code.
3432
3433 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3434
3435 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3436
3437 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3438
3439 * observer.sh: Add struct so_list declaration.
3440 * Makefile.in: Add dependencies on observer.h for solib.c and
3441 breakpoint.c.
3442 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3443 function.
3444 (_initialize_breakpoint): Register
3445 disable_breakpoints_in_unloaded_shlib as an observer of the
3446 "solib unloaded" observation event.
3447 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3448 call decode_line_1 so unfound breakpoint errors are silent.
3449 * solib.c (update_solib_list): When a solib is discovered to have
3450 been unloaded by the program, notify all observers of the
3451 "solib unloaded" observation event.
3452
3453 2004-09-01 Andrew Cagney <cagney@gnu.org>
3454
3455 * frame.c: Include "objfiles.h".
3456 (inside_main_func): New function.
3457 (get_prev_frame): Use new inside_main_func.
3458 * Makefile.in (frame.o): Update dependencies.
3459 * defs.h (inside_main_func): Delete declaration.
3460 * blockframe.c (inside_main_func): Delete function.
3461
3462 2004-08-31 Jim Blandy <jimb@redhat.com>
3463
3464 * dwarf2read.c (is_vtable_name): New function, based on logic from
3465 read_structure_type, but passing the correct length to strncmp,
3466 and using 'sizeof' instead of 'strlen'.
3467 (read_structure_type): Call it.
3468
3469 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3470
3471 * config/powerpc/aix.mh: Add comment.
3472
3473 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3474
3475 * MAINTAINERS: Add self to Write-After-Approval.
3476
3477 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3478
3479 * MAINTAINERS: Add self to Write-After-Approval.
3480
3481 2004-08-30 Andrew Cagney <cagney@gnu.org>
3482
3483 Fix PR breakpoints/1757.
3484 * infrun.c (struct execution_control_state): Replace
3485 remove_breakpoints_on_following_step with
3486 step_after_step_resume_breakpoint.
3487 (init_execution_control_state): Update.
3488 (handle_inferior_event): For signals, when stepping off a
3489 breakpoint, set step_after_step_resume_breakpoint. When
3490 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3491 (keep_going): Delete code handling
3492 remove_breakpoints_on_following_step.
3493
3494 2004-08-29 David Lecomber <david@streamline-computing.com>
3495
3496 Fix PR gdb/648
3497 * language.h (enum array_ordering): New enum.
3498 * language.h (struct language_defn): New la_array_ordering
3499 attribute.
3500 * language.c (unknown_language_defn, auto_language_defn)
3501 (local_language_defn): Ditto.
3502 * ada-lang.c (ada_language_defn): Ditto.
3503 * c-lang.c (c_language_defn, cplus_language_defn)
3504 (asm_language_defn, minimal_language_defn): Ditto.
3505 * f-lang.c (f_language_defn): Ditto.
3506 * jv-lang.c (java_language_defn): Ditto.
3507 * m2-lang.c (f_language_defn): Ditto.
3508 * objc-lang.c (objc_language_defn): Ditto.
3509 * p-lang.c (pascal_language_defn): Ditto.
3510 * scm-lang.c (scm_language_defn): Ditto.
3511 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3512 oriented large to small in type structure.
3513 * dwarf2read.c (read_array_order): New function.
3514 (read_array_type): Use read_array_order to check row/column
3515 major ordering.
3516
3517 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3518
3519 * target.c (target_resize_to_sections): Check
3520 current_target.to_sections for an old value when updating.
3521
3522 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3523
3524 * procfs.c (dbx_link_bpt_addr): New static global variable.
3525 (dbx_link_shadow_contents): New static global variable.
3526 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3527 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3528 if we just hit it.
3529 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3530 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3531 from run to run.
3532 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3533 after the inferior has been forked.
3534 (remove_dbx_link_breakpoint): New function.
3535 (dbx_link_addr): New function.
3536 (insert_dbx_link_bpt_in_file): New function.
3537 (insert_dbx_link_bpt_in_region): New function.
3538 (insert_dbx_link_breakpoint): New function.
3539 (proc_trace_syscalls_1): New function, extracted from
3540 proc_trace_syscalls.
3541 (proc_trace_syscalls): Replace extract code by call to
3542 proc_trace_syscalls_1.
3543 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3544 is no longer valid.
3545
3546 2004-08-25 Jim Blandy <jimb@redhat.com>
3547
3548 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3549
3550 2004-08-25 Andrew Cagney <cagney@gnu.org>
3551
3552 * infrun.c (struct execution_control_state): Delete field
3553 "stepping_through_sigtramp".
3554 (init_execution_control_state): Do not set same.
3555 (context_switch): Do not pass same to save_infrun_state and
3556 load_infrun_state.
3557 * gdbthread.h (struct thread_info): Delete field
3558 stepping_through_sigtramp.
3559 (save_infrun_state, load_infrun_state): Delete parameter
3560 stepping_through_sigtramp.
3561 * thread.c (load_infrun_state, save_infrun_state): Update.
3562
3563 * infrun.c: Re-indent. Move expression operators to the beginning
3564 of the line. Remove long disabled #if 0 code.
3565
3566 2004-08-24 Andrew Cagney <cagney@gnu.org>
3567
3568 * doublest.h (floatformat_ieee_quad): Rename
3569 floatformat_ia64_quad.
3570 * doublest.c (floatformat_ieee_quad): Rename
3571 floatformat_ia64_quad.
3572 (_initialize_doublest): Update.
3573
3574 2004-08-24 Jim Blandy <jimb@redhat.com>
3575
3576 * dwarf2expr.h (struct dwarf_expr_context): New members
3577 'num_pieces' and 'pieces', for returning the result of an
3578 expression that uses DW_OP_piece.
3579 (struct dwarf_expr_piece): New struct type.
3580 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3581 pieces.
3582 (free_dwarf_expr_context): Free pieces, if any.
3583 (add_piece): New function.
3584 (execute_stack_op): Implement DW_OP_piece.
3585 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3586 expression is a list of pieces, print an error message.
3587 (dwarf2_loc_desc_needs_frame): If the expression yields
3588 pieces, and any piece is in a register, then we need a frame.
3589
3590 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3591 the stack until we've decided what sort of result the evaluation
3592 has produced. Use separate variables, with more specific names.
3593
3594 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3595
3596 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3597 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3598 (arm_netbsd_init_abi_common): Register them.
3599
3600 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3601
3602 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3603
3604 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3605 safe_frame_unwind_memory instead of target_read_memory.
3606
3607 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3608 Reorder includes.
3609 (fetch_register, store_register): Remove prototypes.
3610 (child_resume): Reorganize code and comments such that it is
3611 grouped a bit more logically.
3612 (attach): Explicitly compare errno against 0.
3613 (detach): Likewise. Use perror_with_name instead of
3614 print_sys_errmsg.
3615 * Makefile.in (infptrace.o): Update dependencies.
3616
3617 * ia64-linux-nat.c: Update copyright year.
3618 (fetch_debug_register, store_debug_register)
3619 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3620 PTRACE_TYPE_ARG3.
3621 * config/ia64/nm-linux.h: Update copyright year.
3622 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3623
3624 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3625 from CORE_ADDR to struct frame_info *. Use
3626 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3627 (amd64_linux_sigtramp_p): Adjust for changed signature of
3628 and64_linux_sigtramp_start
3629
3630 * gdb_ptrace.h: GNU/Linux.
3631
3632 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3633 Remove defines.
3634
3635 * infptrace.c: Include "gdb_assert.h".
3636 (PTRACE_XFER_TYPE): Remove define.
3637 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3638 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3639 Tweak comment.
3640 (fetch_inferior_registers, store_inferior_registers): Remove
3641 redundant culry braces. Tweak comment. s/regno/regnum.
3642 * Makefile.in (infptrace.o): Update dependencies.
3643
3644 * configure.in: Change test for return type of ptrace to default
3645 to `long' instead of `int'.
3646 * configure: Regenerate.
3647
3648 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3649
3650 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3651
3652 * configure.in: Check for ttrace function.
3653 * configure, config.in: Regenerate.
3654
3655 * gdb_ptrace.h: New file.
3656 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3657 <sys/ptrace.h>.
3658 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3659 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3660 (attach): Don't define PT_ATTACH.
3661 (detach): Don't define PT_DETACH.
3662 * Makefile.in (gdb_ptrace_h): New variable.
3663 (infptrace.o): Update dependencies.
3664
3665 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3666
3667 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3668 instead of `int' if not already defined.
3669 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3670 PTRACE_TYPE_ARG3.
3671 * infptrace.c (call_ptrace): Revert change that replaced
3672 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3673
3674 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3675
3676 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3677 Remove defines.
3678
3679 * linux-nat.c (kill_inferior): Add missing third and fourth
3680 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3681
3682 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3683 PTRACE_TYPE_RET.
3684
3685 * proc-why.c (proc_prettyfprint_why): Fix format string.
3686
3687 * solib-osf.c (osf_current_sos): Remove unsused label.
3688
3689 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3690 curses headers.
3691 * configure, config.in: Regenerate.
3692 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3693 <ncurses/ncurses.h>.
3694
3695 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3696 * config/nm-nbsd.h: Update copyright year.
3697 (PTRACE_ARG3_TYPE): Remove define.
3698
3699 * sparc-nat.c (fetch_inferior_registers)
3700 (store_inferior_registers, sparc_xfer_wcookie):
3701 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3702
3703 * alphabsd-nat.c (fetch_inferior_registers):
3704 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3705 PTRACE_TYPE_ARG3.
3706 * amd64bsd-nat.c (fetch_inferior_registers)
3707 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3708 PTRACE_TYPE_ARG3.
3709 * armnbsd-nat.c: Update copyright year.
3710 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3711 (store_register, store_regs, store_fp_register, store_fp_regs):
3712 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3713 * hppabsd-nat.c (fetch_inferior_registers)
3714 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3715 PTRACE_TYPE_ARG3.
3716 * i386bsd-nat.c (fetch_inferior_registers)
3717 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3718 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3719 * m68kbsd-nat.c (fetch_inferior_registers)
3720 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3721 PTRACE_TYPE_ARG3.
3722 * m88kbsd-nat.c (fetch_inferior_registers)
3723 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3724 PTRACE_TYPE_ARG3.
3725 * mipsnbsd-nat.c: Update copyright year.
3726 (fetch_inferior_registers, store_inferior_registers):
3727 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3728 * ns32knbsd-nat.c: Update copyright year.
3729 (fetch_inferior_registers, store_inferior_registers):
3730 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3731 * ppcnbsd-nat.c (fetch_inferior_registers):
3732 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3733 PTRACE_TYPE_ARG3.
3734 * ppcobsd-nat.c (fetch_inferior_registers):
3735 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3736 PTRACE_TYPE_ARG3.
3737 * shnbsd-nat.c: Update copyright year.
3738 (fetch_inferior_registers, store_inferior_registers):
3739 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3740 * vaxbsd-nat.c (fetch_inferior_registers)
3741 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3742 PTRACE_TYPE_ARG3.
3743
3744 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3745 PTRACE_TYPE_ARG3.
3746 * infptrace.c (call_ptrace, child_resume, attach, detach)
3747 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3748 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3749 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3750 PTRACE_TYPE_ARG3.
3751
3752 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3753
3754 * defs.h: Remove out-of-date comment.
3755 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3756 [!GETENV_PROVIDED] (getenv): Remove prototype.
3757
3758 * standalone.c: Remove file.
3759 * Makefile.in (standalone.o): Remove dependency.
3760
3761 * i386-linux-nat.c (dummy_sse_values): Remove function and
3762 prototype.
3763 (i386_linux_dr_get): Fix typo in comment.
3764 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3765
3766 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3767
3768 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3769 from declaration.
3770 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3771 from definition.
3772
3773 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3774
3775 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3776 parenthesis in definition.
3777 * configure: Regenerated.
3778
3779 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3780
3781 * PROBLEMS: Mention build/1411.
3782
3783 2004-08-09 Robert Millan <robertmh@gnu.org>
3784
3785 Committed by Nathanael Nerode.
3786 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3787 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3788
3789 2004-08-12 Andrew Cagney <cagney@gnu.org>
3790
3791 * NEWS: Mention fixes in GDB 6.2.1.
3792 * PROBLEMS: Remove mention of mips-irix.
3793
3794 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3795
3796 * config/powerpc/xm-aix.h: Delete.
3797 * config/powerpc/aix.mh (MH_FILE): Remove.
3798 * config/powerpc/aix432.mh (MH_FILE): Remove.
3799
3800 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3801
3802 * config/powerpc/aix.mh: Remove obsolete comment.
3803 * config/powerpc/aix432.mh: Likewise.
3804
3805 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3806
3807 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3808
3809 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3810
3811 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3812 this file is now empty.
3813 * config/xm-aix4.h: Remove, this file is no longer included
3814 anywhere.
3815
3816 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3817
3818 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3819 that file is now empty.
3820 (termdef): Remove prototype, function no longer used.
3821
3822 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3823
3824 * doc/gdbint.texinfo (Host Definition): Remove documentation
3825 for USE_O_NOCTTY, no longer used.
3826 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3827 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3828
3829 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3830
3831 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3832 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3833 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3834
3835 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3836
3837 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3838 instead of FIVE_ARG_PTRACE.
3839
3840 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3841 (new_tty): Use O_NOCTTY unconditionally.
3842
3843 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3844
3845 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3846 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3847 fflush on stdout.
3848
3849 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3850
3851 * xcoff_symfile_finish: Replace last call to xmfree by call
3852 to xfree.
3853
3854 2004-08-10 Andrew Cagney <cagney@gnu.org>
3855
3856 * main.c (captured_main): Delete call to init_malloc.
3857 * defs.h (init_malloc): Delete declaration.
3858 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3859 (init_malloc): Delete functions.
3860
3861 * defs.h (xmfree): Delete.
3862 * utils.c (xmfree): Delete function.
3863 (xfree): Inline calls to xmfree and mfree.
3864 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3865 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3866 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3867 * somread.c (som_symfile_finish): Ditto.
3868 * objfiles.c (allocate_objfile, free_objfile):
3869 * nlmread.c (nlm_symfile_finish): Ditto.
3870 * hpread.c (hpread_symfile_finish): Ditto.
3871 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3872 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3873 * coffread.c (coff_symfile_finish): Ditto.
3874
3875 * defs.h (xmcalloc): Delete declaration.
3876 * utils.c (xmcalloc): Delete.
3877 (xcalloc): Inline calls to xmcalloc and mcalloc.
3878 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3879 xcalloc and xfree.
3880 * symtab.c (create_demangled_names_hash): Ditto.
3881
3882 * defs.h (xmrealloc): Delete.
3883 * utils.c (xmrealloc): Delete.
3884 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3885 * symmisc.c (extend_psymbol_list): Use xrealloc.
3886 * source.c (find_source_lines): Ditto.
3887 * hpread.c (hpread_lookup_type): Ditto.
3888 * dbxread.c (add_bincl_to_list): Ditto.
3889
3890 * utils.c (xmmalloc): Delete.
3891 (xmalloc): Inline xmmalloc and mmalloc calls.
3892 (msavestring): Use xmalloc.
3893 * defs.h (xmmalloc): Delete declaration.
3894 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3895 xmmalloc.
3896 * symmisc.c (extend_psymbol_list): Ditto.
3897 * symfile.c (init_psymbol_list): Ditto.
3898 * source.c (find_source_lines): Ditto.
3899 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3900 * elfread.c (elf_symtab_read): Ditto.
3901 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3902 * coffread.c (coff_symfile_init): Ditto.
3903
3904 2004-08-10 David Carlton <carlton@bactrian.org>
3905
3906 * MAINTAINERS: Remove David Carlton from c++ testsuite
3907 maintainers.
3908
3909 2004-08-10 Jerome Guitton <guitton@gnat.com>
3910
3911 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3912 print a line feed before the prompt.
3913
3914 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3915
3916 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3917
3918 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3919
3920 General cleanup of the AIX xm include file:
3921 * config/xm-aix4.h (fd_set): Remove undefine.
3922 Remove include of <sys/select.h>.
3923 (HAVE_TERMIO): Remove define.
3924 (USG): Likewise.
3925 (NULL): Remove redefine.
3926 (alloca): Remove #pragma.
3927 (vfork): Remove define.
3928 (termdef): Remove.
3929 (SIGWINCH_HANDLER): Remove.
3930 (SIGWINCH_HANDLER_BODY): Remove.
3931
3932 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3933
3934 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3935 GDB_OSABI_OPENBSD_ELF.
3936
3937 2004-08-07 Robert Millan <robertmh@gnu.org>
3938
3939 * bsd-kvm.c: Check for nlist.h before including it.
3940
3941 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3942
3943 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3944 sigcontext' offset consistency checks for ancient BSD.
3945
3946 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3947
3948 * configure.in: Check for <sys/types.h>. Check return and
3949 argument types of ptrace.
3950 * configure, config.in: Regenerate.
3951
3952 2004-08-09 Jim Blandy <jimb@redhat.com>
3953
3954 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3955 rs6000_register_sim_regno): Doc fixes.
3956
3957 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3958
3959 * mips-tdep.c: Include "floatformat.h".
3960 (n32n64_floatformat_always_valid): New function.
3961 (floatformat_n32n64_long_double_big): New constant.
3962 (mips_gdbarch_init): Set size and format of long double
3963 for N32 and N64 ABIs.
3964 * Makefile.in (mips-tdep.o): Update dependencies.
3965
3966 2004-08-08 Andrew Cagney <cagney@gnu.org>
3967
3968 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3969 print. Improve script's error messages.
3970 * gdbarch.h: Re-generate.
3971
3972 * gdbarch.sh (pformat): New function.
3973 (float_format, double_format, long_double_format): List with bit
3974 members. Use pformat when printing.
3975 * gdbarch.c, gdbarch.h: Re-generate.
3976
3977 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3978
3979 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3980 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3981 (ppcnbsd_supply_pcb): New function.
3982 (_initialize_ppcnbsd_nat): New prototype and function.
3983 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3984 (LOADLIBES): New variable.
3985 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3986
3987 2004-08-08 Andrew Cagney <cagney@gnu.org>
3988
3989 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3990 (builtin_type_ieee_double, builtin_type_ia64_quad)
3991 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3992 BE/LE floating-point types.
3993 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3994 (builtin_type_ieee_double, builtin_type_ia64_quad)
3995 (builtin_type_ia64_spill): Declare.
3996 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3997 (floatformat_ieee_double, floatformat_arm_ext)
3998 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3999 of LE/BE floatformats.
4000 * doublest.h: (struct floatformat, floatformat_ieee_single)
4001 (floatformat_ieee_double, floatformat_arm_ext)
4002 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4003
4004 2004-08-08 Mark Kettenis <kettenis@gnu.org>
4005
4006 * i386gnu-nat.c (gnu_store_registers): Fix typo.
4007
4008 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4009 instead of regcache_raw_supply when storing the registers.
4010
4011 * i386gnu-nat.c: Update copyright year.
4012 (gnu_store_registers): Don't use deprecated_registers and
4013 deprecated_registers_valid. Use regcache_valid_p and
4014 regcache_raw_supply instead.
4015
4016 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4017 frame_pc_unwind.
4018
4019 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4020 variables. Incapitalized "process".
4021
4022 * configure.in: Add cursesX to the list of possible curses libs.
4023 Add cursesX.h to the list of possible curses headers.
4024 * configure, config.in: Regenerate.
4025
4026 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4027
4028 * configure.in: Test for struct lwp in <sys/lwp.h>.
4029 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4030 the offset of l_addr in struct lwp.
4031
4032 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4033
4034 * bsd-kvm.c: Include "gdbcore.h"
4035 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4036
4037 2004-08-07 Andrew Cagney <cagney@gnu.org>
4038
4039 * gdbtypes.c (build_flt, build_complex): New functions.
4040 (gdbtypes_post_init): Use.
4041
4042 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4043
4044 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4045 through to builtin_type_uint128.
4046
4047 * c-exp.y: Use builtin_type function to obtain builtin types.
4048
4049 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4050 builtin_uint128.
4051 * gdbtypes.c (gdbtypes_post_init): Update.
4052 (build_gdbtypes): Move initialization of builtin_type_int0
4053 through to builtin_type_uint128 from here ...
4054 (_initialize_gdbtypes): ... to here.
4055 * d10v-tdep.c (d10v_register_type): Update.
4056
4057 * doublest.c: Update copyright.
4058 (floatformat_from_length): Call error when floatformat is NULL.
4059 (extract_floating_by_length): Remove NULL fmt check.
4060 (store_floating_by_length): Ditto.
4061
4062 2004-08-07 Andrew Cagney <cagney@gnu.org>
4063
4064 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4065 that the register is valid.
4066
4067 2004-08-05 Mark Kettenis <kettenis@chello.nl>
4068
4069 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4070 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4071 struct frame_info *. Use safe_frame_unwind_memory instead of
4072 deprecated_read_memory_nobpt.
4073 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4074 changed signature of i386_linux_sigtramp_start and
4075 i386_linux_rt_sigtramp_start.
4076
4077 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4078 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
4079 instead of deprecated_read_memory_nobpt.
4080 (i386nbsd_sigtramp_p): Adjust for changed signature of
4081 i386nbsd_sigtramp_offset.
4082
4083 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4084 safe_frame_unwind_memory instead of target_read_memory.
4085
4086 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4087 !NO_SYS_FILE.
4088 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4089 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4090 (_initialize_kernel_u_addr): Remove prototype and function.
4091 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4092 !NO_SYS_FILE.
4093 * xcoffread.c: Likewise.
4094
4095 2004-08-06 Mark Kettenis <kettenis@gnu.org>
4096
4097 * vax-nat.c: New file.
4098 * vaxbsd-nat.c: Tweak comment.
4099 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4100 vaxnbsd-tdep.c.
4101 (vax-nat.o): New dependency.
4102 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4103 (vax-*-ultrix2*): Remove.
4104 * config/vax/vax.mh: New file.
4105 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4106 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4107 (vax_register_u_addr): New prototype.
4108 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4109 * config/vax/vaxult2.mh: Remove file.
4110 * config/vax/vaxult.mh: Remove file.
4111 * config/vax/vaxbsd.mh: Remove file.
4112 * config/vax/vax.mt (TM_FILE): Remove.
4113 * config/vax/tm-vaxbsd.h: Remove file.
4114
4115 2004-08-06 Joel Brobecker <brobecker@gnat.com>
4116
4117 * aix-thread.c (get_signaled_thread): New function.
4118 (iter_trap): Delete, no longer used.
4119 (iter_tid): New function.
4120 (pd_update): Find the thread that received the SIGTRAP signal
4121 by first locating the kernel thread, and then finding its
4122 associated thread.
4123
4124 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4125
4126 * lin-lwp.c (child_wait): Continue inferior after processing
4127 PTRACE_EVENT_CLONE event.
4128
4129 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4130
4131 * MAINTAINERS: Add self to Write-After-Approval.
4132
4133 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4134
4135 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4136 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4137
4138 2004-08-05 Andrew Cagney <cagney@gnu.org>
4139
4140 * config/xm-sysv4.h: Delete file.
4141 * config/mips/xm-irix5.h: Delete file.
4142 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4143 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4144 * config/ia64/xm-aix.h: Delete file.
4145 * config/ia64/aix.mh (XM_FILE): Delete.
4146 * config/pa/xm-hppah.h: Delete file.
4147 * config/pa/hpux11w.mh (XM_FILE): Delete.
4148 * config/pa/hpux11.mh (XM_FILE): Delete.
4149 * config/pa/hpux1020.mh (XM_FILE): Delete.
4150 * config/pa/hppahpux.mh (XM_FILE): Delete.
4151
4152 * config/alpha/xm-alphalinux.h: Delete file.
4153 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4154 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4155 * config/alpha/xm-alphaosf.h: Delete file.
4156 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4157 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4158 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4159 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4160
4161 * config/i386/xm-i386v.h: Delete file.
4162 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4163 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4164 * config/i386/xm-i386sco.h: Delete file.
4165 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4166 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4167 * config/i386/xm-i386v4.h: Delete file.
4168 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4169 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4170 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4171 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4172
4173 * config/vax/xm-vax.h: Delete file.
4174 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4175 * config/vax/xm-vaxult2.h: Delete file.
4176 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4177 * config/vax/vaxult2.mh (XM_FILE): Delete.
4178 * config/vax/xm-vaxult.h: Delete file.
4179 * config/vax/vaxult.mh (XM_FILE): Delete.
4180 * config/vax/xm-vaxbsd.h: Delete file.
4181 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4182
4183 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4184 * gdbarch.h, gdbarch.c: Re-generate.
4185 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4186 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4187 * frame.h: Delete deprecated_read_fp from comments.
4188 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4189 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4190
4191 2004-08-04 Mark Kettenis <kettenis@gnu.org>
4192
4193 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4194 trampoline in OpenBSD 3.5-current.
4195
4196 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4197 SSE registers.
4198
4199 * Makefile.in: Remove embedded page breaks.
4200
4201 2004-08-04 Jim Blandy <jimb@redhat.com>
4202
4203 * regcache.c (regcache_raw_read): Assert that, after calling
4204 target_fetch_registers, the register we're reading is cached.
4205
4206 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4207 a call to 'internal_error', with a more helpful error message.
4208 * rs6000-tdep.c (e500_pseudo_register_read,
4209 e500_pseudo_register_write, rs6000_store_return_value): Same.
4210
4211 2004-08-04 Andrew Cagney <cagney@gnu.org>
4212
4213 * Makefile.in: Update dependencies.
4214
4215 2004-08-04 Jim Blandy <jimb@redhat.com>
4216
4217 Change the layout of the PowerPC E500 raw register cache to allow
4218 the lower 32-bit halves of the GPRS to be their own raw registers,
4219 not pseudoregisters.
4220 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4221 add ppc_ev0_upper_regnum flag.
4222 * rs6000-tdep.c: #include "reggroups.h".
4223 (spe_register_p): Recognize the ev upper half registers as SPE
4224 registers.
4225 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4226 registers.
4227 (e500_move_ev_register): New function.
4228 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4229 vector registers are the pseudo-registers now, formed by splicing
4230 together the gprs and the upper-half registers.
4231 (e500_register_reggroup_p): New function.
4232 (P): Macro deleted.
4233 (P8, A4): New macro.
4234 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4235 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4236 macros.
4237 (registers_e500): Rearrange register set so that the raw register
4238 set contains 32-bit GPRs and upper-half registers, and the SPE
4239 vector registers become pseudo-registers.
4240 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4241 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4242 register numbers are now the same for the E500 as they are for
4243 other PowerPC variants. Register e500_register_reggroup_p as the
4244 register group function for the E500.
4245 * Makefile.in (rs6000-tdep.o): Update dependencies.
4246
4247 Adapt PPC E500 native support to the new raw regcache layout.
4248 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4249 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4250 (fetch_spe_register, store_spe_register): Handle fetching/storing
4251 all the SPE registers at once, if regno == -1. These now take
4252 over the job of fetch_spe_registers and store_spe_registers.
4253 (fetch_spe_registers, store_spe_registers): Deleted.
4254 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4255 unconditionally; they're always raw. Fetch/store SPE upper half
4256 registers, if present, instead of ev registers.
4257 (fetch_register, store_register): Remove sanity checks: gprs are
4258 never pseudo-registers now, so we never need to even mention any
4259 registers that are ever pseudoregisters.
4260
4261 Use a fixed register numbering when communicating with the PowerPC
4262 simulator.
4263 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4264 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4265 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4266 New functions.
4267 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4268 init_sim_regno_table.
4269 * Makefile.in (gdb_sim_ppc_h): New variable.
4270 (rs6000-tdep.o): Update dependencies.
4271
4272 2004-08-02 Andrew Cagney <cagney@gnu.org>
4273
4274 * cris-tdep.c (cris_register_size): Restore function, still used
4275 locally.
4276
4277 * gdbarch.sh (deprecated_target_read_fp)
4278 (deprecated_frame_locals_address, deprecated_frame_args_address)
4279 (deprecated_frame_chain_valid, deprecated_frame_chain)
4280 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4281 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4282 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4283 * gdbarch.h, gdbarch.c: Re-generate.
4284 * regcache.c (deprecated_read_fp): Do not call
4285 DEPRECATED_TARGET_READ_FP_P.
4286 * infcmd.c (default_print_registers_info): Do not call
4287 DEPRECATED_DO_REGISTERS_INFO.
4288 * frame-base.c (default_frame_locals_address): Do not call
4289 DEPRECATED_FRAME_LOCALS_ADDRESS.
4290 (default_frame_args_address): Do not call
4291 DEPRECATED_FRAME_ARGS_ADDRESS.
4292
4293 * gdbarch.sh (deprecated_register_raw_size)
4294 (deprecated_register_virtual_size:int): Delete.
4295 * gdbarch.h, gdbarch.c: Re-generate.
4296 * cris-tdep.c (cris_register_size): Delete.
4297 (cris_gdbarch_init): Update.
4298 * alpha-tdep.c (alpha_register_raw_size)
4299 (alpha_register_virtual_size): Delete.
4300 (alpha_gdbarch_init): Update.
4301
4302 * gdbarch.sh (deprecated_register_virtual_type)
4303 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4304 (deprecated_dummy_write_sp): Delete.
4305 * gdbarch.h, gdbarch.c: Re-generate.
4306
4307 * gdbarch.sh (deprecated_register_bytes): Delete.
4308 * gdbarch.h, gdbarch.c: Re-generate.
4309 * regcache.c (deprecated_register_bytes): New function.
4310 * regcache.h (deprecated_register_bytes): Declare.
4311 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4312 * v850-tdep.c (v850_gdbarch_init): Update.
4313 * sh64-tdep.c (sh64_gdbarch_init): Update.
4314 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4315 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4316 * mcore-tdep.c (mcore_gdbarch_init): Update.
4317 * cris-tdep.c (cris_gdbarch_init): Update.
4318 * arm-tdep.c (arm_gdbarch_init): Update.
4319 * remote.c (init_remote_state): Update.
4320 * remote-vx.c (vx_prepare_to_store): Update.
4321 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4322 * irix5-nat.c (fetch_core_registers): Update.
4323 * cris-tdep.c (cris_register_bytes_ok): Update.
4324 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4325
4326 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4327 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4328 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4329 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4330 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4331 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4332 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4333 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4334 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4335 with mips_insn16 and mips_insn32.
4336
4337 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4338 * rs6000-tdep.c (rs6000_push_dummy_call)
4339 (rs6000_extract_return_value): Use register_size.
4340 * xstormy16-tdep.c (xstormy16_get_saved_register)
4341 (xstormy16_extract_return_value): Ditto.
4342 * valops.c (value_assign): Ditto.
4343 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4344 * v850-tdep.c (v850_extract_return_value): Ditto.
4345 * tracepoint.c (collect_symbol): Ditto.
4346 * target.c (debug_print_register): Ditto.
4347 * stack.c (frame_info): Ditto.
4348 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4349 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4350 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4351 (store_register_using_P): Ditto.
4352 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4353 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4354 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4355 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4356 * regcache.c (deprecated_read_register_bytes)
4357 (deprecated_write_register_bytes, read_register)
4358 (write_register): Ditto.
4359 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4360 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4361 * monitor.c (monitor_supply_register, monitor_fetch_register)
4362 (monitor_store_register): Ditto.
4363 * mn10300-tdep.c (mn10300_pop_frame_regular)
4364 (mn10300_print_register): Ditto.
4365 * mipsv4-nat.c (fill_fpregset): Ditto.
4366 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4367 (mips64_fill_fpregset): Ditto.
4368 * mi/mi-main.c (register_changed_p, get_register)
4369 (mi_cmd_data_write_register_values): Ditto.
4370 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4371 * irix5-nat.c (fill_gregset, fetch_core_registers):
4372 * infrun.c (write_inferior_status_register): Ditto.
4373 * infptrace.c (fetch_register, store_register): Ditto.
4374 * infcmd.c (default_print_registers_info): Ditto.
4375 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4376 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4377 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4378 * hpux-thread.c (hpux_thread_fetch_registers)
4379 (hpux_thread_store_registers): Ditto.
4380 * hppah-nat.c (store_inferior_registers, fetch_register):
4381 * findvar.c (value_from_register): Ditto.
4382 * dve3900-rom.c (fetch_bitmapped_register):
4383 * cris-tdep.c (cris_gdbarch_init): Ditto.
4384 * alpha-tdep.h: Ditto.
4385 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4386
4387 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4388 DEPRECATED_REGISTER_RAW_SIZE from comments.
4389 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4390 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4391 DEPRECATED_REGISTER_RAW_SIZE.
4392 * findvar.c (value_of_register): Simplify by assuming that the
4393 registers raw and virtual sizes are identical.
4394 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4395 comment.
4396 * arch-utils.c (generic_register_size): Simplify by assuming
4397 register_type.
4398
4399 * regcache.c (legacy_read_register_gen, real_register)
4400 (legacy_write_register_gen): Delete, not used.
4401
4402 * regcache.c (struct regcache_descr): Delete legacy_p.
4403 (init_legacy_regcache_descr): Delete function.
4404 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4405 Do not use deprecated register functions.
4406 (regcache_raw_read, deprecated_write_register_gen):
4407 (deprecated_read_register_gen, regcache_raw_write): Delete code
4408 predicated on legacy_p.
4409 (register_size): Delete check against register raw size.
4410
4411 * cris-tdep.c (cris_register_type): Replace
4412 cris_register_virtual_type.
4413 (cris_gdbarch_init): Update, set register_type.
4414
4415 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4416 * gdbarch.h, gdbarch.c: Re-generate.
4417 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4418 (arm_gdbarch_init) Do not set frameless function invocation.
4419 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4420 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4421 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4422 (frv_gdbarch_init): Do not set frameless function invocation.
4423 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4424 * sh-tdep.c (sh_gdbarch_init): Ditto.
4425 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4426 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4427 * avr-tdep.c (avr_gdbarch_init): Ditto.
4428
4429 * blockframe.c (legacy_frame_chain_valid): Delete function.
4430
4431 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4432 and pc. Update comments.
4433 (pc_in_dummy_frame): Delete function.
4434 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4435 use the "id".
4436 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4437 call_hi, top and pc, use the id.
4438 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4439
4440 * dummy-frame.c: Include "gdb_string.h".
4441 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4442 (generic_save_dummy_frame_tos): Delete.
4443 (dummy_frame_push): New function, replaces above.
4444 * dummy-frame.h: Update copyright.
4445 (dummy_frame_push): Declare.
4446 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4447 (generic_save_call_dummy_addr): Delete declarations.
4448 * infcall.c: Include "dummy-frame.h".
4449 (call_function_by_hand): Add locals caller_regcache,
4450 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4451 with call to frame_save_as_regcache plus cleanup. Delete calls to
4452 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4453 Move clear_proceed_status to just before the resume, add call to
4454 dummy_frame_push (discard cleanup).
4455 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4456 (dummy-frame.o): Add $(gdb_string_h).
4457
4458 2004-08-01 Andrew Cagney <cagney@gnu.org>
4459
4460 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4461 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4462 * dummy-frame.c (find_dummy_frame): Delete.
4463 (struct dummy_frame_cache, dummy_frame_sniffer)
4464 (dummy_frame_prev_register, dummy_frame_this_id)
4465 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4466 frame unwinder using a dummy_frame_cache.
4467
4468 2004-08-01 Andrew Cagney <cagney@gnu.org>
4469
4470 * frame.h (frame_save_as_regcache): Declare.
4471 * frame.c (frame_save_as_regcache): New function.
4472 (do_frame_read_register): Replace do_frame_unwind_register.
4473 (frame_pop): Use frame_save_as_regcache.
4474 * dummy-frame.c (generic_push_dummy_frame): Use
4475 frame_save_as_regcache.
4476
4477 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4478
4479 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4480 file as included until we record the first line in the linetable.
4481
4482 2004-08-01 Andrew Cagney <cagney@gnu.org>
4483
4484 * frame.h (deprecated_pop_dummy_frame)
4485 (deprecated_read_register_dummy)
4486 (deprecated_generic_find_dummy_frame): Delete.
4487 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4488 (deprecated_read_register_dummy)
4489 (deprecated_find_dummy_frame_regcache)
4490 (discard_innermost_dummy)
4491 (deprecated_pop_dummy_frame): Delete.
4492 (dummy_frame_this_id): Simplify.
4493 (struct dummy_frame): Delete "fp" and "sp".
4494 (find_dummy_frame): Simplify.
4495 (generic_push_dummy_frame): Do not set "fp" or "sp".
4496 (fprint_dummy_frames): Do not print "fp" and "sp"
4497
4498 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4499
4500 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4501 (struct i386_insn): New structure.
4502 (i386_match_insn): New function.
4503 (i386_frame_setup_skip_insns): New variable.
4504 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4505 array i386_frame_setup_insns of instructions that should be
4506 skipped inside the frame setup sequence.
4507
4508 2004-08-01 Andrew Cagney <cagney@gnu.org>
4509
4510 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4511 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4512 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4513 * stack.c (frame_info): Delete references to
4514 DEPRECATED_FRAME_INIT_SAVED_REGS and
4515 deprecated_get_frame_saved_regs.
4516 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4517 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4518 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4519 (frame_unwind_register_signed)
4520 (frame_unwind_register_unsigned)
4521 (frame_unwind_unsigned_register): Use register_size.
4522 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4523 (deprecated_frame_xmalloc_with_cleanup)
4524 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4525 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4526
4527 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4528 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4529 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4530 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4531
4532 * infcall.c (call_function_by_hand): Do not use
4533 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4534 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4535 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4536 DEPRECATED_STACK_ALIGN.
4537
4538 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4539
4540 Committed by Andrew Cagney.
4541 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4542
4543 2004-08-01 Andrew Cagney <cagney@gnu.org>
4544
4545 * mips-tdep.c (mips16_frame_cache)
4546 (mips16_frame_this_id, mips16_frame_prev_register)
4547 (mips16_frame_unwind, mips16_frame_sniffer)
4548 (mips16_frame_base_address, mips16_frame_base)
4549 (mips16_frame_base_sniffer, mips32_frame_cache)
4550 (mips32_frame_this_id, mips32_frame_prev_register)
4551 (mips32_frame_unwind, mips32_frame_sniffer)
4552 (mips32_frame_base_address, mips32_frame_base)
4553 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4554 separate heuristic mips16 and mips32 unwinders.
4555 (mips_stub_frame_cache, mips_stub_frame_this_id)
4556 (mips_stub_frame_prev_register)
4557 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4558 (mips_stub_frame_base_address, mips_stub_frame_base)
4559 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4560 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4561 match true mdebug frames.
4562 (non_heuristic_proc_desc): Add forward declaration.
4563
4564 2004-08-01 Andrew Cagney <cagney@gnu.org>
4565
4566 * config/mips/tm-irix6.h: Delete file.
4567 * config/mips/tm-irix5.h: Delete file.
4568 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4569 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4570
4571 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4572 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4573 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4574 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4575 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4576 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4577 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4578 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4579 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4580 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4581 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4582 (TARGET_SIGNAL_RAW_VALUES): Delete.
4583 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4584 Delete.
4585 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4586 (TARGET_HW_WATCH_LIMIT): Delete.
4587 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4588 * minimon.h: Delete file.
4589
4590 * trad-frame.c (trad_frame_get_this_base)
4591 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4592 functions.
4593 * trad-frame.h (trad_frame_set_this_base)
4594 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4595
4596 2004-07-31 Andrew Cagney <cagney@gnu.org>
4597
4598 * trad-frame.c (trad_frame_get_prev_register): Rename
4599 trad_frame_get_prev_register.
4600 * vax-tdep.c (vax_frame_prev_register): Update.
4601 * trad-frame.h: Update.
4602 * trad-frame.c (trad_frame_get_register): Update.
4603 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4604 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4605 Update.
4606 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4607 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4608 Update.
4609 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4610 Update.
4611 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4612 Update.
4613 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4614 Update.
4615 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4616 Update.
4617 * s390-tdep.c (s390_frame_prev_register)
4618 (s390_stub_frame_prev_register)
4619 (s390_sigtramp_frame_prev_register): Update.
4620 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4621 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4622 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4623 * m88k-tdep.c (m88k_frame_prev_register)
4624 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4625 * m32r-tdep.c (m32r_frame_prev_register): Update.
4626 * hppa-tdep.c (hppa_frame_prev_register_helper)
4627 * frv-tdep.c (frv_frame_prev_register): Update.
4628 * d10v-tdep.c (d10v_frame_prev_register): Update.
4629 * cris-tdep.c (cris_frame_prev_register): Update.
4630 * avr-tdep.c (avr_frame_prev_register): Update.
4631 * arm-tdep.c (arm_prologue_prev_register)
4632 (arm_sigtramp_prev_register): Update.
4633
4634 2004-07-31 Andrew Cagney <cagney@gnu.org>
4635
4636 * frame.h (legacy_saved_regs_unwind)
4637 (legacy_frame_chain_valid, legacy_frame_p)
4638 (enum frame_type): Delete UNKNOWN_FRAME.
4639 * dummy-frame.c (dummy_frame_this_id): Simplify.
4640 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4641 * frame.c (struct frame_info): Delete the field "type".
4642 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4643 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4644 (legacy_saved_regs_unwind, legacy_frame_p)
4645 (frame_type_from_pc): Delete.
4646 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4647 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4648
4649 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4650
4651 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4652 indentation.
4653
4654 * mips-nat.c: Remove file.
4655 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4656 (mips-nat.o): Remove dependency.
4657
4658 * infptrace.c: Update copyright year.
4659 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4660 explicitly setting the buffer to all zeroes.
4661
4662 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4663 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4664
4665 2004-07-30 Andrew Cagney <cagney@gnu.org>
4666
4667 * GDB 6.2 released from gdb_6_2-branch.
4668
4669 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4670
4671 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4672
4673 * exec.c (exec_file_attach):
4674 * nto-tdep.c (nto_find_and_open_solib):
4675 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4676 * solib.c (solib_open):
4677 * somsolib.c (som_solib_sizeof_symbol_table):
4678 * source.c (is_regular_file, openp, open_source_file):
4679 * symfile.c (symfile_bfd_open):
4680 * wince.c (upload_to_device): Differentiate between the search for
4681 binary and source files.
4682
4683 2004-07-30 Andrew Cagney <cagney@gnu.org>
4684
4685 * complaints.c (_initialize_complaints): Pass NULL to
4686 add_setshow_zinteger_cmd for help_doc.
4687 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4688
4689 2004-07-30 Andrew Cagney <cagney@gnu.org>
4690
4691 Fix PR i18n/761.
4692 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4693 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4694 $(PACKAGE).pot and update-po.
4695 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4696 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4697 (update-po): New rules.
4698 (localedir): Define using autoconf.
4699 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4700 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4701 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4702 * configure.in: Generate CATALOGS and LINGUAS from contents of
4703 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4704 * configure: Re-generate.
4705 * po/gdbtext: New file
4706
4707 2004-07-30 Jerome Guitton <guitton@gnat.com>
4708
4709 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4710 order.
4711
4712 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4713
4714 * dwarf2read.c (read_file_scope): Set producer if attribute
4715 present.
4716 (struct dwarf2_cu): Added new member producer.
4717
4718 2004-07-30 Jerome Guitton <guitton@gnat.com>
4719
4720 * inflow.c (kill_command): release file handles in BFD.
4721 * exec.c (exec_file_attach): Ditto.
4722 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4723
4724 2004-07-29 Andrew Cagney <cagney@gnu.org>
4725
4726 * PROBLEMS (mips-irix): Note that it is broken.
4727
4728 2004-07-29 Andrew Cagney <cagney@gnu.org>
4729
4730 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4731 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4732
4733 * config/xm-nbsd.h: Delete file.
4734 * config/arm/xm-nbsd.h: Delete file.
4735 * config/i386/xm-nbsd.h: Delete file.
4736 * config/ns32k/xm-nbsd.h: Delete file.
4737 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4738 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4739 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4740 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4741 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4742
4743 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4744 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4745 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4746 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4747 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4748 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4749
4750 * config/powerpc/xm-linux.h: Delete empty file.
4751 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4752 * config/powerpc/linux.mh (XM_FILE): Delete.
4753 * config/m68k/xm-linux.h: Delete empty file.
4754 * config/m68k/linux.mh (XM_FILE): Delete.
4755 * config/ia64/xm-linux.h: Delete empty file.
4756 * config/ia64/linux.mh (XM_FILE): Delete.
4757 * config/arm/xm-linux.h: Delete empty file.
4758 * config/arm/linux.mh (XM_FILE): Delete.
4759
4760 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4761 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4762 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4763 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4764 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4765 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4766 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4767 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4768
4769 * config/m68k/xm-m68k.h: Delete file.
4770 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4771 copyright.
4772 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4773 * config/pa/xm-linux.h: Delete empty file.
4774 * config/pa/linux.mh (XM_FILE): Delete.
4775 * config/i386/xm-i386.h: Delete empty file.
4776 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4777 "i386/xm-i386.h".
4778 * config/i386/obsdaout.mh (XM_FILE): Delete.
4779 * config/i386/obsd64.mh (XM_FILE): Delete.
4780 * config/i386/fbsd64.mh (XM_FILE): Delete.
4781 * config/i386/nto.mh (XM_FILE): Delete.
4782 * config/i386/obsd.mh (XM_FILE): Delete.
4783 * config/i386/linux64.mh (XM_FILE): Delete.
4784 * config/i386/linux.mh (XM_FILE): Delete.
4785 * config/i386/i386sol2.mh (XM_FILE): Delete.
4786 * config/i386/i386gnu.mh (XM_FILE): Delete.
4787 * config/i386/fbsd.mh (XM_FILE): Delete.
4788 * config/i386/nbsd64.mh (XM_FILE): Delete.
4789
4790 2004-07-29 Andrew Cagney <cagney@gnu.org>
4791
4792 * config/pa/xm-linux.h: Do not include "floatformat.h".
4793 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4794 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4795 * config/i386/xm-i386.h: Do not include "floatformat.h".
4796 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4797 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4798 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4799 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4800 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4801 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4802 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4803 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4804 * configure, config.in: Regenerate.
4805 * configure.host (gdb_host_float_format, gdb_host_double_format)
4806 (gdb_host_long_double_format): Set according to the host.
4807
4808 2004-07-29 Andrew Cagney <cagney@gnu.org>
4809
4810 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4811
4812 2004-07-28 Andrew Cagney <cagney@gnu.org>
4813
4814 * PROBLEMS: Mention threads/1650.
4815 * NEWS: Mention the NPTL fix.
4816
4817 2004-07-28 Andrew Cagney <cagney@gnu.org>
4818
4819 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4820 (add_setshow_cmd_full): Make static.
4821 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4822 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4823 * cli/cli-decode.c (add_setshow_filename_cmd)
4824 (add_setshow_string_cmd): New functions.
4825 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4826 * mips-tdep.c (_initialize_mips_tdep): Update.
4827 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4828 * cli/cli-logging.c (_initialize_cli_logging): Update.
4829 * complaints.c (_initialize_complaints): Update.
4830 * remote.c (_initialize_remote): Update.
4831
4832 2004-07-28 Andrew Cagney <cagney@gnu.org>
4833
4834 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4835 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4836 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4837 print parameters. Make string parameters constant.
4838 * command.h: Update. Update copyright.
4839 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4840 * observer.c (_initialize_observer): Ditto.
4841 * frame.c (_initialize_frame): Ditto.
4842 * complaints.c (_initialize_complaints): Ditto.
4843 * maint.c (_initialize_maint_cmds): Ditto.
4844 * target.c (initialize_targets): Ditto.
4845 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4846 * infcall.c (_initialize_infcall): Ditto.
4847 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4848 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4849 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4850 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4851 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4852
4853 2004-07-28 Andrew Cagney <cagney@gnu.org>
4854
4855 * gdbtypes.c (lookup_primitive_typename): Delete function.
4856 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4857 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4858 * gdbtypes.c (lookup_typename): Ditto.
4859 * f-exp.y (yylex): Ditto.
4860 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4861
4862 * scm-lang.c (c_builtin_types): Delete extern declaration.
4863 (scm_language_defn): Replace
4864 string_char_type and primitive_type_vector with
4865 la_language_arch_info.
4866 * jv-lang.c (java_language_defn): Replace
4867 string_char_type and primitive_type_vector with
4868 la_language_arch_info.
4869 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4870 c_builtin_types in comment.
4871 * c-lang.h (struct language_arch_info): Declare opaque.
4872 (c_language_arch_info): Declare.
4873 (c_builtin_types): Delete declaration.
4874 * c-lang.c (c_language_arch_info): Set string_char_type to
4875 builtin_char, not builtin_true_char. Make global.
4876 (c_builtin_types): Delete array.
4877 (asm_language_defn, minimal_language_defn): Replace
4878 string_char_type and primitive_type_vector with
4879 la_language_arch_info.
4880
4881 2004-07-28 Andrew Cagney <cagney@gnu.org>
4882
4883 * gdbtypes.h (struct builtin_type): Rename true_char to
4884 builtin_true_char.
4885 * gdbtypes.c (gdbtypes_post_init): Update.
4886 * c-lang.c (arch_info): New function.
4887 (enum c_primitive_types): New enum.
4888 (c_language_defn): Instead of string_char_type and
4889 primitive_type_vector set la_language_arch_info.
4890
4891 2004-07-28 Andrew Cagney <cagney@gnu.org>
4892
4893 * language.h (struct language_arch_info): Fix typo
4894 s/primative/primitive/.
4895 * gdbtypes.c (lookup_primitive_typename): Ditto.
4896 * language.c (language_lookup_primitive_type_by_name)
4897 (unknown_language_arch_info): Ditto.
4898
4899 2004-07-27 Andrew Cagney <cagney@gnu.org>
4900
4901 * defs.h (enum language): Add nr_languages.
4902 * language.h (struct language_arch_info): Define.
4903 (struct language_defn): Add la_language_arch_info.
4904 (language_lookup_primative_type_by_name): Declare.
4905 (language_string_char_type): Declare.
4906 * language.c (_initialize_language, language_gdbarch_post_init)
4907 (struct language_gdbarch, language_gdbarch_data): Implement
4908 per-architecture language information.
4909 (unknown_language_arch_info, language_string_char_type)
4910 (language_lookup_primative_type_by_name): New functions.
4911 (unknown_language_defn, auto_language_defn)
4912 (local_language_defn): Set la_language_arch_info to
4913 unknown_language_arch_info.
4914 (unknown_builtin_types): Delete.
4915 * gdbtypes.c (lookup_primitive_typename): Use
4916 language_lookup_primative_type_by_name.
4917 (create_string_type): Use language_string_char_type.
4918 * values.c (value_from_string): Use language_string_char_type.
4919 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4920 * p-lang.c (pascal_language_defn): Ditto.
4921 * m2-lang.c (m2_language_defn): Ditto.
4922 * jv-lang.c (java_language_defn): Ditto.
4923 * objc-lang.c (objc_language_defn): Ditto.
4924 * f-lang.c (f_language_defn): Ditto.
4925 * c-lang.c (c_language_defn, cplus_language_defn)
4926 (asm_language_defn, minimal_language_defn): Ditto.
4927
4928 2004-07-27 Andrew Cagney <cagney@gnu.org>
4929
4930 * gdbtypes.h (struct builtin_type): Declare.
4931 (builtin_type): Declare.
4932 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4933 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4934 (gdbtypes_post_init): New function.
4935 (builtin_type): New function.
4936
4937 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4938
4939 * remote-m32r-sdi.c: Fix breakpoint bug.
4940 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4941 recv_char_data, recv_long_data): New functions to replace communication
4942 sequences.
4943
4944 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4945
4946 Document PR threads/1650.
4947 * PROBLEMS (Threads): Document problem with many threads
4948
4949 2004-07-26 Andrew Cagney <cagney@gnu.org>
4950
4951 * gdb-mi.el: Move from here ...
4952 * mi/gdb-mi.el: ... to here.
4953
4954 2004-07-26 Andrew Cagney <cagney@gnu.org>
4955
4956 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4957 * main.c (captured_main): When in batch mode always detach.
4958
4959 2004-07-26 Andrew Cagney <cagney@gnu.org>
4960
4961 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4962 and h8300 as broken.
4963 * NEWS: END-OF-LIFE frame compatibility module.
4964 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4965 specific comments.
4966
4967 2004-07-26 Andrew Cagney <cagney@gnu.org>
4968
4969 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4970 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4971 * wince.c (_initialize_wince): Update.
4972 * win32-nat.c (_initialize_win32_nat): Update.
4973 * varobj.c (_initialize_varobj): Update.
4974 * valops.c (_initialize_valops): Update.
4975 * utils.c (initialize_utils, initialize_utils): Update.
4976 * tui/tui-win.c (_initialize_tui_win): Update.
4977 * top.c (init_main): Update.
4978 * symfile.c (_initialize_symfile): Update.
4979 * source.c (_initialize_source): Update.
4980 * somsolib.c (_initialize_som_solib): Update.
4981 * solib.c (_initialize_solib): Update.
4982 * solib-frv.c (_initialize_frv_solib): Update.
4983 * serial.c (_initialize_serial): Update.
4984 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4985 * remote.c (_initialize_remote, _initialize_remote): Update.
4986 * remote-vx.c (_initialize_vx): Update.
4987 * remote-utils.c (_initialize_sr_support): Update.
4988 * remote-sds.c (_initialize_remote_sds): Update.
4989 * remote-mips.c (_initialize_remote_mips): Update.
4990 * remote-e7000.c (_initialize_remote_e7000): Update.
4991 * proc-api.c (_initialize_proc_api): Update.
4992 * printcmd.c: Update.
4993 * parse.c (_initialize_parse): Update.
4994 * pa64solib.c (_initialize_pa64_solib): Update.
4995 * p-valprint.c (_initialize_pascal_valprint): Update.
4996 * monitor.c (_initialize_remote_monitors): Update.
4997 * mips-tdep.c (_initialize_mips_tdep): Update.
4998 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4999 * maint.c (_initialize_maint_cmds): Update.
5000 * lin-lwp.c (_initialize_lin_lwp): Update.
5001 * language.c (_initialize_language): Update.
5002 * kod.c (_initialize_kod): Update.
5003 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5004 * i386-tdep.c (_initialize_i386_tdep): Update.
5005 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5006 * gdbarch.sh: Update.
5007 * gdbarch.c: Re-generate.
5008 * gdb-events.sh: Update.
5009 * gdb-events.c: Re-generate.
5010 * frame.c (_initialize_frame): Update.
5011 * exec.c: Update.
5012 * demangle.c (_initialize_demangler): Update.
5013 * dcache.c (_initialize_dcache): Update.
5014 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5015 * cp-valprint.c (_initialize_cp_valprint): Update.
5016 * corefile.c (_initialize_core): Update.
5017 * command.h: Update.
5018 * cli/cli-decode.h: Update.
5019 * cli/cli-cmds.c (init_cli_cmds): Update.
5020 * charset.c (_initialize_charset): Update.
5021 * breakpoint.c (_initialize_breakpoint): Update.
5022 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5023 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5024 * aix-thread.c (_initialize_aix_thread): Update.
5025
5026 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5027
5028 Partial fix for PR backtrace/1718.
5029 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5030 that GCC migrates into the prolugue. Don't handle any
5031 instructions that clobber %ebx.
5032
5033 2004-07-23 Andrew Cagney <cagney@gnu.org>
5034
5035 Use regcache_raw_collect instead of regcache_collect.
5036 * regcache.h (regcache_collect): Delete declaration.
5037 * regcache.c (regcache_colect): Delete function.
5038 * win32-nat.c (do_child_store_inferior_registers): Update.
5039 * sol-thread.c (sol_thread_store_registers): Update.
5040 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5041 * rs6000-nat.c (store_register): Update.
5042 * remote.c (store_register_using_P, remote_store_registers): Update.
5043 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5044 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
5045 (fill_vrregset, store_spe_registers, fill_gregset)
5046 (fill_gregset): Update.
5047 * nto-procfs.c (procfs_store_registers): Update.
5048 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5049 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5050 * m68klinux-nat.c (store_register, fill_gregset): Update.
5051 * m68k-tdep.c (fill_gregset): Update.
5052 * infptrace.c (store_register): Update.
5053 * i386-nto-tdep.c (i386nto_regset_fill): Update.
5054 * i386-linux-nat.c (store_register, fill_gregset): Update.
5055 * hppa-linux-nat.c (fill_gregset): Update.
5056 * go32-nat.c (store_register): Update.
5057 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5058 (store_fp_regs): Update.
5059 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
5060 (store_nwfpe_extended, store_fpregister, store_fpregs)
5061 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5062 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5063 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5064 (store_regs_user_thread, store_regs_kernel_thread): Update.
5065
5066 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5067
5068 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5069 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5070 encoding.
5071 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5072 member of `struct comp_unit'.
5073
5074 2004-07-23 Andrew Cagney <cagney@gnu.org>
5075
5076 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5077 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5078
5079 2004-07-23 Martin Hunt <hunt@redhat.com>
5080 Kevin Buettner <kevinb@redhat.com>
5081
5082 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5083 alignment was being added to the offset instead of multiplied.
5084
5085 2004-07-23 Mark Kettenis <kettenis@gnu.org>
5086
5087 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5088 changed signal trampoline in OpenBSD 3.5-current.
5089
5090 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5091 <machine/pcb.h> and "bsd-kvm.h".
5092 (sparc64nbsd_supply_pcb): New function.
5093 (_initialize_sparc64nbsd_nat): Renamed from
5094 _initialize_sparcnbsd_nat. Enable libkvm interface.
5095 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5096 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5097 (LOADLIBES): New variable.
5098
5099 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5100
5101 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5102
5103 2004-07-21 Andrew Cagney <cagney@gnu.org>
5104
5105 Use regcache_raw_supply instead of supply_register.
5106 * regcache.h (supply_register): Delete declaration.
5107 * regcache.c (supply_register): Delete function.
5108 * wince.c (do_child_fetch_inferior_registers): Update.
5109 * win32-nat.c (do_child_fetch_inferior_registers)
5110 (fetch_elf_core_registers): Update.
5111 * v850ice.c (v850ice_fetch_registers): Update.
5112 * thread-db.c (thread_db_store_registers): Update.
5113 * sol-thread.c (sol_thread_store_registers): Update.
5114 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5115 * rs6000-nat.c (fetch_register): Update.
5116 * rom68k-rom.c (rom68k_supply_one_register): Update.
5117 * remote.c (remote_wait, remote_async_wait): Update.
5118 * remote-st.c (get_hex_regs): Update.
5119 * remote-sim.c (gdbsim_fetch_register): Update.
5120 * remote-sds.c (sds_fetch_registers): Update.
5121 * remote-rdp.c (remote_rdp_fetch_register): Update.
5122 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5123 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5124 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5125 * remote-hms.c (init_hms_cmds): Update.
5126 * remote-est.c (init_est_cmds): Update.
5127 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5128 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5129 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5130 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5131 (fetch_register, supply_vrregset, supply_vrregset)
5132 (fetch_spe_registers): Update.
5133 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5134 * monitor.c (monitor_supply_register): Update.
5135 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5136 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5137 (mipsnbsd_supply_fpreg): Update.
5138 * mips-nat.c (fetch_inferior_registers)
5139 (fetch_core_registers): Update.
5140 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5141 (supply_fpregset, mips64_supply_gregset)
5142 (mips64_supply_fpregset): Update.
5143 * m68klinux-nat.c (fetch_register, supply_gregset)
5144 (supply_fpregset): Update.
5145 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5146 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5147 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5148 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5149 * infptrace.c (fetch_register): Update.
5150 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5151 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5152 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5153 (gnu_fetch_registers, gnu_store_registers): Update.
5154 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5155 * i386-linux-nat.c (fetch_register, supply_gregset)
5156 (dummy_sse_values): Update.
5157 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5158 * hppah-nat.c (fetch_register): Update.
5159 * hppa-linux-nat.c (fetch_register, supply_gregset)
5160 (supply_fpregset): Update.
5161 * go32-nat.c (fetch_register): Update.
5162 * dve3900-rom.c (fetch_bitmapped_register)
5163 (_initialize_r3900_rom): Update.
5164 * cris-tdep.c (supply_gregset): Update.
5165 * abug-rom.c (init_abug_cmds): Update.
5166 * core-aout.c (fetch_core_registers): Update.
5167 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5168 (fetch_register, fetch_fp_register): Update.
5169 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5170 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5171 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5172 * alphanbsd-tdep.c (fetch_core_registers): Update.
5173 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5174 * alpha-nat.c (fetch_osf_core_registers)
5175 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5176 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5177 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5178
5179 2004-07-21 Andrew Cagney <cagney@gnu.org>
5180
5181 * PROBLEMS: Mention breakpoints/1702.
5182 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5183 that is known to work.
5184
5185 2004-07-21 Andrew Cagney <cagney@gnu.org>
5186
5187 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5188 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5189 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5190 (handle_inferior_event): Wrap call to deprecated
5191 IGNORE_HELPER_CALL in #ifdef.
5192 * config/mips/tm-nbsd.h: Update.
5193
5194 2004-07-20 Jim Blandy <jimb@redhat.com>
5195
5196 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5197 bfd_mach_ppc has no segment registers.
5198
5199 Include PowerPC SPR numbers for special-purpose registers.
5200 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5201 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5202 new member in initializer.
5203 (S, S4, SN4, S64): New macros for defining special-purpose
5204 registers.
5205 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5206 registers_403, registers_403GC, registers_505, registers_860,
5207 registers_601, registers_602, registers_603, registers_604,
5208 registers_750, registers_e500): Use them.
5209
5210 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5211 replace references with expression used to initialize variable.
5212
5213 2004-07-20 Andrew Cagney <cagney@gnu.org>
5214
5215 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5216 read_memory_nobpt.
5217 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5218 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5219 (s390_sigtramp_frame_sniffer): Update.
5220 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5221 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5222 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5223 (mips32_fetch_instruction): Update.
5224 * mcore-tdep.c (get_insn): Update.
5225 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5226 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5227 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5228 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5229 (i386_linux_rt_sigtramp_start): Update.
5230 * i386-linux-nat.c (child_resume): Update.
5231 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5232 * hppa-linux-tdep.c (insns_match_pattern): Update.
5233 * gdbcore.h: Update.
5234 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5235 * frame.c (safe_frame_unwind_memory): Update.
5236 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5237 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5238 * alpha-tdep.c (alpha_read_insn): Update.
5239
5240 2004-07-20 Andrew Cagney <cagney@gnu.org>
5241
5242 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5243 containing both bytes and mask. Add "frame_type".
5244 * tramp-frame.c (tramp_frame_start): Update.
5245 (tramp_frame_prepend_unwinder): Update.
5246 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5247 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5248 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5249 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5250
5251 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5252
5253 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5254 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5255 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5256 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5257
5258 2004-07-17 Andrew Cagney <cagney@gnu.org>
5259
5260 * NEWS, PROBLEMS: Update for 6.2.
5261
5262 * README: Update to 6.2.
5263
5264 * utils.c (xvasprintf): Call xstrvprintf.
5265
5266 * parse.c: Update copyright.
5267 (null_post_parser): Eliminate ARGSUSED.
5268
5269 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5270 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5271 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5272
5273 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5274 * ppc-linux-nat.c: Use "Linux kernel".
5275 * hppa-linux-tdep.c: Use GNU/Linux.
5276 * hppa-linux-nat.c: Use GNU/Linux.
5277 * dwarfread.c: Add [sic] to use of Linux.
5278
5279 * hppa-linux-nat.c: Do not include <string.h>.
5280 (supply_fpregset): Remove "register" attribute.
5281
5282 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5283
5284 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5285
5286 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5287 * configure, config.in: Regenerated.
5288
5289 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5290 "bsd-kvm.h".
5291 (vaxbsd_supply_pcb): New function.
5292 (_initialize_vaxbsd_nat): New prototype and function.
5293 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5294 solib-sunos.o.
5295 (LOADLIBES): New variable.
5296 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5297 (LOADLIBES): New variable.
5298 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5299 (LOADLIBES): New variable.
5300 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5301
5302 2004-07-16 Andrew Cagney <cagney@gnu.org>
5303
5304 * defs.h (event_loop_p): Replace variable declaration with macro,
5305 always 1.
5306 * main.c (captured_main): Delete options "-async" and "-noasync".
5307 (event_loop_p): Delete variable.
5308 * NEWS: Mention that "-async" and "-noasync" were removed.
5309
5310 2004-07-16 Andrew Cagney <cagney@gnu.org>
5311
5312 * remote-m32r-sdi.c: Re-indent.
5313
5314 2004-07-16 Jim Blandy <jimb@redhat.com>
5315
5316 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5317 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5318 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5319 missing MPC823 SPRs.
5320 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5321 incorrect. (This was corrected in GDB's register name tables on
5322 2004-07-14.)
5323
5324 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5325 should be "esasrr" ("ESA Save and Restore Register").
5326
5327 2004-07-16 Andrew Cagney <cagney@gnu.org>
5328
5329 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5330 calls, no longer applicable. Update comments and rename parameter
5331 "step_frame" to "return_frame".
5332
5333 2004-07-16 Andrew Cagney <cagney@gnu.org>
5334
5335 * frame.c (fprint_field): New function.
5336 (fprint_frame_id): Use fprint_field.
5337
5338 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5339
5340 * ada-lang.c (ada_language_defn): Remove commented out code.
5341
5342 2004-07-15 Jim Blandy <jimb@redhat.com>
5343
5344 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5345 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5346
5347 2004-07-14 Jim Blandy <jimb@redhat.com>
5348
5349 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5350
5351 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5352
5353 * ppc-tdep.h (ppc_num_srs): New enum constant.
5354
5355 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5356 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5357 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5358 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5359 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5360 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5361 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5362 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5363 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5364 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5365 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5366 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5367 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5368 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5369 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5370 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5371 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5372 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5373 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5374 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5375 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5376 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5377 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5378 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5379 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5380 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5381 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5382 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5383 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5384 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5385 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5386 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5387 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5388 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5389 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5390 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5391 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5392 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5393 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5394 special-purpose register numbers.
5395
5396 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5397 manual mentions 'md_twb', but many mention 'm_twb', and at that
5398 point in the register list.)
5399
5400 2004-07-14 Andrew Cagney <cagney@gnu.org>
5401
5402 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5403 instead of "internal-error".
5404
5405 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5406
5407 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5408 that was inserted inside a comment.
5409
5410 2004-07-10 Randolph Chung <tausq@debian.org>
5411
5412 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5413 function.
5414 (hppa_hpux_push_dummy_code): New function.
5415 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5416 Set find_global_pointer method.
5417
5418 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5419
5420 * NEWS: Mention BSD libkvm interface.
5421
5422 2004-07-10 Michael Snyder <msnyder@redhat.com>
5423
5424 * symfile.c (generic_load): Comment typo.
5425 * stack.c (get_selected_block): Ditto.
5426 * regcache.c (regcache_cooked_read): Ditto.
5427 * monitor.c (monitor_debug): Ditto.
5428 * mips-tdep.c (mips_read_pc): Ditto.
5429 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5430 * gdb_mbuild.sh: Ditto.
5431 * gdbarch.sh: Ditto.
5432 * gdbarch.h: Ditto.
5433
5434 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5435
5436 * ada-tasks.c: Remove file.
5437
5438 Remove ARI problems:
5439
5440 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5441 beginning of line.
5442
5443 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5444 Add comment.
5445 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5446 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5447 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5448 (UMIN_OF_SIZE): Remove.
5449 (max_of_type): New function to replace orphan macro in gdbtypes.h
5450 (min_of_type): Ditto.
5451 (discrete_type_high_bound): Use max_of_type.
5452 (discrete_type_low_bound): Use min_of_type.
5453 (possible_user_operator_p): Move operator to beginning of line.
5454 (ada_is_variant_part): Ditto.
5455 (ensure_lval): Rewrite to avoid deprecated operations.
5456 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5457 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5458 (ada_enum_name): Remove assignments in 'if' statements.
5459 (build_ada_types): Add gdbarch parameter.
5460 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5461 with gdbarch_data_register_post_init.
5462 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5463 add_show_from_set.
5464
5465 * ada-valprint.c (inspect_it): Remove declaration.
5466 (repeat_count_threshold): Remove declaration.
5467 (ada_print_floating): Remove assignments in 'if' statements.
5468 (print_str): Move operator to beginning of line.
5469
5470 2004-07-08 Jim Blandy <jimb@redhat.com>
5471
5472 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5473
5474 2004-07-08 Bob Rossi <bob@brasko.net>
5475
5476 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5477
5478 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5479
5480 * language.h (struct_language_defn): Add new function pointer:
5481 la_class_name_from_physname. Also add new prototype for
5482 language_class_name_from_physname.
5483 * language.c (language_class_name_from_physname): New function.
5484 (unk_lang_class_name): Ditto.
5485 (unknown_language_defn, auto_language_defn): Change
5486 to add unk_lang_class_name function pointer for
5487 la_class_name_from_physname.
5488 (local_language_defn): Ditto.
5489 * dwarf2read.c (guess_structure_name): Change to call
5490 language_class_name_from_physname.
5491 (determine_class_name): Ditto.
5492 * cp-support.c (class_name_from_physname): Renamed.
5493 (cp_class_name_from_physname): New name of function.
5494 * cp-support.h: Ditto.
5495 * c-lang.c (c_language_defn): Change to add NULL
5496 for class_name_from_physname function pointer.
5497 (cplus_language_defn): Change to add cp_class_name_from_physname.
5498 * jv-lang.c (java_class_name_physname): New function.
5499 (java_find_last_component): New static routine.
5500 (java_language_defn): Add java_class_name_from_physname pointer.
5501 * ada-lang.c (ada_language_defn): Change to add NULL
5502 for class_name_from_physname function pointer.
5503 * f-lang.c (f_language_defn): Ditto.
5504 * m2-lang.c (m2_language_defn): Ditto.
5505 * objc-lang.c (objc_language_defn): Ditto.
5506 * p-lang.c (pascal_language_defn): Ditto.
5507 * scm-lang.c (scm_language_defn): Ditto.
5508
5509 2004-07-06 Andrew Cagney <cagney@gnu.org>
5510
5511 Patch from Bart Robinson.
5512 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5513 (O_LARGEFILE): Define to 0, if not defined.
5514
5515 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5516
5517 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5518 <machine/pcb.h> and "bsd-kvm.h".
5519 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5520 (m68kbsd_supply_pcb): New function.
5521 (_initialize_m68kbsd_nat): New prototype and function.
5522 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5523 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5524 (LOADLIBES): New variable.
5525 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5526 (LOADLIBES): New variable.
5527
5528 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5529
5530 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5531
5532 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5533 <sys/proc.h>.
5534 (bsd_kvm_cmdlist): New variable.
5535 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5536 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5537 command and "kvm proc" command.
5538 * Makefile.in (bsd-kvm.o): Update dependencies.
5539
5540 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5541
5542 * osabi.c: Update copyright year.
5543 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5544 notes if EI_OSABI is set to ELFOSABI_HPUX.
5545
5546 2004-07-01 Michael Snyder <msnyder@redhat.com>
5547
5548 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5549 that seems to have gotten whacked out of line.
5550
5551 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5552
5553 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5554 code.
5555
5556 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5557
5558 * ada-lang.c (decode_packed_array): Minor change to comment.
5559 (ada_value_slice_ptr): New function.
5560 (ada_value_slice): New function.
5561 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5562 test. Don't know why it is there.
5563 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5564 to avoid dereferencing huge arrays from which one is slicing.
5565 (empty_array): Correct to return an array rather than
5566 a subrange value.
5567 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5568 on empty arrays (let'em use 'FIRST instead).
5569
5570 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5571
5572 Address complaints from gdb_ari.sh:
5573
5574 * ada-exp.y: Include gdb_string.h rather than string.h.
5575 (convert_char_literal): Reformat declaration.
5576 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5577 * ada-lex.l: Change use of free to xfree (the macro would do so
5578 anyway, but this is harmless).
5579 Include gdb_string.h rather than string.h.
5580 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5581
5582 * ada-lang.c (parse): Remove K&Rism in parameter list.
5583 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5584
5585 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5586
5587 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5588 dead code.
5589
5590 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5591
5592 * alphabsd-nat.c: Update copyright year.
5593 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5594
5595 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5596
5597 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5598 (i386_cygwin_in_solib_call_trampoline): New function.
5599 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5600 and skip_trampoline_code gdbarch methods.
5601
5602 2004-06-29 Jim Blandy <jimb@redhat.com>
5603
5604 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5605 name actually used in the dependency lists.
5606
5607 2004-06-29 Randolph Chung <tausq@debian.org>
5608
5609 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5610
5611 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5612
5613 * win32-nat.c (child_pid_to_exec_file): New function.
5614 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5615 functionality.
5616
5617 2004-06-28 Andrew Cagney <cagney@gnu.org>
5618
5619 * defs.h (xstrvprintf): Declare.
5620 * utils.c (xstrvprintf): New function.
5621 (internal_vproblem, xstrprintf, xasprintf)
5622 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5623 * serial.c (serial_printf): Ditto.
5624 * complaints.c (vcomplaint): Ditto.
5625
5626 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5627
5628 * infcmd.c (attach_command): Move call to target_terminal_inferior
5629 behind loading symbol table.
5630
5631 2004-06-28 Andrew Cagney <cagney@gnu.org>
5632
5633 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5634 change - add back extern deprecated_ui_loop_hook declaration.
5635
5636 2004-06-28 Andrew Cagney <cagney@gnu.org>
5637
5638 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5639 xstrprintf.
5640 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5641 (c_value_of_variable): Ditto.
5642 * utils.c (internal_vproblem): Ditto.
5643 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5644 * remote.c (add_packet_config_cmd): Ditto.
5645 * remote-rdp.c (rdp_set_command_line): Ditto.
5646 * regcache.c (regcache_dump): Ditto.
5647 * frv-tdep.c (new_variant, new_variant): Ditto.
5648 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5649 (fbsd_find_memory_regions): Ditto.
5650 * breakpoint.c (create_thread_event_breakpoint)
5651 (create_breakpoints): Ditto.
5652 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5653 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5654
5655 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5656
5657 * ada-lang.c: Re-indent file, with some massaging to help indent
5658 a bit when the result is otherwise really too ugly.
5659
5660 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5661
5662 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5663 code_addr_p and special_addr_p to 'unsigned int'.
5664
5665 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5666
5667 * i386v4-nat.c: Update copyright year and tweak comment.
5668 (regmap): Remove trailing comma.
5669 (supply_gregset): Rename local variable i to regnum. Call
5670 regcache_raw_supply instead of supply_register.
5671 (fill_gregset): Rename argument regno to regnum. Call
5672 regcache_raw_collect instead of regcache_collect.
5673
5674 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5675
5676 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5677 and special_addr_p.
5678 (frame_id_build, frame_id_build_special): Update comments.
5679 (frame_id_build_wild): New prototype.
5680 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5681 struct frame_id fields.
5682 (frame_id_build_wild): New function.
5683 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5684
5685 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5686
5687 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5688 hppabsd-tdep.c.
5689
5690 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5691
5692 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5693
5694 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5695
5696 * ada-lang.c: Re-indent file.
5697
5698 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5699
5700 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5701 (no_symtab_msg): Likewise.
5702
5703 2004-06-27 Andreas Schwab <schwab@suse.de>
5704
5705 * source.c: Fix whitespace.
5706
5707 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5708
5709 * configure.in: Include <sys/param.h> for td_pcb test.
5710 * configure: Regenerated.
5711
5712 * i386nbsd-nat.c: New file.
5713 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5714 i386obsd-nat.c and i386obsd-tdep.c.
5715 (i386nbsd-nat.o): New dependency.
5716 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5717 bsd-kvm.o.
5718 (LOADLIBES): New variable.
5719 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5720 bsd-kvm.o.
5721 (LOADLIBES): New variable.
5722
5723 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5724 (LOADLIBES): New variable.
5725
5726 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5727 fetching from BSD_KVM_PADDR. Correctly lookup address for
5728 "_thread0".
5729
5730 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5731 "bsd-kvm.h".
5732 (amd64fbsd_supply_pcb): New funcion.
5733 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5734
5735 2004-06-27 <david@streamline-computing.com>
5736
5737 Partial fix for PR cli/1056.
5738 * valarith.c: Check for zero in division and remainder
5739 evaluation.
5740
5741 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5742
5743 * i387-tdep.c: Remove excessive whitespace.
5744
5745 2004-06-26 Andrew Cagney <cagney@gnu.org>
5746
5747 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5748 * gdb-events.h, gdb-events.c: Re-generate.
5749 * tui/tui-hooks.c (tui_install_hooks): Update.
5750 (tui_remove_hooks): Update.
5751 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5752
5753 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5754
5755 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5756 (gregset_t, fpregset_t): Remove typedefs.
5757 (REG_OFFSET): Rename argument.
5758 (amd64bsd_r_reg_offset): Rename from reg_offset.
5759 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5760 Remove functions.
5761 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5762 of reg_offset.
5763 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5764
5765 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5766
5767 * vax-tdep.c: Tweak comment.
5768
5769 Add OpenBSD/hppa support.
5770 * NEWS (New native configurations): Mention OpenBSD/hppa.
5771 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5772 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5773 files.
5774 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5775 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5776 * configure.host: Add hppa*-*-openbsd*.
5777 * configure.tgt: Add hppa*-*-openbsd*.
5778
5779 2004-06-25 Andrew Cagney <cagney@gnu.org>
5780
5781 * defs.h (deprecated_ui_loop_hook): Deprecated.
5782 * wince.c (child_wait): Update.
5783 * win32-nat.c (child_wait): Update.
5784 * v850ice.c (v850ice_wait): Update.
5785 * top.c (deprecated_ui_loop_hook): Update.
5786 * serial.h: Update.
5787 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5788 (do_unix_readchar): Update.
5789 * ser-tcp.c (net_open): Update.
5790 * remote-sim.c (gdb_os_poll_quit): Update.
5791 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5792
5793 2004-06-24 Andrew Cagney <cagney@gnu.org>
5794
5795 * defs.h (deprecated_pre_add_symbol_hook)
5796 (deprecated_post_add_symbol_hook): Deprecated.
5797 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5798 (symbol_file_add_with_addrs_or_offsets): Update references.
5799
5800 2004-06-24 Andrew Cagney <cagney@gnu.org>
5801
5802 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5803 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5804 * wince.c (ui_loop_hook): Delete extern declaration.
5805 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5806 * v850ice.c (ui_loop_hook): Delete extern declaration..
5807 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5808 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5809 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5810 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5811 ui_loop_hook declaration.
5812
5813 2004-06-24 Andrew Cagney <cagney@gnu.org>
5814
5815 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5816 entry_func_highpc fields.
5817 * objfiles.c (init_entry_point_info): Do not clear
5818 entry_func_lowpc and entry_func_highpc.
5819 (objfile_relocate): Do not relocate entry_func_lowpc and
5820 entry_func_highpc.
5821 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5822 entry_func_highpc.
5823 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5824 entry_func_highpc.
5825 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5826 entry_func_lowpc and entry_func_highpc with call to
5827 inside_entry_func.
5828
5829 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5830
5831 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5832 quad-precision floating point arguments in registers.
5833
5834 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5835
5836 From Michael Mueller <m.mueller99@kay-mueller.de>:
5837 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5838 account.
5839
5840 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5841
5842 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5843 to -1.
5844 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5845 untriggered watchpoints to a separate if clause. Update function
5846 comment regarding STOPPED_BY_WATCHPOINT argument.
5847
5848 2004-06-22 Jim Blandy <jimb@redhat.com>
5849
5850 * gdbarch.sh: Doc fix.
5851
5852 2004-06-21 Martin Hunt <hunt@redhat.com>
5853 Kevin Buettner <kevinb@redhat.com>
5854
5855 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5856 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5857 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5858 to set_gdbarch_sp_regnum(). Use cooked register number.
5859 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5860
5861 2004-06-21 Andrew Cagney <cagney@gnu.org>
5862
5863 * gdbarch.sh: When the macro field is empty, do not generate a
5864 macro definition. When the macro field is "=", generate the macro
5865 name from the upper-case function name.
5866 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5867 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5868 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5869 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5870 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5871 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5872 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5873 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5874 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5875 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5876 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5877 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5878 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5879 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5880 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5881 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5882 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5883 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5884 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5885 (DEPRECATED_USE_STRUCT_CONVENTION)
5886 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5887 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5888 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5889 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5890 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5891 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5892 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5893 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5894 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5895 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5896 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5897 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5898 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5899 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5900 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5901 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5902 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5903 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5904
5905 2004-06-21 Andrew Cagney <cagney@gnu.org>
5906
5907 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5908 macro name, and the function rather than macro value. Only wrap
5909 macro print statements in #ifdef. Move format logic to where it
5910 is needed.
5911 * gdbarch.c: Re-generate.
5912
5913 * gdbarch.sh (read): Delete "print_p" and "description", add
5914 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5915 Delete references to print_p.
5916 (TARGET_ARCHITECTURE): Delete print predicate.
5917 * gdbarch.c: Re-generate.
5918
5919 * gdbarch.sh: Check that multi-arch methods do not provide a
5920 macro.
5921 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5922 (print_registers_info, print_float_info, print_vector_info)
5923 (adjust_breakpoint_address, remote_translate_xfer_address)
5924 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5925 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5926 name from the multi-arch definition.
5927
5928 2004-06-20 Andrew Cagney <cagney@gnu.org>
5929
5930 * gdbarch.sh: Sort by the function, instead of macro name.
5931 * gdbarch.c: Re-generate.
5932
5933 2004-06-20 Andrew Cagney <cagney@gnu.org>
5934
5935 * gdbarch.sh: Use the function, instead of macro name in
5936 errors and the log file.
5937 (return_value): Remove stray ":" in spec.
5938
5939 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5940 * gdbarch.h, gdbarch.c: Re-generate.
5941 * Makefile.in (arch-utils.o): Update dependencies.
5942 * values.c (using_struct_return): Move code calling
5943 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5944 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5945 to legacy_return_value, simplify.
5946 * infcmd.c (print_return_value): Move code calling
5947 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5948 to legacy_return_value, simplify.
5949 * infcall.c (call_function_by_hand): Move code calling
5950 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5951 * arch-utils.c: Update copyright. Include "gdbcore.h".
5952 (legacy_return_value): New function.
5953 * arch-utils.h: Update copyright.
5954 (legacy_return_value): Declare.
5955
5956 2004-06-20 Andrew Cagney <cagney@gnu.org>
5957
5958 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5959 * gdbarch.h, gdbarch.c: Re-generate.
5960 * values.c (using_struct_return): Update call.
5961 * mcore-tdep.c: Update comment.
5962 * infcall.c (call_function_by_hand): Update comment.
5963 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5964 * arch-utils.h (always_use_struct_convention): Update.
5965 * v850-tdep.c (v850_gdbarch_init): Update.
5966 * sh64-tdep.c (sh64_gdbarch_init): Update.
5967 * sh-tdep.c (sh_gdbarch_init): Update.
5968 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5969 * mips-tdep.c (mips_gdbarch_init): Update.
5970 * mcore-tdep.c (mcore_gdbarch_init): Update.
5971 * m32r-tdep.c (m32r_gdbarch_init): Update.
5972 * ia64-tdep.c (ia64_gdbarch_init): Update.
5973 * h8300-tdep.c (h8300_gdbarch_init): Update.
5974 * frv-tdep.c (frv_gdbarch_init): Update.
5975 * cris-tdep.c (cris_gdbarch_init): Update.
5976 * arm-tdep.c (arm_gdbarch_init): Update.
5977 * alpha-tdep.c (alpha_gdbarch_init): Update.
5978
5979 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5980
5981 * PROBLEMS: Add more specific information, and a work-around,
5982 for PR gdb/1458.
5983
5984 2004-06-18 Andrew Cagney <cagney@gnu.org>
5985
5986 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5987 * gdbarch.h, gdbarch.c: Re-generate.
5988 * ada-lang.c (ada_finish_decode_line_1): Update.
5989 * infrun.c (handle_inferior_event): Update.
5990 * infcall.c (find_function_addr): Update.
5991 * linespec.c (minsym_found): Update.
5992 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5993 Update.
5994 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5995 * cli/cli-cmds.c (disassemble_command): Update.
5996 * vax-tdep.c (vax_gdbarch_init): Update.
5997
5998 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5999
6000 * i386-tdep.c (i386_collect_fpregset): Fix comment.
6001
6002 2004-06-17 Andrew Cagney <cagney@gnu.org>
6003
6004 GDB 6.1.1 released from the GDB 6.1 branch.
6005 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6006 * PROBLEMS: Ditto.
6007
6008 2004-06-16 Daniel Jacobowitz <dan@debian.org>
6009
6010 PR gdb/1658
6011 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6012 operation as a uleb128. Found by Michael Coulter.
6013
6014 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
6015
6016 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6017 make it non-static.
6018 * ada-lang.h (task_control_block): declaration moved from ada-task.c
6019 to ada-lang.h; this is needed to be able to implement the kill command
6020 in multi-task mode.
6021 (task_ptid): Ditto.
6022 (task_entry): Ditto.
6023 (task_list): Ditto.
6024 (ada_build_task_list): Ditto.
6025
6026 * ada-lang.c: Conditionalize routines and data structures related
6027 to breakpoints, exceptions, completion, and symbol caching on
6028 GNAT_GDB, since these are not yet used in the submitted public sources.
6029 (ada_main_name): Editorial: Move definition out of exception-related
6030 code.
6031
6032 2004-06-15 Andrew Cagney <cagney@gnu.org>
6033
6034 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6035 deprecated_pc_in_call_dummy.
6036
6037 2004-06-15 Alan Modra <amodra@bigpond.net.au>
6038
6039 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6040 bfd_get_section_size_before_reloc or _raw_size.
6041 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6042 * dwarf2read.c (dwarf2_locate_sections): Likewise.
6043 (dwarf2_read_section): Likewise.
6044 * elfread.c (elf_locate_sections): Likewise.
6045 * gcore.c (derive_heap_segment): Likewise.
6046 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6047 * remote-e7000.c (e7000_load): Likewise.
6048 * remote-m32r-sdi.c (m32r_load): Likewise.
6049 * remote-mips.c (mips_load_srec): Likewise.
6050 (pmon_load_fast): Likewise.
6051 * remote.c (compare_sections_command): Likewise.
6052 * symfile.c (add_section_size_callback): Likewise.
6053 (load_section_callback): Likewise.
6054 (pc_in_unmapped_range): Likewise.
6055 (pc_in_mapped_range): Likewise.
6056 (sections_overlap): Likewise.
6057 (list_overlays_command): Likewise.
6058 (simple_overlay_update_1): Likewise.
6059 (simple_overlay_update): Likewise.
6060 * tracepoint.c (remote_set_transparent_ranges): Likewise.
6061 * win32-nat.c (core_section_load_dll_symbols): Likewise.
6062
6063 2004-06-14 Randolph Chung <tausq@debian.org>
6064
6065 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6066 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6067 static.
6068 (hppa_hpux_inferior_created): New function.
6069 (hppa_hpux_init_abi): Register observer.
6070 * symfile.c (hp_cxx_exception_support_initialized)
6071 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6072 (symbol_file_add_main_1, symbol_file_clear): Likewise.
6073
6074 2004-06-14 Randolph Chung <tausq@debian.org>
6075
6076 * MAINTAINERS (Write After Approval): Alphabetize my entry
6077 correctly.
6078
6079 2004-06-14 Andrew Cagney <cagney@gnu.org>
6080
6081 * MAINTAINERS (testsuite): List Michael Chastain as the lead
6082 testsuite maintainer.
6083
6084 2004-06-13 Andrew Cagney <cagney@gnu.org>
6085
6086 * infcmd.c (print_return_value): Fix logic, allow
6087 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6088
6089 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6090 defining any macros.
6091 * gdbarch.h: Re-generate.
6092
6093 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6094 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6095 * gdbarch.h: Re-generate.
6096
6097 * values.c (generic_use_struct_convention): Don't check gcc_p.
6098
6099 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6100 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6101 * gdbarch.h, gdbarch.c: Regenerate.
6102 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6103 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6104 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6105 deprecated_max_register_raw_size and
6106 deprecated_max_register_virtual_size.
6107 * v850-tdep.c (v850_gdbarch_init): Ditto.
6108 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6109 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6110 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6111 * cris-tdep.c (cris_gdbarch_init): Ditto.
6112
6113 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6114 * gdbarch.h, gdbarch.c: Re-generate.
6115 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6116 (m68hc11_use_struct_convention): Delete function.
6117 (m68hc11_extract_struct_value_address): Delete function.
6118 (m68hc11_return_value): New function.
6119 (m68hc11_gdbarch_init): Instead of store_return_value,
6120 extract_return_value, return_value_on_stack,
6121 deprecated_extract_struct_value_address and use_struct_convention,
6122 set return_value.
6123 * values.c (using_struct_return): Do not call
6124 RETURN_VALUE_ON_STACK.
6125 * arch-utils.h (generic_return_value_on_stack_not): Delete
6126 declaration.
6127 * arch-utils.c (generic_return_value_on_stack_not): Delete
6128 function.
6129
6130 2004-06-12 Andrew Cagney <cagney@gnu.org>
6131
6132 * values.c (register_value_being_returned): Delete function.
6133 * infcmd.c (legacy_return_value): Delete function.
6134 * infcall.c (call_function_by_hand): Inline
6135 "register_value_being_returned", simplify.
6136 * values.c (using_struct_return): Update comment, refer to
6137 print_return_value instead of register_value_being_returned.
6138 * infcmd.c (print_return_value): Inline calls to
6139 register_value_being_returned and legacy_return_value. Simplify.
6140
6141 2004-06-11 Randolph Chung <tausq@debian.org>
6142
6143 * somread.c (som_symtab_read): Exclude gcc local symbols.
6144
6145 2004-06-11 Randolph Chung <tausq@debian.org>
6146
6147 * infrun.c (handle_inferior_event): Handle the case when a
6148 trampoline ends up in the runtime resolver, and if the trampoline
6149 has no name. Rearrange the code so that all the trampoline
6150 processing happens before other step-out-of-range handling.
6151
6152 2004-06-11 Martin Hunt <hunt@redhat.com>
6153
6154 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6155 has no fpu.
6156
6157 2004-06-10 Andrew Cagney <cagney@gnu.org>
6158
6159 * blockframe.c (legacy_inside_entry_func): Delete.
6160 (legacy_frame_chain_valid): Inline call to
6161 legacy_inside_entry_func, simplify.
6162
6163 2004-06-10 Bob Rossi <bob@brasko.net>
6164
6165 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6166 * dwarf2read.c (partial_die_info): Add dirname field.
6167 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6168 (read_partial_die): Save away DW_AT_comp_dir.
6169 * defs.h (symtab_to_filename): Removed.
6170 * source.c (find_and_open_source): Added.
6171 (open_source_file): Just calls find_and_open_source.
6172 (symtab_to_filename): Removed.
6173 (symtab_to_fullname, psymtab_to_fullname): Added.
6174 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6175 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6176 symtab_to_filename.
6177 * symtab.h (partial_symtab): Add dirname field.
6178 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6179 (mi_cmd_file_list_exec_source_file): Call new function
6180 symtab_to_fullname to find fullname.
6181 (mi_cmd_file_list_exec_source_files): Added.
6182 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6183 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6184
6185 2004-06-10 Andrew Cagney <cagney@gnu.org>
6186
6187 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6188 to generic_use_struct_convention, the default value.
6189
6190 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6191 of abort.
6192
6193 * ns32k-tdep.c (ns32k_push_arguments): New function.
6194 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6195 * infcall.c (call_function_by_hand): Call error instead of
6196 legacy_push_arguments.
6197 * value.h (legacy_push_arguments): Delete declaration.
6198 * valops.c (legacy_push_arguments): Delete function.
6199 (value_push): Delete function.
6200
6201 2004-06-10 Brian Ford <ford@vss.fsi.com>
6202
6203 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6204 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6205 info.
6206 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6207
6208 2004-06-10 Andrew Cagney <cagney@gnu.org>
6209
6210 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6211 * gdbarch.h, gdbarch.c: Re-generate.
6212 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6213 parameters.
6214 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6215 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6216 deprecated_pc_in_call_dummy instead of
6217 DEPRECATED_PC_IN_CALL_DUMMY.
6218 (arm_skip_prologue): Ditto.
6219 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6220 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6221 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6222 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6223 Ditto.
6224 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6225 (sh64_init_extra_frame_info, sh64_get_saved_register)
6226 (sh64_pop_frame): Ditto.
6227 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6228 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6229 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6230 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6231 (h8300_pop_frame): Ditto.
6232 * blockframe.c (legacy_inside_entry_func)
6233 (legacy_frame_chain_valid): Ditto.
6234 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6235 to deprecated_pc_in_call_dummy.
6236
6237 2004-06-09 Andrew Cagney <cagney@gnu.org>
6238
6239 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6240 provide a default value.
6241 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6242 * gdbarch.h, gdbarch.c: Re-generate.
6243 * arch-utils.c (generic_convert_register_p): Rename
6244 legacy_convert_register_p
6245 (legacy_register_to_value, legacy_value_to_register): Delete
6246 functions.
6247 * arch-utils.h (generic_convert_register_p): Rename
6248 legacy_convert_register_p.
6249 (legacy_register_to_value, legacy_value_to_register): Delete
6250 declarations.
6251
6252 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6253 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6254 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6255 * gdbarch.h, gdbarch.c: Re-generate.
6256 * infcmd.c (default_print_registers_info): Simplify.
6257 * findvar.c (value_of_register): Simplify.
6258 * mi/mi-main.c (get_register): Simplify.
6259 * arch-utils.c (legacy_convert_register_p): Always return 0.
6260 (legacy_register_to_value, legacy_value_to_register): Always call
6261 internal_error.
6262
6263 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6264 #ifdef CLEAR_INSN_CACHE code.
6265 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6266 Delete #ifdef CLEAR_DEFERRED_STORES code.
6267
6268 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6269
6270 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6271 copyright.
6272 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6273
6274 * config/mips/mipsv4.mh: Delete file.
6275
6276 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6277 unreferenced macro.
6278 (hpread_adjust_stack_address): Delete declaration.
6279
6280 2004-06-08 Andrew Cagney <cagney@gnu.org>
6281
6282 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6283 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6284 PTRACE_ATTACH / PTRACE_DETACH available call error.
6285 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6286 * infttrace.c (update_thread_state_after_attach, attach, detach):
6287 Remove #ifdef wrappers.
6288 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6289 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6290 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6291 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6292 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6293 * config/nm-linux.h (ATTACH_DETACH): Delete.
6294 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6295 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6296 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6297 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6298 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6299
6300 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6301
6302 * configure.in: Set $configdir to the right OS specific value.
6303 Use value when setting $tcldir and $tkdir.
6304 * configure: Regenerate.
6305
6306 2004-06-06 Paul Brook <paul@codesourcery.com>
6307
6308 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6309 records.
6310
6311 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6312
6313 * ada-lang.c (lookup_symbol_in_language): New function to allow
6314 re-use of another language's symbol lookup code. (Placed here
6315 temporarily while Ada support is being integrated into the public
6316 tree).
6317 (restore_language): New auxiliary function for
6318 lookup_symbol_in_language.
6319 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6320 temporarily while Ada support is being integrated into the public
6321 tree).
6322
6323 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6324
6325 * Makefile.in (check//%): New.
6326
6327 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6328 (mn10300_store_return_value): Rewrite.
6329 (mn10300_type_align): New.
6330 (mn10300_use_struct_convention): Rewrite.
6331 (mn10300_return_value): New, using all of the above.
6332 (mn10300_pop_frame_regular): Add saved_regs_size.
6333 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6334
6335 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6336 regs if PC is on movm.
6337
6338 2004-06-07 Jim Blandy <jimb@redhat.com>
6339
6340 Add native Linux support for the PowerPC E500.
6341 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6342 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6343 all architectures except the E500.
6344 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6345 #definitions.
6346 (struct gdb_evrregset_t): New type.
6347 (have_ptrace_getsetevrregs): New variable.
6348 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6349 fetch_spe_registers): New functions.
6350 (fetch_register): Call fetch_spe_register as appropriate.
6351 Assert that we're only passed raw register numbers.
6352 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6353 Don't fetch gprs if they're pseudoregisters.
6354 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6355 store_spe_registers): New functions.
6356 (store_register): Call store_spe_register as appropriate.
6357 Assert that we're only passed raw register numbers.
6358 (store_ppc_registers): Call store_spe_registers as appropriate.
6359 Don't store gprs if they're pseudoregisters.
6360
6361 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6362
6363 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6364 struct if one exists, even if we are dealing with a zombie thread.
6365
6366 2004-06-07 Andrew Cagney <cagney@gnu.org>
6367
6368 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6369 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6370 Rename PC_REQUIRES_RUN_BEFORE_USE.
6371 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6372 #ifdef.
6373
6374 2004-06-07 Randolph Chung <tausq@debian.org>
6375
6376 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6377 unwinding after sp has been saved to the stack but before the end
6378 of the prologue, and after the fp has been modified but before it has
6379 been saved to the stack.
6380 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6381 Remove superfluous definitions.
6382 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6383
6384 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6385
6386 Committed by Randolph Chung.
6387 * hppa-linux-nat.c: Include the correct version of the header file
6388 depending on the kernel version.
6389
6390 2004-06-06 Randolph Chung <tausq@debian.org>
6391
6392 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6393 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6394
6395 2004-06-06 Randolph Chung <tausq@debian.org>
6396
6397 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6398 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6399 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6400 * hppa-tdep.c (hppa_symbol_address): New function definition.
6401 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6402
6403 2004-06-06 Randolph Chung <tausq@debian.org>
6404
6405 * hppa-tdep.h (struct value): Forward declaration.
6406 (gdbarch_tdep): Define tdep find_global_pointer method.
6407 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6408 associated with the function we are trying to call, and write it
6409 to the gp register.
6410 (hppa32_convert_from_funct_ptr_addr): New function.
6411 (hppa_find_global_pointer): New function.
6412 (hppa_gdbarch_init): Set default find_global_pointer method; set
6413 convert_from_func_ptr_addr method.
6414 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6415 (hppa_linux_init_abi): Set find_global_pointer method.
6416 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6417
6418 2004-06-06 Randolph Chung <tausq@debian.org>
6419
6420 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6421 to struct value *function.
6422 * gdbarch.c: Regenerate.
6423 * gdbarch.h: Likewise.
6424 * infcall.c (call_function_by_hand): Pass entire function value
6425 to push_dummy_call.
6426
6427 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6428 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6429 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6430 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6431 * arm-tdep.c (arm_push_dummy_call): Likewise.
6432 * avr-tdep.c (avr_push_dummy_call): Likewise.
6433 * cris-tdep.c (cris_push_dummy_call): Likewise.
6434 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6435 * frv-tdep.c (frv_push_dummy_call): Likewise.
6436 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6437 * hppa-tdep.c (hppa32_push_dummy_call)
6438 (hppa64_push_dummy_call): Likewise.
6439 * i386-tdep.c (i386_push_dummy_call): Likewise.
6440 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6441 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6442 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6443 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6444 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6445 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6446 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6447 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6448 (ppc64_sysv_abi_push_dummy_call): Likewise.
6449 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6450 (ppc64_sysv_abi_push_dummy_call): Likewise.
6451 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6452 * s390-tdep.c (s390_push_dummy_call): Likewise.
6453 * sh-tdep.c (sh_push_dummy_call_fpu)
6454 (sh_push_dummy_call_nofpu): Likewise.
6455 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6456 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6457 * vax-tdep.c (vax_push_dummy_call): Likewise.
6458
6459 2004-06-04 Jim Blandy <jimb@redhat.com>
6460
6461 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6462 gdbarch argument to register_size.
6463
6464 * rs6000-tdep.c (rs6000_store_return_value): Use
6465 regcache_cooked_write_part instead of
6466 deprecated_write_register_bytes.
6467 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6468 not gdbarch_deprecated_store_return_value.
6469
6470 * ppc-linux-nat.c (store_register, fetch_register): Remove
6471 incorrect assertions. Simplify and generalize handling of
6472 transfers whose sizes are not multiples of, or less than, sizeof
6473 (PTRACE_XFER_TYPE).
6474
6475 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6476
6477 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6478 as a new thread event.
6479 * thread-db.c (thread_get_info_callback): If the thread is a
6480 zombie, return TD_THR_ZOMBIE.
6481 (thread_from_lwp): If thread_get_info_callback returns
6482 TD_THR_ZOMBIE, check if the thread is still on the thread list
6483 and return a -1 ptid if not found.
6484 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6485 change the status to TARGET_WAITKIND_SPURIOUS.
6486
6487 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6488
6489 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6490 double values in little endian mode.
6491
6492 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6493
6494 Committed by Andrew Cagney.
6495 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6496 after last enum constant to avoid error from IBM C
6497 compiler.
6498
6499 2004-06-02 Jim Blandy <jimb@redhat.com>
6500
6501 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6502 to 'message', and make it local to the lone block that uses it.
6503
6504 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6505
6506 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6507
6508 * ada-exp.y: Update copyright notice.
6509 Include block.h.
6510
6511 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6512 SPECIAL_VARIABLE and unify the treatment of these cases.
6513
6514 (write_attribute_call0): Remove.
6515 (write_attribute_call1): Remove.
6516 (write_attribute_calln): Remove.
6517 (save_qualifier): Add missing semicolon.
6518
6519 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6520 temporarily disabled to allow compilation with FSF head version.
6521
6522 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6523 use individual operators (OP_*) for all attributes.
6524 (exp syntax): Use write_int.
6525 Handle STRING literals with OP_STRING.
6526 (variable syntax): Add limit parameter to calls to
6527 write_object_renaming.
6528
6529 (temp_parse_space): New definition to hold entities that need
6530 only live until the next call to ada_parse.
6531 (string_to_operator): Rename fields of ada_opname_table entries.
6532
6533 (write_var_from_sym): Record block.
6534 (write_var_from_name): Minor reformatting.
6535 Make sure saved name is properly encoded in the case of multiple
6536 matches, and set its language to Ada.
6537 Update comment.
6538 Modify to indicate unresolved name as symbol in the UNRESOLVED
6539 namespace, allocated in temp_parse_space.
6540 (write_int): New function.
6541
6542 (write_object_renaming): Add max_depth parameter to limit
6543 chains of object renamings.
6544 Handle case where root of renaming expression is itself a renaming.
6545 Use temp_parse_space for temporary name buffer.
6546 Handle renamings to dereferenced pointers (___XEXA suffices).
6547
6548 (ada_parse, yyerror, string_to_operator,
6549 write_var_from_sym, write_var_from_name, write_attribute_call0,
6550 write_attribute_call1, write_attribute_calln,
6551 write_object_renaming): Protoize.
6552
6553 (_initialize_ada_exp): New function.
6554
6555 * ada-lang.c: Update copyright notice.
6556 General terminology change to conform to GNAT compiler usage:
6557 mangle => encode, demangle => decode
6558 Include gdb_obstack.h.
6559 Include gdb_regex.h
6560 Include frame.h
6561 Include hashtab.h
6562 Include completer.h
6563 Include gdb_stat.h
6564 Include block.h
6565 Include infcall.h
6566
6567 (ADA_RETAIN_DOTS): Make sure this is defined.
6568 (TRUNCATION_TOWARDS_ZERO): Define.
6569 (struct string_vector): Define.
6570 (unresolved_names): Remove definition.
6571 (xnew_string_vector): New function.
6572 (string_vector_append): New function.
6573 (extract_string): Make static.
6574 (ada_unqualified_name): New function.
6575 (add_angle_brackets): New function.
6576 (function_name_from_pc): New function.
6577 (place_on_stack): Rename to ensure_lval.
6578
6579 (ensure_lval): Renamed from place_on_stack.
6580 Make identity on lvals.
6581 Update comment.
6582 (is_nonfunction): New interface.
6583 Only symbols in LOC_CONST class can be enumerals.
6584 (fill_in_ada_prototype): Remove; now independent of language.
6585 (add_defn_to_vec): Add obstack and symtab arguments.
6586 Use obstack to hold collected definitions.
6587 (num_defns_collected): New function.
6588 (defns_collected): New function.
6589 (ada_resolve_subexp): Rename to resolve_subexp.
6590 (resolve_subexp): Renamed from ada_resolve_subexp.
6591 (ada_op_name): Return non-const result.
6592 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6593 other purposes.
6594
6595 (to_fixed_array_type): Add declaration.
6596 (coerce_unspec_val_to_type): Remove offset parameter.
6597 (find_sal_from_funcs_and_line): New interface.
6598 (find_line_in_linetable): Ditto.
6599
6600 (all_sals_for_line): Rename to ada_sals_for_line and make
6601 global.
6602 Add new parameter. When set, do not ask the user to choose the
6603 instance, but use the first one found instead.
6604 Use given line number in returned sals.
6605 Fix comment.
6606 Skip the prologue if funfirstline is set.
6607 Correct for memory leak when 0 lines found.
6608
6609 (value_pos_atr): Use pos_atr.
6610 (pos_atr): New function.
6611 (standard_lookup): Add block parameter.
6612
6613 (makeTimeStart): Remove declaration and uses.
6614 (makeTimeStop): Remove declaration and uses.
6615
6616 (ada_completer_word_break_characters): Allow for VMS.
6617 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6618 (raise_sym_name): New constant.
6619 (raise_unhandled_sym_name): New constant.
6620 (raise_assert_sym_name): New constant.
6621 (process_raise_exception_name): New constant.
6622 (longest_exception_template): New constant.
6623 (warning_limit): New variable to limit warnings during expression
6624 evaluation.
6625 (warnings_issued): New variable to keep track of warnings issued.
6626 (known_runtime_file_name_patterns): New constant.
6627 (known_auxiliary_function_name_patterns): New constant.
6628 (symbol_list_obstack): New variable.
6629
6630 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6631 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6632 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6633 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6634 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6635 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6636 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6637 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6638 and strcmp.
6639
6640 (ada_get_field_index): New function.
6641 (lim_warning): New function.
6642 (ada_translate_error_message): New function.
6643 (MAX_OF_SIZE): New function.
6644 (MIN_OF_SIZE): New function.
6645 (UMAX_OF_SIZE): New function.
6646 (UMIN_OF_SIZE): New function.
6647 (discrete_type_high_bound): New function.
6648 (discrete_type_low_bound): New function.
6649 (base_type): New function.
6650 (do_command): Remove.
6651
6652 (ada_update_initial_language): Use language_ada, not language_unknown.
6653 (ada_encode): Renamed from ada_mangle.
6654 Obey ADA_RETAIN_DOTS.
6655 (ada_decode): Renamed from ada_demangle.
6656 Update coding conventions.
6657 (decoded_names_store): New hash table.
6658 (ada_decode_symbol): New function.
6659 (ada_la_decode): New function.
6660
6661 (modify_general_field): Correct computations of offset and bit
6662 position.
6663 (desc_base_type): Handle ref types, too.
6664 (ada_is_direct_array_type): New function.
6665
6666 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6667 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6668 (ada_is_bogus_array_descriptor,ada_type_of_array,
6669 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6670 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6671 ada_is_array_descriptor_type.
6672
6673 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6674 (ada_is_packed_array_type): Handle pointers or
6675 references to packed arrays as well.
6676 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6677 (decode_packed_array_type): Search for the packed array type
6678 symbol in the currently selected block and associated
6679 superblocks too.
6680 Use lookup_symbol again.
6681
6682 (decode_packed_array): Handle pointers and references.
6683 Update call to coerce_unspec_val_to_type.
6684 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6685 (ada_value_primitive_packed_val): Improve comment.
6686
6687 (ada_index_type): Substitute int type for "undefined".
6688 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6689 ada_array_langth, ada_is_string_type): Use renamed
6690 ada_is_simple_array_type.
6691 (empty_array): New function.
6692
6693 (ada_resolve): Rename to resolve.
6694 (resolve): Make static.
6695 Call renamed resolve_subexp.
6696 Update comment.
6697 (ada_resolve_subexp): Rename to resolve_subexp.
6698 (resolve_subexp): Update comment.
6699 Decomment disabled code.
6700 Add LOC_COMPUTED* cases.
6701 Modify to use temporary struct symbols (marked as being in
6702 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6703 OP_UNRESOLVED_VALUE.
6704 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6705 Add OP_STRING case.
6706 Remove OP_ARRAY.
6707 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6708 Use new ada_lookup_symbol_list interface.
6709 Use new ada_resolve_function interface.
6710 Remove OP_TYPE case.
6711
6712 (ada_args_match): Idiot proof against null actuals.
6713 Use intermediate variables to clarify.
6714 (ada_resolve_function): Update comment and interface.
6715 (mangled_ordered_before): Rename to encoded_ordered_before and
6716 update comment.
6717 (sort_choices): Update comment and interface.
6718 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6719 (user_select_syms): New interface.
6720 Use new sort_choices interface.
6721 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6722 (possible_user_operator_p): Idiot-proof against null values.
6723 (ada_simple_renamed_entity): Don't make cleanup; rely on
6724 caller to free result string.
6725 Remove const from return type.
6726 (make_array_descriptor): Rename uses of place_on_stack to
6727 ensure_lval.
6728 Make sure that arrays are on stack.
6729
6730 (HASH_SIZE): Define.
6731 (struct cache_entry): Define.
6732 (cache_space): Define.
6733 (cache): Define.
6734 (clear_ada_sym_cache): New function.
6735 (find_entry): New function.
6736 (lookup_cached_symbol): New function.
6737 (defn_vector_size): Define.
6738 (cache_symbol): New function.
6739 (defn_symbols): Remove.
6740
6741 (standard_lookup): Use lookup_symbol_in_language to get effect of
6742 C lookup.
6743 Cache results.
6744
6745 (symbol_completion_match): New function.
6746 (symbol_completion_add): New function.
6747 (ada_make_symbol_completion_list): New function.
6748
6749 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6750 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6751 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6752 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6753
6754 (ada_lookup_simple_minsym): New function.
6755 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6756
6757 (add_symbols_from_enclosing_procs): New interface.
6758 Conditionalize more helpfully.
6759 Don't bother if program isn't running.
6760 Use new interface to get_frame_block.
6761 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6762
6763 (remove_extra_symbols): New interface.
6764 (xget_renaming_scope): New function.
6765 (is_package_name): New function.
6766 (renaming_is_visible): New function.
6767 (remove_out_of_scope_renamings): New function.
6768
6769 (ada_lookup_symbol_list): New interface.
6770 Properly reinitialize the symbol list obstack.
6771 Don't call add_symbols_from_enclosing_procs if we start from a
6772 static or global block.
6773 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6774 add_symbols_from_enclosing_procs.
6775 Add symtab data to cached entries.
6776 Handle symbols prefixed with
6777 "standard__" specially; strip prefix and don't look in local symbols.
6778 Do not include out of scope renaming symbols in list of
6779 symbols returned.
6780 Add const to block parameter.
6781 Move check for non-local, non-global symbols earlier.
6782 Remove timing stuff.
6783 (ada_lookup_symbol): New interface.
6784 Find symtab as well.
6785 (ada_lookup_symbol_nonlocal): New function.
6786
6787 (is_name_suffix): Enhance suffix detection to recognize
6788 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6789 (is_dot_digits_suffix): New function.
6790 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6791
6792 (ada_add_block_symbols): New interface. Use obstack to return results
6793 in a vector of struct ada_symbol_infos. Add symtab argument.
6794 Use new interface to add_defn_to_vec.
6795 Remove calls to fill_in_ada_prototype.
6796 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6797
6798 (ada_finish_decode_line_1): Add const qualification to local to fix
6799 warning.
6800 Start looking in static block for functions to avoid attempts
6801 to search frame chain for up-level variables.
6802 Adapt to new ada_sals_for_line interface.
6803 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6804 Handle quoting of the function name inside the spec string.
6805 Skip prologue when funfirstline is set and update the
6806 function documentation to that effect.
6807
6808 (debug_print_lines, debug_print_block, debug_print_blocks,
6809 debug_print_symtab): Remove.
6810
6811 (ada_main_name): New function.
6812 (ada_exception_breakpoint_type): New function.
6813 (is_known_support_routine): New function.
6814 (ada_find_printable_frame): Renamed from find_printable_frame and made
6815 global.
6816 Remove level parameter.
6817 Use new interface to select_frame.
6818
6819 (begin_command): Remove.
6820 (ada_adjust_exception_stop): New function.
6821 (ada_print_exception_stop): New function.
6822 (exception_name_from_cond): New function.
6823 (ada_report_exception_break): Replace disabled code with
6824 conditionalization on GNAT_GDB.
6825 Get the exception name from the condition string.
6826 Remove and move functionality into new functions
6827 ada_print_exception_breakpoint_task and
6828 ada_print_exception_breakpoint_nontask.
6829 (error_breakpoint_runtime_sym_not_found): New function.
6830 (is_runtime_sym_defined): New function.
6831 (ada_breakpoint_rewrite): Uncomment suppressed code.
6832 Use symbolic error-message and runtime-symbol names.
6833 Surround runtime symbol names in quotes.
6834 Allow non-specific breakpoints on exceptions and assertions before
6835 program starts.
6836
6837 (ada_is_tagged_type): Add parameter.
6838 (ada_is_tag_type): New function.
6839 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6840 (ada_variant_discrim_type): Ditto.
6841 (value_tag_from_contents_and_address): New function.
6842 (type_from_tag): New function.
6843 (struct tag_args): New structure used to communicate with
6844 ada_tag_name_1.
6845 (ada_tag_name_1): New function.
6846 (ada_tag_name): New function.
6847
6848 (ada_scan_number): Update comment.
6849 (find_struct_field): New function.
6850 (ada_search_struct_field): Make static.
6851 (ada_value_struct_elt): New version that returns references when
6852 given pointers or references to structs.
6853 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6854 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6855 interface.
6856 (ada_value_ind): Use new ada_to_fixed_value interface.
6857 (ada_coerce_ref): Ditto.
6858 (field_offset): Remove.
6859
6860 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6861 (ada_find_renaming_symbol): New function.
6862 (ada_prefer_type): Prefer named types over unnamed ones.
6863 (variant_field_index): New function.
6864 (contains_variant_part): Removed: subsumed by variant_field_index.
6865 (ada_template_to_fixed_record_type): New function, mostly from
6866 template_to_fixed_record_type.
6867 (template_to_fixed_record_type):
6868 Do not scan the type fields beyond the last one; prevents a
6869 potential SEGV.
6870 Handle case where variant field is listed BEFORE discriminant it
6871 depends on.
6872 Fix calculation of record length when bit length is
6873 not evenly divisible by char length.
6874 Move code to ada_template_to_fixed_record_type and call it.
6875
6876 (template_to_static_fixed_type): Revise comment.
6877 Modify to work on ordinary record types as well as templates,
6878 so as to handle fields that use ___XVE or ___XVU encodings.
6879 (to_record_with_fixed_variant_part): Fill out comment.
6880 Initialize C++ stuff in right type.
6881 Allow case where DVAL is null.
6882 Handle case where variant field is not last.
6883 Fix typo concerning record length.
6884 (to_fixed_record_type): Decomment disabled code.
6885 (to_fixed_record_type): Use variant_field_index instead of
6886 contains_variant_part.
6887 (to_fixed_variant_branch_type): Ditto.
6888 (to_fixed_array_type): Decomment disabled code.
6889 (ada_to_fixed_type): Convert tagged types to the specific type.
6890 Deactivate the size-check for array types in order to avoid
6891 some false size alarms.
6892 (to_static_fixed_type): Decomment disabled code.
6893 Modify to call template_to_static_fixed_type
6894 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6895 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6896 Remove valaddr argument, as it is never really used.
6897 (ada_to_fixed_value): Change interface to act on single struct value*
6898 operand.
6899 (adjust_pc_past_prologue): New function.
6900 (ada_attribute_name): Modify to take enum exp_opcode argument.
6901
6902 (ada_enum_name): Recognize new homonym-distinguishing convention.
6903 Adjust local variable's type to remove compiler warning.
6904 Fix a small problem in the part that unqualifies the enumeration name.
6905 (ada_value_binop): New function.
6906 (ada_value_equal): New function.
6907
6908 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6909 Don't give error message when not doing normal evaluation
6910 and a tagged type doesn't seem to contain a structure member.
6911 Give error message for packed arrays.
6912 For indexing arrays, handle pointers to packed arrays correctly.
6913 Handle case of 'first and 'last attributes of bare integral type
6914 without encoded subtype info.
6915 Remove some unnecessary casts.
6916 Fix uninitialized value of type in computing 'first, 'last, or 'length
6917 of array object.
6918 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6919 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6920 calls.
6921 Attributes are now exp_opcode values.
6922 Correct treatment of 'modulus.
6923 Better error message for taking 'length of wrong kind of type;
6924 improve comment.
6925 Change EVAL_NORMAL to noside for consistency.
6926 Use ada_value_binop for DIV, MOD, REM.
6927 Make special case out of array of length 0, since an argument
6928 of 0 upsets some platforms' malloc.
6929 Use OP_STRING instead of OP_ARRAY.
6930 For slice, add check that we have an array type before extracting
6931 a slice out of it. Avoids a SEGV.
6932 When evaluating an array slice, if the array type is a reference to
6933 an aligner type, then replace the aligner type by the actual type.
6934 Decomment disabled code.
6935 Remove some dead code.
6936 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6937 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6938 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6939 and UNOP_MBR to UNOP_IN_RANGE.
6940 If an array type has a parallel ___XVE type, then use it.
6941 Turn arrays into pointers for lvalue arrays.
6942 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6943 bounds error and handle 0-length slices.
6944 Use lim_warning.
6945 When selecting fields, apply ada_to_fixed_value (because the fields
6946 might have ___XVU or ___XVE encodings even if not dynamic.)
6947 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6948 (ada_is_system_address_type): New function.
6949
6950 (get_var_value): Use new interface to ada_lookup_symbol_list.
6951 (get_int_var_value): New interface.
6952 (to_fixed_range_type): Allow unknown bound, with warning.
6953 (ada_is_modular_type): Decomment disabled code.
6954 (ADA_OPERATORS): New definition.
6955 (ada_operator_length): New function.
6956 (ada_expr_op_name): New function.
6957 (ada_forward_operator_length): New function.
6958 (ada_dump_subexp_body): New function.
6959 (ada_print_subexp): New function.
6960 (ada_exp_descriptor): New constant.
6961 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6962 (ada_language_defn): Add ada_exp_descriptor entry.
6963 Change ada_parse => parse.
6964 Add post-parser entry.
6965 Use ada-specific non-local symbol lookup.
6966 Don't use C-style arrays.
6967 String lower-bound is 1.
6968 Decomment disabled code.
6969 (parse): New function.
6970 New fields ada_translate_error_message, ada_lookup_symbol,
6971 ada_lookup_minimal_symbol.
6972
6973 * ada-lang.h: Update copyright dates.
6974 Replace the mangle/demangle terminology throughout by the
6975 more appropriate encode/decode one.
6976 Include breakpoint.h.
6977 Forward declare struct partial_symbol, struct block.
6978 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6979 (EXTRACT_ADDRESS): Remove.
6980 (EXTRACT_INT): Remove.
6981 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6982 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6983 (MAX_RENAMING_CHAIN_LENGTH): Define.
6984 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6985
6986 (enum task_states): Remove.
6987 ada_task_states: Remove.
6988 (fat_string): Remove.
6989 (struct entry_call): Remove.
6990 (struct task_fields): Remove.
6991 (struct task_entry): Remove.
6992
6993 (struct ada_symbol_info): Define.
6994 (enum ada_attribute): Remove.
6995 (enum ada_operator): Define.
6996
6997 (ada_get_field_index): Declare.
6998 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6999 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7000 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7001 (ada_lookup_symbol_list): New interface.
7002 (ada_decode_symbol): Declare.
7003 (ada_decode): Declare.
7004 (ada_lookup_symbol): New interface.
7005 (ada_update_initial_language): Declare.
7006 (ada_lookup_simple_minsym): Declare.
7007 (user_select_syms): New interface.
7008 (ada_sals_for_line): Declare.
7009 (ada_is_tagged_type): New interface.
7010 (ada_tag_name): Declare.
7011 (ada_lookup_struct_elt_type): Remove declaration.
7012 (ada_search_struct_field): Remove declaration.
7013 (ada_attribute_name): New interface.
7014 (ada_is_system_address_type): Declare.
7015 (ada_to_fixed_value): Remove declaration.
7016 (ada_template_to_fixed_record_type_1): Declare.
7017 (get_int_var_value): New interface.
7018 (ada_find_any_symbol): Declare.
7019 (ada_find_renaming_symbol): Declare.
7020 (ada_mangle): Rename to ada_encode.
7021 (ada_simple_renamed_entity): Remove const.
7022 (ada_main_name): Declare.
7023 (get_current_task): Rename to ada_get_current_task.
7024 (get_entry_number): Remove declaration.
7025 (ada_report_exception_break): Remove declaration.
7026 (ada_print_exception_breakpoint_nontask): Declare.
7027 (ada_print_exception_breakpoint_task): Declare.
7028 (ada_find_printable_frame): Declare.
7029
7030 * ada-lex.l: Update copyright notices.
7031 Use xmalloc and xfree instead of malloc and free.
7032 Use new interface to name_lookup.
7033 Use new interface to
7034 ada_mangle=>ada_encode.
7035 Redo handling of '$...' variable to parallel current treatment
7036 in c-exp.y.
7037 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7038 digit_to_int, strtoulst, processInt, processReal, processId,
7039 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7040 yywrap): Protoize.
7041
7042 (processInt): Use cast to remove harmless warning.
7043 (processReal): Modify to get rid of compiler warning on scan formats.
7044
7045 (processId): Replace xmalloc with obstack_alloc for name and remove
7046 call to ada_name_string_cleanup.
7047 Remove obsolete disabled code.
7048 (name_lookup): Ditto.
7049 New interface.
7050 Use obsavestring on temp_parse_space instead of savestring
7051 on name, and remove call to ada_name_string_cleanup.
7052 Free string returned from ada_simple_renamed_entity.
7053 Use new interface to ada_lookup_symbol_list.
7054 Decomment disabled code.
7055 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
7056 not types.
7057 When a type name lookup succeeds as a result of
7058 lookup_primitive_typename, check for regular type entry that has not
7059 yet been read in.
7060 Limit length of chain of renamed symbols we are willing to follow.
7061 Do not break names beginning with "standard__" into segments.
7062 (block_lookup): Use new interface to ada_lookup_symbol_list.
7063
7064 * ada-typeprint.c: Update copyright notice.
7065 (demangled_type_name): Rename to decoded_type_name.
7066 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7067 (print_range_bound): Correct handling of negative
7068 bounds that make the index type looked unsigned under STABS.
7069 (print_dynamic_range_bound): Use new interface to get_int_var_value.
7070 (print_range_type_named): Use the builtin int type if no type
7071 corresponding to the given type name could be found.
7072 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7073 Add some bullet-proofing.
7074 (print_variant_clauses): Allow for variant branches with ___XVU
7075 encodings that are not dynamic fields.
7076 Use new interface to ada_is_tagged_type.
7077 (print_record_type): Allow for fields with ___XVE encodings that
7078 are not dynamic fields.
7079 Use new interface to ada_is_tagged_type.
7080 (ada_print_type): ada_is_array_descriptor =>
7081 ada_is_array_descriptor_type.
7082
7083 * ada-valprint.c: Update copyright notice.
7084 Include gdb_string.h
7085 Include infcall.h
7086 (ui_memcpy): New function.
7087 (ada_print_floating): New function.
7088 (ada_print_str): Order arguments correctly.
7089 Correct handling of empty arrays and arrays of 0-length items.
7090 ada_is_array_descriptor => ada_is_array_descriptor_type
7091 Print values of type System.Address in hexadecimal format.
7092 Use ada_print_floating to print floating-point numbers in Ada format.
7093 Print class tag values with type names.
7094 No longer print the address of reference values. Avoids
7095 a potential confusion.
7096 (ada_value_print): Stop printing the object type for reference
7097 values, but preserve that behavior for access types. Avoids
7098 a potential confusion.
7099 Simplify one conditional expression, as the first part is now
7100 necessarily true.
7101 ada_is_array_descriptor => ada_is_array_descriptor_type
7102 Add check for arrays for null records, and print them by hand.
7103
7104 2004-06-01 Jim Blandy <jimb@redhat.com>
7105
7106 * ppc-tdep.h: Delete unused 'regoff' member.
7107 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7108
7109 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7110
7111 Fix PR symtab/1661.
7112 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7113 (hpread_read_struct_type): Likewise.
7114
7115 2004-06-01 Andrew Cagney <cagney@gnu.org>
7116
7117 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7118 instead of xasprintf.
7119 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7120 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7121 (mi_cmd_data_list_register_names)
7122 (mi_cmd_data_list_changed_registers)
7123 (mi_cmd_data_list_register_values)
7124 (get_register, mi_cmd_data_write_register_values)
7125 (mi_cmd_data_write_register_values)
7126 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7127 (mi_cmd_target_download, mi_cmd_target_select)
7128 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7129 (mi_execute_cli_command, mi_execute_async_cli_command)
7130 (mi_execute_async_cli_command): Ditto.
7131 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7132 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7133
7134 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7135 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7136 error_last_message instead of mi_error_last_message.
7137 * mi/mi-main.c (mi_error_last_message): Delete function.
7138
7139 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7140 "invalid number of columns" error. Delete redundant "out of
7141 memory" check.
7142
7143 2004-05-31 Mark Kettenis <kettenis@gnu.org>
7144
7145 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7146 (gregset_t, fpregset_t): Remove typedefs.
7147 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7148 (REG_OFFSET): Rename argument.
7149 (i386bsd_r_reg_offset): Rename from reg_offset.
7150 (REG_ADDR): Remove macro.
7151 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7152 functions.
7153 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7154 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7155 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7156 instead of supply_gregset.
7157 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7158 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7159 instead of fill_gregset.
7160 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7161
7162 * i386bsd-nat.c: Don't include "gregset.h".
7163 (supply_gregset, fill_gregset): Make static.
7164 (supply_fpregset, fill_fpregset): Remove.
7165 * Makefile.in (i386bsd-nat.o): Update dependencies.
7166
7167 2004-05-30 Mark Kettenis <kettenis@gnu.org>
7168
7169 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7170 "gdb_assert.h". Con't include "gregset.h".
7171 (fbsd_make_corefile_notes): Use regset-based core file support
7172 instead off fill_gregset and fill_fpregset.
7173 * Makefile.in (fbsd-proc.o): Update dependencies.
7174
7175 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7176 instructions.
7177 (m88k_frame_prev_register): Simplify code a bit.
7178
7179 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7180 (amd64_collect_fpregset): New function.
7181 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7182
7183 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7184
7185 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7186 (i386_collect_gregset): New function.
7187 (i386_supply_fpregset): Adjust comment.
7188 (i386_collect_fpregset): New function.
7189 (i386_regset_from_core_section): Use i386_collect_gregset and
7190 i386_collect_fpregset.
7191
7192 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7193 handle VALUEP being null.
7194
7195 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7196
7197 2004-05-29 Mark Kettenis <kettenis@gnu.org>
7198
7199 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7200
7201 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7202 assembler in OpenBSD 3.5-current.
7203 (amd64obsd_sigcontext_addr): Likewise.
7204
7205 2004-05-28 Jim Blandy <jimb@redhat.com>
7206
7207 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7208 register set, so our regcache isn't declared "legacy" and our E500
7209 pseudoregister read and write functions aren't ignored.
7210 (rs6000_register_byte, rs6000_register_raw_size,
7211 rs6000_register_virtual_type, rs6000_register_convertible,
7212 rs6000_register_convert_to_virtual,
7213 rs6000_register_convert_to_raw): Deleted.
7214 (rs6000_register_type, rs6000_convert_register_p,
7215 rs6000_register_to_value, rs6000_value_to_register): New
7216 functions.
7217 (rs6000_gdbarch_init): Don't register
7218 gdbarch_deprecated_register_size,
7219 gdbarch_deprecated_register_bytes,
7220 gdbarch_deprecated_register_byte,
7221 gdbarch_deprecated_register_raw_size,
7222 gdbarch_deprecated_register_virtual_type,
7223 gdbarch_deprecated_register_convertible,
7224 gdbarch_deprecated_register_convert_to_virtual, or
7225 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7226 register gdbarch_register_type, gdbarch_convert_register_p,
7227 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7228
7229 2004-05-26 Jim Blandy <jimb@redhat.com>
7230
7231 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7232 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7233 functions, updated to match the register numberings used in GCC.
7234 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7235 rs6000_dwarf2_reg_to_regnum as register number conversions
7236 functions for STABS and Dwarf2.
7237
7238 2004-05-26 Randolph Chung <tausq@debian.org>
7239
7240 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7241 in header file.
7242
7243 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7244
7245 * NEWS: Document new "start" command.
7246
7247 2004-05-25 Randolph Chung <tausq@debian.org>
7248
7249 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7250 hppa-linux.
7251
7252 2004-05-25 Randolph Chung <tausq@debian.org>
7253
7254 * hppa-hpux-tdep.c (offsetof): Define.
7255 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7256 (hppa32_hpux_frame_base_before_sigtramp)
7257 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7258 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7259 (hppa64_hpux_frame_base_before_sigtramp)
7260 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7261 functions.
7262 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7263 (hppa_hpux_sigtramp_frame_unwind_cache)
7264 (hppa_hpux_sigtramp_frame_this_id)
7265 (hppa_hpux_sigtramp_frame_prev_register)
7266 (hppa_hpux_sigtramp_frame_unwind)
7267 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7268 (hppa_hpux_init_abi): Register sigtramp unwinder.
7269 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7270
7271 2004-05-25 Randolph Chung <tausq@debian.org>
7272
7273 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7274 and multiple stack unwinds.
7275 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7276
7277 2004-05-25 Andrew Cagney <cagney@gnu.org>
7278
7279 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7280 * symfile-mem.h: Delete file.
7281 * symfile-mem.c: Do not include "symfile-mem.h".
7282 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7283 "struct bfd_section". When an error do not bother returning NULL.
7284 (add_symbol_file_from_memory_command): Use "struct bfd" and
7285 "struct bfd_section".
7286 * Makefile.in (symfile_mem_h): Delete.
7287 (symfile-mem.o): Update dependencies.
7288
7289 2004-05-25 Nick Roberts <nickrob@gnu.org>
7290
7291 * gdb-mi.el: New file.
7292
7293 2004-05-25 Andrew Cagney <cagney@gnu.org>
7294
7295 * inftarg.c: Include "observer.h".
7296 (child_attach, child_create_inferior): Notify inferior_created.
7297 * corelow.c: Include "observer.h".
7298 (core_open): Notify inferior_created.
7299 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7300
7301 2004-05-25 Andrew Cagney <cagney@gnu.org>
7302
7303 * target.h (struct target_ops): Add from_tty to
7304 to_create_inferior.
7305 (target_create_inferior, find_default_create_inferior): Update.
7306 * infcmd.c (run_command): Update.
7307 * wince.c (child_create_inferior): Update.
7308 * win32-nat.c (child_create_inferior): Update.
7309 * uw-thread.c (uw_thread_create_inferior): Update.
7310 * thread-db.c (thread_db_create_inferior): Update.
7311 * target.c (debug_to_create_inferior)
7312 (find_default_create_inferior): Update.
7313 (maybe_kill_then_create_inferior): Update.
7314 * sol-thread.c (sol_thread_create_inferior): Update.
7315 * remote.c (extended_remote_async_create_inferior)
7316 (extended_remote_create_inferior): Update.
7317 * remote-vx.c (vx_create_inferior): Update.
7318 * remote-st.c (st2000_create_inferior): Update.
7319 * remote-sim.c (gdbsim_create_inferior): Update.
7320 * remote-sds.c (sds_create_inferior): Update.
7321 * remote-rdp.c (remote_rdp_create_inferior): Update.
7322 * remote-rdi.c (arm_rdi_create_inferior): Update.
7323 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7324 * remote-e7000.c (e7000_create_inferior): Update.
7325 * procfs.c (procfs_create_inferior): Update.
7326 * ocd.c (ocd_create_inferior): Update.
7327 * ocd.h (ocd_create_inferior): Update.
7328 * nto-procfs.c (procfs_create_inferior): Update.
7329 * monitor.c (monitor_create_inferior): Update.
7330 * lin-lwp.c (lin_lwp_create_inferior): Update.
7331 * inftarg.c (child_create_inferior): Update.
7332 * hpux-thread.c (hpux_thread_create_inferior): Update.
7333 * gnu-nat.c (gnu_create_inferior): Update.
7334
7335 2004-05-25 Andrew Cagney <cagney@gnu.com>
7336
7337 * MAINTAINERS: Update e-mail address.
7338
7339 2004-05-24 Randolph Chung <tausq@debian.org>
7340
7341 * thread.c (info_threads_command, thread_apply_all_command)
7342 (thread_apply_command, thread_command, do_captured_thread_select):
7343 Remove HPUXHPPA-specific code.
7344
7345 2004-05-24 Randolph Chung <tausq@debian.org>
7346
7347 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7348 unused symbols.
7349 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7350 references.
7351
7352 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7353
7354 * infcmd.c (kill_if_already_running): New function, extracted
7355 from run_command().
7356 (run_command): Replace extracted code by call to
7357 kill_if_already_running().
7358 (start_command): New function.
7359 (_initialize_infcmd): Add "start" command.
7360
7361 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7362
7363 Add OpenBSD/m88k support.
7364 * NEWS (New native configurations): Mention OpenBSD/m88k.
7365 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7366 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7367 * Makefile.in (m88k_tdep_h): New variable.
7368 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7369 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7370 * configure.host: Add m88*-*-openbsd*.
7371 * configure.tgt: Add m88*-*-openbsd*.
7372
7373 2004-05-24 Jim Blandy <jimb@redhat.com>
7374
7375 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7376 to approve changes.
7377
7378 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7379
7380 * symtab.c (fixup_section): Search section table when lookup by
7381 name fails.
7382
7383 2004-05-24 Randolph Chung <tausq@debian.org>
7384
7385 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7386 be "small_struct".
7387
7388 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7389
7390 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7391 register number in regcache_raw_collect call.
7392 (m68kbsd_collect_fpregset): Likewise.
7393 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7394
7395 * regset.h (struct regset): Add back `regset' member.
7396
7397 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7398
7399 * configure.in: Check for td_pcb in `struct thread'.
7400 * configure, config.in: Regenerated.
7401
7402 * dpx2-nat.c: Remove file.
7403 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7404 (dpx2-nat.o): Remove dependencies.
7405
7406 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7407 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7408 (amd64obsd_supply_pcb): New function.
7409 (_initialize_amd64obsd_nat): Enable libkvm interface.
7410 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7411 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7412 (LOADLIBES): New variable.
7413
7414 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7415 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7416 (sparc32nbsd_supply_pcb): New function.
7417 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7418 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7419 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7420 (LOADLIBES): New variable.
7421
7422 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7423
7424 * bsd-kvm.c, bsd-kvm.h: New files.
7425 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7426 "bsd-kvm.h".
7427 (i386fbsd_supply_pcb): New function.
7428 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7429 (i386fbsd-nat.o): Update dependencies.
7430 (bsd_kvm_h): New variable.
7431 (bsd-kvm.o): New dependency.
7432 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7433 (LOADLIBES): New variable.
7434
7435 * regset.c: Tweak comment.
7436 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7437 macro.
7438 * regset.h: Update copyright year.
7439 (struct regset): Remove `descr' member, add `gdbarch' member.
7440 (regset_alloc): Adjust prototype and comment.
7441 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7442 (i386_supply_fpregset): Likewise.
7443 (i386_regset_from_core_section): Update call to regset_alloc.
7444 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7445 REGSET->arch.
7446 (i386obsd_aout_regset_from_core_section): Update call to
7447 regset_alloc.
7448 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7449 REGSET->arch.
7450 (i386nbsd_aout_regset_from_core_section): Update call to
7451 regset_alloc.
7452 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7453 REGSET->arch.
7454 (amd64_regset_from_core_section): Update call to regset_alloc.
7455 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7456 REGSET->arch.
7457 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7458 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7459 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7460 (sparc32nbsd_init_abi): Update call to regset_alloc.
7461 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7462 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7463 (sparc64obsd_init_abi): Update call to regset_alloc.
7464 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7465 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7466 (sparc64nbsd_init_abi): Update call to regset_alloc.
7467 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7468 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7469 (sparc64fbsd_init_abi): Update call to regset_alloc.
7470
7471 2004-05-22 Jim Blandy <jimb@redhat.com>
7472
7473 * ppc-tdep.h (spe_register_p): New declaration.
7474 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7475 ppc_spefscr_regnum.
7476 * rs6000-tdep.c (spe_register_p): New function.
7477 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7478 spefscr.
7479 (rs6000_gdbarch_init): Initialize the new members of the tdep
7480 structure.
7481
7482 2004-05-21 Jim Blandy <jimb@redhat.com>
7483
7484 * ppc-linux-nat.c (fetch_register): Move code back to be next
7485 to the comment that describes it. (Moved code, instead of
7486 comment, for symmetry with store_register.)
7487
7488 Allocate regset structures in the gdbarch's obstack, not using
7489 xmalloc.
7490 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7491 Add 'arch' argument. Allocate the regset on arch's obstack, not
7492 using xmalloc.
7493 * regset.h (regset_alloc): Update declaration.
7494 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7495 gdbarch argument.
7496 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7497 * i386-tdep.c (i386_regset_from_core_section): Same.
7498 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7499 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7500 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7501 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7502 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7503 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7504
7505 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7506
7507 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7508
7509 2004-05-21 Jim Blandy <jimb@redhat.com>
7510
7511 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7512 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7513
7514 2004-05-20 Jim Blandy <jimb@redhat.com>
7515
7516 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7517
7518 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7519
7520 * regset.h: Make prototype const-correct.
7521 * regset.c (regset_xmalloc): Make const-correct.
7522
7523 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7524
7525 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7526 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7527 (symbol_search_name): Declare.
7528
7529 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7530 (iter_name_next_hashed): Ditto.
7531 (iter_name_next_linear): Ditto.
7532 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7533
7534 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7535 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7536 (symbol_search_name): New function.
7537
7538 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7539
7540 * minsyms.c (build_minimal_symbol_hash_tables): Change
7541 test for adding to demangled hash table to check for difference
7542 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7543
7544 2004-05-19 Jim Blandy <jimb@redhat.com>
7545
7546 Use a constructor function to create regset structures.
7547 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7548 (struct regset): Use supply_regset_ftype. Add new
7549 'collect_regset' member.
7550 (regset_xmalloc): New declaration.
7551 * regset.c: New file.
7552 * am64-tdep.c (amd64_regset_from_core_section): Use
7553 regset_xmalloc to construct regset structures.
7554 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7555 * i386-tdep.c (i386_regset_from_core_section): Same.
7556 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7557 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7558 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7559 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7560 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7561 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7562 * Makefile.in (COMMON_OBS): Add regset.o.
7563 (regset.o): New rule.
7564
7565 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7566
7567 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7568 and pthread_cond_wait.c.
7569
7570 2004-05-18 Jim Blandy <jimb@redhat.com>
7571
7572 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7573 before the mach-specific switch, and then let the individual cases
7574 override the defaults, rather than leaving them uninitialized
7575 until the switch and then setting them in each case.
7576
7577 2004-05-18 Randolph Chung <tausq@debian.org>
7578
7579 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7580 millicode functions.
7581
7582 2004-05-18 Randolph Chung <tausq@debian.org>
7583
7584 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7585 references to dld_flags_buffer consistent.
7586
7587 2004-05-18 Randolph Chung <tausq@debian.org>
7588
7589 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7590 it for unwinding the stack.
7591
7592 2004-05-18 Randolph Chung <tausq@debian.org>
7593
7594 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7595 Undefine these so we can overide them using gdbarch.
7596
7597 2004-05-18 Randolph Chung <tausq@debian.org>
7598
7599 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7600 handling for 64-bit HPUX (elf).
7601
7602 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7603
7604 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7605 constants.
7606 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7607 * ia64-tdep.c (examine_prologue): Likewise.
7608 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7609 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7610
7611 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7612
7613 * vax-tdep.c (vax_return_value): Implement
7614 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7615
7616 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7617
7618 * vax-tdep.c (vax_return_value): Fix typo.
7619
7620 2004-05-17 Andrew Cagney <cagney@redhat.com>
7621
7622 * MAINTAINERS: Mark Salter was also responsible for
7623 testsuite/config/
7624
7625 * NEWS: Mention signal fixes.
7626
7627 2004-05-17 Randolph Chung <tausq@debian.org>
7628
7629 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7630 check to see if we are unwinding an export stub. Export stubs clobber
7631 the %rp in the call path and stores the original rp in a stack slot.
7632
7633 2004-05-17 Jim Blandy <jimb@redhat.com>
7634
7635 * MAINTAINERS: Update address for J.T. Conklin.
7636
7637 2004-05-17 Randolph Chung <tausq@debian.org>
7638
7639 * hppa-tdep.c: Remove superfluous #include's.
7640 * Makefile.in (hppa-tdep.o): Update dependencies.
7641
7642 2004-05-17 Randolph Chung <tausq@debian.org>
7643
7644 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7645 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7646 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7647 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7648 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7649 Remove static function declarations.
7650
7651 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7652
7653 * alphabsd-nat.c: Update copyright year.
7654 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7655
7656 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7657 and M68K_A2_REGNUM.
7658
7659 * m68k-tdep.c (m68k_svr4_return_value): Implement
7660 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7661
7662 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7663
7664 * sol-thread.c Update copyright year. Fix various coding
7665 standards violations. Tweak a few comments.
7666 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7667 Delete prototypes.
7668
7669 2004-05-15 Randolph Chung <tausq@debian.org>
7670
7671 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7672 as pointer instead of array reference since HPUX compiler does
7673 not accept unsized array arguments.
7674 * somsolib.c (dld_flags_buffer): Use constant array size.
7675
7676 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7677
7678 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7679 offset with decimal offset.
7680 (amd64obsd_sigcontext_addr): Return correct address for entire
7681 signal trampoline.
7682
7683 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7684 instead of get_frame_base.
7685
7686 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7687 (fill_gregset): Use regcache_raw_collect.
7688
7689 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7690 ppcobsd-tdep.c.
7691
7692 * config/sparc/tm-nbsd64.h: Remove file.
7693 * config/tm-sunos.h: Remove file.
7694
7695 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7696
7697 * rs6000-tdep.c (store_param_on_stack_p): New function,
7698 an improved version of some code extracted from skip_prologue().
7699 (skip_prologue): Use store_param_on_stack_p() to detect
7700 instructions saving a parameter on the stack. Detect when r0
7701 is used to save a parameter.
7702 Do not mark "li rx, SIMM" instructions as part of the prologue,
7703 unless the following instruction is also part of the prologue.
7704
7705 2004-05-14 Andrew Cagney <cagney@redhat.com>
7706
7707 * infrun.c (handle_inferior_event): Simplify
7708 STEP_OVER_UNDEBUGGABLE.
7709
7710 * infrun.c (handle_step_into_function): Delete function.
7711 (handle_inferior_event): Inline calls to
7712 handle_step_into_function.
7713
7714 2004-05-14 Jerome Guitton <guitton@gnat.com>
7715
7716 * rs6000-nat.c: Fix a comment.
7717
7718 2004-05-12 David Anderson <davea@sgi.com>
7719
7720 Committed by Jim Blandy <jimb@redhat.com>:
7721 * regcache.c (struct regcache_descr): fix comment spelling.
7722
7723 2004-05-13 J. Brobecker <brobecker@gnat.com>
7724
7725 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7726 Fixes a link link failure.
7727
7728 2004-05-13 J. Brobecker <brobecker@gnat.com>
7729
7730 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7731 error that was causing the build to fail.
7732
7733 2004-05-13 J. Brobecker <brobecker@gnat.com>
7734
7735 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7736 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7737
7738 2004-05-13 Andrew Cagney <cagney@redhat.com>
7739
7740 * infrun.c (handle_inferior_event): Check for
7741 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7742 calls. Update comments.
7743
7744 2004-05-13 Jim Blandy <jimb@redhat.com>
7745
7746 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7747 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7748 (store_regs_user_thread, store_regs_kernel_thread): Use
7749 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7750 * ppc-linux-nat.c (fill_gregset): Same.
7751 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7752 (ppc_linux_sigtramp_cache): Same.
7753 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7754 (ppcnbsd_sigtramp_cache_init): Same.
7755 * rs6000-nat.c (fetch_core_registers): Same.
7756 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7757 (rs6000_frame_cache): Same.
7758
7759 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7760 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7761 of assuming that the gprs are numbered starting with zero.
7762 * ppc-linux-nat.c (fill_gregset): Same.
7763 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7764 * ppcnbsd-nat.c (getregs_supplies): Same.
7765 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7766 * rs6000-nat.c (fetch_core_registers): Same.
7767 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7768
7769 2004-05-07 Michael Snyder <msnyder@redhat.com>
7770
7771 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7772 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7773
7774 2004-05-13 Andrew Cagney <cagney@redhat.com>
7775
7776 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7777
7778 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7779
7780 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7781 base_address for shared libraries.
7782
7783 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7784
7785 * MAINTAINERS (write after approval): Add myself.
7786
7787 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7788
7789 * breakpoint.c (bpstat_stop_status): Add new argument
7790 STOPPED_BY_WATCHPOINT. Use it instead of testing
7791 target_stopped_data_address agaist 0 to check whether
7792 or not we stopped due to a hardware watchpoint.
7793 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7794 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7795 with new argument.
7796
7797 2004-05-12 Jim Blandy <jimb@redhat.com>
7798
7799 * configure.in: When checking whether we should use the -bbigtoc
7800 option, don't forget to restore the original value of LDFLAGS.
7801 * configure: Regenerated.
7802
7803 2004-05-12 Andrew Cagney <cagney@redhat.com>
7804
7805 * thread.c (load_infrun_state): Delete step_sp.
7806 * infrun.c (context_switch): Ditto.
7807 * inferior.h (step_sp): Ditto.
7808 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7809 * gdbthread.h (struct thread_info, save_infrun_state)
7810 (restore_infrun_state): Ditto.
7811
7812 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7813
7814 * MAINTAINERS (write after approval): Add myself.
7815
7816 2004-05-12 Andrew Cagney <cagney@redhat.com>
7817
7818 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7819 eliminate reference to step_sp.
7820 (struct execution_control_state, init_execution_control_state)
7821 (handle_inferior_event, keep_going): Delete update_step_sp and
7822 step_sp.
7823 * infcmd.c (step_sp): Note that variable is unused.
7824
7825 2004-05-11 Andrew Cagney <cagney@redhat.com>
7826
7827 * infrun.c (step_over_function): Delete function.
7828 (handle_step_into_function): Use insert_step_resume_breakpoint.
7829 (insert_step_resume_breakpoint): Fix assertion.
7830
7831 2004-05-11 Nick Roberts <nickrob@gnu.org>
7832
7833 * utils.c (defaulted_query): Just use the normal query input type
7834 when printing the annotations.
7835
7836 2004-05-11 Andrew Cagney <cagney@redhat.com>
7837
7838 * infrun.c (handle_inferior_event): Simplify code handling
7839 step-into or return-from a signal trampoline.
7840
7841 2004-05-11 Andrew Cagney <cagney@redhat.com>
7842
7843 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7844 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7845
7846 2004-05-10 Jim Blandy <jimb@redhat.com>
7847
7848 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7849 with a call to internal_error.
7850
7851 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7852 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7853 processor variant lacks those registers.
7854 (ppc_floating_point_unit_p): Change description to make it clear
7855 that this returns info about the ISA, not the ABI.
7856 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7857 return true or false by checking tdep->ppc_fp0_regnum and
7858 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7859 arch/mach switching done in rs6000_gdbarch_init; it's better to
7860 keep that logic there, and just check the results here.
7861 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7862 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7863 floating-point registers.
7864 (ppc_supply_fpregset, ppc_collect_fpregset)
7865 (rs6000_push_dummy_call, rs6000_extract_return_value)
7866 (rs6000_store_return_value): Assert that we have floating-point
7867 registers.
7868 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7869 (rs6000_frame_cache): Don't note the locations at which
7870 floating-point registers were saved if we have no fprs.
7871 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7872 registers.
7873 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7874 (store_regs_user_thread, store_regs_kernel_thread): Only call
7875 supply_fprs / fill_fprs if we actually have floating-point
7876 registers.
7877 (special_register_p): Check ppc_fpscr_regnum before matching
7878 against it.
7879 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7880 supply / collect fpscr if we don't have it.
7881 * ppc-bdm.c: #include "gdb_assert.h".
7882 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7883 have floating-point registers, since I can't test this code on
7884 FP-free systems to adapt it.
7885 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7886 fpscr and floating point register numbers if they don't exist.
7887 (fetch_register): Assert that we have floating-point registers
7888 before we reach the code that handles them.
7889 (store_register): Same. And use tdep instead of calling
7890 gdbarch_tdep again.
7891 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7892 don't have them.
7893 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7894 fprs and fpscr if we don't have them.
7895 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7896 don't have them.
7897 * ppcnbsd-nat.c: #include "gdb_assert.h".
7898 (getfpregs_supplies): Assert that we have floating-point registers.
7899 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7900 * ppcobsd-tdep.c: #include "gdb_assert.h".
7901 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7902 have floating-point registers.
7903 * rs6000-nat.c (regmap): Don't match against the fpscr and
7904 floating point register numbers if they don't exist.
7905 (fetch_inferior_registers, store_inferior_registers,
7906 fetch_core_registers): Only fetch / store / supply the
7907 floating-point registers and the fpscr if we have them.
7908 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7909 (ppcobsd-tdep.o): Update dependencies.
7910
7911 2004-05-10 Andrew Cagney <cagney@redhat.com>
7912
7913 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7914 (context_switch): Do not switch through_sigtramp_breakpoint.
7915 * gdbthread.h (save_infrun_state, load_infrun_state)
7916 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7917 and structure member.
7918 * thread.c (load_infrun_state, save_infrun_state): Update.
7919
7920 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7921
7922 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7923
7924 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7925
7926 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7927 throughout.
7928 * aclocal.m4: Regenerate.
7929
7930 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7931
7932 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7933
7934 2004-05-10 Andrew Cagney <cagney@redhat.com>
7935
7936 * infrun.c (check_sigtramp2): Delete function.
7937 (handle_inferior_event): When single stepping, and taking a
7938 signal, set a breakpoint at the signal return address. Delete
7939 redundant calls to check_sigtramp2.
7940 (insert_step_resume_breakpoint): New function.
7941 (through_sigtramp_breakpoint, handle_inferior_event)
7942 (follow_exec, wait_for_inferior, fetch_inferior_event)
7943 (currently_stepping, keep_going): Delete most uses of
7944 through_sigtramp_breakpoint, not that it should be deleted.
7945 (delete_breakpoint_current_contents): Delete function.
7946
7947 2004-05-10 Randolph Chung <tausq@debian.org>
7948
7949 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7950 target.
7951 * config/pa/tm-linux.h: New file.
7952
7953 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7954
7955 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7956 of prefixes. Don't print the prefix twice in the CLI.
7957
7958 2004-05-10 Jim Blandy <jimb@redhat.com>
7959
7960 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7961 collect all the gprs.
7962
7963 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7964 loop collecting gprs.
7965
7966 2004-05-09 Andrew Cagney <cagney@redhat.com>
7967
7968 * remote-vx.c (net_step): Delete step-range code.
7969 * remote.c (remote_resume, init_all_packet_configs)
7970 (set_remote_protocol_E_packet_cmd)
7971 (show_remote_protocol_E_packet_cmd)
7972 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7973 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7974 (show_remote_protocol_e_packet_cmd): Ditto.
7975
7976 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7977
7978 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7979
7980 * hppa-tdep.h: Update copyright year.
7981 (struct trad_frame_saved_reg): Add opaque declaration.
7982
7983 * amd64-tdep.c (amd64_return_value): Implement
7984 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7985
7986 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7987 (m68k_value_to_register): New functions.
7988 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7989 value_to_register.
7990
7991 * defs.h (enum return_value_convention): Add
7992 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7993 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7994 * infcmd.c (legacy_return_value): New function.
7995 (print_return_value): Rwerite to implement
7996 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7997 * values.c (using_struct_return): Check for inequality to
7998 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7999 RETURN_VALUE_STRUCT_CONVENTION.
8000 * i386-tdep.c (i386_return_value): Implement
8001 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8002
8003 * vax-tdep.c: Tweak comments. Reorder include files. Don't
8004 include "symtab.h", "opcode/vax.h" and "inferior.h".
8005 (vax_skip_prologue): Replace calls to read_memory_integer by calls
8006 to read_memory_unsigned_integer.
8007 (vax_gdbarch_init): Reorder.
8008 (_initialize_vax_tdep): Spell out prototype.
8009 * Makefile.in (vax-tdep.o): Update dependencies.
8010
8011 2004-05-08 Andrew Cagney <cagney@redhat.com>
8012
8013 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8014 * target.c (target_detach, target_disconnect): Ditto.
8015
8016 * infcall.c (call_function_by_hand): When no
8017 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8018 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8019 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8020 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8021 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8022
8023 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8024 * gdbarch.h, gdbarch.c: Re-generate.
8025 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8026 deprecated_fix_call_dummy.
8027 * v850-tdep.c (v850_gdbarch_init): Ditto.
8028 * infcall.c (call_function_by_hand): Do not call
8029 DEPRECATED_FIX_CALL_DUMMY.
8030
8031 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8032 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8033 * gdbarch.h, gdbarch.c: Re-generate.
8034 * arm-linux-tdep.c (arm_linux_call_dummy_words)
8035 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8036 deprecated_sizeof_call_dummy_words.
8037 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8038 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8039 * v850-tdep.c (v850_gdbarch_init): Ditto.
8040 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8041 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8042 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8043 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8044 * arch-utils.h (legacy_call_dummy_words)
8045 (legacy_sizeof_call_dummy_words): Delete declarations.
8046 * arch-utils.c (legacy_call_dummy_words)
8047 (legacy_sizeof_call_dummy_words): Delete variables.
8048
8049 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8050 * gdbarch.h, gdbarch.c: Re-generate.
8051 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8052 * infcall.c (call_function_by_hand): Eliminate call to
8053 DEPRECATED_PUSH_DUMMY_FRAME.
8054 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8055 push_dummy_frame.
8056 (ns32k_push_dummy_frame): Delete function.
8057
8058 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8059 deprecated_call_dummy_breakpoint_offset or
8060 deprecated_call_dummy_start_offset.
8061 * dummy-frame.c, arm-tdep.c: Update comments.
8062 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8063 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8064 * gdbarch.h, gdbarch.c: Re-generate.
8065
8066 * infcall.c (legacy_push_dummy_code): Delete function.
8067 (push_dummy_code): Delete call.
8068
8069 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8070 * gdbarch.h, gdbarch.c: Re-generate.
8071 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8072 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8073 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8074 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8075
8076 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8077 (struct frame_info): Delete opaque declaration.
8078 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8079 * frame.c (get_frame_type): Delete call.
8080
8081 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8082 pc_in_call_dummy.
8083 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8084 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8085
8086 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8087
8088 * alphanbsd-tdep.c: Include "gdb_string.h".
8089 * armnbsd-tdep.c: Update copyright year.
8090 Include "gdb_string.h".
8091 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8092 dependencies.
8093
8094 * delta68-nat.c: Remove file.
8095 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8096 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8097 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8098 (delta68-nat.o): Remove dependency.
8099
8100 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8101 function.
8102 (m68k_gdbarch_init): Don't set
8103 deprecated_frameless_function_invocation.
8104
8105 2004-05-07 Randolph Chung <tausq@debian.org>
8106
8107 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8108 read_memory_nobpt for code reading when doing frame unwinding.
8109 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8110
8111 2004-05-07 Randolph Chung <tausq@debian.org>
8112
8113 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8114 instead of sp, handle sigaltstack case.
8115 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8116 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8117 signal handler and not that of the caller.
8118 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8119 hppa_linux_sigtramp_find_sigcontext.
8120
8121 2004-05-07 Randolph Chung <tausq@debian.org>
8122
8123 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8124 hppa-linux-nat.c.
8125 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8126 * hppa-linux-nat.c (fetch_register, store_register): Define.
8127 (fetch_inferior_registers, store_inferior_registers): Define.
8128 (supply_gregset): Add comment and clean up some unneeded code.
8129 (fill_gregset): Add comment and fix so that it saves registers in
8130 the right place in the gregset.
8131 (fill_fpregset): Fix buffer overrun problem.
8132 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8133
8134 2004-05-07 Randolph Chung <tausq@debian.org>
8135
8136 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8137 do common handling of the pcoqt register.
8138 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8139 to use helper function.
8140 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8141 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8142 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8143 generic fallback unwinder when all else fails.
8144 (hppa_gdbarch_init): Add fallback sniffer.
8145 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8146 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8147 to use helper function.
8148
8149 2004-05-08 Joel Brobecker <brobecker@gnat.com>
8150
8151 * config/djgpp/fnchange.lst: Add translation rules for
8152 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8153
8154 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8155
8156 * frame.c (get_prev_frame_1): Work around GCC bug.
8157 * frame.h: Add comment about GCC bug.
8158
8159 2004-05-07 Andrew Cagney <cagney@redhat.com>
8160
8161 * observer.c: Include "commands.h" and "gdbcmd.h".
8162 (observer_debug, _initialize_observer): Add the
8163 command "set/show debug observer".
8164 * observer.sh: When observer debugging, log notify calls.
8165 * Makefile.in (observer.o): Update dependencies.
8166
8167 2004-05-07 Jason Molenda (jmolenda@apple.com)
8168
8169 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8170
8171 2004-05-07 Jim Blandy <jimb@redhat.com>
8172
8173 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8174 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8175 to recognize gpr regnums, instead of assuming that
8176 tdep->ppc_fp0_regnum marks the end of the general-purpose
8177 registers.
8178
8179 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8180 the given architecture has floating-point registers.
8181
8182 2004-05-07 Andrew Cagney <cagney@redhat.com>
8183
8184 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8185 macro defined to 1.
8186 * gdbarch.h, gdbarch.c: Re-generate.
8187 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8188 deprecated_use_generic_dummy_frames.
8189
8190 2004-05-07 Brian Ford <ford@vss.fsi.com>
8191
8192 * NEWS: Mention Cygwin DWARF 2 support.
8193
8194 2004-05-07 Andrew Cagney <cagney@redhat.com>
8195
8196 * objfiles.h (struct entry_info): Delete unused fields
8197 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8198 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8199 * mipsread.c (mipscoff_symfile_read): Update.
8200 * mdebugread.c (parse_partial_symbols): Update.
8201 * dwarfread.c (read_file_scope): Update.
8202 * dwarf2read.c (read_file_scope): Update.
8203 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8204 * coffread.c (complete_symtab): Update.
8205
8206 2004-05-07 Mark Kettenis <kettenis@gnu.org>
8207
8208 * infcall.c (_initialize_infcall): Fix typo.
8209
8210 2004-05-07 Andrew Cagney <cagney@redhat.com>
8211
8212 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8213 * command.h (add_setshow_zinteger_cmd): Declare.
8214
8215 2004-05-06 Randolph Chung <tausq@debian.org>
8216
8217 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8218 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8219 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8220 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8221 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8222 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8223 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8224 definitions ...
8225 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8226 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8227 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8228 (hppa64_hpux_frame_find_saved_regs_in_sig)
8229 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8230 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8231 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8232 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8233 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8234 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8235 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8236 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8237 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8238 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8239 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8240 (hppa32_register_type, hppa_cannot_store_register)
8241 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8242 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8243 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8244 * pa64solib.c (pa64_solib_have_load_event)
8245 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8246 (pa64_solib_unloaded_library_pathname): Likewise.
8247 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8248 (som_solib_library_pathname): Likewise.
8249
8250 2004-05-05 Jim Ingham <jingham@apple.com>
8251
8252 * breakpoint.c (create_breakpoints): Copy the ignore count and
8253 thread id over from the pended breakpoint to the actual
8254 breakpoint.
8255
8256 2004-05-05 Andrew Cagney <cagney@redhat.com>
8257
8258 * gdbarch.sh (PARM_BOUNDARY): Delete.
8259 gdbarch.h, gdbarch.c: Re-generate.
8260 * valops.c (PARM_BOUNDARY): Delete macro.
8261 (value_push): Delete PARM_BOUNDARY code.
8262 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8263
8264 2004-05-04 Jim Blandy <jimb@redhat.com>
8265
8266 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8267 Don't assume that the gprs, fprs, and UISA sprs are
8268 contiguous, start at register number zero, and end with fpscr.
8269 Instead, use the numbers from the tdep structure.
8270
8271 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8272 should no longer be used in code specific to the RS6000 and its
8273 derivatives.
8274 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8275 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8276 tdep->ppc_fp0_regnum.
8277 (ppc_supply_fpregset, ppc_collect_fpregset)
8278 (rs6000_push_dummy_call, rs6000_extract_return_value)
8279 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8280 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8281 FP0_REGNUM.
8282 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8283 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8284 Same.
8285 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8286 bdm_ppc_store_registers): Same.
8287 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8288 (store_register, fill_fpregset): Same.
8289 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8290 (ppc_linux_supply_fpregset): Same.
8291 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8292 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8293 Same.
8294 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8295 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8296 ppc64_sysv_abi_return_value): Same.
8297 * rs6000-nat.c (regmap, fetch_inferior_registers)
8298 (store_inferior_registers, fetch_core_registers): Same.
8299
8300 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8301
8302 * m68knbsd-nat.c: Remove file.
8303 * m68knbsd-tdep.c: Remove file.
8304 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8305 dependencies.
8306 * configure.host: Add m68k-*-netbsdelf*.
8307 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8308 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8309 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8310 (XM_FILE): Remove.
8311 * config/m68k/nbsdelf.mh: New file.
8312 * config/m68k/nbsd.mt: New file.
8313 * config/m68k/nbsdaout.mt: Remove file.
8314 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8315 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8316 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8317 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8318 (use_struct_convention): Remove prototype.
8319 (USE_STRUCT_CONVENTION): Remove define.
8320 * config/m68k/xm-nbsd.h: Remove file.
8321
8322 2004-05-04 Michael Snyder <msnyder@redhat.com>
8323
8324 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8325 reg_struct_return method (as gcc usually does for cross targets).
8326
8327 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8328
8329 Committed by Andrew Cagney.
8330 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8331 alignment padding when accessing ucontext struct members.
8332
8333 2004-05-04 Jim Blandy <jimb@redhat.com>
8334
8335 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8336 'ppc_gplast_regnum' member.
8337 (ppc_num_gprs): New enum constant.
8338 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8339 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8340 * rs6000-nat.c (regmap, fetch_inferior_registers,
8341 store_inferior_registers): Same.
8342 * rs6000-tdep.c (e500_pseudo_register_read)
8343 (e500_pseudo_register_write): Same.
8344 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8345
8346 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8347 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8348 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8349 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8350 FPLAST_REGNUM.
8351 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8352 Same.
8353 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8354 * rs6000-nat.c (regmap, fetch_inferior_registers)
8355 (store_inferior_registers): Same.
8356
8357 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8358 with FPLAST_REGNUM.
8359
8360 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8361
8362 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8363 failure detected by recent versions of GCC.
8364 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8365 to be consistent with the usage in dwarf2_create_include_psymtab.
8366
8367 2004-05-03 Michael Snyder <msnyder@redhat.com>
8368
8369 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8370 (heuristic_proc_start): Whitespace cleanup.
8371
8372 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8373
8374 * sun3-nat.c: Remove file.
8375 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8376 dependencies.
8377 (ALLDEPFILES): Remove sun3-nat.c.
8378 (sun3-nat.o): Remove dependencies.
8379
8380 * i386-interix-nat.c, i386-interix-tdep.c,
8381 config/i386/nm-interix.h, config/i386/interix.mh,
8382 config/i386/interix.mt: Remove files.
8383 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8384 dependencies.
8385
8386 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8387
8388 * m68k-tdep.h (struct gdbarch_tdep): Add member
8389 struct_value_regnum.
8390 (m68k_svr4_init_abi): New prototype.
8391 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8392 different calling conventions.
8393 (m68k_extract_return_value): Remove code dealing with single-field
8394 structs.
8395 (m68k_store_return_value): Remove code dealing with single-field
8396 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8397 (m68k_extract_struct_value_address): Remove function.
8398 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8399 (m68k_reg_struct_return_p, m68k_return_value)
8400 (m68k_svr4_return_value): New functions.
8401 (m68k_use_struct_convention): Remove function.
8402 (m68k_push_dummy_call): Use new struct_value_regnum member of
8403 `struct gdbarch_tdep' instead of hardcoded register number to
8404 store STRUCT_ADDR.
8405 (m68k_svr4_init_abi): New function.
8406 (m68k_gdbarch_init): Don't set extract_return_value,
8407 store_return_values, deprecated_extract_struct_value_address and
8408 use_struct_convention. Set return_value instead. Initialize new
8409 struct_value_regnum member of `struct gdbarch_tdep'.
8410 * m68klinux-tdep.c: Update copyright year.
8411 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8412 (m68k_linux_extract_struct_value_address): Remove function.
8413 (m68k_linux_init_abi): Don't set extract_return_value,
8414 store_return_values, deprecated_extract_struct_value_address and
8415 use_struct_convention. Call m68k_svr4_init_abi but override the
8416 new struct_value_regnum member of `struct gdbarch_tdep'.
8417 * Makefile.in (m68k-tdep.o): Update dependencies.
8418
8419 2004-05-03 J. Brobecker <brobecker@gnat.com>
8420
8421 * dwarf2read.c (line_header): Add new included_p field in
8422 field file_names.
8423 (partial_die_info): New field has_stmt_list. New field line_offset.
8424 (dwarf2_create_include_psymtab): New function.
8425 (dwarf2_build_include_psymtabs): New function.
8426 (add_file_name): Add forward declaration. Initialize new field.
8427 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8428 to be able to determine the list of files included by the
8429 given unit, and build their associated psymtabs.
8430 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8431 files as well.
8432 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8433 (read_file_scope): Update call to dwarf_decode_lines.
8434 (read_partial_die): Handle DW_AT_stmt_list attributes.
8435
8436 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8437
8438 Unfix PR gdb/1626.
8439 * configure.in: Revert special case for osf5.*.
8440 * configure: Regenerate.
8441
8442 2004-05-02 Jim Blandy <jimb@redhat.com>
8443
8444 Move the symbol-file-from-memory functions into their own file.
8445 * symfile-mem.c, symfile-mem.h: New files.
8446 * symfile.c (symbol_file_add_from_bfd): New function.
8447 (symbol_file_add): Call symbol_file_add_from_bfd.
8448 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8449 Moved to symfile-mem.c.
8450 (_initialize_symfile): Move definition of
8451 add-symbol-file-from-memory command to symfile-mem.c.
8452 * symfile.h (symbol_file_add_from_bfd): New declaration.
8453 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8454 * config/powerpc/linux.mt (TDEPFILES): Same.
8455 * Makefile.in (SFILES): Add symfile-mem.c.
8456 (symfile_mem_h): New variable.
8457 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8458 (symfile-mem.o): New rule.
8459
8460 2004-05-01 Andrew Cagney <cagney@redhat.com>
8461
8462 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8463 frame_find_by_id instead of frame_relative_level.
8464 (do_enable_breakpoint): Ditto.
8465 * thread.c: Update copyright.
8466 (info_threads_command): Ditto, simplify.
8467
8468 * frame.c (deprecated_generic_get_saved_register): Delete
8469 function, moved to "xstormy16-tdep.c".
8470 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8471 deprecated_generic_get_saved_register from "frame.c".
8472 (xstormy16_frame_saved_register): Call
8473 xstormy16_get_saved_register.
8474 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8475 static.
8476 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8477 * frame.h (deprecated_generic_get_saved_register): Delete.
8478
8479 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8480
8481 * dwarfread.c: Update documentation on the state of dwarf-1.
8482
8483 2004-05-01 Andrew Cagney <cagney@redhat.com>
8484
8485 * stack.c (select_frame_command): Delete call to
8486 frame_relative_level.
8487 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8488 Delete #if0 code.
8489 (frame_info): Do not print FRAMELESS.
8490 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8491 (catch_info): Delete #if0 code.
8492
8493 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8494 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8495 of frame_relative_level.
8496 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8497 to SENTINEL_FRAME.
8498 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8499 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8500 frame_relative_level.
8501
8502 * frame.h (deprecated_set_frame_type): Delete declaration.
8503 * frame.c (deprecated_set_frame_type): Delete function, update
8504 comments.
8505
8506 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8507 * gdbarch.h, gdbarch.c: Re-generate.
8508 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8509 (shnbsd_pc_in_sigtramp): Delete.
8510 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8511 pc_in_sigtramp.
8512 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8513 pc_in_sigtramp.
8514 * frame.h: Update comments.
8515 * ppc-linux-tdep.c: Update comments.
8516 * breakpoint.c (bpstat_what): Update comments.
8517
8518 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8519 m68klinux-tdep.o's dependencies, were previously added to
8520 m68klinux-nat.o.
8521
8522 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8523 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8524 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8525 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8526 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8527
8528 * Makefile.in (m68klinux-nat.o): Update dependencies.
8529 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8530 (m68k_linux_sigtramp_frame_cache)
8531 (m68k_linux_sigtramp_frame_this_id)
8532 (m68k_linux_sigtramp_frame_prev_register)
8533 (m68k_linux_sigtramp_frame_unwind)
8534 (m68k_linux_sigtramp_frame_sniffer)
8535 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8536 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8537 names, use trad-frame.h.
8538 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8539 (struct m68k_sigtramp_info): Delete.
8540 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8541 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8542 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8543 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8544 "m68klinux-tdep.c".
8545
8546 * infrun.c (check_sigtramp2): Delete check for
8547 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8548
8549 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8550
8551 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8552
8553 2004-05-01 Andrew Cagney <cagney@redhat.com>
8554
8555 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8556 (frv_linux_sigtramp_frame_cache)
8557 (frv_linux_sigtramp_frame_this_id)
8558 (frv_linux_sigtramp_frame_prev_register)
8559 (frv_linux_sigtramp_frame_unwind)
8560 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8561 include "linux" in function and variable names, directly call
8562 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8563 the latest trad-frame code.
8564 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8565 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8566 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8567 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8568 * frv-tdep.c (frv_sigtramp_frame_cache)
8569 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8570 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8571 frv-linux-tdep.c.
8572 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8573 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8574 (frv_set_sigcontext_reg_addr): Delete function.
8575
8576 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8577 (DEPRECATED_SIGTRAMP_END): Delete.
8578 * gdbarch.h, gdbarch.c: Re-generate.
8579 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8580 * config/vax/tm-vaxbsd.h: Update copyright.
8581 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8582 (DEPRECATED_IN_SIGTRAMP): Define.
8583 * config/m68k/tm-nbsd.h: Update copyright.
8584 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8585 (DEPRECATED_IN_SIGTRAMP): Define.
8586
8587 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8588
8589 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8590 encondings. Fixes PR gdb/1628.
8591
8592 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8593 DW_CFA_restore state without a matching DW_CFA_remember_state
8594 instead of aborting. Fixes PR backtrace/1589.
8595
8596 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8597
8598 * MAINTAINERS: Add self as AIX maintainer.
8599 Update my e-mail address in write-after-approval section.
8600
8601 2004-04-30 Andrew Cagney <cagney@redhat.com>
8602
8603 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8604 (legacy_get_prev_frame): Ditto.
8605
8606 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8607 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8608 * mipsread.c (sigtramp_address): Delete extern variable.
8609 (mipscoff_new_init): Delete reference.
8610 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8611 (fixup_sigtramp): Delete function.
8612 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8613 (fixup_sigtramp): Delete declarations.
8614
8615 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8616 deprecated_pc_in_sigtramp.
8617 (ppcnbsd_pc_in_sigtramp): Delete function.
8618
8619 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8620
8621 * config/m68k/nm-nbsd.h: Tweak comments.
8622 * config/m68k/nm-nbsdaout.h: Likewise.
8623
8624 2004-04-30 Andrew Cagney <cagney@redhat.com>
8625
8626 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8627 legacy_pc_in_sigtramp.
8628 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8629
8630 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8631
8632 Add OpenBSD/m68k support.
8633 * NEWS (New native configurations): Mention OpenBSD/m68k.
8634 * m68kbsd-tdep.c: New file.
8635 * m68kbsd-nat.c: New file.
8636 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8637 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8638 * configure.host: Add m68k-*-openbsd.
8639 * configure.tgt: Add m68k-*-openbsd.
8640 * config/m68k/tm-obsd.h: New file.
8641 * config/m68k/obsd.mt: New file.
8642 * config/m68k/obsd.mh: New file.
8643 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8644 m68kbsd-tdep.c.
8645
8646 2004-04-30 Andrew Cagney <cagney@redhat.com>
8647
8648 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8649 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8650
8651 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8652
8653 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8654 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8655
8656 2004-04-30 Brian Ford <ford@vss.fsi.com>
8657
8658 Revert 2004-04-16 change.
8659 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8660 (i386_coff_init_abi): Remove.
8661 * i386-tdep.h (i386_coff_init_abi): Remove.
8662 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8663
8664 2004-04-30 Andrew Cagney <cagney@redhat.com>
8665
8666 * blockframe.c (find_pc_partial_function): Delete use of
8667 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8668 DEPRECATED_SIGTRAMP_END.
8669
8670 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8671 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8672 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8673 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8674 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8675
8676 * defs.h (deprecated_inside_entry_file): Delete declaration.
8677 * blockframe.c (deprecated_inside_entry_file): Delete function.
8678 (legacy_frame_chain_valid): Delete call.
8679 * sh64-tdep.c (sh64_frame_chain): Delete call.
8680 * objfiles.h: Update comments.
8681 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8682 call.
8683 * frame.c (get_prev_frame): Delete call, update comments.
8684
8685 2004-04-30 Brian Ford <ford@vss.fsi.com>
8686
8687 * MAINTAINERS (Write After Approval): Add myself.
8688
8689 2004-04-30 Andrew Cagney <cagney@redhat.com>
8690
8691 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8692 * gdbarch.h, gdbarch.c: Re-generate.
8693 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8694 code.
8695
8696 2004-04-30 Andrew Cagney <cagney@redhat.com>
8697
8698 * gdb-events.sh (selected_thread_changed)
8699 (selected_frame_level_changed, target_changed): Delete.
8700 * gdb-events.h, gdb-events.c: Re-generate.
8701 * valops.c (value_assign): Update.
8702 * stack.c (select_frame_command, up_silently_base)
8703 (down_silently_base): Update.
8704
8705 2004-04-29 Andrew Cagney <cagney@redhat.com>
8706
8707 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8708 registers correctly.
8709 (print_gp_register_row, mips32_heuristic_proc_desc)
8710 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8711 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8712 references to mips_isa_regsize.
8713
8714 2004-04-29 Andrew Cagney <cagney@redhat.com>
8715
8716 * mips-tdep.c (struct gdbarch_tdep): Delete
8717 mips_fp_register_double.
8718 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8719 mips_abi_regsize.
8720 (mips_gdbarch_init): Do not set mips_fp_register_double.
8721 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8722
8723 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8724
8725 Committed by Andrew Cagney.
8726 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8727 function calls.
8728
8729 2004-04-29 Andrew Cagney <cagney@redhat.com>
8730
8731 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8732 gdbarch, use mips_abi, update callers.
8733 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8734 mips_abi_regsize, update callers.
8735 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8736 mips_default_abi_regsize.
8737 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8738 mips_default_abi_regsize.
8739
8740 2004-04-29 Andrew Cagney <cagney@redhat.com>
8741
8742 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8743 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8744 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8745 mips_default_abi_regsize.
8746 (mips_isa_regsize): Rename mips_regisze.
8747 * mipsnbsd-tdep.c: Update.
8748 * mips-linux-tdep.c: Update.
8749 * irix5-nat.c: Update.
8750 * mips-tdep.h (mips_isa_regsize): Update.
8751
8752 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8753 Delete all disabled code.
8754 * gdb-events.h, gdb-events.c: Re-generate.
8755
8756 2004-04-19 Jerome Guitton <guitton@gnat.com>
8757 Mark Kettenis <kettenis@gnu.org>
8758
8759 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8760 the function begins with a branch instruction.
8761
8762 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8763
8764 * i386-tdep.c: Fix spelling mistakes.
8765
8766 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8767 Andrew Cagney <cagney@redhat.com>
8768
8769 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8770 <sys/proc.h>.
8771 * acconfig.h: Provide default _KMEMUSER value.
8772 * config.in, configure: Re-generate.
8773 * NEWS: Mention fix.
8774
8775 2004-04-24 Randolph Chung <tausq@debian.org>
8776
8777 * configure.host (hppa*-*-linux*): New target.
8778 * configure.tgt (hppa*-*-linux*): Likewise.
8779 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8780 gdbarch_init_osabi() call earlier so that osabi-specific frame
8781 unwinders can be registered first.
8782 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8783 hppa-linux-nat.c.
8784 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8785 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8786 * config/pa/linux.mh: New file.
8787 * config/pa/linux.mt: New file.
8788 * config/pa/nm-linux.h: New file.
8789 * config/pa/xm-linux.h: New file.
8790 * hppa-linux-nat.c: New file.
8791 * hppa-linux-tdep.c: New file.
8792
8793 2004-04-28 Randolph Chung <tausq@debian.org>
8794
8795 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8796 return values.
8797 (hppa32_push_dummy_call): Fix small struct and floating point argument
8798 passing, and make sure the stack frame is properly aligned.
8799
8800 2004-04-28 Andrew Cagney <cagney@redhat.com>
8801
8802 * stack.c (print_stack_frame): Fix description.
8803
8804 * NEWS: Mention gdb/gdbserver/configure execute permission
8805 changed. PR server/519.
8806
8807 2004-04-28 Andrew Cagney <cagney@redhat.com>
8808
8809 * stack.c (print_stack_frame_stub): Delete declaration.
8810 (struct print_stack_frame_args, print_stack_frame)
8811 (print_frame_info, print_frame): Replace "source" with print what.
8812 Replace "print" with "print_level". Replace "args" with
8813 "print_args".
8814 * frame.h (show_and_print_stack_frame, print_stack_frame)
8815 (print_frame_info): Update declarations.
8816 * stack.c (select_and_print_frame, frame_command)
8817 (current_frame_command, up_command, down_command): Update calls -
8818 use get_selected_frame, pass "enum print_what" for source, do not
8819 call frame_relative_level.
8820 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8821 * remote-rdp.c (remote_rdp_open): Ditto.
8822 * remote-mips.c (common_open): Ditto.
8823 * remote-e7000.c (e7000_start_remote): Ditto.
8824 * ocd.c (ocd_start_remote): Ditto.
8825 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8826 * infrun.c (normal_stop): Ditto.
8827 * inflow.c (kill_command): Ditto.
8828 * infcmd.c (finish_command): Ditto.
8829 * corelow.c (core_open): Ditto.
8830 * tracepoint.c (finish_tfind_command): Ditto.
8831 * thread.c (info_threads_command, info_threads_command)
8832 (restore_current_thread, do_captured_thread_select): Ditto.
8833 * ada-tasks.c (task_command): Ditto.
8834
8835 2004-04-26 Orjan Friberg <orjanf@axis.com>
8836
8837 * frame.c: Include "observer.h".
8838 (frame_observer_target_changed): New function.
8839 (_initialize_frame): Attach target_changed observer.
8840 * regcache.c: Include "observer.h".
8841 (regcache_observer_target_changed): New function.
8842 (_initialize_regcache): Attach target_changed observer.
8843 * valops.c: Include "observer.h".
8844 (value_assign): Notify target_changed event when modifying register.
8845 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8846
8847 2004-04-26 Orjan Friberg <orjanf@axis.com>
8848
8849 From Paul Koning <pkoning@equallogic.com>:
8850 * breakpoint.c (free_valchain): New function.
8851 (insert_bp_location, delete_breakpoint): Use free_valchain.
8852 (remove_breakpoint): Do not remove the valchain.
8853 (bpstat_stop_status): If not stopped by watchpoint, skip
8854 watchpoints when generating stop status list.
8855 * infrun.c (handle_inferior_event): Make
8856 stepped_after_stopped_by_watchpoint a global variable.
8857 * remote.c (remote_stopped_data_address): Return watch data
8858 address rather than zero if stepped_after_stopped_by_watchpoint is
8859 set.
8860
8861 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8862
8863 Fix PR gdb/1626.
8864 * configure.in: Check for curses after termcap.
8865 On osf5.*, do not check for ncurses.
8866 * configure: Regenerate.
8867
8868 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8869
8870 * ppcobsd-nat.c: Include "ppc-tdep.h".
8871 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8872
8873 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8874 Fixes PR tdep/1623 and PR tdep/1624.
8875
8876 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8877
8878 * xmodem.h, xmodem.c: Remove files.
8879 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8880
8881 2004-04-23 Randolph Chung <tausq@debian.org>
8882
8883 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8884 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8885 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8886 for handling stackless frames.
8887 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8888
8889 2004-04-23 Randolph Chung <tausq@debian.org>
8890
8891 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8892 starts at a pc before the frame is created.
8893
8894 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8895
8896 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8897
8898 2004-04-23 Jerome Guitton <guitton@gnat.com>
8899
8900 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8901 use convert_typed_floating to get the appropriate format.
8902
8903 2004-04-22 Randolph Chung <tausq@debian.org>
8904
8905 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8906 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8907 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8908 (hppa_sign_extend): Add prototype.
8909 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8910 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8911 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8912 hppa targets will also use these functions.
8913 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8914 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8915 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8916 (hppa_gdbarch_init): Remove gdbarch setting of
8917 skip_trampoline_code, in_solib_call_trampoline and
8918 in_solib_return_trampoline.
8919 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8920 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8921 hppa_in_solib_call_trampoline.
8922 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8923 Moved from hppa-tdep.c.
8924 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8925 in_solib_call_trampoline and in_solib_return_trampoline.
8926
8927 2004-04-22 Randolph Chung <tausq@debian.org>
8928
8929 * hppa-tdep.c (hppa_debug): New variable.
8930 (find_unwind_entry, hppa_frame_cache): Add debug output.
8931 (_initialize_hppa_tdep): Add command to set debug flag.
8932
8933 2004-04-22 Andrew Cagney <cagney@redhat.com>
8934
8935 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8936 "trad-frame.h".
8937 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8938 signal trampoline unwinder.
8939 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8940
8941 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8942
8943 Add OpenBSD/powerpc support.
8944 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8945 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8946 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8947 (ppc_collect_fpregset): New prototypes.
8948 * ppcobsd-nat.c: New file.
8949 * ppcobsd-tdep.c: New file.
8950 * ppcobsd-tdep.h: New file.
8951 * rs6000-tdep.c: Include "regset.h".
8952 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8953 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8954 New functions.
8955 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8956 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8957 (rs6000-tdep.o): Update dependencies.
8958 * configure.host: Add powerpc-*-openbsd.
8959 * configure.tgt: Add powerpc-*-openbsd.
8960 * config/powerpc/obsd.mh: New file.
8961 * config/powerpc/nm-obsd.h: New file.
8962 * config/powerpc/obsd.mt: New file.
8963
8964 2004-04-22 Andrew Cagney <cagney@redhat.com>
8965
8966 * frame.h (show_frame_info): Delete declaration.
8967
8968 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8969 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8970 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8971 * frv-tdep.c (frv_frame_this_id): Ditto.
8972 * avr-tdep.c (avr_frame_this_id): Ditto.
8973
8974 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8975
8976 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8977
8978 2004-04-22 Jim Blandy <jimb@redhat.com>
8979
8980 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8981 register number zero.
8982
8983 2004-04-21 Michael Snyder <msnyder@redhat.com>
8984
8985 * mips-tdep.c (heuristic_proc_start):
8986 Warning() already prefixes "Warning: ".
8987
8988 2004-04-21 Andrew Cagney <cagney@redhat.com>
8989
8990 * annotate.h (deprecated_annotate_starting_hook)
8991 (deprecated_annotate_stopped_hook)
8992 (deprecated_annotate_exited_hook)
8993 (deprecated_annotate_signal_hook)
8994 (deprecated_annotate_signalled_hook): Deprecate.
8995 * tracepoint.h (deprecated_create_tracepoint_hook)
8996 (deprecated_delete_tracepoint_hook)
8997 (deprecated_modify_tracepoint_hook)
8998 (deprecated_trace_find_hook)
8999 (deprecated_trace_start_stop_hook): Deprecate.
9000 * target.h (deprecated_target_new_objfile_hook): Deprecate.
9001 * remote.h (deprecated_target_resume_hook)
9002 (deprecated_target_wait_loop_hook): Deprecate.
9003 * gdbcore.h (deprecated_exec_file_display_hook)
9004 (deprecated_file_changed_hook): Deprecate.
9005 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9006 * defs.h (deprecated_modify_breakpoint_hook)
9007 (deprecated_command_loop_hook, deprecated_show_load_progress)
9008 (deprecated_print_frame_info_listing_hook)
9009 (deprecated_query_hook, deprecated_warning_hook)
9010 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9011 (deprecated_delete_breakpoint_hook)
9012 (deprecated_interactive_hook, deprecated_registers_changed_hook)
9013 (deprecated_readline_begin_hook, deprecated_readline_hook)
9014 (deprecated_readline_end_hook, deprecated_register_changed_hook)
9015 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9016 (deprecated_context_hook, deprecated_target_wait_hook)
9017 (deprecated_attach_hook, deprecated_detach_hook)
9018 (deprecated_call_command_hook, deprecated_set_hook)
9019 (deprecated_error_hook, deprecated_error_begin_hook)
9020 (deprecated_ui_load_progress_hook): Deprecate.
9021 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9022 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9023 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9024 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9025 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9026 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9027 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9028 * annotate.c, aix-thread.c: Update.
9029
9030 2004-04-21 Andrew Cagney <cagney@redhat.com>
9031
9032 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9033 * vaxnbsd-tdep.c: Include "gdb_string.h".
9034
9035 * symfile.c (symbol_file_add_from_memory): #if 0 function.
9036 (add_symbol_file_from_memory_command): #if 0 function body, call
9037 error instead.
9038
9039 2004-04-21 Andrew Cagney <cagney@redhat.com>
9040
9041 * gdbcore.h: Update copyright.
9042 (deprecated_add_core_fns): Rename add_core_fns.
9043 * win32-nat.c (_initialize_core_win32): Update.
9044 * sun3-nat.c (_initialize_core_sun3): Update.
9045 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9046 * rs6000-nat.c (_initialize_core_rs6000): Update.
9047 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9048 * nto-tdep.c (_initialize_nto_tdep): Update.
9049 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9050 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9051 * mips-nat.c (_initialize_core_mips): Update.
9052 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9053 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9054 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9055 * lynx-nat.c (_initialize_core_lynx): Update.
9056 * irix5-nat.c (_initialize_core_irix5): Update.
9057 * i386-interix-nat.c (_initialize_core_interix): Update.
9058 * cris-tdep.c (_initialize_cris_tdep): Update.
9059 * corelow.c (deprecated_add_core_fns): Update.
9060 * core-regset.c (_initialize_core_regset): Update.
9061 * core-aout.c (_initialize_core_aout): Update.
9062 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9063 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9064 * alpha-nat.c (_initialize_core_alpha): Update.
9065
9066 2004-04-21 Jim Blandy <jimb@redhat.com>
9067
9068 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9069
9070 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
9071
9072 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9073 Delete.
9074 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
9075 (read_attribute_value): Update calls to dwarf_alloc_block.
9076 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9077 dwarf2_tmp_obstack.
9078 (psymtab_to_symtab_1): Likewise. Clean up using
9079 free_stack_comp_unit.
9080 (add_to_cu_func_list): Use the comp_unit_obstack.
9081
9082 2004-04-19 Joel Brobecker <brobecker@gnat.com>
9083
9084 * dwarf2read.c (dwarf2_flag_true_p): New function.
9085 (die_is_declaration): Use the function above. Add some comments.
9086
9087 2004-04-19 Mark Kettenis <kettenis@gnu.org>
9088
9089 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9090 architecture when registering sparcnbsd_core_osabi_sniffer.
9091 Adjust comment.
9092
9093 2004-04-18 Mark Kettenis <kettenis@gnu.org>
9094
9095 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9096 return value.
9097
9098 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9099 * i386-tdep.c: Correct register numbering scheme comments
9100 throughout.
9101 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9102 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9103 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9104 (i386_gdb_arch_init): Likewise.
9105
9106 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9107 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9108 ppcnbsd-tdep.o.
9109
9110 * m68k-tdep.h: Tweak comments.
9111 * m68k-tdep.c: Tweak comment.
9112
9113 2004-04-17 Randolph Chung <tausq@debian.org>
9114
9115 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9116 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9117 (hppa_hpux_som_init_abi): Set is_elf to 0.
9118 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9119 * hppa-tdep.c (low_text_segment_address): Remove global.
9120 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9121 section offset to calculate segment address.
9122 (internalize_unwinds): Define low_text_segment_address as local and
9123 pass to record_text_segment_lowaddr for ELF targets.
9124 (hppa_gdbarch_init): Zero fill tdep structure.
9125 (hppa_dump_tdep): Print tdep structure.
9126 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9127
9128 2004-04-17 Randolph Chung <tausq@debian.org>
9129
9130 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9131 (hppa_gdbarch_init): Set pseudo_register_read.
9132 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9133 * regcache.c (supply_register): Remove check for
9134 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9135
9136 2004-04-17 Randolph Chung <tausq@debian.org>
9137
9138 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9139 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9140 (hpread_adjust_stack_address): Move to hpread.c.
9141 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9142 obj_private_struct): Move from tm-hppa.h.
9143 * hpread.c (hppa-tdep.h): Include.
9144 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9145 (hpread_read_function_type, hpread_read_doc_function_type)
9146 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9147 directly.
9148 * pa64solib.c (hppa-tdep.h): Include.
9149 * somsolib.c (hppa-tdep.h): Include.
9150 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9151 inferior_status): Remove unused forward declarations.
9152 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9153 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9154 obj_private_struct): Move to hppa-tdep.h.
9155 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9156
9157 2004-04-17 Randolph Chung <tausq@debian.org>
9158
9159 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9160 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9161 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9162 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9163 Remove forward declaration and make static.
9164 (hppa_reg_struct_has_addr): Remove.
9165
9166 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9167
9168 * observer.sh: Move comments in sed command to first column.
9169
9170 2004-04-16 Jason Molenda (jmolenda@apple.com)
9171
9172 * frame.c: Minor typeo corrections in comments.
9173
9174 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9175
9176 * observer.c (observer_test_first_notification_function): Update
9177 function profile.
9178 (observer_test_second_notification_function): Likewise.
9179 (observer_test_third_notification_function): Likewise.
9180
9181 2004-04-16 Mark Kettenis <kettenis@gnu.org>
9182
9183 From Brian Ford <ford@vss.fsi.com>:
9184 * i386-tdep.c (i386_coff_init_abi): New function.
9185 * i386-tdep.h (i386_coff_init_abi): New prototype.
9186 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9187 register number translation functions for DWARF and DWARF 2.
9188
9189 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9190
9191 * dwarf2read.c: Back out my previous change, it was incorrect.
9192
9193 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
9194
9195 * dwarf2read.c: Include "hashtab.h".
9196 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9197 has_namespace_info.
9198 (struct partial_die_info): Add comments. Use bitfields to reduce
9199 memory footprint. Add scope, scope_set, has_specification,
9200 spec_offset, die_parent, die_child, and die_sibling.
9201 (peek_die_abbrev): Add prototype.
9202 (partial_read_comp_unit_head): New function, broken out from
9203 dwarf2_build_psymtabs_hard.
9204 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9205 Use partial_read_comp_unit_head. Initialize the CU and
9206 comp_unit_obstack. Update calls to read_partial_die and
9207 scan_partial_symbols. Use free_stack_comp_unit and
9208 load_partial_dies.
9209 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9210 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9211 Update calls to helper functions. Remove NAMESPACE argument.
9212 Update comments.
9213 (partial_die_parent_scope, partial_die_full_name): New functions.
9214 (add_partial_symbol): Remove namespace argument. Update call to
9215 pdi_needs_namespace. Use partial_die_full_name. Handle
9216 DW_TAG_namespace. Check has_namespace_info flag.
9217 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9218 tag. Handle namespaces.
9219 (add_partial_namespace, add_partial_enumeration): Simplify.
9220 (guess_structure_name): New function, derived from
9221 add_partial_structure.
9222 (add_partial_structure): Remove.
9223 (determine_class_name): Update comment.
9224 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9225 (is_type_tag_for_partial, load_partial_dies): New functions.
9226 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9227 Record specifications instead of following them immediately.
9228 (find_partial_die_in_comp_unit, find_partial_die)
9229 (fixup_partial_die, free_stack_comp_unit)
9230 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9231 (partial_die_hash, partial_die_eq): New functions.
9232 * Makefile.in (hashtab_h): Define.
9233 (dwarf2read.o): Update dependencies.
9234 (observer_inc, observer_h): Move to the correct section.
9235
9236 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9237
9238 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9239 (die_is_declaration): Use the function above. Add comment.
9240
9241 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9242
9243 * dwarf2read.c (read_structure_scope): Identify stub types
9244 using die_is_declaration() only.
9245
9246 2004-04-15 Roland McGrath <roland@redhat.com>
9247
9248 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9249 argument instead of NAME.
9250 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9251 in call to symbol_file_add_with_addrs_or_offsets.
9252 (build_addr_info): New function, helper for ...
9253 (symbol_file_add_from_memory): New function.
9254 (add_symbol_file_from_memory_command): New function using that.
9255 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9256 (pre_add_symbol_hook): Add const to argument type.
9257 * symfile.h (symbol_file_add_from_memory): Declare it.
9258
9259 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9260
9261 * NEWS (New native configurations): Mention OpenBSD/vax.
9262 * configure.host: Add vax-*-openbsd*.
9263 * config/vax/obsd.mh: New file.
9264 * config/vax/nm-obsd.h: New file.
9265
9266 * vax-tdep.c: Include "regset.h".
9267 (vax_supply_gregset): New function.
9268 (vax_gregset): New variable.
9269 (vax_regset_from_core_section): New function.
9270 (vax_gdbarch_init): Set regset_from_core_section.
9271 * Makefile.in (vax-tdep.o): Update dependencies.
9272
9273 2004-04-15 Andrew Cagney <cagney@redhat.com>
9274
9275 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9276 (observer_normal_stop_notification_stub)
9277 (observer_attach_normal_stop, observer_detach_normal_stop):
9278 Delete, replaced by #include "observer.inc".
9279 * infrun.c (normal_stop): Pass "stop_bpstat" to
9280 observer_notify_normal_stop.
9281 * Makefile.in (observer_inc): Define.
9282 (observer.o): Update dependencies.
9283 (observer.h, observer.inc): New rules.
9284 * observer.h: Delete file.
9285 * observer.sh: New file.
9286
9287 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9288
9289 * vax-tdep.c (vax_frame_cache): Fix typo.
9290
9291 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9292
9293 * NEWS (New native configurations): Mention NetBSD/vax.
9294 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9295 * config/vax/nbsdelf.mh: New file.
9296 * config/vax/nbsdaout.mh: New file.
9297 * config/vax/nm-nbsd.h: New file.
9298 * config/vax/nm-nbsdaout.h: New file.
9299
9300 * vaxnbsd-tdep.c: New file.
9301 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9302 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9303 * config/vax/nbsd.mt: New file.
9304 * config/vax/tm-nbsd.h: New file.
9305
9306 * Makefile.in (vaxbsd-nat.o): New dependency.
9307
9308 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9309 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9310 struct_addr arguments. Don't push return value address.
9311 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9312 arguments to vax_store_arguments. Store return value address in
9313 R1.
9314 (vax_store_struct_return, vax_extract_return_value)
9315 (vax_store_return_value): Remove functions.
9316 (vax_return_value): New function.
9317 (vax_gdbarch_init): Set return value. Don't set
9318 deprecated_store_struct_return, deprecated_extract_struct_return
9319 and deprecated_store_return_value.
9320
9321 2004-04-14 Andreas Schwab <schwab@suse.de>
9322
9323 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9324 value buffer.
9325 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9326
9327 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9328
9329 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9330 (vax_unwind_dummy_id): New functions.
9331 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9332 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9333 variables.
9334 (vax_fix_call_dummy): Remove function.
9335 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9336 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9337 call_dummy_location, deprecated_call_dummy_words,
9338 deprecated_sizeof_call_dummy_words,
9339 deprecated_call_dummy_breakpoint_offset,
9340 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9341 and deprecated_dummy_write_sp.
9342
9343 2004-04-13 David Carlton <carlton@kealia.com>
9344
9345 * MAINTAINERS: Move myself to "paper trail" section.
9346
9347 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9348
9349 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9350 "trad-frame.h".
9351 (vax_frame_init_saved_regs): Remove function.
9352 (vax_sigtramp_saved_pc): Remove function.
9353 (vax_frame_saved_pc): Remove function.
9354 (vax_frame_args_address): Remove function.
9355 (vax_frame_num_args): Rewrite.
9356 (vax_frame_chain): Remove function.
9357 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9358 VAX_FP_REGNUM.
9359 (vax_pop_frame): Likewise.
9360 (vax_saved_pc_after_call): Remove function.
9361 (struct vax_frame_cache): New structure.
9362 (vax_frame_cache): New function.
9363 (vax_frame_this_id): New function.
9364 (vax_frame_prev_register): New function.
9365 (vax_frame_unwind): New variable.
9366 (vax_frame_sniffer): New function.
9367 (vax_frame_base_address): New function.
9368 (vax_frame_args_address): New function.
9369 (vax_frame_base): New variable.
9370 (vax_unwind_pc): New function.
9371 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9372 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9373 deprecated_frame_chain, deprecated_frame_saved_pc,
9374 deprecated_frame_args_address and
9375 deprecated_frame_init_saved_regs.
9376 * Makefile.in (vax-tdep.o): Update dependencies.
9377
9378 * vaxbsd-nat.c: New file.
9379
9380 * vax-tdep.h: Update copyright year. Adjust comments.
9381 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9382 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9383 (vax_regnum): New enum. Replacing...
9384 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9385 (VAX_PS_REGNUM): ... these removed macros.
9386 * vax-tdep.c (vax_register_name): Remove prototype.
9387 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9388 (vax_register_byte, vax_register_raw_size,
9389 vax_register_virtual_size, vax_register_virtual_type): Remove
9390 functions.
9391 (vax_register_type): New function.
9392 (vax_breakpoint_from_pc): Reorganize.
9393 (vax_gdbarch_init): Set register_type. Don't set
9394 deprecated_register_size, deprecated_register_bytes,
9395 deprecated_register_byte, deprecated_register_raw_size,
9396 deprecated_max_register_raw_size,
9397 deprecated_register_virtual_size,
9398 deprecated_max_register_virtual_size and
9399 deprecated_register_virtual_type. Add comment on stack direction.
9400
9401 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9402
9403 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9404 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9405 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9406
9407 2004-04-10 Randolph Chung <tausq@debian.org>
9408
9409 * MAINTAINERS (write after approval): Add myself.
9410
9411 2004-04-07 Randolph Chung <tausq@debian.org>
9412
9413 * hppa-tdep.c (hppa_inner_than): Remove.
9414 (is_pa_2): Remove unused static variable.
9415 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9416
9417 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9418
9419 * language.h (language_defn): Add new la_post_parser field.
9420 * parser-defs.h (null_post_parser): New declaration (default for
9421 la_post_parser).
9422
9423 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9424 insert call to that function.
9425 (parse_exp_in_context): New function, including code formerly in
9426 parse_exp_1. Calls language-dependent post-parser after
9427 prefixification.
9428 (parse_expression_in_context): New exported function.
9429 (null_post_parser): New definition.
9430 * expression.h (parse_expression_in_context): Add declaration.
9431
9432 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9433 * c-lang.c (c_language_defn): Ditto.
9434 (cplus_language_defn): Ditto.
9435 (asm_language_defn): Ditto.
9436 (minimal_language_defn): Ditto.
9437 * f-lang.c (f_language_defn): Ditto.
9438 * jv-lang.c (java_language_defn): Ditto.
9439 * language.c (unknown_language_defn): Ditto.
9440 (auto_language_defn): Ditto.
9441 (local_language_defn): Ditto.
9442 * m2-lang.c (m2_language_defn): Ditto.
9443 * scm-lang.c (scm_language_defn): Ditto.
9444 * obj-lang.c (objc_language_defn): Ditto.
9445
9446 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9447
9448 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9449 (amd64nbsd_mcontext_addr): New function.
9450 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9451 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9452 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9453
9454 * corelow.c (core_xfer_partial): Fix coding standards violation.
9455 Add support for TARGET_OBJECT_WCOOKIE.
9456
9457 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9458 deprecated_pc_in_sigtramp.
9459 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9460 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9461 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9462 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9463 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9464 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9465 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9466
9467 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9468 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9469 Fix typo.
9470
9471 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9472 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9473 (amd64_collect_fxsave): Likewise.
9474
9475 * i386-sol2-tdep.c: Include "gdb_string.h".
9476 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9477 name.
9478 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9479
9480 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9481
9482 * i386-sol2-tdep.c: Include "solib-svr4.h".
9483 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9484 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9485 * config/i386/tm-i386sol2.h: Include :solib.h".
9486 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9487 solib-svr4.o and solib-legacy.o.
9488 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9489 solib-svr4.o.
9490
9491 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9492
9493 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9494 whether a register is supplied by PTRACE_GETFPREGS.
9495 (store_inferior_registers): Likewise.
9496 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9497 whether a register is supplied by PT_GETFPREGS.
9498 (store_inferior_registers): Likewise.
9499
9500 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9501 * config/i386/linux64.mt (TDEPFILES): Likewise.
9502
9503 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9504
9505 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9506 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9507 the program counter is in the range specified by `struct
9508 gdbarch_tdep'.
9509 * amd64-linux-tdep.c: Include "symtab.h".
9510 (amd64_linux_pc_in_sigtramp): Remove function.
9511 (amd64_linux_sigtramp_p): New function.
9512 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9513 deprecated_pc_in_sigtramp.
9514 * amd64nbsd-tdep.c: Include "symtab.h".
9515 (amd64nbsd_sigtramp_p): New function.
9516 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9517 deprecated_pc_in_sigtramp.
9518 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9519 few comments.
9520 (amd64obsd_pc_in_sigtramp): Remove function.
9521 (amd64obsd_sigtramp_p): New function.
9522 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9523 deprecated_pc_in_sigtramp.
9524 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9525 (i386bsd_pc_ins_sigtramp): Remove prototype.
9526 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9527 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9528 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9529 the program counter is in the range specified by `struct
9530 gdbarch_tdep'.
9531 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9532 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9533 (i386_go32_pc_in_sigtramp): Remove function.
9534 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9535 Initialize TDEP->sigtramp_p.
9536 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9537 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9538 deprecated_pc_in_sigtramp.
9539 * i386-linux-tdep.c: Adjust comments.
9540 (i386_linux_pc_in_sigtramp): Remove function.
9541 (i386_linux_sigtramp_p): New function.
9542 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9543 deprecated_pc_in_sigtramp.
9544 * i386-nto-tdep.c: Update copyright year.
9545 (i386nto_pc_in_sigtramp): Remove function.
9546 (i386nto_sigtramp_p): New function.
9547 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9548 SP_REGNUM.
9549 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9550 deprecated_pc_in_sigtramp.
9551 * i386-sol2-tdep.c: Update copyright year.
9552 (i386_sol2_pc_in_sigtramp): Remove function.
9553 (i386_sol2_sigtramp_p): New function.
9554 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9555 deprecated_pc_in_sigtramp.
9556 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9557 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9558 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9559 deprecated_sigtramp_start and deprecated_sigtramp_end.
9560 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9561 (i386nbsd_pc_in_sigtramp): Remove function.
9562 (i386nbsd_sigtramp_p): New function.
9563 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9564 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9565 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9566 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9567 (i386obsd_pc_in_sigtramp): Remove function.
9568 (i386obsd_sigtramp_p): New function.
9569 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9570 functions.
9571 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9572 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9573 TDEP->sigtramp_p.
9574 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9575 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9576 dependencies.
9577
9578 * config/i386/i386aout.mt: Remove file.
9579
9580 * configure.tgt: Remove i[34567]86-*-go32*,
9581 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9582 and i[34567]86-*-isc*. Set gdb_target to i386 for
9583 i[34567]86-*-netware* and i[34567]86-*-*.
9584 * config/i386/i386.mt: New file.
9585 * config/i386/embed.mt: Remove file.
9586 * config/i386/go32.mt: Remove file.
9587 * config/i386/i386nw.mt: Remove file.
9588 * config/i386/i386v.mt: Remove file.
9589 * config/i386/tm-go32.h: Remove file.
9590
9591 * tui/tui-hooks.c: Include "readline/readline.h" after
9592 "gdb_curses.h" instead of before.
9593 * tui/tui-io.c: Likewise.
9594
9595 * tui/tui.c: Fix typo in comment.
9596
9597 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9598
9599 2004-04-08 Andrew Cagney <cagney@redhat.com>
9600
9601 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9602 (deprecated_exception_support_initialized): Declare.
9603 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9604 (initialize_hp_cxx_exception_support)
9605 (child_enable_exception_callback): Update.
9606 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9607 (deprecated_exception_support_initialized): Rename
9608 deprecated_exception_catchpoints_are_fragile and
9609 deprecated_exception_support_initialized.
9610 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9611
9612 * symtab.c (deprecated_hp_som_som_object_present): Rename
9613 hp_som_som_object_present.
9614 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9615 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9616 Update. Delete extern declaration.
9617 * valops.c (hp_som_som_object_present): Ditto.
9618 * parse.c (deprecated_hp_som_som_object_present)
9619 (parse_nested_classes_for_hpacc): Ditto.
9620 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9621 * hppa-hpux-tdep.c (hp_som_som_object_present)
9622 (initialize_hp_cxx_exception_support): Ditto.
9623 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9624 * cp-valprint.c (hp_som_som_object_present)
9625 (cp_print_class_method): Ditto.
9626 * c-typeprint.c (hp_som_som_object_present):
9627 (c_type_print_base): Ditto.
9628 * c-exp.y (hp_som_som_object_present): Ditto.
9629
9630 2004-04-08 Andrew Cagney <cagney@redhat.com>
9631
9632 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9633 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9634 (frame_unwind_find_by_frame): Re-implement the unwind code so
9635 that it can both prepend and append sniffers. Replace
9636 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9637 * tramp-frame.c (tramp_frame_append): Use
9638 frame_unwind_prepend_unwinder.
9639 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9640 frame_unwind_register_unwinder.
9641 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9642 tramp_frame_append.
9643 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9644 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9645 (mips_linux_init_abi): Update.
9646
9647 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9648
9649 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9650 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9651 file support.
9652
9653 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9654
9655 * ia64-tdep.c (elf.h): Don't include.
9656 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9657
9658 2004-04-07 Jason Molenda (jmolenda@apple.com)
9659
9660 * frame.h: Typeo corrections in comments.
9661
9662 2004-04-07 Jim Blandy <jimb@redhat.com>
9663
9664 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9665 %esp and %ebp
9666
9667 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9668
9669 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9670 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9671 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9672 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9673 and solib-legacy.o.
9674 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9675 solib-svr4.o.
9676 * config/sparc/tm-sol2.h: Update copyright year. Include
9677 "solib.h".
9678
9679 * sparc-sol2-tdep.c: Update copyright year. Include
9680 "solib-svr4.h".
9681 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9682 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9683 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9684 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9685 dependencies.
9686
9687 2004-04-06 Andrew Cagney <cagney@redhat.com>
9688
9689 * infttrace.c: Include "infttrace.h".
9690 * infttrace.h: Include "target.h".
9691 * Makefile.in (infttrace_h): Update.
9692 (infttrace.o): Update.
9693
9694 2004-04-06 Andrew Cagney <cagney@redhat.com>
9695
9696 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9697 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9698 move extern declarations from here ...
9699 * infttrace.h: ... to here.
9700 * Makefile.in (hppah-nat.o): Update dependencies.
9701
9702 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9703 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9704 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9705 (hppa_breakpoint_from_pc): Delete.
9706
9707 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9708
9709 2004-04-05 Andrew Cagney <cagney@redhat.com>
9710
9711 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9712 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9713 <sys/file.h>.
9714
9715 2004-04-06 Randolph Chung <tausq@debian.org>
9716
9717 Committed by Andrew Cagney (mechanical change).
9718 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9719 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9720 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9721 child_enable_exception_callback, current_ex_event,
9722 null_symtab_and_line, child_get_current_exception_event,
9723 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9724 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9725 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9726 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9727 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9728 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9729 Move hpux-specific definitions ...
9730 * hppa-hpux-tdep.c: ... to here.
9731
9732 2004-04-05 Andrew Cagney <cagney@redhat.com>
9733
9734 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9735 skip_prologue_using_sal.
9736
9737 2004-04-05 Andrew Cagney <cagney@redhat.com>
9738
9739 * config/i386/tm-i386.h: Delete file.
9740 * config/i386/tm-vxworks.h: Update copyright, do not include
9741 "tm-i386.h".
9742 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9743 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9744 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9745 * config/i386/ncr3000.mt (TM_FILE): Delete.
9746 * config/i386/interix.mt (TM_FILE): Delete.
9747 * config/i386/i386v.mt (TM_FILE): Delete.
9748 * config/i386/i386nw.mt (TM_FILE): Delete.
9749 * config/i386/i386gnu.mt (TM_FILE): Delete.
9750 * config/i386/i386aout.mt (TM_FILE): Delete.
9751 * config/i386/embed.mt (TM_FILE): Delete.
9752
9753 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9754
9755 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9756 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9757 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9758 (accg7_regnum): New constants.
9759 (last_spr_regnum, last_pseudo_regnum): Update.
9760 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9761 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9762 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9763 for accg registers.
9764 (frv_register_sim_regno): Update spr_map[].
9765
9766 2004-04-04 Andrew Cagney <cagney@redhat.com>
9767
9768 * config/mips/xm-riscos.h: Delete.
9769 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9770 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9771 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9772 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9773 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9774 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9775 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9776 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9777 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9778 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9779 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9780 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9781 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9782 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9783 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9784 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9785 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9786 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9787 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9788 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9789 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9790 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9791 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9792 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9793 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9794 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9795
9796 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9797 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9798 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9799 * configure.host: Remove m680[01]0-sun-sunos3*,
9800 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9801 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9802 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9803 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9804 mips-*-riscos*.
9805 * NEWS: Mention removed systems.
9806
9807 2004-04-04 Andrew Cagney <cagney@redhat.com>
9808
9809 GDB 6.1 release created from 6.1 branch.
9810
9811 2004-04-04 Andrew Cagney <cagney@redhat.com>
9812
9813 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9814 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9815 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9816
9817 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9818 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9819 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9820
9821 2004-04-03 Jim Blandy <jimb@redhat.com>
9822
9823 * MAINTAINERS: Chris Faylor has changed employers; add him to
9824 "paper trail" section, and update his E-mail address.
9825
9826 2004-04-03 Andrew Cagney <cagney@redhat.com>
9827
9828 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9829 generic dummy frames.
9830 * dummy-frame.c: Update copyright.
9831 (dummy_frame_sniffer): Delete check for generic dummy frames.
9832
9833 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9834 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9835 (REG_PARM_STACK_SPACE): Delete.
9836 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9837 Inline reference to REG_PARM_STACK_SPACE.
9838
9839 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9840 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9841 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9842 (FRAME_BASE_BEFORE_SIGTRAMP)
9843 (hppa32_hpux_frame_base_before_sigtramp)
9844 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9845 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9846 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9847 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9848 (FRAME_BASE_BEFORE_SIGTRAMP)
9849 (hppa64_hpux_frame_base_before_sigtramp)
9850 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9851
9852 2004-04-03 Andrew Cagney <cagney@redhat.com>
9853
9854 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9855
9856 2004-04-02 Andrew Cagney <cagney@redhat.com>
9857
9858 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9859 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9860 * dummy-frame.h: Delete out-of-date comments.
9861 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9862 * gdbarch.h, gdbarch.c: Re-generate.
9863
9864 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9865
9866 Committed by Andrew Cagney <cagney@redhat.com>.
9867 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9868 into account an instruction saving a register if we have already
9869 seen an earlier instruction saving that same register.
9870
9871 2004-04-02 Andrew Cagney <cagney@redhat.com>
9872
9873 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9874 * gdbarch.h, gdbarch.c: Re-generate.
9875 * frame.c (legacy_get_prev_frame): Delete references to
9876 DEPRECATED_INIT_FRAME_PC_FIRST.
9877
9878 * infrun.c (pc_in_sigtramp): Delete function.
9879 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9880 get_frame_type.
9881
9882 2004-04-02 Andrew Cagney <cagney@redhat.com>
9883
9884 * infrun.c (handle_step_into_function): Delete code conditional on
9885 legacy_frame_p.
9886 (handle_inferior_event, step_over_function): Ditto.
9887
9888 2004-04-02 Andrew Cagney <cagney@redhat.com>
9889
9890 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9891 "previous frame inner to this frame" test.
9892
9893 2004-04-02 Andrew Cagney <cagney@redhat.com>
9894
9895 * frame.c (safe_frame_unwind_memory): New function.
9896 * frame.h (safe_frame_unwind_memory): Declare. Update description
9897 of /safe_/ methods.
9898 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9899 "next_frame". Use safe_frame_unwind_memory.
9900 (tramp_frame_sniffer): Update call to tramp_frame_start.
9901
9902 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9903
9904 * dwarf2read.c (dwarf2_objfile_data_key): New.
9905 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9906 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9907 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9908 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9909 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9910 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9911 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9912 Remove variables.
9913 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9914 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9915 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9916 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9917 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9918 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9919 Remove macros.
9920 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9921 data.
9922 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9923 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9924 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9925 (read_partial_die, read_full_die, read_indirect_string)
9926 (dwarf_decode_line_header, dwarf_decode_macros)
9927 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9928 Update uses of removed variables.
9929 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9930 of removed macros.
9931 (_initialize_dwarf2_read): New function.
9932 * symfile.h (dwarf2_has_info): Update prototype.
9933 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9934 * elfread.c (elf_symfile_read): Likewise.
9935
9936 2004-04-01 Jim Blandy <jimb@redhat.com>
9937
9938 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9939 function for register numbers on all the rs6000-derived targets.
9940 (rs6000_gdbarch_init): Don't register a separate
9941 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9942 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9943 variants.
9944
9945 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9946 numbering.
9947
9948 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9949
9950 * valarith.c: Update copyright notice.
9951 (value_add): Handle range types.
9952 (value_sub): Ditto.
9953 (value_equal): Ditto.
9954 (value_less): Ditto.
9955 (value_neg): Ditto.
9956 (value_complement): Ditto.
9957 (value_binop): Simplify slightly by using is_integral_type and
9958 eliminiating unnecessary COERCE_ENUMs.
9959
9960 2004-03-31 Andrew Cagney <cagney@redhat.com>
9961
9962 * frame.h (frame_unwind_id): Declare.
9963 * frame.c (frame_unwind_id): New function.
9964 (get_prev_frame_1): New function.
9965 (frame_debug_got_null_frame): New function.
9966 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9967 code proper to prev_frame, update description.
9968 * infrun.c (step_over_function): Use frame_unwind_id.
9969
9970 2004-04-31 J. Brobecker <brobecker@gnat.com>
9971
9972 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9973 (hppa64_push_dummy_call): Likewise.
9974
9975 2004-03-30 Jim Blandy <jimb@redhat.com>
9976
9977 From Ulrich Weigand:
9978 * utils.c (query): Do not use a va_list variable multiple times.
9979
9980 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9981
9982 * Makefile.in (linux_nat_h): Update dependencies.
9983 * configure.in: Check for <gnu/libc-version.h>.
9984 * configure: Regenerate.
9985 * config.in: Regenerate.
9986 * linux-nat.h: Include "target.h". Add waitstatus field to
9987 struct lwp_info.
9988 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9989 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9990 to.
9991 (lin_lwp_handle_extended): New function. Handle clone events.
9992 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9993 thread exit events.
9994 (child_wait): Handle clone events.
9995 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9996 * linux-nat.c (linux_enable_event_reporting): Turn on
9997 PTRACE_O_TRACECLONE.
9998 (linux_handle_extended_wait): Handle clone events.
9999 * thread-db.c: Include <gnu/libc-version.h>.
10000 (struct private_thread_info): Add dying flag.
10001 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10002 higher.
10003 (attach_thread): Update comments. Handle dying threads.
10004 (detach_thread): Set the dying flag.
10005 (check_event): Always call attach_thread.
10006
10007 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10008
10009 * mips-tdep.c (mips_pdr_data): New.
10010 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10011 (_initialize_mips_tdep): Initialize mips_pdr_data.
10012
10013 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
10014
10015 * minsyms.c (install_minimal_symbols): Move dropping leading
10016 char from linkage name from here...
10017 (prim_record_minimal_symbol_and_info): ...to here. Simplify
10018 test for "__gnu_compiled*" symbols.
10019
10020 2004-03-28 Jim Blandy <jimb@redhat.com>
10021
10022 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10023 registers to temp register r0 and byte stores as prologue
10024 instructions.
10025
10026 2004-03-28 Andrew Cagney <cagney@redhat.com>
10027
10028 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
10029 arm*-*-*.
10030
10031 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
10032
10033 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10034 and switch the layout to force a display of register window.
10035
10036 2004-02-26 J. Brobecker <brobecker@gnat.com>
10037
10038 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10039 of the INTEGER class.
10040
10041 2004-03-26 Jim Blandy <jimb@redhat.com>
10042
10043 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10044 bytes long on PPC GNU/Linux.
10045
10046 2004-03-26 David Carlton <carlton@kealia.com>
10047
10048 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10049
10050 2004-03-25 Andrew Cagney <cagney@redhat.com>
10051
10052 * PROBLEMS: Add general section titles, remove references to
10053 specific releases.
10054
10055 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
10056
10057 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10058 INT_REGISTER_SIZE.
10059 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10060 FP_REGISTER_VIRTUAL_SIZE.
10061 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10062 of DEPRECATED_REGISTER_RAW_SIZE.
10063 (arm_register_type): Add gdbarch argument.
10064 (arm_register_raw_size, arm_register_virtual_size): Delete.
10065 (arm_register_byte, arm_extract_return_value)
10066 (arm_store_return_value, arm_get_longjmp_target): Update references
10067 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10068 (arm_gdbarch_init): Likewise. Don't set
10069 deprecated_register_raw_size, deprecated_register_virtual_size,
10070 deprecated_max_register_raw_size,
10071 deprecated_max_register_virtual_size, or
10072 deprecated_max_register_virtual_type. Do set register_type.
10073 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10074 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10075 (FP_REGISTER_VIRTUAL_SIZE): Delete.
10076 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10077 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10078 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10079 INT_REGISTER_SIZE.
10080 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10081 (remote_rdp_store_register): Likewise.
10082
10083 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
10084
10085 * Makefile.in (mips-linux-tdep.o): Update dependencies.
10086 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10087 to after osabi initialization.
10088 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10089 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10090 functions.
10091 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10092 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10093 variables.
10094 (mips_linux_init_abi): Append signal trampoline unwinders.
10095
10096 2004-03-24 Andrew Cagney <cagney@redhat.com>
10097
10098 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10099 * tramp-frame.c: Include "gdb_assert.h".
10100 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10101 correct sizeof.
10102 (tramp_frame_append): Validate the tramp frame's instructions.
10103 * Makefile.in (tramp-frame.o): Update dependencies.
10104
10105 2004-03-23 Andrew Cagney <cagney@redhat.com>
10106
10107 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10108
10109 2004-03-23 Andrew Cagney <cagney@redhat.com>
10110
10111 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10112 Nasser as past testsuite/lib/ (and other) maintainers.
10113
10114 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10115
10116 * infcmd.c (attach_command): Reread symbols if we already have
10117 an exec file.
10118
10119 2004-03-23 Andrew Cagney <cagney@redhat.com>
10120
10121 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10122
10123 2004-03-23 Andrew Cagney <cagney@redhat.com>
10124
10125 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10126 * gdbarch.h, gdbarch.c: Re-generate.
10127 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10128 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10129 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10130 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
10131 (DEPRECATED_SIGTRAMP_START): Update.
10132 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
10133 (DEPRECATED_SIGTRAMP_START): Update.
10134 * blockframe.c (find_pc_sect_partial_function): Update.
10135 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10136
10137 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10138
10139 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10140 if necessary.
10141
10142 2004-03-23 Andrew Cagney <cagney@redhat.com>
10143
10144 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10145 predicate, deprecate.
10146 * gdbarch.h, gdbarch.c: Re-generate.
10147 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10148 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10149 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10150 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10151 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10152 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10153 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10154 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10155 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10156 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10157 * blockframe.c (find_pc_partial_function): Update.
10158 * breakpoint.c (bpstat_what): Update.
10159 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10160 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10161 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10162 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10163 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10164 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10165 * i386-nto-tdep.c (i386nto_init_abi): Update.
10166 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10167 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10168 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10169 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10170 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10171 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10172 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10173 * infrun.c (pc_in_sigtramp): Update.
10174 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10175 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10176 * mips-tdep.c (mips_gdbarch_init): Update.
10177 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10178 * ppc-linux-tdep.c: Update comment.
10179 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10180 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10181 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10182 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10183 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10184 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10185 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10186 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10187 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10188 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10189
10190 2004-03-23 Andrew Cagney <cagney@redhat.com>
10191
10192 * tramp-frame.h, tramp-frame.h: New files.
10193 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10194 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10195
10196 * Makefile.in: Update all dependencies.
10197
10198 2004-03-23 Andrew Cagney <cagney@redhat.com>
10199
10200 * Makefile.in (trad_frame_h): Add $(frame_h).
10201 * trad-frame.h: Update copyright. Include "frame.h".
10202 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10203 (trad_frame_set_id, trad_frame_get_id): Declare.
10204 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10205 * trad-frame.c: Update copyright.
10206 (struct trad_frame_cache): Define.
10207 (trad_frame_cache_zalloc): New function.
10208 (trad_frame_set_id, trad_frame_get_id): New functions.
10209 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10210
10211 2004-03-22 Andrew Cagney <cagney@redhat.com>
10212
10213 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10214 s390_pltstub_unwind_cache.
10215 (s390_stub_frame_unwind_cache): Rename
10216 s390_pltstub_frame_unwind_cache.
10217 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10218 (s390_stub_frame_prev_register): Rename
10219 s390_pltstub_frame_prev_register.
10220 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10221 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10222
10223 From Ulrich Weigand:
10224 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10225 pointer calls like PLT calls.
10226
10227 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10228
10229 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10230 PC rather than the partial function start address. Use the start
10231 address to sanity check the found PDR.
10232
10233 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10234
10235 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10236 linux_handle_extended_wait.
10237
10238 2004-03-22 Andrew Cagney <cagney@redhat.com>
10239
10240 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10241 function.
10242
10243 * frame.h (generic_pop_current_frame): Delete declaration.
10244 (deprecate_pop_dummy_frame): Deprecate
10245 generic_pop_dummy_frame.
10246 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10247 (generic_pop_current_frame): Delete function.
10248 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10249 generic_pop_current_frame.
10250 * v850-tdep.c (v850_pop_frame): Update.
10251 * mcore-tdep.c (mcore_pop_frame): Update.
10252 * sh64-tdep.c (sh64_pop_frame): Update.
10253 * h8300-tdep.c (h8300_pop_frame): Update.
10254
10255 2004-03-22 Andrew Cagney <cagney@redhat.com>
10256
10257 * frame.h (deprecated_pc_in_call_dummy): Rename
10258 generic_pc_in_call_dummy.
10259 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10260 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10261 generic_pc_in_call_dummy.
10262 (pc_in_dummy_frame): Make static.
10263 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10264 * gdbarch.h, gdbarch.c: Re-generate.
10265 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10266 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10267 (legacy_get_prev_frame): Ditto.
10268 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10269 comment.
10270
10271 2004-03-21 Andrew Cagney <cagney@redhat.com>
10272
10273 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10274 declaration and out-of-date comment.
10275 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10276 Delete function.
10277 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10278 deprecated_pc_in_call_dummy.
10279
10280 * infrun.c (handle_inferior_event): For non legacy frames, use the
10281 frame ID and frame type to identify a signal trampoline. Update
10282 comments.
10283
10284 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10285
10286 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10287 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10288
10289 2004-03-21 Andrew Cagney <cagney@redhat.com>
10290
10291 * frame-unwind.h: Update copyright.
10292 (struct frame_data): Add opaque declaration.
10293 (frame_sniffer_ftype): Declare.
10294 (struct frame_unwind): Add "unwind_data" and "sniffer".
10295 (frame_unwind_register_unwinder): Declare.
10296 (frame_unwind_find_by_frame): Add parameter "this_cache".
10297 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10298 (legacy_get_prev_frame, legacy_get_prev_frame)
10299 (get_frame_type): Pass the prologue_cache to
10300 frame_unwind_find_by_frame.
10301 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10302 "unwinder".
10303 (frame_unwind_register_unwinder): New function.
10304 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10305
10306 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10307
10308 * bcache.c (print_percentage): Use floating point to avoid
10309 incorrect results when portion*100 overflows.
10310
10311 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10312
10313 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10314 (ppc_linux_init_extra_frame_info)
10315 (ppc_linux_frameless_function_invocation)
10316 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10317 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10318 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10319 (rs6000_frame_chain): Delete declarations.
10320 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10321 (ppc_linux_init_extra_frame_info)
10322 (ppc_linux_frameless_function_invocation)
10323 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10324 (ppc_linux_init_abi): Remove registration of above deleted functions.
10325 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10326 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10327 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10328 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10329 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10330 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10331 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10332 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10333 frame management for all OSABIs.
10334
10335 2004-03-19 Andrew Cagney <cagney@redhat.com>
10336
10337 Committed by Kevin Buettner <kevinb@redhat.com>.
10338
10339 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10340 Update copyright.
10341 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10342 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10343 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10344 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10345 unwinders. #ifdef legacy frame code.
10346 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10347 "frame-base.h".
10348 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10349 (struct rs6000_frame_cache, rs6000_frame_cache)
10350 (rs6000_frame_this_id, rs6000_frame_prev_register)
10351 (rs6000_frame_sniffer, rs6000_frame_unwind)
10352 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10353 (rs6000_frame_base): Implement a traditional frame unwinder.
10354 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10355 frame unwinder.
10356
10357 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10358
10359 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10360 breakpoint address for watchpoints or the catch eventpoints.
10361 Add new paramter ``bptype''. Adjust all callers.
10362
10363 2004-03-19 Andrew Cagney <cagney@redhat.com>
10364
10365 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10366
10367 * PROBLEMS: Delete note that ARM does not use frame code, problem
10368 fixed.
10369
10370 2004-03-18 Andrew Cagney <cagney@redhat.com>
10371
10372 * stack.c (return_command): Delete code wrapped in #ifdef
10373 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10374
10375 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10376
10377 2004-03-18 Andrew Cagney <cagney@redhat.com>
10378
10379 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10380 DEPRECATED_IN_SIGTRAMP.
10381 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10382 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10383 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10384 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10385 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10386 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10387 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10388 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10389 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10390 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10391
10392 2004-03-18 Andrew Cagney <cagney@redhat.com>
10393
10394 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10395 (struct frame_base_table_entry): Define.
10396 (struct frame_base_table): Re-implement as a linked list.
10397 (frame_base_init): Re-implement.
10398 (frame_base_table): Delete function.
10399 (append_predicate): Delete function.
10400 (frame_base_append_sniffer): Update.
10401 (frame_base_set_default): Update.
10402 (frame_base_find_by_frame): Update.
10403 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10404 * Makefile.in (frame-base.o): Update dependencies.
10405
10406 2004-03-17 Andrew Cagney <cagney@redhat.com>
10407
10408 * frame.c (legacy_get_prev_frame): Pass correct frame to
10409 frame_unwind_find_by_frame.
10410
10411 2004-03-17 David Carlton <carlton@kealia.com>
10412
10413 * NEWS: Mention C++ nested types and namespaces
10414
10415 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10416
10417 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10418 and "Regressions since gdb 5.3.". Add known regressions since
10419 gdb 6.0.
10420
10421 2004-03-16 David Carlton <carlton@kealia.com>
10422
10423 * dwarf2read.c (process_structure_scope): Process children even
10424 when we're a declaration.
10425
10426 2004-03-16 Andrew Cagney <cagney@redhat.com>
10427
10428 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10429 * blockframe.c (find_pc_partial_function)
10430 (find_pc_sect_partial_function): Merge into a single
10431 find_pc_partial_function.
10432
10433 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10434
10435 * i386bsd-nat.c: s/regno/regnum/g.
10436 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10437 FP0_REGNUM.
10438 (store_inferior_registers): Likewise.
10439
10440 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10441
10442 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10443 of i387_fill_fsave.
10444 (store_inferior_registers): Call i387_collect_fsave and
10445 i387_collect_fxsave instead of i387_fill_fsave and
10446 i387_fill_fxsave.
10447
10448 2004-03-15 Andrew Cagney <cagney@redhat.com>
10449
10450 * Makefile.in (frame-unwind.o): Update dependencies.
10451 * frame-unwind.c: Include "gdb_obstack.h".
10452 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10453 parameter.
10454 (append_predicate): Delete function.
10455 (struct frame_unwind_table_entry): New structure.
10456 (struct frame_unwind_table): Replace "sniffer" with "head" and
10457 "tail".
10458 (frame_unwind_append_sniffer): Update.
10459 (frame_unwind_find_by_frame): Update.
10460 (_initialize_frame_unwind): Registe frame_unwind_init using
10461 gdbarch_data_register_pre_init.
10462
10463 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10464
10465 * i386bsd-nat.c: Update copyright year.
10466 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10467 define unconditionally.
10468
10469 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10470
10471 * i387-tdep.h (i387_collect_fsave): New prototype.
10472 * i387-tdep.c (i387_collect_fsave): New function containing most
10473 of the code from i387_fill_fsave.
10474 (i387_fill_fsave): Call i387_collect_fsave.
10475
10476 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10477
10478 * i386-linux-tdep.c: Update copyright year.
10479 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10480 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10481 svr4_ilp32_link_map_offsets instead of
10482 i386_linux_svr4_fetch_link_map_offsets.
10483
10484 2004-03-15 David Carlton <carlton@kealia.com>
10485
10486 Fix for PR c++/1553:
10487 * dwarf2read.c (read_structure_type): Determine type name by
10488 calling determine_class_name.
10489 (determine_class_name): New.
10490 (determine_prefix): Look at TYPE_TAG_NAME and call
10491 determine_class_name when appropriate.
10492 (determine_prefix_aux, class_name): Delete.
10493 (read_namespace): Set die->type.
10494
10495 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10496
10497 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10498 unused macro definition. The definition in target.h (or perhaps
10499 elsewhere) takes precedence.
10500
10501 2004-03-15 Andrew Cagney <cagney@redhat.com>
10502
10503 * ppc-tdep.h: Update copyright.
10504 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10505 function signatures to match "regsets.h".
10506 * ppc-linux-tdep.c: Include "regset.h".
10507 (ELF_GREGSET_SIZE): Delete.
10508 (right_supply_register): New function.
10509 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10510 using right_supply_register.
10511 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10512 functions.
10513 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10514 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10515 (_initialize_ppc_linux_tdep): Do not register
10516 ppc_linux_regset_core_fns.
10517 (ppc_linux_regset_from_core_section): Replace
10518 fetch_core_registers.
10519 (ppc_linux_regset_core_fns): Delete.
10520 * ppc-linux-nat.c: (right_fill_reg): New function.
10521 (supply_gregset): Update call to ppc_linux_supply_gregset.
10522 (fill_gregset): Clear the register set, use right_fill_reg.
10523 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10524 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10525
10526 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10527 unsigned.
10528
10529 2004-03-15 Andrew Cagney <cagney@redhat.com>
10530
10531 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10532 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10533 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10534 and register_gdbarch_data.
10535 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10536 (struct gdbarch_data): Replace "init" by "pre_init" and
10537 "post_init".
10538 * gdbarch.h, gdbarch.c: Re-generate.
10539 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10540 with"obstack", use OBSTACK_ZALLOC.
10541 (dwarf2_frame_ops): Delete.
10542 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10543 (dwarf2_frame_init_reg): Use gdbarch_data.
10544 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10545 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10546 (_initialize_svr4_solib): Update.
10547 * user-regs.c (_initialize_user_regs): Update.
10548 * reggroups.c (_initialize_reggroup): Update.
10549 * regcache.c (_initialize_regcache): Update.
10550 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10551 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10552 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10553 * frame-unwind.c (_initialize_frame_unwind): Update.
10554 * frame-base.c (_initialize_frame_base): Update.
10555 * user-regs.c (user_reg_add): Update.
10556 * reggroups.c (reggroup_add): Update.
10557 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10558 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10559 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10560 * frame-base.c (frame_base_table): Update.
10561 * remote.c (_initialize_remote): Update.
10562 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10563
10564 2004-03-15 Andrew Cagney <cagney@redhat.com>
10565
10566 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10567
10568 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10569
10570 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10571 * frv-linux-tdep.c: New file.
10572 * frv-tdep.c (struct gdbarch_tdep): Add new field
10573 ``sigcontext_reg_addr''.
10574 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10575 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10576 (frv_sigramp_frame_sniffer): New functions.
10577 (frv_sigtramp_frame_unwind): New static global.
10578 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10579 sniffers.
10580 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10581 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10582
10583 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10584
10585 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10586 but not via a call to error(), when unable to read memory.
10587
10588 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10589
10590 * frv-tdep.c (frv_call_dummy_words): Delete.
10591 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10592
10593 2004-03-15 Andrew Cagney <cagney@redhat.com>
10594
10595 * infrun.c (handle_step_into_function, step_over_function): Only
10596 update and use STEP_FRAME_ID when the system is using legacy
10597 frames. Update comments.
10598
10599 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10600
10601 * amd64-linux-tdep.h: Remove file.
10602 * amd64-linux-tdep.c: Don't include "inferior.h" and
10603 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10604 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10605 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10606 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10607 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10608 macros.
10609 (user_to_gdb_regmap): Remove variable.
10610 (amd64_linux_gregset_reg_offset): New variable.
10611 (amd64_core_fns): Remove variable.
10612 (fetch_core_registers): Remove function.
10613 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10614 functions.
10615 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10616 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10617 * Makefile.in (amd64_linux_tdep_h): Remove.
10618 (amd64-linux-nat.o): Update dependencies.
10619 (amd64-linux-tdep.o): Update dependencies.
10620
10621 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10622 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10623 functions.
10624 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10625
10626 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10627 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10628
10629 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10630
10631 * dwarf2read.c (read_structure_type): Rename from
10632 read_structure_scope. Don't create a symbol or call process_die.
10633 Return immediately if die->type is set. Call read_type_die before
10634 dwarf2_add_member_fn.
10635 (process_structure_scope): New function.
10636 (read_enumeration_type, process_enumeration_scope): New functions,
10637 broken out from read_enumeration. Don't create the enumeration
10638 type if it has already been created.
10639 (read_enumeration): Removed.
10640 (process_die): Call read_structure_type, process_structure_scope,
10641 read_enumeration_type, and process_enumeration_scope. Just call
10642 new_symbol for base and subrange types. Add a comment about other
10643 type dies.
10644 (read_type_die): Call read_enumeration_type.
10645 (add_partial_structure, new_symbol): Update comments.
10646
10647 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10648
10649 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10650
10651 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10652
10653 * tui/tui-win.h (tui_get_cmd_list): Declare.
10654 * tui/tui-win.c (tui_command): New function.
10655 (tui_get_cmd_list): New function.
10656 (_initialize_tui_win): Moved initialization of tui command in
10657 tui_get_cmd_list.
10658
10659 * tui/tui-data.c (init_content_element): Setup new data members.
10660 (init_win_info): Likewise.
10661 (free_content_elements): Free it.
10662 * tui/tui-data.h (struct tui_data_element): Store the register
10663 content to print.
10664 (struct tui_data_info): Keep the current register group.
10665
10666 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10667
10668 * tui/tui-regs.h (tui_show_registers): Update prototype.
10669 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10670 (tui_resize_all): No need to calculate anything for register window.
10671 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10672 (tui_set_register_element, tui_set_general_regs_content): Remove.
10673 (tui_set_special_regs_content): Remove.
10674 (tui_set_general_and_special_regs_content): Remove.
10675 (tui_set_float_regs_content): Remove.
10676 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10677 (tui_set_regs_content): Remove.
10678 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10679 (tui_v_show_registers_command_support): Remove.
10680 (tui_show_registers): Use a reggroup to specify the registers to show.
10681 (tui_show_register_group): New function.
10682 (tui_display_registers_from): Compute the layout of register window
10683 and refresh with new API; be sure to delete old register windows.
10684 (tui_check_register_values): Update to use tui_get_register and
10685 tui_display_data.
10686 (tui_display_register): Just refresh the register window part.
10687 (tui_register_format): Format registers and save in tui_data_element.
10688 (tui_get_register): New to combine tui_reg_value_has_changed and
10689 tui_get_register_raw_value; fix to use the new gdb API.
10690 (tui_show_float_command): Renamed tui_reg_float_command.
10691 (tui_show_general_command): Renamed tui_reg_general_command.
10692 (tui_show_special_command): Renamed tui_reg_system_command.
10693 (_initialize_tui_regs): Remove unused commands.
10694
10695 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10696
10697 * NEWS (New native configurations): Mention OpenBSD/amd64.
10698
10699 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10700 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10701 Remove defines.
10702 * config/i386/nm-fbsd64.h: Likewise.
10703 * config/i386/nm-obsd.h: Likewise.
10704 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10705 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10706
10707 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10708
10709 * frv-tdep.c (set_variant_scratch_registers): New function.
10710 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10711 New constants.
10712
10713 From Richard Sandiford <rsandifo@redhat.com>:
10714 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10715
10716 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10717
10718 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10719 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10720 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10721 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10722 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10723 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10724 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10725 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10726 definitions from frv-tdep.c to frv-tdep.h.
10727
10728 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10729
10730 Add shared library support for FR-V FDPIC ABI:
10731 * Makefile.in (solib-frv.o): Add dependencies.
10732 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10733 New functions.
10734 (frv_push_dummy_call): Add support for FDPIC ABI.
10735 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10736 for FDPIC ABI.
10737 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10738 (frv_fdpic_find_canonical_descriptor): Declare.
10739 * solib-frv.c: New file.
10740 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10741 * config/frv/tm-frv.h (solib.h): Include.
10742
10743 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10744
10745 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10746 (frv-tdep.o): Update dependencies.
10747 * frv-tdep.h: New file.
10748 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10749 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10750 constants.
10751 (struct gdbarch_tdep): Add new member ``frv_abi''.
10752 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10753 functions.
10754 (new_variant): Set ``frv_abi'' field.
10755 (gdb_arch_init): Detect FDPIC executables.
10756
10757 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10758
10759 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10760 wrapper.
10761
10762 2004-03-11 Andrew Cagney <cagney@redhat.com>
10763
10764 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10765
10766 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10767
10768 * solist.h (master_so_list): New function.
10769 * solib.c (master_so_list): Likewise.
10770 * solib-svr4.c (enable_break): Iterate over so_list entries
10771 obtained from master list instead of entries obtained directly
10772 via svr4_current_sos().
10773
10774 2004-03-10 Ben Elliston <bje@gnu.org>
10775
10776 * MAINTAINERS: Update my mail address.
10777
10778 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10779
10780 * remote-m32r-sdi.c: Support hardware watchpoint.
10781
10782 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10783
10784 * user-regs.c: Update copyright years.
10785 (struct user_regs): Rename to gdb_user_regs.
10786 (append_user_reg, builtin_user_regs, user_regs_init)
10787 (user_reg_add, user_reg_map_name_to_regnum)
10788 (usernum_to_user_reg): Update.
10789
10790 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10791
10792 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10793 (skip_children): New functions.
10794 (locate_pdi_sibling): Call skip_children.
10795
10796 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10797
10798 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10799 * gdbtypes.c (check_typedef): Update comments.
10800
10801 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10802
10803 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10804 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10805 pointer. Update comment about comp_unit_head.
10806 (struct abbrev_info): Shorten two int flags.
10807 (dwarf_alloc_abbrev): Take a CU argument.
10808 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10809 each time through the loop. Update cleanup argument.
10810 (psymtab_to_symtab_1): Update cleanup call.
10811 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10812 abbrev_obstack.
10813 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10814 Just call obstack_free and clear the pointer.
10815
10816 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10817
10818 * infrun.c (handle_inferior_event): Remove short-circuit code for
10819 events in a different thread.
10820
10821 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10822
10823 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10824 print the whole transfer.
10825 (initialize_targets): Update description of "set debug target".
10826
10827 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10828
10829 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10830
10831 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10832
10833 * MAINTAINERS (write after approval): Add myself.
10834
10835 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10836
10837 * sh-tdep.c (sh_print_registers_info): Use for loop.
10838 Don't skip multiple registers when a float register is encountered.
10839
10840 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10841
10842 Fix PR tdep/1291.
10843 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10844 to official SH documentation.
10845
10846 2004-03-07 Andrew Cagney <cagney@redhat.com>
10847
10848 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10849 unused function.
10850
10851 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10852
10853 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10854 (arm_get_next_pc): Handle BX and BLX.
10855
10856 2004-03-07 Andrew Cagney <cagney@redhat.com>
10857
10858 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10859 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10860 HPPA_SP_REGNUM.
10861 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10862 (hppa_target_read_fp): Delete.
10863 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10864 register_virtual_size, max_register_raw_size,
10865 max_register_virtual_size, register_byte, register_size,
10866 target_read_fp, fp_regnum, and register_bytes. Set register_type
10867 instead of register_virtual_type.
10868 (hppa32_register_type, hppa64_register_type): Replace
10869 hppa32_register_virtual_type and hppa64_register_virtual_type.
10870 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10871 (HPPA_FP_REGNUM): Define.
10872
10873 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10874
10875 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10876 (pa_do_registers_info): Delete.
10877 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10878 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10879 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10880
10881 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10882 GDB_TARGET_IS_HPPA code.
10883 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10884 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10885 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10886 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10887 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10888 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10889 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10890 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10891 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10892 (hppa_frameless_function_invocation, hppa64_store_return_value)
10893 (hppa_store_struct_return, hppa64_extract_return_value)
10894 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10895 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10896 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10897 (find_proc_framesize, deposit_21, restore_pc_queue)
10898 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10899 (rp_saved, pc_in_linker_stub): Delete.
10900
10901 Unconditionally enable 64-bit frame and ABI code.
10902 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10903 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10904 push_dummy_frame, fix_call_dummy, push_arguments,
10905 call_dummy_location, extract_return_value, use_struct_convention,
10906 store_return_value, store_struct_return, saved_pc_after_call,
10907 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10908 frame_chain, frame_chain_valid, frameless_function_invocation,
10909 frame_saved_pc, and pop_frame.
10910
10911 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10912 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10913 (hppa_gdbarch_init): Do not set PC_REGNUM.
10914
10915 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10916
10917 * config/alpha/tm-fbsd.h: Remove file.
10918 * config/alpha/fbsd.mt: Tweak comment.
10919 (TM_FILE): Set to tm-alpha.h.
10920
10921 2004-03-05 Andrew Cagney <cagney@redhat.com>
10922
10923 * infrun.c (step_over_function): When non-legacy code, and no
10924 step_frame_id, use the unwinder to get the caller's frame ID.
10925
10926 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10927
10928 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10929 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10930 bfd_arch_unknown. Adjust comment.
10931
10932 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10933 * i386obsd-tdep.c: Correct spelling in comment.
10934 * i386nbsd-tdep.c: Correct spelling in comment.
10935 * sparc-tdep.c: Correct spelling in comments.
10936
10937 2004-03-05 David Carlton <carlton@kealia.com>
10938
10939 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10940 bug.
10941
10942 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10943
10944 * sparc-tdep.c: Fix typo in comment.
10945
10946 2004-03-04 J. Brobecker <brobecker@gnat.com>
10947
10948 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10949
10950 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10951
10952 * dwarf2read.c: Add comment describing memory lifetimes.
10953 (struct dwarf2_pinfo): Update comment.
10954 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10955 (read_enumeration, new_symbol): Don't use obsavestring.
10956
10957 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10958
10959 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10960 instead of amd64_fill_fxsave.
10961 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10962 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10963
10964 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10965 Reorganize code a bit.
10966
10967 2004-03-04 Orjan Friberg <orjanf@axis.com>
10968
10969 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10970 when the frame pointer is pushed. Don't set the frame pointer's
10971 address on the stack unless it's actually located there.
10972 Set the SRP's address on the stack correctly when the PC is still in
10973 the prologue.
10974 (cris_return_value): New function.
10975 (cris_gdbarch_init): Clear deprecated store_return_value,
10976 extract_return_value.
10977
10978 2004-03-02 Jim Blandy <jimb@redhat.com>
10979
10980 * stabsread.c (reg_value_complaint): The maximum register number
10981 is one less than the number of registers.
10982
10983 2004-03-02 Andrew Cagney <cagney@redhat.com>
10984
10985 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10986 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10987 trailing comma and redundant assignment of I386_ST0_REGNUM.
10988 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10989 32-bit segment registers.
10990
10991 2004-03-01 Andrew Cagney <cagney@redhat.com>
10992
10993 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10994 use frame_relative_level and get_next_frame.
10995
10996 2004-02-29 Andrew Cagney <cagney@redhat.com>
10997
10998 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10999 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11000 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11001 Delete macro.
11002
11003 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11004
11005 * inflow.c (terminal_inferior): Don't give up the terminal if we
11006 previously couldn't get the inferior's terminal state.
11007
11008 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11009
11010 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11011 PC_REGNUM.
11012
11013 2004-02-28 Andrew Cagney <cagney@redhat.com>
11014
11015 * NEWS: Refer to GDB 6.1.
11016 * README: Refer to GDB 6.1.
11017 * PROBLEMS: Refer to GDB 6.1.
11018
11019 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
11020
11021 * thread-db.c (disable_thread_signals): Remove unused function.
11022
11023 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11024
11025 * amd64-nat.c: Include "gdb_string.h".
11026 (amd64_collect_native_gregset): Zero-extend the 32-bit
11027 general-purpose registers and %eip.
11028
11029 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11030 * amd64-tdep.c (amd64_collect_fxsave): New function.
11031 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11032
11033 * i387-tdep.h: Update copyright year.
11034 (i387_collect_fxsave): New prototype.
11035 * i387-tdep.c: Update copyright year.
11036 (i387_collect_fxsave): New function containing most of the code
11037 from i387_fill_fxsave.
11038 (i387_fill_fxsave): Call i387_collect_fxsave.
11039
11040 2004-02-28 Andrew Cagney <cagney@redhat.com>
11041
11042 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11043 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
11044
11045 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11046
11047 * amd64-tdep.c (amd64_frame_cache): Fix comment.
11048
11049 2004-02-28 Andrew Cagney <cagney@redhat.com>
11050
11051 * utils.c: Use "", instead of <>, to include readline.
11052 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11053 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11054 * source.c, solib.c, exec.c, event-top.c: Ditto.
11055 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11056 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11057 * Makefile.in: Update all dependencies.
11058 (readline_tilde_h, readline_history_h): Define.
11059 (readline_headers): Delete.
11060
11061 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11062
11063 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11064 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11065 "config/i386/tm-lx64.h".
11066
11067 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11068 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
11069 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11070
11071 2004-02-28 Andrew Cagney <cagney@redhat.com>
11072
11073 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11074
11075 * breakpoint.c (_initialize_breakpoint): Use
11076 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
11077 Add help to show command.
11078
11079 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11080
11081 * i386-nat.c: Reformat to be closer to coding standards.
11082 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11083 `retval'. Make variables `align' and `size' local to while-loop.
11084 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11085 (_initialize_i386_nat): New prototype.
11086
11087 * tui/tui.c: Include <readline/readline.h> instead of
11088 "readline/readline.h". Include it after <term.h> and
11089 "gdb_curses.h".
11090
11091 2004-02-27 Andrew Cagney <cagney@redhat.com>
11092
11093 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11094 the new frame unwind code.
11095 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11096 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11097 PCOQ_HEAD_REGNUM.
11098
11099 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11100 "return_value" and "push_dummy_call".
11101 (hppa32_use_struct_convention): Delete unused function.
11102 (hppa32_store_return_value): Delete unused function.
11103 (hppa32_extract_return_value): Delete unused function.
11104 (hppa32_stack_align): Delete function.
11105
11106 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
11107
11108 * coffread.c (enter_linenos): Don't let rawptr reference memory
11109 outside linetab[]'s limits.
11110
11111 2004-02-27 Andrew Cagney <cagney@redhat.com>
11112
11113 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11114 inferior stack space - the stack needs to grow upwards.
11115 (hppa32_frame_align): New function.
11116 (hppa64_frame_align): Replace hppa_frame_align.
11117 (hppa_gdbarch_init): Update.
11118
11119 2004-02-26 Orjan Friberg <orjanf@axis.com>
11120
11121 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11122 (dwarf2-frame.h): Include.
11123 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11124 Remove static variables related to ABI setting.
11125 (struct gdbarch_tdep): Remove cris_abi member.
11126 (struct frame_extra_info): Remove.
11127 (cris_unwind_cache, stack_item): New structs.
11128 (cris_frame_unwind, cris_frame_base): New variables.
11129 (push_stack_item, pop_stack_item)
11130 (cris_frame_unwind_cache, cris_frame_this_id)
11131 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11132 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11133 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11134 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11135 (cris_reg_struct_has_addr): New functions.
11136 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
11137 (cris_frame_saved_pc, cris_saved_pc_after_call,
11138 (cris_store_struct_return, cris_frameless_function_invocation)
11139 (cris_pop_frame, cris_skip_prologue_main)
11140 (cris_abi_original_store_return_value)
11141 (cris_abi_v2_store_return_value)
11142 (cris_abi_original_extract_return_value)
11143 (cris_abi_v2_extract_return_value)
11144 (cris_abi_original_reg_struct_has_addr)
11145 (cris_abi_v2_reg_struct_has_addr)
11146 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11147 (cris_push_return_address, cris_abi_update): Remove.
11148 (_initialize_cris_tdep): Remove ABI command.
11149 (cris_dump_tdep): Ditto.
11150 (cris_gdbarch_init): Remove ABI command.
11151 Set store_return_value, extract_return_value, push_dummy_code,
11152 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11153 frame_unwind_append_sniffer, frame_base_set_default.
11154 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11155 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11156 sizeof_call_dummy_words, get_saved_register, push_return_address,
11157 pop_frame, store_struct_return, frame_init_saved_regs,
11158 init_extra_frame_info, frameless_function_invocation, frame_chain,
11159 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11160 dummy_write_sp.
11161
11162 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11163
11164 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11165 * valprint.c (print_hex_chars): Change from static to external.
11166 (print_char_chars): New function.
11167 * printcmd.c (print_scalar_formatted): For integer and enum types
11168 that are longer than LONGEST, perform processing via appropriate
11169 print_*_chars routines.
11170
11171 2004-02-26 Andrew Cagney <cagney@redhat.com>
11172
11173 * Makefile.in: Update dependencies.
11174 Changes from Ulrich Weigand,
11175 * s390-tdep.c: Include "dwarf2-frame.h".
11176 (s390_dwarf2_frame_init_reg): New function.
11177 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11178 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11179
11180 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11181
11182 * breakpoint.c (pending_break_support): New setting variable.
11183 (break_command_1): Account for pending_break_support setting
11184 when creating pending breakpoints.
11185 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11186 (_initialize_breakpoint): Add "set breakpoint pending" and
11187 "show breakpoint pending" commands.
11188
11189 2004-02-26 Andrew Cagney <cagney@redhat.com>
11190
11191 Fix PR i18n/1570.
11192 * charset.c (backslashable, backslashed, represented): Remove 'e'
11193 from list of escaped characters, not part of ISO-C.
11194
11195 2004-02-25 J. Brobecker <brobecker@gnat.com>
11196
11197 From Peter Schauer <schauer@pdf.de>:
11198 * tui/tui.c: Move system header includes after local includes.
11199 Fixes a build failure on solaris systems.
11200
11201 2004-02-25 J. Brobecker <brobecker@gnat.com>
11202
11203 * configure.in: Refine the previous change.
11204 * configure: Regenerate.
11205
11206 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11207
11208 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11209 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11210 "amd64-tdep.h" instead of "x86-64-tdep.h".
11211 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11212 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11213 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11214 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11215 and "x86-64-tdep.c".
11216 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11217 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11218 and "x86-64-tdep.c".
11219 * amd64bsd-nat.c: Update copyright year.
11220 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11221 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11222 "x86-64-tdep.h".
11223 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11224 "x86-64-tdep.h".
11225 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11226 "x86-64-tdep.h".
11227 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11228 "x86-64-tdep.h".
11229 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11230 "x86-64-tdep.h".
11231 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11232 "x86-64-tdep.h".
11233 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11234 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11235 * Makefile.in (amd64_linux_tdep_h): Renamed from
11236 x86_64_linux_tdep_h.
11237 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11238 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11239 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11240 (amd64obsd-tdep.o): Update dependencies.
11241 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11242 dependencies.
11243 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11244 dependencies.
11245 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11246 amd64-linux-nat.c amd64-linux-tdep.c.
11247 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11248 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11249 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11250 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11251 amd64-tdep.o and amd64-linux-tdep.o.
11252 (TM_FILE): Set to tm-linux64.h.
11253 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11254 (NAT_FILE): Set to nm-linux64.h.
11255 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11256 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11257 amd64-tdep.o.
11258 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11259 amd64-tdep.o.
11260 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11261 amd64-tdep.o.
11262
11263 2004-02-25 Roland McGrath <roland@redhat.com>
11264
11265 * remote.c (remote_protocol_qPart_auxv): New variable.
11266 (init_all_packet_configs): Initialize it.
11267 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11268 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11269 (show_remote_cmd): Call it.
11270 (_initialize_remote): Initialize commands.
11271 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11272 service TARGET_OBJECT_AUXV requests.
11273
11274 2004-02-25 J. Brobecker <brobecker@gnat.com>
11275
11276 * configure.in: Make sure that the wborder function is available.
11277 Otherwise, search for it in the cur_colr library.
11278 * configure: Regenerate.
11279
11280 2004-02-25 Andrew Cagney <cagney@redhat.com>
11281
11282 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11283
11284 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11285
11286 * config/i386/tm-x86-64linux.h: Tweak comments.
11287
11288 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11289
11290 * MAINTAINERS: Add self to write-after-approval list.
11291
11292 2004-02-25 Andrew Cagney <cagney@redhat.com>
11293
11294 PR cli/1566. Problem found, and fix suggested by David Allan.
11295 * cli/cli-script.c (execute_control_command): Unconditionally
11296 install a cleanup. Default "ret" to "invalid_control". Use
11297 "break" instead of "return" to escape from the switch.
11298
11299 2004-02-24 J. Brobecker <brobecker@gnat.com>
11300
11301 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11302 with the lines macro defined in term.h on AiX.
11303 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11304 a collision with the label_width macro defined in term.h on AiX.
11305
11306 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11307
11308 Committed by Kevin Buettner <kevinb@redhat.com>.
11309
11310 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11311 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11312 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11313 instead of ia64_write_pc().
11314 * ia64-linux-tdep.c (regcache.h): Include.
11315 (ia64_linux_write_pc): New function.
11316
11317 2004-02-23 Roland McGrath <roland@redhat.com>
11318
11319 * auxv.c (info_auxv_command): Fix typos in error messages.
11320
11321 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11322
11323 * x86-64-tdep.h: Tweak comment.
11324 (enum amd64_regnum): New.
11325 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11326 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11327 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11328 (X86_64_XMM1_REGNUM): Removed.
11329 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11330 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11331 prototypes for renamed functions.
11332 * x86-64-tdep.c: Fix typo.
11333 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11334 register numbers.
11335 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11336 Use constants from `enum amd64_regnum' for register numbers.
11337 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11338 (amd64_analyze_prologue, amd64_frame_cache,
11339 amd64_sigtramp_frame_cache): Use constants from `enum
11340 amd64_regnum' for register numbers.
11341 (amd64_supply_fpregset): Adjust for renamed functions.
11342 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11343 `enum amd64_regnum' for register numbers.
11344 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11345 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11346 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11347 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11348 (amd64_linux_fill_gregset): Adjust for renamed macros.
11349 (fetch_core_registers): Adjust for renamed functions.
11350 (amd64_linux_init_abi): Adjust for renamed functions.
11351 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11352 renamed functions.
11353 * amd64-nat.c: Adjust for renamed macros.
11354 * amd64bsd-nat.c (fetch_inferior_registers)
11355 (store_inferior_registers): Use constants from `enum amd64_regnum'
11356 for register numbers. Adjust for renamed variables.
11357 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11358 renamed variables.
11359 (_initialize_amd64fbsd_nat): Use constants from `enum
11360 amd64_regnum' for register numbers.
11361 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11362 `enum amd64_regnum' for register numbers.
11363 (amd64fbsd_init_abi): Adjust for renamed functions.
11364 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11365 `enum amd64_regnum' for register numbers.
11366 (amd64nbsd_init_abi): Adjust for renamed functions.
11367 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11368 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11369 `enum amd64_regnum' for register numbers.
11370 (amd64obsd_init_abi): Adjust for renamed functions.
11371 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11372
11373 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11374
11375 * breakpoint.c (print_one_breakpoint): Do not output spaces
11376 after printing <PENDING> for a pending breakpoint.
11377
11378 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11379
11380 * printcmd.c (print_scalar_formatted): Initialize val_long
11381 to remove compiler warning message.
11382
11383 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11384
11385 * defs.h (nquery, yquery): New prototypes.
11386 * breakpoint.c (break_command_1): Use new nquery interface.
11387 * utils.c (defaulted_query, nquery, yquery): New functions.
11388
11389 2004-02-23 Andrew Cagney <cagney@redhat.com>
11390
11391 * hppa-tdep.c (hppa_frame_align): New function.
11392 (hppa32_push_dummy_call): New function.
11393 (hppa64_push_dummy_call): New function.
11394 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11395 disabled.
11396
11397 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11398 FIX_CALL_DUMMY when push_dummy_call is available.
11399 (call_function_by_hand, push_dummy_code): Ditto.
11400
11401 2004-02-22 Andrew Cagney <cagney@redhat.com>
11402
11403 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11404 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11405 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11406 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11407 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11408 call_dummy_location to ON_STACK.
11409
11410 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11411
11412 * x86-64-linux-tdep.c: Tweak comment.
11413 (amd64_linux_supply_gregset): Renamed from
11414 x86_64_linux_supply_gresget.
11415 (amd64_linux_fill_gregset): Renamed from
11416 x86_64_linux_fill_gregset.
11417 (fetch_core_registers): Adjust for renamed functions.
11418 (amd64_core_fns): Renamed from x86_64_core_fns.
11419 (amd64_linux_sigtramp_start): Renamed from
11420 x86_64_linux_sigtramp_start.
11421 (amd64_linux_pc_in_sigtramp): Renamed from
11422 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11423 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11424 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11425 (amd64_linux_sigcontext_addr): Renamed from
11426 x86_64_linux_sigcontext_addr.
11427 (amd64_linux_sc_reg_offset): Renamed from
11428 x86_64_linux_sc_reg_offset.
11429 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11430 Adjust for renamed functions and variables.
11431 (_initialize_amd64_linux_tdep): Renamed from
11432 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11433 variables.
11434 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11435 Adjust for renamed functions.
11436
11437 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11438 from x86_64_linux_gregset64_reg_offset.
11439 (amd64_linux_gregset32_reg_offset): Rename from
11440 x86_64_linux_gregset64_reg_offset.
11441 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11442 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11443 (amd64_linux_dr_set_control): Renamed from
11444 x86_64_linux_dr_set_control. Adjust for renamed functions.
11445 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11446 Adjust for renamed functions.
11447 (amd64_linux_dr_reset_addr): Renamed from
11448 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11449 (amd64_linux_dr_get_status): Renamed from
11450 x86_64_linux_dr_get_status. Adjust for renamed functions.
11451 (_initialize_amd64_linux_nat): Renamed from
11452 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11453 functions.
11454 * config/i386/nm-x86-64linux.h: Update copyright year.
11455 Adjust for renamed functions.
11456
11457 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11458 amd64fbsd_sigtramp_start.
11459 (amd64fbsd_sigtramp_end_addr): Renamed from
11460 amd64fbsd_sigtramp_end.
11461 (amd64fbsd_init_abi): Adjust for renamed variables.
11462 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11463 variables.
11464 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11465 amd64fbsd_sigtramp_start.
11466 (amd64fbsd_sigtramp_end_addr): Renamed from
11467 amd64fbsd_sigtramp_end.
11468
11469 2004-02-22 Andrew Cagney <cagney@redhat.com>
11470
11471 * hppa-tdep.c (hppa32_return_value): New function.
11472 (hppa64_return_value): New function.
11473 (hppa_gdbarch_init): Set return_value; keep disabled.
11474
11475 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11476 struct-return and inferior function call methods.
11477
11478 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11479 "frame-base.h".
11480 (struct hppa_frame_cache): Define.
11481 (hppa_frame_cache, hppa_frame_this_id): New functions.
11482 (hppa_frame_prev_register): New function.
11483 (hppa_frame_unwind, hppa_frame_base): New variables.
11484 (hppa_frame_unwind_sniffer): New function.
11485 (hppa_frame_base_address, hppa_unwind_pc): New function.
11486 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11487 sniffer, and frame base sniffer; keep disabled.
11488 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11489 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11490
11491 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11492 to predicates for "seriously old code".
11493
11494 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11495 runtime if(0).
11496
11497 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11498 unsigned.
11499 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11500
11501 * config/pa/tm-hppa.h: Update copyright.
11502 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11503 (deprecated_init_frame_pc_default): Delete declaration.
11504 (hppa_frame_init_saved_regs): Delete declaration.
11505 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11506 * hppa-tdep.c: Include "arch-utils.h".
11507 (hppa_gdbarch_init): Set deprecated init_frame_pc
11508 and deprecated frame_init_saved_regs.
11509 (hppa_frame_init_saved_regs): Make static.
11510
11511 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11512
11513 Remove old 386BSD support.
11514 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11515 * configure.host: Remove i[34567]86-*-bsd*.
11516 * configure.tgt: Remove i[34567]86-*-bsd*.
11517 * i386b-nat.c: Removed.
11518 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11519 (i386b-nat.o): Remove dependencies.
11520
11521 * config/i386/i386bsd.mh: Removed.
11522 * config/i386/i386bsd.mt: Removed.
11523 * config/i386/nm-i386bsd.h: Removed.
11524 * config/i386/tm-i386bsd.h: Removed.
11525 * config/i386/xm-i386bsd.h: Removed.
11526
11527 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11528
11529 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11530 (amd64fbsd_init_abi): Set link map offsets.
11531 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11532 (amd64nbsd_init_abi): Set link map offsets.
11533 * amd64obsd-tdep.c: Include "solib-svr4.h".
11534 (amd64obsd_init_abi): Set link map offsets.
11535 * i386fbsd-tdep.c: Include "solib-svr4.h".
11536 (i386fbsd_init_abi): Set link map offsets.
11537 * i386nbsd-tdep.c: Include "solib-svr4.h".
11538 (i386nbsdelf_init_abi): Set link map offsets.
11539 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11540 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11541 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11542 solib-legacy.o and core-aout.o. Reformat.
11543 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11544 solib-svr4.o, solib-legacy.o. Reformat.
11545 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11546 * config/i386/nbsdelf.mh: Reformat.
11547 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11548 solib-svr4.o, solib-legacy.o and corelow.o.
11549 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11550 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11551 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11552 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11553 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11554 (TM_FILE): Set to tm-fbsd.h.
11555 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11556 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11557 solib-svr4.o.
11558 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11559 solib-svr4.o.
11560 (TM_FILE): Set to nm-nbsd.h.
11561 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11562 Simplify shared library support. Don't include "elf/common.h".
11563 (SVR4_SHARED_LIBS): Don't define.
11564 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11565 "solib.h".
11566 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11567 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11568 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11569 Don't include "i386/tm-i386.h". Include "solib.h".
11570 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11571 Don't include "i386/tm-i386.h".
11572 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11573 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11574 Include "i386/xm-i386.h".
11575 (HOST_LONG_DOUBLE_FORMAT): Remove.
11576
11577 Fix OpenBSD/i386 sigtramp recognition.
11578 * i386-tdep.h: Update copyright year.
11579 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11580 (i386bsd_sigtramp_end): New prototypes.
11581 (i386fbsd_sigtramp_start_addr): Renamed from
11582 i386fbsd_sigtramp_start.
11583 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11584 (i386obsd_sigtramp_start_addr): Renamed from
11585 i386obsd_sigtramp_start.
11586 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11587 * i386bsd-tdep.c: Update copyright year.
11588 (i386bsd_pc_in_sigtramp): Make public.
11589 * i386fbsd-nat.c: Update copyright year.
11590 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11591 * i386fbsd-tdep.c: Update copyright year.
11592 (i386fbsd_sigtramp_start_addr): Renamed from
11593 i386fbsd_sigtramp_start.
11594 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11595 (i386fbsdaout_init_abi): Adjust for renamed variables.
11596 * i386obsd-nat.c: Update copyright year.
11597 (_initialize_i386obsd_nat): Adjust for renamed variables.
11598 * i386obsd-tdep.c: Include "target.h".
11599 (i386obsd_page_size): New variable.
11600 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11601 (i386obsd_sigtramp_end): New functions.
11602 (i386obsd_sigtramp_start_addr): Renamed from
11603 i386obsd_sigtramp_start.
11604 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11605 (i386obsd_init_abi): Adjust for renamed variables. Set
11606 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11607 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11608
11609 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11610 trampoline change in OpenBSD kernel.
11611
11612 * amd64-nat.c: Update copyright year.
11613 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11614 architecture from REGCACHE.
11615
11616 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11617 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11618
11619 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11620
11621 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11622 i[34567]86-*-openbsd3.[0-3].
11623 * config/i386/obsdaout.mh: New file.
11624
11625 * config/i386/obsd.mh (MH_FLAGS): Remove.
11626
11627 Fix PR build/1549.
11628 * i386obsd-tdep.c: Update copyright years. Include
11629 "solib-svr4.h".
11630 (i386obsd_init_abi): Don't set regset_from_core_section here.
11631 (i386obsd_aout_init_abi): New function. Set
11632 regset_from_core_section here.
11633 (i386obsd_elf_init_abi): New function.
11634 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11635 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11636 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11637 (TM_FILE): Set to tm-nbsd.h.
11638
11639 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11640 solib-sunos.o.
11641
11642 * solib-svr4.h: Update copyright year.
11643 (svr4_ilp32_fetch_link_map_offsets)
11644 (svr4_lp64_fetch_link_map_offsets): New prototype.
11645 * solib-svr4.c: Update copyright year.
11646 (svr4_ilp32_fetch_link_map_offsets)
11647 (svr4_lp64_fetch_link_map_offsets): New function.
11648
11649 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11650
11651 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11652 to the partial symbol table.
11653
11654 2004-02-20 J. brobecker <brobecker@gnat.com>
11655
11656 * PROBLEMS: Add description of problem documented under gdb/1560.
11657
11658 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11659
11660 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11661 comments.
11662 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11663 functions.
11664 (amd64obsd_init_abi): Reorder initializations. Use
11665 amd64obsd_r_reg_offset to initialize the general-purpose register
11666 set details. Set regset_from_core_section.
11667 (_initialize_amd64obsd_tdep): Rename from
11668 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11669 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11670 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11671
11672 * NEWS (New native configurations): Mention OpenBSD/alpha.
11673 * configure.tgt: Add alpha*-*-openbsd*.
11674 * configure.host: Add alpha*-*-openbsd*.
11675 * alphanbsd-tdep.c: Update copyright year.
11676 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11677
11678 2004-02-20 Andrew Cagney <cagney@redhat.com>
11679
11680 Fix PR tdep/1372.
11681 * configure.tgt: Delete target "none-*-*".
11682 * configure.host: Delete host "none-*-*".
11683 * config/none/none.mh: Delete file.
11684 * config/none/none.mt: Delete file.
11685 * config/none/xm-none.h: Delete file.
11686 * config/none/tm-none.h: Delete file.
11687 * config/none/nm-none.h: Delete file.
11688
11689 2004-02-19 Fred Fish <fnf@redhat.com>
11690
11691 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11692 cache->uses_fp prior to setting it.
11693
11694 2004-02-19 Fred Fish <fnf@redhat.com>
11695
11696 Fix for PR breakpoint/1558.
11697 * sh-tdep.c (IS_JSR): New macro.
11698 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11699
11700 2004-02-19 Jim Blandy <jimb@redhat.com>
11701
11702 * findvar.c (value_from_register): Doc fix.
11703
11704 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11705
11706 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11707 type being greater than sizeof of host's LONGEST. Always use
11708 unpack_long() unless format 'f' chosen.
11709
11710 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11711
11712 Committed by Elena Zannoni <ezannoni@redhat.com>
11713
11714 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11715 contains a symbol wich is the best, non-exact match for the given
11716 pc. Update comments.
11717
11718 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11719
11720 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11721 macro, which was part of the now removed Mach 3 port.
11722 * utils.c (request_quit): Ditto.
11723
11724 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11725
11726 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11727 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11728
11729 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11730
11731 Committed by Mark Kettenis <kettenis@gnu.org>.
11732
11733 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11734 Define.
11735
11736 2004-02-18 Andrew Cagney <cagney@redhat.com>
11737
11738 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11739 CONFIG_INSTALL and CONFIG_UNINSTALL.
11740 * configure: Re-generate.
11741 * interps.h (INTERP_TUI): Define.
11742 * Makefile.in: Update dependencies.
11743 (TUI): New macro.
11744 (tui-main.o): Specify dependencies.
11745 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11746 * tui/tui-main.c: New file.
11747
11748 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11749
11750 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11751 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11752 dependencies.
11753 * configure.host: Add x86_64-*-openbsd*.
11754 * configure.tgt: Add x86_64-*-openbsd*.
11755 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11756
11757 * tui/tui.c: Don't include <malloc.h>.
11758
11759 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11760 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11761 amd64nbsd-tdep.c.
11762
11763 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11764 static. Remove extraneous whitespace.
11765 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11766 static.
11767
11768 2004-02-17 Jim Blandy <jimb@redhat.com>
11769
11770 * findvar.c (value_from_register): Doc fix.
11771
11772 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11773
11774 Committed by Jim Blandy <jimb@redhat.com>.
11775
11776 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11777 CORE_ADDR as type for selectors. Correct types for GNU run time
11778 message lookup function to use double indirection.
11779 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11780 * objc-lang.h (lookup_child_selector): Adapt prototype.
11781
11782 * s390-nat.c (SUBOFF): New macro.
11783 (supply_gregset, fill_gregset): Use it to handle debugging
11784 of 32-bit exectuables running under a 64-bit kernel.
11785 * s390-tdep.c: Include "solib-svr4.h".
11786 (s390_svr4_fetch_link_map_offset): New function.
11787 (s390x_svr_fetch_link_map_offset): Likewise.
11788 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11789 * Makefile.in (s390-tdep.o): Update dependencies.
11790
11791 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11792 "frame-unwind.h".
11793 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11794 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11795 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11796 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11797 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11798 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11799 S390_SIGNAL_FRAMESIZE,
11800 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11801 (struct frame_extra_info): Remove.
11802 (s390_memset_extra_info): Remove.
11803 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11804 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11805 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11806 (is_rse): Renamed to ...
11807 (is_rsy): ... this. Support long displacements.
11808 (is_rxe): Renamed to ...
11809 (is_rxy): ... this. Support long displacements.
11810 (compute_x_addr): Support long displacements.
11811 (struct s390_prologue_data): New data type.
11812 (s390_on_stack): Change API to use struct s390_prologue_data.
11813 (s390_store): Reimplement.
11814 (s390_load): New function.
11815 (s390_get_signal_frame_info): Remove.
11816 (s390_get_frame_info): Remove, replace by ...
11817 (s390_analyze_prolog): ... this new function.
11818 (s390_check_function_end): Remove.
11819 (s390_function_start): Remove.
11820 (s390_frameless_function_invokation): Remove.
11821 (s390_is_sigreturn): Remove.
11822 (s390_init_frame_pc_first): Remove.
11823 (s390_init_frame_extra_info): Remove.
11824 (s390_frame_init_saved_regs): Remove.
11825 (s390_frame_saved_pc_nofix): Remove.
11826 (s390_frame_saved_pc): Remove.
11827 (s390_frame_chain): Remove.
11828 (s390_fp_regnum, s390_read_fp): Remove.
11829 (s390_pop_frame_regular, s390_pop_frame): Remove.
11830 (s390_saved_pc_after_call): Remove.
11831 (s390_skip_prologue): Reimplement.
11832 (s390_in_function_epilogue_p): Support long displacements.
11833 (struct s390_unwind_cache): New data structure.
11834 (s390_frame_unwind_cache): New function.
11835 (s390_prologue_frame_unwind_cache): Likewise.
11836 (s390_backchain_frame_unwind_cache): Likewise.
11837 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11838 (s390_frame_unwind): Define.
11839 (s390_frame_sniffer): New function.
11840 (struct s390_pltstub_unwind_cache): New data structure.
11841 (s390_pltstub_frame_unwind_cache): New function.
11842 (s390_pltstub_frame_this_id): Likewise.
11843 (s390_pltstub_frame_prev_register): Likewise.
11844 (s390_pltstub_frame_unwind): Define.
11845 (s390_pltstub_frame_sniffer): New function.
11846 (struct s390_sigtramp_unwind_cache): New data structure.
11847 (s390_sigtramp_frame_unwind_cache): New function.
11848 (s390_sigtramp_frame_this_id): Likewise.
11849 (s390_sigtramp_frame_prev_register): Likewise.
11850 (s390_sigtramp_frame_unwind): Define.
11851 (s390_sigtramp_frame_sniffer): New function.
11852 (s390_frame_base_address, s390_local_base_address): New functions.
11853 (s390_frame_base): Define.
11854 (s390_unwind_pc, s390_unwind_sp): New function.
11855 (s390_push_dummy_call): Use new frame base location.
11856 (s390_unwind_dummy_id): Likewise.
11857 (s390_gdbarch_init): Remove calls to:
11858 set_gdbarch_frameless_function_invocation,
11859 set_gdbarch_deprecated_init_frame_pc,
11860 set_gdbarch_deprecated_frame_chain,
11861 set_gdbarch_deprecated_frame_init_saved_regs,
11862 set_gdbarch_deprecated_pop_frame,
11863 set_gdbarch_deprecated_init_extra_frame_info,
11864 set_gdbarch_deprecated_init_frame_pc_first,
11865 set_gdbarch_deprecated_target_read_fp,
11866 set_gdbarch_deprecated_frame_saved_pc,
11867 set_gdbarch_deprecated_saved_pc_after_call,
11868 set_gdbarch_deprecated_fp_regnum.
11869 Add calls to:
11870 set_gdbarch_in_solib_call_trampoline,
11871 frame_unwind_append_sniffer,
11872 frame_base_set_default,
11873 set_gdbarch_unwind_pc,
11874 set_gdbarch_unwind_sp.
11875 * Makefile.in (s390-tdep.o): Update dependencies.
11876
11877 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11878 (S390_STACK_FRAME_OVERHEAD): Remove.
11879 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11880 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11881 (s390_promote_integer_argument): Remove.
11882 (s390_cannot_extract_struct_value_address): Remove.
11883 (s390_use_struct_convention, s390_store_struct_return): Remove.
11884 (s390_extract_return_value, s390_store_return_value): Remove.
11885 (s390_return_value_convention, s390_return_value): New functions.
11886 (is_float_singleton): Handle typedefs.
11887 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11888 Remove, replace by ...
11889 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11890 s390_function_arg_integer): ... these new functions.
11891 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11892 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11893 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11894 Fill in tdep->abi.
11895 Remove calls to:
11896 set_gdbarch_deprecated_store_struct_return,
11897 set_gdbarch_deprecated_extract_return_value,
11898 set_gdbarch_deprecated_store_return_value,
11899 set_gdbarch_use_struct_convention,
11900 set_gdbarch_extract_struct_value_address,
11901 set_gdbarch_deprecated_pc_in_call_dummy,
11902 set_gdbarch_deprecated_push_arguments,
11903 set_gdbarch_deprecated_save_dummy_frame_tos,
11904 set_gdbarch_deprecated_push_return_address,
11905 set_gdbarch_deprecated_sizeof_call_dummy_words,
11906 set_gdbarch_deprecated_call_dummy_words,
11907 set_gdbarch_deprecated_dummy_write_sp.
11908 Add calls to:
11909 set_gdbarch_push_dummy_call,
11910 set_gdbarch_unwind_dummy_id,
11911 set_gdbarch_return_value.
11912
11913 * config/s390/nm-linux.h: Update comments.
11914 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11915 (STOPPED_BY_WATCHPOINT): Redefine.
11916 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11917 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11918 (s390_stopped_by_watchpoint): Likewise.
11919 (watch_area_cnt): Remove.
11920 * s390-nat.c: Update comments.
11921 (watch_area): Remove typedef.
11922 Global replace watch_area by struct watch_area.
11923 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11924 (s390_stopped_by_watchpoint): Remove pid argument,
11925 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11926 (s390_fix_watch_points): Remove pid argument,
11927 use s390_inferior_tid. Recompute area spanned by watchpoints.
11928 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11929 argument. Reimplement.
11930
11931 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11932 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11933 (FETCH_INFERIOR_REGISTERS): Define.
11934 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11935 core-regset.o.
11936 * config/s390/s390x.mt: Remove.
11937 * config/s390/tm-s390.h: Remove.
11938 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11939 (TARGET_ELF64): Remove.
11940 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11941 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11942 s390*-*-* case; always set gdb_target to s390.
11943 * regformats/reg-s390.dat: Remove control registers.
11944 * regformats/reg-s390x.dat: Likewise.
11945 * s390-tdep.h: New file.
11946 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11947 Include "inferior.h" and "s390-tdep.h".
11948 Remove private definition of offsetof.
11949 (s390_register_u_addr): Remove.
11950 (regmap_gregset, regmap_fpregset): Define.
11951 (supply_gregset, fill_gregset): Reimplement.
11952 (supply_fpregset, fill_fpregset): Likewise.
11953 (s390_inferior_tid): New function.
11954 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11955 (fetch_inferior_registers, store_inferior_registers): Likewise.
11956 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11957 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11958 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11959 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11960 (struct gdbarch_tdep): Define.
11961 (struct s390_register_info): Define.
11962 (s390_register_info): New variable.
11963 (s390_register_name): Reimplement.
11964 (s390_register_type): New function.
11965 (s390_register_raw_size, s390x_register_raw_size): Remove.
11966 (s390_cannot_fetch_register): Remove.
11967 (s390_register_byte): Remove.
11968 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11969 (s390_dwarf_regmap): New variable.
11970 (s390_dwarf_reg_to_regnum): New function.
11971 (s390_stab_reg_to_regnum): Remove.
11972 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11973 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11974 (s390_convert_register_p): Likewise.
11975 (s390_register_to_value, s390_value_to_register): Likewise.
11976 (s390_register_reggroup_p): Likewise.
11977 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11978 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11979 (s390_supply_regset, s390_regset_from_core_section): New functions.
11980 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11981 (S390_FPR_SIZE): Likewise.
11982 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11983 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11984 (S390_NUM_GPRS): Move here from tm-s390.h.
11985 (S390_NUM_FPRS): Likewise.
11986 (s390_in_function_epilogue_p): New function.
11987 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11988 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11989 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11990 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11991 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11992 Remove calls to:
11993 set_gdbarch_deprecated_max_register_raw_size,
11994 set_gdbarch_deprecated_max_register_virtual_size,
11995 set_gdbarch_deprecated_register_byte,
11996 set_gdbarch_cannot_fetch_register,
11997 set_gdbarch_cannot_store_register,
11998 set_gdbarch_deprecated_register_size,
11999 set_gdbarch_deprecated_register_raw_size,
12000 set_gdbarch_deprecated_register_virtual_size,
12001 set_gdbarch_deprecated_register_virtual_type,
12002 set_gdbarch_deprecated_register_bytes.
12003 Add calls to:
12004 set_gdbarch_num_pseudo_regs,
12005 set_gdbarch_register_type,
12006 set_gdbarch_convert_register_p,
12007 set_gdbarch_register_to_value,
12008 set_gdbarch_value_to_register,
12009 set_gdbarch_register_reggroup_p,
12010 set_gdbarch_regset_from_core_section,
12011 set_gdbarch_pseudo_register_read,
12012 set_gdbarch_pseudo_register_write,
12013 set_gdbarch_in_function_epilogue_p.
12014 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12015 (s390_tdep_h): New variable.
12016
12017 2004-02-17 Jim Blandy <jimb@redhat.com>
12018
12019 * findvar.c (value_from_register): If the type has no length, just
12020 return an acceptable value --- don't report an internal error.
12021
12022 * stabsread.c (read_type): If we find any type numbers that are
12023 forward references, complain if the references aren't resolved by
12024 the time we're finished reading.
12025 (cleanup_undefined_types): Make error message more appropriate for
12026 a complaint.
12027
12028 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12029
12030 * Makefile.in (defs_h): Remove dependency on progress_h.
12031 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12032 progress.h.
12033 * main.c (captured_main): Delete use of START_PROGRESS and
12034 END_PROGRESS.
12035
12036 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12037
12038 * objfiles.c (terminate_minimal_symbol_table): Add back
12039 initialization of MSYMBOL_TYPE.
12040
12041 2004-02-17 David Mosberger <davidm@hpl.hp.com>
12042
12043 Committed by Andrew Cagney.
12044 * Makefile.in (ia64_tdep_h): New macro.
12045 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12046 (ia64-tdep.o): Likewise.
12047 * ia64-tdep.h: New file.
12048 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
12049 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12050 (ia64_aix_sigcontext_register_address): Likewise.
12051 (ia64_linux_getunwind_table): Delete declaration.
12052 * ia64-linux-tdep.c: Likewise.
12053
12054 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
12055
12056 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12057 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12058 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12059
12060 2004-02-17 Andrew Cagney <cagney@redhat.com>
12061
12062 * symtab.c (skip_prologue_using_sal): New function.
12063 * symtab.h (skip_prologue_using_sal): Declare.
12064 * frv-tdep.c: Include "symtab.h".
12065 (skip_prologue_using_sal): Delete function.
12066 * mips-tdep.c (skip_prologue_using_sal): Delete function.
12067 * rs6000-tdep.c (refine_prologue_limit): Mention
12068 skip_prologue_using_sal.
12069 * ia64-tdep.c (refine_prologue_limit): Ditto.
12070 * Makefile.in: Update dependencies.
12071
12072 2004-02-16 Andrew Cagney <cagney@redhat.com>
12073
12074 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12075 START_INFERIOR_TRAPS_EXPECTED.
12076 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12077 START_INFERIOR_TRAPS_EXPECTED.
12078 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12079 Delete macro.
12080 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12081 macro, moved to "nm-osf.h". Update copyright.
12082 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12083 update copyright.
12084
12085 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12086 and function replacing FRAMELESS_FUNCTION_INVOCATION.
12087 * blockframe.c (legacy_frameless_look_for_prologue): Rename
12088 frameless_look_for_prologue.
12089 * frame.h (legacy_frameless_look_for_prologue): Rename
12090 frameless_look_for_prologue.
12091 * gdbarch.h, gdbarch.c: Re-generate.
12092 * sh64-tdep.c (sh64_gdbarch_init): Update.
12093 * sh-tdep.c (sh_gdbarch_init): Update.
12094 * s390-tdep.c (s390_gdbarch_init): Update.
12095 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12096 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12097 * m68k-tdep.c (m68k_gdbarch_init): Update.
12098 (delta68_frame_args_address): Update.
12099 * m32r-tdep.c (m32r_gdbarch_init): Update.
12100 * hppa-tdep.c (hppa_gdbarch_init): Update.
12101 * h8300-tdep.c (h8300_gdbarch_init): Update.
12102 * frv-tdep.c (frv_gdbarch_init): Update.
12103 (frv_frameless_function_invocation): Update.
12104 * cris-tdep.c (cris_gdbarch_init): Update.
12105 (cris_frameless_function_invocation): Update.
12106 * avr-tdep.c (avr_gdbarch_init): Update.
12107 * arm-tdep.c (arm_gdbarch_init): Update.
12108 * stack.c (frame_info): Update, call predicate.
12109 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12110 * frame.c (legacy_get_prev_frame): Update, call predicate..
12111 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12112 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12113 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12114 invocation.
12115 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12116 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12117 * vax-tdep.c (vax_gdbarch_init): Ditto.
12118
12119 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12120 function.
12121
12122 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12123
12124 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12125 initializations.
12126
12127 2004-02-16 Andrew Cagney <cagney@redhat.com>
12128
12129 * tui/tui-windata.c: Include "gdb_string.h".
12130 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12131 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12132 * Makefile.in: Update dependencies.
12133
12134 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12135
12136 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12137 * infrun.c: Include "gdb_assert.h".
12138 (singlestep_ptid, saved_singlestep_ptid)
12139 (stepping_past_singlestep_breakpoint): New variables.
12140 (resume): Set singlestep_ptid. Check for singlestep thread
12141 hop.
12142 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12143 (handle_inferior_event): Handle singlestep thread hop.
12144
12145 2004-02-16 Andrew Cagney <cagney@redhat.com>
12146
12147 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12148 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12149 (dwarf2_frame_init_reg): Ditto.
12150
12151 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12152 suggested by Joshua Neuheisel
12153
12154 * configure.in: Always check for curses, including pdcurses.
12155 Warn, instead of error, when no curses are found. Enable TUI when
12156 curses is available.
12157 * configure: Re-generate.
12158
12159 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12160
12161 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12162 sh_sh4_register_convert_to_virtual.
12163 (sh_register_convert_to_raw): Rename from
12164 sh_sh4_register_convert_to_raw.
12165 (sh_pseudo_register_read): Accomodate above name change.
12166 (sh_pseudo_register_write): Ditto.
12167
12168 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12169
12170 * sh-tdep.c (sh_generic_register_name): Remove.
12171 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12172
12173 2004-02-15 Andrew Cagney <cagney@redhat.com>
12174
12175 * configure.in (build_warnings): Add -Wunused-function.
12176 * configure: Re-generate.
12177
12178 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12179 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12180
12181 * procfs.c (procfs_init_inferior): Assume that
12182 START_INFERIOR_TRAPS_EXPECTED is defined.
12183 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12184 * config/ns32k/tm-nbsd.h: Delete file,
12185 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12186
12187 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12188 * config/vax/tm-vax.h: Delete file.
12189
12190 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12191 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12192 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12193 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12194 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12195 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12196 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12197
12198 2004-02-15 Mark Kettenis <kettenis@gnu.org>
12199
12200 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12201 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12202 (struct dwarf2_frame_ops): New.
12203 (dwarf2_frame_default_init_reg): New function, based on
12204 dwarf2_frame_init_reg.
12205 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12206 (dwarf2_frame_init_reg): Call architecture-specific function.
12207 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12208 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12209 instead of dwarf2_frame_data.
12210 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12211 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12212
12213 2004-02-15 Andrew Cagney <cagney@redhat.com>
12214
12215 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12216 register_gdbarch_swap.
12217 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12218 * f-lang.c (_initialize_f_language): Update, use
12219 DEPRECATED_REGISTER_GDBARCH_SWAP.
12220 * remote.c (_initialize_remote): Ditto.
12221 * regcache.c (_initialize_regcache): Ditto.
12222 * parse.c (_initialize_parse): Ditto.
12223 * infrun.c (_initialize_infrun): Ditto.
12224 * mi/mi-main.c (_initialize_mi_main): Ditto.
12225 * gdbtypes.c (_initialize_gdbtypes): Ditto.
12226
12227 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12228 poking .cacheable directly.
12229 * symfile.c (symfile_bfd_open): Ditto.
12230
12231 * Makefile.in: Update all dependencies.
12232
12233 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12234 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12235 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12236 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12237 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12238
12239 2004-02-14 Andrew Cagney <cagney@redhat.com>
12240
12241 * arch-utils.c (legacy_convert_register_p): Check
12242 DEPRECATED_REGISTER_CONVERTIBLE_P.
12243 * findvar.c (value_of_register): Ditto.
12244
12245 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12246 * gdbarch.h, gdbarch.c: Re-generate.
12247 * arch-utils.c (deprecated_register_convertible_not): Delete.
12248 * arch-utils.h (deprecated_register_convertible_not): Delete.
12249 * mi/mi-main.c (get_register): Update. Update copyright.
12250 * infcmd.c (default_print_registers_info): Update.
12251
12252 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12253 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12254 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12255 * gdbarch.h, gdbarch.c: Re-generate.
12256 * frame.c (deprecated_get_next_frame_hack): Delete function.
12257 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12258 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12259 Update.
12260 * infcall.c (call_function_by_hand): Update.
12261
12262 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12263
12264 * symfile.c (init_entry_point_info, entry_point_address): Move
12265 from here...
12266 * objfiles.c (init_entry_point_info, entry_point_address):..to
12267 here.
12268 * symfile.h (init_entry_point_info, entry_point_address): Remove
12269 prototypes.
12270 * objfiles.h (init_entry_point_info, entry_point_address):Add
12271 prototypes.
12272 * cris-tdep.c: Remove include of symfile.h. Add include of
12273 objfiles.h.
12274 * infcall.c: Ditto.
12275 * mcore-tdep.c: Ditto.
12276 * mn10300-tdep.c: Ditto.
12277 * sh64-tdep.c: Ditto.
12278 * v850-tdep.c: Ditto.
12279 * arm-tdep.c: Remove include of symfile.h.
12280 * blockframe.c: Ditto.
12281 * coffread.c: Ditto.
12282 * dbxread.c: Ditto.
12283 * dwarf2read.c: Ditto.
12284 * dwarfread.c: Ditto.
12285 * frv-tdep.c: Ditto.
12286 * ia64-tdep.c: Ditto.
12287 * mdebugread.c: Ditto.
12288 * mipsread.c: Ditto.
12289 * rs6000-tdep.c: Ditto.
12290 * s390-tdep.c: Ditto.
12291 * sh-tdep.c: Ditto.
12292 * xstormy16-tdep.c: Ditto.
12293 * gdbarch.sh: Remove include of symfile.h.
12294 * gdbarch.c: Regenerate.
12295 * solib-irix.c (enable_break): Use entry_point_address().
12296 Add comment about include file.
12297 * xcoffread.c: Add comment about include file.
12298 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12299 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12300 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12301 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12302 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12303
12304 2004-02-13 Andrew Cagney <cagney@redhat.com>
12305
12306 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12307 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12308 copyright.
12309 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12310
12311 2004-02-12 Fred Fish <fnf@redhat.com>
12312
12313 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12314 set_gdbarch_store_return_value.
12315
12316 2004-02-12 Andrew Cagney <cagney@redhat.com>
12317
12318 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12319 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12320 (interrupt_query): Ditto.
12321 (ofunc): Delete unused variable.
12322 * cris-tdep.c (cris_abi): Delete unused function.
12323 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12324 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12325 (cris_get_asr_quick_shift_steps): Ditto.
12326 (cris_skip_prologue_frameless_p): Ditto.
12327 * arm-tdep.c (arm_push_return_address): Delete unused function.
12328 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12329 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12330 * s390-tdep.c (s390_function_start): Delete unused function.
12331
12332 2004-02-12 Andrew Cagney <cagney@redhat.com>
12333
12334 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12335 gdbarch.h, gdbarch.c: Re-generate.
12336 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12337 to generic_prologue_frameless_p.
12338 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12339 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12340
12341 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12342
12343 * mips-linux-tdep.c: Include "frame.h".
12344 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12345 (mips_linux_skip_resolver): New functions.
12346 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12347 and set_gdbarch_in_solib_call_trampoline.
12348 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12349 to after set_gdbarch_in_solib_return_trampoline. Only set the
12350 solib hooks to mips16 functions if the OS ABI is unknown.
12351 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12352 including "config/tm-linux.h".
12353 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12354 * Makefile.in (mips-linux-tdep.o): Update.
12355
12356 2004-02-11 David Carlton <carlton@kealia.com>
12357
12358 * linespec.c (decode_compound): Only look for a class symbol when
12359 considering all but the rightmost component.
12360
12361 2004-02-11 Andrew Cagney <cagney@redhat.com>
12362
12363 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12364 abi code are are separatly grouped.
12365
12366 2004-02-11 Andrew Cagney <cagney@redhat.com>
12367
12368 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12369 * gdbarch.h, gdbarch.c: Re-generate.
12370 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12371 * v850-tdep.c (v850_gdbarch_init): Update.
12372 * sh64-tdep.c (sh64_gdbarch_init): Update.
12373 * sh-tdep.c (sh_gdbarch_init): Update.
12374 * s390-tdep.c (s390_gdbarch_init): Update.
12375 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12376 * mips-tdep.c (mips_gdbarch_init): Update.
12377 * mcore-tdep.c (mcore_gdbarch_init): Update.
12378 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12379 * m32r-tdep.c (m32r_gdbarch_init): Update.
12380 * ia64-tdep.c (ia64_gdbarch_init): Update.
12381 * hppa-tdep.c (hppa_gdbarch_init): Update.
12382 * h8300-tdep.c (h8300_gdbarch_init): Update.
12383 * frv-tdep.c (frv_gdbarch_init): Update.
12384 * d10v-tdep.c (d10v_gdbarch_init): Update.
12385 * cris-tdep.c (cris_gdbarch_init): Update.
12386 * avr-tdep.c (avr_gdbarch_init): Update.
12387 * arm-tdep.c (arm_gdbarch_init): Update.
12388 * alpha-tdep.c (alpha_gdbarch_init): Update.
12389
12390 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12391
12392 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12393 comma.
12394 (sh_sh4al_dsp_register_name): Ditto.
12395
12396 2004-02-10 Andrew Cagney <cagney@redhat.com>
12397
12398 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12399 (mips_init_frame_pc_first): Delete function.
12400 (mips_frame_saved_pc): Delete function.
12401 (mips_frame_chain): Delete function.
12402 (mips_init_extra_frame_info): Delete function.
12403 (mips_xfer_register): Delete unused variable "reg".
12404 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12405 (mips_n32n64_return_value): Delete unused variable "reg".
12406 (mips_n32n64_return_value): Delete unused variable "pos".
12407 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12408 (mips_o32_return_value): Delete unused variable "pos".
12409 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12410 (mips_print_fp_register): Delete unused variable "namelen"
12411 (mips_print_fp_register): Delete unused variable "flt2"
12412 (get_frame_pointer): Delete function.
12413 (cached_proc_desc): Delete static variable.
12414 (mips_pop_frame): Delete function.
12415 (mips_find_saved_regs): Delete function.
12416 (mips_get_saved_register): Delete function.
12417 (mips_saved_pc_after_call): Delete function.
12418 (SIGFRAME_BASE): Delete macro.
12419 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12420 (SIGFRAME_PC_OFF): Delete macro.
12421 (SIGFRAME_REGSAVE_OFF): Delete macro.
12422 (mips_dump_tdep): Do not print deleted macro definitions.
12423
12424 2004-02-10 Andrew Cagney <cagney@redhat.com>
12425
12426 * Makefile.in (SFILES): Remove explictly listed tui files.
12427 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12428
12429 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12430
12431 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12432 to use paddr functions to format ia64 addresses and long values.
12433 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12434 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12435 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12436 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12437 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12438
12439 2004-02-10 Andrew Cagney <cagney@redhat.com>
12440
12441 * defs.h: Do not include "tui.h".
12442 * gdb_curses.h: New file.
12443 * tui/tui-hooks.h: New file.
12444 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12445 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12446 (tui_initialize_io): Delete declaration.
12447 (tui_initialize_readline: Delete redundant declaration.
12448 (struct tui_point): Delete definition.
12449 * tui/tui-data.h (struct tui_point): Define.
12450 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12451 * utils.c: Include "tui/tui.h".
12452 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12453 * printcmd.c [TUI]: Include "tui/tui.h".
12454 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12455 * tui/tui-command.c: Include "gdb_curses.h".
12456 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12457 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12458 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12459 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12460 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12461 * Makefile.in: Update all dependencies.
12462 (tui_hooks_h, gdb_curses_h): Define.
12463 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12464
12465 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12466
12467 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12468 auxf2. Add comments about some other rarely used fields.
12469
12470 2004-02-10 Andrew Cagney <cagney@redhat.com>
12471
12472 * Makefile.in (init.c): Fix script removing duplicates. Problem
12473 reported by Peter Schauer.
12474
12475 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12476
12477 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12478 obstack_specify_allocation.
12479 * objfiles.c (allocate_objfile): Ditto.
12480 * solib-sunos.c (solib_add_common_symbols)
12481 (allocate_rt_common_objfile): Ditto.
12482 * symfile.c (reread_symbols): Ditto.
12483 * gdb_obstack.h: Add comment.
12484
12485 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12486
12487 * linespec.c (decode_line_1, locate_first_half)
12488 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12489 commented out code.
12490
12491 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12492
12493 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12494 obstack_free.
12495
12496 2004-02-09 Andrew Cagney <cagney@redhat.com>
12497
12498 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12499 fails, try find_pc_section. Fix PR c++/1267.
12500 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12501 instead of find_pc_mapped_section.
12502 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12503 not default to the section containing PC. Fix PR symtab/1519.
12504
12505 2004-02-09 Andrew Cagney <cagney@redhat.com>
12506
12507 * Makefile.in (mips-tdep.o): Update dependencies.
12508 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12509 "trad-frame.h".
12510 (mips_unwind_pc): Return the pseudo PC register.
12511 (mips_unwind_dummy_id): New function.
12512 (mips16_fetch_instruction): New function.
12513 (mips32_fetch_instruction): New function.
12514 (struct mips_frame_cache): Define.
12515 (mips_mdebug_frame_cache): New function.
12516 (mips_mdebug_frame_this_id): New function.
12517 (mips_mdebug_frame_prev_register): New function.
12518 (mips_mdebug_frame_unwind): Define.
12519 (mips_mdebug_frame_sniffer): New function.
12520 (mips_mdebug_frame_base_address): New function.
12521 (mips_mdebug_frame_base): Define.
12522 (mips_mdebug_frame_base_sniffer): New function.
12523 (mips_gdbarch_init): Append unwind and base sniffers. Set
12524 unwind_dummy_id.
12525
12526 2004-02-08 Andrew Cagney <cagney@redhat.com>
12527
12528 * frame.c: Print both the register number and name.
12529
12530 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12531 and a sed into a single sed. Make .c and .o patterns more robust.
12532 (OBS): Delete.
12533 (INIT_FILES): Replace OBS with COMMON_OBS.
12534 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12535
12536 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12537
12538 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12539 the PT_WCOOKIE request.
12540
12541 2004-02-08 Andrew Cagney <cagney@redhat.com>
12542
12543 * mips-tdep.c (mips_unwind_pc): New function.
12544 (mips_gdbarch_init): Set mips_unwind_pc.
12545
12546 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12547 (get_frame_id): Allow the UNKNOWN_FRAME.
12548 (frame_register_unwind, get_frame_type): Ditto.
12549
12550 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12551 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12552 unwind_dummy_id indicates a legacy frame.
12553
12554 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12555 * configure: Re-generate.
12556
12557 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12558 methods.
12559
12560 2004-02-08 Andrew Cagney <cagney@redhat.com>
12561
12562 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12563 makefile macro.
12564 * configure: Re-generate.
12565 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12566 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12567 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12568 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12569 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12570 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12571 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12572 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12573 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12574 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12575
12576 2004-02-07 Andrew Cagney <cagney@redhat.com>
12577
12578 * Makefile.in: Update all dependencies.
12579
12580 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12581 * configure: Re-generate.
12582 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12583 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12584 (COMMON_OBS): Add "main.o" and "annotate.o".
12585 (ANNOTATE_OBS): Delete.
12586 (OBS): Remove ANNOTATE_OBS.
12587 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12588 CONFIG_INITS.
12589 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12590 against CONFIG_OBS and "main.o".
12591 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12592 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12593
12594 * tui/tui-command.c: Include "gdb_string.h", delete register
12595 attribute, use ISO-C function signatures.
12596 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12597 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12598 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12599 * tui/tui.c: Ditto.
12600
12601 * tui/tui-command.c: Change variable and function names to lower
12602 case.
12603 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12604 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12605 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12606 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12607 * tui/tui-winsource.c, tui/tui.c: Ditto.
12608
12609 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12610
12611 * buildsym.c (free_pending_blocks, finish_block)
12612 (record_pending_block, make_blockvector, end_symtab): Replace
12613 symbol_obstack with objfile_obstack.
12614 * coffread.c (process_coff_symbol, coff_read_struct_type)
12615 (coff_read_enum_type): Ditto.
12616 * cp-namespace.c (initialize_namespace_symtab)
12617 (check_one_possible_namespace_symbol): Ditto.
12618 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12619 (dwarf2_symbol_mark_computed): Ditto.
12620 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12621 * elfread.c (elf_symtab_read): Ditto.
12622 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12623 (hpread_read_enum_type, hpread_read_function_type)
12624 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12625 Ditto.
12626 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12627 (java_link_class_type): Ditto.
12628 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12629 (new_symbol): Ditto.
12630 * minsyms.c (install_minimal_symbols): Ditto.
12631 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12632 (terminate_minimal_symbol_table): Replace symbol_obstack with
12633 objfile_obstack.
12634 (free_objfile): Remove freeing of symbol_obstack.
12635 * objfiles.h: Remove symbol_obstack field.
12636 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12637 objfile_obstack.
12638 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12639 symbol_obstack.
12640 (solib_add_common_symbols): Replace symbol_obstack with
12641 objfile_obstack.
12642 * somsolib.c (som_solib_add): Ditto.
12643 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12644 (common_block_start, common_block_end): Ditto.
12645 * symfile.c (reread_symbols): Remove freeing and init of
12646 symbol_obstack.
12647 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12648 * symfile.h: Update comment.
12649 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12650 stats printing.
12651 * symtab.c (symbol_set_names): Replace symbol_obstack with
12652 objfile_obstack.
12653 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12654 Update comments.
12655 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12656 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12657 objfile_obstack.
12658
12659 2004-02-07 Andrew Cagney <cagney@redhat.com>
12660
12661 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12662 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12663 fields and variables.
12664 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12665 (m_beInvisible): Delete macro.
12666 * tui/tui-data.h: Fix case case fields and variables.
12667 (m_genWinPtrIsNull): Delete macro.
12668 (tui_win_list): Rename winList.
12669 (TUI_SRC_WIN): Rename srcWin.
12670 (TUI_DISASM_WIN): Rename disassemWin.
12671 (TUI_DATA_WIN): Rename dataWin.
12672 (TUI_CMD_WIN): Rename cmdWin.
12673 (m_genWinPtrNotNull): Delete macro.
12674 (m_winPtrIsNull): Delete macro.
12675 (m_winPtrNotNull): Delete macro.
12676 (tui_win_is_source_type): Replace m_winIsSourceType
12677 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12678 (tui_win_has_locator): Replace m_hasLocator.
12679 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12680 m_setWinHighlightOff.
12681 * tui/tui-data.c: Update references.
12682 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12683 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12684 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12685 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12686 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12687 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12688 * tui/tui-winsource.c, tui/tui.c: Ditto.
12689
12690 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12691
12692 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12693 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12694 StackGhost.
12695
12696 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12697 variable `i6' to `i7'.
12698 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12699
12700 2004-02-07 Andrew Cagney <cagney@redhat.com>
12701
12702 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12703 (TuiPoint, TuiPointPtr): Ditto.
12704 (TuiStatus, TuiStatusPtr): Ditto.
12705 (TuiWinType, TuiWinTypePtr): Ditto.
12706 (struct tui_point): Rename _TuiPoint.
12707 (tui_get_low_disassembly_address): Rename
12708 tuiGetLowDisassemblyAddress.
12709 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12710 (tuiFree): Delete declaration.
12711 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12712 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12713 * tui/tui.c (tuiFree): Delete function.
12714 * cli/cli-cmds.c (disassemble_command): Update references.
12715 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12716 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12717 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12718 * tui/tui-winsource.c: Ditto.
12719
12720 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12721
12722 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12723 coffstab_build_psymtabs, elfstab_build_psymtabs)
12724 (stabsect_build_psymtabs): Replace psymbol_obstack with
12725 objfile_obstack.
12726 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12727 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12728 Ditto.
12729 * dwarfread.c (scan_compilation_units): Ditto.
12730 * elfread.c (elfstab_offset_sections): Ditto.
12731 * hppa-tdep.c (read_unwind_info): Ditto.
12732 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12733 (hpread_end_psymtab): Ditto.
12734 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12735 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12736 Ditto.
12737 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12738 * objfiles.c (add_to_objfile_sections)
12739 (build_objfile_section_table): Ditto.
12740 (allocate_objfile): Remove init of psymbol_obstack.
12741 (free_objfile): Remove freeing of psymbol_obstack.
12742 * objfiles.h (struct objfile): Remove field
12743 psymbol_obstack. Update comments.
12744 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12745 psymbol_obstack with objfile_obstack.
12746 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12747 psymbol_obstack.
12748 * somread.c (som_symfile_offsets, init_import_symbols)
12749 (init_export_symbols): Replace psymbol_obstack with
12750 objfile_obstack.
12751 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12752 * symfile.c (default_symfile_offsets, syms_from_objfile)
12753 (reread_symbols): Remove freeing and init of psymbol_obstack.
12754 (cashier_psymtab): Update comment.
12755 * symmisc.c (print_objfile_statistics): Don't report stats for
12756 psymbol obstack.
12757 * symtab.h (struct general_symbol_info, struct partial_symtab):
12758 Update comments.
12759 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12760 (xcoff_symfile_offsets): Replace psymbol_obstack with
12761 objfile_obstack.
12762
12763 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12764
12765 * objfiles.h (struct objfile): Add objfile_obstack field.
12766 Remove type_obstack field.
12767
12768 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12769 read_structure_scope read_enumeration, new_symbol): Replace
12770 type_obstack with objfile_obstack.
12771 * dwarfread.c (struct_type, enum_type): Ditto.
12772 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12773 (lookup_fundamental_type): Ditto.
12774 * gdbtypes.h (TYPE_ALLOC): Ditto.
12775 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12776 (hpread_read_doc_function_type, hpread_read_struct_type)
12777 (fix_static_member_physnames, hpread_read_array_type)
12778 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12779 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12780 (java_link_class_type): Ditto.
12781 * mdebugread.c (parse_type): Ditto.
12782 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12783 * solib-sunos.c (solib_add_common_symbols): Ditto.
12784 * stabsread.c (define_symbol, read_type, read_member_functions,
12785 read_cpp_abbrev, read_one_struct_field): Ditto.
12786 * symfile.c (reread_symbols): Ditto.
12787 * symmisc.c (print_objfile_statistics): Ditto.
12788
12789 2004-02-07 Andrew Cagney <cagney@redhat.com>
12790
12791 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12792 (tui_exec_info_content): Rename TuiExecInfoContent.
12793 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12794 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12795 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12796 (TuiList, TuiListPtr): Ditto.
12797 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12798 (TuiDataType, TuiDataTypePtr): Ditto.
12799 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12800 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12801 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12802 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12803 (TuiDataElement, TuiDataElementPtr): Ditto.
12804 (TuiWinElement, TuiWinElementPtr): Ditto.
12805 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12806 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12807 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12808 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12809 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12810 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12811 * tui/tui-command.c, tui/tui-data.c: Update references.
12812 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12813 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12814 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12815 * tui/tui-winsource.c, tui/tui.c: Ditto.
12816
12817 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12818
12819 * dwarf2-frame.h: Update copyright.
12820 (enum dwarf2_frame_reg_rule): New.
12821 (struct dwarf2_frame_state_reg): New.
12822 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12823 * dwarf2-frame.c: Update copyright.
12824 (enum dwarf2_reg_rule): Remove.
12825 (struct dwarf2_frame_state): Remove defenition of `struct
12826 dwarf2_frame_state_reg'.
12827 (read_reg): Call get_frame_arch to get the architecture instead of
12828 using CURRENT_GDBARCH.
12829 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12830 DWARF2_FRAME_.
12831 (dwarf2_frame_init_reg): New function.
12832 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12833 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12834 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12835 tags with DWARF2_FRAME_.
12836 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12837 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12838 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12839
12840 2004-02-06 Andrew Cagney <cagney@redhat.com>
12841
12842 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12843 (enum tui_data_type): Rename _TuiDataType.
12844 (struct tui_layout_def): Rename _TuiLayoutDef.
12845 (struct tui_source_element): Rename _TuiSourceElement.
12846 (struct tui_data_element): Rename _TuiDataElement.
12847 (struct tui_command_element): Rename _TuiCommandElement.
12848 (struct tui_locator_element): Rename _TuiLocatorElement.
12849 (union tui_which_element): Define.
12850 (struct tui_win_element): Rename _TuiWinElement.
12851 (struct tui_data_info): Rename _TuiDataInfo.
12852 (struct tui_source_info): Rename _TuiSourceInfo.
12853 (struct tui_command_info): Rename _TuiCommandInfo.
12854 (tui_initialize_static_data): Rename initializeStaticData.
12855 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12856 (tui_alloc_win_info): Rename allocWinInfo.
12857 (tui_init_generic_part): Rename initGenericPart.
12858 (tui_init_win_info): Rename initWinInfo.
12859 (tui_alloc_content): Rename allocContent.
12860 (tui_add_content_elements): Rename addContentElements.
12861 (tui_init_content_element): Rename initContentElement.
12862 (tui_free_window): Rename freeWindow.
12863 (tui_free_win_content): Rename freeWinContent.
12864 (tui_free_data_content): Rename freeDataContent.
12865 (tui_free_all_source_wins_content): Rename
12866 freeAllSourceWinsContent.
12867 (tui_del_window): Rename tuiDelWindow.
12868 (tui_del_data_windows): Rename tuiDelDataWindows.
12869 (tui_partial_win_by_name): Rename partialWinByName.
12870 (tui_win_name): Rename winName.
12871 (tui_current_layout): Rename currentLayout.
12872 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12873 (tui_term_height): Rename termHeight.
12874 (tui_set_term_height_to): Rename setTermHeightTo.
12875 (tui_term_width): Rename termWidth.
12876 (tui_set_term_width_to): Rename setTermWidthTo.
12877 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12878 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12879 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12880 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12881 (tui_source_windows): Rename sourceWindows.
12882 (tui_clear_source_windows): Rename clearSourceWindows.
12883 (tui_clear_source_windows_detail): Rename
12884 clearSourceWindowsDetail.
12885 (tui_clear_win_detail): Rename clearWinDetail.
12886 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12887 (tui_default_tab_len): Rename tuiDefaultTabLen.
12888 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12889 (tui_win_with_focus): Rename tuiWinWithFocus.
12890 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12891 (tui_layout_def): Rename tuiLayoutDef.
12892 (tui_win_resized): Rename tuiWinResized.
12893 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12894 (tui_next_win): Rename tuiNextWin.
12895 (tui_prev_win): Rename tuiPrevWin.
12896 (tui_add_to_source_windows): Rename addToSourceWindows.
12897 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12898 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12899 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12900 * tui/tui.c, tui/tui-data.c: Ditto.
12901 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12902 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12903
12904 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12905 (struct symtab): Declare.
12906 (tui_set_source_content): Rename tuiSetSourceContent.
12907 (tui_show_symtab_source): Rename tuiShowSource.
12908 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12909 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12910 * tui/tui-source.c: Update copyright. Update references.
12911 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12912 * tui/tui-stack.c: Update references.
12913
12914 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12915 (struct tui_win_info): Declare.
12916 (tui_scroll_forward): Rename tuiScrollForward.
12917 (tui_scroll_backward): Rename tuiScrollBackward.
12918 (tui_scroll_left): Rename tuiScrollLeft.
12919 (tui_scroll_right): Rename tuiScrollRight.
12920 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12921 (tui_resize_all): Rename tuiResizeAll.
12922 (tui_refresh_all_win): Rename tuiRefreshAll.
12923 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12924 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12925 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12926 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12927
12928 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12929 (tui_erase_data_content): Rename tuiEraseDataContent.
12930 (tui_display_all_data): Rename tuiDisplayAllData.
12931 (tui_check_data_values): Rename tuiCheckDataValues.
12932 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12933 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12934 (tui_first_data_element_no_in_line): Rename
12935 tuiFirstDataElementNoInLine.
12936 (tui_delete_data_content_windows): Rename
12937 tuiDeleteDataContentWindows.
12938 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12939 (tui_display_data_from): Rename tuiDisplayDataFrom.
12940 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12941 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12942 * tui/tui-win.c, tui/tui-regs.c: Update references.
12943 * tui/tui-layout.c, tui/tui.c: Update references.
12944
12945 * tui/tui-wingeneral.h: Update copyright.
12946 (m_allBeVisible): Delete macro.
12947 (m_allBeInvisible): Delete macro.
12948 (struct tui_gen_win_info): Declare.
12949 (struct tui_win_info): Declare.
12950 (tui_unhighlight_win): Rename unhighlightWin.
12951 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12952 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12953 (tui_make_window): Rename makeWindow.
12954 (tui_copy_win): Rename copyWin.
12955 (tui_box_win): Rename boxWin.
12956 (tui_highlight_win): Rename highlightWin.
12957 (tui_check_and_display_highlight_if_needed): Rename
12958 checkAndDisplayHighlightIfNeeded.
12959 (tui_refresh_all): Rename refreshAll.
12960 (tui_delete_win): Rename tuiDelwin.
12961 (tui_refresh_win): Rename tuiRefreshWin.
12962 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12963 (tui_make_visible, tui_make_invisible): New functions.
12964 (tui_make_all_visible, tui_make_all_invisible): New functions.
12965 (make_all_visible): Rename makeAllVisible.
12966 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12967 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12968 * tui/tui-windata.c, tui/tui-win.c: Update references.
12969 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12970 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12971
12972 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12973
12974 * proc-api.c (write_with_trace): Initialize local variable to
12975 silence compiler warning.
12976
12977 2004-02-06 Andrew Cagney <cagney@redhat.com>
12978
12979 * tui/tui-source.h: Do not include "defs.h".
12980 (struct tui_win_info): Declare.
12981 (tui_set_source_content_nil): Declare.
12982 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12983 (union tui_line_or_address): Rename _TuiLineOrAddress.
12984 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12985 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12986 (tui_update_source_window_as_is): Rename
12987 tuiUpdateSourceWindowAsIs.
12988 (tui_update_source_windows_with_addr): Rename
12989 tuiUpdateSourceWindowsWithAddr.
12990 (tui_update_source_windows_with_line): Rename
12991 tuiUpdateSourceWindowsWithLine.
12992 (tui_clear_source_content): Rename tuiClearSourceContent.
12993 (tui_erase_source_content): Rename tuiEraseSourceContent.
12994 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12995 (tui_show_source_content): Rename tuiShowSourceContent.
12996 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12997 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12998 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12999 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13000 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13001 (tui_update_exec_info): Rename tuiUpdateExecInfo.
13002 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13003 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13004 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13005 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13006 (struct tui_win_info): Declare.
13007 * tui/tui-stack.c: Update references.
13008 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13009 * tui/tui-win.c, tui/tui-source.c: Ditto.
13010 * tui/tui.c, tui/tui-disasm.c: Ditto.
13011
13012 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13013
13014 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13015 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
13016
13017 2004-02-05 Mark Kettenis <kettenis@gnu.org>
13018
13019 * infrun.c (handle_inferior_event): Allow for breakpoint
13020 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13021 and SIGEMT. Update comments.
13022 * NEWS (Revised SPARC target): Mention support for non-executable
13023 stack.
13024
13025 2004-02-04 Mark Kettenis <kettenis@gnu.org>
13026
13027 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13028 * inftarg.c: Update copyright year.
13029 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13030 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13031 (sparc_xfer_wcookie): New function.
13032 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13033 * Makefile.in (sparc-nat.o): Update dependencies.
13034 * config/sparc/nm-nbsd.h: Include "target.h".
13035 (NATIVE_XFER_WCOOKIE): New define.
13036 (sparc_xfer_wcookie): New prototype.
13037
13038 2004-02-04 Andrew Cagney <cagney@redhat.com>
13039
13040 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13041 SYSCALL_TRAP function.
13042 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13043
13044 2004-02-04 Andrew Cagney <cagney@redhat.com>
13045 Daniel Jacobowitz <drow@mvista.com>
13046
13047 * objfiles.h: Delete comments refering to inside_entry_func and
13048 DEPRECATED_FRAME_CHAIN_VALID.
13049 * defs.h (inside_entry_func): Update prototype..
13050 * blockframe.c (inside_entry_func): Rename to
13051 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
13052 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13053
13054 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
13055
13056 * breakpoint.c (struct captured_parse_breakpoint_args): Move
13057 outside of #ifdef SOLIB_ADD region.
13058 (do_restore_lang_radix_cleanup): Ditto.
13059 (resolve_pending_breakpoint): Ditto.
13060
13061 2004-02-03 Andrew Cagney <cagney@redhat.com>
13062
13063 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13064 (process_note_abi_tag_sections): Delete unused function.
13065 (ia64_read_fp): Delete unused function.
13066 (gdbarch_extract_struct_value_address): Delete declaration.
13067
13068 2004-02-02 Andrew Cagney <cagney@redhat.com>
13069
13070 * vax-tdep.c (vax_frame_chain): Delete call to
13071 deprecated_inside_entry_file.
13072 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13073
13074 2004-02-02 Mark Kettenis <kettenis@gnu.org>
13075
13076 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13077 column that's "empty" or "same value" when eliminating REG_RA
13078 rules.
13079
13080 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13081
13082 * NEWS: Add information about new pending breakpoint support.
13083
13084 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13085
13086 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13087 and pending fields for pending breakpoint support.
13088 * breakpoint.c (breakpoint_enabled): Add check for not pending.
13089 (condition_command): Only parse condition if not a pending
13090 breakpoint.
13091 (print_one_breakpoint): Add support for pending breakpoints.
13092 (describe_other_breakpoints): Add checks to verify we are not
13093 dealing with pending breakpoints.
13094 (check_duplicates): Don't check pending breakpoints.
13095 (set_raw_breakpoint): Initialize pending flag.
13096 (do_restore_lang_radix_cleanup): New cleanup routine.
13097 (resolve_pending_breakpoint): New function.
13098 (re_enable_breakpoints_in_shlibs): Try and resolve any
13099 pending breakpoints via resolve_pending_breakpoint.
13100 (mention): Add pending breakpoint support.
13101 (parse_breakpoint_sals): Add new parameter to pass to
13102 decode_line_1 to indicate silent errors when files or functions
13103 are not found. Change all callers.
13104 (do_captured_parse_breakpoint): New function.
13105 (break_command_1): Change prototype to return an rc value and to
13106 take an optional pending breakpoint pointer. Support creating
13107 a pending breakpoint if a "not found" form of error occurs when
13108 parsing the breakpoint. Also support resolving an existing pending
13109 breakpoint and be silent if the resolution fails.
13110 (create_breakpoints): Change prototype to take pending breakpoint
13111 pointer. When resolving a pending breakpoint, use the new pointer
13112 to provide a conditional or commands added by the end-user.
13113 (delete_breakpoint): Add appropriate check for pending.
13114 (breakpoint_re_set_one): Ditto.
13115 (do_enable_breakpoint): Ditto.
13116
13117 2004-02-02 David Carlton <carlton@kealia.com>
13118
13119 * valops.c (enum oload_classification): New.
13120 (find_overload_match): Break implementation into separate
13121 functions; delete #if 0'd code; look for symbols within
13122 namespaces.
13123 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13124 (find_oload_champ,oload_method_static,classify_oload_match): New.
13125 * cp-support.h: Add declaration for cp_func_name; update
13126 declaration for make_symbol_overload_list.
13127 * cp-support.c (cp_func_name): New.
13128 (overload_list_add_symbol): Fix comment, use
13129 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13130 (make_symbol_overload_list): Take a function name and a namespace
13131 instead of a symbol; change implementation.
13132 (make_symbol_overload_list_using): New.
13133 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13134
13135 2004-02-02 Fred Fish <fnf@redhat.com>
13136
13137 * main.c (gdb_stdtarg): Move definition to group with other
13138 gdb_stdtarg definitions and update copyright years.
13139 * remote-sim.c (gdb_os_write_stderr): Write output to
13140 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13141 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
13142 gdb_stderr stream and update copyright years.
13143
13144 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13145
13146 * Makefile.in (mips-linux-nat.o): Update dependencies.
13147 * mips-linux-nat.c: Include mips-tdep.h.
13148
13149 2004-02-01 Roland McGrath <roland@redhat.com>
13150
13151 * sol-thread.c (sol_thread_xfer_partial): New function.
13152 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13153 (init_sol_core_ops): Likewise.
13154
13155 * procfs.c (procfs_xfer_partial): New function.
13156 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13157 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13158
13159 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13160 procfs_xfer_auxv function.
13161
13162 * procfs.c (procfs_make_note_section): If we can read
13163 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13164 * linux-proc.c (linux_make_note_section): Likewise.
13165
13166 * auxv.h: New file.
13167 * auxv.c: New file.
13168 * Makefile.in (auxv_h): New variable.
13169 (COMMON_OBS): Add auxv.o here.
13170 (auxv.o): New target.
13171
13172 * corelow.c (core_xfer_partial): New function.
13173 (init_core_ops): Use it for core_ops.to_xfer_partial.
13174
13175 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13176 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13177 macro if that is defined.
13178
13179 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13180
13181 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13182 and check the specified thread for each breakpoint.
13183 * breakpoint.h (bpstat_stop_status): Update prototype.
13184 * infrun.c (handle_inferior_event): Update calls to
13185 bpstat_stop_status.
13186
13187 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13188
13189 * Makefile.in (cli-cmds.o): Add $(readline_h).
13190
13191 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13192
13193 * cli/cli-cmds.c: Include readline.h.
13194 (complete_command): Pass the start of the last word to
13195 complete_line.
13196
13197 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13198
13199 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13200 argument, and change first argument to a CORE_ADDR.
13201 * breakpoint.h (bpstat_stop_status): Update prototype.
13202 * infrun.c (adjust_pc_after_break): Add a new comment.
13203 (handle_inferior_event): Update calls to bpstat_stop_status.
13204
13205 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13206
13207 * breakpoint.h: Update copyright years.
13208
13209 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13210
13211 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13212 (bpstat_stop_status): Don't decrement PC.
13213 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13214 prototype.
13215 * infrun.c (adjust_pc_after_break): New function.
13216 (handle_inferior_event): Call it, early. Remove later references
13217 to DECR_PC_AFTER_BREAK.
13218 (normal_stop): Add commentary.
13219
13220 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13221
13222 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13223 2004-01-27 double-free fix.
13224
13225 2004-01-31 Mark Kettenis <kettenis@gnu.org>
13226
13227 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13228 (sparc32_frame_prev_register): Handle StackGhost.
13229 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13230
13231 2004-01-29 Roland McGrath <roland@redhat.com>
13232
13233 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13234 * configure: Regenerated.
13235
13236 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13237 * Makefile.in (procfs.o): Add dep.
13238
13239 2004-01-28 Andrew Cagney <cagney@redhat.com>
13240
13241 * tui/tui-stack.h: Update copyright.
13242 (struct frame_info): Add opaque declaration.
13243 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13244 (tui_show_locator_content): Rename tuiShowLocatorContent.
13245 (tui_show_frame_info): Rename tuiShowFrameInfo.
13246 * tui/tui-stack.c: Update copyright. Update references.
13247 * tui/tui-winsource.c: Update references.
13248 * tui/tui-win.c: Update references.
13249 * tui/tui-layout.c: Update references.
13250 * tui/tui-hooks.c: Update copyright, update references.
13251 * tui/tui.c: Update copyright, update references.
13252 * tui/tui-disasm.c: Update references.
13253
13254 2004-01-28 David Carlton <carlton@kealia.com>
13255
13256 * dwarf2read.c (add_partial_structure): Use demangled name if
13257 namespace equals "".
13258
13259 2004-01-27 Jim Blandy <jimb@redhat.com>
13260
13261 Clean up misapplied patch:
13262 * dwarf2read.c (determine_prefix): Change one of the two forward
13263 declarations for 'determine_prefix_aux' to a declaration for this.
13264 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13265 argument to 'die_specification'.
13266
13267 * dwarf2read.c (read_func_scope): Re-indent comment.
13268
13269 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13270
13271 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13272 b->exp to NULL after freeing so that error during re-parsing or
13273 evaluation of expressions associated with breakpoint don't
13274 eventually lead to re-freeing of storage.
13275 Committed by Andrew Cagney.
13276
13277 2004-01-27 Andrew Cagney <cagney@redhat.com>
13278
13279 * source.c (ambiguous_line_spec): Delete undefined declaration.
13280 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13281 (m32r_set_server_address, m32r_set_download_path): Ditto.
13282 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13283
13284 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13285
13286 * dwarf2read.c: Update calls to changed and renamed functions, and
13287 references to moved variables.
13288
13289 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13290 language, language_defn, list_in_scope, and ftypes members.
13291 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13292 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13293 (baseaddr): Remove globals.
13294
13295 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13296 (set_cu_language, die_is_declaration, die_specification)
13297 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13298 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13299 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13300 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13301
13302 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13303 cu.list_in_scope. Don't initialize cu_header_offset.
13304 (add_partial_symbol): Add local baseaddr.
13305 (psymtab_to_symtab_1): Add local baseaddr. Use
13306 objfile->section_offsets for consistency. Don't initialize
13307 cu_header_offset; do initialize cu.header.offset and
13308 cu.list_in_scope.
13309 (read_file_scope, read_func_scope, read_lexical_block_scope)
13310 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13311
13312 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13313
13314 * PROBLEMS: Add gdb/1516.
13315
13316 2003-12-29 Robert Millan <robertmh@gnu.org>
13317
13318 Patch committed by Andrw Cagney.
13319 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13320 * configure.tgt: Match knetbsd*-gnu.
13321
13322 2004-01-26 Andrew Cagney <cagney@redhat.com>
13323
13324 * breakpoint.c (catch_command_1): Delete #ifdef code.
13325 (catch_fork_command_1): Delete #ifdef wrapper.
13326 (catch_exec_command_1): Ditto.
13327 (catch_load_command_1): Ditto.
13328 (catch_unload_command_1): Ditto.
13329
13330 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13331 (catch_breakpoint): Delete #if0ed function.
13332 (disable_catch_breakpoint): Ditto.
13333 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13334 (disable_catch, enable_catch, delete_catch): Ditto.
13335
13336 2004-01-26 Andrew Cagney <cagney@redhat.com>
13337
13338 * remote.c (echo_check, quit_flag): Delete variables.
13339 (cisco_kernel_mode): Delete variable.
13340 (minitelnet_return, tty_input, escape_count): Delete variables.
13341 (remote_cisco_mode): Delete variable.
13342 (remote_cisco_open, remote_cisco_close): Delete function.
13343 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13344 (init_remote_cisco_ops): Delete function.
13345 (_initialize_remote): Do not install "remote cisco" code.
13346 (read_frame): Delete cisco specific code.
13347 (remote_info_process): Delete function.
13348 (remote_wait): Delete cisco specific code.
13349 (remote_cisco_section_offsets): Delete function.
13350 (remote_cisco_objfile_relocate): Delete function.
13351 (remote_async_wait): Delete cisco specific code.
13352 (minitelnet, readtty, readsocket): Delete function.
13353
13354 2004-01-26 Andrew Cagney <cagney@redhat.com>
13355
13356 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13357 comments mentioning extract_returned_value_address.
13358 * infcmd.c (print_return_value): Update. Add comments on
13359 extract_returned_value_address.
13360 * stack.c (return_command): Add comments on
13361 extract_returned_value_address.
13362 * values.c: Update comment.
13363 * m32r-tdep.c: Update comment.
13364 * sparc-tdep.c: Update comment.
13365 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13366 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13367 * sh64-tdep.c (sh64_gdbarch_init): Update.
13368 * sh-tdep.c (sh_gdbarch_init): Update.
13369 * s390-tdep.c (s390_gdbarch_init): Update.
13370 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13371 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13372 * m68k-tdep.c (m68k_gdbarch_init): Update.
13373 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13374 * m32r-tdep.c (m32r_gdbarch_init): Update.
13375 * ia64-tdep.c (ia64_gdbarch_init): Update.
13376 * h8300-tdep.c (h8300_gdbarch_init): Update.
13377 * frv-tdep.c (frv_gdbarch_init): Update.
13378 * arm-tdep.c (arm_gdbarch_init): Update.
13379 * alpha-tdep.c (alpha_gdbarch_init): Update.
13380
13381 2004-01-26 Andrew Cagney <cagney@redhat.com>
13382
13383 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13384 SYMBOL_LOCATION_FUNCS
13385 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13386 "struct symbol_ops".
13387 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13388 type to "struct symbol_ops".
13389 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13390 (struct symbol): Replace ".aux_value.loc.funcs" and
13391 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13392 (SYMBOL_OBJFILE): Delete macro.
13393 (SYMBOL_LOCATION_FUNCS): Delete macro.
13394 (SYMBOL_LOCATION_BATON): Update.
13395 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13396 intead of SYMBOL_LOCATION_FUNCS.
13397 * ax-gdb.c (gen_var_ref): Ditto.
13398 * printcmd.c (address_info): Ditto.
13399 * findvar.c (read_var_value): Ditto.
13400 (symbol_read_needs_frame): Ditto.
13401
13402 2004-01-26 Andrew Cagney <cagney@redhat.com>
13403
13404 * dwarf2read.c (read_func_scope): Document frame-base hack.
13405
13406 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13407
13408 * infcmd.c (print_return_value): Plug memory leak; delete
13409 ui_stream object. Rename argument `structure_return' to
13410 `struct_return'.
13411
13412 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13413
13414 * infcmd.c (print_return_value): Wrap long lines.
13415 (finish_command_continuation, finish_command): Remove unused
13416 variable `funcaddr'. Fix some coding-standards problems.
13417
13418 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13419 SECT_SIZE is large enough, not whether it's exactly the right size.
13420 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13421 TDEP->fpregset to zero.
13422
13423 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13424 floating-point registers for traditional NetBSD core files.
13425 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13426 TDEP->sizeof_fpregset here.
13427
13428 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13429
13430 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13431 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13432 function with code split out from
13433 sparc32nbsd_sigcontext_frame_cache.
13434 (sparc32nbsd_sigcontext_frame_cache): Use
13435 sparc32nbsd_sigcontext_saved_regs.
13436 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13437 OpenBSD.
13438 * sparcobsd-tdep.c: New file.
13439 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13440 (sparcobsd-tdep.o): New dependency.
13441 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13442 * config/sparc/obsd.mt: New file.
13443
13444 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13445 TDEP->fpregset to be initialized to enable core file register
13446 sets.
13447
13448 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13449
13450 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13451 Add opaque declarations.
13452 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13453 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13454 function with code split out from
13455 sparc64nbsd_sigcontext_frame_cache.
13456 (sparc64nbsd_sigcontext_frame_cache): Use
13457 sparc64nbsd_sigcontext_saved_regs.
13458 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13459 OpenBSD.
13460 * sparc64obsd-tdep.c: New file.
13461 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13462 (sparc64obsd-tdep.o): New dependency.
13463 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13464 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13465 * config/sparc/obsd64.mt: New file.
13466
13467 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13468 read the instruction at PC.
13469
13470 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13471 value of GDB_OSABI_DEFAULT.
13472 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13473 instead of GDB_OSABI_NETBSD_AOUT.
13474
13475 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13476
13477 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13478 copyright.
13479
13480 2004-01-23 Andrew Cagney <cagney@redhat.com>
13481
13482 * printcmd.c (display_command): Replace tui_set_display call with
13483 tui_set_layout_for_display_command.
13484 * tui/tui.h (enum tui_win_type): Define.
13485 (tui_set_layout): Delete declaration.
13486 (tui_set_layout_for_display_command): Rename set_tui_layout.
13487 * tui/tui-data.h (enum tui_layout_type): Define.
13488 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13489 "tui.h".
13490 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13491 (tui_default_win_height): Rename tuiDefaultWinHeight.
13492 (tui_default_win_viewport_height): Rename
13493 tuiDefaultWinViewportHeight.
13494 (tui_set_layout): RenametuiSetLayout.
13495 * tui/tui-layout.c: Update references.
13496 * tui/tui.c: Update references.
13497 * tui/tui-disasm.c: Update references.
13498
13499 2004-01-23 David Carlton <carlton@kealia.com>
13500
13501 Partial workaround for PR c++/1511:
13502 * cp-namespace.c: Include frame.h.
13503 (cp_lookup_transparent_type): New
13504 (cp_lookup_transparent_type_loop): New.
13505 * cp-support.h: Declare cp_lookup_transparent_type.
13506 * symtab.c (basic_lookup_transparent_type): Renamed from
13507 lookup_transparent_type.
13508 (lookup_transparent_type): Replace old body by a call to
13509 current_language->la_lookup_transparent_type.
13510 * symtab.h: Update copyright. Declare
13511 basic_lookup_transparent_type.
13512 * language.h: Update copyright.
13513 (struct language_defn): Add la_lookup_transparent_type.
13514 * language.c: Update copyright.
13515 (unknown_language_defn): Add basic_lookup_transparent_type.
13516 (auto_language_defn): Add basic_lookup_transparent_type.
13517 (local_language_defn): Add basic_lookup_transparent_type.
13518 * ada-lang.c: Update copyright.
13519 (ada_language_defn): Add basic_lookup_transparent_type.
13520 * c-lang.c: Update copyright.
13521 (c_language_defn): Add basic_lookup_transparent_type.
13522 (cplus_language_defn): Add basic_lookup_transparent_type.
13523 (asm_language_defn): Add basic_lookup_transparent_type.
13524 (minimal_language_defn): Add basic_lookup_transparent_type.
13525 * f-lang.c: Update copyright.
13526 (f_language_defn): Add basic_lookup_transparent_type.
13527 * jv-lang.c: Update copyright.
13528 (java_language_defn): Add basic_lookup_transparent_type.
13529 * m2-lang.c: Update copyright.
13530 (m2_language_defn): Add basic_lookup_transparent_type.
13531 * objc-lang.c: Update copyright.
13532 (objc_language_defn): Add basic_lookup_transparent_type.
13533 * p-lang.c: Update copyright.
13534 (p_language_defn): Add basic_lookup_transparent_type.
13535 * scm-lang.c: Update copyright.
13536 (scm_language_defn): Add basic_lookup_transparent_type.
13537 * Makefile.in (cp-namespace.o): Depend on frame.h.
13538
13539 2004-01-23 David Carlton <carlton@kealia.com>
13540
13541 Patch for PR c++/1520:
13542 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13543 properly if we have a specification die.
13544 (determine_prefix_aux): Rename from determine_prefix.
13545 (determine_prefix): Like the old determine_prefix, but never
13546 returns NULL.
13547
13548 2004-01-23 Theodore A. Roth <troth@openavr.org>
13549
13550 * avr-tdep.c: Update copyright.
13551 (avr_iaddr_p): Delete unused function.
13552 (avr_saddr_p): Delete unused function.
13553
13554 2004-01-23 David Carlton <carlton@kealia.com>
13555
13556 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13557 Fix for PR symtab/1534.
13558
13559 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13560
13561 * NEWS (New native configurations): Mention OpenBSD/sparc and
13562 OpenBSD/sparc64.
13563 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13564 * configure.host: Likewise.
13565 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13566 handler for OpenBSD.
13567 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13568
13569 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13570
13571 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13572 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13573
13574 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13575 * cli/cli-cmds.c (shell_escape): Likewise.
13576
13577 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13578 OpenBSD .note.openbsd.ident sections.
13579
13580 2004-01-22 David Carlton <carlton@kealia.com>
13581
13582 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13583 get_scope_pc_bounds.
13584 (read_file_scope): Ditto.
13585 (get_scope_pc_bounds): New function, produced by extracting code
13586 from the above two functions, consolidating it, and adding support
13587 for DW_TAG_namespace.
13588
13589 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13590
13591 * osabi.c (MAX_NOTESZ): New define.
13592 (check_note): New function.
13593 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13594 check_note.
13595
13596 2004-01-21 Roland McGrath <roland@redhat.com>
13597
13598 * MAINTAINERS (write after approval): Add myself.
13599
13600 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13601
13602 * utils.c (init_page_info): Move declarations of `rows' and
13603 `cols' before the __GO32__-specific code. Move the closing brace
13604 outside the #ifdef __GO32__..#endif block.
13605 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13606
13607 2004-01-21 Paul Brook <paul@codesourcery.com>
13608
13609 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13610 BPSTAT_WHAT_CHECK_SHLIBS.
13611
13612 2004-01-21 Paul Brook <paul@codesourcery.com>
13613
13614 * MAINTAINERS: Add myself to write-after-approval.
13615
13616 2004-01-20 Andrew Cagney <cagney@redhat.com>
13617
13618 * ax-gdb.c (print_axs_value): Delete unused function.
13619 * jv-lang.c (java_lookup_type): Delete unused function.
13620 * cli/cli-dump.c (dump_filetype): Delete unused function.
13621 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13622 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13623 (mips_getstring): Delete unused function.
13624 (pmon_insert_breakpoint): Delete #if0ed function.
13625 (PMON_MAX_BP): Delete #if0ed MACRO.
13626 (mips_pmon_bp_info): Delete #if0ed variable.
13627 (pmon_remove_breakpoint): Delete #if0ed function.
13628 * monitor.c (monitor_write_even_block): Delete unused function.
13629 (monitor_write_memory_block): Delete #if0ed code.
13630 * dink32-rom.c (dink32_load): Delete unused function.
13631 (_initialize_dink32_rom): Delete #if0ed code.
13632 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13633
13634 * tui/tui-command.c: Update references.
13635 * tui/tui-io.c: Update references.
13636 * tui/tui-command.h: Update copyright.
13637 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13638
13639 * source.c (ambiguous_line_spec): Delete never-defined function.
13640 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13641 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13642 * cli/cli-cmds.c (validate_comname): Ditto.
13643
13644 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13645 "tui-data.h".
13646 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13647 (tui_show_disassem): Rename tuiShowDisassem.
13648 (tui_show_disassem_and_update_source): Rename
13649 tuiVerticalDisassemScroll.
13650 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13651 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13652 * tui/tui.h: Update copyright.
13653 (enum tui_status): Define.
13654 * tui/tui-data.h (enum tui_scroll_direction): Define.
13655 * tui/tui-disasm.c: Update copyright. Update references.
13656 * tui/tui-winsource.c: Update copyright. Update references.
13657 * tui/tui-win.c: Update references.
13658 * tui/tui-layout.c: Update references.
13659
13660 2004-01-20 Andrew Cagney <cagney@redhat.com>
13661
13662 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13663 sym2 to start of block.
13664
13665 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13666
13667 * MAINTAINERS: Delete mmalloc.
13668 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13669 * NEWS: Mention removal of --with-malloc.
13670 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13671 * config.in: Regenerate.
13672 * configure: Regenerate.
13673 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13674 USE_MMALLOC, MMCHECK_FORCE.
13675 * gdbinit.in: Remove mmalloc.
13676 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13677 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13678 * config/i386/go32.mh: Likewise.
13679 * config/i386/interix.mh: Likewise.
13680 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13681
13682 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13683
13684 * linespec.c (decode_variable, symtab_from_filename): Call
13685 error_silent with error message instead of throwing an exception
13686 directly.
13687 * defs.h (error_silent, error_output_message): Add prototypes.
13688 (catch_exceptions_with_msg): Ditto.
13689 * utils.c (error_silent, error_output_message): New functions.
13690 * top.c (catch_exceptions_with_msg): New function.
13691
13692 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13693
13694 * mi/mi-cmds.h (enum print_values): Add definition.
13695
13696 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13697 type and value for simple data types and just the name and type
13698 for complex ones, if required.
13699
13700 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13701 children, if required.
13702
13703 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13704
13705 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13706 unused declarations.
13707
13708 2004-01-19 Andrew Cagney <cagney@redhat.com>
13709
13710 * top.h (mapped_symbol_files): Delete declaration.
13711 * main.c (captured_main): Delete option "m" and "mapped".
13712 * objfiles.c (mapped_symbol_files): Delete variable.
13713 * symfile.c (symbol_file_command): Delete mmap code.
13714 (symbol_file_add_with_addrs_or_offsets): Ditto.
13715 (add_symbol_file_command, reread_separate_symbols): Ditto.
13716 * objfiles.h (OBJF_MAPPED): Delete.
13717 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13718 (free_objfile) [USE_MMALLOC]: Ditto.
13719 (open_existing_mapped_file): Delete function.
13720 (open_mapped_file): Delete function.
13721 (map_to_file): Delete function.
13722
13723 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13724
13725 * infrun.c (step_into_function): Account for possible breakpoint
13726 adjustment when computing ``stop_func_start''.
13727
13728 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13729
13730 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13731 the region size against the size of a pointer, not the size of
13732 a register as given by DEPRECATED_REGISTER_SIZE.
13733
13734 2004-01-19 Andrew Cagney <cagney@redhat.com>
13735
13736 * tui/tui-regs.h: Include "tui-data.h".
13737 (tuiFirstRegElementNoInLine): Delete declaration.
13738 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13739 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13740 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13741 (tui_calculate_regs_column_count): Rename
13742 tuiCalculateRegsColumnCount.
13743 (tui_check_register_values): Rename tuiCheckRegisterValues.
13744 (tui_show_registers): Rename tuiShowRegisters.
13745 (tui_display_registers_from_line): Rename
13746 tuiDisplayRegistersFromLine.
13747 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13748 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13749 (tui_first_reg_element_no_inline): Rename
13750 tuiFirstRegElementNoInLine.
13751 * tui/tui-data.h: Update copyright.
13752 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13753 * tui/tui-windata.c: Update copyright, update references.
13754 * tui/tui-regs.c: Update copyright, update references.
13755 * tui/tui-win.c: Update copyright, update references.
13756 * tui/tui-layout.c: Update copyright, update references.
13757
13758 2004-01-18 Andrew Cagney <cagney@redhat.com>
13759
13760 * tui/tui-io.c: Update copyright.
13761 (key_is_end_sequence, key_is_backspace): New functions.
13762 (key_is_command_char, key_is_start_sequence): New function.
13763 (tui_getc): Update references.
13764 * tui/tui-io.h: Update copyright.
13765 (m_tuiStartNewLine): Delete macro.
13766 (m_isBackspace, m_isDeleteChar): Delete macros.
13767 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13768 (m_isNextPage, m_isPrevPage): Delete macros.
13769 (m_isLeftArrow, m_isRightArrow): Delete macros.
13770 (m_isXdbStyleCommandChar): Delete macro.
13771 (key_is_start_sequence): Declare, replace m_isStartSequence.
13772 (key_is_end_sequence): Declare, replace m_isEndSequence.
13773 (key_is_backspace): Declare ,replace m_isBackspace.
13774 (key_is_command_char): Declare, replace m_isCommandChar.
13775 * tui/tui-command.c: Update copyright.
13776 (tuiDispatchCtrlChar): Update references.
13777
13778 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13779 tuiSourceWin.h.
13780
13781 * tui/tui-command.c: Rename tui/tuiCommand.c.
13782 * tui/tui-command.h: Rename tui/tuiCommand.h.
13783 * tui/tui-data.c: Rename tui/tuiData.c.
13784 * tui/tui-data.h: Rename tui/tuiData.h.
13785 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13786 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13787 * tui/tui-io.c: Rename tui/tuiIO.c.
13788 * tui/tui-io.h: Rename tui/tuiIO.h.
13789 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13790 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13791 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13792 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13793 * tui/tui-source.c: Rename tui/tuiSource.c.
13794 * tui/tui-source.h: Rename tui/tuiSource.h.
13795 * tui/tui-stack.c: Rename tui/tuiStack.c.
13796 * tui/tui-stack.h: Rename tui/tuiStack.h.
13797 * tui/tui-win.c: Rename tui/tuiWin.c.
13798 * tui/tui-win.h: Rename tui/tuiWin.h.
13799 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13800 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13801 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13802 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13803 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13804 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13805 * tui/tui-file.c: Update includes.
13806 * tui/tui-hooks.c: Update includes.
13807 * tui/tui-interp.c: Update includes.
13808 * tui/tui.c: Update includes.
13809 * Makefile.in: Update all tui/ dependencies.
13810 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13811
13812 * Makefile.in: Update copyright. Update dependencies.
13813
13814 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13815 problem.
13816
13817 2004-01-18 Andrew Cagney <cagney@redhat.com>
13818
13819 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13820 instead of register_gdbarch_init.
13821
13822 * remote-sds.c (tohex): Delete unused function. Update copyright.
13823 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13824 * v850-tdep.c (v850_register_virtual_size): Ditto.
13825 * target.c (normal_target_post_startup_inferior): Ditto.
13826 * source.c (ambiguous_line_spec): Ditto.
13827 * remote.c (adapt_remote_get_threadinfo): Ditto.
13828 * mi/mi-out.c (out_field_fmt): Ditto.
13829 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13830 (output_control_change_notification): Ditto.
13831 * m68k-tdep.c (m68k_register_byte): Ditto.
13832 (m68k_remote_breakpoint_from_pc): Ditto.
13833 * ui-out.c (init_ui_out_state): Delete unused declaration.
13834 * stabsread.c (search_value): Ditto.
13835 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13836 * maint.c (print_section_table): Ditto.
13837 * infrun.c (set_follow_fork_mode_command): Ditto.
13838
13839 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13840
13841 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13842 DW_CFA_def_cfa_exporession. Add support for
13843 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13844 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13845
13846 2004-01-18 Andrew Cagney <cagney@redhat.com>
13847
13848 * ocd.c: Update copyright.
13849 (bdm_read_register_command): Delete unused function.
13850 (_initialize_remote_ocd): Delete commented out reference.
13851 (get_quoted_char, reset_packet): Delete #if0ed function.
13852 (output_packet, put_quoted_char): Delete #if0ed function.
13853 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13854 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13855 (BDM_BREAKPOINT): Delete #if0ed macro.
13856 (remote_timeout): Delete #if0ed variable.
13857
13858 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13859
13860 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13861 (core-sol2.o): Remove dependency.
13862 * core-sol2.c: Remove file.
13863
13864 2004-01-17 Andrew Cagney <cagney@redhat.com>
13865
13866 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13867 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13868 enums.
13869
13870 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13871
13872 * remote.c: Update copyright years.
13873
13874 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13875
13876 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13877
13878 2004-01-17 Andrew Cagney <cagney@redhat.com>
13879
13880 * mdebugread.c: Update copyright.
13881 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13882 (parse_type, parse_procedure): Ditto.
13883 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13884
13885 * cris-tdep.c (cris_store_struct_return): Put back accidently
13886 deleted function.
13887
13888 * gdbarch.sh: Update copyright year.
13889 * gdbarch.h, gdbarch.c: Re-generate.
13890
13891 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13892
13893 Suggested by George Anzinger.
13894 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13895 correct stack offset. Include unknown opcode numbers in the error
13896 message.
13897
13898 2004-01-17 Andrew Cagney <cagney@redhat.com>
13899
13900 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13901 extract_struct_value_address, i386 does not set it.
13902 * sparc64-tdep.c (sparc64_init_abi): Do not set
13903 extract_struct_value_address, never called.
13904 (sparc64_extract_struct_value_address): Delete function.
13905 * m68hc11-tdep.c: Update copyright.
13906 (m68hc11_gdbarch_init): Delete redundant assignment of
13907 extract_struct_value_address.
13908 * i386-tdep.c: Update copyright.
13909 (i386_gdbarch_init): Do not set extract_struct_value_address,
13910 never called.
13911 (i386_extract_struct_value_address): Delete function.
13912 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13913 extract_struct_value_address, never called.
13914 (sparc32_extract_struct_value_address): #if 0 function. Add
13915 comments explaining its future.
13916
13917 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13918
13919 * arm-tdep.c (arm_write_pc): New function.
13920 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13921
13922 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13923
13924 * breakpoint.c (must_shift_inst_regs): Delete.
13925 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13926 and SHIFT_INST_REGS.
13927 * infcmd.c (step_1, step_1_continuation): Delete references to
13928 SHIFT_INST_REGS.
13929 * infrun.c (keep_going): Likewise.
13930 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13931 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13932
13933 2004-01-17 Andrew Cagney <cagney@redhat.com>
13934
13935 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13936 * gdbarch.h, gdbarch.c: Re-generate.
13937 * infcmd.c (print_return_value): Delete reference to
13938 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13939
13940 * cris-tdep.c (cris_gdbarch_init): Do not set
13941 deprecated_extract_struct_value_address.
13942
13943 * xstormy16-tdep.c: Update copyright.
13944 (xstormy16_extract_struct_value_address): Update to current
13945 extract struct value address interface.
13946 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13947 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13948 current extract struct value address interface.
13949 (sh64_gdbarch_init): Set extract_struct_value_address.
13950
13951 * cris-tdep.c: Update copyright.
13952 (cris_extract_struct_value_address): Delete function.
13953 (struct_return_address): Delete variable.
13954 (cris_store_struct_return): Do not set struct_return_address.
13955
13956 * mcore-tdep.c: Update copyright.
13957 (mcore_extract_struct_value_address): Delete function. Update
13958 comments.
13959 (mcore_gdbarch_init): Update.
13960 * mn10300-tdep.c: Update copyright.
13961 (mn10300_extract_struct_value_address): Delete function.
13962 (mn10300_gdbarch_init): Update.
13963 * v850-tdep.c: Update copyright.
13964 (v850_extract_struct_value_address): Delete.
13965 (v850_gdbarch_init): Update.
13966 * ns32k-tdep.c: Update copyright.
13967 (ns32k_extract_struct_value_address): Delete.
13968 (ns32k_gdbarch_init): Update.
13969 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13970 (hppa_gdbarch_init): Update.
13971 * vax-tdep.c: Update copyright.
13972 (vax_extract_struct_value_address): Delete.
13973 (vax_gdbarch_init): Update.
13974
13975 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13976 * gdbarch.h, gdbarch.c: Re-generate.
13977 * procfs.c (procfs_fetch_registers): Delete reference to
13978 DEPRECATED_NPC_REGNUM.
13979 (procfs_store_registers): Ditto.
13980 * regcache.c (generic_target_write_pc): Simplify.
13981 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13982
13983 * core-sol2.c (fetch_core_registers): Replace
13984 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13985
13986 * hppa-tdep.c: Update copyright year.
13987 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13988 NPC_REGNUM.
13989 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13990
13991 * mips-tdep.c (mips_write_pc): New function.
13992 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13993 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13994 (mips_find_saved_regs, mips_software_single_step: Ditto.
13995 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13996 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13997
13998 2004-01-17 Andrew Cagney <cagney@redhat.com>
13999
14000 * mips-tdep.c: Re-indent. Group functions by ABI.
14001
14002 2004-01-17 Andrew Cagney <cagney@redhat.com>
14003
14004 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14005 * gdbarch.c: Re-generate.
14006 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14007 DECR_PC_AFTER_BREAK to zero.
14008 * vax-tdep.c (vax_gdbarch_init): Ditto.
14009 * v850-tdep.c (v850_gdbarch_init): Ditto.
14010 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14011 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14012 * sh-tdep.c (sh_gdbarch_init): Ditto.
14013 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14014 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14015 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14016 * mips-tdep.c (mips_gdbarch_init): Ditto.
14017 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14018 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14019 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14020 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14021 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14022 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14023 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14024 * frv-tdep.c (frv_gdbarch_init): Ditto.
14025 * cris-tdep.c (cris_gdbarch_init): Ditto.
14026 * avr-tdep.c (avr_gdbarch_init): Ditto.
14027 * arm-tdep.c (arm_gdbarch_init): Ditto.
14028 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14029
14030 2004-01-17 J. Brobecker <brobecker@gnat.com>
14031
14032 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14033 Delete, no longer used.
14034 (read_subrange_type): New function, mostly extracted from
14035 read_array_type().
14036 (read_array_type): Replace extracted code by call to
14037 read_subrange_type().
14038 (dwarf2_get_attr_constant_value): New function.
14039 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14040 (add_partial_symbol): Likewise.
14041 (process_die): Likewise.
14042 (new_symbol): Likewise.
14043 (read_type_die): Likewise.
14044
14045 2004-01-16 Andrew Cagney <cagney@redhat.com>
14046
14047 * symfile.c: Update copyright year.
14048 (compare_symbols): Delete unused function.
14049 * stabsread.c: Update copyright year.
14050 (lrs_general_complaint): Delete unused function.
14051 (ref_search_value): Ditto.
14052 (get_substring): Delete declaration.
14053 * sh64-tdep.c: Update copyright year.
14054 (sh64_get_gdb_regnum): Delete unused function.
14055 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14056 Delete unused function.
14057
14058 2004-01-17 Mark Kettenis <kettenis@gnu.org>
14059
14060 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14061 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14062
14063 2004-01-16 Andrew Cagney <cagney@redhat.com>
14064
14065 Changes from Peter Schauer.
14066 * rs6000-tdep.c: Update copyright year.
14067 (rs6000_push_dummy_call): Update the stack pointer before
14068 accessing the corresponding stack region.
14069 * rs6000-nat.c: Update copyright year.
14070 (set_host_arch): Set "info.abfd" to "exec_bfd".
14071
14072 2004-01-15 Mark Kettenis <kettenis@gnu.org>
14073
14074 * blockframe.c: Update copyright year.
14075 (inside_entry_func): Don't treat a zero PC specially.
14076
14077 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
14078
14079 * gcore.c (gcore_copy_callback): Use paddr_d to print size
14080 variable.
14081 (gcore_create_callback): Ditto. Skip any memory segment that has
14082 no permissions set.
14083
14084 2004-01-14 David Carlton <carlton@kealia.com>
14085
14086 Change symbols for C++ nested types to contain the fully qualified
14087 name, if possible. (At least in the DWARF-2 case.) Partial fix
14088 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14089 c++/895.
14090 * c-exp.y (qualified_type): Handle types nested within classes.
14091 * cp-namespace.c: Update comments.
14092 (cp_set_block_scope): Delete #if 0.
14093 (cp_lookup_nested_type): Handle types nested within classes.
14094 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14095 when appropriate.
14096 (add_partial_symbol): Add the name of the enclosing namespace to
14097 types.
14098 (pdi_needs_namespace): New.
14099 (add_partial_namespace): Tweak comment.
14100 (add_partial_structure): New.
14101 (psymtab_to_symtab_1): Initialize processing_current_prefix
14102 here...
14103 (process_die): instead of here.
14104 (read_structure_scope): Try to figure out the name of the class or
14105 namespace that the structure might be defined within.
14106 (read_enumeration): Generate fully-qualified names, if possible.
14107 (read_namespace): Don't set name to NULL.
14108 (die_specification): New.
14109 (new_symbol): Generate fully-qualified names for types.
14110 (read_type_die): Determine appropriate prefix.
14111 (determine_prefix): New.
14112 (typename_concat): New.
14113 (class_name): New.
14114 * valops.c (value_aggregate_elt): Pass NOSIDE to
14115 value_struct_elt_for_reference.
14116 (value_struct_elt_for_reference): Make static, add NOSIDE
14117 parameter, call value_maybe_namespace_elt as a last resort.
14118 (value_namespace_elt): Break out code into
14119 value_maybe_namespace_elt.
14120 (value_maybe_namespace_elt): New.
14121
14122 2004-01-12 Andrew Cagney <cagney@redhat.com>
14123
14124 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14125 cooked floating-point registers.
14126 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14127 and value_to_register.
14128
14129 2004-01-13 Andrew Cagney <cagney@redhat.com>
14130
14131 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14132 * gdbarch.c: Re-generate.
14133 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14134 FUNCTION_START_OFFSET.
14135 * v850-tdep.c (v850_gdbarch_init): Ditto.
14136 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14137 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14138 * sh-tdep.c (sh_gdbarch_init): Ditto.
14139 * s390-tdep.c (s390_gdbarch_init): Ditto.
14140 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14141 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14142 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14143 * mips-tdep.c (mips_gdbarch_init): Ditto.
14144 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14145 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14146 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14147 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14148 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14149 * i386-tdep.c (i386_gdbarch_init): Ditto.
14150 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14151 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14152 * frv-tdep.c (frv_gdbarch_init): Ditto.
14153 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14154 * cris-tdep.c (cris_gdbarch_init): Ditto.
14155 * avr-tdep.c (avr_gdbarch_init): Ditto.
14156 * arm-tdep.c (arm_gdbarch_init): Ditto.
14157 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14158
14159 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
14160
14161 * infrun.c (follow_fork_mode_ask): Remove.
14162 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14163 (follow_fork): Simplify and remove internal error for
14164 follow_fork_mode_ask.
14165 (_initialize_infrun): Update "set follow-fork-mode" help text.
14166
14167 2004-01-13 Andrew Cagney <cagney@redhat.com>
14168
14169 * configure.in: Update copyright year.
14170 (build_warnings): Add -Wunused-label.
14171 * configure: Re-generate.
14172
14173 2004-01-12 Andrew Cagney <cagney@redhat.com>
14174
14175 * exec.h (exec_ops): Make "extern".
14176
14177 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14178 the function is void.
14179 (mips_pseudo_register_write): Ditto.
14180
14181 2004-01-12 Andrew Cagney <cagney@redhat.com>
14182
14183 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14184 call. Never defined.
14185 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14186 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14187 (struct sparc_gregset, struct regcache): Ditto.
14188 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14189
14190 2004-01-12 Andrew Cagney <cagney@redhat.com>
14191
14192 * mi/ChangeLog: Delete file. Renamed to ...
14193 * mi/ChangeLog-1999-2003: New file.
14194 * tui/ChangeLog: Delete file. Renamed to ...
14195 * tui/ChangeLog-1998-2003: New file.
14196
14197 2004-01-11 Mark Kettenis <kettenis@gnu.org>
14198
14199 * sparc64nbsd-tdep.c: Include "regset.h".
14200 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14201 Remove variables.
14202 (fetch_core_registers): Remove function.
14203 (sparc64nbsd_core_fns): Remove variable.
14204 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14205 functions.
14206 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14207 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14208 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14209
14210 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14211 sparc_extract_struct_value_address.
14212 (sparc32_gdbarch_init): Set extract_struct_value_address.
14213 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14214 function.
14215 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14216 return_value_on_stack.
14217
14218 * NEWS: Mention that %cs and %ss have been added to the AMD64
14219 configurations
14220
14221 * frame.c: Update copyright year.
14222 (get_prev_frame): Improve comment.
14223
14224 * sparc64fbsd-tdep.c: Include "regset.h".
14225 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14226 Remove variables.
14227 (fetch_core_registers): Remove function.
14228 (sparc64fbsd_core_fns): Remove variable.
14229 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14230 functions.
14231 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14232 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14233 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14234
14235 * sparcnbsd-tdep.c: Include "regset.h".
14236 (fetch_core_registers): Remove function.
14237 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14238 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14239 functions.
14240 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14241 TDEP->fpregset.
14242 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14243
14244 * sparc-tdep.h (struct regset): Provide opaque declaration.
14245 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14246 fpregset and sizeof_fpregset members.
14247 * sparc-tdep.c (struct regset): Provide opaque declaration.
14248 (sparc_regset_from_core_section): New function.
14249 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14250 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14251 Set regset_from_core_section when appropriate.
14252
14253 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14254
14255 * x86-64-tdep.c (amd64_non_pod_p): New function.
14256 (amd64_classify_aggregate): Return class memory for non-POD
14257 C++ structure types.
14258
14259 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14260 argument. Use it to reserve a register if necessary.
14261 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14262 amd64_push_arguments.
14263
14264 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14265
14266 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14267 register numbers in comments.
14268 * x86-64-tdep.h: Update copyright year.
14269 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14270 Adjust for addition of %cs and %ss.
14271 * amd64fbsd-nat.c: Update copyright year.
14272 (reg_offset): Add register offsets for %cs and %ss.
14273 * amd64fbsd-tdep.c: Update copyright year.
14274 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14275 (amd64fbsd_sc_reg_offset): Likewise.
14276 * x86-64-linux-nat.c: Update copyright year.
14277 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14278 and %ss.
14279 * amd64nbsd-nat.c: Update copyright year.
14280 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14281 * amd64nbsd-tdep.c: Update copyright year.
14282 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14283 * x86-64-linux-tdep.c: Update copyright year.
14284 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14285 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14286 * regformats/reg-x86-64.dat: Add %cs and %ss.
14287
14288 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14289 variables to prevent long lines. Update comments to reflect
14290 reality.
14291
14292 2004-01-09 David Carlton <carlton@kealia.com>
14293
14294 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14295 * dwarf2read.c (read_namespace): Pull out name-generating code
14296 into namespace_name. Rename previous_namespace to previous_prefix
14297 and processing_current_namespace to processing_current_prefix..
14298 (namespace_name): New function.
14299 (add_partial_symbol): Substitute uses of pdi->name with
14300 actual_name.
14301 * cp-support.h: Rename processing_current_namespace to
14302 processing_current_prefix.
14303 Update copyright year.
14304 * cp-namespace.c: Rename processing_current_namespace to
14305 processing_current_prefix.
14306 Update copyright year.
14307
14308 2004-01-09 Andrew Cagney <cagney@redhat.com>
14309
14310 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14311
14312 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14313
14314 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14315 complaining.
14316 (process_one_symbol): Deal with N_PATCH stabs.
14317
14318 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14319
14320 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14321 ifdeffed code.
14322 Update copyright year.
14323
14324 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14325
14326 * config/pa/tm-hppa.h: Update extern declarations for
14327 hppa32_hpux_frame_saved_pc_in_sigtramp,
14328 hppa32_hpux_frame_base_before_sigtramp, and
14329 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14330
14331 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14332
14333 * config/pa/tm-hppah.h: Update copyright years.
14334
14335 2004-01-08 Andrew Cagney <cagney@redhat.com>
14336
14337 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14338 (mips_o32_reg_struct_has_addr): Delete function.
14339 (mips_gdbarch_init): Update.
14340 (mips_extract_struct_value_address): Delete function.
14341
14342 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14343
14344 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14345 reality.
14346
14347 2004-01-07 Andrew Cagney <cagney@redhat.com>
14348
14349 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14350 architecture's elf flags (when available).
14351
14352 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14353 FPU to the start, check the MIPS FPU when looking for an old
14354 architecture.
14355 (set_mipsfpu_single_command): Update the architecture.
14356 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14357
14358 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14359 (mips_mask_address_p): Add "tdep" parameter.
14360 (show_mask_address, mips_addr_bits_remove): Update.
14361 (mips_dump_tdep): Update.
14362 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14363 (MIPS_STACK_ARGSIZE): Delete macro.
14364 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14365 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14366 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14367 (mips_dump_tdep): Update.
14368 (MIPS_SAVED_REGSIZE): Delete macro.
14369 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14370 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14371 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14372 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14373 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14374 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14375 (mips_pop_frame, return_value_location): Update.
14376 (mips_n32n64_return_value, mips_dump_tdep): Update.
14377
14378 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14379 MIPS ABI.
14380
14381 * mips-tdep.c: Update copyright.
14382 (mips_gdbarch_init): Merge two code blocks handling the register
14383 name and number layout.
14384
14385 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14386
14387 * tracepoint.c (validate_actionline): Fix segv at EOF
14388
14389 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14390
14391 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14392 properly for static fields.
14393
14394 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14395 Jason Molenda <jmolenda@apple.com>
14396
14397 * disasm.c: Update copyright to include 2004.
14398 (do_mixed_source_and_assembly): For uiout asm list
14399 and tuple cleanups, initialize to null_cleanup instead of
14400 NULL and do so prior to loop. Only reset when we close off
14401 the tuple/list. Move check for whether to close off the
14402 asm tuple/list to after dump_insns call where it will be run
14403 on each loop iteration.
14404
14405 2004-01-05 Andrew Cagney <cagney@redhat.com>
14406
14407 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14408 should be a switch case and not a label.
14409 * mips-tdep.c (mips32_next_pc): Delete unused labels
14410 "greater_equal_branch" and "less_zero_branch".
14411 * jv-valprint.c (java_print_value_fields): Delete unused label
14412 "flush_it".
14413
14414 * target.c (unpush_target): Only close a target that is in the
14415 target stack.
14416
14417 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14418
14419 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14420 address from [sp + 64] instead of %o2.
14421
14422 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14423 fixes PR backtrace/1476.
14424
14425 2004-01-05 Andrew Cagney <cagney@redhat.com>
14426
14427 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14428 move to start of file.
14429 * i386-tdep.h (struct regcache): Add opaque declaration.
14430 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14431 declaration.
14432 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14433 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14434 * win32-nat.c (fake_create_process): Use ISO C style definition.
14435 * stabsread.c (define_symbol): Delete #ifndef
14436 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14437 stabs_argument_has_addr call, macro never defined.
14438
14439 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14440
14441 * op50-rom.c: Delete.
14442 * w89k-rom.c: Delete.
14443 * Makefile.in: Remove references.
14444
14445 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14446
14447 * x86-64-tdep.c: Update copyright year.
14448 (struct amd64_register_info): Rename from x86_64_register_info.
14449 (amd64_register_info): Rename from x86_64_register_info.
14450 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14451 (amd64_register_name): Rename from x86_64_register_name.
14452 (amd64_register_type): Rename from x86_64_register_type.
14453 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14454 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14455 (amd64_dwarf_reg_to_regnum): Rename from
14456 x86_64_dwarf_reg_to_regnum.
14457 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14458 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14459 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14460 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14461 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14462 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14463 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14464 (amd64_frame_cache): Rename from x86_64_frame_cache.
14465 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14466 (amd64_frame_prev_register): Rename from
14467 x86_64_frame_prev_register.
14468 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14469 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14470 (amd64_sigtramp_frame_cache): Rename from
14471 x86_64_sigtramp_frame_cache.
14472 (amd64_sigtramp_frame_prev_register): Rename from
14473 x86_64_sigtramp_frame_prev_register.
14474 (amd64_sigtramp_frame_unwind): Rename from
14475 x86_64_sigtramp_frame_unwind.
14476 (amd64_sigtramp_frame_sniffer): Rename from
14477 x86_64_sigtramp_frame_sniffer.
14478 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14479 (amd64_frame_base): Rename from x86_64_frame_base.
14480 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14481 (amd64_frame_align): Rename from x86_64_frame_align.
14482 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14483 (amd64_regset_from_core_section): Rename from
14484 x86_64_regset_from_core_section.
14485 (x86_64_init_abi): Update comments.
14486
14487 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14488
14489 * MAINTAINERS (write after approval): Add myself.
14490
14491 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14492
14493 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14494 `float' arguments.
14495
14496 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14497
14498 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14499 such that it mentions a specific version of GCC that exhibits this
14500 bug.
14501
14502 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14503
14504 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14505 structure that has a single `float' member, store it in %f1 in
14506 addition to %f0.
14507
14508 * sparc-sol2-nat.c: Add missing '\'.
14509
14510 * sparc-tdep.c (sparc32_return_value): New function.
14511 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14512 Remove functions.
14513 (sparc32_gdbarch_init): Set return_value, don't set
14514 extract_return_value, store_return_value, use_struct_convention
14515 and return_value_on_stack.
14516
14517 * sparc-sol2-nat.c: Add missing ')'.
14518
14519 2004-01-03 J. Brobecker <brobecker@gnat.com>
14520
14521 * infrun.c (handle_step_into_function): New function.
14522 (handle_inferior_event): Extract out some code into the new
14523 function above.
14524
14525 2004-01-03 J. Brobecker <brobecker@gnat.com>
14526
14527 * infrun.c (handle_inferior_event): Move the declaration of
14528 real_stop_pc inside the if blocks where it is used.
14529
14530 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14531
14532 * sparc64-tdep.c (sparc64_16_byte_align_p)
14533 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14534 Use check_typedef to get subtypes of structures and unions.
14535 (sparc64_store_return_value): Fix calculation of the appropriate
14536 offset into VALBUF when storing a structure or union.
14537 (sparc64_return_value): New function.
14538 (sparc64_use_struct_convention): Remove function.
14539 (sparc64_init_abi): Set return_value, don't set
14540 extract_return_value, store_return_value and
14541 use_struct_convention.
14542
14543 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14544
14545 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14546 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14547 gdb/config/alpha/xm-alphaosf.h,
14548 gdb/config/powerpc/tm-ppcle-eabi.h,
14549 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14550 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14551 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14552 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14553 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14554 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14555 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14556 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14557 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14558 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14559 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14560 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14561 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14562 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14563 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14564 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14565 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14566 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14567 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14568 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14569 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14570 Remove lines for .cvsignore files.
14571
14572 2004-01-03 J. Brobecker <brobecker@gnat.com>
14573
14574 * infrun.c: Back out the previous change.
14575
14576 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14577
14578 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14579 sparc-*-sunos4* to the list of REMOVED configurations.
14580
14581 * configure.tgt: Add back sparc-*-vxworks*.
14582 * remote-vxsparc.c: Remove all includes except for "defs.h",
14583 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14584 Include "sparc-tdep.h".
14585 (SPARC_R_G1): New define.
14586 (vxsparc_gregset): New variable.
14587 (ext_format_sparc): Remove extern declaration.
14588 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14589 sparc32_supply_fpregset.
14590 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14591 sparc_collect_rwindow and sparc32_collect_fpregset.
14592 * config/sparc/tm-vxworks.h: New file, based on recently removed
14593 tm-vxsparc.h.
14594 * config/sparc/vxworks.mt: New file, based on recently removed
14595 vxworks.mt.
14596
14597 2004-01-03 J. Brobecker <brobecker@gnat.com>
14598
14599 * infrun.c (handle_step_into_function): New function.
14600 (handle_inferior_event): Extract out some code into the new
14601 function above.
14602
14603 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14604
14605 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14606 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14607 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14608 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14609 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14610 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14611 (sparc_nat_h): New variable.
14612 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14613 (tm-sun4os4.h): Remove dependency.
14614 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14615 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14616 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14617 sparc-tdep.o): Update dependencies.
14618 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14619 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14620 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14621 dependencies.
14622 * configure.host: Remove existing sparc-*-lynxos*,
14623 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14624 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14625 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14626 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14627 triplets.
14628 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14629 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14630 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14631 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14632 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14633 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14634 sparc64-*-solaris2* and sparc64-*-* triplets.
14635 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14636 "symtab.h" and "objfiles.h".
14637 (BIAS): Remove define.
14638 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14639 (X_DISP19): Remove macros.
14640 (sparc_fetch_instruction): Remove function.
14641 (struct gdbarch_tdep): Remove definition.
14642 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14643 (sparc_breakpoint_from_pc): Remove function.
14644 (struct sparc64_frame_cache): Remove definition.
14645 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14646 sparc64_unwind_pc): Remove functions.
14647 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14648 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14649 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14650 (sparc64_frame_cache): Change return type to `struct
14651 sparc_frame_cache *'. Simply call sparc_frame_cache.
14652 (sparc64_frame_this_id, sparc64_frame_prev_register,
14653 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14654 instead of `struct sparc64_frame_cache.
14655 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14656 sparc_analyze_control_transfer, sparc_software_single_step,
14657 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14658 _initialize_sparc64_tdep): Remove functions.
14659 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14660 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14661 macros.
14662 (sparc64_supply_gregset, sparc64_collect_gregset,
14663 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14664 (sparc64_init_abi): New function.
14665 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14666 inclusion guard. Include "sparc-tdep.h".
14667 (BIAS): Define.
14668 (r_tstate_offset, r_fprs_offset): New defines.
14669 (enum sparc_regnum): Remove defenition.
14670 (enum sparc64_regnum): Reformat.
14671 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14672 (sparc64_init_abi, sparc64_supply_gregset,
14673 sparc64_collect_gregset, sparc64_supply_fpregset,
14674 sparc64_collect_fpregset): New prototypes.
14675 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14676 Add extern declarations.
14677 (sparc64_sol2_init_abi): New prototype.
14678 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14679 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14680 prototypes.
14681 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14682 "sparnbsd-nat.h".
14683 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14684 functions.
14685 (_initialize_sparc64fbsd_nat): Remove initialization of
14686 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14687 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14688 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14689 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14690 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14691 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14692 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14693 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14694 (sparc64fbsd_r_y_offset): Remove variables.
14695 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14696 Make static and const.
14697 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14698 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14699 functions.
14700 (sparc64fbsd_gregset): New variable.
14701 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14702 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14703 and sparc64_supply_fpregset.
14704 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14705 (sparc64fbsd_sigtramp_frame_this_id)
14706 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14707 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14708 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14709 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14710 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14711 * sparcnbsd-tdep.c: Update copyright year. Include
14712 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14713 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14714 "value.h" and "sparcnbsd-tdep.h".
14715 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14716 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14717 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14718 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14719 defines.
14720 (sparcnbsd_gregset): New variable.
14721 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14722 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14723 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14724 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14725 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14726 variables.
14727 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14728 (sparc32nbsd_sigcontext_frame_this_id)
14729 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14730 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14731 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14732 (sparcnbsd_get_longjmp_target_32,
14733 sparcnbsd_get_longjmp_target_64): Remove functions.
14734 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14735 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14736 sparcnbsd_init_elf): Remove.
14737 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14738 (sparcnbsd_elf_init_abi): New functions.
14739 (_initialize_sparcnbsd_tdep): New prototype.
14740 (_initialize_sparnbsd_tdep): Update.
14741 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14742 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14743 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14744 * config/sparc/linux.mh: Update comment.
14745 (XM_FILE, HOST_IPC): Remove variables.
14746 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14747 sparc-linux-nat.o.
14748 * config/sparc/linux.mt: Update comment.
14749 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14750 * config/sparc/nbsd.mt: Reformat.
14751 * config/sparc/nbsd64.mh: Update comment.
14752 (NATDEPFILES): Add sparc-nat.o.
14753 * config/sparc/nbsd64.mt: Update comment.
14754 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14755 (TM_FILE): Set to tm-nbsd.h.
14756 * config/sparc/nbsdelf.mh: Update comment.
14757 (NATDEPFILES): Add sparc-nat.o.
14758 (XM_FILE): Delete.
14759 * config/sparc/nbsdaout.mh: Update comment.
14760 (NATDEPFILES): Add sparc-nat.o
14761 (XM_FILE): Delete.
14762 * config/sparc/nm-linux.h: Update copyright year. Don't include
14763 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14764 inclusion.
14765 (KERNEL_U_SIZE): Remove define.
14766 (kernel_u_size): Remove prototype.
14767 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14768 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14769 "regcache.h".
14770 (CHILD_PREPARE_TO_STORE): Remove define.
14771 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14772 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14773 sparcnbsd-nat.c: Rewrite files.
14774 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14775 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14776 sparcnbsd-tdep.h: Remove files.
14777 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14778 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14779 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14780 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14781 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14782 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14783 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14784 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14785 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14786 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14787 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14788 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14789 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14790 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14791 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14792 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14793 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14794 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14795 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14796
14797 2004-01-02 Andrew Cagney <cagney@redhat.com>
14798
14799 From 2003-12-18 Kazuhiro Inaoka:
14800 * configure.host: Add m32r-linux target.
14801
14802 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14803
14804 * top.c (print_gdb_version): Update year to 2004.
14805
14806 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14807
14808 * MAINTAINERS: Add myself to the write-after-approval category.
14809
14810 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14811
14812 From Bernardo Innocenti <bernie@develer.com>:
14813 * configure.tgt: Add uClinux target.
14814
14815 2004-01-02 Andrew Cagney <cagney@redhat.com>
14816
14817 * utils.c (do_my_cleanups): Make static, add forward declaration.
14818 * defs.h (do_my_cleanups): Delete declaration.
14819
14820 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14821
14822 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14823 bfd/ChangeLog-0203.
14824
14825 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14826
14827 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14828 in <machine/reg.h>.
14829 * configure, config.in: Regenerate.
14830
14831 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14832 tui/ChangeLog-1998-2003.
14833 \f
14834 Local Variables:
14835 mode: change-log
14836 left-margin: 8
14837 fill-column: 74
14838 version-control: never
14839 End:
This page took 0.570264 seconds and 5 git commands to generate.