Correct last mispasted entry
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
048a01af 12004-12-13 Ben Elliston <bje@au.ibm.com>
323e0a4a 2
048a01af
BE
3 * f-exp.y (typename): Remove unused nonterminal.
4 (name): Likewise.
5
62004-12-12 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
7
8 Committed by Andrew Cagney.
323e0a4a
AC
9 * abug-rom.c, ada-lang.c, ada-typeprint.c, alpha-tdep.c: i18n
10 markup.
11
91a533d4
AC
122004-12-12 Andrew Cagney <cagney@gnu.org>
13
39ee2ff0
AC
14 * frame.c (get_prev_frame): When unwinding normal frames, check
15 that the PC isn't zero.
16 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Delete check for a
17 zero PC.
18
91a533d4
AC
19 * MAINTAINERS: Reword description of what "Target Instruction Set
20 Architectures" covers.
21
0d9b270c
MK
222004-12-12 Mark Kettenis <kettenis@gnu.org>
23
24 * hppa-hpux-nat.c (hppa_hpux_child_can_run): Tweak comment.
25
d3322e8a
MK
262004-12-11 Mark Kettenis <kettenis@gnu.org>
27
eeca586f
MK
28 * hppa-hpux-nat.c (ss_mpsfu_high): Remove define.
29 (hppa_hpux_save_state_offset): New function, replacing variable
30 with the same name.
31 (hppa_cannot_fetch_register, hppa_cannot_store_register): Remove
32 functions.
33 (hppa_hpux_fetch_register): Don't call hppa_cannot_fetch_register.
34 Use new hppa_hpux_save_state_offset function. Add special
35 handling for handling 64-bit "flags" register.
36 (hppa_hpux_store_register): Likewise.
37 (hppa_hpux_child_can_run): Tweak comment.
38
7ba0e0c2
MK
39 * inf-ttrace.c (inf_ttrace_him): Set TTEVT_BPT_SSTEP if available.
40 (inf_ttrace_attach): Likewise.
41 (inf_ttrace_resume_callback): New function.
42 (inf_ttrace_resume): Don't use TT_PROC_CONTINUE. Iterate over all
43 lwps and call inf_ttrace_resume_callback instead.
44 (inf_ttrace_wait): Handle TTEVT_BPT_SSTEP.
45
d3322e8a
MK
46 * inf-ttrace.c (_initialize_inf_ttrace): Unconditionially compile.
47
e02147b1
MS
482004-12-10 Michael Snyder <msnyder@redhat.com>
49
50 * mn10300-tdep.c: New file. This is a re-implementation of
51 the mn10300 target back-end using the new frame api etc.
52 * mn10300-tdep.h: New file.
53 * config/mn10300/mn10300.mt: New file (or replace old file).
54 * configure.tgt: Add mn10300 target.
55
01926a69
MK
562004-12-10 Mark Kettenis <kettenis@gnu.org>
57
c5101575
MK
58 * configure.host (hppa*-*-hpux11*): Remove.
59 * config/pa/hpux11.mh: Remove file.
60
01926a69
MK
61 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Fix
62 typo.
63
d737fd7f
KW
642004-12-10 Kris Warkentin <kewarken@qnx.com>
65
66 * nto-tdep.h: Include osabi.h. Prototypes for generic Neutrino
67 osabi sniffer, signal handling initializer, 'in_dynsym_resolve_code'
68 function and nto_set_target function.
69 (struct nto_target_ops): Put comments inline with struct. Add osabi
70 sniffer hook. Redefine macros to permit testing/assignment. Remove
71 nto_ prefix from members.
72 * nto-tdep.c (nto_find_and_open_solib): Allocate all buffers
73 dynamically to support arbitrary root paths. Check for basename of
74 lib in search path and then check for absolute.
75 (nto_in_dynsym_resolve_code): New function.
76 (nto_core_sniffer): New function.
77 (regset_core_fns): Register core sniffer.
78 (nto_initialize_signals): New function.
79 (_initialize_nto_tdep): Move signal initialization code to above to
80 avoid initialization race conditions.
81 (nto_set_target): New function.
82 * nto-procfs.c: Minor formatting/indenting changes.
83 (procfs_is_nto_target): New function.
84 (procfs_open): Set nto_is_nto_target.
85 (_initialize_procfs): Ditto. Remove notice_signals() call to avoid
86 initialization race conditions.
87 (procfs_create_inferior): Resume inferior after creation.
88 * i386-nto-tdep.c: Declare i386_nto_target.
89 (init_i386nto_ops): Initialize i386_nto_target instead of
90 current_nto_target.
91 (i386nto_init_abi): Initialize signals. Call nto_set_target. Set
92 TARGET_SO_IN_DYNSYM_RESOLVE_CODE.
58544210
MK
93 (_initialize_i386nto_tdep): Call init_i386nto_ops. Register osabi
94 sniffer.
d737fd7f 95
3cd36e7c
MK
962004-12-10 Mark Kettenis <kettenis@gnu.org>
97
98 * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
99 (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
100 (hppa_hpux_init_abi): Reformat long line.
101
08d53055
MK
1022004-12-09 Mark Kettenis <kettenis@gnu.org>
103
104 * hppa-hpux-tdep.c: Include "regset.h".
105 (HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
106 (HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
107 (HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
108 (HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
109 (hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
110 (hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
111 functions.
112 (hppa_hpux_regset): New variable.
113 (hppa_hpux_regset_from_core_section): New function.
114 (hppa_hpux_init_abi): Set regset_from_core_section.
115 (hppa_hpux_core_osabi_sniffer): New function.
116 (_initialize_hppa_hpux_tdep): Register
117 hppa_hpux_core_osabi_sniffer.
118 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
119 * config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
120
45851e00
RC
1212004-12-09 Randolph Chung <tausq@debian.org>
122
123 * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
124 text and data sections.
125 (pa64_current_sos): Also include the dld in the list of current shared
126 objects.
127 (pa64_solib_get_solib_by_pc): Update comments.
128 (pa64_solib_get_text_base): New function.
129 (pa64_solib_select): Set solib_get_text_base method.
130
1bac0d4d
DJ
1312004-12-08 Daniel Jacobowitz <dan@debian.org>
132
133 * linux-thread-db.c (BUILD_THREAD): Delete.
134 (thread_get_info_callback): Include LWP ID in thread ID.
135 (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
136 (lwp_from_thread): Use the LWP ID from the thread ID.
137
254ce0a1
RC
1382004-12-07 Randolph Chung <tausq@debian.org>
139
140 * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
141 register for both 32- and 64-bit targets.
142
cc9bed83
RC
1432004-12-07 Randolph Chung <tausq@debian.org>
144
145 * frame.c (get_prev_frame): Don't terminate unwinding at main if we
146 are unwinding through a dummy frame.
147
f77a2124
RC
1482004-12-07 Randolph Chung <tausq@debian.org>
149
150 * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
151 * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
152 (hppa_hpux_init_abi) Set unwind_adjust_stub method.
153 * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
154 if defined.
155
f1b38a57
RC
1562004-12-07 Randolph Chung <tausq@debian.org>
157
158 * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
159 unwinding from a frame with pc == 0.
160 (hppa_stub_frame_this_id): Likewise.
161 (hppa_stub_frame_prev_register): Only provide real values if the frame
162 cache is not NULL.
163
419b8bfb
RC
1642004-12-07 Randolph Chung <tausq@debian.org>
165
166 * solib-som.c: New file.
167 * solib-som.h: New file.
168 * solib-pa64.c: New file.
169 * solib-pa64.h: New file.
170
6e93c4f7
MK
1712004-12-07 Mark Kettenis <kettenis@gnu.org>
172
173 * Makefile.in (inf-ttrace.o): Fix typo.
174
c273b20f
JB
1752004-12-07 Jim Blandy <jimb@redhat.com>
176
177 * remote.c (remote_threads_info, remote_current_thread): Use
178 strtoul to parse thread ID numbers.
179
cc72850f
MK
1802004-12-07 Mark Kettenis <kettenis@gnu.org>
181
a7be7fa8
MK
182 * inf-ttrace.c: Include "gdbthread.h".
183 (inf_ttrace_num_lwps): New variable.
184 (inf_ttrace_num_lwps_in_syscall): Renamed from
185 inf_ttrace_num_threads_in_syscall.
186 (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
187 TTEVT_LWP_TERMINATE events.
188 (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
189 zero.
190 (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
191 (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
192 Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
193 events.
194 (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
195 default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
196 TTEVT_LWP_TERMINATE events.
197 (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
198 (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
199 * Makefile.in (inf-ttrace.o): Update dependencies.
200
cc72850f
MK
201 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
202 prototypes.
203 * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
204 Make global. Remove HP-UX specific code. Use
205 frame_unwind_register_unsigned instead of
206 frame_unwind_register_signed.
207 (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
208 Remove HP-UX specific code.
209 (hppa_unwind_pc): Make global. Remove HP-UX specific code.
210 (hppa_frame_prev_register_helper): Set "flags" register to zero
211 for all unwound frames.
212 (hppa_gdbarch_init): Adjust.
213 * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
214 (hppa_hpux_read_pc, hppa_hpux_write_pc)
215 (hppa_hpux_unwind_pc): New functions.
216 (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
217
f47b1503
AS
2182004-12-07 Andreas Schwab <schwab@suse.de>
219
220 * main.c (long_options): Add entry for "-l".
221 (print_gdb_help): Add line for -l option.
222 * NEWS: Mention it.
223
c1299d67
RC
2242004-12-05 Randolph Chung <tausq@debian.org>
225
226 * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
227 DEPRECATED_REGISTER_BYTE.
228
57dac9e1
RC
2292004-12-05 Randolph Chung <tausq@debian.org>
230
231 * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
232 records.
233
b1acf338
MK
2342004-12-05 Mark Kettenis <kettenis@gnu.org>
235
a61ce9b4
MK
236 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
237 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
238
b1acf338
MK
239 * hppa-hpux-tdep.c: Update copyright notice and year.
240
fcab3fb5
RE
2412004-12-05 Richard Earnshaw <rearnsha@arm.com>
242
243 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
244 (get_field, put_field): Assert that the format is one we can handle.
245 Simplify logic accordingly.
246 (floatformat_normalize_byteorder): New function.
247 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
248 to normalize and select modified byte order. Pass modified byte order
249 to get_field.
250 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
251 Likewise.
252 (convert_doublest_to_floatformat): Select an appropriate intermediate
253 byte order if necessary. Always convert to the final format before
254 returning.
255
48bb3cce
DJ
2562004-12-04 Daniel Jacobowitz <dan@debian.org>
257
258 PR tui/1703
259 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
260 Suggested by Joshua Neuheisel.
261
fe46cd3a
RC
2622004-12-03 Randolph Chung <tausq@debian.org>
263
264 * gdbarch.sh (instruction_nullified): Delete.
265 * gdbarch.c: Regenerate.
266 * gdbarch.h: Regenerate.
267 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
268 nullified.
269 (hppa_unwind_pc): Likewise.
270 (hppa_instruction_nullified): Delete.
271 (hppa_gdbarch_init): Don't set instruction_nullified method.
272 * infrun.c (infwait_states): Remove infwait_nullified_state.
273 (handle_inferior_event): Remove handling of infwait_nullified_state.
274 Remove handling of nullified instructions.
275
dd515450
MK
2762004-12-03 Mark Kettenis <kettenis@gnu.org>
277
932936f0
MK
278 * inf-ttrace.c: Include <sys/mman.h>.
279 (struct inf_ttrace_page): New.
280 (struct inf_ttrace_page_dict): New.
281 (inf_ttrace_num_threads_in_syscall)
282 (inf_ttrace_reenable_page_protections): New variables.
283 (inf_ttrace_enable_syscall_events)
284 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
285 (inf_ttrace_add_page, inf_ttrace_insert_page)
286 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
287 (inf_ttrace_enable_page_protections)
288 (inf_ttrace_disable_page_protections)
289 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
290 (inf_ttrace_can_use_hw_breakpoint)
291 (inf_ttrace_region_size_ok_for_hw_watchpoint)
292 (inf_ttrace_stopped_by_watchpoint): New functions.
293 (inf_ttrace_him): Remove unsused varaible `tts'.
294 (inf_ttrace_create_inferior): Add assertionts.
295 (inf_ttrace_mourn_inferior): Clear page dictionary.
296 (inf_ttrace_attach): Set initial event mask.
297 (inf_ttrace_detach): Reset number of threads in system call.
298 (inf_ttrace_wait): Deal with system call events.
299 (inf_ttrace_target): Initialize "hardware" watchpoint-related
300 parts of the target vector.
301 (_initialize_inf_ttrace): New prototype and function.
302
dd515450
MK
303 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
304 type of `gp' variable.
305
73fb7068
RS
3062004-12-03 Richard Sandiford <rsandifo@redhat.com>
307
308 * README: Remove config.if from directory listing.
309
515921d7
JB
3102004-12-01 Joel Brobecker <brobecker@gnat.com>
311
312 * alpha-tdep.c (alpha_register_name): Add comment.
313 (alpha_cannot_fetch_register): Exclude registers numbers which
314 are no longer used from the list of registers that can be fetched.
315 (alpha_cannot_store_register): Exclude registers numbers which
316 are no longer used from the list of registers that can be stored.
317 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
318 core_reg_mapping array.
319
1cc759c3
JB
3202004-12-01 Joel Brobecker <brobecker@gnat.com>
321
322 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
323 the register value from the correct frame.
324
b546247c
RC
3252004-11-30 Randolph Chung <tausq@debian.org>
326
327 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
328 (hppa_linux_in_dyncall): Check that we are inside the range of
329 $$dyncall, not necessarily at the first insn.
330 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
331 even if the pc does not point to the first insn of the trampoline.
332
46905982
RC
3332004-11-30 Randolph Chung <tausq@debian.org>
334
335 * breakpoint.c (break_at_finish_command): Delete.
336 (break_at_finish_command_1): Delete.
337 (break_at_finish_at_depth_command): Delete.
338 (break_at_finish_at_depth_command_1): Delete.
339 (tbreak_at_finish_command): Delete.
340 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
341 and bx commands.
342
80b93d6b
AC
3432004-11-30 Andrew Cagney <cagney@gnu.org>
344
a7711b1f
AC
345 * config/nm-gnu.h: Delete file.
346 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
347
80b93d6b
AC
348 * config/nm-sysv4.h: Delete file.
349 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
350 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
351 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
352 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
353 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
354
31ffb221
AC
3552004-11-29 Andrew Cagney <cagney@gnu.org>
356
357 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
358 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
359 as can-commit architecture developers.
91a533d4 360
3919e12c
MK
3612004-11-29 Mark Kettenis <kettenis@gnu.org>
362
075ccec8
MK
363 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
364 (sparc32_skip_prologue): Skip instructions that store arguments in
365 registers into their corresponding stack slots.
366
388e0111
MK
367 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
368 tm-solib.h.
369 * config/m68k/obsd.mh (NAT_FILE): Likewise.
370
19671c2b
MK
371 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
372 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
373 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
374 sparc32nbsd_elf_init_abi. Remove duplicate code.
375
77a7fe6d
MK
376 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
377 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
378 * config/sparc/nm-nbsd.h: Remove file.
379 * config/sparc/nm-nbsdaout.h: Remove file.
380
cbfc58d1
MK
381 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
382 (sparc_xfer_partial): New function.
383 (sparc_target): Save value of to_xfer_partial from ptrace vector.
384 Set to_xfer_partial.
385
3919e12c
MK
386 * fork-child.c (fork_inferior): Fork instead of vfork if
387 PRE_TRACE_FUN is non-null.
388
ebd98106
FF
3892004-11-24 Fred Fish <fnf@specifixinc.com>
390
391 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
392 compiler generated function calls made as part of a prologue.
393
eee22bf8
MK
3942004-11-23 Mark Kettenis <kettenis@gnu.org>
395
396 * inf-ttrace.c: New file.
397 * inf-ttrace.h: New file.
398 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
399 Include "inf-ttrace.h".
400 (ss_mpsfu_high): Define to ss_tlsp if necessary.
401 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
402 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
403 ptrace systems.
404 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
405 instead of inf_ptrace_target.
406 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
407 * Makefile.in (inf_ttrace_h): New variable.
408 (hppa-hpux-nat.o): Update dependency.
409 (inf-ttrace.o): New dependency.
410 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
411
3ca64954
RC
4122004-11-23 Randolph Chung <tausq@debian.org>
413
414 * arch-utils.c (generic_instruction_nullified): New.
415 * arch-utils.h (generic_instruction_nullified): New.
416 * gdbarch.sh (instruction_nullified): New method.
417 * gdbarch.c: Regenerate.
418 * gdbarch.h: Regenerate.
419 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
420 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
421 new gdbarch method.
422 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
423 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
424 static. Rewrite to work directly off the passed regcache.
425 (hppa_gdbarch_init): Set instruction_nullified method.
426
5465445a
JB
4272004-11-23 Joel Brobecker <brobecker@gnat.com>
428
429 * sparc-tdep.c (sparc_is_unimp_insn): New function.
430 (sparc32_frame_cache): For functions where there is no debugging
431 information to help us determine whether it's a struct-return
432 function or not, fallback on checking whether the instruction
433 at the return address is an "unimp" instruction or not.
434
3f6306ec
DA
4352004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
436
871cce51
DA
437 * MAINTAINERS: Add myself to write after approval section.
438
3f6306ec
DA
439 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
440 hpux-thread.c to suppress children from running.
441 (hppa_hpux_child_can_run): New function.
442 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
443 * hpux-thread.c: Include string.h and hppa-tdep.h.
444 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
445 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
446 (hpux_thread_store_registers): Replace deprecated_registers with
447 calls to regcache_raw_read.
448 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
449
f5ccf7a2
MK
4502004-11-21 Mark Kettenis <kettenis@gnu.org>
451
452 * sparc64fbsd-nat.c: Update copyright year.
453 (_initialize_sparc64fbsd_nat): Construct and add target vector.
454 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
455 inftarg.o.
456
8c3900e4
DJ
4572004-11-21 Daniel Jacobowitz <dan@debian.org>
458
459 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
460
b957e937
DJ
4612004-11-21 Daniel Jacobowitz <dan@debian.org>
462
463 * linux-nat.c (my_waitpid): New function.
464 (linux_test_for_tracefork): Make more robust and verbose. Take
465 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
466 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
467 argument. Update calls to linux_test_for_tracefork.
468 (linux_enable_event_reporting, child_follow_fork)
469 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
470 (child_insert_exec_catchpoint): Update calls to
471 linux_supports_tracefork and linux_supports_tracevforkdone.
472
65d3800a
DJ
4732004-11-21 Daniel Jacobowitz <dan@debian.org>
474
475 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
476 (value_subscripted_rvalue): Likewise.
477 * valops.c (search_struct_field, value_slice): Likewise.
478
2c4a536d
MK
4792004-11-21 Mark Kettenis <kettenis@gnu.org>
480
481 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
482 Reorder includes a bit. Fix comment.
483 * Makefile.in (inf-ptrace.o): Update dependencies.
484
fefa1888
AS
4852004-11-21 Andreas Schwab <schwab@suse.de>
486
487 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
488 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
489 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
490 to glibc_skip_solib_resolver.
491 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
492 solib-legacy.o.
493 * Makefile.in (m68klinux-tdep.o): Update dependencies.
494
d564a7d4
DA
4952004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
496
497 * infttrace.h (ttrace_write_reg_64): Add prototype.
498 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
499 expression.
500 (store_inferior_registers): Correct formatting. Replace uses of
501 deprecated_registers with calls to regcache_raw_read,
502 regcache_raw_write_part and regcache_raw_read_part.
503
3f70a5e9
MK
5042004-11-21 Mark Kettenis <kettenis@gnu.org>
505
506 * config/pa/hppahpux.mh: Remove file.
507 * config/pa/hpux1020.mh: Remove file.
508
ced0d73d
AS
5092004-11-20 Andreas Schwab <schwab@suse.de>
510
511 * configure.host: Set host floatformat for m68k.
512
fcf54f50
EZ
5132004-11-20 Eli Zaretskii <eliz@gnu.org>
514
515 * config/djgpp/fnchange.lst: Resolve file-name clash between
516 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
517
a7289609
MK
5182004-11-20 Mark Kettenis <kettenis@gnu.org>
519
eeb8076c
MK
520 * hppa-hpux-nat.c: New file.
521 * config/pa/hpux.mh (NATDEPFILES): New file.
522 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
523 (hppa-hpux-nat.o): New dependency.
524 * configure.host: Remove hppa*-*-hpux10.20.
525 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
526
f6ffd89b
MK
527 * inf-ptrace.c: Fix coding style.
528
f1bc22da
MK
529 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
530 * infptrace.c (call_ptrace): Simply call ptrace with four
531 arguments.
532
e31272c3
MK
533 * dbxread.c (process_one_symbol): Fix a few coding standard
534 issues. Improve code formatting.
535
91f54576
MK
536 * dbxread.c: Include "gdb_string.h".
537 (record_minimal_symbol, read_ofile_symtab): Replace
538 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
539 * Makefile.in (dbxread.o): Update dependencies.
540
a7289609
MK
541 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
542 of bytes read for aligned LEB128 encodings.
543
57ac95b8
MK
5442004-11-19 Mark Kettenis <kettenis@gnu.org>
545
546 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
547 parse_and_eval_address to u_long before converting it to a pointer
548 type.
549 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
550 ps_strings from int to u_long.
551 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
552 u_long instead of CORE_ADDR.
553
ceddaf06
MK
5542004-11-18 Mark Kettenis <kettenis@gnu.org>
555
556 * dbxread.c (process_one_symbol): Do not adjust address of first
557 N_SLINE stab for a function for code generated by non-GCC
558 compilers.
559
915a2d21
KB
5602004-11-18 Kevin Buettner <kevinb@redhat.com>
561
562 * solib-null.c: New file.
563
92790ee7
AC
5642004-11-17 Andrew Cagney <cagney@gnu.org>
565
566 * MAINTAINERS: Drop MIPS and remote.
567
0c16dd26
AC
5682004-11-15 Andrew Cagney <cagney@gnu.org>
569
570 * findvar.c (value_of_register): Set the frame ID.
571 * value.c (value_primitive_field): Copy the frame ID.
572 * valops.c (value_assign): Simplify lval_register case, there's
573 always a frame.
574
2fdf551c
DJ
5752004-11-14 Daniel Jacobowitz <dan@debian.org>
576
577 * Makefile.in (mips-linux-tdep.o): Update dependencies.
578 * mips-linux-tdep.c: Include "regcache.h".
579 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
580
98754800
DJ
5812004-11-14 Daniel Jacobowitz <dan@debian.org>
582
583 * Makefile.in (linux-thread-db.o): Fix typo in last change.
584
ed89d175
DJ
5852004-11-14 Daniel Jacobowitz <dan@debian.org>
586
587 * linux-thread-db.c: New file, renamed from thread-db.c.
588 * thread-db.c: Remove.
589 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
590 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
591 to linux-thread-db.o.
592 * config/arm/linux.mh (NATDEPFILES): Likewise.
593 * config/i386/linux.mh (NATDEPFILES): Likewise.
594 * config/i386/linux64.mh (NATDEPFILES): Likewise.
595 * config/ia64/linux.mh (NATDEPFILES): Likewise.
596 * config/m32r/linux.mh (NATDEPFILES): Likewise.
597 * config/m68k/linux.mh (NATDEPFILES): Likewise.
598 * config/mips/linux.mh (NATDEPFILES): Likewise.
599 * config/pa/linux.mh (NATDEPFILES): Likewise.
600 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
601 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
602 * config/s390/s390.mh (NATDEPFILES): Likewise.
603 * config/sparc/linux.mh (NATDEPFILES): Likewise.
604 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
605
8851ec7a
AC
6062004-11-13 Andrew Cagney <cagney@gnu.org>
607
f97fe8ff
AC
608 * config/i386/i386lynx.mh: Delete file.
609 * config/i386/i386lynx.mt: Delete file.
610 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
611 * i386ly-tdep.c: Delete.
612
5873946b
AC
613 * config/tm-lynx.h: Delete, inline contents ...
614 * config/rs6000/tm-rs6000ly.h: ... here.
615
a69637bd
AC
616 * config/tm-sysv4.h: Delete file, inlining contents.
617 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
618 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
619 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
620
8851ec7a
AC
621 * regcache.h (deprecated_register_valid): Delete.
622 (deprecated_registers): Delete.
623 * regcache.c (deprecated_register_valid): Delete.
624 (deprecated_registers): Delete.
625 (deprecated_read_register_byte, _initialize_regcache)
626 (deprecated_write_register_bytes, build_regcache): Update.
627 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
628 remote-sds.o.
629 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
630 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
631
9445aa30
AC
632 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
633 v850-*-* under removed.
634 * configure.host: Delete ns32k-*-netbsd*.
635 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
636 ns32k-*-netbsd*, and v850*-*-*.
637 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
638 "Deleted"
639 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
640 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
641 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
642 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
643 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
644 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
645 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
646 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
647 * v850-tdep.c: Delete.
648
f6e1bffc
JB
6492004-11-13 Joel Brobecker <brobecker@gnat.com>
650
651 * irix5-nat.c (fetch_core_registers): Replace use of
652 deprecated_registers by equivalent code.
653
44ed547b
JB
6542004-11-13 Joel Brobecker <brobecker@gnat.com>
655
656 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
657 with equivalent code.
658 (fill_fpregset): Likewise.
659
e84ecc99
AC
6602004-11-13 Andrew Cagney <cagney@gnu.org>
661
ca1a823a
AC
662 * MAINTAINERS: Do not list "Deleted" architectures.
663
e84ecc99
AC
664 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
665 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
666 sparc-*-vxworks*.
667 * NEWS: Mention that vxworks was deleted.
668 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
669 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
670 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
671 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
672 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
673 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
674 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
675 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
676 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
677 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
678 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
679 * remote-vxmips.c, remote-vx.c: Delete.
680 * remote-vx68.c: Delete.
681 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
682 * config/m68k/os68k.mt, ada-lang.h: Ditto.
683 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
684 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
685
01e937bc
EZ
6862004-11-13 Eli Zaretskii <eliz@gnu.org>
687
29247324
EZ
688 * config/i386/xm-go32.h: Don't include fopen-bin.h.
689 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
690
691 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
692 branch that doesn't define CRLF_SOURCE_FILES; always use
693 binary-mode open.
694 (print_source_lines_base, forward_search_command)
695 (reverse_search_command): Enable the code that accepts DOS-style
696 CRLF line endings on all platforms (this removes the need for
697 CRLF_SOURCE_FILES).
698
f8f0d88a 699 * defs.h: Fix wording of the comment before FOPEN_RB.
29247324 700 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
f8f0d88a 701
01e937bc
EZ
702 * config/djgpp/fnchange.lst: Group renames for opcode directory
703 together.
704
705 * config/djgpp/djconfig.sh: Replace file names that don't exist
706 anymore with existing files, for checking the unpacked
707 distribution.
708
709 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
710 Export pre-cooked values in configure-* targets that begin with
711 "@test -f stage_last".
712
25ae5d16
AC
7132004-11-12 Andrew Cagney <cagney@gnu.org>
714
715 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
716 * value.h (struct value): Update comment.
717 * valops.c (value_assign): Fold lval_reg_fame_relative into
718 lval_register.
719 * findvar.c (value_from_register, locate_var_value): Ditto.
720
d7318818
RC
7212004-11-12 Randolph Chung <tausq@debian.org>
722
723 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
724 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
725 (write_exp_msymbol): Remove conditional check for symbols starting
726 with $. Update comments.
727
89676665
RC
7282004-11-12 Randolph Chung <tausq@debian.org>
729
730 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
731 so_lib_thread_start_addr.
732 * pa64solib.h (so_list): Forward declare.
733 (pa64_solib_thread_start_addr): Prototype.
734 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
735 (no_shared_libraries): Remove.
736 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
737 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
738 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
739 the elf solib handler to find the start address.
740
741 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
742 files to the target makefile.
743 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
744 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
745 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
746
747 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
b82f24bf 748 files for symbol reading and shared library handling here.
89676665 749 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
b82f24bf
RC
750 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
751 without bringing in 64-bit support.
89676665 752
df407dfe
AC
7532004-11-12 Andrew Cagney <cagney@gnu.org>
754
4991999e
AC
755 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
756 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
757 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
758 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
759 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
760 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
761 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
762
9ee8fc9d
AC
763 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
764 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
765 (VALUE_REGNUM): Define.
766 (struct value): Delete location.regnum, rename "regno" to
767 "regnum".
768 * value.c, valops.c, valarith.c, findvar.c: Update.
769
df407dfe
AC
770 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
771 (VALUE_BITPOS): Delete.
772 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
773 * value.c (value_type, value_offset, value_bitpos)
774 (value_bitsize): New functions. Update references.
775 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
776 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
777 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
778 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
779 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
780 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
781 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
782 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
783 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
784
61c82a3b
AC
7852004-11-12 Andrew Cagney <cagney@gnu.org>
786
787 * cris-tdep.c (cris_register_offset): Delete, never called.
788 (cris_spec_reg_applicable): Delete cris_ver_sim.
789 * MAINTAINERS: List d10v as OBSOLETE.
790 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
791 FOPEN_WB et.al., defined by "fopen-bin.h".
792
5aac166f
RC
7932004-11-12 Randolph Chung <tausq@debian.org>
794
795 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
796 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
797 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
798 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
799
4fab48b9
MK
8002004-11-12 Mark Kettenis <kettenis@jive.nl>
801
802 * tui/tui-io.c: Don't include "terminal.h".
803 * Makefile.in (tui-io.o): Update dependencies.
804
9b098f24
KI
8052004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
806
807 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
808 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
809 set_gdbarch_regset_from_core_section for core file support.
810 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
811 New functions.
812
a71f8c30
RC
8132004-11-11 Randolph Chung <tausq@debian.org>
814
815 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
816 stop_after_branch parameter and use it to determine if we should look
817 at the delay slot of the first branch insn to find prologue insns.
818 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
819 (hppa_frame_cache): Likewise.
820
50b2f48a
RC
8212004-11-11 Randolph Chung <tausq@debian.org>
822
823 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
824 register so that it can be unwound from anywhere in the prologue.
825
be723e22
MS
8262004-11-10 msnyder <msnyder@redhat.com>
827
828 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
829 must invalidate lr_reg (so we don't try to save it again).
830 Ditto for cr_offset and cr_reg.
831
d6f7abdf
AC
8322004-11-05 Jon Beniston <jon@beniston.com>
833
216c5547 834 Committed by Andrew Cagney.
d6f7abdf
AC
835 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
836 when an unexpected packet is received, as the target stubs
837 continually retransmit the same packet until ACKed.
838
1d225535
RC
8392004-11-10 Randolph Chung <tausq@debian.org>
840
841 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
d6f7abdf 842 frame's type.
1d225535 843
2315ffec
RC
8442004-11-10 Randolph Chung <tausq@debian.org>
845
846 * blockframe.c (inside_entry_func): Move to .....
847 * frame.c (inside_entry_func): ... here, and make static.
848 (backtrace_past_entry): New flag.
849 (get_prev_frame): Stop backtrace at the entry function if enabled
850 by flag. Update comments.
851 (_initialize_frame): Add command to set backtrace_past_entry flag.
852 * defs.h (inside_entry_func): Remove prototype.
853
917c78fc
MK
8542004-11-10 Mark Kettenis <kettenis@gnu.org>
855
856 * dwarf2read.c: Fix formatting.
857
994b9211
AC
8582004-11-10 Andrew Cagney <cagney@gnu.org>
859
860 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
861 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
862 macros with function declarations.
863 * value.c (coerce_ref, coerce_array, coerce_number)
864 (coerce_enum): New functions.
865 (value_as_long, value_as_address): Update.
866 * ada-lang.c (ada_coerce_ref, ada_value_binop)
867 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
868 * jv-lang.c (evaluate_subexp_java): Update.
869 * valarith.c (value_less, value_neg, value_complement)
870 (value_binop, value_add, value_subscript, value_x_binop)
871 (value_logical_not, value_sub): Update.
872 * valops.c (check_field, value_struct_elt, value_ind)
873 (value_find_oload_method_list, value_cast, value_assign): Update.
874 * eval.c (evaluate_subexp_standard): Update.
875
06987e64
MK
8762004-11-10 Mark Kettenis <kettenis@gnu.org>
877
878 * mips-tdep.c (mips32_relative_offset): Change return type to
879 LONGEST, change argument type to ULONGEST. Fix sign-extension.
880
4a302917
RC
8812004-11-10 Randolph Chung <tausq@debian.org>
882
883 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
884 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
885 (hppa_fetch_pointer_argument): Likewise.
886 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
887 deprecated_read_memory_nobpt.
888 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
889 add_set_cmd sequence with add_setshow_boolean_cmd.
890
390e974f
AC
8912004-11-09 Andrew Cagney <cagney@gnu.org>
892
893 GDB 6.3 released from GDB 6.3 branch.
894
92e023d6
AC
8952004-11-09 Andrew Cagney <cagney@gnu.org>
896
897 * values.c: Rename to ...
898 * value.c: ..., new file.
899 * Makefile.in: Update.
900
d10891d4
DJ
9012004-11-09 Daniel Jacobowitz <dan@debian.org>
902
903 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
904 size.
905
00a4c844
AC
9062004-11-09 Andrew Cagney <cagney@gnu.org>
907
c44523e7
AC
908 * TODO: Delete.
909
00a4c844
AC
910 * value.h (struct value): Delete field bfd_section.
911 (VALUE_BFD_SECTION): Delete macro.
912 (COERCE_REF): Update.
913 (value_at, value_at_lazy): Delete asection parameter.
914 * printcmd.c (print_formatted, x_command): Update.
915 (do_examine): Delete asection parameter.
916 (next_section): Delete variable.
917 * valops.c (value_cast, value_at, value_at_lazy)
918 (value_coerce_function, value_addr, value_ind, value_string)
919 (find_rt_vbase_offset, value_full_object): Update.
920 * hpacc-abi.c (hpacc_virtual_fn_field)
921 (hpacc_value_rtti_type): Update.
922 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
923 (gnuv3_baseclass_offset): Update.
924 * f-valprint.c (f_val_print): Update.
925 * c-valprint.c (c_val_print): Update.
926 * p-valprint.c (pascal_val_print): Update.
927 * jv-valprint.c (java_value_print): Update.
928 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
929 * ada-lang.c (ada_value_primitive_packed_val)
930 (ada_evaluate_subexp): Update.
931 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
932 * expprint.c (print_subexp_standard): Update.
933 * infcall.c (call_function_by_hand): Update.
934 * valarith.c (value_add): Update.
935 * eval.c (evaluate_subexp_standard): Update.
936 * values.c (allocate_value, value_copy, value_static_field): Update.
937 * findvar.c (read_var_value, locate_var_value): Update.
938
5cb2fe25
AC
9392004-11-09 Andrew Cagney <cagney@gnu.org>
940
941 * i386-linux-tdep.c: Include "dwarf2-frame.h".
942 * Makefile.in: Update all dependencies.
943
cbafadeb
AC
9442004-11-08 Andrew Cagney <cagney@gnu.org>
945
946 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
947 (sentinel_frame_unwinder): Add the prev_pc method.
948 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
949 available. Do not handle the sentinel-frame case.
950 * frame-unwind.h (frame_prev_register_ftype): Define.
951 (struct frame_unwind): Add prev_pc;
952
3b78cdbb
DA
9532004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
954
955 * configure.in: Check for ncurses/term.h.
956 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
957 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
958 * tui/tui.c: Don't include term.h.
959 * configure, config.in: Rebuilt.
960
bcfca652
MK
9612004-11-08 Mark Kettenis <kettenis@gnu.org>
962
963 * m68kbsd-nat.c: Include "inf-ptrace.h".
964 (_initialize_m68kbsd_nat): Fix pasto.
965 * Makefile.in (m68kbsd-nat.o): Update dependencies.
966
527159b7
RC
9672004-11-08 Randolph Chung <tausq@debian.org>
968
969 * infrun.c (debug_infrun): New variable.
970 (resume, proceed, wait_for_inferior): Annotate with debug messages.
971 (handle_inferior_event, keep_going): Likewise.
972 (_initialize_infrun): Register "set debug infrun" command.
973
c874c7fc
AS
9742004-11-08 Andreas Schwab <schwab@suse.de>
975
976 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
977 PTRACE_EVENT_VFORKDONE.
978 (child_follow_fork): Adjust.
979
3c8fa307
AC
9802004-11-08 Andrew Cagney <cagney@gnu.org>
981
5c26072a
AC
982 * README: Refer to 6.3, not 6.2, update directory listing droppng
983 references to intl/ and mmalloc/.
984 * PROBLEMS: Refer to 6.3 not 6.2.
985
3c8fa307
AC
986 * PROBLEMS: Delete no-longer applicable problems.
987
12b8a2cb
DJ
9882004-11-07 Andrew Cagney <cagney@redhat.com>
989 Daniel Jacobowitz <dan@debian.org>
990 Roland McGrath <roland@redhat.com>
991
992 * Makefile.in (symfile-mem.o): Update dependencies.
993 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
994 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
995 * inf-ptrace.c (inf_ptrace_attach): Call
996 observer_notify_inferior_created.
997 * inftarg.c (child_attach): Likewise.
998 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
999 (symbol_file_add_from_memory): Take NAME argument. Use it for
1000 the new BFD's filename.
1001 (add_symbol_file_from_memory_command): Update call to
1002 symbol_file_add_from_memory.
1003 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
1004 (symbol_file_add_from_memory_wrapper): New.
1005 (_initialize_symfile_mem): Register add_vsyscall_page as an
1006 inferior_created observer.
1007
abbc6945
MK
10082004-11-07 Mark Kettenis <kettenis@gnu.org>
1009
1010 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
1011 fetch_inferior_registers. Make static.
1012 (m68kbsd_store_inferior_registers): Rename from
1013 store_inferior_registers. Make static.
1014 (_initialize_m68kbsd_nat): Construct and add target vector.
1015 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1016 inftarg.o. Add inf-ptrace.o.
1017 (NAT_FILE): Set to tm-solib.h.
1018 (LOADLIBES): New variable.
1019 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1020 inftarg.o. Add inf-ptrace.o.
1021 (NAT_FILE): Delete variable.
1022 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1023 inftarg.o. Add inf-ptrace.o.
1024 (NAT_FILE): Set to tm-solib.h.
1025 * config/m68k/nm-nbsdaout.h: Remove file.
1026
3ed09a32
DJ
10272004-11-07 Daniel Jacobowitz <dan@debian.org>
1028
1029 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
1030 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
1031 (dwarf2_signal_frame_unwind): New.
1032 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
1033 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
1034
8e763687
MK
10352004-11-07 Mark Kettenis <kettenis@gnu.org>
1036
4fb31ed0
MK
1037 * Makefile.in (mips64obsd-tdep.o): Fix typo.
1038
fabe86c8
MK
1039 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
1040 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
1041 to only include the structure members we actually need.
1042 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
1043 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
1044 only include the structure members we actually need.
1045 (mipsnbsd_init_abi): Update.
1046
366e93e8
MK
1047 * mips64obsd-nat.c: Include "mips-tdep.h".
1048 (MIPS64OBSD_NUM_REGS): Remove define.
1049 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
1050 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
1051 floating-point registers correctly.
1052 * Makefile.in (mips64obsd-nat.o): Update dependencies.
1053
8e763687
MK
1054 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
1055 "gdb_assert.h".
1056 (mips64obsd_sigframe_init): New function.
1057 (mips64obsd_sigframe): New variable.
1058 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
1059 unwinder.
1060 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
1061
5f6a2351
JB
10622004-11-06 Joel Brobecker <brobecker@gnat.com>
1063
1064 * alpha-mdebug-tdep.c: #include mdebugread.h.
1065 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
1066 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
1067
f059bf6f
AC
10682004-11-05 Andrew Cagney <cagney@gnu.org>
1069
1070 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
1071 CFI and the init_reg method leave the register unspecified.
1072 Include the register name in the "Incomplete CFI data" complaint.
1073 Supress leading zeros in the address.
1074
1234d960
MK
10752004-11-05 Mark Kettenis <kettenis@gnu.org>
1076
1077 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
1078 skipping a personality routine in a CIE augmentation.
1079
d75e3c94
JJ
10802004-11-05 Jeff Johnston <jjohnstn@redhat.com>
1081
1082 * defs.h (fatal, vfatal): New function prototypes.
1083 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
1084 via catch_errors.
1085 (backtrace_command): Change to call backtrace_command_stub via
1086 catch_errors instead of calling backtrace_command_1 directly.
1087 (backtrace_full_command): Ditto.
1088 * utils.c (error_stream_1): New static function.
1089 (verror): Change to call error_stream_1 instead of error_stream.
1090 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
1091 (vfatal, fatal): New functions.
1092
98f276a0
AC
10932004-11-05 Andrew Cagney <cagney@gnu.org>
1094
1095 * stack.c (parse_frame_specification_1): Clear selected_frame_p
1096 when not using selected frame.
1097
f724bf08
MK
10982004-11-05 Mark Kettenis <kettenis@jive.nl>
1099
1100 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
1101 personality routine in a CIE augmentation.
1102
c789492a
FL
11032004-11-05 Felix Lee <felix+log1@specifixinc.com>
1104
1105 * stack.c (set_current_sal_from_frame): New function.
1106 (print_args_stub): Use it.
1107 (print_frame_info): Don't set sal here.
1108
a81b10ae
MK
11092004-11-04 Mark Kettenis <kettenis@gnu.org>
1110
1111 * dwarf2-frame.c (read_encoded_value): Change type of third
1112 argument to `unsigned char *'. Add support for LEB128 encodings.
1113
ad766c0a
JB
11142004-11-04 Jim Blandy <jimb@redhat.com>
1115
1116 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
1117 prevent cross-objfile references.
1118 (make_cv_type): Doc fix. Don't create cross-objfile references,
1119 even for stub types.
1120 (replace_type): Add assertion to prevent cross-objfile references.
1121 (check_typedef): Never resolve a stub type by copying over a type
1122 from another file.
1123
c46b0409 11242004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 1125
c46b0409
KI
1126 * Makefile.in (m32r-tdep.o): Update dependencies.
1127 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
1128 ABI-specific overrides.
1129
9f0b0322 11302004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 1131
9f0b0322
KI
1132 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
1133 unnecessary parallel execution bit.
1134 (m32r_memory_remove_breakpoint): Ditto.
1135 (m32r_breakpoint_from_pc): Update.
1136
d5c27f81
RC
11372004-11-03 Randolph Chung <tausq@debian.org>
1138
1139 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 1140 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
1141 (hppa_frame_this_id): Likewise.
1142
4577593c
AC
11432004-11-03 Andrew Cagney <cagney@gnu.org>
1144
1145 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1146 packet, obsolete configurations, end-of-life deprecated_registers.
1147
b04de778
MK
11482004-11-02 Mark Kettenis <kettenis@gnu.org>
1149
1150 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1151 encodings as well as unsigned encodings.
1152
9f2feefc
AC
11532004-11-02 Andrew Cagney <cagney@gnu.org>
1154
1155 * value.h (COERCE_VARYING_ARRAY): Delete.
1156 * valops.c (value_cast, value_slice): Delete use.
1157 * valarith.c (value_subscript, value_concat): Delete use.
1158
117ea3cf
PH
11592004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1160
1161 * NEWS: GDB understands GNAT Ada.
1162
0bbc026e
JM
11632004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1164
1165 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1166 (amd64-sol2-tdep.o): Add dependencies.
1167 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1168 config/i386/sol2-64.mt: New files.
1169 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1170 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1171 (supply_gregset): Correct order of arguments to
1172 amd64_supply_native_gregset.
1173 (fill_gregset): Correct order of arguments to
1174 amd64_collect_native_gregset.
1175 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1176 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1177 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1178 for definition of NEW_PROC_API.
1179 * configure: Regenerate.
1180
3d38a0a5
JM
11812004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1182
1183 * MAINTAINERS (Write After Approval): Add myself.
1184
f81cd1cf
AC
11852004-11-01 Andrew Cagney <cagney@gnu.org>
1186
1187 * configure.tgt: Mark d10v-*-* as obsolete.
1188 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1189
f4e88c8e
PH
11902004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1191
1192 * values.c (modify_field): Correct handling of bit-fields that
1193 don't fit in 32 bits. Use unsigned operations throughout and
1194 simplify the code a bit. Document preconditions.
1195
84674fe1
AC
11962004-10-31 Andrew Cagney <cagney@gnu.org>
1197
96693b3a
AC
1198 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1199 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1200 (in_plt_section): Delete.
1201
6f296f8f
AC
1202 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1203 (mips_gdbarch_init): Do not set same.
1204
618501c0
AC
1205 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1206 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1207
b22e8f02
AC
1208 * gdbarch.sh (in_solib_call_trampoline): Delete.
1209 * gdbarch.h, gdbarch.c: Re-generate.
1210
84674fe1
AC
1211 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1212 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1213 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1214 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1215 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1216
c6d1029f
MK
12172004-10-31 Mark Kettenis <kettenis@gnu.org>
1218
1219 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1220 (mipsnbsd_fetch_inferior_registers): Rename from
1221 fetch_inferior_registers. Make static.
1222 (mipsnbsd_store_inferior_registers): Rename from
1223 store_inferior_registers. Make static.
1224 (_initialize_mipsnbsd_nat): New function and prototype.
1225 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1226 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1227 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1228 inf-ptrace.o.
1229
bd9ca83f
AC
12302004-10-31 Andrew Cagney <cagney@gnu.org>
1231
19d718a3
AC
1232 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1233 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1234 delete corresponding unused function.
1235 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1236 in_solib_call_trampoline.
1237 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1238 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1239 * config/mips/tm-nbsd.h: Ditto.
1240 * config/arm/tm-linux.h: Ditto.
1241 * config/mips/tm-linux.h: Ditto.
1242
e8ce19c0
AC
1243 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1244 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1245 in_solib_call_trampoline, delete corresponding unused function.
1246 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1247 (vaxnbsd_aout_init_abi): Ditto.
1248 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1249 (sparc32nbsd_aout_init_abi): Ditto.
1250 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1251 (ppc_linux_init_abi): Ditto.
1252 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1253 (ns32knbsd_init_abi_aout): Ditto.
1254 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1255 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1256 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1257 (m68kbsd_aout_init_abi): Ditto.
1258 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1259 (i386_cygwin_init_abi): Ditto.
1260 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1261 (i386bsd_init_abi): Ditto.
1262
af380d61
AC
1263 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1264 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1265 isn't used by this architecture.
1266 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1267 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1268 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1269 * s390-tdep.c (s390_gdbarch_init): Ditto.
1270 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1271 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1272 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1273 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1274 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1275 * amd64-tdep.c (amd64_init_abi): Ditto.
1276
0528d9f7
AC
1277 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1278 in_solib_call_trampoline to its default value of
1279 generic_in_solib_call_trampoline.
1280 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1281 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1282 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1283 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1284 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1285 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1286
f9f9eacb
AC
1287 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1288
a4ffd1e7
AC
1289 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1290
82e34d2f
AC
1291 * config/mips/tm-mips.h: Delete file.
1292 * remote-mips.c: Delete tm-mips.h from comment.
1293 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1294 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1295 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1296 * config/mips/tm-linux.h: Don't include tm-mips.h.
1297 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1298 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1299 * config/mips/tm-wince.h: Don't include.
1300
75dec9cf
AC
1301 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1302 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1303 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1304 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1305
bd9ca83f
AC
1306 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1307 * mdebugread.c (ecoff_relocate_efi): Delete function.
1308 * objfiles.c (objfile_relocate): Delete #ifdef
1309 MDEBUG_EFI_SYMBOL_NAME code.
1310
3352ef37
AC
13112004-10-31 Orjan Friberg <organ.friberg@axis.com>
1312 Andrew Cagney <cagney@gnu.org>
1313
1314 * gdbarch.sh (single_step_through_delay): Add.
1315 * gdbarch.h, gdbarch.c: Re-generate.
1316 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1317 (mips_step_skips_delay): Delete.
1318 * mips-tdep.c (mips_single_step_through_delay): Replace
1319 mips_step_skips_delay.
1320 (mips_gdbarch_init): Set single_step_through_delay.
1321 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1322
2440b685
MK
13232004-10-31 Mark Kettenis <kettenis@gnu.org>
1324
1325 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1326 from TRAMP_FRAME frame type.
1327
56a2fed5
AC
13282004-10-31 Andrew Cagney <cagney@gnu.org>
1329
9b792b1d
AC
1330 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1331
0a5e8d98
AC
1332 * mips-tdep.c (mips_ignore_helper): Delete.
1333 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1334 * infrun.c (handle_inferior_event): Delete #ifdef
1335 DEPRECATED_IGNORE_HELPER_CALL code.
1336
56a2fed5
AC
1337 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1338
f69c55b2
MK
13392004-10-31 Mark Kettenis <kettenis@gnu.org>
1340
1341 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1342 (fill_fpregset): Do not compile for 64-bit systems.
1343 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1344 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1345 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1346
d37cca3d
AC
13472004-10-30 Andrew Cagney <cagney@gnu.org>
1348
36b8628e
AC
1349 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1350 (struct mdebug_extra_func_info): Define.
1351 * config/alpha/tm-alpha.h: Delete same.
1352 * config/mips/tm-mips.h: Delete same.
1353 * mdebugread.c: Delete same.
1354 * Makefile.in: Update dependencies.
1355 * mips-mdebug-tdep.c: Include "mdebugread.h".
1356
5b123146
AC
1357 * objfiles.c: Include "mdebugread.h".
1358 * mdebugread.c: Include "mdebugread.h".
1359 (ecoff_relocate_cfi): Delete.
1360 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1361 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1362 * mdebugread.h (ecoff_relocate_efi): New file.
1363 * Makefile.in: Update dependencies.
1364
b9c3a7de
AC
1365 * mips-tdep.c (struct frame_extra_info): Delete.
1366 (temp_proc_desc): Delete.
1367
f92761ec
AC
1368 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1369 MIPS_EFI_SYMBOL_NAME.
1370 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1371 (struct mdebug_extra_func_info): Replace struct
1372 alpha_extra_func_info and alpha_extra_func_info_t.
1373 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1374 MIPS_EFI_SYMBOL_NAME.
1375 (struct mdebug_extra_func_info): Replace struct
1376 alpha_extra_func_info and alpha_extra_func_info_t.
1377 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1378 * mdebugread.c, alpha-mdebug-tdep.c:
1379
0bb57b31
AC
1380 Suggested by Mark Kettenis.
1381 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1382 fields frame_adjust and high_addr.
1383 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1384 (non_heuristic_proc_desc): Delete references.
1385
a5c9623c
AC
1386 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1387 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1388 * mips-tdep.c: Update.
1389
607fc93c
AC
1390 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1391 (MIPS_LAST_EMBED_REGNUM): Add.
1392 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1393 (LAST_EMBED_REGNUM): Delete.
1394 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1395
24e05951
AC
1396 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1397 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1398 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1399 * mips-linux-nat.c: Update.
1400
613e114f
AC
1401 * mips-tdep.h: Add comments on registers.
1402 (MIPS_UNUSED_REGNUM): Define.
1403 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1404 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1405 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1406 * mips-linux-nat.c, remote-mips.c: Update.
1407
d37cca3d
AC
1408 * config/mips/tm-mips.h (t_insn): Delete.
1409 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1410 Replace t_insn with ULONGEST.
1411
ceb41096
MK
14122004-10-30 Mark Kettenis <kettenis@gnu.org>
1413
d1180b0f
MK
1414 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1415 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1416 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1417 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1418 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1419 (mipsnbsd_core_osabi_sniffer): New function.
1420 (mipsnbsd_init_abi): Set regset_from_core_section.
1421 (_initialize_mipsnbsd_tdep): Remove calls to
1422 deprecated_add_core_fns.
1423 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1424 (mipsnbsd_regset_from_core_section): New functions.
1425 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1426 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1427
ceb41096
MK
1428 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1429 Remove optimization for DEPRECATED_FP_REGNUM.
1430
ec4045ea
AC
14312004-10-30 Andrew Cagney <cagney@gnu.org>
1432
cd65c8f6
AC
1433 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1434 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1435 (alpha_setup_arbitrary_frame): Delete.
1436 * mips-tdep.c (setup_arbitrary_frame): Delete.
1437 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1438 (setup_arbitrary_frame): Delete.
1439 * stack.c (parse_frame_specification_1): When specified, call
1440 create_new_frame with two parameters. Delete #ifdef
1441 SETUP_ARBITRARY_FRAME.
1442
95ac2dcf
AC
1443 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1444 (MIPS_INSTLEN): Delete.
1445 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1446 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1447 * remote-mips.c, mips-tdep.c: Update.
1448
1a8da44d
AC
1449 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1450 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1451 * mips-tdep.c (mips_mdebug_frame_cache)
1452 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1453 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1454 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1455 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1456 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1457 (mips_gdbarch_init): Do not append mdebug sniffers.
1458 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1459 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1460 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1461 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1462 * Makefile.in: Update dependencies.
1463
e6bc2e8a
AC
1464 * mips-tdep.h (mips_abi_regsize): Declare.
1465 * mips-tdep.c (mips_abi_regsize): Make non-static.
1466
ec4045ea
AC
1467 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1468 (make_mips16_addr): Delete.
e6bc2e8a 1469
6b16acab
MK
14702004-10-30 Mark Kettenis <kettenis@gnu.org>
1471
1472 * i386-sol2-nat.c: New file.
1473 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1474 i386-sol2-tdep.c.
1475 (i386-sol2-nat.o): Update dependencies.
1476 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1477 i386-sol2-nat.o.
1478
8b622e6a
AC
14792004-10-30 Andrew Cagney <cagney@gnu.org>
1480
1481 Total breakage identified by Joel Brobecker.
1482 * mips-tdep.c (after_prologue): Delete.
1483 (mips_skip_prologue): Use skip_prologue_using_sal.
1484 (heuristic_proc_desc): Delete, unused.
1485
772cf8be
MK
14862004-10-30 Mark Kettenis <kettenis@gnu.org>
1487
1488 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1489 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1490 Cleanup coding style.
1491
9c8fdbfa
AC
14922004-10-30 Andrew Cagney <cagney@gnu.org>
1493
0fe7e7c8
AC
1494 * mips-tdep.h (mips_pc_is_mips16): Declare.
1495 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1496 non-static. Update calls.
1497
1b295c3d
AC
1498 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1499 * command.h (add_setshow_enum_cmd): Declare.
1500 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1501
6bcadd06
AC
1502 * mips-tdep.c (_initialize_mips_tdep): Use
1503 add_setshow_zinteger_cmd.
1504
9c8fdbfa
AC
1505 * mips-tdep.c (mips_eabi_extract_return_value)
1506 (mips_o64_extract_return_value, mips_o64_store_return_value)
1507 (return_value_location, mips_eabi_reg_struct_has_addr)
1508 (mips_eabi_use_struct_convention)
1509 (mips_eabi_store_return_value): Delete.
1510 (mips_eabi_store_return_value): New function.
1511 (mips_eabi_return_value): New function.
1512 (mips_gdbarch_init): For O64 and EABI, delete
1513 extract_return_value, store_return_value, use_struct_convention
1514 and reg_struct_has_addr, add return_value.
1515
1d93fe1a
AC
1516 * mips-tdep.c (read_signed_register): Use
1517 regcache_cooked_read_signed.
1518
303d2914
MK
15192004-10-30 Mark Kettenis <kettenis@gnu.org>
1520
1521 * mipsread.c: Cleanup coding style.
1522 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1523 (mipscoff_symfile_finish): Remove prototypes.
1524
15252004-10-29 Mark Kettenis <kettenis@gnu.org>
1526
1527 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1528 (mips_mdebug_frame_cache, mips16_scan_prologue)
1529 (mips32_scan_prologue, mips_stub_frame_cache)
1530 (heuristic_proc_start, heuristic_proc_desc)
1531 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1532 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1533 (mips_o32_return_value, mips_o64_push_dummy_call)
1534 (mips_step_skips_delay, mips_skip_trampoline_code)
1535 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1536 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1537 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1538 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1539 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1540 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1541 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1542 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1543 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1544 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1545 ZERO_REGNUM.
1546 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1547 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1548 ZERO_REGNUM.
1549 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1550 A0_REGNUM.
1551 * mipsnbsd-nat.c: Include "mips-tdep.h".
1552 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1553 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1554
1c8831c5
AC
15552004-10-29 Andrew Cagney <cagney@gnu.org>
1556
1557 * stack.c (parse_frame_specification_1): New function based on
1558 parse_frame_specification. Add message and selected_frame_p
1559 paramters. Truely always return non-NULL.
1560 (parse_frame_specification): Call parse_frame_specification_1.
1561 (frame_info): Update. Eliminate target_has_stack check.
1562 (select_frame_command): Update.
1563
b04f3ab4
AC
15642004-10-29 Andrew Cagney <cagney@gnu.org>
1565
1566 * frame.h (get_selected_frame): Add message parameter.
1567 * frame.c (get_selected_frame): Add and use message parameter.
1568 * stack.c (current_frame_command, return_command, locals_info)
1569 (catch_info, args_info, up_silently_base, down_silently_base): Use
1570 get_selected_frame with an explicit message.
1571 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1572 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1573 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1574 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1575 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1576 * breakpoint.c: Update.
1577
15782004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
1579
1580 * trad-frame.c (trad_frame_get_prev_register): Use
1581 frame_unwind_register instead of frame_register_unwind, do not
1582 recurse the register's location.
1583 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1584 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1585 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1586 * sh-tdep.c (sh_frame_prev_register): Ditto.
1587 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1588 * i386-tdep.c (i386_frame_prev_register): Ditto.
1589 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1590 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1591
7a952542
MK
15922004-10-28 Mark Kettenis <kettenis@jive.nl>
1593
c18c06be
MK
1594 * proc-events.c: Fix several coding-style issues. Consistently
1595 use #ifdef instead of #if defined().
1596 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1597 ARRAY_SIZE.
1598 (_initialize_proc_events): New prototype.
1599
7a952542
MK
1600 * proc-why.c: Fix several coding-style issues.
1601 (proc_prettyfprint_why): Use ARRAY_SIZE.
1602
fcad0fa4
JB
16032004-10-27 Jim Blandy <jimb@redhat.com>
1604
1605 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1606 manner independent of the host byte order.
1607
c163184f
MK
16082004-10-27 Mark Kettenis <kettenis@gnu.org>
1609
1610 * mips-tdep.c (id_delayed): Remove prototype.
1611
9c46b6f0
MK
16122004-10-26 Mark Kettenis <kettenis@gnu.org>
1613
1614 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1615 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1616 to enum with register numbers.
1617 (enum mips_insn_size): New enum.
1618
0d0266c6
AC
16192004-10-26 Andrew Cagney <cagney@gnu.org>
1620
e7d6a6d2
AC
1621 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1622 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1623 (mips_gdbarch_init): Update.
1624 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1625
c5115f39
AC
1626 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1627 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1628 IN_SOLIB_RETURN_TRAMPOLINE.
1629 * mips-tdep.c (mips_dump_tdep): Do not print
1630 IN_SOLIB_RETURN_TRAMPOLINE.
1631 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1632 (mips_gdbarch_init): Update.
1633
0d0266c6
AC
1634 * mips-tdep.h (mips_software_single_step): Move to here ...
1635 * config/mips/tm-mips.h: ... from here.
1636 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1637 (SOFTWARE_SINGLE_STEP): Delete.
1638 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1639
156a53ca
AC
16402004-10-25 Andrew Cagney <cagney@gnu.org>
1641
1642 * NEWS: Add Changes since GDB 6.3 section.
1643
f27cf670
AS
16442004-10-23 Andreas Schwab <schwab@suse.de>
1645
156a53ca
AC
1646 * ada-lang.c (grow_vect): Return the new array instead of
1647 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
1648 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1649
121d8485
UW
16502004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1651
1652 * s390-tdep.c (enum pv_boolean): Remove.
1653 (pv_is_array_ref): Remove.
1654 (s390_on_stack): Remove.
1655 (S390_NUM_SPILL_SLOTS): Remove.
1656 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1657 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1658 (s390_store): Track all stores of orginal incoming registers to the
1659 stack constant offsets relative to the CFA, instead of only tracking
1660 stores into specific spill slots.
1661 (s390_load): Likewise.
1662 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1663 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1664 defined as call-saved by the ABI.
1665 (s390_push_dummy_call): Use bottom of dummy call argument save area
1666 as return value, not the top. Do not store to the called function's
1667 register save area.
1668 (s390_unwind_dummy_id): Adapt accordingly.
1669
0a6ddd08
AC
16702004-10-23 Andrew Cagney <cagney@gnu.org>
1671
1672 * objfiles.h (struct objfile): Rename obj_private to
1673 deprecated_obj_private, sym_private to deprecated_sym_private, and
1674 sym_stab_info to deprecated_sym_stab_info.
1675 * gdb-stabs.h: Update.
1676 * elfread.c: Update.
1677 * dbxread.c: Update.
1678 * coffread.c: Update.
1679 * xcoffread.c: Update.
1680 * symfile.c: Update.
1681 * somread.c: Update.
1682 * nlmread.c: Update.
1683 * mdebugread.c: Update.
1684 * hpread.c: Update.
1685 * coffread.c: Update.
1686
abc08782
MK
16872004-10-23 Mark Kettenis <kettenis@gnu.org>
1688
1689 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1690 * configure.host: Add mips64*-*-openbsd*.
1691 * configure.tgt: Add mips64*-*-openbsd*.
1692 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1693 mips64obsd-tdep.c.
1694 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1695 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1696
fc062ac6
JB
16972004-10-21 Joel Brobecker <brobecker@gnat.com>
1698
1699 * symtab.c (symbol_search_name): Minor reformatting.
1700
5bccb4d1
JB
17012004-10-20 Joel Brobecker <brobecker@gnat.com>
1702
1703 * symtab.h: Fix typo in comment.
1704
a738430d
MK
17052004-10-19 Mark Kettenis <kettenis@gnu.org>
1706
1707 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1708 (dwarf_decode_line_header): Likewise.
1709
f2cb65ca
MC
17102004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1711
1712 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1713
09e55376
AC
17142004-10-19 Andrew Cagney <cagney@gnu.org>
1715
1716 GDB 6.3 branch created.
1717 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1718
bc5f45f8
JB
17192004-10-15 Joel Brobecker <brobecker@gnat.com>
1720
1721 * dwarf2read.c (set_cu_language): Set language to Ada for
1722 DW_LANG_Ada83 and DW_LANG_Ada95.
1723
2941da8c
MC
17242004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1725
1726 From Andreas Schwab <schwab@suse.de>:
1727 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1728 for xmalloc and xrealloc.
1729
34a17005
AC
17302004-10-15 Andrew Cagney <cagney@gnu.org>
1731
1732 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1733 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1734 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1735 Update dependencies.
1736
714e53ab
PH
17372004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1738
1739 * ada-lang.c (ada_lookup_symbol): Correct comment.
1740 (ada_evaluate_subexp): Change error message for
1741 OP_FUNCALL case so as not to indicate an internal error.
1742
17432004-10-15 Joel Brobecker <brobecker@gnat.com>
1744
1745 Committed by Paul Hilfinger.
1746 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1747 type sizes in XVE/XVU types, and emit a warning when that happens,
1748 instead of rounding up the size of the resulting type.
1749 Some minor reformatting.
1750 (ada_is_aligner_type): Do not consider a type as an aligner type
1751 if there is a corresponding XVS type as well.
1752 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1753 have several levels of pointer indirection to the array.
1754
17552004-10-15 Jerome Guitton <guitton@gnat.com>
1756
1757 Committed by Paul Hilfinger.
1758 * ada-lang.c (check_size): New function.
1759 (coerce_unspec_val_to_type): call check_size to make sure
1760 that the object size is reasonable.
1761 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1762 Implements the case when we get a reference when we evaluate
1763 the expression of one of the bounds of the slice.
1764 (ada_value_struct_elt): when a packed array field is
1765 a reference, use ada_coerce_ref to dereference it; use
1766 ada_value_ind only if it is a pointer.
1767
29639122
JB
17682004-10-15 Joel Brobecker <brobecker@gnat.com>
1769
1770 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1771 a bit to avoid the necessity of an advance declaration. Remove
1772 declaration.
1773 (set_reg_offset): Move implemenation up.
1774 (mips16_get_imm): Likewise.
1775 (mips16_scan_prologue): Likewise.
1776 (reset_saved_regs): Likewise.
1777 (mips32_scan_prologue): Likewise.
1778
a65bbe44
JB
17792004-10-14 Joel Brobecker <brobecker@gnat.com>
1780
1781 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1782 Remove sp as a parameter, compute it internally instead. Move
1783 prologue scanning limit from heuristic_proc_desc to here.
1784 (mips16_scan_prologue): Likewise.
1785 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1786 by call to mips16_scan_prologue.
1787 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1788 by call to mips32_scan_prologue.
1789 (heuristic_proc_desc): Remove code that's no longer necessary.
1790 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1791 (mips_skip_prologue): Update calls to mips16_scan_prologue
1792 and mips32_scan_prologue.
1793
1c645fec
JB
17942004-10-14 Joel Brobecker <brobecker@gnat.com>
1795
1796 * mips-tdep.c (mips16_scan_prologue): Merge code from
1797 mips16_skip_prologue. Now return the address of the first
1798 instruction past the function prologue.
1799 (mips16_skip_prologue): Remove, no longer necessary.
1800 (mips_skip_prologue): Replace call to mips16_skip_prologue
1801 by call to mips16_scan_prologue.
1802
98b4dd94
JB
18032004-10-14 Joel Brobecker <brobecker@gnat.com>
1804
1805 * mips-tdep.c (mips32_scan_prologue): Merge code from
1806 mips32_skip_prologue. Now return the address of the first
1807 instruction past the function prologue.
1808 (mips32_skip_prologue): Remove. No longer necessary.
1809 (mips16_skip_prologue): Add parameter end_pc instead of
1810 computing it.
1811 (mips_skip_prologue): Compute the upper limit for the
1812 prologue scanning. Update call to mips16_skip_prologue.
1813 Replace call to mips32_skip_prologue by call to
1814 mips32_scan_prologue.
1815
ad4c72d2
MK
18162004-10-14 Mark Kettenis <kettenis@gnu.org>
1817
dfaf8edb
MK
1818 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1819 NetBSD system call stubs that store %rp in the ERP slot of the
1820 stack frame.
1821
3e3a28f1
MK
1822 * source.c: Always define O_BINARY to 0 if not defined already.
1823 (openp): Unconditionally use O_BINARY.
1824
ad4c72d2
MK
1825 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1826 * event-top.c (gdb_readline2): Likewise.
1827
52bd1401
OF
18282004-10-14 Orjan Friberg <orjanf@axis.com>
1829
1830 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1831 deprecated_add_core_fns which was removed by mistake.
1832
e0e25c6c
KB
18332004-10-13 Kevin Buettner <kevinb@redhat.com>
1834
1835 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1836 references to deprecated_registers[] with equivalent code.
1837
9f335945
KB
18382004-10-13 Kevin Buettner <kevinb@redhat.com>
1839
1840 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1841 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1842 instead of explicit test and print statement.
1843
06c2338d
MK
18442004-10-12 Mark Kettenis <kettenis@gnu.org>
1845
1b9445c2
MK
1846 * sparc-nat.c: Include "inf-ptrace.h".
1847 (sparc_target): New function.
1848 * sparc-nat.h: Update copyright year.
1849 (sparc_target): New prototype.
1850 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1851 (_initialize_sparcnbsd_nat): Construct and add target vector.
1852 * sparc64nbsd-nat.c: Include "target.h".
1853 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1854 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1855 Update dependencies.
1856 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1857 inftarg.o, add inf-ptrace.o.
1858 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1859 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1860 (NAT_FILE): Set to nm-bsd.h.
1861 (LOADLIBES): New variable.
1862 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1863 infarg.o, add inf-ptrace.o.
1864 * config/sparc/nm-nbsdaout.h: Remove file.
1865 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1866 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1867 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1868
06c2338d
MK
1869 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1870 "fopen-same.h". Update comment.
1871
3303a276
MK
18722004-10-11 Mark Kettenis <kettenis@gnu.org>
1873
1874 * i386gnu-nat.c: Include "gdb_string.h".
1875 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1876 registers when the floating-point state isn't initialized.
1877 * Makefile.in (i386gnu-nat.o): Update dependencies.
1878
04c663e3
DA
18792004-10-11 David Anderson <davea@sgi.com>
1880
1881 * regcache.c (regcache_raw_read): Comment was missing "to".
1882 Extraneous ' removed.
1883 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1884 comment now describes use.
1885
a5f6c8f5
OF
18862004-10-11 Orjan Friberg <orjanf@axis.com>
1887
1888 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1889 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1890 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1891 (cris_sigtramp_frame_sniffer): New functions.
1892 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1893 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1894 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1895 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1896 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1897 command.
1898 (cris_version_update): Remove, replace with ...
1899 (set_cris_version): New function.
1900 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1901 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1902 (_initialize_cris_tdep): Remove CRIS mode command.
1903 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1904 cris-fpless-backtrace command.
1905 (cris_scan_prologue): Fix prologue scanning limit.
1906 (cris_register_type): Update to reflect actual registers.
1907 (cris_register_bytes_ok) Remove.
1908 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1909 Remove set_gdbarch_deprecated_register_size,
1910 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1911
77109804
AC
19122004-10-10 Andrew Cagney <cagney@gnu.org>
1913
1914 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1915 comment.
1916
25652d4f
JB
19172004-10-10 Joel Brobecker <brobecker@gnat.com>
1918
1919 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1920
1e05a7bf
JB
19212004-10-10 Joel Brobecker <brobecker@gnat.com>
1922
1923 * mips-tdep.c (mips16_scan_prologue): Renames
1924 mips16_heuristic_proc_desc. Update comment.
1925 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1926 (heuristic_proc_desc): Update calls to the 2 functions above.
1927
c68a4142
JB
19282004-10-10 Joel Brobecker <brobecker@gnat.com>
1929
1930 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1931 Update comments. Also immediately return empty cache when the start
1932 address of our function could not be found.
1933 (mips_insn32_frame_cache): Likewise.
1934
0fce0821
JB
19352004-10-10 Joel Brobecker <brobecker@gnat.com>
1936
1937 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1938 (mips_insn16_frame_cache): Pass frame cache in call to
1939 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1940 Remove code that became redundant as a consequence.
1941 (mips32_heuristic_proc_desc): No longer compute a fake
1942 procedure descriptor. Compute the full frame cache instead.
1943 Some minor comment reformatting.
1944
b672553e
JB
19452004-10-10 Jim Blandy <jimb@redhat.com>
1946
1947 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1948 reader, tracing bytecode stuff): Remove self.
1949
9cc52bde
MK
19502004-10-10 Mark Kettenis <kettenis@gnu.org>
1951
cc9784b6
MK
1952 * sparc64-linux-tdep.c: Update copyright year. Don't include
1953 "solib-svr4.h".
1954 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1955 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1956 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1957
ee8aef23
MK
1958 * sparc-linux-tdep.c: Update copyright year.
1959 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1960 to struct frame_info *. Use safe_frame_unwind_memory instead of
1961 deprecated_read_memory_nobpt.
1962 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1963 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1964 changed signature of sparc_linux_sigtramp_start.
1965 (sparc32_linux_pc_in_sigtramp): Remove function.
1966 (sparc32_linux_sigtramp_p): New function.
1967 (sparc32_linux_sigtramp_frame_sniffer): Use
1968 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1969
bc73f8cc
MK
1970 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1971 Remove function.
1972 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1973
a2249542
MK
1974 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1975 (decode_packed_array_type, value_subscript_packed)
1976 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1977 argument in call to lim_warning.
1978
9cc52bde
MK
1979 * configure.in: Really disable the TUI if an enhanced curses
1980 library isn't found.
1981 * configure: Regenerate.
1982
151fc45b
MK
19832004-10-09 Mark Kettenis <kettenis@gnu.org>
1984
1985 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1986 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1987 * config/i386/nm-nbsdaout.h: Remove file.
1988 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1989 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1990 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1991 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1992 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1993 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1994 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1995 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1996 (ldd, ld_un, ld_2): Remove defines.
1997 * config/i386/nm-obsd.h: Likewise.
1998
375c0479
PH
19992004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
2000
2001 * ada-lex.l: Remove useless rule whose right-context clause
2002 causes unreferenced static function warning for yyrealloc.
2003 (ada_flex_use): Remove the artificial reference to yyrealloc.
2004
c8e73a31
AC
20052004-10-08 Andrew Cagney <cagney@gnu.org>
2006
2007 * target.h (struct target_ops): Rename to_xfer_memory to
2008 deprecated_xfer_memory.
2009 * target.c: Update.
2010 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
2011 * wince.c: Update.
2012 * win32-nat.c: Update.
2013 * v850ice.c: Update.
2014 * uw-thread.c: Update.
2015 * thread-db.c: Update.
2016 * sol-thread.c: Update.
2017 * remote.c: Update.
2018 * remote-vx.c: Update.
2019 * remote-st.c: Update.
2020 * remote-sim.c: Update.
2021 * remote-sds.c: Update.
2022 * remote-rdp.c: Update.
2023 * remote-rdi.c: Update.
2024 * remote-mips.c: Update.
2025 * remote-m32r-sdi.c: Update.
2026 * remote-e7000.c: Update.
2027 * procfs.c: Update.
2028 * ppc-bdm.c: Update.
2029 * nto-procfs.c: Update.
2030 * monitor.c: Update.
2031 * linux-nat.c: Update.
2032 * inftarg.c: Update.
2033 * hpux-thread.c: Update.
2034 * go32-nat.c: Update.
2035 * gnu-nat.c: Update.
2036 * exec.c: Update.
2037 * corelow.c: Update.
2038 * bsd-kvm.c: Update.
2039 * aix-thread.c: Update.
2040
aa869812
AC
20412004-10-08 Andrew Cagney <cagney@gnu.org>
2042
2043 * target.c (debug_target): Move to near start of file.
2044 (target_stopped_data_address_p): Re-org logic, add casts.
2045
8dcef9cf
MK
20462004-10-02 Mark Kettenis <kettenis@gnu.org>
2047
2048 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
2049 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
2050 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
2051 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
2052 New defines.
2053
4aa7a7f5
JJ
20542004-10-08 Jeff Johnston <jjohnstn@redhat.com>
2055
2056 * target.h (to_stopped_data_address): Change prototype to
2057 take a CORE_ADDR pointer and return an int.
2058 * target.c (update_current_target): Change to_stopped_data_address
2059 to match new prototype.
2060 (debug_to_stopped_data_address): Change appropriately.
2061 * breakpoint.c (bpstat_stop_status): Change call to
2062 target_stopped_data_address to use new prototype.
2063 * frv-tdep.c (frv_have_stopped_data_address): New function.
2064 (frv_stopped_data_address): Change to new prototype and
2065 functionality.
2066 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
2067 prototype and functionality.
2068 (ia64_stopped_by_watchpoint): New function.
2069 * i386-nat.c (i386_stopped_data_address): Change to new
2070 prototype and functionality.
2071 (i386_stopped_by_watchpoint): New function.
2072 * remote.c (remote_stopped_data_address): Change to new prototype
2073 and functionality.
2074 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
2075 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
2076 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
2077 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
2078 new i386_stopped_by_watchpoint function.
2079 (i386_stopped_by_watchpoint): New prototype.
2080 (i386_stoppped_data_address): Change to new prototype.
2081 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
2082 new ia64_stopped_by_watchpoint function.
2083 (ia64_stopped_by_watchpoint): New prototype.
2084 (ia64_stopped_data_address): Ditto.
2085
61ee279c
PH
20862004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
2087
2088 * ada-typeprint.c (ada_print_type): Use int_string for printing
2089 modulus of modular type.
2090 * ada-lang.h (ada_modulus): Change return type to unsigned.
2091 * ada-lang.c (ada_language_arch_info): Correct type of
2092 string_char_type.
2093 (ada_modulus): Return unsigned result.
2094 (ada_lookup_symbol): Remove user disambiguation and modify comment
2095 accordingly.
2096
20972004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
2098
2099 Committed by Paul Hilfinger.
2100 * ada-lang.c (decode_packed_array): On big-endian targets,
2101 left-justify the value if it comes with a modular type.
2102
21032004-10-08 Joel Brobecker <brobecker@gnat.com>
2104
2105 Committed by Paul Hilfinger.
2106 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
2107 (is_name_suffix): Add support for "___JM" suffixes.
2108 (ada_check_typedef): Renames ada_completed_type.
2109 Update all users of CHECK_TYPEDEF, check_typedef, and
2110 ada_complete_type to call ada_check_typedef.
2111 * ada-typeprint.c: Likewise.
2112 * ada-valprint.c: Likewise.
2113
b6c25a56
CV
21142004-10-08 Corinna Vinschen <vinschen@redhat.com>
2115
2116 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
2117
83ca6a46
NR
21182004-10-08 Nick Roberts <nickrob@snap.net.nz>
2119
2120 * MAINTAINERS: Update e-mail address.
2121
1fd8cd20
DJ
21222004-10-07 Daniel Jacobowitz <dan@debian.org>
2123
2124 From Maciej W. Rozycki <macro@mips.com>:
2125 * mips-tdep.c (mips32_next_pc): Check the register's contents,
2126 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2127
cea15572
KI
21282004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
2129
2130 * m32r-tdep.c (decode_prologue): Support functions written
2131 in assembler language. Recognize trap instructions as the
2132 end of prologue.
2133 (m32r_frame_unwind_cache): Ditto.
2134 (m32r_skip_prologue): Extend search limit. Quit analyzing
2135 prologue if pc's location is not readable.
2136
23485554
PH
21372004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
2138
2139 * Makefile.in (.l.c): Do conversions of names of alloc and free
2140 functions that are done for .y.c files, plus special one
2141 for yy_flex_realloc. Also, correct missing-file tests here.
2142 * ada-lex.l (malloc, free): Remove macros.
2143 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2144 xrealloc.
2145 (ada_flex_use): Dummy definition to remove warnings about unused
2146 functions.
2147 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2148 to suppress warning.
2149
c0409442
CV
21502004-10-06 Corinna Vinschen <vinschen@redhat.com>
2151
2152 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2153 RETURN_VALUE.
2154 (sh_return_value_fpu): Ditto for CPUs with FPU.
2155 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2156 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2157 Install sh_return_value_nofpu resp. sh_return_value_fpu as
2158 RETURN_VALUE functions.
2159
9bed62d7
CV
21602004-10-06 Corinna Vinschen <vinschen@redhat.com>
2161
2162 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
2163 (sh_pseudo_register_write): Ditto.
2164
03131d99
CV
21652004-10-06 Corinna Vinschen <vinschen@redhat.com>
2166
2167 * sh-tdep.c (IS_MACL_STS): New define.
2168 (IS_MOVI20): Ditto.
2169 (IS_MACL_LDS): Ditto.
2170 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2171 instructions in prologue.
2172 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2173 instructions in epilogue.
2174
da962468
CV
21752004-10-06 Corinna Vinschen <vinschen@redhat.com>
2176
2177 * sh-tdep.c (SH_NUM_REGS): Define as 67.
2178 (sh_sh_register_name): Add eight empty register names.
2179 (sh_sh3_register_name): Ditto.
2180 (sh_sh3e_register_name): Ditto.
2181 (sh_sh2e_register_name): Ditto.
2182 (sh_sh2a_register_name): New function, defining SH2A register set.
2183 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2184 in nofpu case.
2185 (sh_sh_dsp_register_name): Add eight empty register names.
2186 (sh_sh3_dsp_register_name): Ditto.
2187 (sh_sh4_register_name): Ditto.
2188 (sh_sh4_nofpu_register_name): Ditto.
2189 (sh_sh4al_dsp_register_name): Ditto.
2190 (sh2a_show_regs): New function.
2191 (sh2a_nofpu_show_regs): New function.
2192 (sh_sh2a_register_type): New function.
2193 (do_bank_register_info): New function.
2194 (sh_print_pseudo_register): Call do_bank_register_info.
2195 Call sh_print_pseudo_register for valid "bank" register.
2196 (sh_sh2a_register_sim_regno): New function.
2197 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2198 Increment pseudo register count by one for all sh variants with
2199 pseudo registers to accomodate pseudo bank register.
2200 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2201 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2202 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
2203 Increment pseudo register numbers.
2204
1326e61b
CV
22052004-10-06 Corinna Vinschen <vinschen@redhat.com>
2206
2207 * dwarf2read.c (read_subroutine_type): Call make_function_type
2208 instead of lookup_function_type.
2209
146c42e3
JB
22102004-10-05 Jim Blandy <jimb@redhat.com>
2211
2212 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2213 (Previous change missed some uses.)
2214
1df84f13
AC
22152004-10-05 Andrew Cagney <cagney@gnu.org>
2216
2217 * target.h (deprecated_child_ops): Rename child_ops.
2218 * wince.c: Update copyright. Rename child_ops.
2219 * win32-nat.c: Rename child_ops.
2220 * target.c: Rename child_ops.
2221 * rs6000-nat.c: Rename child_ops.
2222 * linux-nat.c: Rename child_ops.
2223 * infttrace.c: Rename child_ops.
2224 * inftarg.c: Rename child_ops.
2225 * infptrace.c: Rename child_ops.
2226 * hppah-nat.c: Update copyright. Rename child_ops.
2227 * hpux-thread.c: Update copyright. Rename child_ops.
2228
21e3b9b9
DJ
22292004-10-05 Daniel Jacobowitz <dan@debian.org>
2230
2231 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2232
de83afe7
AC
22332004-10-05 Andrew Cagney <cagney@gnu.org>
2234
2235 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2236
10b3939b
DJ
22372004-10-05 Daniel Jacobowitz <dan@debian.org>
2238
2239 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2240 (die_ref_table): Remove.
2241 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2242 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2243 the usage of this type.
2244 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2245 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2246 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2247 (dwarf2_create_include_psymtab): Update comment.
2248 (find_partial_die): Remove third argument. Remove unreachable call
2249 to error ().
2250 (dwarf2_find_containing_comp_unit): Update comments. Change one
2251 assertion to an error. Remove an unreachable error.
2252 (dwarf2_find_comp_unit): Update comments.
2253 (type_at_offset): Remove dead code.
2254 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2255 (store_in_ref_table): Add CU argument.
2256 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2257 inter-compilation-unit references.
2258 (load_full_comp_unit, process_full_comp_unit): New functions, based
2259 on psymtab_to_symtab_1.
2260 (psymtab_to_symtab_1): Use them.
2261 (dwarf2_add_dependence): New function.
2262 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2263 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2264 (partial_die_parent_scope, guess_structure_name): Update for changes
2265 to find_partial_die.
2266 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2267 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2268 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2269 (read_die_and_children): Update call to store_in_ref_table.
2270 (do_free_die_list_cleanup): Remove.
2271 (fixup_partial_die): Update for changes to find_partial_die.
2272 (read_full_die): Handle queueing absolute references.
2273 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2274 (dwarf2_attr, die_specification, die_type)
2275 (die_containing_type, dwarf2_extension): Update calls to
2276 follow_die_ref.
2277 (dump_die): Update DW_FORM_ref* handling.
2278 (dwarf2_get_ref_die_offset): Likewise.
2279 (free_one_comp_unit): Release the dies list.
2280 (dwarf2_mark_helper): New function.
2281 (dwarf2_mark): Use it.
2282
998bdd68
MK
22832004-10-05 Mark Kettenis <kettenis@jive.nl>
2284
2285 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2286 when writing to memory.
2287
14588880
KI
22882004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2289
2290 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2291 (m32r_extract_struct_value_address): Delete function.
2292 (m32r_return_value): New function.
2293 (m32r_gdbarch_init): Instead of store_return_value,
2294 extract_return_value, deprecated_extract_struct_value_address
2295 and deprecated_use_struct_convention, set return_value.
2296
dd5e6932
DJ
22972004-10-03 Daniel Jacobowitz <dan@debian.org>
2298
2299 * dwarf2read.c (read_subrange_type): Add comment for variable
2300 sized arrays.
2301
7dc1ef8d
PH
23022004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2303
2304 * Makefile.in (.l.c): Modify rule for compatibility with recent
2305 versions of flex, and remove most command-line options.
2306 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2307 options.
2308
1f8173e6
PH
23092004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2310
2311 Turn on initial Ada support (mainly expression evaluation).
2312
2313 * Makefile.in (SFILES): Remove ada-tasks.c.
2314 (HFILES_NO_SRCDIR): Add ada-lang.h.
2315 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2316 (YYOBJ): Add ada-exp.o.
2317 (rule .l.c): Generalize to not mention ada.
2318 * symtab.c: Include ada-lang.h.
2319 (symbol_natural_name, symbol_demangled_name)
2320 (symbol_search_name): Add Ada case.
2321
cb85a953
AC
23222004-10-01 Andrew Cagney <cagney@gnu.org>
2323
3f3db248
AC
2324 * Makefile.in (COMMON_OBS): Add inf-child.o.
2325 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2326 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2327 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2328 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2329 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2330 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2331 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2332 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2333 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2334 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2335 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2336 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2337 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2338
cb85a953
AC
2339 * target.c (xfer_using_stratum): Change return type to LONGEST.
2340 On each iteration offset, readbuf and writebuf.
2341 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2342 partial_length, and read/modify/write predicate, update comments.
2343 Pass buffer.word to ptrace write.
2344
963a6417
PH
23452004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2346
2347 * symfile.c (init_filename_language_table): Add extensions for
2348 Ada.
2349 * defs.h (enum language): Add language_ada.
2350 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2351 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2352 (add_symbols_from_enclosing_procs): Make a no-op for now.
2353 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2354 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2355 (find_line_in_linetable, find_next_line_in_linetable)
2356 (read_all_symtabs, is_plausible_func_for_line)
2357 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2358 (is_runtime_sym_defined, check_size): Remove declaration.
2359 (function_name_from_pc, ada_translate_error_message)
2360 (ada_lookup_minimal_symbol): Remove definition.
2361 (ada_add_block_symbols): Remove useless label.
2362 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2363 useless declaration.
2364 (ada_is_exception_sym): Likewise.
2365
9b32d526
KI
23662004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2367
2368 Add m32r-linux support.
2369 * configure.tgt: Add m32r*-*-linux*.
2370 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2371 and m32r-linux-tdep.c.
2372 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2373 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2374 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2375 m32r-linux-tdep.c.
2376 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2377 config/m32r/linux.mh, config/m32r/linux.mt,
2378 config/m32r/nm-linux.h: New files.
2379
2de118d3
JB
23802004-09-30 Joel Brobecker <brobecker@gnat.com>
2381
2382 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2383 (mips32_fetch_instruction): Remove, unused.
2384
a9fe69d1
JB
23852004-09-30 Joel Brobecker <brobecker@gnat.com>
2386
2387 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2388 conditions that will always be true.
2389
bc8ffc12
MK
23902004-09-30 Mark Kettenis <kettenis@gnu.org>
2391
ba0cd111
MK
2392 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2393 (vaxbsd_fetch_inferior_registers): Rename from
2394 fetch_inferior_registers. Make static.
2395 (vaxbsd_store_inferior_registers): Rename from
2396 store_inferior_registers. Make static.
2397 (_initialize_vaxbsd_nat): Construct and add target vector.
2398 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2399 inftarg.o. Add inf-child.o and inf-ptrace.o.
2400 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2401 inftarg.o. Add inf-child.o and inf-ptrace.o.
2402 (NAT_FILE): Remove.
2403 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2404 inftarg.o. Add inf-child.o and inf-ptrace.o.
2405 (NAT_FILE): Remove.
2406 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2407
bc8ffc12
MK
2408 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2409 (m88kbsd_fetch_inferior_registers): Rename from
2410 fetch_inferior_registers. Make static.
2411 (m88kbsd_store_inferior_registers): Rename from
2412 store_inferior_registers. Make static.
2413 (_initialize_m88kbsd_nat): New prototype and function.
2414 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2415 inftarg.o. Add inf-child.o and inf-ptrace.o.
2416 (NAT_FILE): Remove.
2417 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2418
27394598
AC
24192004-09-30 Andrew Cagney <cagney@gnu.org>
2420
2421 * target.c (target_xfer_partial): New function.
2422 (target_read_memory_partial, target_write_memory_partial)
2423 (default_xfer_partial, target_read_partial, target_write_partial)
2424 (xfer_using_stratum): Use.
2425 (debug_to_xfer_partial): Delete function.
2426 (setup_target_debug): Do not override to_xfer_partial.
2427
74a4fe32
MK
24282004-09-30 Mark Kettenis <kettenis@chello.nl>
2429
2430 * fork-child.c: Update copyright year. Fix coding style.
2431
982526a1
MK
24322004-09-29 Mark Kettenis <kettenis@gnu.org>
2433
2434 * defs.h (msavestring, mstrsave): Remove prototypes.
2435 * utils.c (msavestring, mstrsave): Remove functions.
2436 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2437 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2438 of mstrsave.
2439 * source.c (find_and_open_source): Use xstrdup instead of
2440 mstrsave.
2441
b8eb5af0
AC
24422004-09-30 Andrew Cagney <cagney@gnu.org>
2443
0779438d
AC
2444 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2445 (inf_ptrace_xfer_memory): Delete.
2446 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2447 (target_read_memory, target_write_memory): Use xfer_using_stratum
2448 when target_xfer_partial_p.
2449 (debug_target): Move to start of file.
2450 (target_read_memory_partial, target_write_memory_partial): Use
2451 to_xfer_partial when target_xfer_partial_p.
2452
f929a579
AC
2453 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2454 inf_ptrace_xfer_memory with equivalent code.
2455 * inftarg.c (child_xfer_partial): When performing a write, pass
2456 writebuf to child_xfer_memory.
2457
b8eb5af0
AC
2458 * target.c (target_read_string): Use target_read_memory instead of
2459 target_xfer_memory.
2460
ee21b650
AC
24612004-09-29 Andrew Cagney <cagney@gnu.org>
2462
d3e05d0d
AC
2463 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2464 the address of status.
2465
ee21b650
AC
2466 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2467 (kill_inferior): Inline ptrace_wait call.
2468 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2469 * inftarg.c (child_wait): Inline ptrace_wait call.
2470
a182eed6
AC
2471 * target.h (struct target_ops): Delete field to_post_wait.
2472 (target_post_wait): Delete macro.
2473 (child_post_wait): Delete declaration.
2474 * target.c (update_current_target, update_current_target)
2475 (debug_to_post_wait, setup_target_debug): Delete functions and
2476 references.
2477 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2478 * inftarg.c (child_post_wait): Delete.
2479 (init_child_ops): Do not set to_post_wait.
2480 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2481 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2482 * inf-child.c (inf_child_post_wait): Delete.
2483 (inf_child_target): Do not set to_post_wait.
2484 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2485 (inf_ptrace_target): Do not set to_post_wait.
2486
ba0c540b
AC
2487 * wince.c (child_ops): Delete.
2488 * win32-nat.c (child_ops): Delete.
2489
81977402
AC
2490 * inftarg.c (inftarg_set_find_memory_regions)
2491 (inftarg_set_make_corefile_notes): Delete functions.
2492 (_initialize_linux_nat): Inline calls.
2493
5ac10fd1
AC
2494 * target.h (child_ops): Declare.
2495 * inftarg.c (child_ops): Move from here ...
2496 * target.c (child_ops): ... to here.
2497 * wince.c (child_ops): Delete extern declaration.
2498 * win32-nat.c (child_ops): Delete extern declaration.
2499 * linux-nat.c (child_ops): Delete extern declaration.
2500 * hpux-thread.c (child_ops): Delete extern declaration.
2501
663408c2 25022004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
2503
2504 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2505
0dad8a66
MK
25062004-09-28 Mark Kettenis <kettenis@gnu.org>
2507
2508 * configure.in: Only set host_makefile_frag when building a native
2509 debugger.
2510 * configure: Regenerate.
e8d74ed3
MK
2511
2512 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2513 for OpenBSD ELF.
2514
dba24537
AC
25152004-09-28 Andrew Cagney <cagney@gnu.org>
2516
e979516b
AC
2517 Problem identified by Paul Hilfinger.
2518 * Makefile.in (ada_lex_c): Define.
2519 (ada-lex.o): Delete rule.
2520
dba24537
AC
2521 * linux-proc.c: Delete file.
2522 * Makefile.in: Update.
2523 * config/sparc/linux64.mh (NATDEPFILES):
2524 * config/sparc/linux.mh (NATDEPFILES): Update.
2525 * config/s390/s390.mh (NATDEPFILES): Update.
2526 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2527 * config/powerpc/linux.mh (NATDEPFILES): Update.
2528 * config/pa/linux.mh (NATDEPFILES): Update.
2529 * config/mips/linux.mh (NATDEPFILES): Update.
2530 * config/m68k/linux.mh (NATDEPFILES): Update.
2531 * config/ia64/linux.mh (NATDEPFILES): Update.
2532 * config/i386/linux64.mh (NATDEPFILES): Update.
2533 * config/i386/linux.mh (NATDEPFILES): Update.
2534 * config/arm/linux.mh (NATDEPFILES): Update.
2535 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2536 * linux-nat.c: Update copyright. Include <sys/param.h>,
2537 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2538 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2539 (O_LARGEFILE): Possibly define.
2540 (_initialize_linux_nat, linux_proc_pending_signals)
2541 (add_line_to_sigset, linux_proc_xfer_memory)
2542 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2543 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2544 (struct linux_corefile_thread_data)
2545 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2546 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2547
d6b0e80f
AC
25482004-09-16 Andrew Cagney <cagney@gnu.org>
2549
2550 * lin-lwp.c: Delete file.
2551 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2552 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2553 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2554 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2555 (linux_nat_attach, detach_callback, linux_nat_detach)
2556 (resume_callback, resume_clear_callback, linux_nat_resume)
2557 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2558 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2559 (status_callback, running_callback, count_events_callback)
2560 (select_singlestep_lwp_callback, select_event_lwp_callback)
2561 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2562 (child_wait, stop_and_resume_callback, linux_nat_wait)
2563 (kill_callback, kill_wait_callback, linux_nat_kill)
2564 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2565 (linux_nat_xfer_memory, linux_nat_thread_alive)
2566 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2567 (_initialize_linux_nat): New functions.
2568 * Makefile.in: Update all dependencies.
2569 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2570 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2571 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2572 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2573 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2574 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2575 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2576 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2577 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2578 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2579 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2580 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2581 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2582
5a174d79
MK
25832004-09-27 Mark Kettenis <kettenis@gnu.org>
2584
2f604c28
MK
2585 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2586 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2587
5a174d79
MK
2588 * configure.in: Don't comment out NATDEPFILES in the generated
2589 Makefile if NAT_FILE is unset.
2590 * configure: Regenerate.
2591
b2ed1746
AC
25922004-09-27 Andrew Cagney <cagney@gnu.org>
2593
44cbf7b5
AC
2594 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2595 (insert_step_resume_breakpoint): Delete.
2596 (insert_step_resume_breakpoint_at_frame): New function.
2597 (insert_step_resume_breakpoint_at_sal): New function.
2598 (handle_inferior_event, step_into_function)
2599 (insert_step_resume_breakpoint): Simplify by using same.
2600
b2ed1746
AC
2601 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2602
3691b3be
MK
26032004-09-26 Mark Kettenis <kettenis@gnu.org>
2604
36f391e8
MK
2605 * fbsd-proc.c: Remove file.
2606 * Makefile.in (fbsd-proc.o): Remove dependency.
2607
771e236c
MK
2608 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2609 code together.
2610
3691b3be
MK
2611 * config/i386/nm-fbsd64.h: Remove file.
2612 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2613
6a5c78a3
MK
26142004-09-26 Mark Kettenis <kettenis@gnu.org>
2615
2616 * amd64-nat.h: Update copyright year.
2617 (amd64bsd_target): New prototype.
2618 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2619 (amd64bsd_target): New function.
2620 (amd64bsd_fetch_inferior_registers): Rename from
2621 fetch_inferior_registers. Make static.
2622 (amd64bsd_store_inferior_registers): Rename from
2623 store_inferior_registers. Make static.
2624 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2625 (_initialize_amd64fbsd_nat): Construct and add target vector.
2626 * amd64nbsd-nat.o: Include "target.h".
2627 (_initialize_amd64nbsd_nat): Construct and add target vector.
2628 * amd64obsd-nat.c: Include "target.h".
2629 (_initialize_amd64obsd_nat): Construct and add target vector.
2630 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2631 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2632 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2633 fbsd-nat.o.
2634 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2635 Remove infptrace.o and inftarg.o. Add inf-child.o and
2636 inf-ptrace.o.
2637 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2638 (amd64obsd-nat.o): Update dependencies.
2639
27acbe61
MK
26402004-09-25 Mark Kettenis <kettenis@gnu.org>
2641
509a5e7d
MK
2642 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2643 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2644 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2645 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2646 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2647
6e1e94ea
MK
2648 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2649 Inline attach call.
2650 (inf_ptrace_detach): Inline detach call.
2651
8b9cf735
MK
2652 * configure.in: Check for waddstr instead of mvwaddstr when
2653 searching for curses library. Check for wborder.
2654 * configure, config.in: Regenerate.
2655 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2656 available.
2657
27acbe61
MK
2658 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2659
b96ec7ac
AC
26602004-09-24 Robert Picco <Robert.Picco@hp.com>
2661
2662 Committed by Andrew Cagney.
2663 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2664 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2665 configuration.
2666 (fetch_register_using_p): Implement 'p' packet. Based on code by
2667 Fernando Nasser.
2668 (remote_fetch_registers): Call fetch_register_using_p.
2669 (init_all_packet_configs, show_remote_cmd)
2670 (_initialize_remote): Add p-packet.
2671
62ece330
MK
26722004-09-24 Mark Kettenis <kettenis@gnu.org>
2673
2674 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2675 instead of call_ptrace. Call wait directly instead of
2676 ptrace_wait.
2677 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2678 (inf_ptrace_wait): Inline ptrace_wait call.
2679
00937274
PH
26802004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2681
2682 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2683 rolled back instead.
2684
3f2c7a45
PH
26852004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2686
2687 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2688 the new argument order.
2689
b6fcb393
CV
26902004-09-23 Corinna Vinschen <vinschen@redhat.com>
2691
2692 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2693 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2694 (struct gdbarch_tdep): Remove.
2695 (struct xstormy16_frame_cache): New frame cache structure.
2696 (xstormy16_register_byte, xstormy16_register_raw_size)
2697 (xstormy16_reg_virtual_type, xstormy16_register_type)
2698 (xstormy16_push_arguments, xstormy16_push_return_address)
2699 (xstormy16_pop_frame, xstormy16_store_struct_return)
2700 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2701 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2702 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2703 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2704 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2705 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2706 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2707 (xstormy16_extract_return_value, xstormy16_store_return_value):
2708 Regcachify. Drop useless struct convention handling.
2709 (xstormy16_register_type, xstormy16_return_value)
2710 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2711 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2712 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2713 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2714 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2715 (xstormy16_unwind_dummy_id) : New functions.
2716 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2717 of xstormy16_scan_prologue.
2718 (xstormy16_frame_unwind): New frame_unwind structure.
2719 (xstormy16_frame_base): New frame_base structure.
2720 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2721 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2722
1285b746
MK
27232004-09-22 Mark Kettenis <kettenis@gnu.org>
2724
2725 * language.c (language_gdbarch_post_init): Fix off-by one error.
2726
1c379e20
DJ
27272004-09-21 Daniel Jacobowitz <dan@debian.org>
2728
2729 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2730 (struct dwarf2_offset_and_type): New.
2731 (set_die_type, reset_die_and_siblings_types, get_die_type)
2732 (offset_and_type_hash, offset_and_type_eq): New functions.
2733 (read_structure_type, read_enumeration_type, read_array_type)
2734 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2735 (read_tag_reference_type, read_tag_const_type)
2736 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2737 (read_typedef, read_base_type, read_subrange_type): Use
2738 set_die_type.
2739
ae038cb0
DJ
27402004-09-20 Daniel Jacobowitz <dan@debian.org>
2741
2742 * Makefile.in (dwarf2read.o): Update dependencies.
2743 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2744 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2745 and read_in_chain.
2746 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2747 mark, and has_form_ref_addr.
2748 (struct dwarf2_per_cu_data): New.
2749 (dwarf2_max_cache_age): New.
2750 (dwarf2_build_psymtabs_hard): Free cached compilation units
2751 after loading. Create and manage the list of compilation units.
2752 Remove unnecessary NULL initialization. Fix indentation.
2753 (psymtab_to_symtab_1): Initialize all of CU.
2754 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2755 (find_partial_die): Use dwarf2_find_containing_comp_unit
2756 and load_comp_unit.
2757 (free_stack_comp_unit): Update comments. Clear the per-cu
2758 pointer. Handle aging.
2759 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2760 (age_cached_comp_units, free_one_cached_comp_unit)
2761 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2762 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2763 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2764 (show_dwarf2_cmd): New.
2765 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2766 and "maint show dwarf2 max-cache-age".
2767 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2768 externs.
2769 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2770 global.
2771
987504bb
JJ
27722004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2773
2774 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2775 and dwarf2_cu struct pointer as arguments. Change function to use
2776 obstack if provided and use dwarf2_cu to determine language-specific
2777 separator.
2778 (partial_die_parent_scope): Change comment to include java. Use
2779 new version of typename_concat instead of obconcat.
2780 (partial_die_full_name): Use typename_concat.
2781 (read_namespace): Ditto.
2782 (read_enumeration_type): Use typename_concat instead of obconcat.
2783 (new_symbol): Ditto.
2784 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2785 (guess_structure_name): Ditto.
2786 (read_subroutine_type): Ditto.
2787 (read_structure_type): Ditto.
2788 (is_vtable_name): Add Java support.
2789 (determine_class_name): Switch to new typename_concat call.
2790 (determine_prefix): Switch to new typename_concat call.
2791 * jv-exp.y (FuncStart): New pattern.
2792 (MethodInvocation): Add support for simple function calls. Change
2793 warning message for other forms of inferior call currently not
2794 supported.
2795 * valarith.c (value_subscript): Treat an array with upper-bound
2796 of -1 as unknown size.
2797
d9c8471e
DJ
27982004-09-20 Daniel Jacobowitz <dan@debian.org>
2799
2800 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2801 (lookup_partial_symtab): Use symtab_to_fullname.
2802
d73f140a
JB
28032004-09-19 Jim Blandy <jimb@redhat.com>
2804
2805 * minsyms.c (lookup_minimal_symbol): Doc fix.
2806
adbef1f0
AC
28072004-09-20 Andrew Cagney <cagney@gnu.org>
2808
2809 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2810 CHILD_RESUME.
2811 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2812 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2813 KILL_INFERIOR.
2814 * infptrace.c: Update.
2815
d092d1a2
DJ
28162004-09-19 Daniel Jacobowitz <dan@debian.org>
2817
2818 * symtab.c (output_source_filename): Mark first argument as const.
2819 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2820 for "info sources" output.
2821
86d9e1d7
MK
28222004-09-20 Mark Kettenis <kettenis@gnu.org>
2823
2824 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2825 <machine/vmparam.h>.
2826 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2827 (register_u_addr): Remove prototype.
2828
9a6c8ef4
MK
28292004-09-19 Mark Kettenis <kettenis@gnu.org>
2830
9692934b
MK
2831 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2832 (i386bsd_fetch_inferior_registers): Rename from
2833 fetch_inferior_registers. Make static.
2834 (i386bsd_store_inferior_registers): Rename from
2835 store_inferior_registers. Make static.
2836 (i386bsd_target): New function.
2837 * i386bsd-nat.h: New file.
2838 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2839 "i386bsd-nat.h".
2840 (i386fbsd_resume): Rename from child_resume. Make static.
2841 (_initialize_i386fbsd_nat): Construct and add target vector.
2842 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2843 (_initialize_i386nbsd_nat): Construct and add target vector.
2844 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2845 Remove defines.
2846 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2847 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2848 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2849 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2850 (LOADLIBES): New variable.
2851 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2852 inf-ptrace.o. Remove inftarg.o.
2853 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2854 inf-ptrace.o. Remove inftarg.o.
2855 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2856 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2857 (LOADLIBES): New variable.
2858 * Makefile.in (i386bsd_nat_h): New variable.
2859 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2860 dependencies.
2861
3510d1f2
MK
2862 * sparc64nbsd-tdep.c: Include "objfiles.h".
2863 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2864 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2865 svr4_lp64_fetch_link_map_offsets.
2866 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2867 "nbsd-tdep.h".
2868 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2869 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2870 svr4_lp64_fetch_link_map_offsets.
2871 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2872 dependencies.
2873
578c1c03
MK
2874 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2875 * fbsd-nat.h: New file.
2876 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2877 (fbsd_nat_h): New variable.
2878 (fbsd-nat.o): New dependency.
2879
7a7b73b7
MK
2880 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2881 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2882
9a6c8ef4
MK
2883 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2884 comment.
2885
72d5681a
PH
28862004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2887
2888 * ada-exp.y (type_int): New function to add layer of abstraction
2889 around references to expression types.
2890 (type_long): Ditto.
2891 (type_long_long): Ditto.
2892 (type_float): Ditto.
2893 (type_double): Ditto.
2894 (type_long_double): Ditto.
2895 (type_char): Ditto.
2896 (type_system_address): Ditto.
2897 (simple_exp): Use type_* functions in place of builtin_*
2898 variables.
2899 (exp): Ditto.
2900 (write_var_from_name): Ditto.
2901 (write_object_renaming): Ditto.
2902 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2903 declaration.
2904 (build_ada_types): Remove, replacing with...
2905 (ada_language_arch_info): New function to initialize primitive
2906 type vector in language_arch_info.
2907 (ada_array_length): Remove use of builtin_type_ada_int.
2908 (value_pos_atr): Ditto.
2909 (ada_evaluate_subexp): Ditto.
2910 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2911 builtin_type_ada_long_long, builtin_type_ada_char,
2912 builtin_type_ada_float, builtin_type_ada_double,
2913 builtin_type_ada_long_double, builtin_type_ada_natural,
2914 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2915 (ada_builtin_types): Remove.
2916 (ada_language_defn): Remove entries for la_builtin_type_vector and
2917 string_char_type and use ada_language_arch_info.
2918 (_initialize_ada_language): Do type-vector initialization along
2919 the lines of c-lang.c.
2920 (ada_create_fundamental_type): Break up line.
2921 (ada_dump_symtab): Remove unused function.
2922 (enum ada_primitive_types): Define.
2923 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2924 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2925 builtin_type_ada_float, builtin_type_ada_double,
2926 builtin_type_ada_long_double, builtin_type_ada_natural,
2927 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2928 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2929 (processInt): Ditto.
2930 (processReal): Ditto.
2931 (name_lookup): Ditto.
2932 * ada-typeprint.c (print_range): Use builtin_type_int, not
2933 builtin_type_ada_int.
2934
4f0be353
MK
29352004-09-18 Mark Kettenis <kettenis@gnu.org>
2936
30b0e2d8
MK
2937 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2938
4f0be353
MK
2939 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2940 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2941 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2942 * configure.in: Improve checks for curses library by checking for
2943 mvwaddstr instead of initscr. Drop HP curses in favour of
2944 standard curses on HP-UX.
2945 * configure: Regenerated.
2946
72d5681a 29472004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
2948
2949 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2950 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2951 Minor formatting changes.
2952 (empty_array): Slight rewrite for formatting.
2953 (emit_char,parse,ada_language_defn,build_ada_types,
2954 ada_is_exception_sym, _initialize_ada_language): Move
2955 definitions around.
2956 (ada_dump_symtab): Remove unused definition.
2957 (ada_maybe_exception_partial_symbol): Remove unused definition.
2958
1c8c7407
AC
29592004-09-16 Andrew Cagney <cagney@gnu.org>
2960
7681f339
AC
2961 * inf-child.c: Include "gdb_string.h".
2962 (inf_child_core_file_to_sym_file): Delete.
2963 (inf_child_target): Set to_fetch_registers and to_store_registers.
2964 * inf-ptrace.c: Include "gdb_string.h".
2965 * Makefile.in: Update all dependencies.
2966
1c8c7407
AC
2967 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2968 problem.
2969
65596487
JB
29702004-09-14 Joel Brobecker <brobecker@gnat.com>
2971
2972 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2973 call to heuristic_proc_desc. Remove code that became redundant
2974 as a consequence.
2975 (read_next_frame_reg): Remove special case for SP_REGNUM.
2976 (set_reg_offset): Fix small typo.
2977 (reset_saved_regs): New procedure.
2978 (mips32_heuristic_proc_desc): No longer compute a fake
2979 procedure descriptor. Compute the full frame cache instead.
2980 Some minor comment reformatting.
2981
95575b2e
AC
29822004-09-14 Andrew Cagney <cagney@gnu.org>
2983
f200c492
AC
2984 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2985 maintainer.
2986
95575b2e
AC
2987 * thread-db.c (thread_db_new_objfile): Assume that there is a
2988 child process.
2989
69657671
JB
29902004-09-13 Jim Blandy <jimb@redhat.com>
2991
2992 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2993 so that its storage isn't referenced after its lifetime ends.
2994
6c4182dd
JB
2995 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2996 and never assigned to. Delete it, and the 'if (use_buffer)'
2997 clauses. Delete 'raw_buffer', since it is now unused.
2998
ee31a58d
AC
29992004-09-13 Andrew Cagney <cagney@gnu.org>
3000
2c0fc042
AC
3001 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
3002 * configure: Re-generate.
3003 * nlm/Makefile.in (TAGS): Update.
3004 * Makefile.in (TAGS): Update.
3005 * config/vax/nbsd.mt (TM_FILE): Update.
3006 * config/sparc/vxworks.mt (TM_FILE): Update.
3007 * config/sparc/sol2.mt (TM_FILE): Update.
3008 * config/sparc/sol2-64.mt (TM_FILE): Update.
3009 * config/sparc/obsd64.mt (TM_FILE): Update.
3010 * config/sparc/obsd.mt (TM_FILE): Update.
3011 * config/sparc/nbsd64.mt (TM_FILE): Update.
3012 * config/sparc/nbsd.mt (TM_FILE): Update.
3013 * config/sparc/linux64.mt (TM_FILE): Update.
3014 * config/sparc/linux.mt (TM_FILE): Update.
3015 * config/sparc/fbsd.mt (TM_FILE): Update.
3016 * config/sh/wince.mt (TM_FILE): Update.
3017 * config/sh/nbsd.mt (TM_FILE): Update.
3018 * config/sh/linux.mt (TM_FILE): Update.
3019 * config/sh/embed.mt (TM_FILE): Update.
3020 * config/s390/s390.mt (TM_FILE): Update.
3021 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
3022 * config/rs6000/rs6000.mt (TM_FILE): Update.
3023 * config/rs6000/aix4.mt (TM_FILE): Update.
3024 * config/powerpc/vxworks.mt (TM_FILE): Update.
3025 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
3026 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
3027 * config/powerpc/obsd.mt (TM_FILE): Update.
3028 * config/powerpc/nbsd.mt (TM_FILE): Update.
3029 * config/powerpc/linux.mt (TM_FILE): Update.
3030 * config/powerpc/aix.mt (TM_FILE): Update.
3031 * config/pa/obsd.mt (TM_FILE): Update.
3032 * config/pa/linux.mt (TM_FILE): Update.
3033 * config/pa/hppahpux.mt (TM_FILE): Update.
3034 * config/pa/hppa64.mt (TM_FILE): Update.
3035 * config/pa/hppa.mt (TM_FILE): Update.
3036 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
3037 * config/mips/wince.mt (TM_FILE): Update.
3038 * config/mips/vxmips.mt (TM_FILE): Update.
3039 * config/mips/nbsd.mt (TM_FILE): Update.
3040 * config/mips/linux.mt (TM_FILE): Update.
3041 * config/mips/irix6.mt (TM_FILE): Update.
3042 * config/mips/irix5.mt (TM_FILE): Update.
3043 * config/mips/embed.mt (TM_FILE): Update.
3044 * config/m68k/vxworks68.mt (TM_FILE): Update.
3045 * config/m68k/st2000.mt (TM_FILE): Update.
3046 * config/m68k/os68k.mt (TM_FILE): Update.
3047 * config/m68k/obsd.mt (TM_FILE): Update.
3048 * config/m68k/nbsd.mt (TM_FILE): Update.
3049 * config/m68k/monitor.mt (TM_FILE): Update.
3050 * config/m68k/linux.mt (TM_FILE): Update.
3051 * config/m68k/cisco.mt (TM_FILE): Update.
3052 * config/ia64/linux.mt (TM_FILE): Update.
3053 * config/ia64/aix.mt (TM_FILE): Update.
3054 * config/ia64/ia64.mt (TM_FILE): Update.
3055 * config/i386/vxworks.mt (TM_FILE): Update.
3056 * config/i386/obsd64.mt (TM_FILE): Update.
3057 * config/i386/obsd.mt (TM_FILE): Update.
3058 * config/i386/nto.mt (TM_FILE): Update.
3059 * config/i386/nbsd64.mt (TM_FILE): Update.
3060 * config/i386/nbsd.mt (TM_FILE): Update.
3061 * config/i386/linux64.mt (TM_FILE): Update.
3062 * config/i386/linux.mt (TM_FILE): Update.
3063 * config/i386/i386sol2.mt (TM_FILE): Update.
3064 * config/i386/i386lynx.mt (TM_FILE): Update.
3065 * config/i386/fbsd64.mt (TM_FILE): Update.
3066 * config/i386/fbsd.mt (TM_FILE): Update.
3067 * config/i386/cygwin.mt (TM_FILE): Update.
3068 * config/h8300/h8300.mt (TM_FILE): Update.
3069 * config/frv/frv.mt (TM_FILE): Update.
3070 * config/cris/cris.mt (TM_FILE): Update.
3071 * config/arm/wince.mt (TM_FILE): Update.
3072 * config/arm/nbsd.mt (TM_FILE): Update.
3073 * config/arm/linux.mt (TM_FILE): Update.
3074 * config/arm/embed.mt (TM_FILE): Update.
3075 * config/alpha/nbsd.mt (TM_FILE): Update.
3076 * config/alpha/fbsd.mt (TM_FILE): Update.
3077 * config/alpha/alpha.mt (TM_FILE): Update.
3078 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
3079 * config/alpha/alpha-linux.mt (TM_FILE): Update.
3080
362646f5
AC
3081 Eliminate event_loop_p, always has the value 1.
3082 * defs.h (event_loop_p): Delete macro.
3083 * breakpoint.c (until_break_command): Simplify.
3084 * utils.c (prompt_for_continue): Simplify.
3085 * tracepoint.c (read_actions): Simplify.
3086 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
3087 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
3088 (set_prompt, init_main): Simplify.
3089 (init_signals, disconnect): Delete, unused.
3090 * remote.c (remote_async_resume)
3091 (extended_remote_async_create_inferior): Simplify.
3092 * mi/mi-interp.c (mi_input): Delete, unused.
3093 (mi_interpreter_resume, mi_command_loop): Simplify.
3094 * interps.c (current_interp_command_loop): Simplify.
3095 * infrun.c (proceed): Simplify.
3096 * infcmd.c (run_command, continue_command, step_1, jump_command)
3097 (until_command, advance_command, finish_command)
3098 (interrupt_target_command): Simplify.
3099 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
3100
ee31a58d
AC
3101 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3102 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3103 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3104 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3105 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3106 * mips-tdep.c (mips_dump_tdep): Do not print same.
3107
b7ffc4a8
AC
31082004-09-12 Andrew Cagney <cagney@gnu.org>
3109
2bfb72ee
AC
3110 * valprint.c (print_longest): Use fputs_filtered. Make "val"
3111 const.
3112 * Makefile.in (valprint.o): Delete explict rule.
3113
4f17c3c1
AC
3114 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
3115 reported by Dave Anderson.
3116
f810308b
AC
3117 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
3118
b7ffc4a8
AC
3119 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
3120
28b41c52
AC
31212004-09-12 Salvador E. Tropea <set@users.sf.net>
3122 Andrew Cagney <cagney@gnu.org>
3123
3124 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
3125 (mi_cmd_data_list_register_values)
3126 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
3127 the register number computation.
3128
5bf970f9
AC
31292004-09-12 Andrew Cagney <cagney@gnu.org>
3130
3131 * ppcnbsd-nat.c: Include "inf-ptrace.h".
3132 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
3133 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
3134 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
3135 target.
3136 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3137 inf-ptrace.o and inf-child.o.
3138 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3139 * Makefile.in: Update dependencies.
3140
0759e0bf
AC
31412004-09-11 Andrew Cagney <cagney@gnu.org>
3142
3143 * language.c (hex_string, hex_string_custom): Move from here ...
3144 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3145 (CELLSIZE): Increase to 50.
3146 * language.h (hex_string, hex_string_custom): Move from here ...
3147 * defs.h: ... to here.
3148 * Makefile.in: Update all dependencies.
3149
bb599908
PH
31502004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
3151
3152 * language.c (local_hex_format_custom): Remove.
3153 (local_hex_string): Rename to hex_string, use C format, and move to
3154 utils.c
3155 (local_hex_string_custom): Rename to hex_string_custom and change
3156 interface. Now uses C format. Move to utils.c
3157 (local_octal_format_custom): Remove.
3158 (local_decimal_format_custom): Remove.
3159 (unknown_language_defn): Remove language-specific number
3160 formatting entries.
3161 (auto_language_defn): Ditto.
3162 (local_language_defn): Ditto.
3163 * language.h (struct language_format_info): Delete declaration.
3164 (struct language_defn): Remove language_format_info fields
3165 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3166 (local_binary_format): Remove macro.
3167 (local_binary_format_prefix): Remove macro.
3168 (local_binary_format_specifier): Remove macro.
3169 (local_binary_format_suffix): Remove macro.
3170 (local_octal_format): Remove macro.
3171 (local_octal_format_prefix): Remove macro.
3172 (local_octal_format_specifier): Remove macro.
3173 (local_octal_format_suffix): Remove macro.
3174 (local_decimal_format): Remove macro.
3175 (local_decimal_format_prefix): Remove macro.
3176 (local_decimal_format_specifier): Remove macro.
3177 (local_decimal_format_suffix): Remove macro.
3178 (local_hex_format): Remove macro.
3179 (local_hex_format_prefix): Remove macro.
3180 (local_hex_format_specifier): Remove macro.
3181 (local_hex_format_suffix): Remove macro.
3182 (local_decimal_format_custom): Remove.
3183 (local_octal_format_custom): Remove.
3184 (local_hex_format_custom): Remove.
3185 (local_hex_string): Rename to hex_string and move to defs.h.
3186 (local_hex_string_custom): Rename to hex_string_custom, change
3187 interface, and move to defs.h.
3188 * utils.c: (int_string): New function.
3189 (hex_string): New function (from language.c).
3190 (hex_string_custom): New function (from language.c).
3191 (octal2str): New function.
3192 (decimal2str): Add width parameter.
3193 (paddr_u): Use new decimal2str interface.
3194 (paddr_d): Ditto.
3195 * defs.h (hex_string): Declare.
3196 (hex_string_custom): Declare.
3197 (int_string): Declare.
3198 * printcmd.c (print_scalar_formatted): Remove localized binary
3199 formatting.
3200 * valprint.c (print_longest): Use int_string.
3201 (print_floating): Use C hex format.
3202 (print_hex_chars): Ditto.
3203 (print_binary_chars): Remove language-specific formatting.
3204 (print_octal_chars): Use C octal format.
3205 (print_decimal_chars): Delocalize format.
3206 (print_decimal): Remove.
3207 * ada-lang.c (ada_language_defn): Remove language-specific number
3208 formatting entries.
3209 * p-lang.c (pascal_language_defn): Ditto.
3210 * c-lang.c (c_language_defn): Ditto.
3211 (cplus_language_defn): Ditto.
3212 (asm_language_defn): Ditto.
3213 (minimal_language_defn): Ditto.
3214 * f-lang.c (f_language_defn): Ditto.
3215 * jv-lang.c (java_language_defn): Ditto.
3216 * m2-lang.c (m2_language_defn): Ditto.
3217 * scm-lang.c (scm_language_defn): Ditto.
3218 * objc-lang.c (objc_language_defn): Ditto.
3219 * memattr.c (mem_info_command): Use renamed hex_string_custom with
3220 new interface.
3221 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3222 * ui-out.c (ui_out_field_core_addr): Ditto.
3223 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3224 * exec.c (print_section_info): Ditto.
3225 * i387-tdep.c (print_i387_status_word): Ditto.
3226 (print_i387_control_word): Ditto.
3227 (i387_print_float_info): Ditto.
3228 * maint.c (maint_print_section_info): Ditto.
3229 * solib.c (info_sharedlibrary_command): Ditto.
3230 * somsolib.c (som_sharedlibrary_info_command): Ditto.
3231 * symtab.c (print_msymbol_info): Ditto.
3232 * tracepoint.c (tracepoints_info): Ditto.
3233 * solib-frv.c (lm_base): Ditto.
3234 (frv_current_sos): Ditto.
3235 (enable_break2): Ditto.
3236 (enable_break): Ditto.
3237 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3238 (process_one_symbol): Ditto.
3239 * infcmd.c (program_info): Ditto.
3240 * mdebugread.c (parse_partial_symbols): Ditto.
3241 * symfile.c (add_symbol_file_command): Ditto.
3242 * cli/cli-cmds.c (edit_command): Ditto.
3243 (list_command): Ditto.
3244 * infcall.c (call_function_by_hand): Ditto.
3245 * remote-vx.c (vx_run_files_info): Ditto.
3246 (vx_wait): Ditto.
3247 (vx_attach): Ditto.
3248 (vx_detach): Ditto.
3249 (vx_kill): Ditto.
3250 * aix-thread.c (pdc_symbol_addrs): Ditto.
3251 (pdc_read_regs): Ditto.
3252 (pdc_write_regs): Ditto.
3253 (pdc_read_data): Ditto.
3254 (pdc_write_data): Ditto.
3255 * d10v-tdep.c (display_trace): Ditto.
3256 * rs6000-nat.c (find_toc_address): Ditto.
3257 * aix-thread.c: Don't include language.h.
3258 * buildsym.c: Ditto.
3259 * dbxread.c: Ditto.
3260 * mdebugread.c: Ditto.
3261 * rs6000-nat.c: Ditto.
3262 * buildsym.c (make_blockvector): Use renamed hex_string.
3263
33f2d567
JM
32642004-09-10 Jason Molenda (jmolenda@apple.com)
3265
3266 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3267 chars after 'if' or 'while' commands in user-defined commands.
3268
7b90c3f9
JB
32692004-09-08 Jim Blandy <jimb@redhat.com>
3270
3271 Fix bug reported and analyzed by Olivier Crete:
3272 * symfile.c (copy_section_addr_info): New function.
3273 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3274 original set of address arguments, instead of handwritten code
3275 that uses one length to allocate and a different length to
3276 initialize. Use make_cleanup_free_section_addr_info.
3277 * symfile.h (copy_section_addr_info): New declaration.
3278 * utils.c: #include "symfile.h".
3279 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3280 New functions.
3281 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3282 * Makefile.in (utils.o): Update dependencies.
3283
b26a6851
AC
32842004-09-08 Andrew Cagney <cagney@gnu.org>
3285
3286 * thread-db.c (keep_thread_db): Delete.
3287 (thread_db_new_objfile, thread_db_create_inferior)
3288 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3289
be24b061
MK
32902004-09-08 Mark Kettenis <kettenis@gnu.org>
3291
f6792ef4
MK
3292 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3293 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3294 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3295 (i386_frameless_signal_p): Remove prototype.
3296 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3297 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3298 I386_SSE_NUM_REGS.
3299 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3300 instead of FP0_REGNUM.
3301 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3302 of FP0_REGNUM and FPC_REGNUM.
3303
eeefdaa7
MK
3304 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3305 (sunos_solib_create_inferior_hook): Don't call
3306 sunos_relocate_main_executable.
3307
be24b061
MK
3308 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3309 solib_svr4_fetch_link_map_offsets to
3310 svr4_ilp32_fetch_link_map_offsets.
3311 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3312 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3313 svr4_ilp32_fetch_link_map_offsets.
3314 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3315
7c679d16
JB
33162004-09-07 Jim Blandy <jimb@redhat.com>
3317
3318 * frame.h (frame_register): Doc fix.
3319
1f04aa62
AC
33202004-09-07 Andrew Cagney <cagney@gnu.org>
3321
3322 * vx-share/wait.h: Delete #ifdef USG.
3323 * utils.c (request_quit): Ditto.
3324 * tui/tui.c (tui_reset): Ditto.
3325 * remote.c: Ditto.
3326 * remote-sds.c: Ditto.
3327 * remote-rdi.c: Ditto.
3328 * mdebugread.c: Ditto.
3329 * m68klinux-nat.c: Ditto.
3330 * infttrace.c: Ditto.
3331 * infptrace.c: Ditto.
3332 * i386v-nat.c: Ditto.
3333 * exec.c: Ditto.
3334 * dbxread.c: Ditto.
3335 * core-aout.c: Ditto.
3336
90edbfbc
JB
33372004-09-05 Joel Brobecker <brobecker@gnat.com>
3338
3339 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3340 heuristic_proc_desc.
3341 (mips_insn32_frame_cache): Likewise.
3342
01f4bf2b
JB
33432004-09-04 Joel Brobecker <brobecker@gnat.com>
3344
3345 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3346 left behind by error.
3347
8511a048
JB
33482004-09-04 Joel Brobecker <brobecker@gnat.com>
3349
3350 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3351 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3352
649dfe9f
JB
33532004-09-04 Joel Brobecker <brobecker@gnat.com>
3354
3355 * config/rs6000/xm-aix4.h: Remove this file.
3356 * config/rs6000/aix4.mh (XM_FILE): Delete.
3357
6e50f889
JB
33582004-09-04 Joel Brobecker <brobecker@gnat.com>
3359
3360 * config/rs6000/xm-rs6000.h: Remove this file.
3361 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3362
b8c4aece
AC
33632004-09-03 Andrew Cagney <cagney@gnu.org>
3364
fb603883
AC
3365 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3366 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3367 only use.
3368
c9343fd1
AC
3369 * mips-tdep.c (temp_saved_regs): Delete.
3370 (set_reg_offset): Replace saved_regs parameter with this_cache.
3371 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3372 (mips32_heuristic_proc_desc): Add this_cache parameter.
3373 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3374 (after_prologue): Pass a NULL this_cache.
3375
9733cfe1
AC
3376 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3377 non-kernel trap prologues.
3378
0d5febcc
AC
3379 * mips-tdep.c (find_proc_desc): Delete function.
3380 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3381 simplify.
3382 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3383 mips_insn32_frame_cache.
3384
9733cfe1 3385 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
3386 Simplify as NEXT_FRAME is NULL.
3387 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3388
177f84a3
AC
3389 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3390 local variable.
3391 (mips_skip_prologue): Update.
3392
465f7520
AC
3393 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3394 "cur_frame" parameter.
177f84a3
AC
3395 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3396 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 3397
e38b8658
AC
3398 * config/vax/nm-obsd.h: Delete file.
3399 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3400 * config/vax/nm-nbsd.h: Delete file.
3401 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3402 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3403 * config/sh/nm-nbsd.h: Delete file.
3404 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3405 * config/rs6000/nm-rs6000ly.h: Delete file.
3406 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3407 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3408 * config/powerpc/nm-obsd.h: Delete file.
3409 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3410 * config/powerpc/nm-nbsd.h: Delete file.
3411 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3412 * config/pa/nm-obsd.h: Delete file.
3413 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3414 * config/mips/nm-nbsd.h: Delete file.
3415 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3416 * config/m88k/nm-obsd.h: Delete file.
3417 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3418 * config/m68k/nm-nbsd.h: Delete file.
3419 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3420 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3421 * config/i386/nm-nbsd.h: Delete file.
3422 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3423 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3424 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3425 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3426 * config/i386/nm-i386lynx.h: Delete file.
3427 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3428 * config/arm/nm-nbsd.h: Delete file.
3429 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3430 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3431
be1ed680
AC
3432 * config/i386/tm-fbsd.h: Delete file.
3433 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3434 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3435
4b392b26
AC
3436 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3437 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3438 * config/rs6000/aix4.mt (TM_FILE): Set to
3439 config/rs6000/tm-rs6000.h.
3440 * config/powerpc/tm-ppc-aix.h: Delete file.
3441 * config/powerpc/aix.mt (TM_FILE): Set to
3442 config/rs6000/tm-rs6000.h.
3443 * config/m68k/tm-linux.h: Delete file.
3444 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3445 * config/i386/tm-linux64.h: Delete file.
3446 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3447 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3448
f3219c75
AC
3449 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3450 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3451 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3452 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3453 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3454 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3455 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3456 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3457 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3458
b8c4aece
AC
3459 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3460 gdb_host_cpu.
3461
8ac2e020
JB
34622004-09-02 Joel Brobecker <brobecker@gnat.com>
3463
3464 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3465 Minor reformatting. Some code factoring.
3466
c185a355
AC
34672004-09-02 Andrew Cagney <cagney@gnu.org>
3468
63f22f0d
AC
3469 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3470 * config/vax/tm-nbsd.h: Delete file.
3471 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3472 * config/sparc/tm-vxworks.h: Delete file.
3473 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3474 * config/sparc/tm-nbsd.h: Delete file.
3475 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3476 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3477 * config/sparc/tm-linux.h: Delete file.
3478 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3479 * config/s390/tm-linux.h: Delete file.
3480 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3481 * config/pa/tm-bsd.h: Delete file.
3482 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3483 * config/m68k/tm-obsd.h: Delete file.
3484 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3485 * config/m68k/tm-nbsd.h: Delete file.
3486 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3487 * config/i386/tm-vxworks.h: Delete file.
3488 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3489 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3490 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3491 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3492 * config/i386/tm-nbsd.h: Delete file.
3493 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3494 * config/i386/tm-i386lynx.h: Delete file.
3495 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3496 * config/cris/tm-cris.h: Delete file.
3497
0f475e27
AC
3498 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3499 * configure: Re-generate.
3500 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3501 * config/arm/tm-nbsd.h: Delete file.
3502
458ed000
AC
3503 * config/powerpc/tm-ppcle-sim.h: Delete.
3504 * config/powerpc/tm-ppcle-eabi.h: Delete.
3505 * config/powerpc/tm-nbsd.h: Delete.
3506 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3507 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3508 tm-ppcle-eabi.h.
3509
f14375f3
AC
3510 * config/i386/nto.mh (NAT_FILE): Delete.
3511 * config/i386/nm-nto.h: Delete.
3512
c34d127c
AC
3513 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3514 * config/m68k/tm-os68k.h: Ditto.
3515 * config/m68k/tm-monitor.h: Ditto.
3516 * config/m68k/tm-cisco.h: Ditto.
3517 * config/m68k/st2000.mt (TM_FILE): Delete.
3518 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3519 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3520 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3521 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3522
f7f0fe03
AC
3523 * config/m68k/tm-st2000.h: Delete.
3524 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3525 * config/sparc/fbsd.mt (TM_FILE): Delete.
3526 * config/sparc/tm-fbsd.h: Delete.
3527
a2558533
AC
3528 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3529 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3530 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3531
b78960be
AC
3532 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3533 GDB_TM_FILE and GDB_XM_FILE.
3534 * gdbarch.c: Re-generate.
3535 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3536 quotes in macro definition.
3537 * configure.in: Re-generate.
3538
4d60522e
AC
3539 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3540 validating architecture methods.
3541 * gdbarch.c: Re-generate.
3542
5010d38b
AC
3543 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3544 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3545 GDB_MULTI_ARCH_PARTIAL.
3546 * gdbarch.h: Re-generate.
3547
c185a355
AC
3548 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3549 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3550 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3551 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3552 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3553 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3554 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3555 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3556 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3557 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3558 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3559 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3560
14aaa6ab
AC
35612004-09-01 Andrew Cagney <cagney@gnu.org>
3562
3563 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3564 and main_func_highpc.
3565 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3566 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3567 * nlmread.c (nlm_symfile_read): Update.
3568
a343eb3c
JB
35692004-09-01 Joel Brobecker <brobecker@gnat.com>
3570
3571 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3572 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3573 (find_proc_desc): Remove dead code.
3574
4fbbbd07
JB
35752004-09-01 Joel Brobecker <brobecker@gnat.com>
3576
3577 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3578
84acb35a
JJ
35792004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3580
3581 * observer.sh: Add struct so_list declaration.
3582 * Makefile.in: Add dependencies on observer.h for solib.c and
3583 breakpoint.c.
3584 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3585 function.
3586 (_initialize_breakpoint): Register
3587 disable_breakpoints_in_unloaded_shlib as an observer of the
3588 "solib unloaded" observation event.
3589 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3590 call decode_line_1 so unfound breakpoint errors are silent.
3591 * solib.c (update_solib_list): When a solib is discovered to have
3592 been unloaded by the program, notify all observers of the
3593 "solib unloaded" observation event.
3594
c8cd9f6c
AC
35952004-09-01 Andrew Cagney <cagney@gnu.org>
3596
3597 * frame.c: Include "objfiles.h".
3598 (inside_main_func): New function.
3599 (get_prev_frame): Use new inside_main_func.
3600 * Makefile.in (frame.o): Update dependencies.
3601 * defs.h (inside_main_func): Delete declaration.
3602 * blockframe.c (inside_main_func): Delete function.
3603
1168df01
JB
36042004-08-31 Jim Blandy <jimb@redhat.com>
3605
3606 * dwarf2read.c (is_vtable_name): New function, based on logic from
3607 read_structure_type, but passing the correct length to strncmp,
3608 and using 'sizeof' instead of 'strlen'.
3609 (read_structure_type): Call it.
3610
f14f9744
JB
36112004-08-31 Joel Brobecker <brobecker@gnat.com>
3612
3613 * config/powerpc/aix.mh: Add comment.
3614
386d4518
PG
36152004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3616
3617 * MAINTAINERS: Add self to Write-After-Approval.
3618
7d97d5e2
MI
36192004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3620
3621 * MAINTAINERS: Add self to Write-After-Approval.
3622
68f53502
AC
36232004-08-30 Andrew Cagney <cagney@gnu.org>
3624
3625 Fix PR breakpoints/1757.
3626 * infrun.c (struct execution_control_state): Replace
3627 remove_breakpoints_on_following_step with
3628 step_after_step_resume_breakpoint.
3629 (init_execution_control_state): Update.
3630 (handle_inferior_event): For signals, when stepping off a
3631 breakpoint, set step_after_step_resume_breakpoint. When
3632 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3633 (keep_going): Delete code handling
3634 remove_breakpoints_on_following_step.
3635
7ca2d3a3
DL
36362004-08-29 David Lecomber <david@streamline-computing.com>
3637
3638 Fix PR gdb/648
3639 * language.h (enum array_ordering): New enum.
3640 * language.h (struct language_defn): New la_array_ordering
3641 attribute.
3642 * language.c (unknown_language_defn, auto_language_defn)
3643 (local_language_defn): Ditto.
3644 * ada-lang.c (ada_language_defn): Ditto.
3645 * c-lang.c (c_language_defn, cplus_language_defn)
3646 (asm_language_defn, minimal_language_defn): Ditto.
3647 * f-lang.c (f_language_defn): Ditto.
3648 * jv-lang.c (java_language_defn): Ditto.
3649 * m2-lang.c (f_language_defn): Ditto.
3650 * objc-lang.c (objc_language_defn): Ditto.
3651 * p-lang.c (pascal_language_defn): Ditto.
3652 * scm-lang.c (scm_language_defn): Ditto.
3653 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3654 oriented large to small in type structure.
3655 * dwarf2read.c (read_array_order): New function.
3656 (read_array_type): Use read_array_order to check row/column
3657 major ordering.
3658
e354df01
NW
36592004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3660
3661 * target.c (target_resize_to_sections): Check
3662 current_target.to_sections for an old value when updating.
3663
9185ddce
JB
36642004-08-27 Joel Brobecker <brobecker@gnat.com>
3665
3666 * procfs.c (dbx_link_bpt_addr): New static global variable.
3667 (dbx_link_shadow_contents): New static global variable.
3668 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3669 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3670 if we just hit it.
3671 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3672 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3673 from run to run.
3674 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3675 after the inferior has been forked.
3676 (remove_dbx_link_breakpoint): New function.
3677 (dbx_link_addr): New function.
3678 (insert_dbx_link_bpt_in_file): New function.
3679 (insert_dbx_link_bpt_in_region): New function.
3680 (insert_dbx_link_breakpoint): New function.
3681 (proc_trace_syscalls_1): New function, extracted from
3682 proc_trace_syscalls.
3683 (proc_trace_syscalls): Replace extract code by call to
3684 proc_trace_syscalls_1.
3685 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3686 is no longer valid.
3687
e6742ace
JB
36882004-08-25 Jim Blandy <jimb@redhat.com>
3689
3690 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3691
8fb3e588
AC
36922004-08-25 Andrew Cagney <cagney@gnu.org>
3693
629a41ee
AC
3694 * infrun.c (struct execution_control_state): Delete field
3695 "stepping_through_sigtramp".
3696 (init_execution_control_state): Do not set same.
3697 (context_switch): Do not pass same to save_infrun_state and
3698 load_infrun_state.
3699 * gdbthread.h (struct thread_info): Delete field
3700 stepping_through_sigtramp.
3701 (save_infrun_state, load_infrun_state): Delete parameter
3702 stepping_through_sigtramp.
3703 * thread.c (load_infrun_state, save_infrun_state): Update.
3704
8fb3e588
AC
3705 * infrun.c: Re-indent. Move expression operators to the beginning
3706 of the line. Remove long disabled #if 0 code.
3707
49c54768
AC
37082004-08-24 Andrew Cagney <cagney@gnu.org>
3709
3710 * doublest.h (floatformat_ieee_quad): Rename
3711 floatformat_ia64_quad.
3712 * doublest.c (floatformat_ieee_quad): Rename
3713 floatformat_ia64_quad.
3714 (_initialize_doublest): Update.
3715
5ca2e327
JB
37162004-08-24 Jim Blandy <jimb@redhat.com>
3717
87808bd6
JB
3718 * dwarf2expr.h (struct dwarf_expr_context): New members
3719 'num_pieces' and 'pieces', for returning the result of an
3720 expression that uses DW_OP_piece.
3721 (struct dwarf_expr_piece): New struct type.
3722 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3723 pieces.
3724 (free_dwarf_expr_context): Free pieces, if any.
3725 (add_piece): New function.
3726 (execute_stack_op): Implement DW_OP_piece.
3727 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3728 expression is a list of pieces, print an error message.
3729 (dwarf2_loc_desc_needs_frame): If the expression yields
3730 pieces, and any piece is in a register, then we need a frame.
3731
5ca2e327
JB
3732 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3733 the stack until we've decided what sort of result the evaluation
3734 has produced. Use separate variables, with more specific names.
3735
2afeb6b8
RE
37362004-08-23 Richard Earnshaw <rearnsha@arm.com>
3737
3738 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3739 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3740 (arm_netbsd_init_abi_common): Register them.
3741
5885ab49
MK
37422004-08-22 Mark Kettenis <kettenis@gnu.org>
3743
fda820a6
MK
3744 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3745
1c5bf419
MK
3746 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3747 safe_frame_unwind_memory instead of target_read_memory.
3748
8cbba7c8
MK
3749 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3750 Reorder includes.
3751 (fetch_register, store_register): Remove prototypes.
3752 (child_resume): Reorganize code and comments such that it is
3753 grouped a bit more logically.
3754 (attach): Explicitly compare errno against 0.
3755 (detach): Likewise. Use perror_with_name instead of
3756 print_sys_errmsg.
3757 * Makefile.in (infptrace.o): Update dependencies.
3758
c5fa4245
MK
3759 * ia64-linux-nat.c: Update copyright year.
3760 (fetch_debug_register, store_debug_register)
3761 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3762 PTRACE_TYPE_ARG3.
3763 * config/ia64/nm-linux.h: Update copyright year.
3764 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3765
387c058c
MK
3766 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3767 from CORE_ADDR to struct frame_info *. Use
3768 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3769 (amd64_linux_sigtramp_p): Adjust for changed signature of
3770 and64_linux_sigtramp_start
3771
277215a6
MK
3772 * gdb_ptrace.h: GNU/Linux.
3773
25f6178e
MK
3774 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3775 Remove defines.
3776
652fc137
MK
3777 * infptrace.c: Include "gdb_assert.h".
3778 (PTRACE_XFER_TYPE): Remove define.
3779 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3780 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3781 Tweak comment.
3782 (fetch_inferior_registers, store_inferior_registers): Remove
3783 redundant culry braces. Tweak comment. s/regno/regnum.
3784 * Makefile.in (infptrace.o): Update dependencies.
3785
5885ab49
MK
3786 * configure.in: Change test for return type of ptrace to default
3787 to `long' instead of `int'.
3788 * configure: Regenerate.
3789
11003ae3
MK
37902004-08-21 Mark Kettenis <kettenis@gnu.org>
3791
6b95110c
MK
3792 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3793
bcb3dc3d
MK
3794 * configure.in: Check for ttrace function.
3795 * configure, config.in: Regenerate.
3796
11003ae3
MK
3797 * gdb_ptrace.h: New file.
3798 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3799 <sys/ptrace.h>.
3800 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3801 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3802 (attach): Don't define PT_ATTACH.
3803 (detach): Don't define PT_DETACH.
3804 * Makefile.in (gdb_ptrace_h): New variable.
3805 (infptrace.o): Update dependencies.
3806
f8707cac
MK
38072004-08-16 Mark Kettenis <kettenis@gnu.org>
3808
3809 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3810 instead of `int' if not already defined.
3811 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3812 PTRACE_TYPE_ARG3.
3813 * infptrace.c (call_ptrace): Revert change that replaced
3814 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3815
655c5466
MK
38162004-08-15 Mark Kettenis <kettenis@gnu.org>
3817
156e5ba7
MK
3818 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3819 Remove defines.
3820
de9a9e51
MK
3821 * linux-nat.c (kill_inferior): Add missing third and fourth
3822 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3823
88800403
MK
3824 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3825 PTRACE_TYPE_RET.
3826
849a1d7c
MK
3827 * proc-why.c (proc_prettyfprint_why): Fix format string.
3828
61ad16d1
MK
3829 * solib-osf.c (osf_current_sos): Remove unsused label.
3830
a6ed5501
MK
3831 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3832 curses headers.
3833 * configure, config.in: Regenerate.
3834 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3835 <ncurses/ncurses.h>.
3836
016ddeca
MK
3837 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3838 * config/nm-nbsd.h: Update copyright year.
3839 (PTRACE_ARG3_TYPE): Remove define.
3840
49ec097f
MK
3841 * sparc-nat.c (fetch_inferior_registers)
3842 (store_inferior_registers, sparc_xfer_wcookie):
3843 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3844
9f8e0089
MK
3845 * alphabsd-nat.c (fetch_inferior_registers):
3846 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3847 PTRACE_TYPE_ARG3.
3848 * amd64bsd-nat.c (fetch_inferior_registers)
3849 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3850 PTRACE_TYPE_ARG3.
3851 * armnbsd-nat.c: Update copyright year.
3852 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3853 (store_register, store_regs, store_fp_register, store_fp_regs):
3854 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3855 * hppabsd-nat.c (fetch_inferior_registers)
3856 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3857 PTRACE_TYPE_ARG3.
3858 * i386bsd-nat.c (fetch_inferior_registers)
3859 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3860 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3861 * m68kbsd-nat.c (fetch_inferior_registers)
3862 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3863 PTRACE_TYPE_ARG3.
3864 * m88kbsd-nat.c (fetch_inferior_registers)
3865 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3866 PTRACE_TYPE_ARG3.
3867 * mipsnbsd-nat.c: Update copyright year.
3868 (fetch_inferior_registers, store_inferior_registers):
3869 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3870 * ns32knbsd-nat.c: Update copyright year.
3871 (fetch_inferior_registers, store_inferior_registers):
3872 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3873 * ppcnbsd-nat.c (fetch_inferior_registers):
3874 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3875 PTRACE_TYPE_ARG3.
3876 * ppcobsd-nat.c (fetch_inferior_registers):
3877 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3878 PTRACE_TYPE_ARG3.
3879 * shnbsd-nat.c: Update copyright year.
3880 (fetch_inferior_registers, store_inferior_registers):
3881 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3882 * vaxbsd-nat.c (fetch_inferior_registers)
3883 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3884 PTRACE_TYPE_ARG3.
3885
655c5466
MK
3886 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3887 PTRACE_TYPE_ARG3.
3888 * infptrace.c (call_ptrace, child_resume, attach, detach)
3889 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3890 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3891 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3892 PTRACE_TYPE_ARG3.
3893
c40d0d10
MK
38942004-08-14 Mark Kettenis <kettenis@gnu.org>
3895
5cb0ff31
MK
3896 * defs.h: Remove out-of-date comment.
3897 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3898 [!GETENV_PROVIDED] (getenv): Remove prototype.
3899
5f0f34cb
MK
3900 * standalone.c: Remove file.
3901 * Makefile.in (standalone.o): Remove dependency.
3902
7532965f
MK
3903 * i386-linux-nat.c (dummy_sse_values): Remove function and
3904 prototype.
3905 (i386_linux_dr_get): Fix typo in comment.
3906 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3907
1bdc6c53
MK
3908 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3909
c40d0d10
MK
3910 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3911 from declaration.
3912 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3913 from definition.
3914
64218d3e
MK
39152004-08-13 Mark Kettenis <kettenis@gnu.org>
3916
3917 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3918 parenthesis in definition.
3919 * configure: Regenerated.
3920
926c94e7
MC
39212004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3922
3923 * PROBLEMS: Mention build/1411.
3924
69489883
NN
39252004-08-09 Robert Millan <robertmh@gnu.org>
3926
3927 Committed by Nathanael Nerode.
3928 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3929 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3930
ebb7c577
AC
39312004-08-12 Andrew Cagney <cagney@gnu.org>
3932
3933 * NEWS: Mention fixes in GDB 6.2.1.
3934 * PROBLEMS: Remove mention of mips-irix.
3935
232d697c
JB
39362004-08-11 Joel Brobecker <brobecker@gnat.com>
3937
3938 * config/powerpc/xm-aix.h: Delete.
3939 * config/powerpc/aix.mh (MH_FILE): Remove.
3940 * config/powerpc/aix432.mh (MH_FILE): Remove.
3941
72f4e82b
JB
39422004-08-11 Joel Brobecker <brobecker@gnat.com>
3943
3944 * config/powerpc/aix.mh: Remove obsolete comment.
3945 * config/powerpc/aix432.mh: Likewise.
3946
0687ccb2
JB
39472004-08-11 Joel Brobecker <brobecker@gnat.com>
3948
3949 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3950
dbf3ada7
JB
39512004-08-11 Joel Brobecker <brobecker@gnat.com>
3952
e08e1886
JB
3953 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3954 this file is now empty.
3955 * config/xm-aix4.h: Remove, this file is no longer included
3956 anywhere.
3957
39582004-08-11 Joel Brobecker <brobecker@gnat.com>
3959
3960 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3961 that file is now empty.
dbf3ada7
JB
3962 (termdef): Remove prototype, function no longer used.
3963
4c525ef6
JB
39642004-08-11 Joel Brobecker <brobecker@gnat.com>
3965
3966 * doc/gdbint.texinfo (Host Definition): Remove documentation
3967 for USE_O_NOCTTY, no longer used.
3968 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3969 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3970
82e0b968
JB
39712004-08-11 Joel Brobecker <brobecker@gnat.com>
3972
3973 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3974 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3975 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3976
f2acbe1c
MK
39772004-08-11 Mark Kettenis <kettenis@gnu.org>
3978
daa98270
MK
3979 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3980 instead of FIVE_ARG_PTRACE.
3981
f2acbe1c
MK
3982 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3983 (new_tty): Use O_NOCTTY unconditionally.
3984
cc377e6b
MK
39852004-08-10 Mark Kettenis <kettenis@gnu.org>
3986
3987 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3988 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3989 fflush on stdout.
3990
3bcc18fa
JB
39912004-08-10 Joel Brobecker <brobecker@gnat.com>
3992
3993 * xcoff_symfile_finish: Replace last call to xmfree by call
3994 to xfree.
3995
7936743b
AC
39962004-08-10 Andrew Cagney <cagney@gnu.org>
3997
cc503c8a
AC
3998 * main.c (captured_main): Delete call to init_malloc.
3999 * defs.h (init_malloc): Delete declaration.
4000 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
4001 (init_malloc): Delete functions.
4002
2dc74dc1
AC
4003 * defs.h (xmfree): Delete.
4004 * utils.c (xmfree): Delete function.
4005 (xfree): Inline calls to xmfree and mfree.
4006 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
4007 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
4008 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
4009 * somread.c (som_symfile_finish): Ditto.
4010 * objfiles.c (allocate_objfile, free_objfile):
4011 * nlmread.c (nlm_symfile_finish): Ditto.
4012 * hpread.c (hpread_symfile_finish): Ditto.
4013 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
4014 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
4015 * coffread.c (coff_symfile_finish): Ditto.
4016
aa2ee5f6
AC
4017 * defs.h (xmcalloc): Delete declaration.
4018 * utils.c (xmcalloc): Delete.
4019 (xcalloc): Inline calls to xmcalloc and mcalloc.
4020 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
4021 xcalloc and xfree.
4022 * symtab.c (create_demangled_names_hash): Ditto.
4023
0efffb96
AC
4024 * defs.h (xmrealloc): Delete.
4025 * utils.c (xmrealloc): Delete.
4026 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
4027 * symmisc.c (extend_psymbol_list): Use xrealloc.
4028 * source.c (find_source_lines): Ditto.
4029 * hpread.c (hpread_lookup_type): Ditto.
4030 * dbxread.c (add_bincl_to_list): Ditto.
4031
7936743b
AC
4032 * utils.c (xmmalloc): Delete.
4033 (xmalloc): Inline xmmalloc and mmalloc calls.
4034 (msavestring): Use xmalloc.
4035 * defs.h (xmmalloc): Delete declaration.
4036 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
4037 xmmalloc.
4038 * symmisc.c (extend_psymbol_list): Ditto.
4039 * symfile.c (init_psymbol_list): Ditto.
4040 * source.c (find_source_lines): Ditto.
4041 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
4042 * elfread.c (elf_symtab_read): Ditto.
4043 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
4044 * coffread.c (coff_symfile_init): Ditto.
4045
252ab814
DC
40462004-08-10 David Carlton <carlton@bactrian.org>
4047
4048 * MAINTAINERS: Remove David Carlton from c++ testsuite
4049 maintainers.
4050
8f5ba92b
JG
40512004-08-10 Jerome Guitton <guitton@gnat.com>
4052
4053 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
4054 print a line feed before the prompt.
4055
21749010
MK
40562004-08-10 Mark Kettenis <kettenis@gnu.org>
4057
4058 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
4059
1f011ce2
JB
40602004-08-09 Joel Brobecker <brobecker@gnat.com>
4061
4062 General cleanup of the AIX xm include file:
4063 * config/xm-aix4.h (fd_set): Remove undefine.
4064 Remove include of <sys/select.h>.
4065 (HAVE_TERMIO): Remove define.
4066 (USG): Likewise.
4067 (NULL): Remove redefine.
4068 (alloca): Remove #pragma.
4069 (vfork): Remove define.
4070 (termdef): Remove.
4071 (SIGWINCH_HANDLER): Remove.
4072 (SIGWINCH_HANDLER_BODY): Remove.
4073
cf4e7692
MK
40742004-08-09 Mark Kettenis <kettenis@gnu.org>
4075
4076 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
4077 GDB_OSABI_OPENBSD_ELF.
4078
ac5754fa
MK
40792004-08-07 Robert Millan <robertmh@gnu.org>
4080
4081 * bsd-kvm.c: Check for nlist.h before including it.
4082
086ec9eb
MK
40832004-08-09 Mark Kettenis <kettenis@gnu.org>
4084
bbe06c74
MK
4085 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
4086 sigcontext' offset consistency checks for ancient BSD.
4087
3aa7b3b3
MK
4088 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
4089
086ec9eb
MK
4090 * configure.in: Check for <sys/types.h>. Check return and
4091 argument types of ptrace.
4092 * configure, config.in: Regenerate.
4093
09991fa0
JB
40942004-08-09 Jim Blandy <jimb@redhat.com>
4095
4096 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
4097 rs6000_register_sim_regno): Doc fixes.
4098
fed7ba43
JB
40992004-08-08 Joel Brobecker <brobecker@gnat.com>
4100
4101 * mips-tdep.c: Include "floatformat.h".
4102 (n32n64_floatformat_always_valid): New function.
4103 (floatformat_n32n64_long_double_big): New constant.
4104 (mips_gdbarch_init): Set size and format of long double
4105 for N32 and N64 ABIs.
4106 * Makefile.in (mips-tdep.o): Update dependencies.
4107
456fcf94
AC
41082004-08-08 Andrew Cagney <cagney@gnu.org>
4109
2f9b146e
AC
4110 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
4111 print. Improve script's error messages.
4112 * gdbarch.h: Re-generate.
4113
456fcf94
AC
4114 * gdbarch.sh (pformat): New function.
4115 (float_format, double_format, long_double_format): List with bit
4116 members. Use pformat when printing.
4117 * gdbarch.c, gdbarch.h: Re-generate.
4118
69e9e646
NW
41192004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
4120
4121 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
4122 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
4123 (ppcnbsd_supply_pcb): New function.
4124 (_initialize_ppcnbsd_nat): New prototype and function.
4125 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4126 (LOADLIBES): New variable.
4127 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
4128
5ef2d0aa
AC
41292004-08-08 Andrew Cagney <cagney@gnu.org>
4130
4131 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
4132 (builtin_type_ieee_double, builtin_type_ia64_quad)
4133 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
4134 BE/LE floating-point types.
4135 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
4136 (builtin_type_ieee_double, builtin_type_ia64_quad)
4137 (builtin_type_ia64_spill): Declare.
4138 * doublest.c (_initialize_doublest, floatformat_ieee_single)
4139 (floatformat_ieee_double, floatformat_arm_ext)
4140 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4141 of LE/BE floatformats.
4142 * doublest.h: (struct floatformat, floatformat_ieee_single)
4143 (floatformat_ieee_double, floatformat_arm_ext)
4144 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4145
5c7f2947
MK
41462004-08-08 Mark Kettenis <kettenis@gnu.org>
4147
ecac404d
MK
4148 * i386gnu-nat.c (gnu_store_registers): Fix typo.
4149
9b8607ce
MK
4150 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4151 instead of regcache_raw_supply when storing the registers.
4152
f6052080
MK
4153 * i386gnu-nat.c: Update copyright year.
4154 (gnu_store_registers): Don't use deprecated_registers and
4155 deprecated_registers_valid. Use regcache_valid_p and
4156 regcache_raw_supply instead.
4157
17777823
MK
4158 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4159 frame_pc_unwind.
4160
5240ceac
MK
4161 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4162 variables. Incapitalized "process".
4163
5c7f2947
MK
4164 * configure.in: Add cursesX to the list of possible curses libs.
4165 Add cursesX.h to the list of possible curses headers.
4166 * configure, config.in: Regenerate.
4167
da7d81e3
NW
41682004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4169
4170 * configure.in: Test for struct lwp in <sys/lwp.h>.
4171 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4172 the offset of l_addr in struct lwp.
4173
7f245d65
NW
41742004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4175
4176 * bsd-kvm.c: Include "gdbcore.h"
4177 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4178
47b3f456
AC
41792004-08-07 Andrew Cagney <cagney@gnu.org>
4180
70bd8e24
AC
4181 * gdbtypes.c (build_flt, build_complex): New functions.
4182 (gdbtypes_post_init): Use.
4183
9b0dea39
AC
4184 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4185
5cf7abac
AC
4186 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4187 through to builtin_type_uint128.
4188
64d2b26d
AC
4189 * c-exp.y: Use builtin_type function to obtain builtin types.
4190
7ad6570d
AC
4191 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4192 builtin_uint128.
4193 * gdbtypes.c (gdbtypes_post_init): Update.
4194 (build_gdbtypes): Move initialization of builtin_type_int0
4195 through to builtin_type_uint128 from here ...
4196 (_initialize_gdbtypes): ... to here.
4197 * d10v-tdep.c (d10v_register_type): Update.
4198
47b3f456
AC
4199 * doublest.c: Update copyright.
4200 (floatformat_from_length): Call error when floatformat is NULL.
4201 (extract_floating_by_length): Remove NULL fmt check.
4202 (store_floating_by_length): Ditto.
4203
0a8146bf
AC
42042004-08-07 Andrew Cagney <cagney@gnu.org>
4205
4206 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4207 that the register is valid.
4208
c0ccb908
MK
42092004-08-05 Mark Kettenis <kettenis@chello.nl>
4210
8e6bed05
MK
4211 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4212 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4213 struct frame_info *. Use safe_frame_unwind_memory instead of
4214 deprecated_read_memory_nobpt.
4215 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4216 changed signature of i386_linux_sigtramp_start and
4217 i386_linux_rt_sigtramp_start.
4218
24f9f5e3
MK
4219 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4220 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
4221 instead of deprecated_read_memory_nobpt.
4222 (i386nbsd_sigtramp_p): Adjust for changed signature of
4223 i386nbsd_sigtramp_offset.
4224
c822af0c
MK
4225 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4226 safe_frame_unwind_memory instead of target_read_memory.
4227
c0ccb908
MK
4228 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4229 !NO_SYS_FILE.
4230 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4231 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4232 (_initialize_kernel_u_addr): Remove prototype and function.
4233 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4234 !NO_SYS_FILE.
4235 * xcoffread.c: Likewise.
4236
b9e1c0d6
MK
42372004-08-06 Mark Kettenis <kettenis@gnu.org>
4238
4239 * vax-nat.c: New file.
4240 * vaxbsd-nat.c: Tweak comment.
4241 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4242 vaxnbsd-tdep.c.
4243 (vax-nat.o): New dependency.
4244 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4245 (vax-*-ultrix2*): Remove.
4246 * config/vax/vax.mh: New file.
4247 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4248 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4249 (vax_register_u_addr): New prototype.
4250 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4251 * config/vax/vaxult2.mh: Remove file.
4252 * config/vax/vaxult.mh: Remove file.
4253 * config/vax/vaxbsd.mh: Remove file.
4254 * config/vax/vax.mt (TM_FILE): Remove.
4255 * config/vax/tm-vaxbsd.h: Remove file.
4256
9ad7bec7
JB
42572004-08-06 Joel Brobecker <brobecker@gnat.com>
4258
4259 * aix-thread.c (get_signaled_thread): New function.
4260 (iter_trap): Delete, no longer used.
4261 (iter_tid): New function.
4262 (pd_update): Find the thread that received the SIGTRAP signal
4263 by first locating the kernel thread, and then finding its
4264 associated thread.
4265
bf0d233d
UW
42662004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4267
4268 * lin-lwp.c (child_wait): Continue inferior after processing
4269 PTRACE_EVENT_CLONE event.
4270
d0f853e1
NN
42712004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4272
4273 * MAINTAINERS: Add self to Write-After-Approval.
4274
ab14aeb0
JJ
42752004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4276
4277 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4278 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4279
9c8dbfa9
AC
42802004-08-05 Andrew Cagney <cagney@gnu.org>
4281
c8f3ca46
AC
4282 * config/xm-sysv4.h: Delete file.
4283 * config/mips/xm-irix5.h: Delete file.
4284 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4285 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4286 * config/ia64/xm-aix.h: Delete file.
4287 * config/ia64/aix.mh (XM_FILE): Delete.
4288 * config/pa/xm-hppah.h: Delete file.
4289 * config/pa/hpux11w.mh (XM_FILE): Delete.
4290 * config/pa/hpux11.mh (XM_FILE): Delete.
4291 * config/pa/hpux1020.mh (XM_FILE): Delete.
4292 * config/pa/hppahpux.mh (XM_FILE): Delete.
4293
5f7daaff
AC
4294 * config/alpha/xm-alphalinux.h: Delete file.
4295 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4296 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4297 * config/alpha/xm-alphaosf.h: Delete file.
4298 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4299 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4300 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4301 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4302
69babf95
AC
4303 * config/i386/xm-i386v.h: Delete file.
4304 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4305 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4306 * config/i386/xm-i386sco.h: Delete file.
4307 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4308 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4309 * config/i386/xm-i386v4.h: Delete file.
4310 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4311 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4312 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4313 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4314
6f009c8a
AC
4315 * config/vax/xm-vax.h: Delete file.
4316 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4317 * config/vax/xm-vaxult2.h: Delete file.
4318 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4319 * config/vax/vaxult2.mh (XM_FILE): Delete.
4320 * config/vax/xm-vaxult.h: Delete file.
4321 * config/vax/vaxult.mh (XM_FILE): Delete.
4322 * config/vax/xm-vaxbsd.h: Delete file.
4323 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4324
9c8dbfa9
AC
4325 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4326 * gdbarch.h, gdbarch.c: Re-generate.
4327 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4328 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4329 * frame.h: Delete deprecated_read_fp from comments.
4330 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4331 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4332
84367a3e
MK
43332004-08-04 Mark Kettenis <kettenis@gnu.org>
4334
9c8e3411
MK
4335 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4336 trampoline in OpenBSD 3.5-current.
4337
b87bc0d8
MK
4338 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4339 SSE registers.
4340
84367a3e
MK
4341 * Makefile.in: Remove embedded page breaks.
4342
a44bddec
JB
43432004-08-04 Jim Blandy <jimb@redhat.com>
4344
7ab3286f
JB
4345 * regcache.c (regcache_raw_read): Assert that, after calling
4346 target_fetch_registers, the register we're reading is cached.
4347
a44bddec
JB
4348 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4349 a call to 'internal_error', with a more helpful error message.
4350 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 4351 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 4352
35124113
AC
43532004-08-04 Andrew Cagney <cagney@gnu.org>
4354
4355 * Makefile.in: Update dependencies.
4356
9f643768
JB
43572004-08-04 Jim Blandy <jimb@redhat.com>
4358
6ced10dd
JB
4359 Change the layout of the PowerPC E500 raw register cache to allow
4360 the lower 32-bit halves of the GPRS to be their own raw registers,
4361 not pseudoregisters.
4362 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4363 add ppc_ev0_upper_regnum flag.
4364 * rs6000-tdep.c: #include "reggroups.h".
4365 (spe_register_p): Recognize the ev upper half registers as SPE
4366 registers.
4367 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4368 registers.
4369 (e500_move_ev_register): New function.
4370 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4371 vector registers are the pseudo-registers now, formed by splicing
4372 together the gprs and the upper-half registers.
4373 (e500_register_reggroup_p): New function.
4374 (P): Macro deleted.
4375 (P8, A4): New macro.
4376 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4377 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4378 macros.
4379 (registers_e500): Rearrange register set so that the raw register
4380 set contains 32-bit GPRs and upper-half registers, and the SPE
4381 vector registers become pseudo-registers.
4382 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4383 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4384 register numbers are now the same for the E500 as they are for
4385 other PowerPC variants. Register e500_register_reggroup_p as the
4386 register group function for the E500.
4387 * Makefile.in (rs6000-tdep.o): Update dependencies.
4388
4389 Adapt PPC E500 native support to the new raw regcache layout.
4390 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4391 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4392 (fetch_spe_register, store_spe_register): Handle fetching/storing
4393 all the SPE registers at once, if regno == -1. These now take
4394 over the job of fetch_spe_registers and store_spe_registers.
4395 (fetch_spe_registers, store_spe_registers): Deleted.
4396 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4397 unconditionally; they're always raw. Fetch/store SPE upper half
4398 registers, if present, instead of ev registers.
4399 (fetch_register, store_register): Remove sanity checks: gprs are
4400 never pseudo-registers now, so we never need to even mention any
4401 registers that are ever pseudoregisters.
4402
9f643768
JB
4403 Use a fixed register numbering when communicating with the PowerPC
4404 simulator.
4405 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4406 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4407 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4408 New functions.
4409 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4410 init_sim_regno_table.
4411 * Makefile.in (gdb_sim_ppc_h): New variable.
4412 (rs6000-tdep.o): Update dependencies.
4413
1e2279c8
AC
44142004-08-02 Andrew Cagney <cagney@gnu.org>
4415
1d94326f
AC
4416 * cris-tdep.c (cris_register_size): Restore function, still used
4417 locally.
4418
331ae7ed
AC
4419 * gdbarch.sh (deprecated_target_read_fp)
4420 (deprecated_frame_locals_address, deprecated_frame_args_address)
4421 (deprecated_frame_chain_valid, deprecated_frame_chain)
4422 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4423 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4424 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4425 * gdbarch.h, gdbarch.c: Re-generate.
4426 * regcache.c (deprecated_read_fp): Do not call
4427 DEPRECATED_TARGET_READ_FP_P.
4428 * infcmd.c (default_print_registers_info): Do not call
4429 DEPRECATED_DO_REGISTERS_INFO.
4430 * frame-base.c (default_frame_locals_address): Do not call
4431 DEPRECATED_FRAME_LOCALS_ADDRESS.
4432 (default_frame_args_address): Do not call
4433 DEPRECATED_FRAME_ARGS_ADDRESS.
4434
1e2279c8
AC
4435 * gdbarch.sh (deprecated_register_raw_size)
4436 (deprecated_register_virtual_size:int): Delete.
4437 * gdbarch.h, gdbarch.c: Re-generate.
4438 * cris-tdep.c (cris_register_size): Delete.
4439 (cris_gdbarch_init): Update.
4440 * alpha-tdep.c (alpha_register_raw_size)
4441 (alpha_register_virtual_size): Delete.
4442 (alpha_gdbarch_init): Update.
4443
a90c06b4
AC
4444 * gdbarch.sh (deprecated_register_virtual_type)
4445 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4446 (deprecated_dummy_write_sp): Delete.
4447 * gdbarch.h, gdbarch.c: Re-generate.
4448
f42accbe
AC
4449 * gdbarch.sh (deprecated_register_bytes): Delete.
4450 * gdbarch.h, gdbarch.c: Re-generate.
4451 * regcache.c (deprecated_register_bytes): New function.
4452 * regcache.h (deprecated_register_bytes): Declare.
4453 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4454 * v850-tdep.c (v850_gdbarch_init): Update.
4455 * sh64-tdep.c (sh64_gdbarch_init): Update.
4456 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4457 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4458 * mcore-tdep.c (mcore_gdbarch_init): Update.
4459 * cris-tdep.c (cris_gdbarch_init): Update.
4460 * arm-tdep.c (arm_gdbarch_init): Update.
4461 * remote.c (init_remote_state): Update.
4462 * remote-vx.c (vx_prepare_to_store): Update.
4463 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4464 * irix5-nat.c (fetch_core_registers): Update.
4465 * cris-tdep.c (cris_register_bytes_ok): Update.
4466 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4467
45c9dd44
AC
4468 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4469 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4470 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4471 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4472 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4473 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4474 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4475 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4476 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4477 with mips_insn16 and mips_insn32.
4478
3acba339
AC
4479 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4480 * rs6000-tdep.c (rs6000_push_dummy_call)
4481 (rs6000_extract_return_value): Use register_size.
4482 * xstormy16-tdep.c (xstormy16_get_saved_register)
4483 (xstormy16_extract_return_value): Ditto.
4484 * valops.c (value_assign): Ditto.
4485 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4486 * v850-tdep.c (v850_extract_return_value): Ditto.
4487 * tracepoint.c (collect_symbol): Ditto.
4488 * target.c (debug_print_register): Ditto.
4489 * stack.c (frame_info): Ditto.
4490 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4491 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4492 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4493 (store_register_using_P): Ditto.
4494 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4495 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4496 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4497 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4498 * regcache.c (deprecated_read_register_bytes)
4499 (deprecated_write_register_bytes, read_register)
4500 (write_register): Ditto.
4501 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4502 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4503 * monitor.c (monitor_supply_register, monitor_fetch_register)
4504 (monitor_store_register): Ditto.
4505 * mn10300-tdep.c (mn10300_pop_frame_regular)
4506 (mn10300_print_register): Ditto.
4507 * mipsv4-nat.c (fill_fpregset): Ditto.
4508 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4509 (mips64_fill_fpregset): Ditto.
4510 * mi/mi-main.c (register_changed_p, get_register)
4511 (mi_cmd_data_write_register_values): Ditto.
4512 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4513 * irix5-nat.c (fill_gregset, fetch_core_registers):
4514 * infrun.c (write_inferior_status_register): Ditto.
4515 * infptrace.c (fetch_register, store_register): Ditto.
4516 * infcmd.c (default_print_registers_info): Ditto.
4517 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4518 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4519 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4520 * hpux-thread.c (hpux_thread_fetch_registers)
4521 (hpux_thread_store_registers): Ditto.
4522 * hppah-nat.c (store_inferior_registers, fetch_register):
4523 * findvar.c (value_from_register): Ditto.
4524 * dve3900-rom.c (fetch_bitmapped_register):
4525 * cris-tdep.c (cris_gdbarch_init): Ditto.
4526 * alpha-tdep.h: Ditto.
4527 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4528
01e1877c
AC
4529 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4530 DEPRECATED_REGISTER_RAW_SIZE from comments.
4531 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4532 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4533 DEPRECATED_REGISTER_RAW_SIZE.
4534 * findvar.c (value_of_register): Simplify by assuming that the
4535 registers raw and virtual sizes are identical.
4536 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4537 comment.
4538 * arch-utils.c (generic_register_size): Simplify by assuming
4539 register_type.
4540
73f458fb
AC
4541 * regcache.c (legacy_read_register_gen, real_register)
4542 (legacy_write_register_gen): Delete, not used.
4543
336a3131
AC
4544 * regcache.c (struct regcache_descr): Delete legacy_p.
4545 (init_legacy_regcache_descr): Delete function.
4546 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4547 Do not use deprecated register functions.
4548 (regcache_raw_read, deprecated_write_register_gen):
4549 (deprecated_read_register_gen, regcache_raw_write): Delete code
4550 predicated on legacy_p.
4551 (register_size): Delete check against register raw size.
4552
c1d546cd
AC
4553 * cris-tdep.c (cris_register_type): Replace
4554 cris_register_virtual_type.
4555 (cris_gdbarch_init): Update, set register_type.
4556
48c2c0a6
AC
4557 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4558 * gdbarch.h, gdbarch.c: Re-generate.
4559 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4560 (arm_gdbarch_init) Do not set frameless function invocation.
4561 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4562 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4563 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4564 (frv_gdbarch_init): Do not set frameless function invocation.
4565 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4566 * sh-tdep.c (sh_gdbarch_init): Ditto.
4567 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4568 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4569 * avr-tdep.c (avr_gdbarch_init): Ditto.
4570
474093a6
AC
4571 * blockframe.c (legacy_frame_chain_valid): Delete function.
4572
3c109c8b
AC
4573 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4574 and pc. Update comments.
4575 (pc_in_dummy_frame): Delete function.
4576 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4577 use the "id".
4578 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4579 call_hi, top and pc, use the id.
4580 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4581
96860204
AC
4582 * dummy-frame.c: Include "gdb_string.h".
4583 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4584 (generic_save_dummy_frame_tos): Delete.
4585 (dummy_frame_push): New function, replaces above.
4586 * dummy-frame.h: Update copyright.
4587 (dummy_frame_push): Declare.
4588 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4589 (generic_save_call_dummy_addr): Delete declarations.
4590 * infcall.c: Include "dummy-frame.h".
4591 (call_function_by_hand): Add locals caller_regcache,
4592 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4593 with call to frame_save_as_regcache plus cleanup. Delete calls to
4594 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4595 Move clear_proceed_status to just before the resume, add call to
4596 dummy_frame_push (discard cleanup).
4597 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4598 (dummy-frame.o): Add $(gdb_string_h).
4599
d67ec5db
AC
46002004-08-01 Andrew Cagney <cagney@gnu.org>
4601
4602 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4603 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4604 * dummy-frame.c (find_dummy_frame): Delete.
4605 (struct dummy_frame_cache, dummy_frame_sniffer)
4606 (dummy_frame_prev_register, dummy_frame_this_id)
4607 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4608 frame unwinder using a dummy_frame_cache.
4609
a81dcb05
AC
46102004-08-01 Andrew Cagney <cagney@gnu.org>
4611
4612 * frame.h (frame_save_as_regcache): Declare.
4613 * frame.c (frame_save_as_regcache): New function.
4614 (do_frame_read_register): Replace do_frame_unwind_register.
4615 (frame_pop): Use frame_save_as_regcache.
4616 * dummy-frame.c (generic_push_dummy_frame): Use
4617 frame_save_as_regcache.
4618
aa495d11
JB
46192004-08-01 Joel Brobecker <brobecker@gnat.com>
4620
4621 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4622 file as included until we record the first line in the linetable.
4623
ff65ac78
AC
46242004-08-01 Andrew Cagney <cagney@gnu.org>
4625
4626 * frame.h (deprecated_pop_dummy_frame)
4627 (deprecated_read_register_dummy)
4628 (deprecated_generic_find_dummy_frame): Delete.
4629 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4630 (deprecated_read_register_dummy)
4631 (deprecated_find_dummy_frame_regcache)
4632 (discard_innermost_dummy)
4633 (deprecated_pop_dummy_frame): Delete.
4634 (dummy_frame_this_id): Simplify.
4635 (struct dummy_frame): Delete "fp" and "sp".
4636 (find_dummy_frame): Simplify.
4637 (generic_push_dummy_frame): Do not set "fp" or "sp".
4638 (fprint_dummy_frames): Do not print "fp" and "sp"
4639
37bdc87e
MK
46402004-08-01 Mark Kettenis <kettenis@gnu.org>
4641
4642 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4643 (struct i386_insn): New structure.
4644 (i386_match_insn): New function.
4645 (i386_frame_setup_skip_insns): New variable.
4646 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4647 array i386_frame_setup_insns of instructions that should be
4648 skipped inside the frame setup sequence.
4649
8241eaa6
AC
46502004-08-01 Andrew Cagney <cagney@gnu.org>
4651
5bc602c7
AC
4652 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4653 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4654 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4655 * stack.c (frame_info): Delete references to
4656 DEPRECATED_FRAME_INIT_SAVED_REGS and
4657 deprecated_get_frame_saved_regs.
4658 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4659 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4660 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4661 (frame_unwind_register_signed)
4662 (frame_unwind_register_unsigned)
4663 (frame_unwind_unsigned_register): Use register_size.
4664 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4665 (deprecated_frame_xmalloc_with_cleanup)
4666 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4667 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4668
03d363a1
AC
4669 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4670 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4671 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4672 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4673
8241eaa6
AC
4674 * infcall.c (call_function_by_hand): Do not use
4675 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4676 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4677 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4678 DEPRECATED_STACK_ALIGN.
4679
f00df8b7
AC
46802004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4681
4682 Committed by Andrew Cagney.
4683 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4684
eec63939
AC
46852004-08-01 Andrew Cagney <cagney@gnu.org>
4686
4687 * mips-tdep.c (mips16_frame_cache)
4688 (mips16_frame_this_id, mips16_frame_prev_register)
4689 (mips16_frame_unwind, mips16_frame_sniffer)
4690 (mips16_frame_base_address, mips16_frame_base)
4691 (mips16_frame_base_sniffer, mips32_frame_cache)
4692 (mips32_frame_this_id, mips32_frame_prev_register)
4693 (mips32_frame_unwind, mips32_frame_sniffer)
4694 (mips32_frame_base_address, mips32_frame_base)
4695 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4696 separate heuristic mips16 and mips32 unwinders.
4697 (mips_stub_frame_cache, mips_stub_frame_this_id)
4698 (mips_stub_frame_prev_register)
4699 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4700 (mips_stub_frame_base_address, mips_stub_frame_base)
4701 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4702 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4703 match true mdebug frames.
4704 (non_heuristic_proc_desc): Add forward declaration.
4705
e66299b3
AC
47062004-08-01 Andrew Cagney <cagney@gnu.org>
4707
83cbbf3e
AC
4708 * config/mips/tm-irix6.h: Delete file.
4709 * config/mips/tm-irix5.h: Delete file.
4710 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4711 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4712
22d41b37
AC
4713 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4714 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4715 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4716 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4717 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4718 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4719 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4720 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4721 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4722 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4723 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4724 (TARGET_SIGNAL_RAW_VALUES): Delete.
4725 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4726 Delete.
4727 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4728 (TARGET_HW_WATCH_LIMIT): Delete.
4729 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4730 * minimon.h: Delete file.
4731
e66299b3
AC
4732 * trad-frame.c (trad_frame_get_this_base)
4733 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4734 functions.
4735 * trad-frame.h (trad_frame_set_this_base)
4736 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4737
1f67027d
AC
47382004-07-31 Andrew Cagney <cagney@gnu.org>
4739
4740 * trad-frame.c (trad_frame_get_prev_register): Rename
4741 trad_frame_get_prev_register.
4742 * vax-tdep.c (vax_frame_prev_register): Update.
4743 * trad-frame.h: Update.
4744 * trad-frame.c (trad_frame_get_register): Update.
4745 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4746 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4747 Update.
4748 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4749 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4750 Update.
4751 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4752 Update.
4753 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4754 Update.
4755 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4756 Update.
4757 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4758 Update.
4759 * s390-tdep.c (s390_frame_prev_register)
4760 (s390_stub_frame_prev_register)
4761 (s390_sigtramp_frame_prev_register): Update.
4762 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4763 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4764 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4765 * m88k-tdep.c (m88k_frame_prev_register)
4766 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4767 * m32r-tdep.c (m32r_frame_prev_register): Update.
4768 * hppa-tdep.c (hppa_frame_prev_register_helper)
4769 * frv-tdep.c (frv_frame_prev_register): Update.
4770 * d10v-tdep.c (d10v_frame_prev_register): Update.
4771 * cris-tdep.c (cris_frame_prev_register): Update.
4772 * avr-tdep.c (avr_frame_prev_register): Update.
4773 * arm-tdep.c (arm_prologue_prev_register)
4774 (arm_sigtramp_prev_register): Update.
4775
c1bf6f65
AC
47762004-07-31 Andrew Cagney <cagney@gnu.org>
4777
4778 * frame.h (legacy_saved_regs_unwind)
4779 (legacy_frame_chain_valid, legacy_frame_p)
4780 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
4781 * dummy-frame.c (dummy_frame_this_id): Simplify.
4782 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
4783 * frame.c (struct frame_info): Delete the field "type".
4784 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4785 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4786 (legacy_saved_regs_unwind, legacy_frame_p)
4787 (frame_type_from_pc): Delete.
4788 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4789 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4790
dc856692
MK
47912004-07-31 Mark Kettenis <kettenis@gnu.org>
4792
5a5effe1
MK
4793 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4794 indentation.
4795
d4fd50a6
MK
4796 * mips-nat.c: Remove file.
4797 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4798 (mips-nat.o): Remove dependency.
4799
2689df5a
MK
4800 * infptrace.c: Update copyright year.
4801 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4802 explicitly setting the buffer to all zeroes.
4803
dc856692
MK
4804 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4805 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4806
763910e0
AC
48072004-07-30 Andrew Cagney <cagney@gnu.org>
4808
4809 * GDB 6.2 released from gdb_6_2-branch.
4810
0b66e38c
EZ
48112004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4812
4813 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4814
4815 * exec.c (exec_file_attach):
4816 * nto-tdep.c (nto_find_and_open_solib):
4817 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4818 * solib.c (solib_open):
4819 * somsolib.c (som_solib_sizeof_symbol_table):
4820 * source.c (is_regular_file, openp, open_source_file):
4821 * symfile.c (symfile_bfd_open):
4822 * wince.c (upload_to_device): Differentiate between the search for
4823 binary and source files.
4824
be7d7357
AC
48252004-07-30 Andrew Cagney <cagney@gnu.org>
4826
4827 * complaints.c (_initialize_complaints): Pass NULL to
4828 add_setshow_zinteger_cmd for help_doc.
4829 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4830
ddc9cd0f
AC
48312004-07-30 Andrew Cagney <cagney@gnu.org>
4832
4833 Fix PR i18n/761.
4834 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4835 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4836 $(PACKAGE).pot and update-po.
4837 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4838 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4839 (update-po): New rules.
4840 (localedir): Define using autoconf.
4841 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4842 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4843 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4844 * configure.in: Generate CATALOGS and LINGUAS from contents of
4845 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4846 * configure: Re-generate.
4847 * po/gdbtext: New file
4848
e92f3704
JG
48492004-07-30 Jerome Guitton <guitton@gnat.com>
4850
4851 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4852 order.
4853
b0f35d58
DL
48542004-07-30 David Lecomber <dsl@sources.redhat.com>
4855
4856 * dwarf2read.c (read_file_scope): Set producer if attribute
4857 present.
4858 (struct dwarf2_cu): Added new member producer.
4859
ce7d4522
JG
48602004-07-30 Jerome Guitton <guitton@gnat.com>
4861
4862 * inflow.c (kill_command): release file handles in BFD.
4863 * exec.c (exec_file_attach): Ditto.
4864 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4865
05ee07c7
AC
48662004-07-29 Andrew Cagney <cagney@gnu.org>
4867
4868 * PROBLEMS (mips-irix): Note that it is broken.
4869
62eceb47
AC
48702004-07-29 Andrew Cagney <cagney@gnu.org>
4871
e57b8d41
AC
4872 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4873 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4874
d334389b
AC
4875 * config/xm-nbsd.h: Delete file.
4876 * config/arm/xm-nbsd.h: Delete file.
4877 * config/i386/xm-nbsd.h: Delete file.
4878 * config/ns32k/xm-nbsd.h: Delete file.
4879 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4880 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4881 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4882 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4883 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4884
e910f676
AC
4885 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4886 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4887 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4888 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4889 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4890 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4891
6fa856b9
AC
4892 * config/powerpc/xm-linux.h: Delete empty file.
4893 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4894 * config/powerpc/linux.mh (XM_FILE): Delete.
4895 * config/m68k/xm-linux.h: Delete empty file.
4896 * config/m68k/linux.mh (XM_FILE): Delete.
4897 * config/ia64/xm-linux.h: Delete empty file.
4898 * config/ia64/linux.mh (XM_FILE): Delete.
4899 * config/arm/xm-linux.h: Delete empty file.
4900 * config/arm/linux.mh (XM_FILE): Delete.
4901
471ae5ae
AC
4902 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4903 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4904 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4905 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4906 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4907 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4908 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4909 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4910
62eceb47
AC
4911 * config/m68k/xm-m68k.h: Delete file.
4912 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4913 copyright.
4914 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4915 * config/pa/xm-linux.h: Delete empty file.
4916 * config/pa/linux.mh (XM_FILE): Delete.
4917 * config/i386/xm-i386.h: Delete empty file.
4918 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4919 "i386/xm-i386.h".
4920 * config/i386/obsdaout.mh (XM_FILE): Delete.
4921 * config/i386/obsd64.mh (XM_FILE): Delete.
4922 * config/i386/fbsd64.mh (XM_FILE): Delete.
4923 * config/i386/nto.mh (XM_FILE): Delete.
4924 * config/i386/obsd.mh (XM_FILE): Delete.
4925 * config/i386/linux64.mh (XM_FILE): Delete.
4926 * config/i386/linux.mh (XM_FILE): Delete.
4927 * config/i386/i386sol2.mh (XM_FILE): Delete.
4928 * config/i386/i386gnu.mh (XM_FILE): Delete.
4929 * config/i386/fbsd.mh (XM_FILE): Delete.
4930 * config/i386/nbsd64.mh (XM_FILE): Delete.
4931
c35f4ffc
AC
49322004-07-29 Andrew Cagney <cagney@gnu.org>
4933
4934 * config/pa/xm-linux.h: Do not include "floatformat.h".
4935 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4936 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4937 * config/i386/xm-i386.h: Do not include "floatformat.h".
4938 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4939 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4940 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4941 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4942 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4943 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4944 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4945 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4946 * configure, config.in: Regenerate.
4947 * configure.host (gdb_host_float_format, gdb_host_double_format)
4948 (gdb_host_long_double_format): Set according to the host.
4949
624a44a3
AC
49502004-07-29 Andrew Cagney <cagney@gnu.org>
4951
4952 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4953
0dea2468
AC
49542004-07-28 Andrew Cagney <cagney@gnu.org>
4955
4956 * PROBLEMS: Mention threads/1650.
4957 * NEWS: Mention the NPTL fix.
4958
b3f42336
AC
49592004-07-28 Andrew Cagney <cagney@gnu.org>
4960
4961 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4962 (add_setshow_cmd_full): Make static.
4963 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4964 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4965 * cli/cli-decode.c (add_setshow_filename_cmd)
4966 (add_setshow_string_cmd): New functions.
4967 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4968 * mips-tdep.c (_initialize_mips_tdep): Update.
4969 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4970 * cli/cli-logging.c (_initialize_cli_logging): Update.
4971 * complaints.c (_initialize_complaints): Update.
4972 * remote.c (_initialize_remote): Update.
4973
3b64bf98
AC
49742004-07-28 Andrew Cagney <cagney@gnu.org>
4975
4976 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4977 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4978 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4979 print parameters. Make string parameters constant.
4980 * command.h: Update. Update copyright.
4981 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4982 * observer.c (_initialize_observer): Ditto.
4983 * frame.c (_initialize_frame): Ditto.
4984 * complaints.c (_initialize_complaints): Ditto.
4985 * maint.c (_initialize_maint_cmds): Ditto.
4986 * target.c (initialize_targets): Ditto.
4987 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4988 * infcall.c (_initialize_infcall): Ditto.
4989 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4990 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4991 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4992 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4993 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4994
e9667a65
AC
49952004-07-28 Andrew Cagney <cagney@gnu.org>
4996
54a5b07d
AC
4997 * gdbtypes.c (lookup_primitive_typename): Delete function.
4998 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4999 * ada-lex.l: Use language_lookup_primitive_type_by_name.
5000 * gdbtypes.c (lookup_typename): Ditto.
5001 * f-exp.y (yylex): Ditto.
5002 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
5003
e9667a65
AC
5004 * scm-lang.c (c_builtin_types): Delete extern declaration.
5005 (scm_language_defn): Replace
5006 string_char_type and primitive_type_vector with
5007 la_language_arch_info.
5008 * jv-lang.c (java_language_defn): Replace
5009 string_char_type and primitive_type_vector with
5010 la_language_arch_info.
5011 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
5012 c_builtin_types in comment.
5013 * c-lang.h (struct language_arch_info): Declare opaque.
5014 (c_language_arch_info): Declare.
5015 (c_builtin_types): Delete declaration.
5016 * c-lang.c (c_language_arch_info): Set string_char_type to
5017 builtin_char, not builtin_true_char. Make global.
5018 (c_builtin_types): Delete array.
5019 (asm_language_defn, minimal_language_defn): Replace
5020 string_char_type and primitive_type_vector with
5021 la_language_arch_info.
5022
685419e2
AC
50232004-07-28 Andrew Cagney <cagney@gnu.org>
5024
5025 * gdbtypes.h (struct builtin_type): Rename true_char to
5026 builtin_true_char.
5027 * gdbtypes.c (gdbtypes_post_init): Update.
5028 * c-lang.c (arch_info): New function.
5029 (enum c_primitive_types): New enum.
5030 (c_language_defn): Instead of string_char_type and
5031 primitive_type_vector set la_language_arch_info.
5032
5a44ea29
AC
50332004-07-28 Andrew Cagney <cagney@gnu.org>
5034
5035 * language.h (struct language_arch_info): Fix typo
5036 s/primative/primitive/.
5037 * gdbtypes.c (lookup_primitive_typename): Ditto.
5038 * language.c (language_lookup_primitive_type_by_name)
5039 (unknown_language_arch_info): Ditto.
5040
f290d38e
AC
50412004-07-27 Andrew Cagney <cagney@gnu.org>
5042
5043 * defs.h (enum language): Add nr_languages.
5044 * language.h (struct language_arch_info): Define.
5045 (struct language_defn): Add la_language_arch_info.
5046 (language_lookup_primative_type_by_name): Declare.
5047 (language_string_char_type): Declare.
5048 * language.c (_initialize_language, language_gdbarch_post_init)
5049 (struct language_gdbarch, language_gdbarch_data): Implement
5050 per-architecture language information.
5051 (unknown_language_arch_info, language_string_char_type)
5052 (language_lookup_primative_type_by_name): New functions.
5053 (unknown_language_defn, auto_language_defn)
5054 (local_language_defn): Set la_language_arch_info to
5055 unknown_language_arch_info.
5056 (unknown_builtin_types): Delete.
5057 * gdbtypes.c (lookup_primitive_typename): Use
5058 language_lookup_primative_type_by_name.
5059 (create_string_type): Use language_string_char_type.
5060 * values.c (value_from_string): Use language_string_char_type.
5061 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
5062 * p-lang.c (pascal_language_defn): Ditto.
5063 * m2-lang.c (m2_language_defn): Ditto.
5064 * jv-lang.c (java_language_defn): Ditto.
5065 * objc-lang.c (objc_language_defn): Ditto.
5066 * f-lang.c (f_language_defn): Ditto.
5067 * c-lang.c (c_language_defn, cplus_language_defn)
5068 (asm_language_defn, minimal_language_defn): Ditto.
5069
000177f0
AC
50702004-07-27 Andrew Cagney <cagney@gnu.org>
5071
5072 * gdbtypes.h (struct builtin_type): Declare.
5073 (builtin_type): Declare.
5074 * d10v-tdep.c (d10v_register_type): Use builtin_type.
5075 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
5076 (gdbtypes_post_init): New function.
5077 (builtin_type): New function.
5078
e22f895c
KI
50792004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
5080
5081 * remote-m32r-sdi.c: Fix breakpoint bug.
5082 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
5083 recv_char_data, recv_long_data): New functions to replace communication
5084 sequences.
5085
536517dd
MC
50862004-07-26 Michael Chastain <mec.gnu@mindspring.com>
5087
5088 Document PR threads/1650.
5089 * PROBLEMS (Threads): Document problem with many threads
5090
a0a44d18
AC
50912004-07-26 Andrew Cagney <cagney@gnu.org>
5092
5093 * gdb-mi.el: Move from here ...
5094 * mi/gdb-mi.el: ... to here.
5095
7ac4ac06
AC
50962004-07-26 Andrew Cagney <cagney@gnu.org>
5097
5098 Problem reported by Ashley Pittman <ashley@quadrics.com>.
5099 * main.c (captured_main): When in batch mode always detach.
5100
a1b461bf
AC
51012004-07-26 Andrew Cagney <cagney@gnu.org>
5102
5103 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
5104 and h8300 as broken.
5105 * NEWS: END-OF-LIFE frame compatibility module.
5106 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
5107 specific comments.
5108
cb1a6d5f
AC
51092004-07-26 Andrew Cagney <cagney@gnu.org>
5110
5111 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
5112 * xcoffsolib.c (_initialize_xcoffsolib): Update.
5113 * wince.c (_initialize_wince): Update.
5114 * win32-nat.c (_initialize_win32_nat): Update.
5115 * varobj.c (_initialize_varobj): Update.
5116 * valops.c (_initialize_valops): Update.
5117 * utils.c (initialize_utils, initialize_utils): Update.
5118 * tui/tui-win.c (_initialize_tui_win): Update.
5119 * top.c (init_main): Update.
5120 * symfile.c (_initialize_symfile): Update.
5121 * source.c (_initialize_source): Update.
5122 * somsolib.c (_initialize_som_solib): Update.
5123 * solib.c (_initialize_solib): Update.
5124 * solib-frv.c (_initialize_frv_solib): Update.
5125 * serial.c (_initialize_serial): Update.
5126 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
5127 * remote.c (_initialize_remote, _initialize_remote): Update.
5128 * remote-vx.c (_initialize_vx): Update.
5129 * remote-utils.c (_initialize_sr_support): Update.
5130 * remote-sds.c (_initialize_remote_sds): Update.
5131 * remote-mips.c (_initialize_remote_mips): Update.
5132 * remote-e7000.c (_initialize_remote_e7000): Update.
5133 * proc-api.c (_initialize_proc_api): Update.
5134 * printcmd.c: Update.
5135 * parse.c (_initialize_parse): Update.
5136 * pa64solib.c (_initialize_pa64_solib): Update.
5137 * p-valprint.c (_initialize_pascal_valprint): Update.
5138 * monitor.c (_initialize_remote_monitors): Update.
5139 * mips-tdep.c (_initialize_mips_tdep): Update.
5140 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5141 * maint.c (_initialize_maint_cmds): Update.
5142 * lin-lwp.c (_initialize_lin_lwp): Update.
5143 * language.c (_initialize_language): Update.
5144 * kod.c (_initialize_kod): Update.
5145 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5146 * i386-tdep.c (_initialize_i386_tdep): Update.
5147 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5148 * gdbarch.sh: Update.
5149 * gdbarch.c: Re-generate.
5150 * gdb-events.sh: Update.
5151 * gdb-events.c: Re-generate.
5152 * frame.c (_initialize_frame): Update.
5153 * exec.c: Update.
5154 * demangle.c (_initialize_demangler): Update.
5155 * dcache.c (_initialize_dcache): Update.
5156 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5157 * cp-valprint.c (_initialize_cp_valprint): Update.
5158 * corefile.c (_initialize_core): Update.
5159 * command.h: Update.
5160 * cli/cli-decode.h: Update.
5161 * cli/cli-cmds.c (init_cli_cmds): Update.
5162 * charset.c (_initialize_charset): Update.
5163 * breakpoint.c (_initialize_breakpoint): Update.
5164 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5165 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5166 * aix-thread.c (_initialize_aix_thread): Update.
5167
b4632131
MK
51682004-07-24 Mark Kettenis <kettenis@gnu.org>
5169
5170 Partial fix for PR backtrace/1718.
5171 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5172 that GCC migrates into the prolugue. Don't handle any
5173 instructions that clobber %ebx.
5174
822c9732
AC
51752004-07-23 Andrew Cagney <cagney@gnu.org>
5176
5177 Use regcache_raw_collect instead of regcache_collect.
5178 * regcache.h (regcache_collect): Delete declaration.
5179 * regcache.c (regcache_colect): Delete function.
5180 * win32-nat.c (do_child_store_inferior_registers): Update.
5181 * sol-thread.c (sol_thread_store_registers): Update.
5182 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5183 * rs6000-nat.c (store_register): Update.
5184 * remote.c (store_register_using_P, remote_store_registers): Update.
5185 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5186 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
5187 (fill_vrregset, store_spe_registers, fill_gregset)
5188 (fill_gregset): Update.
5189 * nto-procfs.c (procfs_store_registers): Update.
5190 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5191 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5192 * m68klinux-nat.c (store_register, fill_gregset): Update.
5193 * m68k-tdep.c (fill_gregset): Update.
5194 * infptrace.c (store_register): Update.
5195 * i386-nto-tdep.c (i386nto_regset_fill): Update.
5196 * i386-linux-nat.c (store_register, fill_gregset): Update.
5197 * hppa-linux-nat.c (fill_gregset): Update.
5198 * go32-nat.c (store_register): Update.
5199 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5200 (store_fp_regs): Update.
5201 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
5202 (store_nwfpe_extended, store_fpregister, store_fpregs)
5203 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5204 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5205 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5206 (store_regs_user_thread, store_regs_kernel_thread): Update.
5207
32b05c07
MK
52082004-07-24 Mark Kettenis <kettenis@gnu.org>
5209
5210 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5211 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5212 encoding.
5213 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5214 member of `struct comp_unit'.
5215
8567c30f
AC
52162004-07-23 Andrew Cagney <cagney@gnu.org>
5217
5218 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5219 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5220
f6da8dd8
MH
52212004-07-23 Martin Hunt <hunt@redhat.com>
5222 Kevin Buettner <kevinb@redhat.com>
5223
5224 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5225 alignment was being added to the offset instead of multiplied.
5226
bd921882
MK
52272004-07-23 Mark Kettenis <kettenis@gnu.org>
5228
24f033e8
MK
5229 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5230 changed signal trampoline in OpenBSD 3.5-current.
5231
90f3cecd
MK
5232 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5233 <machine/pcb.h> and "bsd-kvm.h".
5234 (sparc64nbsd_supply_pcb): New function.
5235 (_initialize_sparc64nbsd_nat): Renamed from
5236 _initialize_sparcnbsd_nat. Enable libkvm interface.
5237 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5238 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5239 (LOADLIBES): New variable.
5240
a4954a62
MK
5241 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5242
bd921882
MK
5243 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5244
23a6d369
AC
52452004-07-21 Andrew Cagney <cagney@gnu.org>
5246
5247 Use regcache_raw_supply instead of supply_register.
5248 * regcache.h (supply_register): Delete declaration.
5249 * regcache.c (supply_register): Delete function.
5250 * wince.c (do_child_fetch_inferior_registers): Update.
5251 * win32-nat.c (do_child_fetch_inferior_registers)
5252 (fetch_elf_core_registers): Update.
5253 * v850ice.c (v850ice_fetch_registers): Update.
5254 * thread-db.c (thread_db_store_registers): Update.
5255 * sol-thread.c (sol_thread_store_registers): Update.
5256 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5257 * rs6000-nat.c (fetch_register): Update.
5258 * rom68k-rom.c (rom68k_supply_one_register): Update.
5259 * remote.c (remote_wait, remote_async_wait): Update.
5260 * remote-st.c (get_hex_regs): Update.
5261 * remote-sim.c (gdbsim_fetch_register): Update.
5262 * remote-sds.c (sds_fetch_registers): Update.
5263 * remote-rdp.c (remote_rdp_fetch_register): Update.
5264 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5265 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5266 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5267 * remote-hms.c (init_hms_cmds): Update.
5268 * remote-est.c (init_est_cmds): Update.
5269 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5270 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5271 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5272 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5273 (fetch_register, supply_vrregset, supply_vrregset)
5274 (fetch_spe_registers): Update.
5275 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5276 * monitor.c (monitor_supply_register): Update.
5277 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5278 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5279 (mipsnbsd_supply_fpreg): Update.
5280 * mips-nat.c (fetch_inferior_registers)
5281 (fetch_core_registers): Update.
5282 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5283 (supply_fpregset, mips64_supply_gregset)
5284 (mips64_supply_fpregset): Update.
5285 * m68klinux-nat.c (fetch_register, supply_gregset)
5286 (supply_fpregset): Update.
5287 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5288 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5289 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5290 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5291 * infptrace.c (fetch_register): Update.
5292 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5293 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5294 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5295 (gnu_fetch_registers, gnu_store_registers): Update.
5296 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5297 * i386-linux-nat.c (fetch_register, supply_gregset)
5298 (dummy_sse_values): Update.
5299 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5300 * hppah-nat.c (fetch_register): Update.
5301 * hppa-linux-nat.c (fetch_register, supply_gregset)
5302 (supply_fpregset): Update.
5303 * go32-nat.c (fetch_register): Update.
5304 * dve3900-rom.c (fetch_bitmapped_register)
5305 (_initialize_r3900_rom): Update.
5306 * cris-tdep.c (supply_gregset): Update.
5307 * abug-rom.c (init_abug_cmds): Update.
5308 * core-aout.c (fetch_core_registers): Update.
5309 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5310 (fetch_register, fetch_fp_register): Update.
5311 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5312 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5313 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5314 * alphanbsd-tdep.c (fetch_core_registers): Update.
5315 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5316 * alpha-nat.c (fetch_osf_core_registers)
5317 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5318 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5319 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5320
73cc75f3
AC
53212004-07-21 Andrew Cagney <cagney@gnu.org>
5322
5323 * PROBLEMS: Mention breakpoints/1702.
5324 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5325 that is known to work.
5326
a53c66de
AC
53272004-07-21 Andrew Cagney <cagney@gnu.org>
5328
5329 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5330 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5331 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5332 (handle_inferior_event): Wrap call to deprecated
5333 IGNORE_HELPER_CALL in #ifdef.
5334 * config/mips/tm-nbsd.h: Update.
5335
708ff411
JB
53362004-07-20 Jim Blandy <jimb@redhat.com>
5337
412b3060
JB
5338 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5339 bfd_mach_ppc has no segment registers.
5340
13ac140c
JB
5341 Include PowerPC SPR numbers for special-purpose registers.
5342 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5343 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5344 new member in initializer.
5345 (S, S4, SN4, S64): New macros for defining special-purpose
5346 registers.
5347 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5348 registers_403, registers_403GC, registers_505, registers_860,
5349 registers_601, registers_602, registers_603, registers_604,
5350 registers_750, registers_e500): Use them.
5351
708ff411
JB
5352 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5353 replace references with expression used to initialize variable.
5354
1f602b35
AC
53552004-07-20 Andrew Cagney <cagney@gnu.org>
5356
5357 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5358 read_memory_nobpt.
5359 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5360 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5361 (s390_sigtramp_frame_sniffer): Update.
5362 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5363 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5364 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5365 (mips32_fetch_instruction): Update.
5366 * mcore-tdep.c (get_insn): Update.
5367 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5368 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5369 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5370 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5371 (i386_linux_rt_sigtramp_start): Update.
5372 * i386-linux-nat.c (child_resume): Update.
5373 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5374 * hppa-linux-tdep.c (insns_match_pattern): Update.
5375 * gdbcore.h: Update.
5376 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5377 * frame.c (safe_frame_unwind_memory): Update.
5378 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5379 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5380 * alpha-tdep.c (alpha_read_insn): Update.
5381
2cd8546d
AC
53822004-07-20 Andrew Cagney <cagney@gnu.org>
5383
5384 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5385 containing both bytes and mask. Add "frame_type".
5386 * tramp-frame.c (tramp_frame_start): Update.
5387 (tramp_frame_prepend_unwinder): Update.
5388 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5389 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5390 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5391 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5392
f928dd62
EZ
53932004-07-19 Eli Zaretskii <eliz@gnu.org>
5394
5395 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5396 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5397 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5398 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5399
d5c560f7
AC
54002004-07-17 Andrew Cagney <cagney@gnu.org>
5401
860660cb
AC
5402 * NEWS, PROBLEMS: Update for 6.2.
5403
8c266f54
AC
5404 * README: Update to 6.2.
5405
a552edd9
AC
5406 * utils.c (xvasprintf): Call xstrvprintf.
5407
c4a172b5
AC
5408 * parse.c: Update copyright.
5409 (null_post_parser): Eliminate ARGSUSED.
5410
da745b36
AC
5411 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5412 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5413 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5414
9cbc6ef0
AC
5415 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5416 * ppc-linux-nat.c: Use "Linux kernel".
5417 * hppa-linux-tdep.c: Use GNU/Linux.
5418 * hppa-linux-nat.c: Use GNU/Linux.
5419 * dwarfread.c: Add [sic] to use of Linux.
5420
1b89295f
AC
5421 * hppa-linux-nat.c: Do not include <string.h>.
5422 (supply_fpregset): Remove "register" attribute.
5423
d5c560f7
AC
5424 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5425
7ddd7709
MK
54262004-07-17 Mark Kettenis <kettenis@gnu.org>
5427
b1d19a62
MK
5428 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5429 * configure, config.in: Regenerated.
5430
7ddd7709
MK
5431 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5432 "bsd-kvm.h".
5433 (vaxbsd_supply_pcb): New function.
5434 (_initialize_vaxbsd_nat): New prototype and function.
5435 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5436 solib-sunos.o.
5437 (LOADLIBES): New variable.
5438 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5439 (LOADLIBES): New variable.
5440 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5441 (LOADLIBES): New variable.
5442 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5443
2c07db7a
AC
54442004-07-16 Andrew Cagney <cagney@gnu.org>
5445
5446 * defs.h (event_loop_p): Replace variable declaration with macro,
5447 always 1.
5448 * main.c (captured_main): Delete options "-async" and "-noasync".
5449 (event_loop_p): Delete variable.
5450 * NEWS: Mention that "-async" and "-noasync" were removed.
5451
717eb1cf
AC
54522004-07-16 Andrew Cagney <cagney@gnu.org>
5453
5454 * remote-m32r-sdi.c: Re-indent.
5455
c101bc14
JB
54562004-07-16 Jim Blandy <jimb@redhat.com>
5457
5109a438
JB
5458 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5459 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5460 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5461 missing MPC823 SPRs.
5462 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5463 incorrect. (This was corrected in GDB's register name tables on
5464 2004-07-14.)
5465
c101bc14
JB
5466 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5467 should be "esasrr" ("ESA Save and Restore Register").
5468
7ce450bd
AC
54692004-07-16 Andrew Cagney <cagney@gnu.org>
5470
5471 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5472 calls, no longer applicable. Update comments and rename parameter
5473 "step_frame" to "return_frame".
5474
ca73dd9d
AC
54752004-07-16 Andrew Cagney <cagney@gnu.org>
5476
5477 * frame.c (fprint_field): New function.
5478 (fprint_frame_id): Use fprint_field.
5479
31941f6d
JB
54802004-07-15 Joel Brobecker <brobecker@gnat.com>
5481
5482 * ada-lang.c (ada_language_defn): Remove commented out code.
5483
f86a7158
JB
54842004-07-15 Jim Blandy <jimb@redhat.com>
5485
5486 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5487 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5488
c24791ec
JB
54892004-07-14 Jim Blandy <jimb@redhat.com>
5490
29bb1356
JB
5491 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5492
cc98b5cc
JB
5493 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5494
8f088af7
JB
5495 * ppc-tdep.h (ppc_num_srs): New enum constant.
5496
0ea0ec5f
JB
5497 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5498 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5499 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5500 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5501 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5502 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5503 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5504 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5505 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5506 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5507 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5508 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5509 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5510 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5511 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5512 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5513 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5514 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5515 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5516 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5517 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5518 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5519 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5520 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5521 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5522 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5523 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5524 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5525 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5526 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5527 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5528 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5529 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5530 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5531 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5532 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5533 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5534 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5535 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5536 special-purpose register numbers.
5537
c24791ec
JB
5538 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5539 manual mentions 'md_twb', but many mention 'm_twb', and at that
5540 point in the register list.)
5541
d833db3b
AC
55422004-07-14 Andrew Cagney <cagney@gnu.org>
5543
5544 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5545 instead of "internal-error".
5546
080228b2
JB
55472004-07-10 Joel Brobecker <brobecker@gnat.com>
5548
5549 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5550 that was inserted inside a comment.
5551
c268433a
RC
55522004-07-10 Randolph Chung <tausq@debian.org>
5553
5554 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5555 function.
5556 (hppa_hpux_push_dummy_code): New function.
5557 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5558 Set find_global_pointer method.
5559
71009278
MK
55602004-07-10 Mark Kettenis <kettenis@gnu.org>
5561
5562 * NEWS: Mention BSD libkvm interface.
5563
b2fa5097
MS
55642004-07-10 Michael Snyder <msnyder@redhat.com>
5565
5566 * symfile.c (generic_load): Comment typo.
5567 * stack.c (get_selected_block): Ditto.
5568 * regcache.c (regcache_cooked_read): Ditto.
5569 * monitor.c (monitor_debug): Ditto.
5570 * mips-tdep.c (mips_read_pc): Ditto.
5571 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5572 * gdb_mbuild.sh: Ditto.
5573 * gdbarch.sh: Ditto.
5574 * gdbarch.h: Ditto.
5575
c3e5cd34
PH
55762004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5577
8a2225b2
PH
5578 * ada-tasks.c: Remove file.
5579
c3e5cd34
PH
5580 Remove ARI problems:
5581
5582 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5583 beginning of line.
5584
5585 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5586 Add comment.
5587 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5588 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5589 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5590 (UMIN_OF_SIZE): Remove.
5591 (max_of_type): New function to replace orphan macro in gdbtypes.h
5592 (min_of_type): Ditto.
5593 (discrete_type_high_bound): Use max_of_type.
5594 (discrete_type_low_bound): Use min_of_type.
5595 (possible_user_operator_p): Move operator to beginning of line.
5596 (ada_is_variant_part): Ditto.
5597 (ensure_lval): Rewrite to avoid deprecated operations.
5598 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5599 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5600 (ada_enum_name): Remove assignments in 'if' statements.
5601 (build_ada_types): Add gdbarch parameter.
5602 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5603 with gdbarch_data_register_post_init.
5604 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5605 add_show_from_set.
5606
5607 * ada-valprint.c (inspect_it): Remove declaration.
5608 (repeat_count_threshold): Remove declaration.
5609 (ada_print_floating): Remove assignments in 'if' statements.
5610 (print_str): Move operator to beginning of line.
5611
61ce229a
JB
56122004-07-08 Jim Blandy <jimb@redhat.com>
5613
5614 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5615
09bcec80
BR
56162004-07-08 Bob Rossi <bob@brasko.net>
5617
5618 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5619
31c27f77
JJ
56202004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5621
5622 * language.h (struct_language_defn): Add new function pointer:
5623 la_class_name_from_physname. Also add new prototype for
5624 language_class_name_from_physname.
5625 * language.c (language_class_name_from_physname): New function.
5626 (unk_lang_class_name): Ditto.
5627 (unknown_language_defn, auto_language_defn): Change
5628 to add unk_lang_class_name function pointer for
5629 la_class_name_from_physname.
5630 (local_language_defn): Ditto.
5631 * dwarf2read.c (guess_structure_name): Change to call
5632 language_class_name_from_physname.
5633 (determine_class_name): Ditto.
5634 * cp-support.c (class_name_from_physname): Renamed.
5635 (cp_class_name_from_physname): New name of function.
5636 * cp-support.h: Ditto.
5637 * c-lang.c (c_language_defn): Change to add NULL
5638 for class_name_from_physname function pointer.
5639 (cplus_language_defn): Change to add cp_class_name_from_physname.
5640 * jv-lang.c (java_class_name_physname): New function.
5641 (java_find_last_component): New static routine.
5642 (java_language_defn): Add java_class_name_from_physname pointer.
5643 * ada-lang.c (ada_language_defn): Change to add NULL
5644 for class_name_from_physname function pointer.
5645 * f-lang.c (f_language_defn): Ditto.
5646 * m2-lang.c (m2_language_defn): Ditto.
5647 * objc-lang.c (objc_language_defn): Ditto.
5648 * p-lang.c (pascal_language_defn): Ditto.
5649 * scm-lang.c (scm_language_defn): Ditto.
5650
ee28ca0f
AC
56512004-07-06 Andrew Cagney <cagney@gnu.org>
5652
5653 Patch from Bart Robinson.
5654 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5655 (O_LARGEFILE): Define to 0, if not defined.
5656
fdb1bf9d
MK
56572004-07-03 Mark Kettenis <kettenis@gnu.org>
5658
cb162ff6
MK
5659 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5660 <machine/pcb.h> and "bsd-kvm.h".
5661 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5662 (m68kbsd_supply_pcb): New function.
5663 (_initialize_m68kbsd_nat): New prototype and function.
5664 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5665 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5666 (LOADLIBES): New variable.
5667 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5668 (LOADLIBES): New variable.
5669
fdb1bf9d
MK
5670 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5671
963c4174
MK
56722004-07-03 Mark Kettenis <kettenis@gnu.org>
5673
5674 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5675 <sys/proc.h>.
5676 (bsd_kvm_cmdlist): New variable.
5677 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5678 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5679 command and "kvm proc" command.
5680 * Makefile.in (bsd-kvm.o): Update dependencies.
5681
533f1d8f
MK
56822004-07-02 Mark Kettenis <kettenis@gnu.org>
5683
5684 * osabi.c: Update copyright year.
5685 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5686 notes if EI_OSABI is set to ELFOSABI_HPUX.
5687
6780dcde
MS
56882004-07-01 Michael Snyder <msnyder@redhat.com>
5689
5690 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5691 that seems to have gotten whacked out of line.
5692
67bebe79
MK
56932004-07-01 Mark Kettenis <kettenis@gnu.org>
5694
5695 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5696 code.
5697
0b5d8877
PH
56982004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5699
5700 * ada-lang.c (decode_packed_array): Minor change to comment.
5701 (ada_value_slice_ptr): New function.
5702 (ada_value_slice): New function.
5703 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5704 test. Don't know why it is there.
5705 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5706 to avoid dereferencing huge arrays from which one is slicing.
5707 (empty_array): Correct to return an array rather than
5708 a subrange value.
5709 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5710 on empty arrays (let'em use 'FIRST instead).
5711
19c1ef65
PH
57122004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5713
5714 Address complaints from gdb_ari.sh:
5715
5716 * ada-exp.y: Include gdb_string.h rather than string.h.
5717 (convert_char_literal): Reformat declaration.
5718 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5719 * ada-lex.l: Change use of free to xfree (the macro would do so
5720 anyway, but this is harmless).
5721 Include gdb_string.h rather than string.h.
5722 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5723
5724 * ada-lang.c (parse): Remove K&Rism in parameter list.
5725 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5726
d81cbc94
MK
57272004-06-30 Mark Kettenis <kettenis@gnu.org>
5728
5729 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5730 dead code.
5731
07681759
MK
57322004-06-30 Mark Kettenis <kettenis@gnu.org>
5733
5734 * alphabsd-nat.c: Update copyright year.
5735 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5736
f7948b5f
JB
57372004-06-29 Joel Brobecker <brobecker@gnat.com>
5738
6e0cdd28 5739 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
5740 (i386_cygwin_in_solib_call_trampoline): New function.
5741 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5742 and skip_trampoline_code gdbarch methods.
5743
8f113c9a
JB
57442004-06-29 Jim Blandy <jimb@redhat.com>
5745
5746 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5747 name actually used in the dependency lists.
5748
97dc871c
RC
57492004-06-29 Randolph Chung <tausq@debian.org>
5750
5751 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5752
47216e51
CV
57532004-06-29 Corinna Vinschen <vinschen@redhat.com>
5754
5755 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 5756 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
5757 functionality.
5758
e623b504
AC
57592004-06-28 Andrew Cagney <cagney@gnu.org>
5760
5761 * defs.h (xstrvprintf): Declare.
5762 * utils.c (xstrvprintf): New function.
5763 (internal_vproblem, xstrprintf, xasprintf)
5764 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5765 * serial.c (serial_printf): Ditto.
5766 * complaints.c (vcomplaint): Ditto.
5767
79acc9b3
CV
57682004-06-29 Corinna Vinschen <vinschen@redhat.com>
5769
5770 * infcmd.c (attach_command): Move call to target_terminal_inferior
5771 behind loading symbol table.
5772
1daf35d9
AC
57732004-06-28 Andrew Cagney <cagney@gnu.org>
5774
5775 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5776 change - add back extern deprecated_ui_loop_hook declaration.
5777
b435e160
AC
57782004-06-28 Andrew Cagney <cagney@gnu.org>
5779
5780 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5781 xstrprintf.
5782 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5783 (c_value_of_variable): Ditto.
5784 * utils.c (internal_vproblem): Ditto.
5785 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5786 * remote.c (add_packet_config_cmd): Ditto.
5787 * remote-rdp.c (rdp_set_command_line): Ditto.
5788 * regcache.c (regcache_dump): Ditto.
5789 * frv-tdep.c (new_variant, new_variant): Ditto.
5790 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5791 (fbsd_find_memory_regions): Ditto.
5792 * breakpoint.c (create_thread_event_breakpoint)
5793 (create_breakpoints): Ditto.
5794 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5795 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5796
06d5cf63
JB
57972004-06-28 Joel Brobecker <brobecker@gnat.com>
5798
5799 * ada-lang.c: Re-indent file, with some massaging to help indent
5800 a bit when the result is otherwise really too ugly.
5801
35809fad
UW
58022004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5803
5804 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5805 code_addr_p and special_addr_p to 'unsigned int'.
5806
40e20472
MK
58072004-06-27 Mark Kettenis <kettenis@gnu.org>
5808
5809 * i386v4-nat.c: Update copyright year and tweak comment.
5810 (regmap): Remove trailing comma.
5811 (supply_gregset): Rename local variable i to regnum. Call
5812 regcache_raw_supply instead of supply_register.
5813 (fill_gregset): Rename argument regno to regnum. Call
5814 regcache_raw_collect instead of regcache_collect.
5815
12b0b6de
UW
58162004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5817
5818 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5819 and special_addr_p.
5820 (frame_id_build, frame_id_build_special): Update comments.
5821 (frame_id_build_wild): New prototype.
5822 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5823 struct frame_id fields.
5824 (frame_id_build_wild): New function.
5825 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5826
47b42a3e
MK
58272004-06-27 Mark Kettenis <kettenis@gnu.org>
5828
5829 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5830 hppabsd-tdep.c.
5831
1265e4aa
JB
58322004-06-27 Joel Brobecker <brobecker@gnat.com>
5833
5834 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5835
76a01679
JB
58362004-06-27 Joel Brobecker <brobecker@gnat.com>
5837
5838 * ada-lang.c: Re-indent file.
5839
7aca490a
JB
58402004-06-27 Joel Brobecker <brobecker@gnat.com>
5841
5842 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5843 (no_symtab_msg): Likewise.
5844
5e987968
AS
58452004-06-27 Andreas Schwab <schwab@suse.de>
5846
5847 * source.c: Fix whitespace.
5848
315c4276
MK
58492004-06-27 Mark Kettenis <kettenis@gnu.org>
5850
d15be926
MK
5851 * configure.in: Include <sys/param.h> for td_pcb test.
5852 * configure: Regenerated.
5853
9062529b
MK
5854 * i386nbsd-nat.c: New file.
5855 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5856 i386obsd-nat.c and i386obsd-tdep.c.
5857 (i386nbsd-nat.o): New dependency.
5858 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5859 bsd-kvm.o.
5860 (LOADLIBES): New variable.
5861 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5862 bsd-kvm.o.
5863 (LOADLIBES): New variable.
5864
8010310e
MK
5865 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5866 (LOADLIBES): New variable.
5867
efe1d7b9
MK
5868 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5869 fetching from BSD_KVM_PADDR. Correctly lookup address for
5870 "_thread0".
5871
315c4276
MK
5872 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5873 "bsd-kvm.h".
5874 (amd64fbsd_supply_pcb): New funcion.
5875 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5876
399cfac6
DL
58772004-06-27 <david@streamline-computing.com>
5878
5879 Partial fix for PR cli/1056.
5880 * valarith.c: Check for zero in division and remainder
5881 evaluation.
5882
6235f9c8
MK
58832004-06-27 Mark Kettenis <kettenis@gnu.org>
5884
5885 * i387-tdep.c: Remove excessive whitespace.
5886
2726dafc
AC
58872004-06-26 Andrew Cagney <cagney@gnu.org>
5888
5889 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5890 * gdb-events.h, gdb-events.c: Re-generate.
5891 * tui/tui-hooks.c (tui_install_hooks): Update.
5892 (tui_remove_hooks): Update.
5893 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5894
0e56aeaf
MK
58952004-06-26 Mark Kettenis <kettenis@gnu.org>
5896
cb461069
MK
5897 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5898 (gregset_t, fpregset_t): Remove typedefs.
5899 (REG_OFFSET): Rename argument.
5900 (amd64bsd_r_reg_offset): Rename from reg_offset.
5901 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5902 Remove functions.
5903 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5904 of reg_offset.
5905 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5906
ecba89de
MK
5907 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5908
4cd80476
MK
5909 * vax-tdep.c: Tweak comment.
5910
0e56aeaf
MK
5911 Add OpenBSD/hppa support.
5912 * NEWS (New native configurations): Mention OpenBSD/hppa.
5913 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5914 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5915 files.
5916 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5917 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5918 * configure.host: Add hppa*-*-openbsd*.
5919 * configure.tgt: Add hppa*-*-openbsd*.
5920
98bbd631
AC
59212004-06-25 Andrew Cagney <cagney@gnu.org>
5922
5923 * defs.h (deprecated_ui_loop_hook): Deprecated.
5924 * wince.c (child_wait): Update.
5925 * win32-nat.c (child_wait): Update.
5926 * v850ice.c (v850ice_wait): Update.
5927 * top.c (deprecated_ui_loop_hook): Update.
5928 * serial.h: Update.
5929 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5930 (do_unix_readchar): Update.
5931 * ser-tcp.c (net_open): Update.
5932 * remote-sim.c (gdb_os_poll_quit): Update.
5933 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5934
769d7dc4
AC
59352004-06-24 Andrew Cagney <cagney@gnu.org>
5936
5937 * defs.h (deprecated_pre_add_symbol_hook)
5938 (deprecated_post_add_symbol_hook): Deprecated.
5939 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5940 (symbol_file_add_with_addrs_or_offsets): Update references.
5941
11c949aa
AC
59422004-06-24 Andrew Cagney <cagney@gnu.org>
5943
5944 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5945 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5946 * wince.c (ui_loop_hook): Delete extern declaration.
5947 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5948 * v850ice.c (ui_loop_hook): Delete extern declaration..
5949 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5950 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5951 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5952 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5953 ui_loop_hook declaration.
5954
eedc19af
AC
59552004-06-24 Andrew Cagney <cagney@gnu.org>
5956
5957 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5958 entry_func_highpc fields.
5959 * objfiles.c (init_entry_point_info): Do not clear
5960 entry_func_lowpc and entry_func_highpc.
5961 (objfile_relocate): Do not relocate entry_func_lowpc and
5962 entry_func_highpc.
5963 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5964 entry_func_highpc.
5965 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5966 entry_func_highpc.
5967 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5968 entry_func_lowpc and entry_func_highpc with call to
5969 inside_entry_func.
5970
d47079be
MK
59712004-06-24 Mark Kettenis <kettenis@gnu.org>
5972
5973 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5974 quad-precision floating point arguments in registers.
5975
2107e348
MK
59762004-06-24 Mark Kettenis <kettenis@gnu.org>
5977
5978 From Michael Mueller <m.mueller99@kay-mueller.de>:
5979 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5980 account.
5981
46587c42
JJ
59822004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5983
5984 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5985 to -1.
5986 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5987 untriggered watchpoints to a separate if clause. Update function
5988 comment regarding STOPPED_BY_WATCHPOINT argument.
5989
226f5cf4
JB
59902004-06-22 Jim Blandy <jimb@redhat.com>
5991
5992 * gdbarch.sh: Doc fix.
5993
f10683bb
MH
59942004-06-21 Martin Hunt <hunt@redhat.com>
5995 Kevin Buettner <kevinb@redhat.com>
5996
5997 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5998 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5999 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
6000 to set_gdbarch_sp_regnum(). Use cooked register number.
6001 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
6002
412d5987
AC
60032004-06-21 Andrew Cagney <cagney@gnu.org>
6004
6005 * gdbarch.sh: When the macro field is empty, do not generate a
6006 macro definition. When the macro field is "=", generate the macro
6007 name from the upper-case function name.
6008 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
6009 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
6010 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
6011 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
6012 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
6013 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
6014 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
6015 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
6016 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
6017 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
6018 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
6019 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
6020 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
6021 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
6022 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
6023 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
6024 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
6025 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
6026 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
6027 (DEPRECATED_USE_STRUCT_CONVENTION)
6028 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6029 (DEPRECATED_FRAME_INIT_SAVED_REGS)
6030 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
6031 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
6032 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
6033 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
6034 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
6035 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
6036 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
6037 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
6038 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
6039 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
6040 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
6041 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
6042 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
6043 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
6044 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
6045 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
6046
68908a3e
AC
60472004-06-21 Andrew Cagney <cagney@gnu.org>
6048
48f7351b
AC
6049 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
6050 macro name, and the function rather than macro value. Only wrap
6051 macro print statements in #ifdef. Move format logic to where it
6052 is needed.
6053 * gdbarch.c: Re-generate.
6054
283354d8
AC
6055 * gdbarch.sh (read): Delete "print_p" and "description", add
6056 "garbage_at_eol". Check for non-empty garbage at end-of-line.
6057 Delete references to print_p.
6058 (TARGET_ARCHITECTURE): Delete print predicate.
6059 * gdbarch.c: Re-generate.
6060
68908a3e
AC
6061 * gdbarch.sh: Check that multi-arch methods do not provide a
6062 macro.
6063 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
6064 (print_registers_info, print_float_info, print_vector_info)
6065 (adjust_breakpoint_address, remote_translate_xfer_address)
6066 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
6067 (address_class_type_flags_to_name, unwind_sp): Remove the macro
6068 name from the multi-arch definition.
6069
a2428dbe
AC
60702004-06-20 Andrew Cagney <cagney@gnu.org>
6071
6072 * gdbarch.sh: Sort by the function, instead of macro name.
6073 * gdbarch.c: Re-generate.
6074
750eb019
AC
60752004-06-20 Andrew Cagney <cagney@gnu.org>
6076
66d659b1
AC
6077 * gdbarch.sh: Use the function, instead of macro name in
6078 errors and the log file.
6079 (return_value): Remove stray ":" in spec.
6080
750eb019
AC
6081 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
6082 * gdbarch.h, gdbarch.c: Re-generate.
6083 * Makefile.in (arch-utils.o): Update dependencies.
6084 * values.c (using_struct_return): Move code calling
6085 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
6086 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
6087 to legacy_return_value, simplify.
6088 * infcmd.c (print_return_value): Move code calling
6089 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
6090 to legacy_return_value, simplify.
6091 * infcall.c (call_function_by_hand): Move code calling
6092 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
6093 * arch-utils.c: Update copyright. Include "gdbcore.h".
6094 (legacy_return_value): New function.
6095 * arch-utils.h: Update copyright.
6096 (legacy_return_value): Declare.
6097
b5622e8d
AC
60982004-06-20 Andrew Cagney <cagney@gnu.org>
6099
6100 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
6101 * gdbarch.h, gdbarch.c: Re-generate.
6102 * values.c (using_struct_return): Update call.
6103 * mcore-tdep.c: Update comment.
6104 * infcall.c (call_function_by_hand): Update comment.
6105 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6106 * arch-utils.h (always_use_struct_convention): Update.
6107 * v850-tdep.c (v850_gdbarch_init): Update.
6108 * sh64-tdep.c (sh64_gdbarch_init): Update.
6109 * sh-tdep.c (sh_gdbarch_init): Update.
6110 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6111 * mips-tdep.c (mips_gdbarch_init): Update.
6112 * mcore-tdep.c (mcore_gdbarch_init): Update.
6113 * m32r-tdep.c (m32r_gdbarch_init): Update.
6114 * ia64-tdep.c (ia64_gdbarch_init): Update.
6115 * h8300-tdep.c (h8300_gdbarch_init): Update.
6116 * frv-tdep.c (frv_gdbarch_init): Update.
6117 * cris-tdep.c (cris_gdbarch_init): Update.
6118 * arm-tdep.c (arm_gdbarch_init): Update.
6119 * alpha-tdep.c (alpha_gdbarch_init): Update.
6120
5191de37
MC
61212004-06-18 Michael Chastain <mec.gnu@mindspring.com>
6122
6123 * PROBLEMS: Add more specific information, and a work-around,
6124 for PR gdb/1458.
6125
782263ab
AC
61262004-06-18 Andrew Cagney <cagney@gnu.org>
6127
6128 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
6129 * gdbarch.h, gdbarch.c: Re-generate.
6130 * ada-lang.c (ada_finish_decode_line_1): Update.
6131 * infrun.c (handle_inferior_event): Update.
6132 * infcall.c (find_function_addr): Update.
6133 * linespec.c (minsym_found): Update.
6134 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
6135 Update.
6136 * blockframe.c (legacy_frameless_look_for_prologue): Update.
6137 * cli/cli-cmds.c (disassemble_command): Update.
6138 * vax-tdep.c (vax_gdbarch_init): Update.
6139
2f305df1
MK
61402004-06-18 Mark Kettenis <kettenis@gnu.org>
6141
6142 * i386-tdep.c (i386_collect_fpregset): Fix comment.
6143
e5fe55f7
AC
61442004-06-17 Andrew Cagney <cagney@gnu.org>
6145
6146 GDB 6.1.1 released from the GDB 6.1 branch.
6147 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6148 * PROBLEMS: Ditto.
6149
473b7be6
DJ
61502004-06-16 Daniel Jacobowitz <dan@debian.org>
6151
6152 PR gdb/1658
6153 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6154 operation as a uleb128. Found by Michael Coulter.
6155
96d887e8
PH
61562004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
6157
6158 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6159 make it non-static.
6160 * ada-lang.h (task_control_block): declaration moved from ada-task.c
6161 to ada-lang.h; this is needed to be able to implement the kill command
6162 in multi-task mode.
6163 (task_ptid): Ditto.
6164 (task_entry): Ditto.
6165 (task_list): Ditto.
6166 (ada_build_task_list): Ditto.
6167
6168 * ada-lang.c: Conditionalize routines and data structures related
6169 to breakpoints, exceptions, completion, and symbol caching on
6170 GNAT_GDB, since these are not yet used in the submitted public sources.
6171 (ada_main_name): Editorial: Move definition out of exception-related
6172 code.
6173
31eef181
AC
61742004-06-15 Andrew Cagney <cagney@gnu.org>
6175
6176 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6177 deprecated_pc_in_call_dummy.
6178
2c500098
AM
61792004-06-15 Alan Modra <amodra@bigpond.net.au>
6180
6181 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6182 bfd_get_section_size_before_reloc or _raw_size.
6183 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6184 * dwarf2read.c (dwarf2_locate_sections): Likewise.
6185 (dwarf2_read_section): Likewise.
6186 * elfread.c (elf_locate_sections): Likewise.
6187 * gcore.c (derive_heap_segment): Likewise.
6188 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6189 * remote-e7000.c (e7000_load): Likewise.
6190 * remote-m32r-sdi.c (m32r_load): Likewise.
6191 * remote-mips.c (mips_load_srec): Likewise.
6192 (pmon_load_fast): Likewise.
6193 * remote.c (compare_sections_command): Likewise.
6194 * symfile.c (add_section_size_callback): Likewise.
6195 (load_section_callback): Likewise.
6196 (pc_in_unmapped_range): Likewise.
6197 (pc_in_mapped_range): Likewise.
6198 (sections_overlap): Likewise.
6199 (list_overlays_command): Likewise.
6200 (simple_overlay_update_1): Likewise.
6201 (simple_overlay_update): Likewise.
6202 * tracepoint.c (remote_set_transparent_ranges): Likewise.
6203 * win32-nat.c (core_section_load_dll_symbols): Likewise.
6204
90f943f1
RC
62052004-06-14 Randolph Chung <tausq@debian.org>
6206
6207 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6208 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6209 static.
6210 (hppa_hpux_inferior_created): New function.
6211 (hppa_hpux_init_abi): Register observer.
6212 * symfile.c (hp_cxx_exception_support_initialized)
6213 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6214 (symbol_file_add_main_1, symbol_file_clear): Likewise.
6215
700c15aa
RC
62162004-06-14 Randolph Chung <tausq@debian.org>
6217
3973a7d3
AC
6218 * MAINTAINERS (Write After Approval): Alphabetize my entry
6219 correctly.
700c15aa 6220
cea4838c
AC
62212004-06-14 Andrew Cagney <cagney@gnu.org>
6222
6223 * MAINTAINERS (testsuite): List Michael Chastain as the lead
6224 testsuite maintainer.
6225
97092415
AC
62262004-06-13 Andrew Cagney <cagney@gnu.org>
6227
e8c3165b
AC
6228 * infcmd.c (print_return_value): Fix logic, allow
6229 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6230
bceabdd8
AC
6231 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6232 defining any macros.
6233 * gdbarch.h: Re-generate.
6234
57010b1c
AC
6235 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6236 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6237 * gdbarch.h: Re-generate.
6238
bc87dfa0
AC
6239 * values.c (generic_use_struct_convention): Don't check gcc_p.
6240
15ac804d
AC
6241 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6242 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6243 * gdbarch.h, gdbarch.c: Regenerate.
6244 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6245 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6246 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6247 deprecated_max_register_raw_size and
6248 deprecated_max_register_virtual_size.
6249 * v850-tdep.c (v850_gdbarch_init): Ditto.
6250 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6251 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6252 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6253 * cris-tdep.c (cris_gdbarch_init): Ditto.
6254
97092415
AC
6255 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6256 * gdbarch.h, gdbarch.c: Re-generate.
6257 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6258 (m68hc11_use_struct_convention): Delete function.
6259 (m68hc11_extract_struct_value_address): Delete function.
6260 (m68hc11_return_value): New function.
6261 (m68hc11_gdbarch_init): Instead of store_return_value,
6262 extract_return_value, return_value_on_stack,
6263 deprecated_extract_struct_value_address and use_struct_convention,
6264 set return_value.
6265 * values.c (using_struct_return): Do not call
6266 RETURN_VALUE_ON_STACK.
6267 * arch-utils.h (generic_return_value_on_stack_not): Delete
6268 declaration.
6269 * arch-utils.c (generic_return_value_on_stack_not): Delete
6270 function.
6271
44e5158b
AC
62722004-06-12 Andrew Cagney <cagney@gnu.org>
6273
6274 * values.c (register_value_being_returned): Delete function.
6275 * infcmd.c (legacy_return_value): Delete function.
6276 * infcall.c (call_function_by_hand): Inline
6277 "register_value_being_returned", simplify.
6278 * values.c (using_struct_return): Update comment, refer to
6279 print_return_value instead of register_value_being_returned.
6280 * infcmd.c (print_return_value): Inline calls to
6281 register_value_being_returned and legacy_return_value. Simplify.
6282
b887c273
RC
62832004-06-11 Randolph Chung <tausq@debian.org>
6284
6285 * somread.c (som_symtab_read): Exclude gcc local symbols.
6286
1b2bfbb9
RC
62872004-06-11 Randolph Chung <tausq@debian.org>
6288
3973a7d3
AC
6289 * infrun.c (handle_inferior_event): Handle the case when a
6290 trampoline ends up in the runtime resolver, and if the trampoline
6291 has no name. Rearrange the code so that all the trampoline
6292 processing happens before other step-out-of-range handling.
1b2bfbb9 6293
a9d61c86
MH
62942004-06-11 Martin Hunt <hunt@redhat.com>
6295
6296 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6297 has no fpu.
6298
2c87cf5a
AC
62992004-06-10 Andrew Cagney <cagney@gnu.org>
6300
6301 * blockframe.c (legacy_inside_entry_func): Delete.
6302 (legacy_frame_chain_valid): Inline call to
6303 legacy_inside_entry_func, simplify.
6304
0b67b468 63052004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
6306
6307 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
6308 * dwarf2read.c (partial_die_info): Add dirname field.
6309 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6310 (read_partial_die): Save away DW_AT_comp_dir.
6311 * defs.h (symtab_to_filename): Removed.
6312 * source.c (find_and_open_source): Added.
57c22c6c 6313 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
6314 (symtab_to_filename): Removed.
6315 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
6316 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6317 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6318 symtab_to_filename.
6319 * symtab.h (partial_symtab): Add dirname field.
6320 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
6321 (mi_cmd_file_list_exec_source_file): Call new function
6322 symtab_to_fullname to find fullname.
57c22c6c 6323 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 6324 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
6325 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6326
9a1dd1ad
AC
63272004-06-10 Andrew Cagney <cagney@gnu.org>
6328
239ae8c7
AC
6329 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6330 to generic_use_struct_convention, the default value.
6331
fc720350
AC
6332 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6333 of abort.
6334
9a1dd1ad
AC
6335 * ns32k-tdep.c (ns32k_push_arguments): New function.
6336 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6337 * infcall.c (call_function_by_hand): Call error instead of
6338 legacy_push_arguments.
6339 * value.h (legacy_push_arguments): Delete declaration.
6340 * valops.c (legacy_push_arguments): Delete function.
6341 (value_push): Delete function.
6342
fea25152
BF
63432004-06-10 Brian Ford <ford@vss.fsi.com>
6344
6345 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6346 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6347 info.
6348 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6349
30a4a8e0
AC
63502004-06-10 Andrew Cagney <cagney@gnu.org>
6351
6352 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6353 * gdbarch.h, gdbarch.c: Re-generate.
6354 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6355 parameters.
6356 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6357 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6358 deprecated_pc_in_call_dummy instead of
6359 DEPRECATED_PC_IN_CALL_DUMMY.
6360 (arm_skip_prologue): Ditto.
6361 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6362 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6363 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6364 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6365 Ditto.
6366 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6367 (sh64_init_extra_frame_info, sh64_get_saved_register)
6368 (sh64_pop_frame): Ditto.
6369 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6370 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6371 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6372 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6373 (h8300_pop_frame): Ditto.
6374 * blockframe.c (legacy_inside_entry_func)
6375 (legacy_frame_chain_valid): Ditto.
6376 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6377 to deprecated_pc_in_call_dummy.
6378
81cfbe54
AC
63792004-06-09 Andrew Cagney <cagney@gnu.org>
6380
a1f4a1b6
AC
6381 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6382 provide a default value.
6383 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6384 * gdbarch.h, gdbarch.c: Re-generate.
6385 * arch-utils.c (generic_convert_register_p): Rename
6386 legacy_convert_register_p
6387 (legacy_register_to_value, legacy_value_to_register): Delete
6388 functions.
6389 * arch-utils.h (generic_convert_register_p): Rename
6390 legacy_convert_register_p.
6391 (legacy_register_to_value, legacy_value_to_register): Delete
6392 declarations.
6393
9730f241
AC
6394 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6395 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6396 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6397 * gdbarch.h, gdbarch.c: Re-generate.
6398 * infcmd.c (default_print_registers_info): Simplify.
6399 * findvar.c (value_of_register): Simplify.
6400 * mi/mi-main.c (get_register): Simplify.
6401 * arch-utils.c (legacy_convert_register_p): Always return 0.
6402 (legacy_register_to_value, legacy_value_to_register): Always call
6403 internal_error.
6404
8a1bf479
AC
6405 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6406 #ifdef CLEAR_INSN_CACHE code.
6407 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6408 Delete #ifdef CLEAR_DEFERRED_STORES code.
6409
4b38d6f1
AC
6410 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6411
2d62ecc7
AC
6412 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6413 copyright.
6414 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6415
be4f7469
AC
6416 * config/mips/mipsv4.mh: Delete file.
6417
81cfbe54
AC
6418 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6419 unreferenced macro.
6420 (hpread_adjust_stack_address): Delete declaration.
6421
d966f0cb
AC
64222004-06-08 Andrew Cagney <cagney@gnu.org>
6423
6424 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6425 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6426 PTRACE_ATTACH / PTRACE_DETACH available call error.
6427 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6428 * infttrace.c (update_thread_state_after_attach, attach, detach):
6429 Remove #ifdef wrappers.
6430 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6431 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6432 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6433 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6434 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6435 * config/nm-linux.h (ATTACH_DETACH): Delete.
6436 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6437 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6438 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6439 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6440 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6441
d91670b9
CV
64422004-06-08 Corinna Vinschen <vinschen@redhat.com>
6443
6444 * configure.in: Set $configdir to the right OS specific value.
6445 Use value when setting $tcldir and $tkdir.
6446 * configure: Regenerate.
6447
28ba0b33
PB
64482004-06-06 Paul Brook <paul@codesourcery.com>
6449
6450 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6451 records.
6452
f26caa11
PH
64532004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6454
6455 * ada-lang.c (lookup_symbol_in_language): New function to allow
6456 re-use of another language's symbol lookup code. (Placed here
6457 temporarily while Ada support is being integrated into the public
6458 tree).
6459 (restore_language): New auxiliary function for
6460 lookup_symbol_in_language.
6461 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6462 temporarily while Ada support is being integrated into the public
6463 tree).
6464
d560a54b
AO
64652004-06-08 Alexandre Oliva <aoliva@redhat.com>
6466
e75d110c
AO
6467 * Makefile.in (check//%): New.
6468
d560a54b
AO
6469 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6470 (mn10300_store_return_value): Rewrite.
6471 (mn10300_type_align): New.
6472 (mn10300_use_struct_convention): Rewrite.
6473 (mn10300_return_value): New, using all of the above.
6474 (mn10300_pop_frame_regular): Add saved_regs_size.
6475 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6476
a72fbdb7
AO
6477 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6478 regs if PC is on movm.
6479
01904826
JB
64802004-06-07 Jim Blandy <jimb@redhat.com>
6481
6482 Add native Linux support for the PowerPC E500.
6483 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6484 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6485 all architectures except the E500.
6486 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6487 #definitions.
6488 (struct gdb_evrregset_t): New type.
6489 (have_ptrace_getsetevrregs): New variable.
6490 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6491 fetch_spe_registers): New functions.
6492 (fetch_register): Call fetch_spe_register as appropriate.
6493 Assert that we're only passed raw register numbers.
6494 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6495 Don't fetch gprs if they're pseudoregisters.
6496 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6497 store_spe_registers): New functions.
6498 (store_register): Call store_spe_register as appropriate.
6499 Assert that we're only passed raw register numbers.
6500 (store_ppc_registers): Call store_spe_registers as appropriate.
6501 Don't store gprs if they're pseudoregisters.
6502
f90ef764
JJ
65032004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6504
6505 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6506 struct if one exists, even if we are dealing with a zombie thread.
6507
45b75230
AC
65082004-06-07 Andrew Cagney <cagney@gnu.org>
6509
6510 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6511 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6512 Rename PC_REQUIRES_RUN_BEFORE_USE.
6513 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6514 #ifdef.
6515
1658da49
RC
65162004-06-07 Randolph Chung <tausq@debian.org>
6517
6518 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6519 unwinding after sp has been saved to the stack but before the end
6520 of the prologue, and after the fp has been modified but before it has
6521 been saved to the stack.
6522 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6523 Remove superfluous definitions.
6524 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6525
9a727a3c
RC
65262004-06-07 Guy Martin <gmsoft@gentoo.org>
6527
6528 Committed by Randolph Chung.
6529 * hppa-linux-nat.c: Include the correct version of the header file
6530 depending on the kernel version.
6531
9e500012
RC
65322004-06-06 Randolph Chung <tausq@debian.org>
6533
6534 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6535 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6536
3388d7ff
RC
65372004-06-06 Randolph Chung <tausq@debian.org>
6538
6539 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6540 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6541 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6542 * hppa-tdep.c (hppa_symbol_address): New function definition.
6543 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6544
d49771ef
RC
65452004-06-06 Randolph Chung <tausq@debian.org>
6546
6547 * hppa-tdep.h (struct value): Forward declaration.
6548 (gdbarch_tdep): Define tdep find_global_pointer method.
6549 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6550 associated with the function we are trying to call, and write it
6551 to the gp register.
6552 (hppa32_convert_from_funct_ptr_addr): New function.
6553 (hppa_find_global_pointer): New function.
6554 (hppa_gdbarch_init): Set default find_global_pointer method; set
6555 convert_from_func_ptr_addr method.
6556 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6557 (hppa_linux_init_abi): Set find_global_pointer method.
6558 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6559
7d9b040b
RC
65602004-06-06 Randolph Chung <tausq@debian.org>
6561
6562 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6563 to struct value *function.
6564 * gdbarch.c: Regenerate.
6565 * gdbarch.h: Likewise.
6566 * infcall.c (call_function_by_hand): Pass entire function value
6567 to push_dummy_call.
6568
6569 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6570 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6571 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6572 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6573 * arm-tdep.c (arm_push_dummy_call): Likewise.
6574 * avr-tdep.c (avr_push_dummy_call): Likewise.
6575 * cris-tdep.c (cris_push_dummy_call): Likewise.
6576 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6577 * frv-tdep.c (frv_push_dummy_call): Likewise.
6578 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6579 * hppa-tdep.c (hppa32_push_dummy_call)
6580 (hppa64_push_dummy_call): Likewise.
6581 * i386-tdep.c (i386_push_dummy_call): Likewise.
6582 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6583 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6584 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6585 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6586 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6587 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6588 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6589 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6590 (ppc64_sysv_abi_push_dummy_call): Likewise.
6591 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6592 (ppc64_sysv_abi_push_dummy_call): Likewise.
6593 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6594 * s390-tdep.c (s390_push_dummy_call): Likewise.
6595 * sh-tdep.c (sh_push_dummy_call_fpu)
6596 (sh_push_dummy_call_nofpu): Likewise.
6597 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6598 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6599 * vax-tdep.c (vax_push_dummy_call): Likewise.
6600
4a19ea35
JB
66012004-06-04 Jim Blandy <jimb@redhat.com>
6602
8327ccee
JB
6603 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6604 gdbarch argument to register_size.
6605
a3c001ce
JB
6606 * rs6000-tdep.c (rs6000_store_return_value): Use
6607 regcache_cooked_write_part instead of
6608 deprecated_write_register_bytes.
6609 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6610 not gdbarch_deprecated_store_return_value.
6611
4a19ea35
JB
6612 * ppc-linux-nat.c (store_register, fetch_register): Remove
6613 incorrect assertions. Simplify and generalize handling of
6614 transfers whose sizes are not multiples of, or less than, sizeof
6615 (PTRACE_XFER_TYPE).
6616
b9b5d7ea
JJ
66172004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6618
6619 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6620 as a new thread event.
720c7d64 6621 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 6622 zombie, return TD_THR_ZOMBIE.
720c7d64 6623 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
6624 TD_THR_ZOMBIE, check if the thread is still on the thread list
6625 and return a -1 ptid if not found.
6626 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6627 change the status to TARGET_WAITKIND_SPURIOUS.
6628
c8a3b559
CV
66292004-06-03 Corinna Vinschen <vinschen@redhat.com>
6630
6631 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6632 double values in little endian mode.
6633
20605361
AC
66342004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6635
6636 Committed by Andrew Cagney.
6637 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6638 after last enum constant to avoid error from IBM C
6639 compiler.
6640
bc97b3ba
JB
66412004-06-02 Jim Blandy <jimb@redhat.com>
6642
6643 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6644 to 'message', and make it local to the lone block that uses it.
6645
1da28ab0
JB
6646 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6647
4c4b4cd2
PH
66482004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6649
8a2225b2
PH
6650 * ada-exp.y: Update copyright notice.
6651 Include block.h.
6652
6653 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6654 SPECIAL_VARIABLE and unify the treatment of these cases.
6655
6656 (write_attribute_call0): Remove.
6657 (write_attribute_call1): Remove.
6658 (write_attribute_calln): Remove.
6659 (save_qualifier): Add missing semicolon.
6660
6661 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6662 temporarily disabled to allow compilation with FSF head version.
6663
6664 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6665 use individual operators (OP_*) for all attributes.
6666 (exp syntax): Use write_int.
6667 Handle STRING literals with OP_STRING.
6668 (variable syntax): Add limit parameter to calls to
6669 write_object_renaming.
6670
6671 (temp_parse_space): New definition to hold entities that need
6672 only live until the next call to ada_parse.
6673 (string_to_operator): Rename fields of ada_opname_table entries.
6674
6675 (write_var_from_sym): Record block.
6676 (write_var_from_name): Minor reformatting.
6677 Make sure saved name is properly encoded in the case of multiple
6678 matches, and set its language to Ada.
6679 Update comment.
6680 Modify to indicate unresolved name as symbol in the UNRESOLVED
6681 namespace, allocated in temp_parse_space.
6682 (write_int): New function.
6683
6684 (write_object_renaming): Add max_depth parameter to limit
6685 chains of object renamings.
6686 Handle case where root of renaming expression is itself a renaming.
6687 Use temp_parse_space for temporary name buffer.
6688 Handle renamings to dereferenced pointers (___XEXA suffices).
6689
6690 (ada_parse, yyerror, string_to_operator,
6691 write_var_from_sym, write_var_from_name, write_attribute_call0,
6692 write_attribute_call1, write_attribute_calln,
6693 write_object_renaming): Protoize.
6694
6695 (_initialize_ada_exp): New function.
6696
6697 * ada-lang.c: Update copyright notice.
6698 General terminology change to conform to GNAT compiler usage:
6699 mangle => encode, demangle => decode
6700 Include gdb_obstack.h.
6701 Include gdb_regex.h
6702 Include frame.h
6703 Include hashtab.h
6704 Include completer.h
6705 Include gdb_stat.h
6706 Include block.h
6707 Include infcall.h
6708
6709 (ADA_RETAIN_DOTS): Make sure this is defined.
6710 (TRUNCATION_TOWARDS_ZERO): Define.
6711 (struct string_vector): Define.
6712 (unresolved_names): Remove definition.
6713 (xnew_string_vector): New function.
6714 (string_vector_append): New function.
6715 (extract_string): Make static.
6716 (ada_unqualified_name): New function.
6717 (add_angle_brackets): New function.
6718 (function_name_from_pc): New function.
6719 (place_on_stack): Rename to ensure_lval.
6720
6721 (ensure_lval): Renamed from place_on_stack.
6722 Make identity on lvals.
6723 Update comment.
6724 (is_nonfunction): New interface.
6725 Only symbols in LOC_CONST class can be enumerals.
6726 (fill_in_ada_prototype): Remove; now independent of language.
6727 (add_defn_to_vec): Add obstack and symtab arguments.
6728 Use obstack to hold collected definitions.
6729 (num_defns_collected): New function.
6730 (defns_collected): New function.
6731 (ada_resolve_subexp): Rename to resolve_subexp.
6732 (resolve_subexp): Renamed from ada_resolve_subexp.
6733 (ada_op_name): Return non-const result.
6734 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6735 other purposes.
6736
6737 (to_fixed_array_type): Add declaration.
6738 (coerce_unspec_val_to_type): Remove offset parameter.
6739 (find_sal_from_funcs_and_line): New interface.
6740 (find_line_in_linetable): Ditto.
6741
6742 (all_sals_for_line): Rename to ada_sals_for_line and make
6743 global.
6744 Add new parameter. When set, do not ask the user to choose the
6745 instance, but use the first one found instead.
6746 Use given line number in returned sals.
6747 Fix comment.
6748 Skip the prologue if funfirstline is set.
6749 Correct for memory leak when 0 lines found.
6750
6751 (value_pos_atr): Use pos_atr.
6752 (pos_atr): New function.
6753 (standard_lookup): Add block parameter.
6754
6755 (makeTimeStart): Remove declaration and uses.
6756 (makeTimeStop): Remove declaration and uses.
6757
6758 (ada_completer_word_break_characters): Allow for VMS.
6759 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6760 (raise_sym_name): New constant.
6761 (raise_unhandled_sym_name): New constant.
6762 (raise_assert_sym_name): New constant.
6763 (process_raise_exception_name): New constant.
6764 (longest_exception_template): New constant.
6765 (warning_limit): New variable to limit warnings during expression
6766 evaluation.
6767 (warnings_issued): New variable to keep track of warnings issued.
6768 (known_runtime_file_name_patterns): New constant.
6769 (known_auxiliary_function_name_patterns): New constant.
6770 (symbol_list_obstack): New variable.
6771
6772 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6773 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6774 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6775 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6776 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6777 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6778 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6779 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6780 and strcmp.
6781
6782 (ada_get_field_index): New function.
6783 (lim_warning): New function.
6784 (ada_translate_error_message): New function.
6785 (MAX_OF_SIZE): New function.
6786 (MIN_OF_SIZE): New function.
6787 (UMAX_OF_SIZE): New function.
6788 (UMIN_OF_SIZE): New function.
6789 (discrete_type_high_bound): New function.
6790 (discrete_type_low_bound): New function.
6791 (base_type): New function.
6792 (do_command): Remove.
6793
6794 (ada_update_initial_language): Use language_ada, not language_unknown.
6795 (ada_encode): Renamed from ada_mangle.
6796 Obey ADA_RETAIN_DOTS.
6797 (ada_decode): Renamed from ada_demangle.
6798 Update coding conventions.
6799 (decoded_names_store): New hash table.
6800 (ada_decode_symbol): New function.
6801 (ada_la_decode): New function.
6802
6803 (modify_general_field): Correct computations of offset and bit
6804 position.
6805 (desc_base_type): Handle ref types, too.
6806 (ada_is_direct_array_type): New function.
6807
6808 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6809 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6810 (ada_is_bogus_array_descriptor,ada_type_of_array,
6811 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6812 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6813 ada_is_array_descriptor_type.
6814
6815 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6816 (ada_is_packed_array_type): Handle pointers or
6817 references to packed arrays as well.
6818 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6819 (decode_packed_array_type): Search for the packed array type
6820 symbol in the currently selected block and associated
6821 superblocks too.
6822 Use lookup_symbol again.
6823
6824 (decode_packed_array): Handle pointers and references.
6825 Update call to coerce_unspec_val_to_type.
6826 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6827 (ada_value_primitive_packed_val): Improve comment.
6828
6829 (ada_index_type): Substitute int type for "undefined".
6830 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6831 ada_array_langth, ada_is_string_type): Use renamed
6832 ada_is_simple_array_type.
6833 (empty_array): New function.
6834
6835 (ada_resolve): Rename to resolve.
6836 (resolve): Make static.
6837 Call renamed resolve_subexp.
6838 Update comment.
6839 (ada_resolve_subexp): Rename to resolve_subexp.
6840 (resolve_subexp): Update comment.
6841 Decomment disabled code.
6842 Add LOC_COMPUTED* cases.
6843 Modify to use temporary struct symbols (marked as being in
6844 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6845 OP_UNRESOLVED_VALUE.
6846 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6847 Add OP_STRING case.
6848 Remove OP_ARRAY.
6849 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6850 Use new ada_lookup_symbol_list interface.
6851 Use new ada_resolve_function interface.
6852 Remove OP_TYPE case.
6853
6854 (ada_args_match): Idiot proof against null actuals.
6855 Use intermediate variables to clarify.
6856 (ada_resolve_function): Update comment and interface.
6857 (mangled_ordered_before): Rename to encoded_ordered_before and
6858 update comment.
6859 (sort_choices): Update comment and interface.
6860 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6861 (user_select_syms): New interface.
6862 Use new sort_choices interface.
6863 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6864 (possible_user_operator_p): Idiot-proof against null values.
6865 (ada_simple_renamed_entity): Don't make cleanup; rely on
6866 caller to free result string.
6867 Remove const from return type.
6868 (make_array_descriptor): Rename uses of place_on_stack to
6869 ensure_lval.
6870 Make sure that arrays are on stack.
6871
6872 (HASH_SIZE): Define.
6873 (struct cache_entry): Define.
6874 (cache_space): Define.
6875 (cache): Define.
6876 (clear_ada_sym_cache): New function.
6877 (find_entry): New function.
6878 (lookup_cached_symbol): New function.
6879 (defn_vector_size): Define.
6880 (cache_symbol): New function.
6881 (defn_symbols): Remove.
6882
6883 (standard_lookup): Use lookup_symbol_in_language to get effect of
6884 C lookup.
6885 Cache results.
6886
6887 (symbol_completion_match): New function.
6888 (symbol_completion_add): New function.
6889 (ada_make_symbol_completion_list): New function.
6890
6891 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6892 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6893 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6894 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6895
6896 (ada_lookup_simple_minsym): New function.
6897 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6898
6899 (add_symbols_from_enclosing_procs): New interface.
6900 Conditionalize more helpfully.
6901 Don't bother if program isn't running.
6902 Use new interface to get_frame_block.
6903 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6904
6905 (remove_extra_symbols): New interface.
6906 (xget_renaming_scope): New function.
6907 (is_package_name): New function.
6908 (renaming_is_visible): New function.
6909 (remove_out_of_scope_renamings): New function.
6910
6911 (ada_lookup_symbol_list): New interface.
6912 Properly reinitialize the symbol list obstack.
6913 Don't call add_symbols_from_enclosing_procs if we start from a
6914 static or global block.
6915 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6916 add_symbols_from_enclosing_procs.
6917 Add symtab data to cached entries.
6918 Handle symbols prefixed with
6919 "standard__" specially; strip prefix and don't look in local symbols.
6920 Do not include out of scope renaming symbols in list of
6921 symbols returned.
6922 Add const to block parameter.
6923 Move check for non-local, non-global symbols earlier.
6924 Remove timing stuff.
6925 (ada_lookup_symbol): New interface.
6926 Find symtab as well.
6927 (ada_lookup_symbol_nonlocal): New function.
6928
6929 (is_name_suffix): Enhance suffix detection to recognize
6930 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6931 (is_dot_digits_suffix): New function.
6932 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6933
6934 (ada_add_block_symbols): New interface. Use obstack to return results
6935 in a vector of struct ada_symbol_infos. Add symtab argument.
6936 Use new interface to add_defn_to_vec.
6937 Remove calls to fill_in_ada_prototype.
6938 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6939
6940 (ada_finish_decode_line_1): Add const qualification to local to fix
6941 warning.
6942 Start looking in static block for functions to avoid attempts
6943 to search frame chain for up-level variables.
6944 Adapt to new ada_sals_for_line interface.
6945 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6946 Handle quoting of the function name inside the spec string.
6947 Skip prologue when funfirstline is set and update the
6948 function documentation to that effect.
6949
6950 (debug_print_lines, debug_print_block, debug_print_blocks,
6951 debug_print_symtab): Remove.
6952
6953 (ada_main_name): New function.
6954 (ada_exception_breakpoint_type): New function.
6955 (is_known_support_routine): New function.
6956 (ada_find_printable_frame): Renamed from find_printable_frame and made
6957 global.
6958 Remove level parameter.
6959 Use new interface to select_frame.
6960
6961 (begin_command): Remove.
6962 (ada_adjust_exception_stop): New function.
6963 (ada_print_exception_stop): New function.
6964 (exception_name_from_cond): New function.
6965 (ada_report_exception_break): Replace disabled code with
6966 conditionalization on GNAT_GDB.
6967 Get the exception name from the condition string.
6968 Remove and move functionality into new functions
6969 ada_print_exception_breakpoint_task and
6970 ada_print_exception_breakpoint_nontask.
6971 (error_breakpoint_runtime_sym_not_found): New function.
6972 (is_runtime_sym_defined): New function.
6973 (ada_breakpoint_rewrite): Uncomment suppressed code.
6974 Use symbolic error-message and runtime-symbol names.
6975 Surround runtime symbol names in quotes.
6976 Allow non-specific breakpoints on exceptions and assertions before
6977 program starts.
6978
6979 (ada_is_tagged_type): Add parameter.
6980 (ada_is_tag_type): New function.
6981 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6982 (ada_variant_discrim_type): Ditto.
6983 (value_tag_from_contents_and_address): New function.
6984 (type_from_tag): New function.
6985 (struct tag_args): New structure used to communicate with
6986 ada_tag_name_1.
6987 (ada_tag_name_1): New function.
6988 (ada_tag_name): New function.
6989
6990 (ada_scan_number): Update comment.
6991 (find_struct_field): New function.
6992 (ada_search_struct_field): Make static.
6993 (ada_value_struct_elt): New version that returns references when
6994 given pointers or references to structs.
6995 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6996 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6997 interface.
6998 (ada_value_ind): Use new ada_to_fixed_value interface.
6999 (ada_coerce_ref): Ditto.
7000 (field_offset): Remove.
7001
7002 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
7003 (ada_find_renaming_symbol): New function.
7004 (ada_prefer_type): Prefer named types over unnamed ones.
7005 (variant_field_index): New function.
7006 (contains_variant_part): Removed: subsumed by variant_field_index.
7007 (ada_template_to_fixed_record_type): New function, mostly from
7008 template_to_fixed_record_type.
7009 (template_to_fixed_record_type):
7010 Do not scan the type fields beyond the last one; prevents a
7011 potential SEGV.
7012 Handle case where variant field is listed BEFORE discriminant it
7013 depends on.
7014 Fix calculation of record length when bit length is
7015 not evenly divisible by char length.
7016 Move code to ada_template_to_fixed_record_type and call it.
7017
7018 (template_to_static_fixed_type): Revise comment.
7019 Modify to work on ordinary record types as well as templates,
7020 so as to handle fields that use ___XVE or ___XVU encodings.
7021 (to_record_with_fixed_variant_part): Fill out comment.
7022 Initialize C++ stuff in right type.
7023 Allow case where DVAL is null.
7024 Handle case where variant field is not last.
7025 Fix typo concerning record length.
7026 (to_fixed_record_type): Decomment disabled code.
7027 (to_fixed_record_type): Use variant_field_index instead of
7028 contains_variant_part.
7029 (to_fixed_variant_branch_type): Ditto.
7030 (to_fixed_array_type): Decomment disabled code.
7031 (ada_to_fixed_type): Convert tagged types to the specific type.
7032 Deactivate the size-check for array types in order to avoid
7033 some false size alarms.
7034 (to_static_fixed_type): Decomment disabled code.
7035 Modify to call template_to_static_fixed_type
7036 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
7037 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
7038 Remove valaddr argument, as it is never really used.
7039 (ada_to_fixed_value): Change interface to act on single struct value*
7040 operand.
7041 (adjust_pc_past_prologue): New function.
7042 (ada_attribute_name): Modify to take enum exp_opcode argument.
7043
7044 (ada_enum_name): Recognize new homonym-distinguishing convention.
7045 Adjust local variable's type to remove compiler warning.
7046 Fix a small problem in the part that unqualifies the enumeration name.
7047 (ada_value_binop): New function.
7048 (ada_value_equal): New function.
7049
7050 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
7051 Don't give error message when not doing normal evaluation
7052 and a tagged type doesn't seem to contain a structure member.
7053 Give error message for packed arrays.
7054 For indexing arrays, handle pointers to packed arrays correctly.
7055 Handle case of 'first and 'last attributes of bare integral type
7056 without encoded subtype info.
7057 Remove some unnecessary casts.
7058 Fix uninitialized value of type in computing 'first, 'last, or 'length
7059 of array object.
7060 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
7061 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
7062 calls.
7063 Attributes are now exp_opcode values.
7064 Correct treatment of 'modulus.
7065 Better error message for taking 'length of wrong kind of type;
7066 improve comment.
7067 Change EVAL_NORMAL to noside for consistency.
7068 Use ada_value_binop for DIV, MOD, REM.
7069 Make special case out of array of length 0, since an argument
7070 of 0 upsets some platforms' malloc.
7071 Use OP_STRING instead of OP_ARRAY.
7072 For slice, add check that we have an array type before extracting
7073 a slice out of it. Avoids a SEGV.
7074 When evaluating an array slice, if the array type is a reference to
7075 an aligner type, then replace the aligner type by the actual type.
7076 Decomment disabled code.
7077 Remove some dead code.
7078 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
7079 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
7080 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
7081 and UNOP_MBR to UNOP_IN_RANGE.
7082 If an array type has a parallel ___XVE type, then use it.
7083 Turn arrays into pointers for lvalue arrays.
7084 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
7085 bounds error and handle 0-length slices.
7086 Use lim_warning.
7087 When selecting fields, apply ada_to_fixed_value (because the fields
7088 might have ___XVU or ___XVE encodings even if not dynamic.)
7089 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
7090 (ada_is_system_address_type): New function.
7091
7092 (get_var_value): Use new interface to ada_lookup_symbol_list.
7093 (get_int_var_value): New interface.
7094 (to_fixed_range_type): Allow unknown bound, with warning.
7095 (ada_is_modular_type): Decomment disabled code.
7096 (ADA_OPERATORS): New definition.
7097 (ada_operator_length): New function.
7098 (ada_expr_op_name): New function.
7099 (ada_forward_operator_length): New function.
7100 (ada_dump_subexp_body): New function.
7101 (ada_print_subexp): New function.
7102 (ada_exp_descriptor): New constant.
7103 (ada_op_print_tab): Add 'size. Remove FIXMEs.
7104 (ada_language_defn): Add ada_exp_descriptor entry.
7105 Change ada_parse => parse.
7106 Add post-parser entry.
7107 Use ada-specific non-local symbol lookup.
7108 Don't use C-style arrays.
7109 String lower-bound is 1.
7110 Decomment disabled code.
7111 (parse): New function.
7112 New fields ada_translate_error_message, ada_lookup_symbol,
7113 ada_lookup_minimal_symbol.
7114
7115 * ada-lang.h: Update copyright dates.
7116 Replace the mangle/demangle terminology throughout by the
7117 more appropriate encode/decode one.
7118 Include breakpoint.h.
7119 Forward declare struct partial_symbol, struct block.
7120 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
7121 (EXTRACT_ADDRESS): Remove.
7122 (EXTRACT_INT): Remove.
7123 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
7124 (MAX_ENCLOSING_FRAME_LEVELS): Define.
7125 (MAX_RENAMING_CHAIN_LENGTH): Define.
7126 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
7127
7128 (enum task_states): Remove.
7129 ada_task_states: Remove.
7130 (fat_string): Remove.
7131 (struct entry_call): Remove.
7132 (struct task_fields): Remove.
7133 (struct task_entry): Remove.
7134
7135 (struct ada_symbol_info): Define.
7136 (enum ada_attribute): Remove.
7137 (enum ada_operator): Define.
7138
7139 (ada_get_field_index): Declare.
7140 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7141 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7142 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7143 (ada_lookup_symbol_list): New interface.
7144 (ada_decode_symbol): Declare.
7145 (ada_decode): Declare.
7146 (ada_lookup_symbol): New interface.
7147 (ada_update_initial_language): Declare.
7148 (ada_lookup_simple_minsym): Declare.
7149 (user_select_syms): New interface.
7150 (ada_sals_for_line): Declare.
7151 (ada_is_tagged_type): New interface.
7152 (ada_tag_name): Declare.
7153 (ada_lookup_struct_elt_type): Remove declaration.
7154 (ada_search_struct_field): Remove declaration.
7155 (ada_attribute_name): New interface.
7156 (ada_is_system_address_type): Declare.
7157 (ada_to_fixed_value): Remove declaration.
7158 (ada_template_to_fixed_record_type_1): Declare.
7159 (get_int_var_value): New interface.
7160 (ada_find_any_symbol): Declare.
7161 (ada_find_renaming_symbol): Declare.
7162 (ada_mangle): Rename to ada_encode.
7163 (ada_simple_renamed_entity): Remove const.
7164 (ada_main_name): Declare.
7165 (get_current_task): Rename to ada_get_current_task.
7166 (get_entry_number): Remove declaration.
7167 (ada_report_exception_break): Remove declaration.
7168 (ada_print_exception_breakpoint_nontask): Declare.
7169 (ada_print_exception_breakpoint_task): Declare.
7170 (ada_find_printable_frame): Declare.
7171
7172 * ada-lex.l: Update copyright notices.
7173 Use xmalloc and xfree instead of malloc and free.
7174 Use new interface to name_lookup.
7175 Use new interface to
7176 ada_mangle=>ada_encode.
7177 Redo handling of '$...' variable to parallel current treatment
7178 in c-exp.y.
7179 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7180 digit_to_int, strtoulst, processInt, processReal, processId,
7181 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7182 yywrap): Protoize.
7183
7184 (processInt): Use cast to remove harmless warning.
7185 (processReal): Modify to get rid of compiler warning on scan formats.
7186
7187 (processId): Replace xmalloc with obstack_alloc for name and remove
7188 call to ada_name_string_cleanup.
7189 Remove obsolete disabled code.
7190 (name_lookup): Ditto.
7191 New interface.
7192 Use obsavestring on temp_parse_space instead of savestring
7193 on name, and remove call to ada_name_string_cleanup.
7194 Free string returned from ada_simple_renamed_entity.
7195 Use new interface to ada_lookup_symbol_list.
7196 Decomment disabled code.
7197 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
7198 not types.
7199 When a type name lookup succeeds as a result of
7200 lookup_primitive_typename, check for regular type entry that has not
7201 yet been read in.
7202 Limit length of chain of renamed symbols we are willing to follow.
7203 Do not break names beginning with "standard__" into segments.
7204 (block_lookup): Use new interface to ada_lookup_symbol_list.
7205
7206 * ada-typeprint.c: Update copyright notice.
7207 (demangled_type_name): Rename to decoded_type_name.
7208 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7209 (print_range_bound): Correct handling of negative
7210 bounds that make the index type looked unsigned under STABS.
7211 (print_dynamic_range_bound): Use new interface to get_int_var_value.
7212 (print_range_type_named): Use the builtin int type if no type
7213 corresponding to the given type name could be found.
7214 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7215 Add some bullet-proofing.
7216 (print_variant_clauses): Allow for variant branches with ___XVU
7217 encodings that are not dynamic fields.
7218 Use new interface to ada_is_tagged_type.
7219 (print_record_type): Allow for fields with ___XVE encodings that
7220 are not dynamic fields.
7221 Use new interface to ada_is_tagged_type.
7222 (ada_print_type): ada_is_array_descriptor =>
7223 ada_is_array_descriptor_type.
7224
7225 * ada-valprint.c: Update copyright notice.
7226 Include gdb_string.h
7227 Include infcall.h
7228 (ui_memcpy): New function.
7229 (ada_print_floating): New function.
7230 (ada_print_str): Order arguments correctly.
7231 Correct handling of empty arrays and arrays of 0-length items.
7232 ada_is_array_descriptor => ada_is_array_descriptor_type
7233 Print values of type System.Address in hexadecimal format.
7234 Use ada_print_floating to print floating-point numbers in Ada format.
7235 Print class tag values with type names.
7236 No longer print the address of reference values. Avoids
7237 a potential confusion.
7238 (ada_value_print): Stop printing the object type for reference
7239 values, but preserve that behavior for access types. Avoids
7240 a potential confusion.
7241 Simplify one conditional expression, as the first part is now
7242 necessarily true.
7243 ada_is_array_descriptor => ada_is_array_descriptor_type
7244 Add check for arrays for null records, and print them by hand.
4c4b4cd2 7245
f65f91b5
JB
72462004-06-01 Jim Blandy <jimb@redhat.com>
7247
7248 * ppc-tdep.h: Delete unused 'regoff' member.
7249 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7250
d4687fa0
MC
72512004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7252
7253 Fix PR symtab/1661.
7254 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7255 (hpread_read_struct_type): Likewise.
7256
de169ec9
AC
72572004-06-01 Andrew Cagney <cagney@gnu.org>
7258
c6902d46
AC
7259 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7260 instead of xasprintf.
7261 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7262 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7263 (mi_cmd_data_list_register_names)
7264 (mi_cmd_data_list_changed_registers)
7265 (mi_cmd_data_list_register_values)
7266 (get_register, mi_cmd_data_write_register_values)
7267 (mi_cmd_data_write_register_values)
7268 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7269 (mi_cmd_target_download, mi_cmd_target_select)
7270 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7271 (mi_execute_cli_command, mi_execute_async_cli_command)
7272 (mi_execute_async_cli_command): Ditto.
7273 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7274 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7275
6085fc2d
AC
7276 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7277 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7278 error_last_message instead of mi_error_last_message.
7279 * mi/mi-main.c (mi_error_last_message): Delete function.
7280
de169ec9
AC
7281 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7282 "invalid number of columns" error. Delete redundant "out of
7283 memory" check.
7284
1fc7d519
MK
72852004-05-31 Mark Kettenis <kettenis@gnu.org>
7286
6cfb2041
MK
7287 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7288 (gregset_t, fpregset_t): Remove typedefs.
7289 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7290 (REG_OFFSET): Rename argument.
7291 (i386bsd_r_reg_offset): Rename from reg_offset.
7292 (REG_ADDR): Remove macro.
7293 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7294 functions.
7295 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7296 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7297 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7298 instead of supply_gregset.
7299 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7300 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7301 instead of fill_gregset.
7302 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7303
1fc7d519
MK
7304 * i386bsd-nat.c: Don't include "gregset.h".
7305 (supply_gregset, fill_gregset): Make static.
7306 (supply_fpregset, fill_fpregset): Remove.
7307 * Makefile.in (i386bsd-nat.o): Update dependencies.
7308
2c34abbe
MK
73092004-05-30 Mark Kettenis <kettenis@gnu.org>
7310
448724fb
MK
7311 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7312 "gdb_assert.h". Con't include "gregset.h".
7313 (fbsd_make_corefile_notes): Use regset-based core file support
7314 instead off fill_gregset and fill_fpregset.
7315 * Makefile.in (fbsd-proc.o): Update dependencies.
7316
5ca8ca7c
MK
7317 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7318 instructions.
7319 (m88k_frame_prev_register): Simplify code a bit.
7320
593adc23
MK
7321 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7322 (amd64_collect_fpregset): New function.
7323 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7324
8d1b517b
MK
7325 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7326
7fdafb5a
MK
7327 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7328 (i386_collect_gregset): New function.
7329 (i386_supply_fpregset): Adjust comment.
7330 (i386_collect_fpregset): New function.
7331 (i386_regset_from_core_section): Use i386_collect_gregset and
7332 i386_collect_fpregset.
7333
8693c419
MK
7334 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7335 handle VALUEP being null.
7336
2c34abbe
MK
7337 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7338
45d134d8
MK
73392004-05-29 Mark Kettenis <kettenis@gnu.org>
7340
1698f4e7
MK
7341 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7342
45d134d8
MK
7343 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7344 assembler in OpenBSD 3.5-current.
7345 (amd64obsd_sigcontext_addr): Likewise.
7346
691d145a
JB
73472004-05-28 Jim Blandy <jimb@redhat.com>
7348
7349 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7350 register set, so our regcache isn't declared "legacy" and our E500
7351 pseudoregister read and write functions aren't ignored.
7352 (rs6000_register_byte, rs6000_register_raw_size,
7353 rs6000_register_virtual_type, rs6000_register_convertible,
7354 rs6000_register_convert_to_virtual,
7355 rs6000_register_convert_to_raw): Deleted.
7356 (rs6000_register_type, rs6000_convert_register_p,
7357 rs6000_register_to_value, rs6000_value_to_register): New
7358 functions.
7359 (rs6000_gdbarch_init): Don't register
7360 gdbarch_deprecated_register_size,
7361 gdbarch_deprecated_register_bytes,
7362 gdbarch_deprecated_register_byte,
7363 gdbarch_deprecated_register_raw_size,
7364 gdbarch_deprecated_register_virtual_type,
7365 gdbarch_deprecated_register_convertible,
7366 gdbarch_deprecated_register_convert_to_virtual, or
7367 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7368 register gdbarch_register_type, gdbarch_convert_register_p,
7369 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7370
18ed0c4e
JB
73712004-05-26 Jim Blandy <jimb@redhat.com>
7372
7373 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7374 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7375 functions, updated to match the register numberings used in GCC.
7376 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7377 rs6000_dwarf2_reg_to_regnum as register number conversions
7378 functions for STABS and Dwarf2.
7379
779af9e3
RC
73802004-05-26 Randolph Chung <tausq@debian.org>
7381
7382 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7383 in header file.
7384
c23968a2
JB
73852004-05-25 Joel Brobecker <brobecker@gnat.com>
7386
7387 * NEWS: Document new "start" command.
7388
3a7d1c27
RC
73892004-05-25 Randolph Chung <tausq@debian.org>
7390
7391 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7392 hppa-linux.
7393
43613416
RC
73942004-05-25 Randolph Chung <tausq@debian.org>
7395
7396 * hppa-hpux-tdep.c (offsetof): Define.
7397 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7398 (hppa32_hpux_frame_base_before_sigtramp)
7399 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7400 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7401 (hppa64_hpux_frame_base_before_sigtramp)
7402 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7403 functions.
7404 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7405 (hppa_hpux_sigtramp_frame_unwind_cache)
7406 (hppa_hpux_sigtramp_frame_this_id)
7407 (hppa_hpux_sigtramp_frame_prev_register)
7408 (hppa_hpux_sigtramp_frame_unwind)
7409 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7410 (hppa_hpux_init_abi): Register sigtramp unwinder.
7411 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7412
6d1be3f1
RC
74132004-05-25 Randolph Chung <tausq@debian.org>
7414
7415 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7416 and multiple stack unwinds.
7417 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7418
97c34f65
AC
74192004-05-25 Andrew Cagney <cagney@gnu.org>
7420
7421 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7422 * symfile-mem.h: Delete file.
7423 * symfile-mem.c: Do not include "symfile-mem.h".
7424 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7425 "struct bfd_section". When an error do not bother returning NULL.
7426 (add_symbol_file_from_memory_command): Use "struct bfd" and
7427 "struct bfd_section".
7428 * Makefile.in (symfile_mem_h): Delete.
7429 (symfile-mem.o): Update dependencies.
7430
e23cbd82
NR
74312004-05-25 Nick Roberts <nickrob@gnu.org>
7432
7433 * gdb-mi.el: New file.
7434
20d2ca3e
AC
74352004-05-25 Andrew Cagney <cagney@gnu.org>
7436
7437 * inftarg.c: Include "observer.h".
7438 (child_attach, child_create_inferior): Notify inferior_created.
7439 * corelow.c: Include "observer.h".
7440 (core_open): Notify inferior_created.
7441 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7442
c27cda74
AC
74432004-05-25 Andrew Cagney <cagney@gnu.org>
7444
7445 * target.h (struct target_ops): Add from_tty to
7446 to_create_inferior.
7447 (target_create_inferior, find_default_create_inferior): Update.
7448 * infcmd.c (run_command): Update.
7449 * wince.c (child_create_inferior): Update.
7450 * win32-nat.c (child_create_inferior): Update.
7451 * uw-thread.c (uw_thread_create_inferior): Update.
7452 * thread-db.c (thread_db_create_inferior): Update.
7453 * target.c (debug_to_create_inferior)
7454 (find_default_create_inferior): Update.
7455 (maybe_kill_then_create_inferior): Update.
7456 * sol-thread.c (sol_thread_create_inferior): Update.
7457 * remote.c (extended_remote_async_create_inferior)
7458 (extended_remote_create_inferior): Update.
7459 * remote-vx.c (vx_create_inferior): Update.
7460 * remote-st.c (st2000_create_inferior): Update.
7461 * remote-sim.c (gdbsim_create_inferior): Update.
7462 * remote-sds.c (sds_create_inferior): Update.
7463 * remote-rdp.c (remote_rdp_create_inferior): Update.
7464 * remote-rdi.c (arm_rdi_create_inferior): Update.
7465 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7466 * remote-e7000.c (e7000_create_inferior): Update.
7467 * procfs.c (procfs_create_inferior): Update.
7468 * ocd.c (ocd_create_inferior): Update.
7469 * ocd.h (ocd_create_inferior): Update.
7470 * nto-procfs.c (procfs_create_inferior): Update.
7471 * monitor.c (monitor_create_inferior): Update.
7472 * lin-lwp.c (lin_lwp_create_inferior): Update.
7473 * inftarg.c (child_create_inferior): Update.
7474 * hpux-thread.c (hpux_thread_create_inferior): Update.
7475 * gnu-nat.c (gnu_create_inferior): Update.
7476
1db2a798
AC
74772004-05-25 Andrew Cagney <cagney@gnu.com>
7478
7479 * MAINTAINERS: Update e-mail address.
7480
007d08bb
RC
74812004-05-24 Randolph Chung <tausq@debian.org>
7482
7483 * thread.c (info_threads_command, thread_apply_all_command)
7484 (thread_apply_command, thread_command, do_captured_thread_select):
7485 Remove HPUXHPPA-specific code.
7486
69e7b95e
RC
74872004-05-24 Randolph Chung <tausq@debian.org>
7488
7489 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7490 unused symbols.
7491 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7492 references.
7493
a4d5f2e0
JB
74942004-05-24 Joel Brobecker <brobecker@gnat.com>
7495
7496 * infcmd.c (kill_if_already_running): New function, extracted
7497 from run_command().
7498 (run_command): Replace extracted code by call to
7499 kill_if_already_running().
7500 (start_command): New function.
7501 (_initialize_infcmd): Add "start" command.
7502
bf2ca189
MK
75032004-05-24 Mark Kettenis <kettenis@gnu.org>
7504
7505 Add OpenBSD/m88k support.
7506 * NEWS (New native configurations): Mention OpenBSD/m88k.
7507 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7508 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7509 * Makefile.in (m88k_tdep_h): New variable.
7510 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7511 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7512 * configure.host: Add m88*-*-openbsd*.
7513 * configure.tgt: Add m88*-*-openbsd*.
7514
80fadb11
JB
75152004-05-24 Jim Blandy <jimb@redhat.com>
7516
7517 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7518 to approve changes.
7519
19e2d14b
KB
75202004-05-24 Kevin Buettner <kevinb@redhat.com>
7521
7522 * symtab.c (fixup_section): Search section table when lookup by
7523 name fails.
7524
1b07b470
RC
75252004-05-24 Randolph Chung <tausq@debian.org>
7526
7527 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7528 be "small_struct".
7529
368702b1
MK
75302004-05-24 Mark Kettenis <kettenis@gnu.org>
7531
5df97fde
MK
7532 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7533 register number in regcache_raw_collect call.
7534 (m68kbsd_collect_fpregset): Likewise.
7535 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7536
368702b1
MK
7537 * regset.h (struct regset): Add back `regset' member.
7538
a770d4ec
MK
75392004-05-23 Mark Kettenis <kettenis@gnu.org>
7540
70f9f479
MK
7541 * configure.in: Check for td_pcb in `struct thread'.
7542 * configure, config.in: Regenerated.
7543
2e16d79e
MK
7544 * dpx2-nat.c: Remove file.
7545 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7546 (dpx2-nat.o): Remove dependencies.
7547
492cf391
MK
7548 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7549 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7550 (amd64obsd_supply_pcb): New function.
7551 (_initialize_amd64obsd_nat): Enable libkvm interface.
7552 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7553 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7554 (LOADLIBES): New variable.
7555
a770d4ec
MK
7556 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7557 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7558 (sparc32nbsd_supply_pcb): New function.
7559 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7560 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7561 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7562 (LOADLIBES): New variable.
7563
9ea75c57
MK
75642004-05-22 Mark Kettenis <kettenis@gnu.org>
7565
2e0c3539
MK
7566 * bsd-kvm.c, bsd-kvm.h: New files.
7567 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7568 "bsd-kvm.h".
7569 (i386fbsd_supply_pcb): New function.
7570 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7571 (i386fbsd-nat.o): Update dependencies.
7572 (bsd_kvm_h): New variable.
7573 (bsd-kvm.o): New dependency.
7574 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7575 (LOADLIBES): New variable.
7576
9ea75c57
MK
7577 * regset.c: Tweak comment.
7578 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7579 macro.
7580 * regset.h: Update copyright year.
7581 (struct regset): Remove `descr' member, add `gdbarch' member.
7582 (regset_alloc): Adjust prototype and comment.
7583 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7584 (i386_supply_fpregset): Likewise.
7585 (i386_regset_from_core_section): Update call to regset_alloc.
7586 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7587 REGSET->arch.
7588 (i386obsd_aout_regset_from_core_section): Update call to
7589 regset_alloc.
7590 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7591 REGSET->arch.
7592 (i386nbsd_aout_regset_from_core_section): Update call to
7593 regset_alloc.
7594 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7595 REGSET->arch.
7596 (amd64_regset_from_core_section): Update call to regset_alloc.
7597 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7598 REGSET->arch.
7599 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7600 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7601 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7602 (sparc32nbsd_init_abi): Update call to regset_alloc.
7603 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7604 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7605 (sparc64obsd_init_abi): Update call to regset_alloc.
7606 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7607 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7608 (sparc64nbsd_init_abi): Update call to regset_alloc.
7609 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7610 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7611 (sparc64fbsd_init_abi): Update call to regset_alloc.
7612
867e2dc5
JB
76132004-05-22 Jim Blandy <jimb@redhat.com>
7614
7615 * ppc-tdep.h (spe_register_p): New declaration.
7616 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7617 ppc_spefscr_regnum.
7618 * rs6000-tdep.c (spe_register_p): New function.
7619 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7620 spefscr.
7621 (rs6000_gdbarch_init): Initialize the new members of the tdep
7622 structure.
7623
617a4cba
JB
76242004-05-21 Jim Blandy <jimb@redhat.com>
7625
0397dee1
JB
7626 * ppc-linux-nat.c (fetch_register): Move code back to be next
7627 to the comment that describes it. (Moved code, instead of
7628 comment, for symmetry with store_register.)
7629
617a4cba
JB
7630 Allocate regset structures in the gdbarch's obstack, not using
7631 xmalloc.
7632 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7633 Add 'arch' argument. Allocate the regset on arch's obstack, not
7634 using xmalloc.
7635 * regset.h (regset_alloc): Update declaration.
7636 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7637 gdbarch argument.
7638 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7639 * i386-tdep.c (i386_regset_from_core_section): Same.
7640 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7641 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7642 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7643 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7644 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7645 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7646
9aa3914d
JB
76472004-05-21 Joel Brobecker <brobecker@gnat.com>
7648
7649 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7650
99c87dab
JB
76512004-05-21 Jim Blandy <jimb@redhat.com>
7652
7653 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7654 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7655
c2b6b4aa
JB
76562004-05-20 Jim Blandy <jimb@redhat.com>
7657
7658 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7659
144529d0
MK
76602004-05-20 Mark Kettenis <kettenis@gnu.org>
7661
7662 * regset.h: Make prototype const-correct.
7663 * regset.c (regset_xmalloc): Make const-correct.
7664
4725b721
PH
76652004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7666
7667 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7668 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7669 (symbol_search_name): Declare.
7670
7671 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7672 (iter_name_next_hashed): Ditto.
7673 (iter_name_next_linear): Ditto.
7674 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7675
7676 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7677 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7678 (symbol_search_name): New function.
7679
7680 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7681
7682 * minsyms.c (build_minimal_symbol_hash_tables): Change
7683 test for adding to demangled hash table to check for difference
7684 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7685
be07a590
JB
76862004-05-19 Jim Blandy <jimb@redhat.com>
7687
7688 Use a constructor function to create regset structures.
7689 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7690 (struct regset): Use supply_regset_ftype. Add new
7691 'collect_regset' member.
7692 (regset_xmalloc): New declaration.
7693 * regset.c: New file.
7694 * am64-tdep.c (amd64_regset_from_core_section): Use
7695 regset_xmalloc to construct regset structures.
7696 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7697 * i386-tdep.c (i386_regset_from_core_section): Same.
7698 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7699 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7700 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7701 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7702 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7703 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7704 * Makefile.in (COMMON_OBS): Add regset.o.
7705 (regset.o): New rule.
7706
604368f5
JB
77072004-05-19 Joel Brobecker <brobecker@gnat.com>
7708
7709 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7710 and pthread_cond_wait.c.
7711
82d69f8b
JB
77122004-05-18 Jim Blandy <jimb@redhat.com>
7713
7714 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7715 before the mach-specific switch, and then let the individual cases
7716 override the defaults, rather than leaving them uninitialized
7717 until the switch and then setting them in each case.
7718
5859efe5
RC
77192004-05-18 Randolph Chung <tausq@debian.org>
7720
7721 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7722 millicode functions.
7723
9ca80cf8
RC
77242004-05-18 Randolph Chung <tausq@debian.org>
7725
7726 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7727 references to dld_flags_buffer consistent.
7728
ed70ba00
RC
77292004-05-18 Randolph Chung <tausq@debian.org>
7730
7731 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7732 it for unwinding the stack.
7733
63100632
RC
77342004-05-18 Randolph Chung <tausq@debian.org>
7735
7736 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7737 Undefine these so we can overide them using gdbarch.
7738
090ccbb7
RC
77392004-05-18 Randolph Chung <tausq@debian.org>
7740
7741 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7742 handling for 64-bit HPUX (elf).
7743
594706e6
DJ
77442004-05-18 Daniel Jacobowitz <dan@debian.org>
7745
7746 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7747 constants.
7748 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7749 * ia64-tdep.c (examine_prologue): Likewise.
7750 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7751 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7752
e5483145
MK
77532004-05-18 Mark Kettenis <kettenis@gnu.org>
7754
7755 * vax-tdep.c (vax_return_value): Implement
7756 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7757
caed1a45
MK
77582004-05-17 Mark Kettenis <kettenis@gnu.org>
7759
7760 * vax-tdep.c (vax_return_value): Fix typo.
7761
3c0b7db2
AC
77622004-05-17 Andrew Cagney <cagney@redhat.com>
7763
5aae53e5
AC
7764 * MAINTAINERS: Mark Salter was also responsible for
7765 testsuite/config/
7766
3c0b7db2
AC
7767 * NEWS: Mention signal fixes.
7768
22b0923d
RC
77692004-05-17 Randolph Chung <tausq@debian.org>
7770
7771 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7772 check to see if we are unwinding an export stub. Export stubs clobber
7773 the %rp in the call path and stores the original rp in a stack slot.
7774
22f2b2f3
JB
77752004-05-17 Jim Blandy <jimb@redhat.com>
7776
7777 * MAINTAINERS: Update address for J.T. Conklin.
7778
cea96d64
RC
77792004-05-17 Randolph Chung <tausq@debian.org>
7780
7781 * hppa-tdep.c: Remove superfluous #include's.
7782 * Makefile.in (hppa-tdep.o): Update dependencies.
7783
f08f6a4a
RC
77842004-05-17 Randolph Chung <tausq@debian.org>
7785
7786 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7787 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7788 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7789 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7790 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7791 Remove static function declarations.
7792
51da707a
MK
77932004-05-17 Mark Kettenis <kettenis@gnu.org>
7794
caed1a45
MK
7795 * alphabsd-nat.c: Update copyright year.
7796 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7797
c0c2b0db
MK
7798 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7799 and M68K_A2_REGNUM.
7800
51da707a
MK
7801 * m68k-tdep.c (m68k_svr4_return_value): Implement
7802 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7803
8d027a04
MK
78042004-05-16 Mark Kettenis <kettenis@gnu.org>
7805
7806 * sol-thread.c Update copyright year. Fix various coding
7807 standards violations. Tweak a few comments.
7808 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7809 Delete prototypes.
7810
0d99fdb9
RC
78112004-05-15 Randolph Chung <tausq@debian.org>
7812
7813 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7814 as pointer instead of array reference since HPUX compiler does
7815 not accept unsized array arguments.
7816 * somsolib.c (dld_flags_buffer): Use constant array size.
7817
f7e3843a
MK
78182004-05-15 Mark Kettenis <kettenis@gnu.org>
7819
0fe85704
MK
7820 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7821 offset with decimal offset.
7822 (amd64obsd_sigcontext_addr): Return correct address for entire
7823 signal trampoline.
7824
a54f9a00
MK
7825 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7826 instead of get_frame_base.
7827
feae6502
MK
7828 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7829 (fill_gregset): Use regcache_raw_collect.
7830
0382d099
MK
7831 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7832 ppcobsd-tdep.c.
7833
f7e3843a
MK
7834 * config/sparc/tm-nbsd64.h: Remove file.
7835 * config/tm-sunos.h: Remove file.
7836
773df3e5
JB
78372004-05-15 Joel Brobecker <brobecker@gnat.com>
7838
7839 * rs6000-tdep.c (store_param_on_stack_p): New function,
7840 an improved version of some code extracted from skip_prologue().
7841 (skip_prologue): Use store_param_on_stack_p() to detect
7842 instructions saving a parameter on the stack. Detect when r0
7843 is used to save a parameter.
7844 Do not mark "li rx, SIMM" instructions as part of the prologue,
7845 unless the following instruction is also part of the prologue.
7846
95918acb
AC
78472004-05-14 Andrew Cagney <cagney@redhat.com>
7848
06f32659
AC
7849 * infrun.c (handle_inferior_event): Simplify
7850 STEP_OVER_UNDEBUGGABLE.
7851
95918acb
AC
7852 * infrun.c (handle_step_into_function): Delete function.
7853 (handle_inferior_event): Inline calls to
7854 handle_step_into_function.
7855
40711ff1 78562004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
7857
7858 * rs6000-nat.c: Fix a comment.
7859
02f60eae
JB
78602004-05-12 David Anderson <davea@sgi.com>
7861
7862 Committed by Jim Blandy <jimb@redhat.com>:
7863 * regcache.c (struct regcache_descr): fix comment spelling.
7864
552e377b
JB
78652004-05-13 J. Brobecker <brobecker@gnat.com>
7866
7867 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7868 Fixes a link link failure.
7869
349766b2
JB
78702004-05-13 J. Brobecker <brobecker@gnat.com>
7871
7872 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7873 error that was causing the build to fail.
7874
0d4d5484
JB
78752004-05-13 J. Brobecker <brobecker@gnat.com>
7876
7877 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7878 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7879
0b30808c
AC
78802004-05-13 Andrew Cagney <cagney@redhat.com>
7881
7882 * infrun.c (handle_inferior_event): Check for
7883 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7884 calls. Update comments.
7885
cdf2c5f5
JB
78862004-05-13 Jim Blandy <jimb@redhat.com>
7887
063715bf
JB
7888 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7889 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7890 (store_regs_user_thread, store_regs_kernel_thread): Use
7891 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7892 * ppc-linux-nat.c (fill_gregset): Same.
7893 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7894 (ppc_linux_sigtramp_cache): Same.
7895 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7896 (ppcnbsd_sigtramp_cache_init): Same.
7897 * rs6000-nat.c (fetch_core_registers): Same.
7898 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7899 (rs6000_frame_cache): Same.
7900
cdf2c5f5
JB
7901 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7902 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7903 of assuming that the gprs are numbered starting with zero.
7904 * ppc-linux-nat.c (fill_gregset): Same.
7905 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7906 * ppcnbsd-nat.c (getregs_supplies): Same.
7907 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7908 * rs6000-nat.c (fetch_core_registers): Same.
7909 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7910
450bd37b
MS
79112004-05-07 Michael Snyder <msnyder@redhat.com>
7912
7913 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7914 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7915
4a72a2a6
AC
79162004-05-13 Andrew Cagney <cagney@redhat.com>
7917
7918 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7919
8edfa926
BM
79202004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7921
7922 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7923 base_address for shared libraries.
7924
723e0e3d
BM
79252004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7926
7927 * MAINTAINERS (write after approval): Add myself.
7928
00d4360e
UW
79292004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7930
7931 * breakpoint.c (bpstat_stop_status): Add new argument
7932 STOPPED_BY_WATCHPOINT. Use it instead of testing
7933 target_stopped_data_address agaist 0 to check whether
7934 or not we stopped due to a hardware watchpoint.
7935 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7936 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7937 with new argument.
7938
ec76baa5
JB
79392004-05-12 Jim Blandy <jimb@redhat.com>
7940
7941 * configure.in: When checking whether we should use the -bbigtoc
7942 option, don't forget to restore the original value of LDFLAGS.
7943 * configure: Regenerated.
7944
f2c9ca08
AC
79452004-05-12 Andrew Cagney <cagney@redhat.com>
7946
7947 * thread.c (load_infrun_state): Delete step_sp.
7948 * infrun.c (context_switch): Ditto.
7949 * inferior.h (step_sp): Ditto.
7950 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7951 * gdbthread.h (struct thread_info, save_infrun_state)
7952 (restore_infrun_state): Ditto.
7953
090ddb2a
UW
79542004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7955
7956 * MAINTAINERS (write after approval): Add myself.
7957
8aad930b
AC
79582004-05-12 Andrew Cagney <cagney@redhat.com>
7959
7960 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7961 eliminate reference to step_sp.
7962 (struct execution_control_state, init_execution_control_state)
7963 (handle_inferior_event, keep_going): Delete update_step_sp and
7964 step_sp.
7965 * infcmd.c (step_sp): Note that variable is unused.
7966
922d5ae0
AC
79672004-05-11 Andrew Cagney <cagney@redhat.com>
7968
7969 * infrun.c (step_over_function): Delete function.
7970 (handle_step_into_function): Use insert_step_resume_breakpoint.
7971 (insert_step_resume_breakpoint): Fix assertion.
7972
017c5ca5
NR
79732004-05-11 Nick Roberts <nickrob@gnu.org>
7974
7975 * utils.c (defaulted_query): Just use the normal query input type
7976 when printing the annotations.
7977
42edda50
AC
79782004-05-11 Andrew Cagney <cagney@redhat.com>
7979
7980 * infrun.c (handle_inferior_event): Simplify code handling
7981 step-into or return-from a signal trampoline.
7982
d28b44a7
AC
79832004-05-11 Andrew Cagney <cagney@redhat.com>
7984
7985 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7986 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7987
383f0f5b
JB
79882004-05-10 Jim Blandy <jimb@redhat.com>
7989
d0b57c3a
JB
7990 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7991 with a call to internal_error.
7992
383f0f5b
JB
7993 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7994 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7995 processor variant lacks those registers.
7996 (ppc_floating_point_unit_p): Change description to make it clear
7997 that this returns info about the ISA, not the ABI.
7998 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7999 return true or false by checking tdep->ppc_fp0_regnum and
8000 tdep->ppc_fpscr_regnum. The original code replicated the BFD
8001 arch/mach switching done in rs6000_gdbarch_init; it's better to
8002 keep that logic there, and just check the results here.
8003 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
8004 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
8005 floating-point registers.
8006 (ppc_supply_fpregset, ppc_collect_fpregset)
8007 (rs6000_push_dummy_call, rs6000_extract_return_value)
8008 (rs6000_store_return_value): Assert that we have floating-point
8009 registers.
8010 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
8011 (rs6000_frame_cache): Don't note the locations at which
8012 floating-point registers were saved if we have no fprs.
8013 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
8014 registers.
8015 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8016 (store_regs_user_thread, store_regs_kernel_thread): Only call
8017 supply_fprs / fill_fprs if we actually have floating-point
8018 registers.
8019 (special_register_p): Check ppc_fpscr_regnum before matching
8020 against it.
8021 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
8022 supply / collect fpscr if we don't have it.
8023 * ppc-bdm.c: #include "gdb_assert.h".
8024 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
8025 have floating-point registers, since I can't test this code on
8026 FP-free systems to adapt it.
8027 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
8028 fpscr and floating point register numbers if they don't exist.
8029 (fetch_register): Assert that we have floating-point registers
8030 before we reach the code that handles them.
8031 (store_register): Same. And use tdep instead of calling
8032 gdbarch_tdep again.
8033 (fill_fpregset): Don't try to collect FP registers and fpscr if we
8034 don't have them.
8035 (ppc_linux_sigtramp_cache): Don't record the saved locations of
8036 fprs and fpscr if we don't have them.
8037 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
8038 don't have them.
8039 * ppcnbsd-nat.c: #include "gdb_assert.h".
8040 (getfpregs_supplies): Assert that we have floating-point registers.
8041 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
8042 * ppcobsd-tdep.c: #include "gdb_assert.h".
8043 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
8044 have floating-point registers.
8045 * rs6000-nat.c (regmap): Don't match against the fpscr and
8046 floating point register numbers if they don't exist.
8047 (fetch_inferior_registers, store_inferior_registers,
8048 fetch_core_registers): Only fetch / store / supply the
8049 floating-point registers and the fpscr if we have them.
8050 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
8051 (ppcobsd-tdep.o): Update dependencies.
8052
15960608
AC
80532004-05-10 Andrew Cagney <cagney@redhat.com>
8054
8055 * infrun.c (through_sigtramp_breakpoint): Delete variable.
8056 (context_switch): Do not switch through_sigtramp_breakpoint.
8057 * gdbthread.h (save_infrun_state, load_infrun_state)
8058 (struct thread_info): Delete through_sigtramp_breakpoint parameter
8059 and structure member.
8060 * thread.c (load_infrun_state, save_infrun_state): Update.
8061
5ab5aa0f
MK
80622004-05-10 Mark Kettenis <kettenis@gnu.org>
8063
8064 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
8065
da78b0e7
DJ
80662004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8067
8068 * acinclude.m4: Quote macro names being defined by AC_DEFUN
8069 throughout.
8070 * aclocal.m4: Regenerate.
8071
cca0d3b0
NW
80722004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
8073
8074 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
8075
d303a6c7
AC
80762004-05-10 Andrew Cagney <cagney@redhat.com>
8077
8078 * infrun.c (check_sigtramp2): Delete function.
8079 (handle_inferior_event): When single stepping, and taking a
8080 signal, set a breakpoint at the signal return address. Delete
8081 redundant calls to check_sigtramp2.
8082 (insert_step_resume_breakpoint): New function.
8083 (through_sigtramp_breakpoint, handle_inferior_event)
8084 (follow_exec, wait_for_inferior, fetch_inferior_event)
8085 (currently_stepping, keep_going): Delete most uses of
8086 through_sigtramp_breakpoint, not that it should be deleted.
8087 (delete_breakpoint_current_contents): Delete function.
8088
03f4cc20
RC
80892004-05-10 Randolph Chung <tausq@debian.org>
8090
8091 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
8092 target.
8093 * config/pa/tm-linux.h: New file.
8094
37fc812e
DJ
80952004-05-10 Daniel Jacobowitz <drow@mvista.com>
8096
8097 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
8098 of prefixes. Don't print the prefix twice in the CLI.
8099
26c0b942
JB
81002004-05-10 Jim Blandy <jimb@redhat.com>
8101
2e56e9c1
JB
8102 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
8103 collect all the gprs.
8104
26c0b942
JB
8105 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
8106 loop collecting gprs.
8107
dc497459
AC
81082004-05-09 Andrew Cagney <cagney@redhat.com>
8109
8110 * remote-vx.c (net_step): Delete step-range code.
8111 * remote.c (remote_resume, init_all_packet_configs)
8112 (set_remote_protocol_E_packet_cmd)
8113 (show_remote_protocol_E_packet_cmd)
8114 (remote_protocol_E, show_remote_cmd, _initialize_remote)
8115 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
8116 (show_remote_protocol_e_packet_cmd): Ditto.
8117
0543f387
MK
81182004-05-09 Mark Kettenis <kettenis@gnu.org>
8119
c481d1ca
MK
8120 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
8121
f626a069
MK
8122 * hppa-tdep.h: Update copyright year.
8123 (struct trad_frame_saved_reg): Add opaque declaration.
8124
6fa57a7d
MK
8125 * amd64-tdep.c (amd64_return_value): Implement
8126 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8127
e47577ab
MK
8128 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
8129 (m68k_value_to_register): New functions.
8130 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
8131 value_to_register.
8132
31db7b6c
MK
8133 * defs.h (enum return_value_convention): Add
8134 RETURN_VALUE_ABI_RETURNS_ADDRESS and
8135 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8136 * infcmd.c (legacy_return_value): New function.
8137 (print_return_value): Rwerite to implement
8138 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8139 * values.c (using_struct_return): Check for inequality to
8140 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8141 RETURN_VALUE_STRUCT_CONVENTION.
8142 * i386-tdep.c (i386_return_value): Implement
8143 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8144
0543f387
MK
8145 * vax-tdep.c: Tweak comments. Reorder include files. Don't
8146 include "symtab.h", "opcode/vax.h" and "inferior.h".
8147 (vax_skip_prologue): Replace calls to read_memory_integer by calls
8148 to read_memory_unsigned_integer.
8149 (vax_gdbarch_init): Reorder.
8150 (_initialize_vax_tdep): Spell out prototype.
8151 * Makefile.in (vax-tdep.o): Update dependencies.
8152
0c93b7b6
AC
81532004-05-08 Andrew Cagney <cagney@redhat.com>
8154
e6b55ae2
AC
8155 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8156 * target.c (target_detach, target_disconnect): Ditto.
8157
1ac839b8
AC
8158 * infcall.c (call_function_by_hand): When no
8159 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8160 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8161 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8162 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8163 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8164
28954179
AC
8165 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8166 * gdbarch.h, gdbarch.c: Re-generate.
8167 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8168 deprecated_fix_call_dummy.
8169 * v850-tdep.c (v850_gdbarch_init): Ditto.
8170 * infcall.c (call_function_by_hand): Do not call
8171 DEPRECATED_FIX_CALL_DUMMY.
8172
434b87dd
AC
8173 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8174 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8175 * gdbarch.h, gdbarch.c: Re-generate.
8176 * arm-linux-tdep.c (arm_linux_call_dummy_words)
8177 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8178 deprecated_sizeof_call_dummy_words.
8179 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8180 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8181 * v850-tdep.c (v850_gdbarch_init): Ditto.
8182 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8183 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8184 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8185 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8186 * arch-utils.h (legacy_call_dummy_words)
8187 (legacy_sizeof_call_dummy_words): Delete declarations.
8188 * arch-utils.c (legacy_call_dummy_words)
8189 (legacy_sizeof_call_dummy_words): Delete variables.
8190
58d28df8
AC
8191 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8192 * gdbarch.h, gdbarch.c: Re-generate.
8193 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8194 * infcall.c (call_function_by_hand): Eliminate call to
8195 DEPRECATED_PUSH_DUMMY_FRAME.
8196 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8197 push_dummy_frame.
8198 (ns32k_push_dummy_frame): Delete function.
8199
e4a2df64
AC
8200 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8201 deprecated_call_dummy_breakpoint_offset or
8202 deprecated_call_dummy_start_offset.
8203 * dummy-frame.c, arm-tdep.c: Update comments.
8204 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8205 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8206 * gdbarch.h, gdbarch.c: Re-generate.
8207
d3712828
AC
8208 * infcall.c (legacy_push_dummy_code): Delete function.
8209 (push_dummy_code): Delete call.
8210
7a882905
AC
8211 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8212 * gdbarch.h, gdbarch.c: Re-generate.
8213 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8214 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8215 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8216 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8217
0ec5872b
AC
8218 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8219 (struct frame_info): Delete opaque declaration.
8220 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8221 * frame.c (get_frame_type): Delete call.
8222
0c93b7b6
AC
8223 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8224 pc_in_call_dummy.
8225 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8226 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8227
75536971
MK
82282004-05-08 Mark Kettenis <kettenis@gnu.org>
8229
527ca6bb
MK
8230 * alphanbsd-tdep.c: Include "gdb_string.h".
8231 * armnbsd-tdep.c: Update copyright year.
8232 Include "gdb_string.h".
8233 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8234 dependencies.
8235
d39fdc61
MK
8236 * delta68-nat.c: Remove file.
8237 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8238 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8239 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8240 (delta68-nat.o): Remove dependency.
8241
75536971
MK
8242 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8243 function.
8244 (m68k_gdbarch_init): Don't set
8245 deprecated_frameless_function_invocation.
8246
f4ca1d1f
RC
82472004-05-07 Randolph Chung <tausq@debian.org>
8248
8249 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8250 read_memory_nobpt for code reading when doing frame unwinding.
8251 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8252
2f0e8c7a
RC
82532004-05-07 Randolph Chung <tausq@debian.org>
8254
8255 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8256 instead of sp, handle sigaltstack case.
8257 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8258 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8259 signal handler and not that of the caller.
8260 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8261 hppa_linux_sigtramp_find_sigcontext.
8262
959464ff
RC
82632004-05-07 Randolph Chung <tausq@debian.org>
8264
8265 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8266 hppa-linux-nat.c.
8267 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8268 * hppa-linux-nat.c (fetch_register, store_register): Define.
8269 (fetch_inferior_registers, store_inferior_registers): Define.
8270 (supply_gregset): Add comment and clean up some unneeded code.
8271 (fill_gregset): Add comment and fix so that it saves registers in
8272 the right place in the gregset.
8273 (fill_fpregset): Fix buffer overrun problem.
8274 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8275
0da28f8a
RC
82762004-05-07 Randolph Chung <tausq@debian.org>
8277
8278 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8279 do common handling of the pcoqt register.
8280 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8281 to use helper function.
8282 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8283 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8284 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8285 generic fallback unwinder when all else fails.
8286 (hppa_gdbarch_init): Add fallback sniffer.
8287 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8288 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8289 to use helper function.
8290
b9ec757a
JB
82912004-05-08 Joel Brobecker <brobecker@gnat.com>
8292
8293 * config/djgpp/fnchange.lst: Add translation rules for
8294 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8295
756e95f1
MK
82962004-05-08 Mark Kettenis <kettenis@gnu.org>
8297
8298 * frame.c (get_prev_frame_1): Work around GCC bug.
8299 * frame.h: Add comment about GCC bug.
8300
2b4855ab
AC
83012004-05-07 Andrew Cagney <cagney@redhat.com>
8302
8303 * observer.c: Include "commands.h" and "gdbcmd.h".
8304 (observer_debug, _initialize_observer): Add the
8305 command "set/show debug observer".
8306 * observer.sh: When observer debugging, log notify calls.
8307 * Makefile.in (observer.o): Update dependencies.
8308
ba3e8e46
JM
83092004-05-07 Jason Molenda (jmolenda@apple.com)
8310
8311 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8312
16796152
JB
83132004-05-07 Jim Blandy <jimb@redhat.com>
8314
daf6dc85
JB
8315 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8316 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8317 to recognize gpr regnums, instead of assuming that
8318 tdep->ppc_fp0_regnum marks the end of the general-purpose
8319 registers.
8320
16796152
JB
8321 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8322 the given architecture has floating-point registers.
8323
c69b8bfc
AC
83242004-05-07 Andrew Cagney <cagney@redhat.com>
8325
8326 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8327 macro defined to 1.
8328 * gdbarch.h, gdbarch.c: Re-generate.
8329 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8330 deprecated_use_generic_dummy_frames.
8331
7243600a
BF
83322004-05-07 Brian Ford <ford@vss.fsi.com>
8333
8334 * NEWS: Mention Cygwin DWARF 2 support.
8335
73c1e0a1
AC
83362004-05-07 Andrew Cagney <cagney@redhat.com>
8337
8338 * objfiles.h (struct entry_info): Delete unused fields
8339 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8340 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8341 * mipsread.c (mipscoff_symfile_read): Update.
8342 * mdebugread.c (parse_partial_symbols): Update.
8343 * dwarfread.c (read_file_scope): Update.
8344 * dwarf2read.c (read_file_scope): Update.
8345 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8346 * coffread.c (complete_symtab): Update.
8347
1d3056ac
MK
83482004-05-07 Mark Kettenis <kettenis@gnu.org>
8349
8350 * infcall.c (_initialize_infcall): Fix typo.
8351
15170568
AC
83522004-05-07 Andrew Cagney <cagney@redhat.com>
8353
8354 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8355 * command.h (add_setshow_zinteger_cmd): Declare.
8356
34f75cc1
RC
83572004-05-06 Randolph Chung <tausq@debian.org>
8358
8359 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8360 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8361 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8362 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8363 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8364 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8365 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8366 definitions ...
8367 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8368 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8369 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8370 (hppa64_hpux_frame_find_saved_regs_in_sig)
8371 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8372 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8373 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8374 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8375 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8376 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8377 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8378 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8379 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8380 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8381 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8382 (hppa32_register_type, hppa_cannot_store_register)
8383 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8384 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8385 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8386 * pa64solib.c (pa64_solib_have_load_event)
8387 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8388 (pa64_solib_unloaded_library_pathname): Likewise.
8389 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8390 (som_solib_library_pathname): Likewise.
8391
0a5e7efe
JI
83922004-05-05 Jim Ingham <jingham@apple.com>
8393
8394 * breakpoint.c (create_breakpoints): Copy the ignore count and
8395 thread id over from the pended breakpoint to the actual
8396 breakpoint.
8397
10a4b113
AC
83982004-05-05 Andrew Cagney <cagney@redhat.com>
8399
8400 * gdbarch.sh (PARM_BOUNDARY): Delete.
8401 gdbarch.h, gdbarch.c: Re-generate.
8402 * valops.c (PARM_BOUNDARY): Delete macro.
8403 (value_push): Delete PARM_BOUNDARY code.
8404 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8405
366f009f
JB
84062004-05-04 Jim Blandy <jimb@redhat.com>
8407
32b99774
JB
8408 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8409 Don't assume that the gprs, fprs, and UISA sprs are
8410 contiguous, start at register number zero, and end with fpscr.
8411 Instead, use the numbers from the tdep structure.
8412
366f009f
JB
8413 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8414 should no longer be used in code specific to the RS6000 and its
8415 derivatives.
8416 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8417 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8418 tdep->ppc_fp0_regnum.
8419 (ppc_supply_fpregset, ppc_collect_fpregset)
8420 (rs6000_push_dummy_call, rs6000_extract_return_value)
8421 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8422 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8423 FP0_REGNUM.
8424 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8425 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8426 Same.
8427 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8428 bdm_ppc_store_registers): Same.
8429 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8430 (store_register, fill_fpregset): Same.
8431 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8432 (ppc_linux_supply_fpregset): Same.
8433 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8434 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8435 Same.
8436 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8437 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8438 ppc64_sysv_abi_return_value): Same.
8439 * rs6000-nat.c (regmap, fetch_inferior_registers)
8440 (store_inferior_registers, fetch_core_registers): Same.
8441
827f338d
MK
84422004-05-01 Mark Kettenis <kettenis@gnu.org>
8443
8444 * m68knbsd-nat.c: Remove file.
8445 * m68knbsd-tdep.c: Remove file.
8446 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8447 dependencies.
8448 * configure.host: Add m68k-*-netbsdelf*.
8449 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8450 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8451 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8452 (XM_FILE): Remove.
8453 * config/m68k/nbsdelf.mh: New file.
8454 * config/m68k/nbsd.mt: New file.
8455 * config/m68k/nbsdaout.mt: Remove file.
8456 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8457 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8458 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8459 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8460 (use_struct_convention): Remove prototype.
8461 (USE_STRUCT_CONVENTION): Remove define.
8462 * config/m68k/xm-nbsd.h: Remove file.
8463
66894781
MS
84642004-05-04 Michael Snyder <msnyder@redhat.com>
8465
8466 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8467 reg_struct_return method (as gcc usually does for cross targets).
8468
f0f63663
AC
84692004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8470
8471 Committed by Andrew Cagney.
8472 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8473 alignment padding when accessing ucontext struct members.
8474
edf61169
JB
84752004-05-04 Jim Blandy <jimb@redhat.com>
8476
8bf659e8
JB
8477 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8478 'ppc_gplast_regnum' member.
8479 (ppc_num_gprs): New enum constant.
8480 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8481 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8482 * rs6000-nat.c (regmap, fetch_inferior_registers,
8483 store_inferior_registers): Same.
8484 * rs6000-tdep.c (e500_pseudo_register_read)
8485 (e500_pseudo_register_write): Same.
8486 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8487
b967e06f
JB
8488 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8489 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8490 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8491 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8492 FPLAST_REGNUM.
8493 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8494 Same.
8495 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8496 * rs6000-nat.c (regmap, fetch_inferior_registers)
8497 (store_inferior_registers): Same.
8498
edf61169
JB
8499 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8500 with FPLAST_REGNUM.
8501
58a9656e
JB
85022004-05-03 Joel Brobecker <brobecker@gnat.com>
8503
8504 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8505 failure detected by recent versions of GCC.
8506 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8507 to be consistent with the usage in dwarf2_create_include_psymtab.
8508
dc305454
MS
85092004-05-03 Michael Snyder <msnyder@redhat.com>
8510
8511 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8512 (heuristic_proc_start): Whitespace cleanup.
8513
29972665
MK
85142004-05-04 Mark Kettenis <kettenis@gnu.org>
8515
6b57680d
MK
8516 * sun3-nat.c: Remove file.
8517 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8518 dependencies.
8519 (ALLDEPFILES): Remove sun3-nat.c.
8520 (sun3-nat.o): Remove dependencies.
8521
29972665
MK
8522 * i386-interix-nat.c, i386-interix-tdep.c,
8523 config/i386/nm-interix.h, config/i386/interix.mh,
8524 config/i386/interix.mt: Remove files.
8525 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8526 dependencies.
8527
f595cb19
MK
85282004-05-03 Mark Kettenis <kettenis@gnu.org>
8529
8530 * m68k-tdep.h (struct gdbarch_tdep): Add member
8531 struct_value_regnum.
8532 (m68k_svr4_init_abi): New prototype.
8533 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8534 different calling conventions.
8535 (m68k_extract_return_value): Remove code dealing with single-field
8536 structs.
8537 (m68k_store_return_value): Remove code dealing with single-field
8538 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8539 (m68k_extract_struct_value_address): Remove function.
8540 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8541 (m68k_reg_struct_return_p, m68k_return_value)
8542 (m68k_svr4_return_value): New functions.
8543 (m68k_use_struct_convention): Remove function.
8544 (m68k_push_dummy_call): Use new struct_value_regnum member of
8545 `struct gdbarch_tdep' instead of hardcoded register number to
8546 store STRUCT_ADDR.
8547 (m68k_svr4_init_abi): New function.
8548 (m68k_gdbarch_init): Don't set extract_return_value,
8549 store_return_values, deprecated_extract_struct_value_address and
8550 use_struct_convention. Set return_value instead. Initialize new
8551 struct_value_regnum member of `struct gdbarch_tdep'.
8552 * m68klinux-tdep.c: Update copyright year.
8553 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8554 (m68k_linux_extract_struct_value_address): Remove function.
8555 (m68k_linux_init_abi): Don't set extract_return_value,
8556 store_return_values, deprecated_extract_struct_value_address and
8557 use_struct_convention. Call m68k_svr4_init_abi but override the
8558 new struct_value_regnum member of `struct gdbarch_tdep'.
8559 * Makefile.in (m68k-tdep.o): Update dependencies.
8560
aaa75496
JB
85612004-05-03 J. Brobecker <brobecker@gnat.com>
8562
8563 * dwarf2read.c (line_header): Add new included_p field in
8564 field file_names.
8565 (partial_die_info): New field has_stmt_list. New field line_offset.
8566 (dwarf2_create_include_psymtab): New function.
8567 (dwarf2_build_include_psymtabs): New function.
8568 (add_file_name): Add forward declaration. Initialize new field.
8569 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8570 to be able to determine the list of files included by the
8571 given unit, and build their associated psymtabs.
8572 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8573 files as well.
8574 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8575 (read_file_scope): Update call to dwarf_decode_lines.
8576 (read_partial_die): Handle DW_AT_stmt_list attributes.
8577
c848556f
MC
85782004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8579
8580 Unfix PR gdb/1626.
8581 * configure.in: Revert special case for osf5.*.
8582 * configure: Regenerate.
8583
eb4556d7
JB
85842004-05-02 Jim Blandy <jimb@redhat.com>
8585
8586 Move the symbol-file-from-memory functions into their own file.
8587 * symfile-mem.c, symfile-mem.h: New files.
8588 * symfile.c (symbol_file_add_from_bfd): New function.
8589 (symbol_file_add): Call symbol_file_add_from_bfd.
8590 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8591 Moved to symfile-mem.c.
8592 (_initialize_symfile): Move definition of
8593 add-symbol-file-from-memory command to symfile-mem.c.
8594 * symfile.h (symbol_file_add_from_bfd): New declaration.
8595 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8596 * config/powerpc/linux.mt (TDEPFILES): Same.
8597 * Makefile.in (SFILES): Add symfile-mem.c.
8598 (symfile_mem_h): New variable.
8599 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8600 (symfile-mem.o): New rule.
8601
80bb239e
AC
86022004-05-01 Andrew Cagney <cagney@redhat.com>
8603
7789d0fa
AC
8604 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8605 frame_find_by_id instead of frame_relative_level.
8606 (do_enable_breakpoint): Ditto.
8607 * thread.c: Update copyright.
8608 (info_threads_command): Ditto, simplify.
8609
80bb239e
AC
8610 * frame.c (deprecated_generic_get_saved_register): Delete
8611 function, moved to "xstormy16-tdep.c".
8612 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8613 deprecated_generic_get_saved_register from "frame.c".
8614 (xstormy16_frame_saved_register): Call
8615 xstormy16_get_saved_register.
8616 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8617 static.
8618 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8619 * frame.h (deprecated_generic_get_saved_register): Delete.
8620
b2a871dd
MC
86212004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8622
8623 * dwarfread.c: Update documentation on the state of dwarf-1.
8624
0e100dab
AC
86252004-05-01 Andrew Cagney <cagney@redhat.com>
8626
acd8056e
AC
8627 * stack.c (select_frame_command): Delete call to
8628 frame_relative_level.
8629 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8630 Delete #if0 code.
8631 (frame_info): Do not print FRAMELESS.
8632 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8633 (catch_info): Delete #if0 code.
8634
0e100dab
AC
8635 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8636 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8637 of frame_relative_level.
8638 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8639 to SENTINEL_FRAME.
8640 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8641 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8642 frame_relative_level.
8643
55699d59
AC
8644 * frame.h (deprecated_set_frame_type): Delete declaration.
8645 * frame.c (deprecated_set_frame_type): Delete function, update
8646 comments.
8647
fcf70625
AC
8648 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8649 * gdbarch.h, gdbarch.c: Re-generate.
8650 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8651 (shnbsd_pc_in_sigtramp): Delete.
8652 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8653 pc_in_sigtramp.
8654 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8655 pc_in_sigtramp.
8656 * frame.h: Update comments.
8657 * ppc-linux-tdep.c: Update comments.
8658 * breakpoint.c (bpstat_what): Update comments.
8659
ac5eccb7
AC
8660 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8661 m68klinux-tdep.o's dependencies, were previously added to
8662 m68klinux-nat.o.
8663
f2524b93
AC
8664 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8665 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8666 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8667 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8668 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8669
17e20bce
AC
8670 * Makefile.in (m68klinux-nat.o): Update dependencies.
8671 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8672 (m68k_linux_sigtramp_frame_cache)
8673 (m68k_linux_sigtramp_frame_this_id)
8674 (m68k_linux_sigtramp_frame_prev_register)
8675 (m68k_linux_sigtramp_frame_unwind)
8676 (m68k_linux_sigtramp_frame_sniffer)
8677 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8678 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8679 names, use trad-frame.h.
8680 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8681 (struct m68k_sigtramp_info): Delete.
8682 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8683 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8684 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8685 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8686 "m68klinux-tdep.c".
8687
c8864fa2
AC
8688 * infrun.c (check_sigtramp2): Delete check for
8689 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8690
511dd2cd
MK
86912004-05-01 Mark Kettenis <kettenis@gnu.org>
8692
8693 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8694
8c6b0e06
AC
86952004-05-01 Andrew Cagney <cagney@redhat.com>
8696
9df0bb3f
AC
8697 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8698 (frv_linux_sigtramp_frame_cache)
8699 (frv_linux_sigtramp_frame_this_id)
8700 (frv_linux_sigtramp_frame_prev_register)
8701 (frv_linux_sigtramp_frame_unwind)
8702 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8703 include "linux" in function and variable names, directly call
8704 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8705 the latest trad-frame code.
8706 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8707 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8708 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8709 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8710 * frv-tdep.c (frv_sigtramp_frame_cache)
8711 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8712 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8713 frv-linux-tdep.c.
8714 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8715 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8716 (frv_set_sigcontext_reg_addr): Delete function.
8717
8c6b0e06
AC
8718 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8719 (DEPRECATED_SIGTRAMP_END): Delete.
8720 * gdbarch.h, gdbarch.c: Re-generate.
8721 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8722 * config/vax/tm-vaxbsd.h: Update copyright.
8723 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8724 (DEPRECATED_IN_SIGTRAMP): Define.
8725 * config/m68k/tm-nbsd.h: Update copyright.
8726 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8727 (DEPRECATED_IN_SIGTRAMP): Define.
8728
50ea7769
MK
87292004-05-01 Mark Kettenis <kettenis@gnu.org>
8730
03ac2a74
MK
8731 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8732 encondings. Fixes PR gdb/1628.
8733
50ea7769
MK
8734 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8735 DW_CFA_restore state without a matching DW_CFA_remember_state
8736 instead of aborting. Fixes PR backtrace/1589.
8737
9a5d7be1
JB
87382004-04-30 Joel Brobecker <brobecker@gnat.com>
8739
8740 * MAINTAINERS: Add self as AIX maintainer.
8741 Update my e-mail address in write-after-approval section.
8742
2593d1cd
AC
87432004-04-30 Andrew Cagney <cagney@redhat.com>
8744
ce12bbf9
AC
8745 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8746 (legacy_get_prev_frame): Ditto.
8747
36710c63
AC
8748 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8749 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8750 * mipsread.c (sigtramp_address): Delete extern variable.
8751 (mipscoff_new_init): Delete reference.
8752 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8753 (fixup_sigtramp): Delete function.
8754 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8755 (fixup_sigtramp): Delete declarations.
8756
2593d1cd
AC
8757 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8758 deprecated_pc_in_sigtramp.
8759 (ppcnbsd_pc_in_sigtramp): Delete function.
8760
2a25f91c
MK
87612004-05-01 Mark Kettenis <kettenis@gnu.org>
8762
8763 * config/m68k/nm-nbsd.h: Tweak comments.
8764 * config/m68k/nm-nbsdaout.h: Likewise.
8765
0b281939
AC
87662004-04-30 Andrew Cagney <cagney@redhat.com>
8767
8768 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8769 legacy_pc_in_sigtramp.
8770 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8771
8f2d3ea0
MK
87722004-05-01 Mark Kettenis <kettenis@gnu.org>
8773
8774 Add OpenBSD/m68k support.
8775 * NEWS (New native configurations): Mention OpenBSD/m68k.
8776 * m68kbsd-tdep.c: New file.
8777 * m68kbsd-nat.c: New file.
8778 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8779 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8780 * configure.host: Add m68k-*-openbsd.
8781 * configure.tgt: Add m68k-*-openbsd.
8782 * config/m68k/tm-obsd.h: New file.
8783 * config/m68k/obsd.mt: New file.
8784 * config/m68k/obsd.mh: New file.
8785 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8786 m68kbsd-tdep.c.
8787
c40f49a4
AC
87882004-04-30 Andrew Cagney <cagney@redhat.com>
8789
8790 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8791 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8792
e81554cd
MK
87932004-04-30 Mark Kettenis <kettenis@gnu.org>
8794
8795 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8796 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8797
d4dc1a91
BF
87982004-04-30 Brian Ford <ford@vss.fsi.com>
8799
8800 Revert 2004-04-16 change.
8801 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8802 (i386_coff_init_abi): Remove.
8803 * i386-tdep.h (i386_coff_init_abi): Remove.
8804 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8805
2f72f850
AC
88062004-04-30 Andrew Cagney <cagney@redhat.com>
8807
e492f9d6
AC
8808 * blockframe.c (find_pc_partial_function): Delete use of
8809 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8810 DEPRECATED_SIGTRAMP_END.
8811
7b7adad0
AC
8812 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8813 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8814 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8815 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8816 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8817
2f72f850
AC
8818 * defs.h (deprecated_inside_entry_file): Delete declaration.
8819 * blockframe.c (deprecated_inside_entry_file): Delete function.
8820 (legacy_frame_chain_valid): Delete call.
8821 * sh64-tdep.c (sh64_frame_chain): Delete call.
8822 * objfiles.h: Update comments.
8823 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8824 call.
8825 * frame.c (get_prev_frame): Delete call, update comments.
8826
283f90a7
BF
88272004-04-30 Brian Ford <ford@vss.fsi.com>
8828
8829 * MAINTAINERS (Write After Approval): Add myself.
8830
8ee56bcf
AC
88312004-04-30 Andrew Cagney <cagney@redhat.com>
8832
8833 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8834 * gdbarch.h, gdbarch.c: Re-generate.
8835 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8836 code.
8837
ee27e1b6
AC
88382004-04-30 Andrew Cagney <cagney@redhat.com>
8839
8840 * gdb-events.sh (selected_thread_changed)
8841 (selected_frame_level_changed, target_changed): Delete.
8842 * gdb-events.h, gdb-events.c: Re-generate.
8843 * valops.c (value_assign): Update.
8844 * stack.c (select_frame_command, up_silently_base)
8845 (down_silently_base): Update.
8846
d5ac5a39
AC
88472004-04-29 Andrew Cagney <cagney@redhat.com>
8848
8849 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8850 registers correctly.
8851 (print_gp_register_row, mips32_heuristic_proc_desc)
8852 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8853 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8854 references to mips_isa_regsize.
8855
ceae6e75
AC
88562004-04-29 Andrew Cagney <cagney@redhat.com>
8857
8858 * mips-tdep.c (struct gdbarch_tdep): Delete
8859 mips_fp_register_double.
8860 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8861 mips_abi_regsize.
8862 (mips_gdbarch_init): Do not set mips_fp_register_double.
8863 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8864
a587af0b
AC
88652004-04-29 Joel Brobecker <brobecker@gnat.com>
8866
8867 Committed by Andrew Cagney.
8868 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8869 function calls.
8870
13326b4e
AC
88712004-04-29 Andrew Cagney <cagney@redhat.com>
8872
8873 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8874 gdbarch, use mips_abi, update callers.
8875 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8876 mips_abi_regsize, update callers.
8877 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8878 mips_default_abi_regsize.
8879 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8880 mips_default_abi_regsize.
8881
711cc5cd
AC
88822004-04-29 Andrew Cagney <cagney@redhat.com>
8883
1b13c4f6
AC
8884 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8885 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8886 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8887 mips_default_abi_regsize.
8888 (mips_isa_regsize): Rename mips_regisze.
8889 * mipsnbsd-tdep.c: Update.
8890 * mips-linux-tdep.c: Update.
8891 * irix5-nat.c: Update.
8892 * mips-tdep.h (mips_isa_regsize): Update.
8893
711cc5cd
AC
8894 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8895 Delete all disabled code.
8896 * gdb-events.h, gdb-events.c: Re-generate.
8897
e63bbc88
MK
88982004-04-19 Jerome Guitton <guitton@gnat.com>
8899 Mark Kettenis <kettenis@gnu.org>
8900
8901 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8902 the function begins with a branch instruction.
8903
fd35795f
MK
89042004-04-29 Mark Kettenis <kettenis@gnu.org>
8905
8906 * i386-tdep.c: Fix spelling mistakes.
8907
c960c18f
AC
89082004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8909 Andrew Cagney <cagney@redhat.com>
8910
8911 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8912 <sys/proc.h>.
8913 * acconfig.h: Provide default _KMEMUSER value.
8914 * config.in, configure: Re-generate.
8915 * NEWS: Mention fix.
8916
50306a9d
RC
89172004-04-24 Randolph Chung <tausq@debian.org>
8918
8919 * configure.host (hppa*-*-linux*): New target.
8920 * configure.tgt (hppa*-*-linux*): Likewise.
8921 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8922 gdbarch_init_osabi() call earlier so that osabi-specific frame
8923 unwinders can be registered first.
8924 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8925 hppa-linux-nat.c.
8926 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8927 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8928 * config/pa/linux.mh: New file.
8929 * config/pa/linux.mt: New file.
8930 * config/pa/nm-linux.h: New file.
8931 * config/pa/xm-linux.h: New file.
8932 * hppa-linux-nat.c: New file.
8933 * hppa-linux-tdep.c: New file.
8934
2a6228ef
RC
89352004-04-28 Randolph Chung <tausq@debian.org>
8936
8937 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8938 return values.
8939 (hppa32_push_dummy_call): Fix small struct and floating point argument
8940 passing, and make sure the stack frame is properly aligned.
8941
82c10df6
AC
89422004-04-28 Andrew Cagney <cagney@redhat.com>
8943
d762c46a
AC
8944 * stack.c (print_stack_frame): Fix description.
8945
82c10df6
AC
8946 * NEWS: Mention gdb/gdbserver/configure execute permission
8947 changed. PR server/519.
8948
0faf0076
AC
89492004-04-28 Andrew Cagney <cagney@redhat.com>
8950
8951 * stack.c (print_stack_frame_stub): Delete declaration.
8952 (struct print_stack_frame_args, print_stack_frame)
8953 (print_frame_info, print_frame): Replace "source" with print what.
8954 Replace "print" with "print_level". Replace "args" with
8955 "print_args".
8956 * frame.h (show_and_print_stack_frame, print_stack_frame)
8957 (print_frame_info): Update declarations.
8958 * stack.c (select_and_print_frame, frame_command)
8959 (current_frame_command, up_command, down_command): Update calls -
8960 use get_selected_frame, pass "enum print_what" for source, do not
8961 call frame_relative_level.
8962 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8963 * remote-rdp.c (remote_rdp_open): Ditto.
8964 * remote-mips.c (common_open): Ditto.
8965 * remote-e7000.c (e7000_start_remote): Ditto.
8966 * ocd.c (ocd_start_remote): Ditto.
8967 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8968 * infrun.c (normal_stop): Ditto.
8969 * inflow.c (kill_command): Ditto.
8970 * infcmd.c (finish_command): Ditto.
8971 * corelow.c (core_open): Ditto.
8972 * tracepoint.c (finish_tfind_command): Ditto.
8973 * thread.c (info_threads_command, info_threads_command)
8974 (restore_current_thread, do_captured_thread_select): Ditto.
8975 * ada-tasks.c (task_command): Ditto.
8976
f4c5303c
OF
89772004-04-26 Orjan Friberg <orjanf@axis.com>
8978
8979 * frame.c: Include "observer.h".
8980 (frame_observer_target_changed): New function.
8981 (_initialize_frame): Attach target_changed observer.
8982 * regcache.c: Include "observer.h".
8983 (regcache_observer_target_changed): New function.
8984 (_initialize_regcache): Attach target_changed observer.
8985 * valops.c: Include "observer.h".
8986 (value_assign): Notify target_changed event when modifying register.
8987 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8988
7270d8f2
OF
89892004-04-26 Orjan Friberg <orjanf@axis.com>
8990
8991 From Paul Koning <pkoning@equallogic.com>:
8992 * breakpoint.c (free_valchain): New function.
8993 (insert_bp_location, delete_breakpoint): Use free_valchain.
8994 (remove_breakpoint): Do not remove the valchain.
8995 (bpstat_stop_status): If not stopped by watchpoint, skip
8996 watchpoints when generating stop status list.
8997 * infrun.c (handle_inferior_event): Make
8998 stepped_after_stopped_by_watchpoint a global variable.
8999 * remote.c (remote_stopped_data_address): Return watch data
9000 address rather than zero if stepped_after_stopped_by_watchpoint is
9001 set.
9002
02d62932
MC
90032004-04-25 Michael Chastain <mec.gnu@mindspring.com>
9004
9005 Fix PR gdb/1626.
9006 * configure.in: Check for curses after termcap.
9007 On osf5.*, do not check for ncurses.
9008 * configure: Regenerate.
9009
3e9a183c
MK
90102004-04-25 Mark Kettenis <kettenis@gnu.org>
9011
c79ac407
MK
9012 * ppcobsd-nat.c: Include "ppc-tdep.h".
9013 * Makefile.in (ppcobsd-nat.o): Update dependencies.
9014
3e9a183c
MK
9015 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
9016 Fixes PR tdep/1623 and PR tdep/1624.
9017
38cc9c28
MC
90182004-04-24 Michael Chastain <mec.gnu@mindspring.com>
9019
9020 * xmodem.h, xmodem.c: Remove files.
9021 * Makefile.in: Remove references to xmodem.h, xmodem.c.
9022
7f07c5b6
RC
90232004-04-23 Randolph Chung <tausq@debian.org>
9024
9025 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
9026 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
9027 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
9028 for handling stackless frames.
9029 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
9030
9f7194c3
RC
90312004-04-23 Randolph Chung <tausq@debian.org>
9032
9033 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
9034 starts at a pc before the frame is created.
9035
dcff6009
JB
90362004-04-23 Joel Brobecker <brobecker@gnat.com>
9037
9038 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
9039
40711ff1 90402004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
9041
9042 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
9043 use convert_typed_floating to get the appropriate format.
9044
abc485a1
RC
90452004-04-22 Randolph Chung <tausq@debian.org>
9046
9047 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
9048 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
9049 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
9050 (hppa_sign_extend): Add prototype.
9051 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
9052 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
9053 (sign_extend): Rename with hppa_ prefix and make non-static. Other
9054 hppa targets will also use these functions.
9055 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
9056 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
9057 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
9058 (hppa_gdbarch_init): Remove gdbarch setting of
9059 skip_trampoline_code, in_solib_call_trampoline and
9060 in_solib_return_trampoline.
9061 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
9062 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
9063 hppa_in_solib_call_trampoline.
9064 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
9065 Moved from hppa-tdep.c.
9066 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
9067 in_solib_call_trampoline and in_solib_return_trampoline.
9068
369aa520
RC
90692004-04-22 Randolph Chung <tausq@debian.org>
9070
9071 * hppa-tdep.c (hppa_debug): New variable.
9072 (find_unwind_entry, hppa_frame_cache): Add debug output.
9073 (_initialize_hppa_tdep): Add command to set debug flag.
9074
476be15e
AC
90752004-04-22 Andrew Cagney <cagney@redhat.com>
9076
9077 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
9078 "trad-frame.h".
9079 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
9080 signal trampoline unwinder.
9081 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
9082
d195bc9f
MK
90832004-04-22 Mark Kettenis <kettenis@gnu.org>
9084
9085 Add OpenBSD/powerpc support.
9086 * NEWS (New native configurations): Mention OpenBSD/powerpc.
9087 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
9088 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
9089 (ppc_collect_fpregset): New prototypes.
9090 * ppcobsd-nat.c: New file.
9091 * ppcobsd-tdep.c: New file.
9092 * ppcobsd-tdep.h: New file.
9093 * rs6000-tdep.c: Include "regset.h".
9094 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
9095 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
9096 New functions.
9097 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
9098 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
9099 (rs6000-tdep.o): Update dependencies.
9100 * configure.host: Add powerpc-*-openbsd.
9101 * configure.tgt: Add powerpc-*-openbsd.
9102 * config/powerpc/obsd.mh: New file.
9103 * config/powerpc/nm-obsd.h: New file.
9104 * config/powerpc/obsd.mt: New file.
9105
6f14cc33
AC
91062004-04-22 Andrew Cagney <cagney@redhat.com>
9107
fcf29e5f
AC
9108 * frame.h (show_frame_info): Delete declaration.
9109
6f14cc33
AC
9110 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
9111 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
9112 * m32r-tdep.c (m32r_frame_this_id): Ditto.
9113 * frv-tdep.c (frv_frame_this_id): Ditto.
9114 * avr-tdep.c (avr_frame_this_id): Ditto.
9115
e5786a5c
EZ
91162004-04-22 Elena Zannoni <ezannoni@redhat.com>
9117
9118 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
9119
26e75e5c
JB
91202004-04-22 Jim Blandy <jimb@redhat.com>
9121
9122 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
9123 register number zero.
9124
d8d65dd3
MS
91252004-04-21 Michael Snyder <msnyder@redhat.com>
9126
9127 * mips-tdep.c (heuristic_proc_start):
9128 Warning() already prefixes "Warning: ".
9129
9a4105ab
AC
91302004-04-21 Andrew Cagney <cagney@redhat.com>
9131
9132 * annotate.h (deprecated_annotate_starting_hook)
9133 (deprecated_annotate_stopped_hook)
9134 (deprecated_annotate_exited_hook)
9135 (deprecated_annotate_signal_hook)
9136 (deprecated_annotate_signalled_hook): Deprecate.
9137 * tracepoint.h (deprecated_create_tracepoint_hook)
9138 (deprecated_delete_tracepoint_hook)
9139 (deprecated_modify_tracepoint_hook)
9140 (deprecated_trace_find_hook)
9141 (deprecated_trace_start_stop_hook): Deprecate.
9142 * target.h (deprecated_target_new_objfile_hook): Deprecate.
9143 * remote.h (deprecated_target_resume_hook)
9144 (deprecated_target_wait_loop_hook): Deprecate.
9145 * gdbcore.h (deprecated_exec_file_display_hook)
9146 (deprecated_file_changed_hook): Deprecate.
9147 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9148 * defs.h (deprecated_modify_breakpoint_hook)
9149 (deprecated_command_loop_hook, deprecated_show_load_progress)
9150 (deprecated_print_frame_info_listing_hook)
9151 (deprecated_query_hook, deprecated_warning_hook)
9152 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9153 (deprecated_delete_breakpoint_hook)
9154 (deprecated_interactive_hook, deprecated_registers_changed_hook)
9155 (deprecated_readline_begin_hook, deprecated_readline_hook)
9156 (deprecated_readline_end_hook, deprecated_register_changed_hook)
9157 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9158 (deprecated_context_hook, deprecated_target_wait_hook)
9159 (deprecated_attach_hook, deprecated_detach_hook)
9160 (deprecated_call_command_hook, deprecated_set_hook)
9161 (deprecated_error_hook, deprecated_error_begin_hook)
9162 (deprecated_ui_load_progress_hook): Deprecate.
9163 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9164 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9165 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9166 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9167 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9168 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9169 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9170 * annotate.c, aix-thread.c: Update.
9171
62cf13cc
AC
91722004-04-21 Andrew Cagney <cagney@redhat.com>
9173
b2e31a62
AC
9174 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9175 * vaxnbsd-tdep.c: Include "gdb_string.h".
9176
62cf13cc
AC
9177 * symfile.c (symbol_file_add_from_memory): #if 0 function.
9178 (add_symbol_file_from_memory_command): #if 0 function body, call
9179 error instead.
9180
00e32a35
AC
91812004-04-21 Andrew Cagney <cagney@redhat.com>
9182
9183 * gdbcore.h: Update copyright.
9184 (deprecated_add_core_fns): Rename add_core_fns.
9185 * win32-nat.c (_initialize_core_win32): Update.
9186 * sun3-nat.c (_initialize_core_sun3): Update.
9187 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9188 * rs6000-nat.c (_initialize_core_rs6000): Update.
9189 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9190 * nto-tdep.c (_initialize_nto_tdep): Update.
9191 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9192 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9193 * mips-nat.c (_initialize_core_mips): Update.
9194 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9195 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9196 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9197 * lynx-nat.c (_initialize_core_lynx): Update.
9198 * irix5-nat.c (_initialize_core_irix5): Update.
9199 * i386-interix-nat.c (_initialize_core_interix): Update.
9200 * cris-tdep.c (_initialize_cris_tdep): Update.
9201 * corelow.c (deprecated_add_core_fns): Update.
9202 * core-regset.c (_initialize_core_regset): Update.
9203 * core-aout.c (_initialize_core_aout): Update.
9204 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9205 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9206 * alpha-nat.c (_initialize_core_alpha): Update.
9207
13c7b1ca
JB
92082004-04-21 Jim Blandy <jimb@redhat.com>
9209
9210 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9211
7b5a2f43
DJ
92122004-04-19 Daniel Jacobowitz <drow@mvista.com>
9213
9214 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9215 Delete.
9216 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
9217 (read_attribute_value): Update calls to dwarf_alloc_block.
9218 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9219 dwarf2_tmp_obstack.
9220 (psymtab_to_symtab_1): Likewise. Clean up using
9221 free_stack_comp_unit.
9222 (add_to_cu_func_list): Use the comp_unit_obstack.
9223
05cf31d1
JB
92242004-04-19 Joel Brobecker <brobecker@gnat.com>
9225
9226 * dwarf2read.c (dwarf2_flag_true_p): New function.
9227 (die_is_declaration): Use the function above. Add some comments.
9228
adf93a2f
MK
92292004-04-19 Mark Kettenis <kettenis@gnu.org>
9230
9231 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9232 architecture when registering sparcnbsd_core_osabi_sniffer.
9233 Adjust comment.
9234
748894bf
MK
92352004-04-18 Mark Kettenis <kettenis@gnu.org>
9236
f622ad42
MK
9237 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9238 return value.
9239
c4fc7f1b
MK
9240 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9241 * i386-tdep.c: Correct register numbering scheme comments
9242 throughout.
9243 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9244 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9245 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9246 (i386_gdb_arch_init): Likewise.
9247
b4ead1bd
MK
9248 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9249 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9250 ppcnbsd-tdep.o.
9251
748894bf
MK
9252 * m68k-tdep.h: Tweak comments.
9253 * m68k-tdep.c: Tweak comment.
9254
fdd72f95
RC
92552004-04-17 Randolph Chung <tausq@debian.org>
9256
9257 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9258 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9259 (hppa_hpux_som_init_abi): Set is_elf to 0.
9260 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9261 * hppa-tdep.c (low_text_segment_address): Remove global.
9262 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9263 section offset to calculate segment address.
9264 (internalize_unwinds): Define low_text_segment_address as local and
9265 pass to record_text_segment_lowaddr for ELF targets.
9266 (hppa_gdbarch_init): Zero fill tdep structure.
9267 (hppa_dump_tdep): Print tdep structure.
9268 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9269
0f8d9d59
RC
92702004-04-17 Randolph Chung <tausq@debian.org>
9271
9272 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9273 (hppa_gdbarch_init): Set pseudo_register_read.
9274 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9275 * regcache.c (supply_register): Remove check for
9276 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9277
7c46b9fb
RC
92782004-04-17 Randolph Chung <tausq@debian.org>
9279
9280 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9281 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9282 (hpread_adjust_stack_address): Move to hpread.c.
9283 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9284 obj_private_struct): Move from tm-hppa.h.
9285 * hpread.c (hppa-tdep.h): Include.
9286 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9287 (hpread_read_function_type, hpread_read_doc_function_type)
9288 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9289 directly.
9290 * pa64solib.c (hppa-tdep.h): Include.
9291 * somsolib.c (hppa-tdep.h): Include.
9292 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9293 inferior_status): Remove unused forward declarations.
9294 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9295 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9296 obj_private_struct): Move to hppa-tdep.h.
9297 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9298
8d153463
RC
92992004-04-17 Randolph Chung <tausq@debian.org>
9300
9301 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9302 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9303 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9304 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9305 Remove forward declaration and make static.
9306 (hppa_reg_struct_has_addr): Remove.
9307
350c2e5b
JB
93082004-04-16 Joel Brobecker <brobecker@gnat.com>
9309
9310 * observer.sh: Move comments in sed command to first column.
9311
bbde78fa
JM
93122004-04-16 Jason Molenda (jmolenda@apple.com)
9313
9314 * frame.c: Minor typeo corrections in comments.
9315
e0270fd9
JB
93162004-04-16 Joel Brobecker <brobecker@gnat.com>
9317
9318 * observer.c (observer_test_first_notification_function): Update
9319 function profile.
9320 (observer_test_second_notification_function): Likewise.
9321 (observer_test_third_notification_function): Likewise.
9322
3d049254
MK
93232004-04-16 Mark Kettenis <kettenis@gnu.org>
9324
9325 From Brian Ford <ford@vss.fsi.com>:
9326 * i386-tdep.c (i386_coff_init_abi): New function.
9327 * i386-tdep.h (i386_coff_init_abi): New prototype.
9328 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9329 register number translation functions for DWARF and DWARF 2.
9330
7867684d
JB
93312004-04-16 Joel Brobecker <brobecker@gnat.com>
9332
9333 * dwarf2read.c: Back out my previous change, it was incorrect.
9334
72bf9492
DJ
93352004-04-16 Daniel Jacobowitz <drow@mvista.com>
9336
9337 * dwarf2read.c: Include "hashtab.h".
9338 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9339 has_namespace_info.
9340 (struct partial_die_info): Add comments. Use bitfields to reduce
9341 memory footprint. Add scope, scope_set, has_specification,
9342 spec_offset, die_parent, die_child, and die_sibling.
9343 (peek_die_abbrev): Add prototype.
9344 (partial_read_comp_unit_head): New function, broken out from
9345 dwarf2_build_psymtabs_hard.
9346 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9347 Use partial_read_comp_unit_head. Initialize the CU and
9348 comp_unit_obstack. Update calls to read_partial_die and
9349 scan_partial_symbols. Use free_stack_comp_unit and
9350 load_partial_dies.
9351 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9352 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9353 Update calls to helper functions. Remove NAMESPACE argument.
9354 Update comments.
9355 (partial_die_parent_scope, partial_die_full_name): New functions.
9356 (add_partial_symbol): Remove namespace argument. Update call to
9357 pdi_needs_namespace. Use partial_die_full_name. Handle
9358 DW_TAG_namespace. Check has_namespace_info flag.
9359 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9360 tag. Handle namespaces.
9361 (add_partial_namespace, add_partial_enumeration): Simplify.
9362 (guess_structure_name): New function, derived from
9363 add_partial_structure.
9364 (add_partial_structure): Remove.
9365 (determine_class_name): Update comment.
9366 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9367 (is_type_tag_for_partial, load_partial_dies): New functions.
9368 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9369 Record specifications instead of following them immediately.
9370 (find_partial_die_in_comp_unit, find_partial_die)
9371 (fixup_partial_die, free_stack_comp_unit)
9372 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9373 (partial_die_hash, partial_die_eq): New functions.
9374 * Makefile.in (hashtab_h): Define.
9375 (dwarf2read.o): Update dependencies.
9376 (observer_inc, observer_h): Move to the correct section.
9377
fdc860a3
JB
93782004-04-15 Joel Brobecker <brobecker@gnat.com>
9379
9380 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9381 (die_is_declaration): Use the function above. Add comment.
9382
dc718098
JB
93832004-04-15 Joel Brobecker <brobecker@gnat.com>
9384
9385 * dwarf2read.c (read_structure_scope): Identify stub types
9386 using die_is_declaration() only.
9387
8718a420
RM
93882004-04-15 Roland McGrath <roland@redhat.com>
9389
9390 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9391 argument instead of NAME.
9392 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9393 in call to symbol_file_add_with_addrs_or_offsets.
9394 (build_addr_info): New function, helper for ...
9395 (symbol_file_add_from_memory): New function.
9396 (add_symbol_file_from_memory_command): New function using that.
9397 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9398 (pre_add_symbol_hook): Add const to argument type.
9399 * symfile.h (symbol_file_add_from_memory): Declare it.
9400
8b910bab
MK
94012004-04-15 Mark Kettenis <kettenis@gnu.org>
9402
9f076e7a
MK
9403 * NEWS (New native configurations): Mention OpenBSD/vax.
9404 * configure.host: Add vax-*-openbsd*.
9405 * config/vax/obsd.mh: New file.
9406 * config/vax/nm-obsd.h: New file.
9407
8b910bab
MK
9408 * vax-tdep.c: Include "regset.h".
9409 (vax_supply_gregset): New function.
9410 (vax_gregset): New variable.
9411 (vax_regset_from_core_section): New function.
9412 (vax_gdbarch_init): Set regset_from_core_section.
9413 * Makefile.in (vax-tdep.o): Update dependencies.
9414
7a464420
AC
94152004-04-15 Andrew Cagney <cagney@redhat.com>
9416
9417 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9418 (observer_normal_stop_notification_stub)
9419 (observer_attach_normal_stop, observer_detach_normal_stop):
9420 Delete, replaced by #include "observer.inc".
9421 * infrun.c (normal_stop): Pass "stop_bpstat" to
9422 observer_notify_normal_stop.
9423 * Makefile.in (observer_inc): Define.
9424 (observer.o): Update dependencies.
9425 (observer.h, observer.inc): New rules.
9426 * observer.h: Delete file.
9427 * observer.sh: New file.
9428
e36ad527
MK
94292004-04-15 Mark Kettenis <kettenis@gnu.org>
9430
9431 * vax-tdep.c (vax_frame_cache): Fix typo.
9432
67b441e1
MK
94332004-04-14 Mark Kettenis <kettenis@gnu.org>
9434
6f606e1c
MK
9435 * NEWS (New native configurations): Mention NetBSD/vax.
9436 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9437 * config/vax/nbsdelf.mh: New file.
9438 * config/vax/nbsdaout.mh: New file.
9439 * config/vax/nm-nbsd.h: New file.
9440 * config/vax/nm-nbsdaout.h: New file.
9441
9c5519a5
MK
9442 * vaxnbsd-tdep.c: New file.
9443 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9444 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9445 * config/vax/nbsd.mt: New file.
9446 * config/vax/tm-nbsd.h: New file.
9447
4844a614
MK
9448 * Makefile.in (vaxbsd-nat.o): New dependency.
9449
67b441e1
MK
9450 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9451 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9452 struct_addr arguments. Don't push return value address.
9453 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9454 arguments to vax_store_arguments. Store return value address in
9455 R1.
9456 (vax_store_struct_return, vax_extract_return_value)
9457 (vax_store_return_value): Remove functions.
9458 (vax_return_value): New function.
9459 (vax_gdbarch_init): Set return value. Don't set
9460 deprecated_store_struct_return, deprecated_extract_struct_return
9461 and deprecated_store_return_value.
9462
6672f2ae
AS
94632004-04-14 Andreas Schwab <schwab@suse.de>
9464
9465 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9466 value buffer.
9467 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9468
7346c184
MK
94692004-04-14 Mark Kettenis <kettenis@gnu.org>
9470
9471 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9472 (vax_unwind_dummy_id): New functions.
9473 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9474 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9475 variables.
9476 (vax_fix_call_dummy): Remove function.
9477 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9478 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9479 call_dummy_location, deprecated_call_dummy_words,
9480 deprecated_sizeof_call_dummy_words,
9481 deprecated_call_dummy_breakpoint_offset,
9482 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9483 and deprecated_dummy_write_sp.
9484
58e23df4
DC
94852004-04-13 David Carlton <carlton@kealia.com>
9486
9487 * MAINTAINERS: Move myself to "paper trail" section.
9488
5e6b39ff
MK
94892004-04-12 Mark Kettenis <kettenis@gnu.org>
9490
7def7fef
MK
9491 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9492 "trad-frame.h".
9493 (vax_frame_init_saved_regs): Remove function.
9494 (vax_sigtramp_saved_pc): Remove function.
9495 (vax_frame_saved_pc): Remove function.
9496 (vax_frame_args_address): Remove function.
9497 (vax_frame_num_args): Rewrite.
9498 (vax_frame_chain): Remove function.
9499 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9500 VAX_FP_REGNUM.
9501 (vax_pop_frame): Likewise.
9502 (vax_saved_pc_after_call): Remove function.
9503 (struct vax_frame_cache): New structure.
9504 (vax_frame_cache): New function.
9505 (vax_frame_this_id): New function.
9506 (vax_frame_prev_register): New function.
9507 (vax_frame_unwind): New variable.
9508 (vax_frame_sniffer): New function.
9509 (vax_frame_base_address): New function.
9510 (vax_frame_args_address): New function.
9511 (vax_frame_base): New variable.
9512 (vax_unwind_pc): New function.
9513 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9514 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9515 deprecated_frame_chain, deprecated_frame_saved_pc,
9516 deprecated_frame_args_address and
9517 deprecated_frame_init_saved_regs.
9518 * Makefile.in (vax-tdep.o): Update dependencies.
9519
53284fc1
MK
9520 * vaxbsd-nat.c: New file.
9521
5e6b39ff
MK
9522 * vax-tdep.h: Update copyright year. Adjust comments.
9523 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9524 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9525 (vax_regnum): New enum. Replacing...
9526 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9527 (VAX_PS_REGNUM): ... these removed macros.
9528 * vax-tdep.c (vax_register_name): Remove prototype.
9529 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9530 (vax_register_byte, vax_register_raw_size,
9531 vax_register_virtual_size, vax_register_virtual_type): Remove
9532 functions.
9533 (vax_register_type): New function.
9534 (vax_breakpoint_from_pc): Reorganize.
9535 (vax_gdbarch_init): Set register_type. Don't set
9536 deprecated_register_size, deprecated_register_bytes,
9537 deprecated_register_byte, deprecated_register_raw_size,
9538 deprecated_max_register_raw_size,
9539 deprecated_register_virtual_size,
9540 deprecated_max_register_virtual_size and
9541 deprecated_register_virtual_type. Add comment on stack direction.
9542
e9c71e9f
MK
95432004-04-11 Mark Kettenis <kettenis@gnu.org>
9544
9545 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9546 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 9547 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 9548
d46f1176 95492004-04-10 Randolph Chung <tausq@debian.org>
8718a420 9550
d46f1176
RC
9551 * MAINTAINERS (write after approval): Add myself.
9552
a2a84a72
RC
95532004-04-07 Randolph Chung <tausq@debian.org>
9554
9555 * hppa-tdep.c (hppa_inner_than): Remove.
9556 (is_pa_2): Remove unused static variable.
8718a420 9557 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 9558
e85c3284
PH
95592004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9560
9561 * language.h (language_defn): Add new la_post_parser field.
9562 * parser-defs.h (null_post_parser): New declaration (default for
9563 la_post_parser).
8718a420 9564
e85c3284
PH
9565 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9566 insert call to that function.
9567 (parse_exp_in_context): New function, including code formerly in
8718a420 9568 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
9569 prefixification.
9570 (parse_expression_in_context): New exported function.
9571 (null_post_parser): New definition.
9572 * expression.h (parse_expression_in_context): Add declaration.
8718a420 9573
e85c3284
PH
9574 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9575 * c-lang.c (c_language_defn): Ditto.
9576 (cplus_language_defn): Ditto.
9577 (asm_language_defn): Ditto.
9578 (minimal_language_defn): Ditto.
9579 * f-lang.c (f_language_defn): Ditto.
9580 * jv-lang.c (java_language_defn): Ditto.
9581 * language.c (unknown_language_defn): Ditto.
9582 (auto_language_defn): Ditto.
9583 (local_language_defn): Ditto.
9584 * m2-lang.c (m2_language_defn): Ditto.
9585 * scm-lang.c (scm_language_defn): Ditto.
9586 * obj-lang.c (objc_language_defn): Ditto.
8718a420 9587
d9f8c85b
MK
95882004-04-10 Mark Kettenis <kettenis@gnu.org>
9589
fa34704a
MK
9590 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9591 (amd64nbsd_mcontext_addr): New function.
9592 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9593 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9594 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9595
403e1656
MK
9596 * corelow.c (core_xfer_partial): Fix coding standards violation.
9597 Add support for TARGET_OBJECT_WCOOKIE.
9598
a57e5a95
MK
9599 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9600 deprecated_pc_in_sigtramp.
9601 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9602 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9603 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9604 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9605 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9606 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9607 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9608
377d9ebd
MK
9609 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9610 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9611 Fix typo.
9612
f0ef85a5
MK
9613 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9614 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9615 (amd64_collect_fxsave): Likewise.
9616
d9f8c85b
MK
9617 * i386-sol2-tdep.c: Include "gdb_string.h".
9618 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9619 name.
9620 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9621
75f501b5
MK
96222004-04-10 Mark Kettenis <kettenis@gnu.org>
9623
9624 * i386-sol2-tdep.c: Include "solib-svr4.h".
9625 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9626 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9627 * config/i386/tm-i386sol2.h: Include :solib.h".
9628 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9629 solib-svr4.o and solib-legacy.o.
9630 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9631 solib-svr4.o.
9632
b31bc724
MK
96332004-04-09 Mark Kettenis <kettenis@gnu.org>
9634
18bbbd9e
MK
9635 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9636 whether a register is supplied by PTRACE_GETFPREGS.
9637 (store_inferior_registers): Likewise.
9638 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9639 whether a register is supplied by PT_GETFPREGS.
9640 (store_inferior_registers): Likewise.
9641
3c30bf1b
MK
9642 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9643 * config/i386/linux64.mt (TDEPFILES): Likewise.
9644
a4194092
MK
9645 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9646
911bc6ee
MK
9647 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9648 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9649 the program counter is in the range specified by `struct
9650 gdbarch_tdep'.
9651 * amd64-linux-tdep.c: Include "symtab.h".
9652 (amd64_linux_pc_in_sigtramp): Remove function.
9653 (amd64_linux_sigtramp_p): New function.
9654 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9655 deprecated_pc_in_sigtramp.
9656 * amd64nbsd-tdep.c: Include "symtab.h".
9657 (amd64nbsd_sigtramp_p): New function.
9658 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9659 deprecated_pc_in_sigtramp.
9660 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9661 few comments.
9662 (amd64obsd_pc_in_sigtramp): Remove function.
9663 (amd64obsd_sigtramp_p): New function.
9664 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9665 deprecated_pc_in_sigtramp.
9666 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9667 (i386bsd_pc_ins_sigtramp): Remove prototype.
9668 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9669 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9670 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9671 the program counter is in the range specified by `struct
9672 gdbarch_tdep'.
9673 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9674 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9675 (i386_go32_pc_in_sigtramp): Remove function.
9676 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9677 Initialize TDEP->sigtramp_p.
9678 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9679 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9680 deprecated_pc_in_sigtramp.
9681 * i386-linux-tdep.c: Adjust comments.
9682 (i386_linux_pc_in_sigtramp): Remove function.
9683 (i386_linux_sigtramp_p): New function.
9684 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9685 deprecated_pc_in_sigtramp.
9686 * i386-nto-tdep.c: Update copyright year.
9687 (i386nto_pc_in_sigtramp): Remove function.
9688 (i386nto_sigtramp_p): New function.
9689 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9690 SP_REGNUM.
9691 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9692 deprecated_pc_in_sigtramp.
9693 * i386-sol2-tdep.c: Update copyright year.
9694 (i386_sol2_pc_in_sigtramp): Remove function.
9695 (i386_sol2_sigtramp_p): New function.
9696 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9697 deprecated_pc_in_sigtramp.
9698 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9699 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9700 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9701 deprecated_sigtramp_start and deprecated_sigtramp_end.
9702 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9703 (i386nbsd_pc_in_sigtramp): Remove function.
9704 (i386nbsd_sigtramp_p): New function.
9705 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9706 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9707 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9708 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9709 (i386obsd_pc_in_sigtramp): Remove function.
9710 (i386obsd_sigtramp_p): New function.
9711 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9712 functions.
9713 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9714 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9715 TDEP->sigtramp_p.
9716 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9717 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9718 dependencies.
9719
e083e6ec
MK
9720 * config/i386/i386aout.mt: Remove file.
9721
bd153b94
MK
9722 * configure.tgt: Remove i[34567]86-*-go32*,
9723 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9724 and i[34567]86-*-isc*. Set gdb_target to i386 for
9725 i[34567]86-*-netware* and i[34567]86-*-*.
9726 * config/i386/i386.mt: New file.
9727 * config/i386/embed.mt: Remove file.
9728 * config/i386/go32.mt: Remove file.
9729 * config/i386/i386nw.mt: Remove file.
9730 * config/i386/i386v.mt: Remove file.
9731 * config/i386/tm-go32.h: Remove file.
9732
4a1bcc8c
MK
9733 * tui/tui-hooks.c: Include "readline/readline.h" after
9734 "gdb_curses.h" instead of before.
9735 * tui/tui-io.c: Likewise.
9736
f9a79064
MK
9737 * tui/tui.c: Fix typo in comment.
9738
b31bc724
MK
9739 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9740
f83f82bc
AC
97412004-04-08 Andrew Cagney <cagney@redhat.com>
9742
9743 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9744 (deprecated_exception_support_initialized): Declare.
8718a420 9745 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
9746 (initialize_hp_cxx_exception_support)
9747 (child_enable_exception_callback): Update.
9748 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9749 (deprecated_exception_support_initialized): Rename
9750 deprecated_exception_catchpoints_are_fragile and
9751 deprecated_exception_support_initialized.
9752 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9753
9754 * symtab.c (deprecated_hp_som_som_object_present): Rename
9755 hp_som_som_object_present.
9756 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9757 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9758 Update. Delete extern declaration.
9759 * valops.c (hp_som_som_object_present): Ditto.
8718a420 9760 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
9761 (parse_nested_classes_for_hpacc): Ditto.
9762 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 9763 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
9764 (initialize_hp_cxx_exception_support): Ditto.
9765 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 9766 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 9767 (cp_print_class_method): Ditto.
8718a420 9768 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
9769 (c_type_print_base): Ditto.
9770 * c-exp.y (hp_som_som_object_present): Ditto.
9771
fb2be677
AC
97722004-04-08 Andrew Cagney <cagney@redhat.com>
9773
9774 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9775 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9776 (frame_unwind_find_by_frame): Re-implement the unwind code so
9777 that it can both prepend and append sniffers. Replace
9778 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9779 * tramp-frame.c (tramp_frame_append): Use
9780 frame_unwind_prepend_unwinder.
9781 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9782 frame_unwind_register_unwinder.
9783 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9784 tramp_frame_append.
9785 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 9786 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
9787 (mips_linux_init_abi): Update.
9788
67faf007
KB
97892004-04-08 Kevin Buettner <kevinb@redhat.com>
9790
9791 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9792 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9793 file support.
9794
8973ff21
KB
97952004-04-07 Kevin Buettner <kevinb@redhat.com>
9796
9797 * ia64-tdep.c (elf.h): Don't include.
9798 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9799
4a0e2f88
JM
98002004-04-07 Jason Molenda (jmolenda@apple.com)
9801
9802 * frame.h: Typeo corrections in comments.
9803
9872ad24
JB
98042004-04-07 Jim Blandy <jimb@redhat.com>
9805
9806 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9807 %esp and %ebp
9808
70b216c8
MK
98092004-04-07 Mark Kettenis <kettenis@gnu.org>
9810
11d5789c
MK
9811 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9812 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9813 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9814 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9815 and solib-legacy.o.
9816 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9817 solib-svr4.o.
9818 * config/sparc/tm-sol2.h: Update copyright year. Include
9819 "solib.h".
9820
70b216c8
MK
9821 * sparc-sol2-tdep.c: Update copyright year. Include
9822 "solib-svr4.h".
9823 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9824 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9825 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 9826 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
9827 dependencies.
9828
6339dc9e
AC
98292004-04-06 Andrew Cagney <cagney@redhat.com>
9830
9831 * infttrace.c: Include "infttrace.h".
9832 * infttrace.h: Include "target.h".
9833 * Makefile.in (infttrace_h): Update.
9834 (infttrace.o): Update.
8718a420 9835
93449403
AC
98362004-04-06 Andrew Cagney <cagney@redhat.com>
9837
6d518969
AC
9838 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9839 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9840 move extern declarations from here ...
9841 * infttrace.h: ... to here.
9842 * Makefile.in (hppah-nat.o): Update dependencies.
9843
85f4f2d8
AC
9844 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9845 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 9846 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
9847 (hppa_breakpoint_from_pc): Delete.
9848
93449403
AC
9849 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9850
71456ec6
AC
98512004-04-05 Andrew Cagney <cagney@redhat.com>
9852
9853 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9854 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9855 <sys/file.h>.
8718a420 9856
4c02c60c
AC
98572004-04-06 Randolph Chung <tausq@debian.org>
9858
9859 Committed by Andrew Cagney (mechanical change).
9860 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9861 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9862 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9863 child_enable_exception_callback, current_ex_event,
9864 null_symtab_and_line, child_get_current_exception_event,
9865 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9866 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9867 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9868 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9869 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9870 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9871 Move hpux-specific definitions ...
9872 * hppa-hpux-tdep.c: ... to here.
9873
3a515653
AC
98742004-04-05 Andrew Cagney <cagney@redhat.com>
9875
9876 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9877 skip_prologue_using_sal.
9878
c1730d02
AC
98792004-04-05 Andrew Cagney <cagney@redhat.com>
9880
9881 * config/i386/tm-i386.h: Delete file.
9882 * config/i386/tm-vxworks.h: Update copyright, do not include
9883 "tm-i386.h".
9884 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9885 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9886 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9887 * config/i386/ncr3000.mt (TM_FILE): Delete.
9888 * config/i386/interix.mt (TM_FILE): Delete.
9889 * config/i386/i386v.mt (TM_FILE): Delete.
9890 * config/i386/i386nw.mt (TM_FILE): Delete.
9891 * config/i386/i386gnu.mt (TM_FILE): Delete.
9892 * config/i386/i386aout.mt (TM_FILE): Delete.
9893 * config/i386/embed.mt (TM_FILE): Delete.
9894
8b67aa36
KB
98952004-04-05 Kevin Buettner <kevinb@redhat.com>
9896
9897 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9898 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9899 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9900 (accg7_regnum): New constants.
9901 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
9902 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9903 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
9904 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9905 for accg registers.
9906 (frv_register_sim_regno): Update spr_map[].
9907
3c7012f5
AC
99082004-04-04 Andrew Cagney <cagney@redhat.com>
9909
9910 * config/mips/xm-riscos.h: Delete.
9911 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9912 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9913 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9914 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9915 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9916 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9917 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9918 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9919 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9920 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9921 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9922 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9923 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9924 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9925 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9926 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9927 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9928 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9929 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9930 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9931 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9932 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9933 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9934 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9935 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9936 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 9937
3c7012f5
AC
9938 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9939 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9940 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9941 * configure.host: Remove m680[01]0-sun-sunos3*,
9942 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9943 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9944 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9945 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9946 mips-*-riscos*.
9947 * NEWS: Mention removed systems.
9948
99d16a21
AC
99492004-04-04 Andrew Cagney <cagney@redhat.com>
9950
9951 GDB 6.1 release created from 6.1 branch.
9952
6cdf9d98
AC
99532004-04-04 Andrew Cagney <cagney@redhat.com>
9954
98d346c3
AC
9955 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9956 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9957 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9958
6cdf9d98
AC
9959 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9960 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9961 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9962
859a326d
JB
99632004-04-03 Jim Blandy <jimb@redhat.com>
9964
9965 * MAINTAINERS: Chris Faylor has changed employers; add him to
9966 "paper trail" section, and update his E-mail address.
9967
b87178c3
AC
99682004-04-03 Andrew Cagney <cagney@redhat.com>
9969
4ea2acf0
AC
9970 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9971 generic dummy frames.
9972 * dummy-frame.c: Update copyright.
9973 (dummy_frame_sniffer): Delete check for generic dummy frames.
9974
d0bd2d18 9975 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 9976 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
9977 (REG_PARM_STACK_SPACE): Delete.
9978 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9979 Inline reference to REG_PARM_STACK_SPACE.
9980
b87178c3
AC
9981 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9982 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9983 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9984 (FRAME_BASE_BEFORE_SIGTRAMP)
9985 (hppa32_hpux_frame_base_before_sigtramp)
9986 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9987 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9988 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9989 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9990 (FRAME_BASE_BEFORE_SIGTRAMP)
9991 (hppa64_hpux_frame_base_before_sigtramp)
9992 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9993
43e2e1a0
AC
99942004-04-03 Andrew Cagney <cagney@redhat.com>
9995
9996 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9997
ddc135a4
AC
99982004-04-02 Andrew Cagney <cagney@redhat.com>
9999
10000 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
10001 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
10002 * dummy-frame.h: Delete out-of-date comments.
10003 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
10004 * gdbarch.h, gdbarch.c: Re-generate.
10005
d15bfd3a 100062004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 10007
d15bfd3a
AC
10008 Committed by Andrew Cagney <cagney@redhat.com>.
10009 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
10010 into account an instruction saving a register if we have already
10011 seen an earlier instruction saving that same register.
10012
f04ceafa
AC
100132004-04-02 Andrew Cagney <cagney@redhat.com>
10014
08be3abd
AC
10015 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
10016 * gdbarch.h, gdbarch.c: Re-generate.
10017 * frame.c (legacy_get_prev_frame): Delete references to
10018 DEPRECATED_INIT_FRAME_PC_FIRST.
10019
f04ceafa
AC
10020 * infrun.c (pc_in_sigtramp): Delete function.
10021 (check_sigtramp2): Inline call to pc_in_sigtramp, use
10022 get_frame_type.
10023
08e69816
AC
100242004-04-02 Andrew Cagney <cagney@redhat.com>
10025
10026 * infrun.c (handle_step_into_function): Delete code conditional on
10027 legacy_frame_p.
10028 (handle_inferior_event, step_over_function): Ditto.
10029
adb54772
AC
100302004-04-02 Andrew Cagney <cagney@redhat.com>
10031
10032 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
10033 "previous frame inner to this frame" test.
10034
304396fb
AC
100352004-04-02 Andrew Cagney <cagney@redhat.com>
10036
10037 * frame.c (safe_frame_unwind_memory): New function.
10038 * frame.h (safe_frame_unwind_memory): Declare. Update description
10039 of /safe_/ methods.
10040 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
10041 "next_frame". Use safe_frame_unwind_memory.
10042 (tramp_frame_sniffer): Update call to tramp_frame_start.
10043
6502dd73
DJ
100442004-04-01 Daniel Jacobowitz <drow@mvista.com>
10045
10046 * dwarf2read.c (dwarf2_objfile_data_key): New.
10047 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
10048 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
10049 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
10050 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
10051 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
10052 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
10053 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
10054 Remove variables.
10055 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
10056 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
10057 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
10058 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
10059 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
10060 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
10061 Remove macros.
10062 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
10063 data.
10064 (dwarf2_locate_sections, dwarf2_build_psymtabs)
10065 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
10066 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
10067 (read_partial_die, read_full_die, read_indirect_string)
10068 (dwarf_decode_line_header, dwarf_decode_macros)
10069 (dwarf2_symbol_mark_computed): Remove use of removed macros.
10070 Update uses of removed variables.
10071 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
10072 of removed macros.
10073 (_initialize_dwarf2_read): New function.
10074 * symfile.h (dwarf2_has_info): Update prototype.
10075 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
10076 * elfread.c (elf_symfile_read): Likewise.
10077
408752b0
JB
100782004-04-01 Jim Blandy <jimb@redhat.com>
10079
9f744501
JB
10080 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
10081 function for register numbers on all the rs6000-derived targets.
10082 (rs6000_gdbarch_init): Don't register a separate
10083 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
10084 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
10085 variants.
10086
408752b0
JB
10087 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
10088 numbering.
10089
2de41bce
PH
100902004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
10091
10092 * valarith.c: Update copyright notice.
10093 (value_add): Handle range types.
10094 (value_sub): Ditto.
10095 (value_equal): Ditto.
10096 (value_less): Ditto.
10097 (value_neg): Ditto.
10098 (value_complement): Ditto.
8718a420 10099 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 10100 eliminiating unnecessary COERCE_ENUMs.
8718a420 10101
5613d8d3
AC
101022004-03-31 Andrew Cagney <cagney@redhat.com>
10103
10104 * frame.h (frame_unwind_id): Declare.
10105 * frame.c (frame_unwind_id): New function.
10106 (get_prev_frame_1): New function.
10107 (frame_debug_got_null_frame): New function.
10108 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
10109 code proper to prev_frame, update description.
10110 * infrun.c (step_over_function): Use frame_unwind_id.
10111
c4557624
JB
101122004-04-31 J. Brobecker <brobecker@gnat.com>
10113
10114 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
10115 (hppa64_push_dummy_call): Likewise.
10116
3e6bb910
JB
101172004-03-30 Jim Blandy <jimb@redhat.com>
10118
10119 From Ulrich Weigand:
10120 * utils.c (query): Do not use a va_list variable multiple times.
10121
a2f23071
DJ
101222004-03-29 Daniel Jacobowitz <drow@mvista.com>
10123
10124 * Makefile.in (linux_nat_h): Update dependencies.
10125 * configure.in: Check for <gnu/libc-version.h>.
10126 * configure: Regenerate.
10127 * config.in: Regenerate.
10128 * linux-nat.h: Include "target.h". Add waitstatus field to
10129 struct lwp_info.
10130 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
10131 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
10132 to.
10133 (lin_lwp_handle_extended): New function. Handle clone events.
10134 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
10135 thread exit events.
10136 (child_wait): Handle clone events.
10137 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10138 * linux-nat.c (linux_enable_event_reporting): Turn on
10139 PTRACE_O_TRACECLONE.
10140 (linux_handle_extended_wait): Handle clone events.
10141 * thread-db.c: Include <gnu/libc-version.h>.
10142 (struct private_thread_info): Add dying flag.
10143 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10144 higher.
10145 (attach_thread): Update comments. Handle dying threads.
10146 (detach_thread): Set the dying flag.
10147 (check_event): Always call attach_thread.
10148
8d5f9dcb
DJ
101492004-03-29 Daniel Jacobowitz <drow@mvista.com>
10150
10151 * mips-tdep.c (mips_pdr_data): New.
10152 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10153 (_initialize_mips_tdep): Initialize mips_pdr_data.
10154
66337bb1
CV
101552004-03-29 Corinna Vinschen <vinschen@redhat.com>
10156
10157 * minsyms.c (install_minimal_symbols): Move dropping leading
10158 char from linkage name from here...
10159 (prim_record_minimal_symbol_and_info): ...to here. Simplify
10160 test for "__gnu_compiled*" symbols.
10161
e802b915
JB
101622004-03-28 Jim Blandy <jimb@redhat.com>
10163
10164 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10165 registers to temp register r0 and byte stores as prologue
10166 instructions.
10167
72b56458
AC
101682004-03-28 Andrew Cagney <cagney@redhat.com>
10169
10170 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
10171 arm*-*-*.
10172
0bfbda3b
SC
101732004-03-28 Stephane Carrez <stcarrez@nerim.fr>
10174
10175 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10176 and switch the layout to force a display of register window.
10177
5a7225ed
JB
101782004-02-26 J. Brobecker <brobecker@gnat.com>
10179
10180 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10181 of the INTEGER class.
10182
81a07a45
JB
101832004-03-26 Jim Blandy <jimb@redhat.com>
10184
10185 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10186 bytes long on PPC GNU/Linux.
10187
8c691c7a
DC
101882004-03-26 David Carlton <carlton@kealia.com>
10189
10190 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10191
103a0089
AC
101922004-03-25 Andrew Cagney <cagney@redhat.com>
10193
10194 * PROBLEMS: Add general section titles, remove references to
10195 specific releases.
10196
7a5ea0d4
DJ
101972004-03-25 Daniel Jacobowitz <drow@mvista.com>
10198
10199 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10200 INT_REGISTER_SIZE.
10201 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10202 FP_REGISTER_VIRTUAL_SIZE.
10203 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10204 of DEPRECATED_REGISTER_RAW_SIZE.
10205 (arm_register_type): Add gdbarch argument.
10206 (arm_register_raw_size, arm_register_virtual_size): Delete.
10207 (arm_register_byte, arm_extract_return_value)
10208 (arm_store_return_value, arm_get_longjmp_target): Update references
10209 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10210 (arm_gdbarch_init): Likewise. Don't set
10211 deprecated_register_raw_size, deprecated_register_virtual_size,
10212 deprecated_max_register_raw_size,
10213 deprecated_max_register_virtual_size, or
10214 deprecated_max_register_virtual_type. Do set register_type.
10215 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10216 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10217 (FP_REGISTER_VIRTUAL_SIZE): Delete.
10218 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10219 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10220 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10221 INT_REGISTER_SIZE.
10222 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10223 (remote_rdp_store_register): Likewise.
10224
5792a79b
DJ
102252004-03-24 Daniel Jacobowitz <drow@mvista.com>
10226
10227 * Makefile.in (mips-linux-tdep.o): Update dependencies.
10228 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10229 to after osabi initialization.
10230 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10231 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10232 functions.
10233 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10234 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10235 variables.
10236 (mips_linux_init_abi): Append signal trampoline unwinders.
10237
1196bfda
AC
102382004-03-24 Andrew Cagney <cagney@redhat.com>
10239
10240 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10241 * tramp-frame.c: Include "gdb_assert.h".
10242 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10243 correct sizeof.
10244 (tramp_frame_append): Validate the tramp frame's instructions.
10245 * Makefile.in (tramp-frame.o): Update dependencies.
10246
4be282b4
AC
102472004-03-23 Andrew Cagney <cagney@redhat.com>
10248
10249 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10250
69aec09b
AC
102512004-03-23 Andrew Cagney <cagney@redhat.com>
10252
10253 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10254 Nasser as past testsuite/lib/ (and other) maintainers.
10255
63ed89b4
DJ
102562004-03-23 Daniel Jacobowitz <drow@mvista.com>
10257
10258 * infcmd.c (attach_command): Reread symbols if we already have
10259 an exec file.
10260
f3b36427
AC
102612004-03-23 Andrew Cagney <cagney@redhat.com>
10262
10263 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10264
aa2a3f87
AC
102652004-03-23 Andrew Cagney <cagney@redhat.com>
10266
10267 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10268 * gdbarch.h, gdbarch.c: Re-generate.
10269 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10270 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10271 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 10272 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 10273 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 10274 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
10275 (DEPRECATED_SIGTRAMP_START): Update.
10276 * blockframe.c (find_pc_sect_partial_function): Update.
10277 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10278
00cac895
DJ
102792004-03-23 Daniel Jacobowitz <drow@mvista.com>
10280
10281 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10282 if necessary.
10283
f561f026
AC
102842004-03-23 Andrew Cagney <cagney@redhat.com>
10285
10286 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10287 predicate, deprecate.
10288 * gdbarch.h, gdbarch.c: Re-generate.
10289 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10290 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10291 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10292 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10293 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10294 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10295 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10296 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10297 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10298 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10299 * blockframe.c (find_pc_partial_function): Update.
10300 * breakpoint.c (bpstat_what): Update.
10301 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10302 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10303 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10304 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10305 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10306 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10307 * i386-nto-tdep.c (i386nto_init_abi): Update.
10308 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10309 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10310 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10311 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10312 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10313 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10314 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10315 * infrun.c (pc_in_sigtramp): Update.
10316 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10317 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10318 * mips-tdep.c (mips_gdbarch_init): Update.
10319 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10320 * ppc-linux-tdep.c: Update comment.
10321 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10322 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10323 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10324 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10325 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10326 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10327 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10328 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10329 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10330 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 10331
8050c72f
AC
103322004-03-23 Andrew Cagney <cagney@redhat.com>
10333
d2259dd3
AC
10334 * tramp-frame.h, tramp-frame.h: New files.
10335 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10336 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10337
8050c72f
AC
10338 * Makefile.in: Update all dependencies.
10339
0db9b4b7
AC
103402004-03-23 Andrew Cagney <cagney@redhat.com>
10341
10342 * Makefile.in (trad_frame_h): Add $(frame_h).
10343 * trad-frame.h: Update copyright. Include "frame.h".
10344 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10345 (trad_frame_set_id, trad_frame_get_id): Declare.
10346 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10347 * trad-frame.c: Update copyright.
10348 (struct trad_frame_cache): Define.
10349 (trad_frame_cache_zalloc): New function.
10350 (trad_frame_set_id, trad_frame_get_id): New functions.
10351 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 10352
8e645ae7
AC
103532004-03-22 Andrew Cagney <cagney@redhat.com>
10354
10355 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10356 s390_pltstub_unwind_cache.
10357 (s390_stub_frame_unwind_cache): Rename
10358 s390_pltstub_frame_unwind_cache.
10359 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10360 (s390_stub_frame_prev_register): Rename
10361 s390_pltstub_frame_prev_register.
10362 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10363 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10364
10365 From Ulrich Weigand:
10366 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10367 pointer calls like PLT calls.
10368
34fcf120
DJ
103692004-03-22 Daniel Jacobowitz <drow@mvista.com>
10370
10371 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10372 PC rather than the partial function start address. Use the start
10373 address to sanity check the found PDR.
10374
5b917078
DJ
103752004-03-22 Daniel Jacobowitz <drow@mvista.com>
10376
10377 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10378 linux_handle_extended_wait.
10379
8adf9e78
AC
103802004-03-22 Andrew Cagney <cagney@redhat.com>
10381
c3122434
AC
10382 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10383 function.
10384
8adf9e78
AC
10385 * frame.h (generic_pop_current_frame): Delete declaration.
10386 (deprecate_pop_dummy_frame): Deprecate
10387 generic_pop_dummy_frame.
10388 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10389 (generic_pop_current_frame): Delete function.
10390 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10391 generic_pop_current_frame.
10392 * v850-tdep.c (v850_pop_frame): Update.
10393 * mcore-tdep.c (mcore_pop_frame): Update.
10394 * sh64-tdep.c (sh64_pop_frame): Update.
10395 * h8300-tdep.c (h8300_pop_frame): Update.
10396
90ba813f
AC
103972004-03-22 Andrew Cagney <cagney@redhat.com>
10398
10399 * frame.h (deprecated_pc_in_call_dummy): Rename
10400 generic_pc_in_call_dummy.
10401 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10402 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10403 generic_pc_in_call_dummy.
10404 (pc_in_dummy_frame): Make static.
10405 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10406 * gdbarch.h, gdbarch.c: Re-generate.
10407 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10408 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10409 (legacy_get_prev_frame): Ditto.
10410 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10411 comment.
8718a420 10412
ca4bb888
AC
104132004-03-21 Andrew Cagney <cagney@redhat.com>
10414
244675f9
AC
10415 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10416 declaration and out-of-date comment.
10417 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10418 Delete function.
10419 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10420 deprecated_pc_in_call_dummy.
10421
ca4bb888
AC
10422 * infrun.c (handle_inferior_event): For non legacy frames, use the
10423 frame ID and frame type to identify a signal trampoline. Update
10424 comments.
10425
1777c7b4
NW
104262004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10427
10428 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10429 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10430
82417da5
AC
104312004-03-21 Andrew Cagney <cagney@redhat.com>
10432
10433 * frame-unwind.h: Update copyright.
10434 (struct frame_data): Add opaque declaration.
10435 (frame_sniffer_ftype): Declare.
10436 (struct frame_unwind): Add "unwind_data" and "sniffer".
10437 (frame_unwind_register_unwinder): Declare.
10438 (frame_unwind_find_by_frame): Add parameter "this_cache".
10439 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10440 (legacy_get_prev_frame, legacy_get_prev_frame)
10441 (get_frame_type): Pass the prologue_cache to
10442 frame_unwind_find_by_frame.
10443 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10444 "unwinder".
10445 (frame_unwind_register_unwinder): New function.
10446 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10447
b2ba182e
PH
104482004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10449
10450 * bcache.c (print_percentage): Use floating point to avoid
10451 incorrect results when portion*100 overflows.
10452
81332287
KB
104532004-03-19 Kevin Buettner <kevinb@redhat.com>
10454
10455 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10456 (ppc_linux_init_extra_frame_info)
10457 (ppc_linux_frameless_function_invocation)
10458 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10459 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10460 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10461 (rs6000_frame_chain): Delete declarations.
10462 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10463 (ppc_linux_init_extra_frame_info)
10464 (ppc_linux_frameless_function_invocation)
10465 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10466 (ppc_linux_init_abi): Remove registration of above deleted functions.
10467 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10468 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10469 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10470 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10471 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10472 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10473 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10474 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10475 frame management for all OSABIs.
10476
61a65099
KB
104772004-03-19 Andrew Cagney <cagney@redhat.com>
10478
10479 Committed by Kevin Buettner <kevinb@redhat.com>.
10480
10481 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10482 Update copyright.
10483 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10484 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10485 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10486 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10487 unwinders. #ifdef legacy frame code.
10488 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10489 "frame-base.h".
10490 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10491 (struct rs6000_frame_cache, rs6000_frame_cache)
10492 (rs6000_frame_this_id, rs6000_frame_prev_register)
10493 (rs6000_frame_sniffer, rs6000_frame_unwind)
10494 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10495 (rs6000_frame_base): Implement a traditional frame unwinder.
10496 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10497 frame unwinder.
10498
88f7da05
KB
104992004-03-19 Kevin Buettner <kevinb@redhat.com>
10500
10501 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10502 breakpoint address for watchpoints or the catch eventpoints.
10503 Add new paramter ``bptype''. Adjust all callers.
10504
f826dce1
AC
105052004-03-19 Andrew Cagney <cagney@redhat.com>
10506
33cb8b0f
AC
10507 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10508
f826dce1
AC
10509 * PROBLEMS: Delete note that ARM does not use frame code, problem
10510 fixed.
10511
43b1ab88
AC
105122004-03-18 Andrew Cagney <cagney@redhat.com>
10513
292ab034
AC
10514 * stack.c (return_command): Delete code wrapped in #ifdef
10515 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10516
43b1ab88
AC
10517 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10518
dbfe4626
AC
105192004-03-18 Andrew Cagney <cagney@redhat.com>
10520
10521 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10522 DEPRECATED_IN_SIGTRAMP.
10523 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10524 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10525 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10526 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10527 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10528 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10529 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10530 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10531 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10532 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10533
0cad6aec
AC
105342004-03-18 Andrew Cagney <cagney@redhat.com>
10535
10536 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10537 (struct frame_base_table_entry): Define.
10538 (struct frame_base_table): Re-implement as a linked list.
10539 (frame_base_init): Re-implement.
10540 (frame_base_table): Delete function.
10541 (append_predicate): Delete function.
10542 (frame_base_append_sniffer): Update.
10543 (frame_base_set_default): Update.
10544 (frame_base_find_by_frame): Update.
10545 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10546 * Makefile.in (frame-base.o): Update dependencies.
10547
9982c2e7
AC
105482004-03-17 Andrew Cagney <cagney@redhat.com>
10549
10550 * frame.c (legacy_get_prev_frame): Pass correct frame to
10551 frame_unwind_find_by_frame.
10552
8dfe8985
DC
105532004-03-17 David Carlton <carlton@kealia.com>
10554
10555 * NEWS: Mention C++ nested types and namespaces
10556
ed47347a
MC
105572004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10558
10559 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10560 and "Regressions since gdb 5.3.". Add known regressions since
10561 gdb 6.0.
10562
90aeadfc
DC
105632004-03-16 David Carlton <carlton@kealia.com>
10564
10565 * dwarf2read.c (process_structure_scope): Process children even
10566 when we're a declaration.
10567
73912b9b
AC
105682004-03-16 Andrew Cagney <cagney@redhat.com>
10569
10570 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10571 * blockframe.c (find_pc_partial_function)
10572 (find_pc_sect_partial_function): Merge into a single
10573 find_pc_partial_function.
10574
283accbc
MK
105752004-03-16 Mark Kettenis <kettenis@gnu.org>
10576
10577 * i386bsd-nat.c: s/regno/regnum/g.
10578 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10579 FP0_REGNUM.
10580 (store_inferior_registers): Likewise.
10581
f5b1afdf
MK
105822004-03-16 Mark Kettenis <kettenis@gnu.org>
10583
10584 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10585 of i387_fill_fsave.
10586 (store_inferior_registers): Call i387_collect_fsave and
10587 i387_collect_fxsave instead of i387_fill_fsave and
10588 i387_fill_fxsave.
10589
41fe5eb3
AC
105902004-03-15 Andrew Cagney <cagney@redhat.com>
10591
10592 * Makefile.in (frame-unwind.o): Update dependencies.
10593 * frame-unwind.c: Include "gdb_obstack.h".
10594 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10595 parameter.
10596 (append_predicate): Delete function.
10597 (struct frame_unwind_table_entry): New structure.
10598 (struct frame_unwind_table): Replace "sniffer" with "head" and
10599 "tail".
10600 (frame_unwind_append_sniffer): Update.
10601 (frame_unwind_find_by_frame): Update.
10602 (_initialize_frame_unwind): Registe frame_unwind_init using
10603 gdbarch_data_register_pre_init.
10604
3f63813d
MK
106052004-03-15 Mark Kettenis <kettenis@gnu.org>
10606
10607 * i386bsd-nat.c: Update copyright year.
10608 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10609 define unconditionally.
10610
3248c325 106112004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
10612
10613 * i387-tdep.h (i387_collect_fsave): New prototype.
10614 * i387-tdep.c (i387_collect_fsave): New function containing most
10615 of the code from i387_fill_fsave.
3248c325 10616 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 10617
871fbe6a
MK
106182004-03-15 Mark Kettenis <kettenis@gnu.org>
10619
10620 * i386-linux-tdep.c: Update copyright year.
10621 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10622 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10623 svr4_ilp32_link_map_offsets instead of
10624 i386_linux_svr4_fetch_link_map_offsets.
10625
8176b9b8
DC
106262004-03-15 David Carlton <carlton@kealia.com>
10627
10628 Fix for PR c++/1553:
10629 * dwarf2read.c (read_structure_type): Determine type name by
10630 calling determine_class_name.
10631 (determine_class_name): New.
10632 (determine_prefix): Look at TYPE_TAG_NAME and call
10633 determine_class_name when appropriate.
10634 (determine_prefix_aux, class_name): Delete.
9d58e29d 10635 (read_namespace): Set die->type.
8176b9b8 10636
fe8bf7d7
KB
106372004-03-15 Kevin Buettner <kevinb@redhat.com>
10638
10639 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10640 unused macro definition. The definition in target.h (or perhaps
10641 elsewhere) takes precedence.
10642
ed6edd9b
AC
106432004-03-15 Andrew Cagney <cagney@redhat.com>
10644
f9be684a
AC
10645 * ppc-tdep.h: Update copyright.
10646 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10647 function signatures to match "regsets.h".
10648 * ppc-linux-tdep.c: Include "regset.h".
10649 (ELF_GREGSET_SIZE): Delete.
10650 (right_supply_register): New function.
10651 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10652 using right_supply_register.
10653 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10654 functions.
10655 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10656 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10657 (_initialize_ppc_linux_tdep): Do not register
10658 ppc_linux_regset_core_fns.
10659 (ppc_linux_regset_from_core_section): Replace
10660 fetch_core_registers.
10661 (ppc_linux_regset_core_fns): Delete.
10662 * ppc-linux-nat.c: (right_fill_reg): New function.
10663 (supply_gregset): Update call to ppc_linux_supply_gregset.
10664 (fill_gregset): Clear the register set, use right_fill_reg.
10665 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10666 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10667
ed6edd9b
AC
10668 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10669 unsigned.
10670
030f20e1
AC
106712004-03-15 Andrew Cagney <cagney@redhat.com>
10672
10673 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10674 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10675 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10676 and register_gdbarch_data.
10677 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10678 (struct gdbarch_data): Replace "init" by "pre_init" and
10679 "post_init".
10680 * gdbarch.h, gdbarch.c: Re-generate.
10681 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10682 with"obstack", use OBSTACK_ZALLOC.
10683 (dwarf2_frame_ops): Delete.
10684 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10685 (dwarf2_frame_init_reg): Use gdbarch_data.
10686 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 10687 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
10688 (_initialize_svr4_solib): Update.
10689 * user-regs.c (_initialize_user_regs): Update.
10690 * reggroups.c (_initialize_reggroup): Update.
10691 * regcache.c (_initialize_regcache): Update.
10692 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10693 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10694 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10695 * frame-unwind.c (_initialize_frame_unwind): Update.
10696 * frame-base.c (_initialize_frame_base): Update.
10697 * user-regs.c (user_reg_add): Update.
10698 * reggroups.c (reggroup_add): Update.
10699 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10700 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10701 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10702 * frame-base.c (frame_base_table): Update.
10703 * remote.c (_initialize_remote): Update.
10704 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 10705
3111a3fc
AC
107062004-03-15 Andrew Cagney <cagney@redhat.com>
10707
10708 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10709
5ecb7103
KB
107102004-03-15 Kevin Buettner <kevinb@redhat.com>
10711
10712 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10713 * frv-linux-tdep.c: New file.
10714 * frv-tdep.c (struct gdbarch_tdep): Add new field
10715 ``sigcontext_reg_addr''.
10716 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10717 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10718 (frv_sigramp_frame_sniffer): New functions.
10719 (frv_sigtramp_frame_unwind): New static global.
10720 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10721 sniffers.
10722 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10723 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10724
1ccda5e9
KB
107252004-03-15 Kevin Buettner <kevinb@redhat.com>
10726
10727 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10728 but not via a call to error(), when unable to read memory.
10729
b375a0a5
KB
107302004-03-15 Kevin Buettner <kevinb@redhat.com>
10731
10732 * frv-tdep.c (frv_call_dummy_words): Delete.
10733 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10734
4fdf6121
AC
107352004-03-15 Andrew Cagney <cagney@redhat.com>
10736
10737 * infrun.c (handle_step_into_function, step_over_function): Only
10738 update and use STEP_FRAME_ID when the system is using legacy
10739 frames. Update comments.
10740
34021503
MK
107412004-03-14 Mark Kettenis <kettenis@gnu.org>
10742
187e21d1
MK
10743 * amd64-linux-tdep.h: Remove file.
10744 * amd64-linux-tdep.c: Don't include "inferior.h" and
10745 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10746 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10747 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10748 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10749 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10750 macros.
10751 (user_to_gdb_regmap): Remove variable.
10752 (amd64_linux_gregset_reg_offset): New variable.
10753 (amd64_core_fns): Remove variable.
10754 (fetch_core_registers): Remove function.
10755 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10756 functions.
10757 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10758 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10759 * Makefile.in (amd64_linux_tdep_h): Remove.
10760 (amd64-linux-nat.o): Update dependencies.
10761 (amd64-linux-tdep.o): Update dependencies.
10762
99679982
MK
10763 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10764 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10765 functions.
10766 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10767
34021503
MK
10768 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10769 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10770
134d01f1
DJ
107712004-03-14 Daniel Jacobowitz <drow@mvista.com>
10772
10773 * dwarf2read.c (read_structure_type): Rename from
8718a420 10774 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
10775 Return immediately if die->type is set. Call read_type_die before
10776 dwarf2_add_member_fn.
10777 (process_structure_scope): New function.
10778 (read_enumeration_type, process_enumeration_scope): New functions,
10779 broken out from read_enumeration. Don't create the enumeration
10780 type if it has already been created.
10781 (read_enumeration): Removed.
10782 (process_die): Call read_structure_type, process_structure_scope,
10783 read_enumeration_type, and process_enumeration_scope. Just call
10784 new_symbol for base and subrange types. Add a comment about other
10785 type dies.
10786 (read_type_die): Call read_enumeration_type.
10787 (add_partial_structure, new_symbol): Update comments.
10788
65760afb
SC
107892004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10790
10791 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10792
10f59415
SC
107932004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10794
10795 * tui/tui-win.h (tui_get_cmd_list): Declare.
10796 * tui/tui-win.c (tui_command): New function.
10797 (tui_get_cmd_list): New function.
10798 (_initialize_tui_win): Moved initialization of tui command in
10799 tui_get_cmd_list.
10800
10801 * tui/tui-data.c (init_content_element): Setup new data members.
10802 (init_win_info): Likewise.
10803 (free_content_elements): Free it.
10804 * tui/tui-data.h (struct tui_data_element): Store the register
10805 content to print.
10806 (struct tui_data_info): Keep the current register group.
10807
10808 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10809
10810 * tui/tui-regs.h (tui_show_registers): Update prototype.
10811 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10812 (tui_resize_all): No need to calculate anything for register window.
10813 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10814 (tui_set_register_element, tui_set_general_regs_content): Remove.
10815 (tui_set_special_regs_content): Remove.
10816 (tui_set_general_and_special_regs_content): Remove.
10817 (tui_set_float_regs_content): Remove.
10818 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10819 (tui_set_regs_content): Remove.
10820 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10821 (tui_v_show_registers_command_support): Remove.
10822 (tui_show_registers): Use a reggroup to specify the registers to show.
10823 (tui_show_register_group): New function.
10824 (tui_display_registers_from): Compute the layout of register window
10825 and refresh with new API; be sure to delete old register windows.
10826 (tui_check_register_values): Update to use tui_get_register and
10827 tui_display_data.
10828 (tui_display_register): Just refresh the register window part.
10829 (tui_register_format): Format registers and save in tui_data_element.
10830 (tui_get_register): New to combine tui_reg_value_has_changed and
10831 tui_get_register_raw_value; fix to use the new gdb API.
10832 (tui_show_float_command): Renamed tui_reg_float_command.
10833 (tui_show_general_command): Renamed tui_reg_general_command.
10834 (tui_show_special_command): Renamed tui_reg_system_command.
10835 (_initialize_tui_regs): Remove unused commands.
10836
c3364ea4
MK
108372004-03-13 Mark Kettenis <kettenis@gnu.org>
10838
27d1e716
MK
10839 * NEWS (New native configurations): Mention OpenBSD/amd64.
10840
c3364ea4
MK
10841 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10842 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10843 Remove defines.
10844 * config/i386/nm-fbsd64.h: Likewise.
10845 * config/i386/nm-obsd.h: Likewise.
10846 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10847 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10848
b2d6d697
KB
108492004-03-12 Kevin Buettner <kevinb@redhat.com>
10850
10851 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
10852 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10853 New constants.
10854
76e43199
KB
10855 From Richard Sandiford <rsandifo@redhat.com>:
10856 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10857
34ce532e
KB
108582004-03-12 Kevin Buettner <kevinb@redhat.com>
10859
10860 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10861 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10862 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10863 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10864 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10865 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10866 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10867 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10868 definitions from frv-tdep.c to frv-tdep.h.
10869
c4d10515
KB
108702004-03-12 Kevin Buettner <kevinb@redhat.com>
10871
10872 Add shared library support for FR-V FDPIC ABI:
10873 * Makefile.in (solib-frv.o): Add dependencies.
10874 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10875 New functions.
10876 (frv_push_dummy_call): Add support for FDPIC ABI.
10877 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10878 for FDPIC ABI.
10879 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10880 (frv_fdpic_find_canonical_descriptor): Declare.
10881 * solib-frv.c: New file.
10882 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10883 * config/frv/tm-frv.h (solib.h): Include.
10884
ed1bd989
KB
108852004-03-12 Kevin Buettner <kevinb@redhat.com>
10886
10887 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10888 (frv-tdep.o): Update dependencies.
10889 * frv-tdep.h: New file.
10890 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10891 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10892 constants.
10893 (struct gdbarch_tdep): Add new member ``frv_abi''.
10894 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10895 functions.
10896 (new_variant): Set ``frv_abi'' field.
10897 (gdb_arch_init): Detect FDPIC executables.
10898
82b38f72
MK
108992004-03-12 Mark Kettenis <kettenis@gnu.org>
10900
10901 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10902 wrapper.
10903
db1ea9ba
AC
109042004-03-11 Andrew Cagney <cagney@redhat.com>
10905
10906 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10907
f8766ec1
KB
109082004-03-11 Kevin Buettner <kevinb@redhat.com>
10909
10910 * solist.h (master_so_list): New function.
10911 * solib.c (master_so_list): Likewise.
10912 * solib-svr4.c (enable_break): Iterate over so_list entries
10913 obtained from master list instead of entries obtained directly
10914 via svr4_current_sos().
10915
523f6a27
BE
109162004-03-10 Ben Elliston <bje@gnu.org>
10917
10918 * MAINTAINERS: Update my mail address.
10919
37814c18
KI
109202004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10921
10922 * remote-m32r-sdi.c: Support hardware watchpoint.
10923
8b9740d8
DJ
109242004-03-09 Daniel Jacobowitz <drow@mvista.com>
10925
10926 * user-regs.c: Update copyright years.
10927 (struct user_regs): Rename to gdb_user_regs.
10928 (append_user_reg, builtin_user_regs, user_regs_init)
10929 (user_reg_add, user_reg_map_name_to_regnum)
10930 (usernum_to_user_reg): Update.
10931
4bb7a0a7
DJ
109322004-03-09 Daniel Jacobowitz <drow@mvista.com>
10933
10934 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10935 (skip_children): New functions.
10936 (locate_pdi_sibling): Call skip_children.
10937
44e1a9eb
DJ
109382004-03-09 Daniel Jacobowitz <drow@mvista.com>
10939
10940 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10941 * gdbtypes.c (check_typedef): Update comments.
10942
f3dd6933
DJ
109432004-03-09 Daniel Jacobowitz <drow@mvista.com>
10944
10945 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10946 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10947 pointer. Update comment about comp_unit_head.
10948 (struct abbrev_info): Shorten two int flags.
10949 (dwarf_alloc_abbrev): Take a CU argument.
10950 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10951 each time through the loop. Update cleanup argument.
10952 (psymtab_to_symtab_1): Update cleanup call.
10953 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10954 abbrev_obstack.
10955 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10956 Just call obstack_free and clear the pointer.
10957
b40c7d58
DJ
109582004-03-09 Daniel Jacobowitz <drow@mvista.com>
10959
10960 * infrun.c (handle_inferior_event): Remove short-circuit code for
10961 events in a different thread.
10962
333dabeb
DJ
109632004-03-09 Daniel Jacobowitz <drow@mvista.com>
10964
10965 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10966 print the whole transfer.
10967 (initialize_targets): Update description of "set debug target".
10968
aa17d93e
DJ
109692004-03-09 Daniel Jacobowitz <drow@mvista.com>
10970
10971 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10972
0b71f08f
NW
109732004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10974
10975 * MAINTAINERS (write after approval): Add myself.
10976
3930f270
CV
109772004-03-08 Corinna Vinschen <vinschen@redhat.com>
10978
10979 * sh-tdep.c (sh_print_registers_info): Use for loop.
10980 Don't skip multiple registers when a float register is encountered.
10981
a2b4a96c
CV
109822004-03-08 Corinna Vinschen <vinschen@redhat.com>
10983
10984 Fix PR tdep/1291.
10985 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10986 to official SH documentation.
10987
f15a4bc0
AC
109882004-03-07 Andrew Cagney <cagney@redhat.com>
10989
10990 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10991 unused function.
10992
9498281f
DJ
109932004-03-07 Daniel Jacobowitz <drow@mvista.com>
10994
10995 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10996 (arm_get_next_pc): Handle BX and BLX.
10997
449e1137
AC
109982004-03-07 Andrew Cagney <cagney@redhat.com>
10999
eded0a31
AC
11000 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
11001 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
11002 HPPA_SP_REGNUM.
11003 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
11004 (hppa_target_read_fp): Delete.
11005 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
11006 register_virtual_size, max_register_raw_size,
11007 max_register_virtual_size, register_byte, register_size,
11008 target_read_fp, fp_regnum, and register_bytes. Set register_type
11009 instead of register_virtual_type.
11010 (hppa32_register_type, hppa64_register_type): Replace
11011 hppa32_register_virtual_type and hppa64_register_virtual_type.
11012 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
11013 (HPPA_FP_REGNUM): Define.
11014
f5f907e2
AC
11015 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
11016
69b4bbe4
AC
11017 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
11018 (pa_do_registers_info): Delete.
11019 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 11020 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 11021 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 11022
78161e48
AC
11023 * infcall.c (legacy_push_dummy_code): Delete #ifdef
11024 GDB_TARGET_IS_HPPA code.
11025 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 11026 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
11027 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
11028 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
11029 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
11030 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
11031 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 11032 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
11033 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
11034 (hppa_frameless_function_invocation, hppa64_store_return_value)
11035 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 11036 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 11037 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 11038 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
11039 (find_proc_framesize, deposit_21, restore_pc_queue)
11040 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 11041 (rp_saved, pc_in_linker_stub): Delete.
78161e48 11042
782eae8b
AC
11043 Unconditionally enable 64-bit frame and ABI code.
11044 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
11045 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
11046 push_dummy_frame, fix_call_dummy, push_arguments,
11047 call_dummy_location, extract_return_value, use_struct_convention,
11048 store_return_value, store_struct_return, saved_pc_after_call,
11049 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
11050 frame_chain, frame_chain_valid, frameless_function_invocation,
11051 frame_saved_pc, and pop_frame.
78161e48 11052
449e1137
AC
11053 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
11054 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
11055 (hppa_gdbarch_init): Do not set PC_REGNUM.
11056
12507572
MK
110572004-03-06 Mark Kettenis <kettenis@gnu.org>
11058
11059 * config/alpha/tm-fbsd.h: Remove file.
11060 * config/alpha/fbsd.mt: Tweak comment.
11061 (TM_FILE): Set to tm-alpha.h.
11062
c107cc1b
AC
110632004-03-05 Andrew Cagney <cagney@redhat.com>
11064
11065 * infrun.c (step_over_function): When non-legacy code, and no
11066 step_frame_id, use the unwinder to get the caller's frame ID.
11067
f2e7c15d
MK
110682004-03-05 Mark Kettenis <kettenis@gnu.org>
11069
8b0c3633
MK
11070 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
11071 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
11072 bfd_arch_unknown. Adjust comment.
11073
f2e7c15d
MK
11074 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
11075 * i386obsd-tdep.c: Correct spelling in comment.
11076 * i386nbsd-tdep.c: Correct spelling in comment.
11077 * sparc-tdep.c: Correct spelling in comments.
11078
1198ecbe
DC
110792004-03-05 David Carlton <carlton@kealia.com>
11080
11081 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
11082 bug.
11083
9eb42ed1
MK
110842004-03-05 Mark Kettenis <kettenis@gnu.org>
11085
11086 * sparc-tdep.c: Fix typo in comment.
11087
52b5e991
JB
110882004-03-04 J. Brobecker <brobecker@gnat.com>
11089
11090 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
11091
d8151005
DJ
110922004-03-04 Daniel Jacobowitz <drow@mvista.com>
11093
11094 * dwarf2read.c: Add comment describing memory lifetimes.
11095 (struct dwarf2_pinfo): Update comment.
11096 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
11097 (read_enumeration, new_symbol): Don't use obsavestring.
11098
cbeae229
MK
110992004-03-04 Mark Kettenis <kettenis@gnu.org>
11100
722d18c2
MK
11101 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
11102 instead of amd64_fill_fxsave.
11103 * amd64bsd-nat.c (store_inferior_registers): Likewise.
11104 * amd64fbsd-nat.c (fill_fpregset): Likewise.
11105
cbeae229
MK
11106 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
11107 Reorganize code a bit.
11108
b4206d25
OF
111092004-03-04 Orjan Friberg <orjanf@axis.com>
11110
11111 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
11112 when the frame pointer is pushed. Don't set the frame pointer's
11113 address on the stack unless it's actually located there.
b4206d25
OF
11114 Set the SRP's address on the stack correctly when the PC is still in
11115 the prologue.
11116 (cris_return_value): New function.
11117 (cris_gdbarch_init): Clear deprecated store_return_value,
11118 extract_return_value.
11119
49b0b195
JB
111202004-03-02 Jim Blandy <jimb@redhat.com>
11121
11122 * stabsread.c (reg_value_complaint): The maximum register number
11123 is one less than the number of registers.
11124
e9ff708b
AC
111252004-03-02 Andrew Cagney <cagney@redhat.com>
11126
11127 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
11128 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
11129 trailing comma and redundant assignment of I386_ST0_REGNUM.
11130 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
11131 32-bit segment registers.
11132
d4715e41
AC
111332004-03-01 Andrew Cagney <cagney@redhat.com>
11134
11135 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
11136 use frame_relative_level and get_next_frame.
11137
3ce2bf18
AC
111382004-02-29 Andrew Cagney <cagney@redhat.com>
11139
11140 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11141 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11142 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11143 Delete macro.
11144
2da6aac3
DJ
111452004-02-29 Daniel Jacobowitz <drow@mvista.com>
11146
11147 * inflow.c (terminal_inferior): Don't give up the terminal if we
11148 previously couldn't get the inferior's terminal state.
11149
6ba34a8d
DJ
111502004-02-29 Daniel Jacobowitz <drow@mvista.com>
11151
11152 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11153 PC_REGNUM.
11154
faae5abe
AC
111552004-02-28 Andrew Cagney <cagney@redhat.com>
11156
11157 * NEWS: Refer to GDB 6.1.
11158 * README: Refer to GDB 6.1.
11159 * PROBLEMS: Refer to GDB 6.1.
11160
2227a3c5
DJ
111612004-02-28 Daniel Jacobowitz <drow@mvista.com>
11162
11163 * thread-db.c (disable_thread_signals): Remove unused function.
11164
80571bff
MK
111652004-02-28 Mark Kettenis <kettenis@gnu.org>
11166
041bd74b
MK
11167 * amd64-nat.c: Include "gdb_string.h".
11168 (amd64_collect_native_gregset): Zero-extend the 32-bit
11169 general-purpose registers and %eip.
11170
3c017e40
MK
11171 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11172 * amd64-tdep.c (amd64_collect_fxsave): New function.
11173 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11174
80571bff
MK
11175 * i387-tdep.h: Update copyright year.
11176 (i387_collect_fxsave): New prototype.
11177 * i387-tdep.c: Update copyright year.
11178 (i387_collect_fxsave): New function containing most of the code
11179 from i387_fill_fxsave.
11180 (i387_fill_fxsave): Call i387_collect_fxsave.
11181
50d71875
AC
111822004-02-28 Andrew Cagney <cagney@redhat.com>
11183
11184 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11185 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
11186
4a28816e
MK
111872004-02-28 Mark Kettenis <kettenis@gnu.org>
11188
11189 * amd64-tdep.c (amd64_frame_cache): Fix comment.
11190
dbda9972
AC
111912004-02-28 Andrew Cagney <cagney@redhat.com>
11192
11193 * utils.c: Use "", instead of <>, to include readline.
11194 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11195 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11196 * source.c, solib.c, exec.c, event-top.c: Ditto.
11197 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11198 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11199 * Makefile.in: Update all dependencies.
11200 (readline_tilde_h, readline_history_h): Define.
11201 (readline_headers): Delete.
11202
83277a99
MK
112032004-02-28 Mark Kettenis <kettenis@gnu.org>
11204
91ae4303
MK
11205 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11206 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11207 "config/i386/tm-lx64.h".
11208
83277a99
MK
11209 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11210 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
11211 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11212
6e1d7d6c
AC
112132004-02-28 Andrew Cagney <cagney@redhat.com>
11214
ecc9ac84
AC
11215 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11216
6e1d7d6c
AC
11217 * breakpoint.c (_initialize_breakpoint): Use
11218 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
11219 Add help to show command.
11220
9671aeef
MK
112212004-02-28 Mark Kettenis <kettenis@gnu.org>
11222
7fa2737c
MK
11223 * i386-nat.c: Reformat to be closer to coding standards.
11224 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11225 `retval'. Make variables `align' and `size' local to while-loop.
11226 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11227 (_initialize_i386_nat): New prototype.
11228
9671aeef
MK
11229 * tui/tui.c: Include <readline/readline.h> instead of
11230 "readline/readline.h". Include it after <term.h> and
11231 "gdb_curses.h".
11232
fca7aa43
AC
112332004-02-27 Andrew Cagney <cagney@redhat.com>
11234
412275d5
AC
11235 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11236 the new frame unwind code.
11237 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11238 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11239 PCOQ_HEAD_REGNUM.
11240
fca7aa43
AC
11241 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11242 "return_value" and "push_dummy_call".
11243 (hppa32_use_struct_convention): Delete unused function.
11244 (hppa32_store_return_value): Delete unused function.
11245 (hppa32_extract_return_value): Delete unused function.
11246 (hppa32_stack_align): Delete function.
11247
e6a8a7d2
EZ
112482004-02-27 Eli Zaretskii <eliz@elta.co.il>
11249
11250 * coffread.c (enter_linenos): Don't let rawptr reference memory
11251 outside linetab[]'s limits.
11252
1797a8f6
AC
112532004-02-27 Andrew Cagney <cagney@redhat.com>
11254
11255 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11256 inferior stack space - the stack needs to grow upwards.
11257 (hppa32_frame_align): New function.
11258 (hppa64_frame_align): Replace hppa_frame_align.
11259 (hppa_gdbarch_init): Update.
11260
2e4b5889
OF
112612004-02-26 Orjan Friberg <orjanf@axis.com>
11262
11263 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11264 (dwarf2-frame.h): Include.
11265 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11266 Remove static variables related to ABI setting.
11267 (struct gdbarch_tdep): Remove cris_abi member.
11268 (struct frame_extra_info): Remove.
11269 (cris_unwind_cache, stack_item): New structs.
11270 (cris_frame_unwind, cris_frame_base): New variables.
11271 (push_stack_item, pop_stack_item)
11272 (cris_frame_unwind_cache, cris_frame_this_id)
11273 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11274 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11275 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11276 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11277 (cris_reg_struct_has_addr): New functions.
11278 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 11279 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
11280 (cris_store_struct_return, cris_frameless_function_invocation)
11281 (cris_pop_frame, cris_skip_prologue_main)
11282 (cris_abi_original_store_return_value)
11283 (cris_abi_v2_store_return_value)
11284 (cris_abi_original_extract_return_value)
11285 (cris_abi_v2_extract_return_value)
11286 (cris_abi_original_reg_struct_has_addr)
11287 (cris_abi_v2_reg_struct_has_addr)
11288 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11289 (cris_push_return_address, cris_abi_update): Remove.
11290 (_initialize_cris_tdep): Remove ABI command.
11291 (cris_dump_tdep): Ditto.
8718a420 11292 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
11293 Set store_return_value, extract_return_value, push_dummy_code,
11294 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11295 frame_unwind_append_sniffer, frame_base_set_default.
11296 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11297 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11298 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 11299 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
11300 init_extra_frame_info, frameless_function_invocation, frame_chain,
11301 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11302 dummy_write_sp.
8718a420 11303
6b9acc27
JJ
113042004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11305
11306 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11307 * valprint.c (print_hex_chars): Change from static to external.
11308 (print_char_chars): New function.
11309 * printcmd.c (print_scalar_formatted): For integer and enum types
11310 that are longer than LONGEST, perform processing via appropriate
11311 print_*_chars routines.
11312
a431654a
AC
113132004-02-26 Andrew Cagney <cagney@redhat.com>
11314
11315 * Makefile.in: Update dependencies.
11316 Changes from Ulrich Weigand,
11317 * s390-tdep.c: Include "dwarf2-frame.h".
11318 (s390_dwarf2_frame_init_reg): New function.
11319 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11320 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11321
fa8d40ab
JJ
113222004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11323
11324 * breakpoint.c (pending_break_support): New setting variable.
11325 (break_command_1): Account for pending_break_support setting
11326 when creating pending breakpoints.
11327 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11328 (_initialize_breakpoint): Add "set breakpoint pending" and
11329 "show breakpoint pending" commands.
11330
0dcd613f
AC
113312004-02-26 Andrew Cagney <cagney@redhat.com>
11332
11333 Fix PR i18n/1570.
11334 * charset.c (backslashable, backslashed, represented): Remove 'e'
11335 from list of escaped characters, not part of ISO-C.
11336
479272a3
JB
113372004-02-25 J. Brobecker <brobecker@gnat.com>
11338
11339 From Peter Schauer <schauer@pdf.de>:
11340 * tui/tui.c: Move system header includes after local includes.
11341 Fixes a build failure on solaris systems.
11342
7613d933
JB
113432004-02-25 J. Brobecker <brobecker@gnat.com>
11344
11345 * configure.in: Refine the previous change.
11346 * configure: Regenerate.
11347
9c1488cb
MK
113482004-02-25 Mark Kettenis <kettenis@gnu.org>
11349
11350 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11351 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11352 "amd64-tdep.h" instead of "x86-64-tdep.h".
11353 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11354 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11355 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11356 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11357 and "x86-64-tdep.c".
11358 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11359 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11360 and "x86-64-tdep.c".
11361 * amd64bsd-nat.c: Update copyright year.
11362 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11363 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11364 "x86-64-tdep.h".
11365 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11366 "x86-64-tdep.h".
11367 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11368 "x86-64-tdep.h".
11369 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11370 "x86-64-tdep.h".
11371 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11372 "x86-64-tdep.h".
11373 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11374 "x86-64-tdep.h".
8718a420 11375 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
11376 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11377 * Makefile.in (amd64_linux_tdep_h): Renamed from
11378 x86_64_linux_tdep_h.
11379 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11380 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11381 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11382 (amd64obsd-tdep.o): Update dependencies.
11383 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11384 dependencies.
11385 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11386 dependencies.
11387 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11388 amd64-linux-nat.c amd64-linux-tdep.c.
11389 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11390 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11391 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11392 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11393 amd64-tdep.o and amd64-linux-tdep.o.
11394 (TM_FILE): Set to tm-linux64.h.
11395 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11396 (NAT_FILE): Set to nm-linux64.h.
11397 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11398 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11399 amd64-tdep.o.
11400 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11401 amd64-tdep.o.
11402 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11403 amd64-tdep.o.
11404
4b8dad4a
RM
114052004-02-25 Roland McGrath <roland@redhat.com>
11406
11407 * remote.c (remote_protocol_qPart_auxv): New variable.
11408 (init_all_packet_configs): Initialize it.
11409 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11410 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11411 (show_remote_cmd): Call it.
11412 (_initialize_remote): Initialize commands.
11413 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11414 service TARGET_OBJECT_AUXV requests.
11415
66745969
JB
114162004-02-25 J. Brobecker <brobecker@gnat.com>
11417
11418 * configure.in: Make sure that the wborder function is available.
11419 Otherwise, search for it in the cur_colr library.
11420 * configure: Regenerate.
11421
79508e1e
AC
114222004-02-25 Andrew Cagney <cagney@redhat.com>
11423
11424 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11425
571ee600
MK
114262004-02-25 Mark Kettenis <kettenis@gnu.org>
11427
11428 * config/i386/tm-x86-64linux.h: Tweak comments.
11429
2b1b322f 114302004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
11431
11432 * MAINTAINERS: Add self to write-after-approval list.
11433
4d2acc65
AC
114342004-02-25 Andrew Cagney <cagney@redhat.com>
11435
4b8dad4a 11436 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
11437 * cli/cli-script.c (execute_control_command): Unconditionally
11438 install a cleanup. Default "ret" to "invalid_control". Use
11439 "break" instead of "return" to escape from the switch.
11440
4cfcaf21
JB
114412004-02-24 J. Brobecker <brobecker@gnat.com>
11442
11443 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11444 with the lines macro defined in term.h on AiX.
11445 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11446 a collision with the label_width macro defined in term.h on AiX.
11447
54a5c8d8
KB
114482004-02-23 David Mosberger <davidm@hpl.hp.com>
11449
11450 Committed by Kevin Buettner <kevinb@redhat.com>.
11451
11452 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11453 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11454 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11455 instead of ia64_write_pc().
11456 * ia64-linux-tdep.c (regcache.h): Include.
11457 (ia64_linux_write_pc): New function.
4b8dad4a 11458
8a1dac83
RM
114592004-02-23 Roland McGrath <roland@redhat.com>
11460
11461 * auxv.c (info_auxv_command): Fix typos in error messages.
11462
90f90721
MK
114632004-02-23 Mark Kettenis <kettenis@gnu.org>
11464
8a1dac83 11465 * x86-64-tdep.h: Tweak comment.
90f90721
MK
11466 (enum amd64_regnum): New.
11467 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11468 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11469 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11470 (X86_64_XMM1_REGNUM): Removed.
11471 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11472 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11473 prototypes for renamed functions.
11474 * x86-64-tdep.c: Fix typo.
11475 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11476 register numbers.
11477 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11478 Use constants from `enum amd64_regnum' for register numbers.
11479 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11480 (amd64_analyze_prologue, amd64_frame_cache,
11481 amd64_sigtramp_frame_cache): Use constants from `enum
11482 amd64_regnum' for register numbers.
11483 (amd64_supply_fpregset): Adjust for renamed functions.
11484 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11485 `enum amd64_regnum' for register numbers.
11486 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11487 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11488 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11489 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11490 (amd64_linux_fill_gregset): Adjust for renamed macros.
11491 (fetch_core_registers): Adjust for renamed functions.
11492 (amd64_linux_init_abi): Adjust for renamed functions.
11493 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11494 renamed functions.
11495 * amd64-nat.c: Adjust for renamed macros.
11496 * amd64bsd-nat.c (fetch_inferior_registers)
11497 (store_inferior_registers): Use constants from `enum amd64_regnum'
11498 for register numbers. Adjust for renamed variables.
11499 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11500 renamed variables.
11501 (_initialize_amd64fbsd_nat): Use constants from `enum
11502 amd64_regnum' for register numbers.
11503 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11504 `enum amd64_regnum' for register numbers.
11505 (amd64fbsd_init_abi): Adjust for renamed functions.
11506 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11507 `enum amd64_regnum' for register numbers.
11508 (amd64nbsd_init_abi): Adjust for renamed functions.
11509 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11510 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11511 `enum amd64_regnum' for register numbers.
11512 (amd64obsd_init_abi): Adjust for renamed functions.
11513 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11514
d5479188
JJ
115152004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11516
11517 * breakpoint.c (print_one_breakpoint): Do not output spaces
11518 after printing <PENDING> for a pending breakpoint.
11519
81cb7cc9
JJ
115202004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11521
11522 * printcmd.c (print_scalar_formatted): Initialize val_long
11523 to remove compiler warning message.
11524
cbdeadca
JJ
115252004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11526
11527 * defs.h (nquery, yquery): New prototypes.
11528 * breakpoint.c (break_command_1): Use new nquery interface.
11529 * utils.c (defaulted_query, nquery, yquery): New functions.
11530
da6bab63
AC
115312004-02-23 Andrew Cagney <cagney@redhat.com>
11532
2f690297
AC
11533 * hppa-tdep.c (hppa_frame_align): New function.
11534 (hppa32_push_dummy_call): New function.
11535 (hppa64_push_dummy_call): New function.
11536 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11537 disabled.
8a1dac83 11538
da6bab63
AC
11539 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11540 FIX_CALL_DUMMY when push_dummy_call is available.
11541 (call_function_by_hand, push_dummy_code): Ditto.
11542
abf9b42d
AC
115432004-02-22 Andrew Cagney <cagney@redhat.com>
11544
11545 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11546 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11547 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11548 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11549 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11550 call_dummy_location to ON_STACK.
11551
10fc94a4
MK
115522004-02-22 Mark Kettenis <kettenis@gnu.org>
11553
51433e4b
MK
11554 * x86-64-linux-tdep.c: Tweak comment.
11555 (amd64_linux_supply_gregset): Renamed from
11556 x86_64_linux_supply_gresget.
11557 (amd64_linux_fill_gregset): Renamed from
11558 x86_64_linux_fill_gregset.
11559 (fetch_core_registers): Adjust for renamed functions.
11560 (amd64_core_fns): Renamed from x86_64_core_fns.
11561 (amd64_linux_sigtramp_start): Renamed from
11562 x86_64_linux_sigtramp_start.
11563 (amd64_linux_pc_in_sigtramp): Renamed from
11564 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11565 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11566 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11567 (amd64_linux_sigcontext_addr): Renamed from
11568 x86_64_linux_sigcontext_addr.
11569 (amd64_linux_sc_reg_offset): Renamed from
11570 x86_64_linux_sc_reg_offset.
11571 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11572 Adjust for renamed functions and variables.
11573 (_initialize_amd64_linux_tdep): Renamed from
11574 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11575 variables.
11576 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11577 Adjust for renamed functions.
11578
430eaf2e
MK
11579 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11580 from x86_64_linux_gregset64_reg_offset.
11581 (amd64_linux_gregset32_reg_offset): Rename from
11582 x86_64_linux_gregset64_reg_offset.
11583 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11584 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11585 (amd64_linux_dr_set_control): Renamed from
11586 x86_64_linux_dr_set_control. Adjust for renamed functions.
11587 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11588 Adjust for renamed functions.
11589 (amd64_linux_dr_reset_addr): Renamed from
11590 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11591 (amd64_linux_dr_get_status): Renamed from
11592 x86_64_linux_dr_get_status. Adjust for renamed functions.
11593 (_initialize_amd64_linux_nat): Renamed from
11594 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11595 functions.
11596 * config/i386/nm-x86-64linux.h: Update copyright year.
11597 Adjust for renamed functions.
11598
10fc94a4
MK
11599 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11600 amd64fbsd_sigtramp_start.
11601 (amd64fbsd_sigtramp_end_addr): Renamed from
11602 amd64fbsd_sigtramp_end.
11603 (amd64fbsd_init_abi): Adjust for renamed variables.
11604 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11605 variables.
11606 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11607 amd64fbsd_sigtramp_start.
11608 (amd64fbsd_sigtramp_end_addr): Renamed from
11609 amd64fbsd_sigtramp_end.
11610
343af405
AC
116112004-02-22 Andrew Cagney <cagney@redhat.com>
11612
537987fc
AC
11613 * hppa-tdep.c (hppa32_return_value): New function.
11614 (hppa64_return_value): New function.
11615 (hppa_gdbarch_init): Set return_value; keep disabled.
11616
fad850b2
AC
11617 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11618 struct-return and inferior function call methods.
11619
26d08f08
AC
11620 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11621 "frame-base.h".
11622 (struct hppa_frame_cache): Define.
11623 (hppa_frame_cache, hppa_frame_this_id): New functions.
11624 (hppa_frame_prev_register): New function.
11625 (hppa_frame_unwind, hppa_frame_base): New variables.
11626 (hppa_frame_unwind_sniffer): New function.
11627 (hppa_frame_base_address, hppa_unwind_pc): New function.
11628 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11629 sniffer, and frame base sniffer; keep disabled.
11630 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11631 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11632
e7d7bd65
AC
11633 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11634 to predicates for "seriously old code".
11635
e963316f
AC
11636 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11637 runtime if(0).
11638
56132691
AC
11639 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11640 unsigned.
11641 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 11642
343af405
AC
11643 * config/pa/tm-hppa.h: Update copyright.
11644 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11645 (deprecated_init_frame_pc_default): Delete declaration.
11646 (hppa_frame_init_saved_regs): Delete declaration.
11647 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11648 * hppa-tdep.c: Include "arch-utils.h".
11649 (hppa_gdbarch_init): Set deprecated init_frame_pc
11650 and deprecated frame_init_saved_regs.
11651 (hppa_frame_init_saved_regs): Make static.
11652
f5859b4d
MK
116532004-02-22 Mark Kettenis <kettenis@gnu.org>
11654
86f6f8e7 11655 Remove old 386BSD support.
cf7c5c23 11656 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
11657 * configure.host: Remove i[34567]86-*-bsd*.
11658 * configure.tgt: Remove i[34567]86-*-bsd*.
11659 * i386b-nat.c: Removed.
11660 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
11661 (i386b-nat.o): Remove dependencies.
11662
86f6f8e7
MK
11663 * config/i386/i386bsd.mh: Removed.
11664 * config/i386/i386bsd.mt: Removed.
11665 * config/i386/nm-i386bsd.h: Removed.
11666 * config/i386/tm-i386bsd.h: Removed.
11667 * config/i386/xm-i386bsd.h: Removed.
11668
971218cd
MK
11669 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11670
7e654c37
MK
11671 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11672 (amd64fbsd_init_abi): Set link map offsets.
11673 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11674 (amd64nbsd_init_abi): Set link map offsets.
11675 * amd64obsd-tdep.c: Include "solib-svr4.h".
11676 (amd64obsd_init_abi): Set link map offsets.
11677 * i386fbsd-tdep.c: Include "solib-svr4.h".
11678 (i386fbsd_init_abi): Set link map offsets.
11679 * i386nbsd-tdep.c: Include "solib-svr4.h".
11680 (i386nbsdelf_init_abi): Set link map offsets.
11681 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11682 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11683 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11684 solib-legacy.o and core-aout.o. Reformat.
11685 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11686 solib-svr4.o, solib-legacy.o. Reformat.
11687 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11688 * config/i386/nbsdelf.mh: Reformat.
11689 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11690 solib-svr4.o, solib-legacy.o and corelow.o.
11691 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11692 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11693 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11694 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11695 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11696 (TM_FILE): Set to tm-fbsd.h.
11697 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11698 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11699 solib-svr4.o.
11700 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11701 solib-svr4.o.
11702 (TM_FILE): Set to nm-nbsd.h.
11703 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11704 Simplify shared library support. Don't include "elf/common.h".
11705 (SVR4_SHARED_LIBS): Don't define.
11706 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11707 "solib.h".
11708 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11709 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11710 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11711 Don't include "i386/tm-i386.h". Include "solib.h".
11712 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11713 Don't include "i386/tm-i386.h".
11714 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11715 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11716 Include "i386/xm-i386.h".
11717 (HOST_LONG_DOUBLE_FORMAT): Remove.
11718
5d93ae8c
MK
11719 Fix OpenBSD/i386 sigtramp recognition.
11720 * i386-tdep.h: Update copyright year.
11721 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11722 (i386bsd_sigtramp_end): New prototypes.
11723 (i386fbsd_sigtramp_start_addr): Renamed from
11724 i386fbsd_sigtramp_start.
11725 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11726 (i386obsd_sigtramp_start_addr): Renamed from
11727 i386obsd_sigtramp_start.
11728 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11729 * i386bsd-tdep.c: Update copyright year.
11730 (i386bsd_pc_in_sigtramp): Make public.
11731 * i386fbsd-nat.c: Update copyright year.
11732 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11733 * i386fbsd-tdep.c: Update copyright year.
11734 (i386fbsd_sigtramp_start_addr): Renamed from
11735 i386fbsd_sigtramp_start.
11736 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11737 (i386fbsdaout_init_abi): Adjust for renamed variables.
11738 * i386obsd-nat.c: Update copyright year.
11739 (_initialize_i386obsd_nat): Adjust for renamed variables.
11740 * i386obsd-tdep.c: Include "target.h".
11741 (i386obsd_page_size): New variable.
11742 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11743 (i386obsd_sigtramp_end): New functions.
11744 (i386obsd_sigtramp_start_addr): Renamed from
11745 i386obsd_sigtramp_start.
11746 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11747 (i386obsd_init_abi): Adjust for renamed variables. Set
11748 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11749 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11750
84d04465
MK
11751 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11752 trampoline change in OpenBSD kernel.
11753
b053aceb
MK
11754 * amd64-nat.c: Update copyright year.
11755 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11756 architecture from REGCACHE.
11757
f5859b4d
MK
11758 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11759 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11760
e4bbbda8
MK
117612004-02-21 Mark Kettenis <kettenis@gnu.org>
11762
ba361932
MK
11763 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11764 i[34567]86-*-openbsd3.[0-3].
11765 * config/i386/obsdaout.mh: New file.
11766
d3e48264
MK
11767 * config/i386/obsd.mh (MH_FLAGS): Remove.
11768
60a6eeb6
MK
11769 Fix PR build/1549.
11770 * i386obsd-tdep.c: Update copyright years. Include
11771 "solib-svr4.h".
11772 (i386obsd_init_abi): Don't set regset_from_core_section here.
11773 (i386obsd_aout_init_abi): New function. Set
11774 regset_from_core_section here.
11775 (i386obsd_elf_init_abi): New function.
11776 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11777 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11778 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11779 (TM_FILE): Set to tm-nbsd.h.
11780
11781 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11782 solib-sunos.o.
11783
e4bbbda8
MK
11784 * solib-svr4.h: Update copyright year.
11785 (svr4_ilp32_fetch_link_map_offsets)
11786 (svr4_lp64_fetch_link_map_offsets): New prototype.
11787 * solib-svr4.c: Update copyright year.
11788 (svr4_ilp32_fetch_link_map_offsets)
11789 (svr4_lp64_fetch_link_map_offsets): New function.
11790
f6fe98ef
DJ
117912004-02-20 Daniel Jacobowitz <drow@mvista.com>
11792
11793 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11794 to the partial symbol table.
11795
589ca796
JB
117962004-02-20 J. brobecker <brobecker@gnat.com>
11797
11798 * PROBLEMS: Add description of problem documented under gdb/1560.
11799
2031c21a
MK
118002004-02-20 Mark Kettenis <kettenis@gnu.org>
11801
30b344b1
MK
11802 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11803 comments.
11804 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11805 functions.
11806 (amd64obsd_init_abi): Reorder initializations. Use
11807 amd64obsd_r_reg_offset to initialize the general-purpose register
11808 set details. Set regset_from_core_section.
11809 (_initialize_amd64obsd_tdep): Rename from
11810 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11811 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11812 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11813
2031c21a
MK
11814 * NEWS (New native configurations): Mention OpenBSD/alpha.
11815 * configure.tgt: Add alpha*-*-openbsd*.
11816 * configure.host: Add alpha*-*-openbsd*.
11817 * alphanbsd-tdep.c: Update copyright year.
11818 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11819
42471775
AC
118202004-02-20 Andrew Cagney <cagney@redhat.com>
11821
11822 Fix PR tdep/1372.
11823 * configure.tgt: Delete target "none-*-*".
11824 * configure.host: Delete host "none-*-*".
11825 * config/none/none.mh: Delete file.
11826 * config/none/none.mt: Delete file.
11827 * config/none/xm-none.h: Delete file.
11828 * config/none/tm-none.h: Delete file.
11829 * config/none/nm-none.h: Delete file.
11830
960ccd7d
FF
118312004-02-19 Fred Fish <fnf@redhat.com>
11832
11833 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11834 cache->uses_fp prior to setting it.
11835
5f883edd
FF
118362004-02-19 Fred Fish <fnf@redhat.com>
11837
11838 Fix for PR breakpoint/1558.
11839 * sh-tdep.c (IS_JSR): New macro.
11840 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11841
f98c22d5
JB
118422004-02-19 Jim Blandy <jimb@redhat.com>
11843
11844 * findvar.c (value_from_register): Doc fix.
11845
95051d27
JJ
118462004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11847
11848 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11849 type being greater than sizeof of host's LONGEST. Always use
11850 unpack_long() unless format 'f' chosen.
11851
ccefbec3
EZ
118522004-02-19 Joel Brobecker <brobecker@gnat.com>
11853
11854 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 11855
ccefbec3
EZ
11856 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11857 contains a symbol wich is the best, non-exact match for the given
11858 pc. Update comments.
11859
118602004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11861
2ede629f
EZ
11862 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11863 macro, which was part of the now removed Mach 3 port.
11864 * utils.c (request_quit): Ditto.
11865
567ee972
MK
118662004-02-18 Mark Kettenis <kettenis@gnu.org>
11867
11868 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11869 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11870
50cca7bb
MK
118712004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11872
11873 Committed by Mark Kettenis <kettenis@gnu.org>.
11874
11875 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11876 Define.
11877
226361c4
AC
118782004-02-18 Andrew Cagney <cagney@redhat.com>
11879
11880 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11881 CONFIG_INSTALL and CONFIG_UNINSTALL.
11882 * configure: Re-generate.
11883 * interps.h (INTERP_TUI): Define.
11884 * Makefile.in: Update dependencies.
11885 (TUI): New macro.
11886 (tui-main.o): Specify dependencies.
11887 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11888 * tui/tui-main.c: New file.
11889
49cfa46f
MK
118902004-02-18 Mark Kettenis <kettenis@gnu.org>
11891
e2879ccb
MK
11892 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11893 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11894 dependencies.
11895 * configure.host: Add x86_64-*-openbsd*.
11896 * configure.tgt: Add x86_64-*-openbsd*.
11897 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11898
c43f4bec
MK
11899 * tui/tui.c: Don't include <malloc.h>.
11900
09ae75b6
MK
11901 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11902 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11903 amd64nbsd-tdep.c.
11904
49cfa46f 11905 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 11906 static. Remove extraneous whitespace.
49cfa46f
MK
11907 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11908 static.
11909
05957fdb
JB
119102004-02-17 Jim Blandy <jimb@redhat.com>
11911
11912 * findvar.c (value_from_register): Doc fix.
11913
d0f54f9d
JB
119142004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11915
11916 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 11917
8a1dac83 11918 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
11919 CORE_ADDR as type for selectors. Correct types for GNU run time
11920 message lookup function to use double indirection.
11921 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11922 * objc-lang.h (lookup_child_selector): Adapt prototype.
11923
9cbd5950
JB
11924 * s390-nat.c (SUBOFF): New macro.
11925 (supply_gregset, fill_gregset): Use it to handle debugging
11926 of 32-bit exectuables running under a 64-bit kernel.
11927 * s390-tdep.c: Include "solib-svr4.h".
11928 (s390_svr4_fetch_link_map_offset): New function.
11929 (s390x_svr_fetch_link_map_offset): Likewise.
11930 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11931 * Makefile.in (s390-tdep.o): Update dependencies.
11932
a8c99f38
JB
11933 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11934 "frame-unwind.h".
11935 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11936 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11937 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11938 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11939 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11940 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 11941 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
11942 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11943 (struct frame_extra_info): Remove.
11944 (s390_memset_extra_info): Remove.
f73b1eff
JB
11945 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11946 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11947 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
11948 (is_rse): Renamed to ...
11949 (is_rsy): ... this. Support long displacements.
11950 (is_rxe): Renamed to ...
11951 (is_rxy): ... this. Support long displacements.
11952 (compute_x_addr): Support long displacements.
11953 (struct s390_prologue_data): New data type.
11954 (s390_on_stack): Change API to use struct s390_prologue_data.
11955 (s390_store): Reimplement.
11956 (s390_load): New function.
11957 (s390_get_signal_frame_info): Remove.
11958 (s390_get_frame_info): Remove, replace by ...
11959 (s390_analyze_prolog): ... this new function.
11960 (s390_check_function_end): Remove.
11961 (s390_function_start): Remove.
11962 (s390_frameless_function_invokation): Remove.
11963 (s390_is_sigreturn): Remove.
11964 (s390_init_frame_pc_first): Remove.
11965 (s390_init_frame_extra_info): Remove.
11966 (s390_frame_init_saved_regs): Remove.
11967 (s390_frame_saved_pc_nofix): Remove.
11968 (s390_frame_saved_pc): Remove.
11969 (s390_frame_chain): Remove.
11970 (s390_fp_regnum, s390_read_fp): Remove.
11971 (s390_pop_frame_regular, s390_pop_frame): Remove.
11972 (s390_saved_pc_after_call): Remove.
11973 (s390_skip_prologue): Reimplement.
11974 (s390_in_function_epilogue_p): Support long displacements.
11975 (struct s390_unwind_cache): New data structure.
11976 (s390_frame_unwind_cache): New function.
11977 (s390_prologue_frame_unwind_cache): Likewise.
11978 (s390_backchain_frame_unwind_cache): Likewise.
11979 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11980 (s390_frame_unwind): Define.
11981 (s390_frame_sniffer): New function.
11982 (struct s390_pltstub_unwind_cache): New data structure.
11983 (s390_pltstub_frame_unwind_cache): New function.
11984 (s390_pltstub_frame_this_id): Likewise.
11985 (s390_pltstub_frame_prev_register): Likewise.
11986 (s390_pltstub_frame_unwind): Define.
11987 (s390_pltstub_frame_sniffer): New function.
11988 (struct s390_sigtramp_unwind_cache): New data structure.
11989 (s390_sigtramp_frame_unwind_cache): New function.
11990 (s390_sigtramp_frame_this_id): Likewise.
11991 (s390_sigtramp_frame_prev_register): Likewise.
11992 (s390_sigtramp_frame_unwind): Define.
11993 (s390_sigtramp_frame_sniffer): New function.
11994 (s390_frame_base_address, s390_local_base_address): New functions.
11995 (s390_frame_base): Define.
11996 (s390_unwind_pc, s390_unwind_sp): New function.
11997 (s390_push_dummy_call): Use new frame base location.
11998 (s390_unwind_dummy_id): Likewise.
11999 (s390_gdbarch_init): Remove calls to:
12000 set_gdbarch_frameless_function_invocation,
12001 set_gdbarch_deprecated_init_frame_pc,
12002 set_gdbarch_deprecated_frame_chain,
12003 set_gdbarch_deprecated_frame_init_saved_regs,
12004 set_gdbarch_deprecated_pop_frame,
12005 set_gdbarch_deprecated_init_extra_frame_info,
12006 set_gdbarch_deprecated_init_frame_pc_first,
12007 set_gdbarch_deprecated_target_read_fp,
12008 set_gdbarch_deprecated_frame_saved_pc,
12009 set_gdbarch_deprecated_saved_pc_after_call,
12010 set_gdbarch_deprecated_fp_regnum.
12011 Add calls to:
12012 set_gdbarch_in_solib_call_trampoline,
12013 frame_unwind_append_sniffer,
12014 frame_base_set_default,
12015 set_gdbarch_unwind_pc,
12016 set_gdbarch_unwind_sp.
12017 * Makefile.in (s390-tdep.o): Update dependencies.
12018
b0cf273e
JB
12019 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
12020 (S390_STACK_FRAME_OVERHEAD): Remove.
12021 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
12022 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
12023 (s390_promote_integer_argument): Remove.
12024 (s390_cannot_extract_struct_value_address): Remove.
12025 (s390_use_struct_convention, s390_store_struct_return): Remove.
12026 (s390_extract_return_value, s390_store_return_value): Remove.
12027 (s390_return_value_convention, s390_return_value): New functions.
12028 (is_float_singleton): Handle typedefs.
8a1dac83 12029 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
12030 Remove, replace by ...
12031 (s390_function_arg_pass_by_reference, s390_function_arg_float,
12032 s390_function_arg_integer): ... these new functions.
12033 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
12034 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
12035 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
12036 Fill in tdep->abi.
12037 Remove calls to:
12038 set_gdbarch_deprecated_store_struct_return,
12039 set_gdbarch_deprecated_extract_return_value,
12040 set_gdbarch_deprecated_store_return_value,
12041 set_gdbarch_use_struct_convention,
12042 set_gdbarch_extract_struct_value_address,
12043 set_gdbarch_deprecated_pc_in_call_dummy,
12044 set_gdbarch_deprecated_push_arguments,
12045 set_gdbarch_deprecated_save_dummy_frame_tos,
12046 set_gdbarch_deprecated_push_return_address,
12047 set_gdbarch_deprecated_sizeof_call_dummy_words,
12048 set_gdbarch_deprecated_call_dummy_words,
12049 set_gdbarch_deprecated_dummy_write_sp.
12050 Add calls to:
12051 set_gdbarch_push_dummy_call,
12052 set_gdbarch_unwind_dummy_id,
12053 set_gdbarch_return_value.
8a1dac83 12054
e1457d83
JB
12055 * config/s390/nm-linux.h: Update comments.
12056 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
12057 (STOPPED_BY_WATCHPOINT): Redefine.
12058 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
12059 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
12060 (s390_stopped_by_watchpoint): Likewise.
12061 (watch_area_cnt): Remove.
12062 * s390-nat.c: Update comments.
12063 (watch_area): Remove typedef.
12064 Global replace watch_area by struct watch_area.
12065 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 12066 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
12067 use s390_inferior_tid. Add short-cut for the no watchpoint case.
12068 (s390_fix_watch_points): Remove pid argument,
12069 use s390_inferior_tid. Recompute area spanned by watchpoints.
12070 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
12071 argument. Reimplement.
12072
d0f54f9d
JB
12073 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
12074 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
12075 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 12076 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
12077 core-regset.o.
12078 * config/s390/s390x.mt: Remove.
12079 * config/s390/tm-s390.h: Remove.
12080 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
12081 (TARGET_ELF64): Remove.
12082 (SKIP_TRAMPOLINE_CODE): Do not undefine.
12083 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
12084 s390*-*-* case; always set gdb_target to s390.
12085 * regformats/reg-s390.dat: Remove control registers.
12086 * regformats/reg-s390x.dat: Likewise.
12087 * s390-tdep.h: New file.
8a1dac83 12088 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
12089 Include "inferior.h" and "s390-tdep.h".
12090 Remove private definition of offsetof.
12091 (s390_register_u_addr): Remove.
12092 (regmap_gregset, regmap_fpregset): Define.
12093 (supply_gregset, fill_gregset): Reimplement.
12094 (supply_fpregset, fill_fpregset): Likewise.
12095 (s390_inferior_tid): New function.
12096 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
12097 (fetch_inferior_registers, store_inferior_registers): Likewise.
12098 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
12099 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
12100 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
12101 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
12102 (struct gdbarch_tdep): Define.
12103 (struct s390_register_info): Define.
12104 (s390_register_info): New variable.
12105 (s390_register_name): Reimplement.
12106 (s390_register_type): New function.
12107 (s390_register_raw_size, s390x_register_raw_size): Remove.
12108 (s390_cannot_fetch_register): Remove.
12109 (s390_register_byte): Remove.
12110 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
12111 (s390_dwarf_regmap): New variable.
12112 (s390_dwarf_reg_to_regnum): New function.
12113 (s390_stab_reg_to_regnum): Remove.
12114 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
12115 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
12116 (s390_convert_register_p): Likewise.
12117 (s390_register_to_value, s390_value_to_register): Likewise.
12118 (s390_register_reggroup_p): Likewise.
12119 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
12120 s390_gregset, s390x_gregset, s390_fpregset): New variables.
12121 (s390_supply_regset, s390_regset_from_core_section): New functions.
12122 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
12123 (S390_FPR_SIZE): Likewise.
12124 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
12125 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
12126 (S390_NUM_GPRS): Move here from tm-s390.h.
12127 (S390_NUM_FPRS): Likewise.
12128 (s390_in_function_epilogue_p): New function.
12129 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
12130 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
12131 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
12132 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
12133 Replace S390_FP_REGNUM by S390_SP_REGNUM.
12134 Remove calls to:
12135 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
12136 set_gdbarch_deprecated_max_register_virtual_size,
12137 set_gdbarch_deprecated_register_byte,
d0f54f9d 12138 set_gdbarch_cannot_fetch_register,
8a1dac83 12139 set_gdbarch_cannot_store_register,
d0f54f9d
JB
12140 set_gdbarch_deprecated_register_size,
12141 set_gdbarch_deprecated_register_raw_size,
12142 set_gdbarch_deprecated_register_virtual_size,
12143 set_gdbarch_deprecated_register_virtual_type,
12144 set_gdbarch_deprecated_register_bytes.
12145 Add calls to:
12146 set_gdbarch_num_pseudo_regs,
12147 set_gdbarch_register_type,
12148 set_gdbarch_convert_register_p,
12149 set_gdbarch_register_to_value,
12150 set_gdbarch_value_to_register,
12151 set_gdbarch_register_reggroup_p,
12152 set_gdbarch_regset_from_core_section,
12153 set_gdbarch_pseudo_register_read,
12154 set_gdbarch_pseudo_register_write,
12155 set_gdbarch_in_function_epilogue_p.
12156 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12157 (s390_tdep_h): New variable.
12158
8cfe231d
JB
121592004-02-17 Jim Blandy <jimb@redhat.com>
12160
4589a601
JB
12161 * findvar.c (value_from_register): If the type has no length, just
12162 return an acceptable value --- don't report an internal error.
12163
8cfe231d
JB
12164 * stabsread.c (read_type): If we find any type numbers that are
12165 forward references, complain if the references aren't resolved by
12166 the time we're finished reading.
12167 (cleanup_undefined_types): Make error message more appropriate for
12168 a complaint.
12169
5bf0017e
EZ
121702004-02-17 Elena Zannoni <ezannoni@redhat.com>
12171
9d62932d
EZ
12172 * Makefile.in (defs_h): Remove dependency on progress_h.
12173 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12174 progress.h.
12175 * main.c (captured_main): Delete use of START_PROGRESS and
12176 END_PROGRESS.
12177
121782004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 12179
5bf0017e
EZ
12180 * objfiles.c (terminate_minimal_symbol_table): Add back
12181 initialization of MSYMBOL_TYPE.
12182
9fc9f5e2
AC
121832004-02-17 David Mosberger <davidm@hpl.hp.com>
12184
12185 Committed by Andrew Cagney.
12186 * Makefile.in (ia64_tdep_h): New macro.
12187 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12188 (ia64-tdep.o): Likewise.
12189 * ia64-tdep.h: New file.
12190 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
12191 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12192 (ia64_aix_sigcontext_register_address): Likewise.
12193 (ia64_linux_getunwind_table): Delete declaration.
12194 * ia64-linux-tdep.c: Likewise.
12195
76cd2bd9
CV
121962004-02-17 Corinna Vinschen <vinschen@redhat.com>
12197
12198 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12199 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12200 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12201
634aa483
AC
122022004-02-17 Andrew Cagney <cagney@redhat.com>
12203
12204 * symtab.c (skip_prologue_using_sal): New function.
12205 * symtab.h (skip_prologue_using_sal): Declare.
12206 * frv-tdep.c: Include "symtab.h".
12207 (skip_prologue_using_sal): Delete function.
12208 * mips-tdep.c (skip_prologue_using_sal): Delete function.
12209 * rs6000-tdep.c (refine_prologue_limit): Mention
12210 skip_prologue_using_sal.
12211 * ia64-tdep.c (refine_prologue_limit): Ditto.
12212 * Makefile.in: Update dependencies.
12213
122142004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 12215
39ce7b3f
AC
12216 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12217 START_INFERIOR_TRAPS_EXPECTED.
12218 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12219 START_INFERIOR_TRAPS_EXPECTED.
12220 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12221 Delete macro.
12222 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12223 macro, moved to "nm-osf.h". Update copyright.
12224 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12225 update copyright.
12226
19772a2c
AC
12227 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12228 and function replacing FRAMELESS_FUNCTION_INVOCATION.
12229 * blockframe.c (legacy_frameless_look_for_prologue): Rename
12230 frameless_look_for_prologue.
12231 * frame.h (legacy_frameless_look_for_prologue): Rename
12232 frameless_look_for_prologue.
12233 * gdbarch.h, gdbarch.c: Re-generate.
12234 * sh64-tdep.c (sh64_gdbarch_init): Update.
12235 * sh-tdep.c (sh_gdbarch_init): Update.
12236 * s390-tdep.c (s390_gdbarch_init): Update.
12237 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12238 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12239 * m68k-tdep.c (m68k_gdbarch_init): Update.
12240 (delta68_frame_args_address): Update.
12241 * m32r-tdep.c (m32r_gdbarch_init): Update.
12242 * hppa-tdep.c (hppa_gdbarch_init): Update.
12243 * h8300-tdep.c (h8300_gdbarch_init): Update.
12244 * frv-tdep.c (frv_gdbarch_init): Update.
12245 (frv_frameless_function_invocation): Update.
12246 * cris-tdep.c (cris_gdbarch_init): Update.
12247 (cris_frameless_function_invocation): Update.
12248 * avr-tdep.c (avr_gdbarch_init): Update.
12249 * arm-tdep.c (arm_gdbarch_init): Update.
12250 * stack.c (frame_info): Update, call predicate.
12251 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12252 * frame.c (legacy_get_prev_frame): Update, call predicate..
12253 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12254 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12255 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12256 invocation.
12257 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12258 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12259 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
12260
12261 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12262 function.
12263
7dcaac91
DJ
122642004-02-16 Daniel Jacobowitz <drow@mvista.com>
12265
12266 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12267 initializations.
12268
88289b6e
AC
122692004-02-16 Andrew Cagney <cagney@redhat.com>
12270
12271 * tui/tui-windata.c: Include "gdb_string.h".
12272 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12273 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12274 * Makefile.in: Update dependencies.
12275
9f976b41
DJ
122762004-02-16 Daniel Jacobowitz <drow@mvista.com>
12277
12278 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12279 * infrun.c: Include "gdb_assert.h".
12280 (singlestep_ptid, saved_singlestep_ptid)
12281 (stepping_past_singlestep_breakpoint): New variables.
12282 (resume): Set singlestep_ptid. Check for singlestep thread
12283 hop.
12284 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12285 (handle_inferior_event): Handle singlestep thread hop.
12286
c324d747
AC
122872004-02-16 Andrew Cagney <cagney@redhat.com>
12288
f090b9b1
AC
12289 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12290 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12291 (dwarf2_frame_init_reg): Ditto.
12292
fd33e6cb
AC
12293 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12294 suggested by Joshua Neuheisel
12295
c324d747
AC
12296 * configure.in: Always check for curses, including pdcurses.
12297 Warn, instead of error, when no curses are found. Enable TUI when
12298 curses is available.
12299 * configure: Re-generate.
12300
b66ba949
CV
123012004-02-16 Corinna Vinschen <vinschen@redhat.com>
12302
12303 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12304 sh_sh4_register_convert_to_virtual.
12305 (sh_register_convert_to_raw): Rename from
12306 sh_sh4_register_convert_to_raw.
12307 (sh_pseudo_register_read): Accomodate above name change.
12308 (sh_pseudo_register_write): Ditto.
12309
b58cbbf2
CV
123102004-02-16 Corinna Vinschen <vinschen@redhat.com>
12311
12312 * sh-tdep.c (sh_generic_register_name): Remove.
12313 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12314
5929a910
AC
123152004-02-15 Andrew Cagney <cagney@redhat.com>
12316
4566dfcf
AC
12317 * configure.in (build_warnings): Add -Wunused-function.
12318 * configure: Re-generate.
12319
db11ed55
AC
12320 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12321 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12322
46ac7a5d
AC
12323 * procfs.c (procfs_init_inferior): Assume that
12324 START_INFERIOR_TRAPS_EXPECTED is defined.
12325 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12326 * config/ns32k/tm-nbsd.h: Delete file,
12327 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12328
ba801595
AC
12329 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12330 * config/vax/tm-vax.h: Delete file.
12331
5929a910
AC
12332 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12333 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12334 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12335 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12336 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12337 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12338 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12339
8f22cb90
MK
123402004-02-15 Mark Kettenis <kettenis@gnu.org>
12341
12342 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12343 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12344 (struct dwarf2_frame_ops): New.
12345 (dwarf2_frame_default_init_reg): New function, based on
12346 dwarf2_frame_init_reg.
12347 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12348 (dwarf2_frame_init_reg): Call architecture-specific function.
12349 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12350 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12351 instead of dwarf2_frame_data.
12352 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12353 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12354
8132723e
AC
123552004-02-15 Andrew Cagney <cagney@redhat.com>
12356
046a4708
AC
12357 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12358 register_gdbarch_swap.
12359 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12360 * f-lang.c (_initialize_f_language): Update, use
12361 DEPRECATED_REGISTER_GDBARCH_SWAP.
12362 * remote.c (_initialize_remote): Ditto.
12363 * regcache.c (_initialize_regcache): Ditto.
12364 * parse.c (_initialize_parse): Ditto.
12365 * infrun.c (_initialize_infrun): Ditto.
12366 * mi/mi-main.c (_initialize_mi_main): Ditto.
12367 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 12368
549c1eea
AC
12369 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12370 poking .cacheable directly.
12371 * symfile.c (symfile_bfd_open): Ditto.
12372
0c0b39de
AC
12373 * Makefile.in: Update all dependencies.
12374
8132723e
AC
12375 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12376 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12377 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12378 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12379 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 12380
b9d26eb9
AC
123812004-02-14 Andrew Cagney <cagney@redhat.com>
12382
8e1f669a
AC
12383 * arch-utils.c (legacy_convert_register_p): Check
12384 DEPRECATED_REGISTER_CONVERTIBLE_P.
12385 * findvar.c (value_of_register): Ditto.
12386
cd0bfa36
AC
12387 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12388 * gdbarch.h, gdbarch.c: Re-generate.
12389 * arch-utils.c (deprecated_register_convertible_not): Delete.
12390 * arch-utils.h (deprecated_register_convertible_not): Delete.
12391 * mi/mi-main.c (get_register): Update. Update copyright.
12392 * infcmd.c (default_print_registers_info): Update.
12393
b9d26eb9
AC
12394 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12395 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12396 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 12397 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
12398 * frame.c (deprecated_get_next_frame_hack): Delete function.
12399 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12400 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12401 Update.
12402 * infcall.c (call_function_by_hand): Update.
12403
9ab9195f
EZ
124042004-02-14 Elena Zannoni <ezannoni@redhat.com>
12405
12406 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 12407 from here...
9ab9195f
EZ
12408 * objfiles.c (init_entry_point_info, entry_point_address):..to
12409 here.
12410 * symfile.h (init_entry_point_info, entry_point_address): Remove
12411 prototypes.
12412 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 12413 prototypes.
9ab9195f
EZ
12414 * cris-tdep.c: Remove include of symfile.h. Add include of
12415 objfiles.h.
12416 * infcall.c: Ditto.
12417 * mcore-tdep.c: Ditto.
12418 * mn10300-tdep.c: Ditto.
12419 * sh64-tdep.c: Ditto.
12420 * v850-tdep.c: Ditto.
12421 * arm-tdep.c: Remove include of symfile.h.
12422 * blockframe.c: Ditto.
12423 * coffread.c: Ditto.
12424 * dbxread.c: Ditto.
12425 * dwarf2read.c: Ditto.
12426 * dwarfread.c: Ditto.
8a1dac83 12427 * frv-tdep.c: Ditto.
9ab9195f
EZ
12428 * ia64-tdep.c: Ditto.
12429 * mdebugread.c: Ditto.
12430 * mipsread.c: Ditto.
8a1dac83 12431 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
12432 * s390-tdep.c: Ditto.
12433 * sh-tdep.c: Ditto.
8a1dac83 12434 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
12435 * gdbarch.sh: Remove include of symfile.h.
12436 * gdbarch.c: Regenerate.
12437 * solib-irix.c (enable_break): Use entry_point_address().
12438 Add comment about include file.
12439 * xcoffread.c: Add comment about include file.
8a1dac83
RM
12440 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12441 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12442 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12443 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
12444 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12445
c4c5b7ba
AC
124462004-02-13 Andrew Cagney <cagney@redhat.com>
12447
12448 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12449 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12450 copyright.
12451 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12452
3e7879de
FF
124532004-02-12 Fred Fish <fnf@redhat.com>
12454
12455 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12456 set_gdbarch_store_return_value.
12457
6a7760b6
AC
124582004-02-12 Andrew Cagney <cagney@redhat.com>
12459
12460 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12461 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12462 (interrupt_query): Ditto.
12463 (ofunc): Delete unused variable.
12464 * cris-tdep.c (cris_abi): Delete unused function.
12465 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12466 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12467 (cris_get_asr_quick_shift_steps): Ditto.
12468 (cris_skip_prologue_frameless_p): Ditto.
12469 * arm-tdep.c (arm_push_return_address): Delete unused function.
12470 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12471 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12472 * s390-tdep.c (s390_function_start): Delete unused function.
12473
31687c3c
AC
124742004-02-12 Andrew Cagney <cagney@redhat.com>
12475
12476 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12477 gdbarch.h, gdbarch.c: Re-generate.
12478 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12479 to generic_prologue_frameless_p.
12480 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12481 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12482
6de918a6
DJ
124832004-02-11 Daniel Jacobowitz <drow@mvista.com>
12484
12485 * mips-linux-tdep.c: Include "frame.h".
12486 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12487 (mips_linux_skip_resolver): New functions.
12488 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12489 and set_gdbarch_in_solib_call_trampoline.
12490 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12491 to after set_gdbarch_in_solib_return_trampoline. Only set the
12492 solib hooks to mips16 functions if the OS ABI is unknown.
12493 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12494 including "config/tm-linux.h".
12495 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12496 * Makefile.in (mips-linux-tdep.o): Update.
12497
87b3ede8
DC
124982004-02-11 David Carlton <carlton@kealia.com>
12499
12500 * linespec.c (decode_compound): Only look for a class symbol when
12501 considering all but the rightmost component.
12502
5979bc46
AC
125032004-02-11 Andrew Cagney <cagney@redhat.com>
12504
12505 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12506 abi code are are separatly grouped.
12507
5867a2fb
AC
125082004-02-11 Andrew Cagney <cagney@redhat.com>
12509
12510 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12511 * gdbarch.h, gdbarch.c: Re-generate.
12512 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12513 * v850-tdep.c (v850_gdbarch_init): Update.
12514 * sh64-tdep.c (sh64_gdbarch_init): Update.
12515 * sh-tdep.c (sh_gdbarch_init): Update.
12516 * s390-tdep.c (s390_gdbarch_init): Update.
12517 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12518 * mips-tdep.c (mips_gdbarch_init): Update.
12519 * mcore-tdep.c (mcore_gdbarch_init): Update.
12520 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12521 * m32r-tdep.c (m32r_gdbarch_init): Update.
12522 * ia64-tdep.c (ia64_gdbarch_init): Update.
12523 * hppa-tdep.c (hppa_gdbarch_init): Update.
12524 * h8300-tdep.c (h8300_gdbarch_init): Update.
12525 * frv-tdep.c (frv_gdbarch_init): Update.
12526 * d10v-tdep.c (d10v_gdbarch_init): Update.
12527 * cris-tdep.c (cris_gdbarch_init): Update.
12528 * avr-tdep.c (avr_gdbarch_init): Update.
12529 * arm-tdep.c (arm_gdbarch_init): Update.
12530 * alpha-tdep.c (alpha_gdbarch_init): Update.
12531
026a72f8
CV
125322004-02-11 Corinna Vinschen <vinschen@redhat.com>
12533
12534 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12535 comma.
12536 (sh_sh4al_dsp_register_name): Ditto.
12537
3903d437
AC
125382004-02-10 Andrew Cagney <cagney@redhat.com>
12539
12540 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12541 (mips_init_frame_pc_first): Delete function.
12542 (mips_frame_saved_pc): Delete function.
12543 (mips_frame_chain): Delete function.
12544 (mips_init_extra_frame_info): Delete function.
12545 (mips_xfer_register): Delete unused variable "reg".
12546 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12547 (mips_n32n64_return_value): Delete unused variable "reg".
12548 (mips_n32n64_return_value): Delete unused variable "pos".
12549 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12550 (mips_o32_return_value): Delete unused variable "pos".
12551 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12552 (mips_print_fp_register): Delete unused variable "namelen"
12553 (mips_print_fp_register): Delete unused variable "flt2"
12554 (get_frame_pointer): Delete function.
12555 (cached_proc_desc): Delete static variable.
12556 (mips_pop_frame): Delete function.
12557 (mips_find_saved_regs): Delete function.
12558 (mips_get_saved_register): Delete function.
12559 (mips_saved_pc_after_call): Delete function.
12560 (SIGFRAME_BASE): Delete macro.
12561 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12562 (SIGFRAME_PC_OFF): Delete macro.
12563 (SIGFRAME_REGSAVE_OFF): Delete macro.
12564 (mips_dump_tdep): Do not print deleted macro definitions.
12565
b9fb98bd
AC
125662004-02-10 Andrew Cagney <cagney@redhat.com>
12567
12568 * Makefile.in (SFILES): Remove explictly listed tui files.
12569 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12570
78ced177 125712004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 12572
78ced177
JJ
12573 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12574 to use paddr functions to format ia64 addresses and long values.
12575 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12576 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12577 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12578 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12579 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12580
6a83354a
AC
125812004-02-10 Andrew Cagney <cagney@redhat.com>
12582
12583 * defs.h: Do not include "tui.h".
12584 * gdb_curses.h: New file.
12585 * tui/tui-hooks.h: New file.
12586 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12587 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12588 (tui_initialize_io): Delete declaration.
12589 (tui_initialize_readline: Delete redundant declaration.
12590 (struct tui_point): Delete definition.
12591 * tui/tui-data.h (struct tui_point): Define.
12592 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12593 * utils.c: Include "tui/tui.h".
12594 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12595 * printcmd.c [TUI]: Include "tui/tui.h".
12596 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12597 * tui/tui-command.c: Include "gdb_curses.h".
12598 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12599 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12600 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12601 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12602 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12603 * Makefile.in: Update all dependencies.
12604 (tui_hooks_h, gdb_curses_h): Define.
12605 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12606
997470ef
EZ
126072004-02-10 Elena Zannoni <ezannoni@redhat.com>
12608
12609 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12610 auxf2. Add comments about some other rarely used fields.
12611
4ff2cc4d
AC
126122004-02-10 Andrew Cagney <cagney@redhat.com>
12613
12614 * Makefile.in (init.c): Fix script removing duplicates. Problem
12615 reported by Peter Schauer.
12616
1ab21617
EZ
126172004-02-09 Elena Zannoni <ezannoni@redhat.com>
12618
12619 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12620 obstack_specify_allocation.
12621 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 12622 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
12623 (allocate_rt_common_objfile): Ditto.
12624 * symfile.c (reread_symbols): Ditto.
12625 * gdb_obstack.h: Add comment.
12626
17763fd9
EZ
126272004-02-09 Elena Zannoni <ezannoni@redhat.com>
12628
12629 * linespec.c (decode_line_1, locate_first_half)
12630 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12631 commented out code.
12632
ec5cdd75
DJ
126332004-02-09 Daniel Jacobowitz <drow@mvista.com>
12634
12635 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12636 obstack_free.
12637
43b54b88
AC
126382004-02-09 Andrew Cagney <cagney@redhat.com>
12639
12640 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12641 fails, try find_pc_section. Fix PR c++/1267.
12642 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12643 instead of find_pc_mapped_section.
12644 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12645 not default to the section containing PC. Fix PR symtab/1519.
12646
edfae063
AC
126472004-02-09 Andrew Cagney <cagney@redhat.com>
12648
12649 * Makefile.in (mips-tdep.o): Update dependencies.
12650 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12651 "trad-frame.h".
12652 (mips_unwind_pc): Return the pseudo PC register.
12653 (mips_unwind_dummy_id): New function.
12654 (mips16_fetch_instruction): New function.
12655 (mips32_fetch_instruction): New function.
12656 (struct mips_frame_cache): Define.
12657 (mips_mdebug_frame_cache): New function.
12658 (mips_mdebug_frame_this_id): New function.
12659 (mips_mdebug_frame_prev_register): New function.
12660 (mips_mdebug_frame_unwind): Define.
12661 (mips_mdebug_frame_sniffer): New function.
12662 (mips_mdebug_frame_base_address): New function.
12663 (mips_mdebug_frame_base): Define.
12664 (mips_mdebug_frame_base_sniffer): New function.
12665 (mips_gdbarch_init): Append unwind and base sniffers. Set
12666 unwind_dummy_id.
12667
defc864c
AC
126682004-02-08 Andrew Cagney <cagney@redhat.com>
12669
6764ddad
AC
12670 * frame.c: Print both the register number and name.
12671
defc864c
AC
12672 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12673 and a sed into a single sed. Make .c and .o patterns more robust.
12674 (OBS): Delete.
12675 (INIT_FILES): Replace OBS with COMMON_OBS.
12676 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12677
645d6d10
MK
126782004-02-08 Mark Kettenis <kettenis@gnu.org>
12679
12680 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12681 the PT_WCOOKIE request.
12682
23e3c3fc
AC
126832004-02-08 Andrew Cagney <cagney@redhat.com>
12684
58dfe9ff
AC
12685 * mips-tdep.c (mips_unwind_pc): New function.
12686 (mips_gdbarch_init): Set mips_unwind_pc.
12687
1152e35e
AC
12688 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12689 (get_frame_id): Allow the UNKNOWN_FRAME.
12690 (frame_register_unwind, get_frame_type): Ditto.
12691
31b75dbf
AC
12692 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12693 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12694 unwind_dummy_id indicates a legacy frame.
12695
3483b318
AC
12696 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12697 * configure: Re-generate.
12698
23e3c3fc
AC
12699 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12700 methods.
12701
33f8ca73
AC
127022004-02-08 Andrew Cagney <cagney@redhat.com>
12703
12704 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12705 makefile macro.
12706 * configure: Re-generate.
12707 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12708 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12709 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12710 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12711 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12712 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12713 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12714 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12715 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12716 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12717
6ba8e26f 127182004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 12719
20d286a5
AC
12720 * Makefile.in: Update all dependencies.
12721
d836ee13
AC
12722 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12723 * configure: Re-generate.
12724 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12725 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12726 (COMMON_OBS): Add "main.o" and "annotate.o".
12727 (ANNOTATE_OBS): Delete.
12728 (OBS): Remove ANNOTATE_OBS.
12729 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12730 CONFIG_INITS.
12731 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12732 against CONFIG_OBS and "main.o".
12733 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12734 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12735
d02c80cd
AC
12736 * tui/tui-command.c: Include "gdb_string.h", delete register
12737 attribute, use ISO-C function signatures.
12738 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12739 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12740 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12741 * tui/tui.c: Ditto.
6ba8e26f
AC
12742
12743 * tui/tui-command.c: Change variable and function names to lower
12744 case.
12745 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12746 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12747 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12748 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12749 * tui/tui-winsource.c, tui/tui.c: Ditto.
12750
4a146b47
EZ
127512004-02-07 Elena Zannoni <ezannoni@redhat.com>
12752
12753 * buildsym.c (free_pending_blocks, finish_block)
12754 (record_pending_block, make_blockvector, end_symtab): Replace
12755 symbol_obstack with objfile_obstack.
8a1dac83 12756 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 12757 (coff_read_enum_type): Ditto.
8a1dac83 12758 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 12759 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 12760 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
12761 (dwarf2_symbol_mark_computed): Ditto.
12762 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12763 * elfread.c (elf_symtab_read): Ditto.
12764 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12765 (hpread_read_enum_type, hpread_read_function_type)
12766 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12767 Ditto.
8a1dac83 12768 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 12769 (java_link_class_type): Ditto.
8a1dac83 12770 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
12771 (new_symbol): Ditto.
12772 * minsyms.c (install_minimal_symbols): Ditto.
12773 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12774 (terminate_minimal_symbol_table): Replace symbol_obstack with
12775 objfile_obstack.
12776 (free_objfile): Remove freeing of symbol_obstack.
12777 * objfiles.h: Remove symbol_obstack field.
12778 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12779 objfile_obstack.
12780 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12781 symbol_obstack.
12782 (solib_add_common_symbols): Replace symbol_obstack with
12783 objfile_obstack.
12784 * somsolib.c (som_solib_add): Ditto.
12785 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12786 (common_block_start, common_block_end): Ditto.
12787 * symfile.c (reread_symbols): Remove freeing and init of
12788 symbol_obstack.
12789 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12790 * symfile.h: Update comment.
12791 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12792 stats printing.
12793 * symtab.c (symbol_set_names): Replace symbol_obstack with
12794 objfile_obstack.
12795 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12796 Update comments.
12797 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12798 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12799 objfile_obstack.
12800
6d012f14
AC
128012004-02-07 Andrew Cagney <cagney@redhat.com>
12802
12803 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12804 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12805 fields and variables.
12806 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12807 (m_beInvisible): Delete macro.
12808 * tui/tui-data.h: Fix case case fields and variables.
12809 (m_genWinPtrIsNull): Delete macro.
12810 (tui_win_list): Rename winList.
12811 (TUI_SRC_WIN): Rename srcWin.
12812 (TUI_DISASM_WIN): Rename disassemWin.
12813 (TUI_DATA_WIN): Rename dataWin.
12814 (TUI_CMD_WIN): Rename cmdWin.
12815 (m_genWinPtrNotNull): Delete macro.
12816 (m_winPtrIsNull): Delete macro.
12817 (m_winPtrNotNull): Delete macro.
12818 (tui_win_is_source_type): Replace m_winIsSourceType
12819 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12820 (tui_win_has_locator): Replace m_hasLocator.
12821 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12822 m_setWinHighlightOff.
12823 * tui/tui-data.c: Update references.
12824 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12825 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12826 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12827 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12828 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12829 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12830 * tui/tui-winsource.c, tui/tui.c: Ditto.
12831
7d34766b
MK
128322004-02-07 Mark Kettenis <kettenis@gnu.org>
12833
1c800673
MK
12834 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12835 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12836 StackGhost.
12837
7d34766b
MK
12838 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12839 variable `i6' to `i7'.
12840 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12841
22940a24
AC
128422004-02-07 Andrew Cagney <cagney@redhat.com>
12843
12844 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12845 (TuiPoint, TuiPointPtr): Ditto.
12846 (TuiStatus, TuiStatusPtr): Ditto.
12847 (TuiWinType, TuiWinTypePtr): Ditto.
12848 (struct tui_point): Rename _TuiPoint.
12849 (tui_get_low_disassembly_address): Rename
12850 tuiGetLowDisassemblyAddress.
12851 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12852 (tuiFree): Delete declaration.
12853 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12854 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12855 * tui/tui.c (tuiFree): Delete function.
12856 * cli/cli-cmds.c (disassemble_command): Update references.
12857 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12858 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12859 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12860 * tui/tui-winsource.c: Ditto.
12861
8b92e4d5
EZ
128622004-02-07 Elena Zannoni <ezannoni@redhat.com>
12863
12864 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12865 coffstab_build_psymtabs, elfstab_build_psymtabs)
12866 (stabsect_build_psymtabs): Replace psymbol_obstack with
12867 objfile_obstack.
12868 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12869 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12870 Ditto.
12871 * dwarfread.c (scan_compilation_units): Ditto.
12872 * elfread.c (elfstab_offset_sections): Ditto.
12873 * hppa-tdep.c (read_unwind_info): Ditto.
12874 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12875 (hpread_end_psymtab): Ditto.
12876 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12877 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12878 Ditto.
12879 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 12880 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
12881 (build_objfile_section_table): Ditto.
12882 (allocate_objfile): Remove init of psymbol_obstack.
12883 (free_objfile): Remove freeing of psymbol_obstack.
12884 * objfiles.h (struct objfile): Remove field
12885 psymbol_obstack. Update comments.
12886 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12887 psymbol_obstack with objfile_obstack.
12888 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12889 psymbol_obstack.
12890 * somread.c (som_symfile_offsets, init_import_symbols)
12891 (init_export_symbols): Replace psymbol_obstack with
12892 objfile_obstack.
12893 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12894 * symfile.c (default_symfile_offsets, syms_from_objfile)
12895 (reread_symbols): Remove freeing and init of psymbol_obstack.
12896 (cashier_psymtab): Update comment.
12897 * symmisc.c (print_objfile_statistics): Don't report stats for
12898 psymbol obstack.
12899 * symtab.h (struct general_symbol_info, struct partial_symtab):
12900 Update comments.
12901 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12902 (xcoff_symfile_offsets): Replace psymbol_obstack with
12903 objfile_obstack.
12904
b99607ea
EZ
129052004-02-07 Elena Zannoni <ezannoni@redhat.com>
12906
12907 * objfiles.h (struct objfile): Add objfile_obstack field.
12908 Remove type_obstack field.
12909
12910 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12911 read_structure_scope read_enumeration, new_symbol): Replace
12912 type_obstack with objfile_obstack.
12913 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 12914 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
12915 (lookup_fundamental_type): Ditto.
12916 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
12917 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12918 (hpread_read_doc_function_type, hpread_read_struct_type)
12919 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 12920 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 12921 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
12922 (java_link_class_type): Ditto.
12923 * mdebugread.c (parse_type): Ditto.
12924 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12925 * solib-sunos.c (solib_add_common_symbols): Ditto.
12926 * stabsread.c (define_symbol, read_type, read_member_functions,
12927 read_cpp_abbrev, read_one_struct_field): Ditto.
12928 * symfile.c (reread_symbols): Ditto.
12929 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 12930
2a8854a7
AC
129312004-02-07 Andrew Cagney <cagney@redhat.com>
12932
12933 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12934 (tui_exec_info_content): Rename TuiExecInfoContent.
12935 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12936 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12937 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12938 (TuiList, TuiListPtr): Ditto.
12939 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12940 (TuiDataType, TuiDataTypePtr): Ditto.
12941 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12942 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12943 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12944 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12945 (TuiDataElement, TuiDataElementPtr): Ditto.
12946 (TuiWinElement, TuiWinElementPtr): Ditto.
12947 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12948 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12949 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12950 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12951 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12952 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12953 * tui/tui-command.c, tui/tui-data.c: Update references.
12954 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12955 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12956 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12957 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 12958
05cbe71a
MK
129592004-02-07 Mark Kettenis <kettenis@gnu.org>
12960
12961 * dwarf2-frame.h: Update copyright.
12962 (enum dwarf2_frame_reg_rule): New.
12963 (struct dwarf2_frame_state_reg): New.
12964 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12965 * dwarf2-frame.c: Update copyright.
12966 (enum dwarf2_reg_rule): Remove.
12967 (struct dwarf2_frame_state): Remove defenition of `struct
12968 dwarf2_frame_state_reg'.
12969 (read_reg): Call get_frame_arch to get the architecture instead of
12970 using CURRENT_GDBARCH.
12971 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12972 DWARF2_FRAME_.
12973 (dwarf2_frame_init_reg): New function.
12974 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12975 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12976 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12977 tags with DWARF2_FRAME_.
12978 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12979 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12980 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12981
ec7d9e56
AC
129822004-02-06 Andrew Cagney <cagney@redhat.com>
12983
dd1abb8c
AC
12984 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12985 (enum tui_data_type): Rename _TuiDataType.
12986 (struct tui_layout_def): Rename _TuiLayoutDef.
12987 (struct tui_source_element): Rename _TuiSourceElement.
12988 (struct tui_data_element): Rename _TuiDataElement.
12989 (struct tui_command_element): Rename _TuiCommandElement.
12990 (struct tui_locator_element): Rename _TuiLocatorElement.
12991 (union tui_which_element): Define.
12992 (struct tui_win_element): Rename _TuiWinElement.
12993 (struct tui_data_info): Rename _TuiDataInfo.
12994 (struct tui_source_info): Rename _TuiSourceInfo.
12995 (struct tui_command_info): Rename _TuiCommandInfo.
12996 (tui_initialize_static_data): Rename initializeStaticData.
12997 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12998 (tui_alloc_win_info): Rename allocWinInfo.
12999 (tui_init_generic_part): Rename initGenericPart.
13000 (tui_init_win_info): Rename initWinInfo.
13001 (tui_alloc_content): Rename allocContent.
13002 (tui_add_content_elements): Rename addContentElements.
13003 (tui_init_content_element): Rename initContentElement.
13004 (tui_free_window): Rename freeWindow.
13005 (tui_free_win_content): Rename freeWinContent.
13006 (tui_free_data_content): Rename freeDataContent.
13007 (tui_free_all_source_wins_content): Rename
13008 freeAllSourceWinsContent.
13009 (tui_del_window): Rename tuiDelWindow.
13010 (tui_del_data_windows): Rename tuiDelDataWindows.
13011 (tui_partial_win_by_name): Rename partialWinByName.
13012 (tui_win_name): Rename winName.
13013 (tui_current_layout): Rename currentLayout.
13014 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
13015 (tui_term_height): Rename termHeight.
13016 (tui_set_term_height_to): Rename setTermHeightTo.
13017 (tui_term_width): Rename termWidth.
13018 (tui_set_term_width_to): Rename setTermWidthTo.
13019 (tui_set_gen_win_origin): Rename setGenWinOrigin.
13020 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
13021 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
13022 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
13023 (tui_source_windows): Rename sourceWindows.
13024 (tui_clear_source_windows): Rename clearSourceWindows.
13025 (tui_clear_source_windows_detail): Rename
13026 clearSourceWindowsDetail.
13027 (tui_clear_win_detail): Rename clearWinDetail.
13028 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
13029 (tui_default_tab_len): Rename tuiDefaultTabLen.
13030 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
13031 (tui_win_with_focus): Rename tuiWinWithFocus.
13032 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
13033 (tui_layout_def): Rename tuiLayoutDef.
13034 (tui_win_resized): Rename tuiWinResized.
13035 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
13036 (tui_next_win): Rename tuiNextWin.
13037 (tui_prev_win): Rename tuiPrevWin.
13038 (tui_add_to_source_windows): Rename addToSourceWindows.
13039 * tui/tui-winsource.c, tui/tui-win.c: Update references.
13040 * tui/tui-layout.c, tui/tui-source.c: Ditto.
13041 * tui/tui-stack.c, tui/tui-io.c: Ditto.
13042 * tui/tui.c, tui/tui-data.c: Ditto.
13043 * tui/tui-interp.c, tui/tui-data.c: Ditto.
13044 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
13045
a358af15
AC
13046 * tui/tui-source.h: Update copyright. Include "tui-data.h".
13047 (struct symtab): Declare.
13048 (tui_set_source_content): Rename tuiSetSourceContent.
13049 (tui_show_symtab_source): Rename tuiShowSource.
13050 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
13051 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
13052 * tui/tui-source.c: Update copyright. Update references.
13053 * tui/tui-win.c, tui/tui-winsource.c: Update references.
13054 * tui/tui-stack.c: Update references.
13055
a21fcd8f
AC
13056 * tui/tui-win.h: Update copyright. Include "tui-data.h".
13057 (struct tui_win_info): Declare.
13058 (tui_scroll_forward): Rename tuiScrollForward.
13059 (tui_scroll_backward): Rename tuiScrollBackward.
13060 (tui_scroll_left): Rename tuiScrollLeft.
13061 (tui_scroll_right): Rename tuiScrollRight.
13062 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
13063 (tui_resize_all): Rename tuiResizeAll.
13064 (tui_refresh_all_win): Rename tuiRefreshAll.
13065 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
13066 * tui/tui-layout.c, * tui/tui-io.c: Update references.
13067 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
13068 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
13069
edae1ccf
AC
13070 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
13071 (tui_erase_data_content): Rename tuiEraseDataContent.
13072 (tui_display_all_data): Rename tuiDisplayAllData.
13073 (tui_check_data_values): Rename tuiCheckDataValues.
13074 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
13075 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
13076 (tui_first_data_element_no_in_line): Rename
13077 tuiFirstDataElementNoInLine.
13078 (tui_delete_data_content_windows): Rename
13079 tuiDeleteDataContentWindows.
13080 (tui_refresh_data_win): Rename tuiRefreshDataWin.
13081 (tui_display_data_from): Rename tuiDisplayDataFrom.
13082 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
13083 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
13084 * tui/tui-win.c, tui/tui-regs.c: Update references.
13085 * tui/tui-layout.c, tui/tui.c: Update references.
13086
ec7d9e56
AC
13087 * tui/tui-wingeneral.h: Update copyright.
13088 (m_allBeVisible): Delete macro.
8a1dac83 13089 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
13090 (struct tui_gen_win_info): Declare.
13091 (struct tui_win_info): Declare.
13092 (tui_unhighlight_win): Rename unhighlightWin.
13093 (tui_make_visible, tui_make_invisible): Replace makeVisible.
13094 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
13095 (tui_make_window): Rename makeWindow.
13096 (tui_copy_win): Rename copyWin.
13097 (tui_box_win): Rename boxWin.
13098 (tui_highlight_win): Rename highlightWin.
13099 (tui_check_and_display_highlight_if_needed): Rename
13100 checkAndDisplayHighlightIfNeeded.
13101 (tui_refresh_all): Rename refreshAll.
13102 (tui_delete_win): Rename tuiDelwin.
13103 (tui_refresh_win): Rename tuiRefreshWin.
13104 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
13105 (tui_make_visible, tui_make_invisible): New functions.
13106 (tui_make_all_visible, tui_make_all_invisible): New functions.
13107 (make_all_visible): Rename makeAllVisible.
13108 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
13109 * tui/tui-data.c, tui/tui-winsource.c: Update references.
13110 * tui/tui-windata.c, tui/tui-win.c: Update references.
13111 * tui/tui-regs.c, tui/tui-layout.c: Update references.
13112 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
13113
1e52e2eb
MK
131142004-02-06 Mark Kettenis <kettenis@gnu.org>
13115
13116 * proc-api.c (write_with_trace): Initialize local variable to
13117 silence compiler warning.
13118
f80bda8e
AC
131192004-02-06 Andrew Cagney <cagney@redhat.com>
13120
13121 * tui/tui-source.h: Do not include "defs.h".
13122 (struct tui_win_info): Declare.
13123 (tui_set_source_content_nil): Declare.
13124 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
13125 (union tui_line_or_address): Rename _TuiLineOrAddress.
13126 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
13127 (tui_update_source_window): Rename tuiUpdateSourceWindow.
13128 (tui_update_source_window_as_is): Rename
13129 tuiUpdateSourceWindowAsIs.
13130 (tui_update_source_windows_with_addr): Rename
13131 tuiUpdateSourceWindowsWithAddr.
13132 (tui_update_source_windows_with_line): Rename
13133 tuiUpdateSourceWindowsWithLine.
13134 (tui_clear_source_content): Rename tuiClearSourceContent.
13135 (tui_erase_source_content): Rename tuiEraseSourceContent.
13136 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13137 (tui_show_source_content): Rename tuiShowSourceContent.
13138 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13139 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13140 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13141 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13142 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13143 (tui_update_exec_info): Rename tuiUpdateExecInfo.
13144 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13145 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13146 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13147 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13148 (struct tui_win_info): Declare.
13149 * tui/tui-stack.c: Update references.
13150 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13151 * tui/tui-win.c, tui/tui-source.c: Ditto.
13152 * tui/tui.c, tui/tui-disasm.c: Ditto.
13153
9fbfb822
MK
131542004-02-06 Mark Kettenis <kettenis@gnu.org>
13155
13156 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13157 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
13158
03cebad2
MK
131592004-02-05 Mark Kettenis <kettenis@gnu.org>
13160
13161 * infrun.c (handle_inferior_event): Allow for breakpoint
13162 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13163 and SIGEMT. Update comments.
13164 * NEWS (Revised SPARC target): Mention support for non-executable
13165 stack.
13166
290281b1
MK
131672004-02-04 Mark Kettenis <kettenis@gnu.org>
13168
13169 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13170 * inftarg.c: Update copyright year.
13171 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13172 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13173 (sparc_xfer_wcookie): New function.
13174 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13175 * Makefile.in (sparc-nat.o): Update dependencies.
13176 * config/sparc/nm-nbsd.h: Include "target.h".
13177 (NATIVE_XFER_WCOOKIE): New define.
13178 (sparc_xfer_wcookie): New prototype.
13179
212161df
AC
131802004-02-04 Andrew Cagney <cagney@redhat.com>
13181
13182 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13183 SYSCALL_TRAP function.
13184 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13185
6e4c6c91
DJ
131862004-02-04 Andrew Cagney <cagney@redhat.com>
13187 Daniel Jacobowitz <drow@mvista.com>
13188
13189 * objfiles.h: Delete comments refering to inside_entry_func and
13190 DEPRECATED_FRAME_CHAIN_VALID.
13191 * defs.h (inside_entry_func): Update prototype..
13192 * blockframe.c (inside_entry_func): Rename to
13193 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
13194 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13195
cae688ec
JJ
131962004-02-03 Jeff Johnston <jjohnstn@redhat.com>
13197
13198 * breakpoint.c (struct captured_parse_breakpoint_args): Move
13199 outside of #ifdef SOLIB_ADD region.
13200 (do_restore_lang_radix_cleanup): Ditto.
13201 (resolve_pending_breakpoint): Ditto.
13202
19217676
AC
132032004-02-03 Andrew Cagney <cagney@redhat.com>
13204
13205 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13206 (process_note_abi_tag_sections): Delete unused function.
13207 (ia64_read_fp): Delete unused function.
13208 (gdbarch_extract_struct_value_address): Delete declaration.
13209
876753be
AC
132102004-02-02 Andrew Cagney <cagney@redhat.com>
13211
13212 * vax-tdep.c (vax_frame_chain): Delete call to
13213 deprecated_inside_entry_file.
13214 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13215
d4f10bf2
MK
132162004-02-02 Mark Kettenis <kettenis@gnu.org>
13217
13218 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13219 column that's "empty" or "same value" when eliminating REG_RA
13220 rules.
13221
cae688ec
JJ
132222004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13223
13224 * NEWS: Add information about new pending breakpoint support.
13225
0101ce28
JJ
132262004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13227
13228 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13229 and pending fields for pending breakpoint support.
13230 * breakpoint.c (breakpoint_enabled): Add check for not pending.
13231 (condition_command): Only parse condition if not a pending
13232 breakpoint.
13233 (print_one_breakpoint): Add support for pending breakpoints.
13234 (describe_other_breakpoints): Add checks to verify we are not
13235 dealing with pending breakpoints.
13236 (check_duplicates): Don't check pending breakpoints.
13237 (set_raw_breakpoint): Initialize pending flag.
13238 (do_restore_lang_radix_cleanup): New cleanup routine.
13239 (resolve_pending_breakpoint): New function.
13240 (re_enable_breakpoints_in_shlibs): Try and resolve any
13241 pending breakpoints via resolve_pending_breakpoint.
13242 (mention): Add pending breakpoint support.
13243 (parse_breakpoint_sals): Add new parameter to pass to
13244 decode_line_1 to indicate silent errors when files or functions
13245 are not found. Change all callers.
13246 (do_captured_parse_breakpoint): New function.
13247 (break_command_1): Change prototype to return an rc value and to
13248 take an optional pending breakpoint pointer. Support creating
13249 a pending breakpoint if a "not found" form of error occurs when
13250 parsing the breakpoint. Also support resolving an existing pending
13251 breakpoint and be silent if the resolution fails.
13252 (create_breakpoints): Change prototype to take pending breakpoint
13253 pointer. When resolving a pending breakpoint, use the new pointer
13254 to provide a conditional or commands added by the end-user.
13255 (delete_breakpoint): Add appropriate check for pending.
13256 (breakpoint_re_set_one): Ditto.
13257 (do_enable_breakpoint): Ditto.
13258
8d577d32
DC
132592004-02-02 David Carlton <carlton@kealia.com>
13260
13261 * valops.c (enum oload_classification): New.
13262 (find_overload_match): Break implementation into separate
13263 functions; delete #if 0'd code; look for symbols within
13264 namespaces.
13265 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13266 (find_oload_champ,oload_method_static,classify_oload_match): New.
13267 * cp-support.h: Add declaration for cp_func_name; update
13268 declaration for make_symbol_overload_list.
13269 * cp-support.c (cp_func_name): New.
13270 (overload_list_add_symbol): Fix comment, use
13271 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13272 (make_symbol_overload_list): Take a function name and a namespace
13273 instead of a symbol; change implementation.
13274 (make_symbol_overload_list_using): New.
13275 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13276
22e8e3c7
FF
132772004-02-02 Fred Fish <fnf@redhat.com>
13278
13279 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 13280 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
13281 * remote-sim.c (gdb_os_write_stderr): Write output to
13282 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13283 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 13284 gdb_stderr stream and update copyright years.
22e8e3c7 13285
6b753f60
DJ
132862004-02-01 Daniel Jacobowitz <drow@mvista.com>
13287
13288 * Makefile.in (mips-linux-nat.o): Update dependencies.
13289 * mips-linux-nat.c: Include mips-tdep.h.
13290
132912004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
13292
13293 * sol-thread.c (sol_thread_xfer_partial): New function.
13294 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13295 (init_sol_core_ops): Likewise.
13296
13297 * procfs.c (procfs_xfer_partial): New function.
13298 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13299 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13300
13301 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13302 procfs_xfer_auxv function.
13303
13304 * procfs.c (procfs_make_note_section): If we can read
13305 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13306 * linux-proc.c (linux_make_note_section): Likewise.
13307
13308 * auxv.h: New file.
13309 * auxv.c: New file.
13310 * Makefile.in (auxv_h): New variable.
13311 (COMMON_OBS): Add auxv.o here.
13312 (auxv.o): New target.
13313
13314 * corelow.c (core_xfer_partial): New function.
13315 (init_core_ops): Use it for core_ops.to_xfer_partial.
13316
13317 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13318 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13319 macro if that is defined.
13320
fa5281d0
DJ
133212004-02-01 Daniel Jacobowitz <drow@mvista.com>
13322
13323 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13324 and check the specified thread for each breakpoint.
13325 * breakpoint.h (bpstat_stop_status): Update prototype.
13326 * infrun.c (handle_inferior_event): Update calls to
13327 bpstat_stop_status.
13328
26ee262d
DJ
133292004-02-01 Daniel Jacobowitz <drow@mvista.com>
13330
13331 * Makefile.in (cli-cmds.o): Add $(readline_h).
13332
d9b52655
DJ
133332004-02-01 Daniel Jacobowitz <drow@mvista.com>
13334
13335 * cli/cli-cmds.c: Include readline.h.
13336 (complete_command): Pass the start of the last word to
13337 complete_line.
13338
9709f61c
DJ
133392004-01-31 Daniel Jacobowitz <drow@mvista.com>
13340
13341 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13342 argument, and change first argument to a CORE_ADDR.
13343 * breakpoint.h (bpstat_stop_status): Update prototype.
13344 * infrun.c (adjust_pc_after_break): Add a new comment.
13345 (handle_inferior_event): Update calls to bpstat_stop_status.
13346
4f1280bb
DJ
133472004-01-31 Daniel Jacobowitz <drow@mvista.com>
13348
13349 * breakpoint.h: Update copyright years.
13350
4fa8626c
DJ
133512004-01-31 Daniel Jacobowitz <drow@mvista.com>
13352
13353 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13354 (bpstat_stop_status): Don't decrement PC.
13355 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13356 prototype.
13357 * infrun.c (adjust_pc_after_break): New function.
13358 (handle_inferior_event): Call it, early. Remove later references
13359 to DECR_PC_AFTER_BREAK.
13360 (normal_stop): Add commentary.
13361
fad0733a
DJ
133622004-01-31 Daniel Jacobowitz <drow@mvista.com>
13363
13364 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13365 2004-01-27 double-free fix.
13366
42cdca6c
MK
133672004-01-31 Mark Kettenis <kettenis@gnu.org>
13368
13369 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13370 (sparc32_frame_prev_register): Handle StackGhost.
13371 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13372
932d5416
RM
133732004-01-29 Roland McGrath <roland@redhat.com>
13374
13375 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13376 * configure: Regenerated.
13377
13378 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13379 * Makefile.in (procfs.o): Add dep.
13380
47d3492a
AC
133812004-01-28 Andrew Cagney <cagney@redhat.com>
13382
13383 * tui/tui-stack.h: Update copyright.
13384 (struct frame_info): Add opaque declaration.
13385 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13386 (tui_show_locator_content): Rename tuiShowLocatorContent.
13387 (tui_show_frame_info): Rename tuiShowFrameInfo.
13388 * tui/tui-stack.c: Update copyright. Update references.
13389 * tui/tui-winsource.c: Update references.
13390 * tui/tui-win.c: Update references.
13391 * tui/tui-layout.c: Update references.
13392 * tui/tui-hooks.c: Update copyright, update references.
13393 * tui/tui.c: Update copyright, update references.
13394 * tui/tui-disasm.c: Update references.
13395
5d51ca54
DC
133962004-01-28 David Carlton <carlton@kealia.com>
13397
13398 * dwarf2read.c (add_partial_structure): Use demangled name if
13399 namespace equals "".
13400
086ed43d
JB
134012004-01-27 Jim Blandy <jimb@redhat.com>
13402
13403 Clean up misapplied patch:
13404 * dwarf2read.c (determine_prefix): Change one of the two forward
13405 declarations for 'determine_prefix_aux' to a declaration for this.
13406 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13407 argument to 'die_specification'.
13408
2a35147e
JB
13409 * dwarf2read.c (read_func_scope): Re-indent comment.
13410
a355c7de 134112004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 13412
a355c7de
AC
13413 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13414 b->exp to NULL after freeing so that error during re-parsing or
13415 evaluation of expressions associated with breakpoint don't
13416 eventually lead to re-freeing of storage.
13417 Committed by Andrew Cagney.
13418
63ff5125
AC
134192004-01-27 Andrew Cagney <cagney@redhat.com>
13420
13421 * source.c (ambiguous_line_spec): Delete undefined declaration.
13422 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13423 (m32r_set_server_address, m32r_set_download_path): Ditto.
13424 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13425
e142c38c
DJ
134262004-01-27 Daniel Jacobowitz <drow@mvista.com>
13427
13428 * dwarf2read.c: Update calls to changed and renamed functions, and
13429 references to moved variables.
13430
13431 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13432 language, language_defn, list_in_scope, and ftypes members.
13433 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13434 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13435 (baseaddr): Remove globals.
13436
13437 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13438 (set_cu_language, die_is_declaration, die_specification)
13439 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13440 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13441 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13442 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13443
13444 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13445 cu.list_in_scope. Don't initialize cu_header_offset.
13446 (add_partial_symbol): Add local baseaddr.
13447 (psymtab_to_symtab_1): Add local baseaddr. Use
13448 objfile->section_offsets for consistency. Don't initialize
13449 cu_header_offset; do initialize cu.header.offset and
13450 cu.list_in_scope.
13451 (read_file_scope, read_func_scope, read_lexical_block_scope)
13452 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13453
c6e06ede
MC
134542004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13455
fb328ecc 13456 * PROBLEMS: Add gdb/1516.
c6e06ede 13457
48184fd4
AC
134582003-12-29 Robert Millan <robertmh@gnu.org>
13459
13460 Patch committed by Andrw Cagney.
13461 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13462 * configure.tgt: Match knetbsd*-gnu.
13463
c1321b30
AC
134642004-01-26 Andrew Cagney <cagney@redhat.com>
13465
f3699be3
AC
13466 * breakpoint.c (catch_command_1): Delete #ifdef code.
13467 (catch_fork_command_1): Delete #ifdef wrapper.
13468 (catch_exec_command_1): Ditto.
13469 (catch_load_command_1): Ditto.
13470 (catch_unload_command_1): Ditto.
13471
c1321b30
AC
13472 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13473 (catch_breakpoint): Delete #if0ed function.
13474 (disable_catch_breakpoint): Ditto.
13475 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13476 (disable_catch, enable_catch, delete_catch): Ditto.
13477
b4501125
AC
134782004-01-26 Andrew Cagney <cagney@redhat.com>
13479
13480 * remote.c (echo_check, quit_flag): Delete variables.
13481 (cisco_kernel_mode): Delete variable.
13482 (minitelnet_return, tty_input, escape_count): Delete variables.
13483 (remote_cisco_mode): Delete variable.
13484 (remote_cisco_open, remote_cisco_close): Delete function.
13485 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13486 (init_remote_cisco_ops): Delete function.
13487 (_initialize_remote): Do not install "remote cisco" code.
13488 (read_frame): Delete cisco specific code.
13489 (remote_info_process): Delete function.
13490 (remote_wait): Delete cisco specific code.
13491 (remote_cisco_section_offsets): Delete function.
13492 (remote_cisco_objfile_relocate): Delete function.
13493 (remote_async_wait): Delete cisco specific code.
13494 (minitelnet, readtty, readsocket): Delete function.
13495
74055713
AC
134962004-01-26 Andrew Cagney <cagney@redhat.com>
13497
13498 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13499 comments mentioning extract_returned_value_address.
13500 * infcmd.c (print_return_value): Update. Add comments on
13501 extract_returned_value_address.
13502 * stack.c (return_command): Add comments on
13503 extract_returned_value_address.
13504 * values.c: Update comment.
13505 * m32r-tdep.c: Update comment.
13506 * sparc-tdep.c: Update comment.
13507 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13508 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13509 * sh64-tdep.c (sh64_gdbarch_init): Update.
13510 * sh-tdep.c (sh_gdbarch_init): Update.
13511 * s390-tdep.c (s390_gdbarch_init): Update.
13512 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13513 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13514 * m68k-tdep.c (m68k_gdbarch_init): Update.
13515 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13516 * m32r-tdep.c (m32r_gdbarch_init): Update.
13517 * ia64-tdep.c (ia64_gdbarch_init): Update.
13518 * h8300-tdep.c (h8300_gdbarch_init): Update.
13519 * frv-tdep.c (frv_gdbarch_init): Update.
13520 * arm-tdep.c (arm_gdbarch_init): Update.
13521 * alpha-tdep.c (alpha_gdbarch_init): Update.
13522
a67af2b9
AC
135232004-01-26 Andrew Cagney <cagney@redhat.com>
13524
13525 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13526 SYMBOL_LOCATION_FUNCS
13527 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13528 "struct symbol_ops".
13529 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13530 type to "struct symbol_ops".
13531 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13532 (struct symbol): Replace ".aux_value.loc.funcs" and
13533 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13534 (SYMBOL_OBJFILE): Delete macro.
13535 (SYMBOL_LOCATION_FUNCS): Delete macro.
13536 (SYMBOL_LOCATION_BATON): Update.
13537 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13538 intead of SYMBOL_LOCATION_FUNCS.
13539 * ax-gdb.c (gen_var_ref): Ditto.
13540 * printcmd.c (address_info): Ditto.
13541 * findvar.c (read_var_value): Ditto.
13542 (symbol_read_needs_frame): Ditto.
13543
c034e007
AC
135442004-01-26 Andrew Cagney <cagney@redhat.com>
13545
13546 * dwarf2read.c (read_func_scope): Document frame-base hack.
13547
bb472c1e
MK
135482004-01-25 Mark Kettenis <kettenis@gnu.org>
13549
13550 * infcmd.c (print_return_value): Plug memory leak; delete
13551 ui_stream object. Rename argument `structure_return' to
13552 `struct_return'.
13553
c8e737d5
MK
135542004-01-25 Mark Kettenis <kettenis@gnu.org>
13555
f941662f
MK
13556 * infcmd.c (print_return_value): Wrap long lines.
13557 (finish_command_continuation, finish_command): Remove unused
13558 variable `funcaddr'. Fix some coding-standards problems.
13559
c558d81a 13560 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 13561 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
13562 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13563 TDEP->fpregset to zero.
13564
bf1e5861 13565 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
13566 floating-point registers for traditional NetBSD core files.
13567 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13568 TDEP->sizeof_fpregset here.
13569
4c72d57a
MK
135702004-01-25 Mark Kettenis <kettenis@gnu.org>
13571
566626fa
MK
13572 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13573 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13574 function with code split out from
13575 sparc32nbsd_sigcontext_frame_cache.
13576 (sparc32nbsd_sigcontext_frame_cache): Use
13577 sparc32nbsd_sigcontext_saved_regs.
13578 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13579 OpenBSD.
13580 * sparcobsd-tdep.c: New file.
13581 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13582 (sparcobsd-tdep.o): New dependency.
13583 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13584 * config/sparc/obsd.mt: New file.
13585
4c72d57a
MK
13586 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13587 TDEP->fpregset to be initialized to enable core file register
13588 sets.
13589
7e5e9f88
MK
135902004-01-24 Mark Kettenis <kettenis@gnu.org>
13591
f0f207fd 13592 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
13593 Add opaque declarations.
13594 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13595 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13596 function with code split out from
13597 sparc64nbsd_sigcontext_frame_cache.
13598 (sparc64nbsd_sigcontext_frame_cache): Use
13599 sparc64nbsd_sigcontext_saved_regs.
13600 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13601 OpenBSD.
13602 * sparc64obsd-tdep.c: New file.
13603 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13604 (sparc64obsd-tdep.o): New dependency.
13605 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13606 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13607 * config/sparc/obsd64.mt: New file.
13608
690668cc
MK
13609 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13610 read the instruction at PC.
13611
7e5e9f88
MK
13612 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13613 value of GDB_OSABI_DEFAULT.
13614 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13615 instead of GDB_OSABI_NETBSD_AOUT.
13616
68b6dce9
NR
136172004-01-24 Nick Roberts <nick@nick.uklinux.net>
13618
13619 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13620 copyright.
13621
080ce8c0
AC
136222004-01-23 Andrew Cagney <cagney@redhat.com>
13623
13624 * printcmd.c (display_command): Replace tui_set_display call with
13625 tui_set_layout_for_display_command.
13626 * tui/tui.h (enum tui_win_type): Define.
13627 (tui_set_layout): Delete declaration.
13628 (tui_set_layout_for_display_command): Rename set_tui_layout.
13629 * tui/tui-data.h (enum tui_layout_type): Define.
13630 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13631 "tui.h".
13632 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13633 (tui_default_win_height): Rename tuiDefaultWinHeight.
13634 (tui_default_win_viewport_height): Rename
13635 tuiDefaultWinViewportHeight.
13636 (tui_set_layout): RenametuiSetLayout.
13637 * tui/tui-layout.c: Update references.
13638 * tui/tui.c: Update references.
13639 * tui/tui-disasm.c: Update references.
13640
b368761e
DC
136412004-01-23 David Carlton <carlton@kealia.com>
13642
13643 Partial workaround for PR c++/1511:
13644 * cp-namespace.c: Include frame.h.
13645 (cp_lookup_transparent_type): New
13646 (cp_lookup_transparent_type_loop): New.
13647 * cp-support.h: Declare cp_lookup_transparent_type.
13648 * symtab.c (basic_lookup_transparent_type): Renamed from
13649 lookup_transparent_type.
13650 (lookup_transparent_type): Replace old body by a call to
13651 current_language->la_lookup_transparent_type.
13652 * symtab.h: Update copyright. Declare
13653 basic_lookup_transparent_type.
13654 * language.h: Update copyright.
13655 (struct language_defn): Add la_lookup_transparent_type.
13656 * language.c: Update copyright.
13657 (unknown_language_defn): Add basic_lookup_transparent_type.
13658 (auto_language_defn): Add basic_lookup_transparent_type.
13659 (local_language_defn): Add basic_lookup_transparent_type.
13660 * ada-lang.c: Update copyright.
13661 (ada_language_defn): Add basic_lookup_transparent_type.
13662 * c-lang.c: Update copyright.
13663 (c_language_defn): Add basic_lookup_transparent_type.
13664 (cplus_language_defn): Add basic_lookup_transparent_type.
13665 (asm_language_defn): Add basic_lookup_transparent_type.
13666 (minimal_language_defn): Add basic_lookup_transparent_type.
13667 * f-lang.c: Update copyright.
13668 (f_language_defn): Add basic_lookup_transparent_type.
13669 * jv-lang.c: Update copyright.
13670 (java_language_defn): Add basic_lookup_transparent_type.
13671 * m2-lang.c: Update copyright.
13672 (m2_language_defn): Add basic_lookup_transparent_type.
13673 * objc-lang.c: Update copyright.
13674 (objc_language_defn): Add basic_lookup_transparent_type.
13675 * p-lang.c: Update copyright.
13676 (p_language_defn): Add basic_lookup_transparent_type.
13677 * scm-lang.c: Update copyright.
13678 (scm_language_defn): Add basic_lookup_transparent_type.
13679 * Makefile.in (cp-namespace.o): Depend on frame.h.
13680
fdde2d81
DC
136812004-01-23 David Carlton <carlton@kealia.com>
13682
13683 Patch for PR c++/1520:
13684 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13685 properly if we have a specification die.
13686 (determine_prefix_aux): Rename from determine_prefix.
13687 (determine_prefix): Like the old determine_prefix, but never
13688 returns NULL.
13689
5b828b6b
TR
136902004-01-23 Theodore A. Roth <troth@openavr.org>
13691
13692 * avr-tdep.c: Update copyright.
13693 (avr_iaddr_p): Delete unused function.
13694 (avr_saddr_p): Delete unused function.
13695
a1b8c067
DC
136962004-01-23 David Carlton <carlton@kealia.com>
13697
13698 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13699 Fix for PR symtab/1534.
13700
f2cab569
MK
137012004-01-23 Mark Kettenis <kettenis@gnu.org>
13702
13703 * NEWS (New native configurations): Mention OpenBSD/sparc and
13704 OpenBSD/sparc64.
13705 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13706 * configure.host: Likewise.
13707 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13708 handler for OpenBSD.
13709 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13710
642d8300
MK
137112004-01-22 Mark Kettenis <kettenis@gnu.org>
13712
89aac506
MK
13713 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13714 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13715
36662fde
MK
13716 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13717 * cli/cli-cmds.c (shell_escape): Likewise.
13718
642d8300
MK
13719 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13720 OpenBSD .note.openbsd.ident sections.
13721
fae299cd
DC
137222004-01-22 David Carlton <carlton@kealia.com>
13723
13724 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13725 get_scope_pc_bounds.
13726 (read_file_scope): Ditto.
13727 (get_scope_pc_bounds): New function, produced by extracting code
13728 from the above two functions, consolidating it, and adding support
13729 for DW_TAG_namespace.
13730
a49d618c
MK
137312004-01-22 Mark Kettenis <kettenis@gnu.org>
13732
13733 * osabi.c (MAX_NOTESZ): New define.
13734 (check_note): New function.
13735 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13736 check_note.
13737
fe61caab
RM
137382004-01-21 Roland McGrath <roland@redhat.com>
13739
13740 * MAINTAINERS (write after approval): Add myself.
13741
ec145965
EZ
137422004-01-21 Eli Zaretskii <eliz@gnu.org>
13743
13744 * utils.c (init_page_info): Move declarations of `rows' and
13745 `cols' before the __GO32__-specific code. Move the closing brace
13746 outside the #ifdef __GO32__..#endif block.
13747 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13748
877522db
PB
137492004-01-21 Paul Brook <paul@codesourcery.com>
13750
13751 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13752 BPSTAT_WHAT_CHECK_SHLIBS.
13753
dbf5be1c
PB
137542004-01-21 Paul Brook <paul@codesourcery.com>
13755
13756 * MAINTAINERS: Add myself to write-after-approval.
13757
81f08b92
AC
137582004-01-20 Andrew Cagney <cagney@redhat.com>
13759
5a1efed7
AC
13760 * ax-gdb.c (print_axs_value): Delete unused function.
13761 * jv-lang.c (java_lookup_type): Delete unused function.
13762 * cli/cli-dump.c (dump_filetype): Delete unused function.
13763 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13764 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13765 (mips_getstring): Delete unused function.
13766 (pmon_insert_breakpoint): Delete #if0ed function.
13767 (PMON_MAX_BP): Delete #if0ed MACRO.
13768 (mips_pmon_bp_info): Delete #if0ed variable.
13769 (pmon_remove_breakpoint): Delete #if0ed function.
13770 * monitor.c (monitor_write_even_block): Delete unused function.
13771 (monitor_write_memory_block): Delete #if0ed code.
13772 * dink32-rom.c (dink32_load): Delete unused function.
13773 (_initialize_dink32_rom): Delete #if0ed code.
13774 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13775
b0a30fce
AC
13776 * tui/tui-command.c: Update references.
13777 * tui/tui-io.c: Update references.
13778 * tui/tui-command.h: Update copyright.
13779 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13780
81f08b92
AC
13781 * source.c (ambiguous_line_spec): Delete never-defined function.
13782 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13783 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13784 * cli/cli-cmds.c (validate_comname): Ditto.
13785
65f05602
AC
13786 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13787 "tui-data.h".
13788 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13789 (tui_show_disassem): Rename tuiShowDisassem.
13790 (tui_show_disassem_and_update_source): Rename
13791 tuiVerticalDisassemScroll.
13792 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13793 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13794 * tui/tui.h: Update copyright.
13795 (enum tui_status): Define.
13796 * tui/tui-data.h (enum tui_scroll_direction): Define.
13797 * tui/tui-disasm.c: Update copyright. Update references.
13798 * tui/tui-winsource.c: Update copyright. Update references.
13799 * tui/tui-win.c: Update references.
13800 * tui/tui-layout.c: Update references.
13801
6bb0384f
AC
138022004-01-20 Andrew Cagney <cagney@redhat.com>
13803
13804 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13805 sym2 to start of block.
13806
9175c9a3
MC
138072004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13808
13809 * MAINTAINERS: Delete mmalloc.
13810 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13811 * NEWS: Mention removal of --with-malloc.
13812 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13813 * config.in: Regenerate.
13814 * configure: Regenerate.
6bb0384f
AC
13815 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13816 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
13817 * gdbinit.in: Remove mmalloc.
13818 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13819 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13820 * config/i386/go32.mh: Likewise.
13821 * config/i386/interix.mh: Likewise.
13822 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13823
4fcef00a
JJ
138242004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13825
13826 * linespec.c (decode_variable, symtab_from_filename): Call
13827 error_silent with error message instead of throwing an exception
13828 directly.
13829 * defs.h (error_silent, error_output_message): Add prototypes.
13830 (catch_exceptions_with_msg): Ditto.
13831 * utils.c (error_silent, error_output_message): New functions.
13832 * top.c (catch_exceptions_with_msg): New function.
13833
8e94b928
NR
138342004-01-20 Nick Roberts <nick@nick.uklinux.net>
13835
13836 * mi/mi-cmds.h (enum print_values): Add definition.
13837
13838 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13839 type and value for simple data types and just the name and type
13840 for complex ones, if required.
13841
13842 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13843 children, if required.
13844
a02d6af8
KB
138452004-01-19 Kevin Buettner <kevinb@redhat.com>
13846
13847 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13848 unused declarations.
13849
78a4a9b9
AC
138502004-01-19 Andrew Cagney <cagney@redhat.com>
13851
13852 * top.h (mapped_symbol_files): Delete declaration.
13853 * main.c (captured_main): Delete option "m" and "mapped".
13854 * objfiles.c (mapped_symbol_files): Delete variable.
13855 * symfile.c (symbol_file_command): Delete mmap code.
13856 (symbol_file_add_with_addrs_or_offsets): Ditto.
13857 (add_symbol_file_command, reread_separate_symbols): Ditto.
13858 * objfiles.h (OBJF_MAPPED): Delete.
13859 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13860 (free_objfile) [USE_MMALLOC]: Ditto.
13861 (open_existing_mapped_file): Delete function.
13862 (open_mapped_file): Delete function.
13863 (map_to_file): Delete function.
13864
2dbd5e30
KB
138652004-01-19 Kevin Buettner <kevinb@redhat.com>
13866
13867 * infrun.c (step_into_function): Account for possible breakpoint
13868 adjustment when computing ``stop_func_start''.
13869
437b434f
KB
138702004-01-19 Kevin Buettner <kevinb@redhat.com>
13871
13872 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13873 the region size against the size of a pointer, not the size of
13874 a register as given by DEPRECATED_REGISTER_SIZE.
13875
55fb0713
AC
138762004-01-19 Andrew Cagney <cagney@redhat.com>
13877
13878 * tui/tui-regs.h: Include "tui-data.h".
13879 (tuiFirstRegElementNoInLine): Delete declaration.
13880 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13881 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13882 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13883 (tui_calculate_regs_column_count): Rename
13884 tuiCalculateRegsColumnCount.
13885 (tui_check_register_values): Rename tuiCheckRegisterValues.
13886 (tui_show_registers): Rename tuiShowRegisters.
13887 (tui_display_registers_from_line): Rename
13888 tuiDisplayRegistersFromLine.
13889 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13890 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13891 (tui_first_reg_element_no_inline): Rename
13892 tuiFirstRegElementNoInLine.
13893 * tui/tui-data.h: Update copyright.
13894 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13895 * tui/tui-windata.c: Update copyright, update references.
13896 * tui/tui-regs.c: Update copyright, update references.
13897 * tui/tui-win.c: Update copyright, update references.
13898 * tui/tui-layout.c: Update copyright, update references.
fe61caab 13899
cebe9500
AC
139002004-01-18 Andrew Cagney <cagney@redhat.com>
13901
bcdf1568
AC
13902 * tui/tui-io.c: Update copyright.
13903 (key_is_end_sequence, key_is_backspace): New functions.
13904 (key_is_command_char, key_is_start_sequence): New function.
13905 (tui_getc): Update references.
13906 * tui/tui-io.h: Update copyright.
13907 (m_tuiStartNewLine): Delete macro.
13908 (m_isBackspace, m_isDeleteChar): Delete macros.
13909 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13910 (m_isNextPage, m_isPrevPage): Delete macros.
13911 (m_isLeftArrow, m_isRightArrow): Delete macros.
13912 (m_isXdbStyleCommandChar): Delete macro.
13913 (key_is_start_sequence): Declare, replace m_isStartSequence.
13914 (key_is_end_sequence): Declare, replace m_isEndSequence.
13915 (key_is_backspace): Declare ,replace m_isBackspace.
13916 (key_is_command_char): Declare, replace m_isCommandChar.
13917 * tui/tui-command.c: Update copyright.
13918 (tuiDispatchCtrlChar): Update references.
13919
130d87e6
AC
13920 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13921 tuiSourceWin.h.
13922
d7b2e967
AC
13923 * tui/tui-command.c: Rename tui/tuiCommand.c.
13924 * tui/tui-command.h: Rename tui/tuiCommand.h.
13925 * tui/tui-data.c: Rename tui/tuiData.c.
13926 * tui/tui-data.h: Rename tui/tuiData.h.
13927 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13928 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13929 * tui/tui-io.c: Rename tui/tuiIO.c.
13930 * tui/tui-io.h: Rename tui/tuiIO.h.
13931 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13932 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13933 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13934 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13935 * tui/tui-source.c: Rename tui/tuiSource.c.
13936 * tui/tui-source.h: Rename tui/tuiSource.h.
13937 * tui/tui-stack.c: Rename tui/tuiStack.c.
13938 * tui/tui-stack.h: Rename tui/tuiStack.h.
13939 * tui/tui-win.c: Rename tui/tuiWin.c.
13940 * tui/tui-win.h: Rename tui/tuiWin.h.
13941 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13942 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13943 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13944 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13945 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13946 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13947 * tui/tui-file.c: Update includes.
13948 * tui/tui-hooks.c: Update includes.
13949 * tui/tui-interp.c: Update includes.
13950 * tui/tui.c: Update includes.
13951 * Makefile.in: Update all tui/ dependencies.
13952 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13953
b2100910
AC
13954 * Makefile.in: Update copyright. Update dependencies.
13955
cebe9500
AC
13956 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13957 problem.
13958
c6f0559b
AC
139592004-01-18 Andrew Cagney <cagney@redhat.com>
13960
43e9390b
AC
13961 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13962 instead of register_gdbarch_init.
13963
c6f0559b
AC
13964 * remote-sds.c (tohex): Delete unused function. Update copyright.
13965 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13966 * v850-tdep.c (v850_register_virtual_size): Ditto.
13967 * target.c (normal_target_post_startup_inferior): Ditto.
13968 * source.c (ambiguous_line_spec): Ditto.
13969 * remote.c (adapt_remote_get_threadinfo): Ditto.
13970 * mi/mi-out.c (out_field_fmt): Ditto.
13971 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13972 (output_control_change_notification): Ditto.
13973 * m68k-tdep.c (m68k_register_byte): Ditto.
13974 (m68k_remote_breakpoint_from_pc): Ditto.
13975 * ui-out.c (init_ui_out_state): Delete unused declaration.
13976 * stabsread.c (search_value): Ditto.
13977 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13978 * maint.c (print_section_table): Ditto.
13979 * infrun.c (set_follow_fork_mode_command): Ditto.
13980
a8504492
MK
139812004-01-18 Mark Kettenis <kettenis@gnu.org>
13982
13983 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13984 DW_CFA_def_cfa_exporession. Add support for
13985 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13986 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13987
0bd8997e
AC
139882004-01-18 Andrew Cagney <cagney@redhat.com>
13989
13990 * ocd.c: Update copyright.
13991 (bdm_read_register_command): Delete unused function.
13992 (_initialize_remote_ocd): Delete commented out reference.
13993 (get_quoted_char, reset_packet): Delete #if0ed function.
13994 (output_packet, put_quoted_char): Delete #if0ed function.
13995 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13996 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13997 (BDM_BREAKPOINT): Delete #if0ed macro.
13998 (remote_timeout): Delete #if0ed variable.
13999
31bb40e4
MK
140002004-01-18 Mark Kettenis <kettenis@gnu.org>
14001
14002 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
14003 (core-sol2.o): Remove dependency.
14004 * core-sol2.c: Remove file.
14005
887432a5
AC
140062004-01-17 Andrew Cagney <cagney@redhat.com>
14007
14008 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
14009 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
14010 enums.
14011
29182b13
DJ
140122004-01-17 Daniel Jacobowitz <drow@mvista.com>
14013
14014 * remote.c: Update copyright years.
14015
2963ee1d
DJ
140162004-01-17 Daniel Jacobowitz <drow@mvista.com>
14017
14018 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
14019
79d45cd4
AC
140202004-01-17 Andrew Cagney <cagney@redhat.com>
14021
ee300cd4
AC
14022 * mdebugread.c: Update copyright.
14023 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
14024 (parse_type, parse_procedure): Ditto.
14025 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
14026
fcacc9c2
AC
14027 * cris-tdep.c (cris_store_struct_return): Put back accidently
14028 deleted function.
14029
79d45cd4
AC
14030 * gdbarch.sh: Update copyright year.
14031 * gdbarch.h, gdbarch.c: Re-generate.
14032
b263358a
DJ
140332004-01-17 Daniel Jacobowitz <drow@mvista.com>
14034
14035 Suggested by George Anzinger.
14036 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
14037 correct stack offset. Include unknown opcode numbers in the error
14038 message.
14039
931aecf5
AC
140402004-01-17 Andrew Cagney <cagney@redhat.com>
14041
14042 * x86-64-tdep.c (x86_64_init_abi): No need to clear
14043 extract_struct_value_address, i386 does not set it.
14044 * sparc64-tdep.c (sparc64_init_abi): Do not set
14045 extract_struct_value_address, never called.
14046 (sparc64_extract_struct_value_address): Delete function.
14047 * m68hc11-tdep.c: Update copyright.
14048 (m68hc11_gdbarch_init): Delete redundant assignment of
14049 extract_struct_value_address.
14050 * i386-tdep.c: Update copyright.
14051 (i386_gdbarch_init): Do not set extract_struct_value_address,
14052 never called.
14053 (i386_extract_struct_value_address): Delete function.
14054 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
14055 extract_struct_value_address, never called.
14056 (sparc32_extract_struct_value_address): #if 0 function. Add
14057 comments explaining its future.
14058
756fe439
DJ
140592004-01-17 Daniel Jacobowitz <drow@mvista.com>
14060
14061 * arm-tdep.c (arm_write_pc): New function.
14062 (arm_gdbarch_init): Call set_gdbarch_write_pc.
14063
e74f0f02
DJ
140642004-01-17 Daniel Jacobowitz <drow@mvista.com>
14065
14066 * breakpoint.c (must_shift_inst_regs): Delete.
14067 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
14068 and SHIFT_INST_REGS.
14069 * infcmd.c (step_1, step_1_continuation): Delete references to
14070 SHIFT_INST_REGS.
14071 * infrun.c (keep_going): Likewise.
14072 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
14073 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
14074
b6cb9035
AC
140752004-01-17 Andrew Cagney <cagney@redhat.com>
14076
444a1e2e
AC
14077 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
14078 * gdbarch.h, gdbarch.c: Re-generate.
14079 * infcmd.c (print_return_value): Delete reference to
14080 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
14081
def7e6ed
AC
14082 * cris-tdep.c (cris_gdbarch_init): Do not set
14083 deprecated_extract_struct_value_address.
14084
07be497a
AC
14085 * xstormy16-tdep.c: Update copyright.
14086 (xstormy16_extract_struct_value_address): Update to current
14087 extract struct value address interface.
14088 (xstormy16_gdbarch_init): Set extract_struct_value_address.
14089 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
14090 current extract struct value address interface.
14091 (sh64_gdbarch_init): Set extract_struct_value_address.
14092
6b4d5c91
AC
14093 * cris-tdep.c: Update copyright.
14094 (cris_extract_struct_value_address): Delete function.
14095 (struct_return_address): Delete variable.
14096 (cris_store_struct_return): Do not set struct_return_address.
14097
464e0365
AC
14098 * mcore-tdep.c: Update copyright.
14099 (mcore_extract_struct_value_address): Delete function. Update
14100 comments.
14101 (mcore_gdbarch_init): Update.
14102 * mn10300-tdep.c: Update copyright.
14103 (mn10300_extract_struct_value_address): Delete function.
14104 (mn10300_gdbarch_init): Update.
14105 * v850-tdep.c: Update copyright.
14106 (v850_extract_struct_value_address): Delete.
14107 (v850_gdbarch_init): Update.
14108 * ns32k-tdep.c: Update copyright.
14109 (ns32k_extract_struct_value_address): Delete.
14110 (ns32k_gdbarch_init): Update.
14111 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
14112 (hppa_gdbarch_init): Update.
14113 * vax-tdep.c: Update copyright.
14114 (vax_extract_struct_value_address): Delete.
14115 (vax_gdbarch_init): Update.
14116
afb18d0f
AC
14117 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
14118 * gdbarch.h, gdbarch.c: Re-generate.
14119 * procfs.c (procfs_fetch_registers): Delete reference to
14120 DEPRECATED_NPC_REGNUM.
14121 (procfs_store_registers): Ditto.
14122 * regcache.c (generic_target_write_pc): Simplify.
14123 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
14124
a698f53e
AC
14125 * core-sol2.c (fetch_core_registers): Replace
14126 DEPRECATED_NPC_REGNUM with equivalent tdep value.
14127
adc11376
AC
14128 * hppa-tdep.c: Update copyright year.
14129 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
14130 NPC_REGNUM.
14131 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
14132
b6cb9035
AC
14133 * mips-tdep.c (mips_write_pc): New function.
14134 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
14135 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
14136 (mips_find_saved_regs, mips_software_single_step: Ditto.
14137 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14138 mips_init_extra_frame_info, mips_pop_frame): Ditto.
14139
6d82d43b
AC
141402004-01-17 Andrew Cagney <cagney@redhat.com>
14141
14142 * mips-tdep.c: Re-indent. Group functions by ABI.
14143
71bd6bd4
AC
141442004-01-17 Andrew Cagney <cagney@redhat.com>
14145
14146 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14147 * gdbarch.c: Re-generate.
14148 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14149 DECR_PC_AFTER_BREAK to zero.
14150 * vax-tdep.c (vax_gdbarch_init): Ditto.
14151 * v850-tdep.c (v850_gdbarch_init): Ditto.
14152 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14153 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14154 * sh-tdep.c (sh_gdbarch_init): Ditto.
14155 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14156 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14157 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14158 * mips-tdep.c (mips_gdbarch_init): Ditto.
14159 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14160 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14161 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14162 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14163 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14164 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14165 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14166 * frv-tdep.c (frv_gdbarch_init): Ditto.
14167 * cris-tdep.c (cris_gdbarch_init): Ditto.
14168 * avr-tdep.c (avr_gdbarch_init): Ditto.
14169 * arm-tdep.c (arm_gdbarch_init): Ditto.
14170 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14171
a02abb62
JB
141722004-01-17 J. Brobecker <brobecker@gnat.com>
14173
14174 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14175 Delete, no longer used.
14176 (read_subrange_type): New function, mostly extracted from
14177 read_array_type().
14178 (read_array_type): Replace extracted code by call to
14179 read_subrange_type().
14180 (dwarf2_get_attr_constant_value): New function.
14181 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14182 (add_partial_symbol): Likewise.
14183 (process_die): Likewise.
14184 (new_symbol): Likewise.
14185 (read_type_die): Likewise.
14186
cf5b2f1b
AC
141872004-01-16 Andrew Cagney <cagney@redhat.com>
14188
14189 * symfile.c: Update copyright year.
14190 (compare_symbols): Delete unused function.
14191 * stabsread.c: Update copyright year.
14192 (lrs_general_complaint): Delete unused function.
14193 (ref_search_value): Ditto.
14194 (get_substring): Delete declaration.
14195 * sh64-tdep.c: Update copyright year.
14196 (sh64_get_gdb_regnum): Delete unused function.
14197 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14198 Delete unused function.
14199
d33b9831
MK
142002004-01-17 Mark Kettenis <kettenis@gnu.org>
14201
14202 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14203 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14204
7aea86e6
AC
142052004-01-16 Andrew Cagney <cagney@redhat.com>
14206
14207 Changes from Peter Schauer.
14208 * rs6000-tdep.c: Update copyright year.
14209 (rs6000_push_dummy_call): Update the stack pointer before
14210 accessing the corresponding stack region.
14211 * rs6000-nat.c: Update copyright year.
14212 (set_host_arch): Set "info.abfd" to "exec_bfd".
14213
26b0da32
MK
142142004-01-15 Mark Kettenis <kettenis@gnu.org>
14215
14216 * blockframe.c: Update copyright year.
14217 (inside_entry_func): Don't treat a zero PC specially.
14218
86fbe6cc
EZ
142192004-01-14 Elena Zannoni <ezannoni@redhat.com>
14220
14221 * gcore.c (gcore_copy_callback): Use paddr_d to print size
14222 variable.
14223 (gcore_create_callback): Ditto. Skip any memory segment that has
14224 no permissions set.
14225
63d06c5c
DC
142262004-01-14 David Carlton <carlton@kealia.com>
14227
14228 Change symbols for C++ nested types to contain the fully qualified
14229 name, if possible. (At least in the DWARF-2 case.) Partial fix
14230 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14231 c++/895.
14232 * c-exp.y (qualified_type): Handle types nested within classes.
14233 * cp-namespace.c: Update comments.
14234 (cp_set_block_scope): Delete #if 0.
14235 (cp_lookup_nested_type): Handle types nested within classes.
14236 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14237 when appropriate.
14238 (add_partial_symbol): Add the name of the enclosing namespace to
14239 types.
14240 (pdi_needs_namespace): New.
14241 (add_partial_namespace): Tweak comment.
14242 (add_partial_structure): New.
14243 (psymtab_to_symtab_1): Initialize processing_current_prefix
14244 here...
14245 (process_die): instead of here.
14246 (read_structure_scope): Try to figure out the name of the class or
14247 namespace that the structure might be defined within.
14248 (read_enumeration): Generate fully-qualified names, if possible.
14249 (read_namespace): Don't set name to NULL.
14250 (die_specification): New.
14251 (new_symbol): Generate fully-qualified names for types.
14252 (read_type_die): Determine appropriate prefix.
14253 (determine_prefix): New.
14254 (typename_concat): New.
14255 (class_name): New.
14256 * valops.c (value_aggregate_elt): Pass NOSIDE to
14257 value_struct_elt_for_reference.
14258 (value_struct_elt_for_reference): Make static, add NOSIDE
14259 parameter, call value_maybe_namespace_elt as a last resort.
14260 (value_namespace_elt): Break out code into
14261 value_maybe_namespace_elt.
14262 (value_maybe_namespace_elt): New.
14263
87783b8b
AC
142642004-01-12 Andrew Cagney <cagney@redhat.com>
14265
14266 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14267 cooked floating-point registers.
14268 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14269 and value_to_register.
14270
6503b91e
AC
142712004-01-13 Andrew Cagney <cagney@redhat.com>
14272
14273 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14274 * gdbarch.c: Re-generate.
14275 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14276 FUNCTION_START_OFFSET.
14277 * v850-tdep.c (v850_gdbarch_init): Ditto.
14278 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14279 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14280 * sh-tdep.c (sh_gdbarch_init): Ditto.
14281 * s390-tdep.c (s390_gdbarch_init): Ditto.
14282 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14283 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14284 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14285 * mips-tdep.c (mips_gdbarch_init): Ditto.
14286 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14287 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14288 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14289 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14290 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14291 * i386-tdep.c (i386_gdbarch_init): Ditto.
14292 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14293 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14294 * frv-tdep.c (frv_gdbarch_init): Ditto.
14295 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14296 * cris-tdep.c (cris_gdbarch_init): Ditto.
14297 * avr-tdep.c (avr_gdbarch_init): Ditto.
14298 * arm-tdep.c (arm_gdbarch_init): Ditto.
14299 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14300
ea1dd7bc
DJ
143012004-01-13 Daniel Jacobowitz <drow@mvista.com>
14302
14303 * infrun.c (follow_fork_mode_ask): Remove.
14304 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14305 (follow_fork): Simplify and remove internal error for
14306 follow_fork_mode_ask.
14307 (_initialize_infrun): Update "set follow-fork-mode" help text.
14308
0f0cffd2
AC
143092004-01-13 Andrew Cagney <cagney@redhat.com>
14310
14311 * configure.in: Update copyright year.
14312 (build_warnings): Add -Wunused-label.
14313 * configure: Re-generate.
14314
de38af99
AC
143152004-01-12 Andrew Cagney <cagney@redhat.com>
14316
954a7fba
AC
14317 * exec.h (exec_ops): Make "extern".
14318
de38af99
AC
14319 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14320 the function is void.
14321 (mips_pseudo_register_write): Ditto.
14322
1a111ce3
AC
143232004-01-12 Andrew Cagney <cagney@redhat.com>
14324
14325 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14326 call. Never defined.
14327 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14328 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14329 (struct sparc_gregset, struct regcache): Ditto.
14330 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14331
48efe704
AC
143322004-01-12 Andrew Cagney <cagney@redhat.com>
14333
14334 * mi/ChangeLog: Delete file. Renamed to ...
14335 * mi/ChangeLog-1999-2003: New file.
14336 * tui/ChangeLog: Delete file. Renamed to ...
14337 * tui/ChangeLog-1998-2003: New file.
fe61caab 14338
a54124c5
MK
143392004-01-11 Mark Kettenis <kettenis@gnu.org>
14340
2ca62865
MK
14341 * sparc64nbsd-tdep.c: Include "regset.h".
14342 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14343 Remove variables.
14344 (fetch_core_registers): Remove function.
14345 (sparc64nbsd_core_fns): Remove variable.
14346 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14347 functions.
14348 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14349 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14350 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14351
ca9d58e9
MK
14352 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14353 sparc_extract_struct_value_address.
14354 (sparc32_gdbarch_init): Set extract_struct_value_address.
14355 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14356 function.
14357 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14358 return_value_on_stack.
14359
3cc87ec0
MK
14360 * NEWS: Mention that %cs and %ss have been added to the AMD64
14361 configurations
14362
5bf00f29
MK
14363 * frame.c: Update copyright year.
14364 (get_prev_frame): Improve comment.
14365
4f7ec84e
MK
14366 * sparc64fbsd-tdep.c: Include "regset.h".
14367 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14368 Remove variables.
14369 (fetch_core_registers): Remove function.
14370 (sparc64fbsd_core_fns): Remove variable.
14371 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14372 functions.
14373 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14374 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 14375 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 14376
4e7b0cd3
MK
14377 * sparcnbsd-tdep.c: Include "regset.h".
14378 (fetch_core_registers): Remove function.
14379 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14380 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14381 functions.
14382 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14383 TDEP->fpregset.
46b58ce9 14384 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 14385
a54124c5
MK
14386 * sparc-tdep.h (struct regset): Provide opaque declaration.
14387 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14388 fpregset and sizeof_fpregset members.
14389 * sparc-tdep.c (struct regset): Provide opaque declaration.
14390 (sparc_regset_from_core_section): New function.
14391 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14392 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14393 Set regset_from_core_section when appropriate.
14394
29ff87c5
MK
143952004-01-10 Mark Kettenis <kettenis@gnu.org>
14396
79b1ab3d
MK
14397 * x86-64-tdep.c (amd64_non_pod_p): New function.
14398 (amd64_classify_aggregate): Return class memory for non-POD
14399 C++ structure types.
14400
6470d250
MK
14401 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14402 argument. Use it to reserve a register if necessary.
14403 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14404 amd64_push_arguments.
14405
562c50c2
MK
14406 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14407
af233647
MK
14408 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14409 register numbers in comments.
14410 * x86-64-tdep.h: Update copyright year.
14411 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14412 Adjust for addition of %cs and %ss.
14413 * amd64fbsd-nat.c: Update copyright year.
14414 (reg_offset): Add register offsets for %cs and %ss.
14415 * amd64fbsd-tdep.c: Update copyright year.
14416 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14417 (amd64fbsd_sc_reg_offset): Likewise.
14418 * x86-64-linux-nat.c: Update copyright year.
14419 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14420 and %ss.
14421 * amd64nbsd-nat.c: Update copyright year.
14422 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14423 * amd64nbsd-tdep.c: Update copyright year.
14424 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14425 * x86-64-linux-tdep.c: Update copyright year.
14426 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14427 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14428 * regformats/reg-x86-64.dat: Add %cs and %ss.
14429
29ff87c5
MK
14430 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14431 variables to prevent long lines. Update comments to reflect
14432 reality.
14433
38d518c9
EZ
144342004-01-09 David Carlton <carlton@kealia.com>
14435
14436 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14437 * dwarf2read.c (read_namespace): Pull out name-generating code
14438 into namespace_name. Rename previous_namespace to previous_prefix
14439 and processing_current_namespace to processing_current_prefix..
14440 (namespace_name): New function.
14441 (add_partial_symbol): Substitute uses of pdi->name with
14442 actual_name.
14443 * cp-support.h: Rename processing_current_namespace to
14444 processing_current_prefix.
14445 Update copyright year.
14446 * cp-namespace.c: Rename processing_current_namespace to
14447 processing_current_prefix.
14448 Update copyright year.
fe61caab 14449
1e4728e7
AC
144502004-01-09 Andrew Cagney <cagney@redhat.com>
14451
14452 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14453
c77c642a
MK
144542004-01-09 Mark Kettenis <kettenis@gnu.org>
14455
14456 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14457 complaining.
14458 (process_one_symbol): Deal with N_PATCH stabs.
14459
b44e9041
EZ
144602004-01-09 Elena Zannoni <ezannoni@redhat.com>
14461
14462 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14463 ifdeffed code.
14464 Update copyright year.
38d518c9 14465
eccfb640
MC
144662004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14467
14468 * config/pa/tm-hppa.h: Update extern declarations for
14469 hppa32_hpux_frame_saved_pc_in_sigtramp,
14470 hppa32_hpux_frame_base_before_sigtramp, and
14471 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14472
848c5feb
MC
144732004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14474
14475 * config/pa/tm-hppah.h: Update copyright years.
14476
3cc5d663
AC
144772004-01-08 Andrew Cagney <cagney@redhat.com>
14478
14479 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14480 (mips_o32_reg_struct_has_addr): Delete function.
14481 (mips_gdbarch_init): Update.
14482 (mips_extract_struct_value_address): Delete function.
14483
bfec0b41
JJ
144842004-01-08 David Mosberger <davidm@hpl.hp.com>
14485
14486 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14487 reality.
14488
16e109ca
AC
144892004-01-07 Andrew Cagney <cagney@redhat.com>
14490
6214a8a1
AC
14491 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14492 architecture's elf flags (when available).
14493
8d5838b5
AC
14494 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14495 FPU to the start, check the MIPS FPU when looking for an old
14496 architecture.
14497 (set_mipsfpu_single_command): Update the architecture.
14498 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14499
480d3dd2
AC
14500 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14501 (mips_mask_address_p): Add "tdep" parameter.
14502 (show_mask_address, mips_addr_bits_remove): Update.
14503 (mips_dump_tdep): Update.
14504 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14505 (MIPS_STACK_ARGSIZE): Delete macro.
14506 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14507 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14508 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14509 (mips_dump_tdep): Update.
14510 (MIPS_SAVED_REGSIZE): Delete macro.
14511 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14512 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14513 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14514 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14515 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14516 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14517 (mips_pop_frame, return_value_location): Update.
14518 (mips_n32n64_return_value, mips_dump_tdep): Update.
14519
ec03c1ac
AC
14520 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14521 MIPS ABI.
14522
16e109ca
AC
14523 * mips-tdep.c: Update copyright.
14524 (mips_gdbarch_init): Merge two code blocks handling the register
14525 name and number layout.
14526
15255275
MS
145272004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14528
14529 * tracepoint.c (validate_actionline): Fix segv at EOF
14530
9f9057da
MC
145312004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14532
14533 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14534 properly for static fields.
14535
0127c0d3 145362004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 14537 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
14538
14539 * disasm.c: Update copyright to include 2004.
14540 (do_mixed_source_and_assembly): For uiout asm list
14541 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 14542 NULL and do so prior to loop. Only reset when we close off
0127c0d3 14543 the tuple/list. Move check for whether to close off the
fe61caab 14544 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
14545 on each loop iteration.
14546
5269965e
AC
145472004-01-05 Andrew Cagney <cagney@redhat.com>
14548
54f1137d
AC
14549 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14550 should be a switch case and not a label.
14551 * mips-tdep.c (mips32_next_pc): Delete unused labels
14552 "greater_equal_branch" and "less_zero_branch".
14553 * jv-valprint.c (java_print_value_fields): Delete unused label
14554 "flush_it".
14555
5269965e
AC
14556 * target.c (unpush_target): Only close a target that is in the
14557 target stack.
14558
dbc22fa1
MK
145592004-01-05 Mark Kettenis <kettenis@gnu.org>
14560
9515395e
MK
14561 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14562 address from [sp + 64] instead of %o2.
14563
dbc22fa1
MK
14564 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14565 fixes PR backtrace/1476.
14566
5439edaa
AC
145672004-01-05 Andrew Cagney <cagney@redhat.com>
14568
14569 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14570 move to start of file.
14571 * i386-tdep.h (struct regcache): Add opaque declaration.
14572 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14573 declaration.
14574 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14575 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14576 * win32-nat.c (fake_create_process): Use ISO C style definition.
14577 * stabsread.c (define_symbol): Delete #ifndef
14578 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14579 stabs_argument_has_addr call, macro never defined.
14580
19061abe
MC
145812004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14582
14583 * op50-rom.c: Delete.
14584 * w89k-rom.c: Delete.
14585 * Makefile.in: Remove references.
14586
e53bef9f
MK
145872004-01-04 Mark Kettenis <kettenis@gnu.org>
14588
14589 * x86-64-tdep.c: Update copyright year.
14590 (struct amd64_register_info): Rename from x86_64_register_info.
14591 (amd64_register_info): Rename from x86_64_register_info.
14592 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14593 (amd64_register_name): Rename from x86_64_register_name.
14594 (amd64_register_type): Rename from x86_64_register_type.
14595 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14596 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14597 (amd64_dwarf_reg_to_regnum): Rename from
14598 x86_64_dwarf_reg_to_regnum.
14599 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14600 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14601 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14602 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14603 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14604 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14605 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14606 (amd64_frame_cache): Rename from x86_64_frame_cache.
14607 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14608 (amd64_frame_prev_register): Rename from
14609 x86_64_frame_prev_register.
14610 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14611 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14612 (amd64_sigtramp_frame_cache): Rename from
14613 x86_64_sigtramp_frame_cache.
14614 (amd64_sigtramp_frame_prev_register): Rename from
14615 x86_64_sigtramp_frame_prev_register.
14616 (amd64_sigtramp_frame_unwind): Rename from
14617 x86_64_sigtramp_frame_unwind.
14618 (amd64_sigtramp_frame_sniffer): Rename from
14619 x86_64_sigtramp_frame_sniffer.
14620 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14621 (amd64_frame_base): Rename from x86_64_frame_base.
14622 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14623 (amd64_frame_align): Rename from x86_64_frame_align.
14624 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14625 (amd64_regset_from_core_section): Rename from
14626 x86_64_regset_from_core_section.
14627 (x86_64_init_abi): Update comments.
14628
fca6aa58
NR
146292004-01-04 Nick Roberts <nick@nick.uklinux.net>
14630
14631 * MAINTAINERS (write after approval): Add myself.
14632
8ada74e3
MK
146332004-01-04 Mark Kettenis <kettenis@gnu.org>
14634
14635 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14636 `float' arguments.
14637
5154b0cd
MK
146382004-01-04 Mark Kettenis <kettenis@gnu.org>
14639
14640 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14641 such that it mentions a specific version of GCC that exhibits this
14642 bug.
14643
fb316966
MK
146442004-01-03 Mark Kettenis <kettenis@gnu.org>
14645
200cc553
MK
14646 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14647 structure that has a single `float' member, store it in %f1 in
14648 addition to %f0.
14649
e226a4a0
MK
14650 * sparc-sol2-nat.c: Add missing '\'.
14651
b9d4c5ed
MK
14652 * sparc-tdep.c (sparc32_return_value): New function.
14653 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14654 Remove functions.
14655 (sparc32_gdbarch_init): Set return_value, don't set
14656 extract_return_value, store_return_value, use_struct_convention
14657 and return_value_on_stack.
14658
fb316966
MK
14659 * sparc-sol2-nat.c: Add missing ')'.
14660
1af510a8
JB
146612004-01-03 J. Brobecker <brobecker@gnat.com>
14662
14663 * infrun.c (handle_step_into_function): New function.
14664 (handle_inferior_event): Extract out some code into the new
14665 function above.
14666
5cf4d23a
JB
146672004-01-03 J. Brobecker <brobecker@gnat.com>
14668
14669 * infrun.c (handle_inferior_event): Move the declaration of
14670 real_stop_pc inside the if blocks where it is used.
14671
60af1db2
MK
146722004-01-03 Mark Kettenis <kettenis@gnu.org>
14673
14674 * sparc64-tdep.c (sparc64_16_byte_align_p)
14675 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14676 Use check_typedef to get subtypes of structures and unions.
14677 (sparc64_store_return_value): Fix calculation of the appropriate
14678 offset into VALBUF when storing a structure or union.
14679 (sparc64_return_value): New function.
14680 (sparc64_use_struct_convention): Remove function.
14681 (sparc64_init_abi): Set return_value, don't set
14682 extract_return_value, store_return_value and
14683 use_struct_convention.
14684
1a901d3f
EZ
146852004-01-03 Eli Zaretskii <eliz@elta.co.il>
14686
14687 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14688 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14689 gdb/config/alpha/xm-alphaosf.h,
14690 gdb/config/powerpc/tm-ppcle-eabi.h,
14691 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14692 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14693 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14694 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14695 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14696 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14697 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14698 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14699 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14700 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14701 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14702 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14703 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14704 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14705 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14706 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14707 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14708 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14709 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14710 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14711 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14712 Remove lines for .cvsignore files.
14713
ef52e463
JB
147142004-01-03 J. Brobecker <brobecker@gnat.com>
14715
14716 * infrun.c: Back out the previous change.
14717
cb1bf9dc
MK
147182004-01-03 Mark Kettenis <kettenis@gnu.org>
14719
f0424ef6
MK
14720 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14721 sparc-*-sunos4* to the list of REMOVED configurations.
14722
cb1bf9dc
MK
14723 * configure.tgt: Add back sparc-*-vxworks*.
14724 * remote-vxsparc.c: Remove all includes except for "defs.h",
14725 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14726 Include "sparc-tdep.h".
14727 (SPARC_R_G1): New define.
14728 (vxsparc_gregset): New variable.
14729 (ext_format_sparc): Remove extern declaration.
14730 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14731 sparc32_supply_fpregset.
14732 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14733 sparc_collect_rwindow and sparc32_collect_fpregset.
14734 * config/sparc/tm-vxworks.h: New file, based on recently removed
14735 tm-vxsparc.h.
14736 * config/sparc/vxworks.mt: New file, based on recently removed
14737 vxworks.mt.
fe61caab 14738
5e938f9f
JB
147392004-01-03 J. Brobecker <brobecker@gnat.com>
14740
14741 * infrun.c (handle_step_into_function): New function.
14742 (handle_inferior_event): Extract out some code into the new
14743 function above.
14744
386c036b
MK
147452004-01-02 Mark Kettenis <kettenis@gnu.org>
14746
14747 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14748 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14749 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14750 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14751 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14752 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14753 (sparc_nat_h): New variable.
14754 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14755 (tm-sun4os4.h): Remove dependency.
14756 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14757 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14758 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14759 sparc-tdep.o): Update dependencies.
14760 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14761 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14762 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14763 dependencies.
14764 * configure.host: Remove existing sparc-*-lynxos*,
14765 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14766 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14767 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14768 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14769 triplets.
14770 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14771 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14772 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14773 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14774 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14775 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14776 sparc64-*-solaris2* and sparc64-*-* triplets.
14777 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14778 "symtab.h" and "objfiles.h".
14779 (BIAS): Remove define.
14780 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14781 (X_DISP19): Remove macros.
14782 (sparc_fetch_instruction): Remove function.
14783 (struct gdbarch_tdep): Remove definition.
14784 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14785 (sparc_breakpoint_from_pc): Remove function.
14786 (struct sparc64_frame_cache): Remove definition.
14787 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14788 sparc64_unwind_pc): Remove functions.
14789 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14790 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14791 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14792 (sparc64_frame_cache): Change return type to `struct
14793 sparc_frame_cache *'. Simply call sparc_frame_cache.
14794 (sparc64_frame_this_id, sparc64_frame_prev_register,
14795 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14796 instead of `struct sparc64_frame_cache.
14797 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14798 sparc_analyze_control_transfer, sparc_software_single_step,
14799 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14800 _initialize_sparc64_tdep): Remove functions.
14801 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14802 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14803 macros.
14804 (sparc64_supply_gregset, sparc64_collect_gregset,
14805 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14806 (sparc64_init_abi): New function.
14807 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14808 inclusion guard. Include "sparc-tdep.h".
14809 (BIAS): Define.
14810 (r_tstate_offset, r_fprs_offset): New defines.
14811 (enum sparc_regnum): Remove defenition.
14812 (enum sparc64_regnum): Reformat.
14813 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14814 (sparc64_init_abi, sparc64_supply_gregset,
14815 sparc64_collect_gregset, sparc64_supply_fpregset,
14816 sparc64_collect_fpregset): New prototypes.
14817 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14818 Add extern declarations.
14819 (sparc64_sol2_init_abi): New prototype.
14820 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14821 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14822 prototypes.
14823 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14824 "sparnbsd-nat.h".
14825 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14826 functions.
14827 (_initialize_sparc64fbsd_nat): Remove initialization of
14828 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14829 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 14830 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
14831 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14832 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14833 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14834 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14835 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14836 (sparc64fbsd_r_y_offset): Remove variables.
14837 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14838 Make static and const.
14839 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14840 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14841 functions.
14842 (sparc64fbsd_gregset): New variable.
14843 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14844 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14845 and sparc64_supply_fpregset.
14846 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14847 (sparc64fbsd_sigtramp_frame_this_id)
14848 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14849 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14850 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14851 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14852 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14853 * sparcnbsd-tdep.c: Update copyright year. Include
14854 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14855 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14856 "value.h" and "sparcnbsd-tdep.h".
14857 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14858 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14859 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14860 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14861 defines.
14862 (sparcnbsd_gregset): New variable.
14863 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14864 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14865 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14866 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14867 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14868 variables.
14869 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14870 (sparc32nbsd_sigcontext_frame_this_id)
14871 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14872 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14873 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14874 (sparcnbsd_get_longjmp_target_32,
14875 sparcnbsd_get_longjmp_target_64): Remove functions.
14876 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14877 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14878 sparcnbsd_init_elf): Remove.
14879 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14880 (sparcnbsd_elf_init_abi): New functions.
14881 (_initialize_sparcnbsd_tdep): New prototype.
14882 (_initialize_sparnbsd_tdep): Update.
14883 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14884 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14885 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14886 * config/sparc/linux.mh: Update comment.
14887 (XM_FILE, HOST_IPC): Remove variables.
14888 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14889 sparc-linux-nat.o.
14890 * config/sparc/linux.mt: Update comment.
14891 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14892 * config/sparc/nbsd.mt: Reformat.
14893 * config/sparc/nbsd64.mh: Update comment.
14894 (NATDEPFILES): Add sparc-nat.o.
14895 * config/sparc/nbsd64.mt: Update comment.
14896 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14897 (TM_FILE): Set to tm-nbsd.h.
14898 * config/sparc/nbsdelf.mh: Update comment.
14899 (NATDEPFILES): Add sparc-nat.o.
14900 (XM_FILE): Delete.
14901 * config/sparc/nbsdaout.mh: Update comment.
14902 (NATDEPFILES): Add sparc-nat.o
14903 (XM_FILE): Delete.
14904 * config/sparc/nm-linux.h: Update copyright year. Don't include
14905 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14906 inclusion.
14907 (KERNEL_U_SIZE): Remove define.
14908 (kernel_u_size): Remove prototype.
14909 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14910 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14911 "regcache.h".
14912 (CHILD_PREPARE_TO_STORE): Remove define.
14913 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14914 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14915 sparcnbsd-nat.c: Rewrite files.
14916 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14917 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14918 sparcnbsd-tdep.h: Remove files.
14919 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14920 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14921 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14922 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14923 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14924 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14925 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14926 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14927 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14928 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14929 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14930 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14931 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14932 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14933 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14934 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14935 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14936 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14937 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14938
ee84457a
AC
149392004-01-02 Andrew Cagney <cagney@redhat.com>
14940
14941 From 2003-12-18 Kazuhiro Inaoka:
14942 * configure.host: Add m32r-linux target.
14943
0bc2134e
MC
149442004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14945
14946 * top.c (print_gdb_version): Update year to 2004.
14947
89a72f9c
MM
149482004-01-02 Mark Mitchell <mark@codesourcery.com>
14949
14950 * MAINTAINERS: Add myself to the write-after-approval category.
14951
86b013ed
DJ
149522004-01-02 Daniel Jacobowitz <drow@mvista.com>
14953
14954 From Bernardo Innocenti <bernie@develer.com>:
14955 * configure.tgt: Add uClinux target.
14956
e42c9534
AC
149572004-01-02 Andrew Cagney <cagney@redhat.com>
14958
14959 * utils.c (do_my_cleanups): Make static, add forward declaration.
14960 * defs.h (do_my_cleanups): Delete declaration.
14961
162467d3
EZ
149622004-01-02 Eli Zaretskii <eliz@elta.co.il>
14963
14964 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14965 bfd/ChangeLog-0203.
14966
78434e59
MK
149672004-01-02 Mark Kettenis <kettenis@gnu.org>
14968
14969 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14970 in <machine/reg.h>.
14971 * configure, config.in: Regenerate.
14972
48efe704
AC
14973For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14974tui/ChangeLog-1998-2003.
c906108c
SS
14975\f
14976Local Variables:
14977mode: change-log
14978left-margin: 8
14979fill-column: 74
14980version-control: never
14981End:
This page took 1.521757 seconds and 4 git commands to generate.