* hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3cd36e7c
MK
12004-12-10 Mark Kettenis <kettenis@gnu.org>
2
3 * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
4 (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
5 (hppa_hpux_init_abi): Reformat long line.
6
08d53055
MK
72004-12-09 Mark Kettenis <kettenis@gnu.org>
8
9 * hppa-hpux-tdep.c: Include "regset.h".
10 (HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
11 (HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
12 (HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
13 (HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
14 (hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
15 (hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
16 functions.
17 (hppa_hpux_regset): New variable.
18 (hppa_hpux_regset_from_core_section): New function.
19 (hppa_hpux_init_abi): Set regset_from_core_section.
20 (hppa_hpux_core_osabi_sniffer): New function.
21 (_initialize_hppa_hpux_tdep): Register
22 hppa_hpux_core_osabi_sniffer.
23 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
24 * config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
25
45851e00
RC
262004-12-09 Randolph Chung <tausq@debian.org>
27
28 * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
29 text and data sections.
30 (pa64_current_sos): Also include the dld in the list of current shared
31 objects.
32 (pa64_solib_get_solib_by_pc): Update comments.
33 (pa64_solib_get_text_base): New function.
34 (pa64_solib_select): Set solib_get_text_base method.
35
1bac0d4d
DJ
362004-12-08 Daniel Jacobowitz <dan@debian.org>
37
38 * linux-thread-db.c (BUILD_THREAD): Delete.
39 (thread_get_info_callback): Include LWP ID in thread ID.
40 (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
41 (lwp_from_thread): Use the LWP ID from the thread ID.
42
254ce0a1
RC
432004-12-07 Randolph Chung <tausq@debian.org>
44
45 * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
46 register for both 32- and 64-bit targets.
47
cc9bed83
RC
482004-12-07 Randolph Chung <tausq@debian.org>
49
50 * frame.c (get_prev_frame): Don't terminate unwinding at main if we
51 are unwinding through a dummy frame.
52
f77a2124
RC
532004-12-07 Randolph Chung <tausq@debian.org>
54
55 * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
56 * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
57 (hppa_hpux_init_abi) Set unwind_adjust_stub method.
58 * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
59 if defined.
60
f1b38a57
RC
612004-12-07 Randolph Chung <tausq@debian.org>
62
63 * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
64 unwinding from a frame with pc == 0.
65 (hppa_stub_frame_this_id): Likewise.
66 (hppa_stub_frame_prev_register): Only provide real values if the frame
67 cache is not NULL.
68
419b8bfb
RC
692004-12-07 Randolph Chung <tausq@debian.org>
70
71 * solib-som.c: New file.
72 * solib-som.h: New file.
73 * solib-pa64.c: New file.
74 * solib-pa64.h: New file.
75
6e93c4f7
MK
762004-12-07 Mark Kettenis <kettenis@gnu.org>
77
78 * Makefile.in (inf-ttrace.o): Fix typo.
79
c273b20f
JB
802004-12-07 Jim Blandy <jimb@redhat.com>
81
82 * remote.c (remote_threads_info, remote_current_thread): Use
83 strtoul to parse thread ID numbers.
84
cc72850f
MK
852004-12-07 Mark Kettenis <kettenis@gnu.org>
86
a7be7fa8
MK
87 * inf-ttrace.c: Include "gdbthread.h".
88 (inf_ttrace_num_lwps): New variable.
89 (inf_ttrace_num_lwps_in_syscall): Renamed from
90 inf_ttrace_num_threads_in_syscall.
91 (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
92 TTEVT_LWP_TERMINATE events.
93 (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
94 zero.
95 (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
96 (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
97 Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
98 events.
99 (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
100 default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
101 TTEVT_LWP_TERMINATE events.
102 (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
103 (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
104 * Makefile.in (inf-ttrace.o): Update dependencies.
105
cc72850f
MK
106 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
107 prototypes.
108 * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
109 Make global. Remove HP-UX specific code. Use
110 frame_unwind_register_unsigned instead of
111 frame_unwind_register_signed.
112 (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
113 Remove HP-UX specific code.
114 (hppa_unwind_pc): Make global. Remove HP-UX specific code.
115 (hppa_frame_prev_register_helper): Set "flags" register to zero
116 for all unwound frames.
117 (hppa_gdbarch_init): Adjust.
118 * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
119 (hppa_hpux_read_pc, hppa_hpux_write_pc)
120 (hppa_hpux_unwind_pc): New functions.
121 (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
122
f47b1503
AS
1232004-12-07 Andreas Schwab <schwab@suse.de>
124
125 * main.c (long_options): Add entry for "-l".
126 (print_gdb_help): Add line for -l option.
127 * NEWS: Mention it.
128
c1299d67
RC
1292004-12-05 Randolph Chung <tausq@debian.org>
130
131 * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
132 DEPRECATED_REGISTER_BYTE.
133
57dac9e1
RC
1342004-12-05 Randolph Chung <tausq@debian.org>
135
136 * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
137 records.
138
b1acf338
MK
1392004-12-05 Mark Kettenis <kettenis@gnu.org>
140
a61ce9b4
MK
141 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
142 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
143
b1acf338
MK
144 * hppa-hpux-tdep.c: Update copyright notice and year.
145
fcab3fb5
RE
1462004-12-05 Richard Earnshaw <rearnsha@arm.com>
147
148 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
149 (get_field, put_field): Assert that the format is one we can handle.
150 Simplify logic accordingly.
151 (floatformat_normalize_byteorder): New function.
152 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
153 to normalize and select modified byte order. Pass modified byte order
154 to get_field.
155 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
156 Likewise.
157 (convert_doublest_to_floatformat): Select an appropriate intermediate
158 byte order if necessary. Always convert to the final format before
159 returning.
160
48bb3cce
DJ
1612004-12-04 Daniel Jacobowitz <dan@debian.org>
162
163 PR tui/1703
164 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
165 Suggested by Joshua Neuheisel.
166
fe46cd3a
RC
1672004-12-03 Randolph Chung <tausq@debian.org>
168
169 * gdbarch.sh (instruction_nullified): Delete.
170 * gdbarch.c: Regenerate.
171 * gdbarch.h: Regenerate.
172 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
173 nullified.
174 (hppa_unwind_pc): Likewise.
175 (hppa_instruction_nullified): Delete.
176 (hppa_gdbarch_init): Don't set instruction_nullified method.
177 * infrun.c (infwait_states): Remove infwait_nullified_state.
178 (handle_inferior_event): Remove handling of infwait_nullified_state.
179 Remove handling of nullified instructions.
180
dd515450
MK
1812004-12-03 Mark Kettenis <kettenis@gnu.org>
182
932936f0
MK
183 * inf-ttrace.c: Include <sys/mman.h>.
184 (struct inf_ttrace_page): New.
185 (struct inf_ttrace_page_dict): New.
186 (inf_ttrace_num_threads_in_syscall)
187 (inf_ttrace_reenable_page_protections): New variables.
188 (inf_ttrace_enable_syscall_events)
189 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
190 (inf_ttrace_add_page, inf_ttrace_insert_page)
191 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
192 (inf_ttrace_enable_page_protections)
193 (inf_ttrace_disable_page_protections)
194 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
195 (inf_ttrace_can_use_hw_breakpoint)
196 (inf_ttrace_region_size_ok_for_hw_watchpoint)
197 (inf_ttrace_stopped_by_watchpoint): New functions.
198 (inf_ttrace_him): Remove unsused varaible `tts'.
199 (inf_ttrace_create_inferior): Add assertionts.
200 (inf_ttrace_mourn_inferior): Clear page dictionary.
201 (inf_ttrace_attach): Set initial event mask.
202 (inf_ttrace_detach): Reset number of threads in system call.
203 (inf_ttrace_wait): Deal with system call events.
204 (inf_ttrace_target): Initialize "hardware" watchpoint-related
205 parts of the target vector.
206 (_initialize_inf_ttrace): New prototype and function.
207
dd515450
MK
208 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
209 type of `gp' variable.
210
73fb7068
RS
2112004-12-03 Richard Sandiford <rsandifo@redhat.com>
212
213 * README: Remove config.if from directory listing.
214
515921d7
JB
2152004-12-01 Joel Brobecker <brobecker@gnat.com>
216
217 * alpha-tdep.c (alpha_register_name): Add comment.
218 (alpha_cannot_fetch_register): Exclude registers numbers which
219 are no longer used from the list of registers that can be fetched.
220 (alpha_cannot_store_register): Exclude registers numbers which
221 are no longer used from the list of registers that can be stored.
222 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
223 core_reg_mapping array.
224
1cc759c3
JB
2252004-12-01 Joel Brobecker <brobecker@gnat.com>
226
227 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
228 the register value from the correct frame.
229
b546247c
RC
2302004-11-30 Randolph Chung <tausq@debian.org>
231
232 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
233 (hppa_linux_in_dyncall): Check that we are inside the range of
234 $$dyncall, not necessarily at the first insn.
235 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
236 even if the pc does not point to the first insn of the trampoline.
237
46905982
RC
2382004-11-30 Randolph Chung <tausq@debian.org>
239
240 * breakpoint.c (break_at_finish_command): Delete.
241 (break_at_finish_command_1): Delete.
242 (break_at_finish_at_depth_command): Delete.
243 (break_at_finish_at_depth_command_1): Delete.
244 (tbreak_at_finish_command): Delete.
245 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
246 and bx commands.
247
80b93d6b
AC
2482004-11-30 Andrew Cagney <cagney@gnu.org>
249
a7711b1f
AC
250 * config/nm-gnu.h: Delete file.
251 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
252
80b93d6b
AC
253 * config/nm-sysv4.h: Delete file.
254 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
255 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
256 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
257 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
258 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
259
31ffb221
AC
2602004-11-29 Andrew Cagney <cagney@gnu.org>
261
262 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
263 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
264 as can-commit architecture developers.
265
3919e12c
MK
2662004-11-29 Mark Kettenis <kettenis@gnu.org>
267
075ccec8
MK
268 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
269 (sparc32_skip_prologue): Skip instructions that store arguments in
270 registers into their corresponding stack slots.
271
388e0111
MK
272 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
273 tm-solib.h.
274 * config/m68k/obsd.mh (NAT_FILE): Likewise.
275
19671c2b
MK
276 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
277 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
278 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
279 sparc32nbsd_elf_init_abi. Remove duplicate code.
280
77a7fe6d
MK
281 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
282 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
283 * config/sparc/nm-nbsd.h: Remove file.
284 * config/sparc/nm-nbsdaout.h: Remove file.
285
cbfc58d1
MK
286 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
287 (sparc_xfer_partial): New function.
288 (sparc_target): Save value of to_xfer_partial from ptrace vector.
289 Set to_xfer_partial.
290
3919e12c
MK
291 * fork-child.c (fork_inferior): Fork instead of vfork if
292 PRE_TRACE_FUN is non-null.
293
ebd98106
FF
2942004-11-24 Fred Fish <fnf@specifixinc.com>
295
296 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
297 compiler generated function calls made as part of a prologue.
298
eee22bf8
MK
2992004-11-23 Mark Kettenis <kettenis@gnu.org>
300
301 * inf-ttrace.c: New file.
302 * inf-ttrace.h: New file.
303 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
304 Include "inf-ttrace.h".
305 (ss_mpsfu_high): Define to ss_tlsp if necessary.
306 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
307 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
308 ptrace systems.
309 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
310 instead of inf_ptrace_target.
311 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
312 * Makefile.in (inf_ttrace_h): New variable.
313 (hppa-hpux-nat.o): Update dependency.
314 (inf-ttrace.o): New dependency.
315 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
316
3ca64954
RC
3172004-11-23 Randolph Chung <tausq@debian.org>
318
319 * arch-utils.c (generic_instruction_nullified): New.
320 * arch-utils.h (generic_instruction_nullified): New.
321 * gdbarch.sh (instruction_nullified): New method.
322 * gdbarch.c: Regenerate.
323 * gdbarch.h: Regenerate.
324 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
325 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
326 new gdbarch method.
327 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
328 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
329 static. Rewrite to work directly off the passed regcache.
330 (hppa_gdbarch_init): Set instruction_nullified method.
331
5465445a
JB
3322004-11-23 Joel Brobecker <brobecker@gnat.com>
333
334 * sparc-tdep.c (sparc_is_unimp_insn): New function.
335 (sparc32_frame_cache): For functions where there is no debugging
336 information to help us determine whether it's a struct-return
337 function or not, fallback on checking whether the instruction
338 at the return address is an "unimp" instruction or not.
339
3f6306ec
DA
3402004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
341
871cce51
DA
342 * MAINTAINERS: Add myself to write after approval section.
343
3f6306ec
DA
344 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
345 hpux-thread.c to suppress children from running.
346 (hppa_hpux_child_can_run): New function.
347 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
348 * hpux-thread.c: Include string.h and hppa-tdep.h.
349 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
350 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
351 (hpux_thread_store_registers): Replace deprecated_registers with
352 calls to regcache_raw_read.
353 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
354
f5ccf7a2
MK
3552004-11-21 Mark Kettenis <kettenis@gnu.org>
356
357 * sparc64fbsd-nat.c: Update copyright year.
358 (_initialize_sparc64fbsd_nat): Construct and add target vector.
359 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
360 inftarg.o.
361
8c3900e4
DJ
3622004-11-21 Daniel Jacobowitz <dan@debian.org>
363
364 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
365
b957e937
DJ
3662004-11-21 Daniel Jacobowitz <dan@debian.org>
367
368 * linux-nat.c (my_waitpid): New function.
369 (linux_test_for_tracefork): Make more robust and verbose. Take
370 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
371 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
372 argument. Update calls to linux_test_for_tracefork.
373 (linux_enable_event_reporting, child_follow_fork)
374 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
375 (child_insert_exec_catchpoint): Update calls to
376 linux_supports_tracefork and linux_supports_tracevforkdone.
377
65d3800a
DJ
3782004-11-21 Daniel Jacobowitz <dan@debian.org>
379
380 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
381 (value_subscripted_rvalue): Likewise.
382 * valops.c (search_struct_field, value_slice): Likewise.
383
2c4a536d
MK
3842004-11-21 Mark Kettenis <kettenis@gnu.org>
385
386 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
387 Reorder includes a bit. Fix comment.
388 * Makefile.in (inf-ptrace.o): Update dependencies.
389
fefa1888
AS
3902004-11-21 Andreas Schwab <schwab@suse.de>
391
392 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
393 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
394 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
395 to glibc_skip_solib_resolver.
396 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
397 solib-legacy.o.
398 * Makefile.in (m68klinux-tdep.o): Update dependencies.
399
d564a7d4
DA
4002004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
401
402 * infttrace.h (ttrace_write_reg_64): Add prototype.
403 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
404 expression.
405 (store_inferior_registers): Correct formatting. Replace uses of
406 deprecated_registers with calls to regcache_raw_read,
407 regcache_raw_write_part and regcache_raw_read_part.
408
3f70a5e9
MK
4092004-11-21 Mark Kettenis <kettenis@gnu.org>
410
411 * config/pa/hppahpux.mh: Remove file.
412 * config/pa/hpux1020.mh: Remove file.
413
ced0d73d
AS
4142004-11-20 Andreas Schwab <schwab@suse.de>
415
416 * configure.host: Set host floatformat for m68k.
417
fcf54f50
EZ
4182004-11-20 Eli Zaretskii <eliz@gnu.org>
419
420 * config/djgpp/fnchange.lst: Resolve file-name clash between
421 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
422
a7289609
MK
4232004-11-20 Mark Kettenis <kettenis@gnu.org>
424
eeb8076c
MK
425 * hppa-hpux-nat.c: New file.
426 * config/pa/hpux.mh (NATDEPFILES): New file.
427 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
428 (hppa-hpux-nat.o): New dependency.
429 * configure.host: Remove hppa*-*-hpux10.20.
430 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
431
f6ffd89b
MK
432 * inf-ptrace.c: Fix coding style.
433
f1bc22da
MK
434 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
435 * infptrace.c (call_ptrace): Simply call ptrace with four
436 arguments.
437
e31272c3
MK
438 * dbxread.c (process_one_symbol): Fix a few coding standard
439 issues. Improve code formatting.
440
91f54576
MK
441 * dbxread.c: Include "gdb_string.h".
442 (record_minimal_symbol, read_ofile_symtab): Replace
443 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
444 * Makefile.in (dbxread.o): Update dependencies.
445
a7289609
MK
446 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
447 of bytes read for aligned LEB128 encodings.
448
57ac95b8
MK
4492004-11-19 Mark Kettenis <kettenis@gnu.org>
450
451 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
452 parse_and_eval_address to u_long before converting it to a pointer
453 type.
454 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
455 ps_strings from int to u_long.
456 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
457 u_long instead of CORE_ADDR.
458
ceddaf06
MK
4592004-11-18 Mark Kettenis <kettenis@gnu.org>
460
461 * dbxread.c (process_one_symbol): Do not adjust address of first
462 N_SLINE stab for a function for code generated by non-GCC
463 compilers.
464
915a2d21
KB
4652004-11-18 Kevin Buettner <kevinb@redhat.com>
466
467 * solib-null.c: New file.
468
92790ee7
AC
4692004-11-17 Andrew Cagney <cagney@gnu.org>
470
471 * MAINTAINERS: Drop MIPS and remote.
472
0c16dd26
AC
4732004-11-15 Andrew Cagney <cagney@gnu.org>
474
475 * findvar.c (value_of_register): Set the frame ID.
476 * value.c (value_primitive_field): Copy the frame ID.
477 * valops.c (value_assign): Simplify lval_register case, there's
478 always a frame.
479
2fdf551c
DJ
4802004-11-14 Daniel Jacobowitz <dan@debian.org>
481
482 * Makefile.in (mips-linux-tdep.o): Update dependencies.
483 * mips-linux-tdep.c: Include "regcache.h".
484 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
485
98754800
DJ
4862004-11-14 Daniel Jacobowitz <dan@debian.org>
487
488 * Makefile.in (linux-thread-db.o): Fix typo in last change.
489
ed89d175
DJ
4902004-11-14 Daniel Jacobowitz <dan@debian.org>
491
492 * linux-thread-db.c: New file, renamed from thread-db.c.
493 * thread-db.c: Remove.
494 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
495 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
496 to linux-thread-db.o.
497 * config/arm/linux.mh (NATDEPFILES): Likewise.
498 * config/i386/linux.mh (NATDEPFILES): Likewise.
499 * config/i386/linux64.mh (NATDEPFILES): Likewise.
500 * config/ia64/linux.mh (NATDEPFILES): Likewise.
501 * config/m32r/linux.mh (NATDEPFILES): Likewise.
502 * config/m68k/linux.mh (NATDEPFILES): Likewise.
503 * config/mips/linux.mh (NATDEPFILES): Likewise.
504 * config/pa/linux.mh (NATDEPFILES): Likewise.
505 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
506 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
507 * config/s390/s390.mh (NATDEPFILES): Likewise.
508 * config/sparc/linux.mh (NATDEPFILES): Likewise.
509 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
510
8851ec7a
AC
5112004-11-13 Andrew Cagney <cagney@gnu.org>
512
f97fe8ff
AC
513 * config/i386/i386lynx.mh: Delete file.
514 * config/i386/i386lynx.mt: Delete file.
515 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
516 * i386ly-tdep.c: Delete.
517
5873946b
AC
518 * config/tm-lynx.h: Delete, inline contents ...
519 * config/rs6000/tm-rs6000ly.h: ... here.
520
a69637bd
AC
521 * config/tm-sysv4.h: Delete file, inlining contents.
522 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
523 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
524 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
525
8851ec7a
AC
526 * regcache.h (deprecated_register_valid): Delete.
527 (deprecated_registers): Delete.
528 * regcache.c (deprecated_register_valid): Delete.
529 (deprecated_registers): Delete.
530 (deprecated_read_register_byte, _initialize_regcache)
531 (deprecated_write_register_bytes, build_regcache): Update.
532 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
533 remote-sds.o.
534 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
535 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
536
9445aa30
AC
537 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
538 v850-*-* under removed.
539 * configure.host: Delete ns32k-*-netbsd*.
540 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
541 ns32k-*-netbsd*, and v850*-*-*.
542 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
543 "Deleted"
544 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
545 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
546 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
547 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
548 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
549 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
550 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
551 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
552 * v850-tdep.c: Delete.
553
f6e1bffc
JB
5542004-11-13 Joel Brobecker <brobecker@gnat.com>
555
556 * irix5-nat.c (fetch_core_registers): Replace use of
557 deprecated_registers by equivalent code.
558
44ed547b
JB
5592004-11-13 Joel Brobecker <brobecker@gnat.com>
560
561 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
562 with equivalent code.
563 (fill_fpregset): Likewise.
564
e84ecc99
AC
5652004-11-13 Andrew Cagney <cagney@gnu.org>
566
ca1a823a
AC
567 * MAINTAINERS: Do not list "Deleted" architectures.
568
e84ecc99
AC
569 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
570 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
571 sparc-*-vxworks*.
572 * NEWS: Mention that vxworks was deleted.
573 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
574 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
575 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
576 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
577 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
578 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
579 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
580 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
581 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
582 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
583 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
584 * remote-vxmips.c, remote-vx.c: Delete.
585 * remote-vx68.c: Delete.
586 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
587 * config/m68k/os68k.mt, ada-lang.h: Ditto.
588 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
589 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
590
01e937bc
EZ
5912004-11-13 Eli Zaretskii <eliz@gnu.org>
592
29247324
EZ
593 * config/i386/xm-go32.h: Don't include fopen-bin.h.
594 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
595
596 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
597 branch that doesn't define CRLF_SOURCE_FILES; always use
598 binary-mode open.
599 (print_source_lines_base, forward_search_command)
600 (reverse_search_command): Enable the code that accepts DOS-style
601 CRLF line endings on all platforms (this removes the need for
602 CRLF_SOURCE_FILES).
603
f8f0d88a 604 * defs.h: Fix wording of the comment before FOPEN_RB.
29247324 605 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
f8f0d88a 606
01e937bc
EZ
607 * config/djgpp/fnchange.lst: Group renames for opcode directory
608 together.
609
610 * config/djgpp/djconfig.sh: Replace file names that don't exist
611 anymore with existing files, for checking the unpacked
612 distribution.
613
614 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
615 Export pre-cooked values in configure-* targets that begin with
616 "@test -f stage_last".
617
25ae5d16
AC
6182004-11-12 Andrew Cagney <cagney@gnu.org>
619
620 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
621 * value.h (struct value): Update comment.
622 * valops.c (value_assign): Fold lval_reg_fame_relative into
623 lval_register.
624 * findvar.c (value_from_register, locate_var_value): Ditto.
625
d7318818
RC
6262004-11-12 Randolph Chung <tausq@debian.org>
627
628 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
629 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
630 (write_exp_msymbol): Remove conditional check for symbols starting
631 with $. Update comments.
632
89676665
RC
6332004-11-12 Randolph Chung <tausq@debian.org>
634
635 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
636 so_lib_thread_start_addr.
637 * pa64solib.h (so_list): Forward declare.
638 (pa64_solib_thread_start_addr): Prototype.
639 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
640 (no_shared_libraries): Remove.
641 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
642 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
643 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
644 the elf solib handler to find the start address.
645
646 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
647 files to the target makefile.
648 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
649 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
650 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
651
652 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
b82f24bf 653 files for symbol reading and shared library handling here.
89676665 654 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
b82f24bf
RC
655 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
656 without bringing in 64-bit support.
89676665 657
df407dfe
AC
6582004-11-12 Andrew Cagney <cagney@gnu.org>
659
4991999e
AC
660 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
661 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
662 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
663 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
664 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
665 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
666 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
667
9ee8fc9d
AC
668 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
669 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
670 (VALUE_REGNUM): Define.
671 (struct value): Delete location.regnum, rename "regno" to
672 "regnum".
673 * value.c, valops.c, valarith.c, findvar.c: Update.
674
df407dfe
AC
675 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
676 (VALUE_BITPOS): Delete.
677 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
678 * value.c (value_type, value_offset, value_bitpos)
679 (value_bitsize): New functions. Update references.
680 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
681 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
682 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
683 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
684 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
685 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
686 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
687 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
688 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
689
61c82a3b
AC
6902004-11-12 Andrew Cagney <cagney@gnu.org>
691
692 * cris-tdep.c (cris_register_offset): Delete, never called.
693 (cris_spec_reg_applicable): Delete cris_ver_sim.
694 * MAINTAINERS: List d10v as OBSOLETE.
695 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
696 FOPEN_WB et.al., defined by "fopen-bin.h".
697
5aac166f
RC
6982004-11-12 Randolph Chung <tausq@debian.org>
699
700 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
701 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
702 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
703 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
704
4fab48b9
MK
7052004-11-12 Mark Kettenis <kettenis@jive.nl>
706
707 * tui/tui-io.c: Don't include "terminal.h".
708 * Makefile.in (tui-io.o): Update dependencies.
709
9b098f24
KI
7102004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
711
712 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
713 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
714 set_gdbarch_regset_from_core_section for core file support.
715 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
716 New functions.
717
a71f8c30
RC
7182004-11-11 Randolph Chung <tausq@debian.org>
719
720 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
721 stop_after_branch parameter and use it to determine if we should look
722 at the delay slot of the first branch insn to find prologue insns.
723 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
724 (hppa_frame_cache): Likewise.
725
50b2f48a
RC
7262004-11-11 Randolph Chung <tausq@debian.org>
727
728 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
729 register so that it can be unwound from anywhere in the prologue.
730
be723e22
MS
7312004-11-10 msnyder <msnyder@redhat.com>
732
733 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
734 must invalidate lr_reg (so we don't try to save it again).
735 Ditto for cr_offset and cr_reg.
736
d6f7abdf
AC
7372004-11-05 Jon Beniston <jon@beniston.com>
738
216c5547 739 Committed by Andrew Cagney.
d6f7abdf
AC
740 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
741 when an unexpected packet is received, as the target stubs
742 continually retransmit the same packet until ACKed.
743
1d225535
RC
7442004-11-10 Randolph Chung <tausq@debian.org>
745
746 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
d6f7abdf 747 frame's type.
1d225535 748
2315ffec
RC
7492004-11-10 Randolph Chung <tausq@debian.org>
750
751 * blockframe.c (inside_entry_func): Move to .....
752 * frame.c (inside_entry_func): ... here, and make static.
753 (backtrace_past_entry): New flag.
754 (get_prev_frame): Stop backtrace at the entry function if enabled
755 by flag. Update comments.
756 (_initialize_frame): Add command to set backtrace_past_entry flag.
757 * defs.h (inside_entry_func): Remove prototype.
758
917c78fc
MK
7592004-11-10 Mark Kettenis <kettenis@gnu.org>
760
761 * dwarf2read.c: Fix formatting.
762
994b9211
AC
7632004-11-10 Andrew Cagney <cagney@gnu.org>
764
765 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
766 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
767 macros with function declarations.
768 * value.c (coerce_ref, coerce_array, coerce_number)
769 (coerce_enum): New functions.
770 (value_as_long, value_as_address): Update.
771 * ada-lang.c (ada_coerce_ref, ada_value_binop)
772 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
773 * jv-lang.c (evaluate_subexp_java): Update.
774 * valarith.c (value_less, value_neg, value_complement)
775 (value_binop, value_add, value_subscript, value_x_binop)
776 (value_logical_not, value_sub): Update.
777 * valops.c (check_field, value_struct_elt, value_ind)
778 (value_find_oload_method_list, value_cast, value_assign): Update.
779 * eval.c (evaluate_subexp_standard): Update.
780
06987e64
MK
7812004-11-10 Mark Kettenis <kettenis@gnu.org>
782
783 * mips-tdep.c (mips32_relative_offset): Change return type to
784 LONGEST, change argument type to ULONGEST. Fix sign-extension.
785
4a302917
RC
7862004-11-10 Randolph Chung <tausq@debian.org>
787
788 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
789 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
790 (hppa_fetch_pointer_argument): Likewise.
791 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
792 deprecated_read_memory_nobpt.
793 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
794 add_set_cmd sequence with add_setshow_boolean_cmd.
795
390e974f
AC
7962004-11-09 Andrew Cagney <cagney@gnu.org>
797
798 GDB 6.3 released from GDB 6.3 branch.
799
92e023d6
AC
8002004-11-09 Andrew Cagney <cagney@gnu.org>
801
802 * values.c: Rename to ...
803 * value.c: ..., new file.
804 * Makefile.in: Update.
805
d10891d4
DJ
8062004-11-09 Daniel Jacobowitz <dan@debian.org>
807
808 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
809 size.
810
00a4c844
AC
8112004-11-09 Andrew Cagney <cagney@gnu.org>
812
c44523e7
AC
813 * TODO: Delete.
814
00a4c844
AC
815 * value.h (struct value): Delete field bfd_section.
816 (VALUE_BFD_SECTION): Delete macro.
817 (COERCE_REF): Update.
818 (value_at, value_at_lazy): Delete asection parameter.
819 * printcmd.c (print_formatted, x_command): Update.
820 (do_examine): Delete asection parameter.
821 (next_section): Delete variable.
822 * valops.c (value_cast, value_at, value_at_lazy)
823 (value_coerce_function, value_addr, value_ind, value_string)
824 (find_rt_vbase_offset, value_full_object): Update.
825 * hpacc-abi.c (hpacc_virtual_fn_field)
826 (hpacc_value_rtti_type): Update.
827 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
828 (gnuv3_baseclass_offset): Update.
829 * f-valprint.c (f_val_print): Update.
830 * c-valprint.c (c_val_print): Update.
831 * p-valprint.c (pascal_val_print): Update.
832 * jv-valprint.c (java_value_print): Update.
833 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
834 * ada-lang.c (ada_value_primitive_packed_val)
835 (ada_evaluate_subexp): Update.
836 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
837 * expprint.c (print_subexp_standard): Update.
838 * infcall.c (call_function_by_hand): Update.
839 * valarith.c (value_add): Update.
840 * eval.c (evaluate_subexp_standard): Update.
841 * values.c (allocate_value, value_copy, value_static_field): Update.
842 * findvar.c (read_var_value, locate_var_value): Update.
843
5cb2fe25
AC
8442004-11-09 Andrew Cagney <cagney@gnu.org>
845
846 * i386-linux-tdep.c: Include "dwarf2-frame.h".
847 * Makefile.in: Update all dependencies.
848
cbafadeb
AC
8492004-11-08 Andrew Cagney <cagney@gnu.org>
850
851 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
852 (sentinel_frame_unwinder): Add the prev_pc method.
853 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
854 available. Do not handle the sentinel-frame case.
855 * frame-unwind.h (frame_prev_register_ftype): Define.
856 (struct frame_unwind): Add prev_pc;
857
3b78cdbb
DA
8582004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
859
860 * configure.in: Check for ncurses/term.h.
861 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
862 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
863 * tui/tui.c: Don't include term.h.
864 * configure, config.in: Rebuilt.
865
bcfca652
MK
8662004-11-08 Mark Kettenis <kettenis@gnu.org>
867
868 * m68kbsd-nat.c: Include "inf-ptrace.h".
869 (_initialize_m68kbsd_nat): Fix pasto.
870 * Makefile.in (m68kbsd-nat.o): Update dependencies.
871
527159b7
RC
8722004-11-08 Randolph Chung <tausq@debian.org>
873
874 * infrun.c (debug_infrun): New variable.
875 (resume, proceed, wait_for_inferior): Annotate with debug messages.
876 (handle_inferior_event, keep_going): Likewise.
877 (_initialize_infrun): Register "set debug infrun" command.
878
c874c7fc
AS
8792004-11-08 Andreas Schwab <schwab@suse.de>
880
881 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
882 PTRACE_EVENT_VFORKDONE.
883 (child_follow_fork): Adjust.
884
3c8fa307
AC
8852004-11-08 Andrew Cagney <cagney@gnu.org>
886
5c26072a
AC
887 * README: Refer to 6.3, not 6.2, update directory listing droppng
888 references to intl/ and mmalloc/.
889 * PROBLEMS: Refer to 6.3 not 6.2.
890
3c8fa307
AC
891 * PROBLEMS: Delete no-longer applicable problems.
892
12b8a2cb
DJ
8932004-11-07 Andrew Cagney <cagney@redhat.com>
894 Daniel Jacobowitz <dan@debian.org>
895 Roland McGrath <roland@redhat.com>
896
897 * Makefile.in (symfile-mem.o): Update dependencies.
898 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
899 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
900 * inf-ptrace.c (inf_ptrace_attach): Call
901 observer_notify_inferior_created.
902 * inftarg.c (child_attach): Likewise.
903 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
904 (symbol_file_add_from_memory): Take NAME argument. Use it for
905 the new BFD's filename.
906 (add_symbol_file_from_memory_command): Update call to
907 symbol_file_add_from_memory.
908 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
909 (symbol_file_add_from_memory_wrapper): New.
910 (_initialize_symfile_mem): Register add_vsyscall_page as an
911 inferior_created observer.
912
abbc6945
MK
9132004-11-07 Mark Kettenis <kettenis@gnu.org>
914
915 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
916 fetch_inferior_registers. Make static.
917 (m68kbsd_store_inferior_registers): Rename from
918 store_inferior_registers. Make static.
919 (_initialize_m68kbsd_nat): Construct and add target vector.
920 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
921 inftarg.o. Add inf-ptrace.o.
922 (NAT_FILE): Set to tm-solib.h.
923 (LOADLIBES): New variable.
924 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
925 inftarg.o. Add inf-ptrace.o.
926 (NAT_FILE): Delete variable.
927 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
928 inftarg.o. Add inf-ptrace.o.
929 (NAT_FILE): Set to tm-solib.h.
930 * config/m68k/nm-nbsdaout.h: Remove file.
931
3ed09a32
DJ
9322004-11-07 Daniel Jacobowitz <dan@debian.org>
933
934 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
935 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
936 (dwarf2_signal_frame_unwind): New.
937 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
938 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
939
8e763687
MK
9402004-11-07 Mark Kettenis <kettenis@gnu.org>
941
4fb31ed0
MK
942 * Makefile.in (mips64obsd-tdep.o): Fix typo.
943
fabe86c8
MK
944 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
945 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
946 to only include the structure members we actually need.
947 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
948 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
949 only include the structure members we actually need.
950 (mipsnbsd_init_abi): Update.
951
366e93e8
MK
952 * mips64obsd-nat.c: Include "mips-tdep.h".
953 (MIPS64OBSD_NUM_REGS): Remove define.
954 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
955 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
956 floating-point registers correctly.
957 * Makefile.in (mips64obsd-nat.o): Update dependencies.
958
8e763687
MK
959 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
960 "gdb_assert.h".
961 (mips64obsd_sigframe_init): New function.
962 (mips64obsd_sigframe): New variable.
963 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
964 unwinder.
965 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
966
5f6a2351
JB
9672004-11-06 Joel Brobecker <brobecker@gnat.com>
968
969 * alpha-mdebug-tdep.c: #include mdebugread.h.
970 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
971 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
972
f059bf6f
AC
9732004-11-05 Andrew Cagney <cagney@gnu.org>
974
975 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
976 CFI and the init_reg method leave the register unspecified.
977 Include the register name in the "Incomplete CFI data" complaint.
978 Supress leading zeros in the address.
979
1234d960
MK
9802004-11-05 Mark Kettenis <kettenis@gnu.org>
981
982 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
983 skipping a personality routine in a CIE augmentation.
984
d75e3c94
JJ
9852004-11-05 Jeff Johnston <jjohnstn@redhat.com>
986
987 * defs.h (fatal, vfatal): New function prototypes.
988 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
989 via catch_errors.
990 (backtrace_command): Change to call backtrace_command_stub via
991 catch_errors instead of calling backtrace_command_1 directly.
992 (backtrace_full_command): Ditto.
993 * utils.c (error_stream_1): New static function.
994 (verror): Change to call error_stream_1 instead of error_stream.
995 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
996 (vfatal, fatal): New functions.
997
98f276a0
AC
9982004-11-05 Andrew Cagney <cagney@gnu.org>
999
1000 * stack.c (parse_frame_specification_1): Clear selected_frame_p
1001 when not using selected frame.
1002
f724bf08
MK
10032004-11-05 Mark Kettenis <kettenis@jive.nl>
1004
1005 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
1006 personality routine in a CIE augmentation.
1007
c789492a
FL
10082004-11-05 Felix Lee <felix+log1@specifixinc.com>
1009
1010 * stack.c (set_current_sal_from_frame): New function.
1011 (print_args_stub): Use it.
1012 (print_frame_info): Don't set sal here.
1013
a81b10ae
MK
10142004-11-04 Mark Kettenis <kettenis@gnu.org>
1015
1016 * dwarf2-frame.c (read_encoded_value): Change type of third
1017 argument to `unsigned char *'. Add support for LEB128 encodings.
1018
ad766c0a
JB
10192004-11-04 Jim Blandy <jimb@redhat.com>
1020
1021 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
1022 prevent cross-objfile references.
1023 (make_cv_type): Doc fix. Don't create cross-objfile references,
1024 even for stub types.
1025 (replace_type): Add assertion to prevent cross-objfile references.
1026 (check_typedef): Never resolve a stub type by copying over a type
1027 from another file.
1028
c46b0409 10292004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 1030
c46b0409
KI
1031 * Makefile.in (m32r-tdep.o): Update dependencies.
1032 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
1033 ABI-specific overrides.
1034
9f0b0322 10352004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 1036
9f0b0322
KI
1037 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
1038 unnecessary parallel execution bit.
1039 (m32r_memory_remove_breakpoint): Ditto.
1040 (m32r_breakpoint_from_pc): Update.
1041
d5c27f81
RC
10422004-11-03 Randolph Chung <tausq@debian.org>
1043
1044 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 1045 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
1046 (hppa_frame_this_id): Likewise.
1047
4577593c
AC
10482004-11-03 Andrew Cagney <cagney@gnu.org>
1049
1050 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1051 packet, obsolete configurations, end-of-life deprecated_registers.
1052
b04de778
MK
10532004-11-02 Mark Kettenis <kettenis@gnu.org>
1054
1055 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1056 encodings as well as unsigned encodings.
1057
9f2feefc
AC
10582004-11-02 Andrew Cagney <cagney@gnu.org>
1059
1060 * value.h (COERCE_VARYING_ARRAY): Delete.
1061 * valops.c (value_cast, value_slice): Delete use.
1062 * valarith.c (value_subscript, value_concat): Delete use.
1063
117ea3cf
PH
10642004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1065
1066 * NEWS: GDB understands GNAT Ada.
1067
0bbc026e
JM
10682004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1069
1070 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1071 (amd64-sol2-tdep.o): Add dependencies.
1072 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1073 config/i386/sol2-64.mt: New files.
1074 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1075 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1076 (supply_gregset): Correct order of arguments to
1077 amd64_supply_native_gregset.
1078 (fill_gregset): Correct order of arguments to
1079 amd64_collect_native_gregset.
1080 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1081 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1082 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1083 for definition of NEW_PROC_API.
1084 * configure: Regenerate.
1085
3d38a0a5
JM
10862004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1087
1088 * MAINTAINERS (Write After Approval): Add myself.
1089
f81cd1cf
AC
10902004-11-01 Andrew Cagney <cagney@gnu.org>
1091
1092 * configure.tgt: Mark d10v-*-* as obsolete.
1093 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1094
f4e88c8e
PH
10952004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1096
1097 * values.c (modify_field): Correct handling of bit-fields that
1098 don't fit in 32 bits. Use unsigned operations throughout and
1099 simplify the code a bit. Document preconditions.
1100
84674fe1
AC
11012004-10-31 Andrew Cagney <cagney@gnu.org>
1102
96693b3a
AC
1103 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1104 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1105 (in_plt_section): Delete.
1106
6f296f8f
AC
1107 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1108 (mips_gdbarch_init): Do not set same.
1109
618501c0
AC
1110 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1111 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1112
b22e8f02
AC
1113 * gdbarch.sh (in_solib_call_trampoline): Delete.
1114 * gdbarch.h, gdbarch.c: Re-generate.
1115
84674fe1
AC
1116 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1117 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1118 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1119 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1120 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1121
c6d1029f
MK
11222004-10-31 Mark Kettenis <kettenis@gnu.org>
1123
1124 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1125 (mipsnbsd_fetch_inferior_registers): Rename from
1126 fetch_inferior_registers. Make static.
1127 (mipsnbsd_store_inferior_registers): Rename from
1128 store_inferior_registers. Make static.
1129 (_initialize_mipsnbsd_nat): New function and prototype.
1130 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1131 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1132 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1133 inf-ptrace.o.
1134
bd9ca83f
AC
11352004-10-31 Andrew Cagney <cagney@gnu.org>
1136
19d718a3
AC
1137 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1138 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1139 delete corresponding unused function.
1140 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1141 in_solib_call_trampoline.
1142 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1143 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1144 * config/mips/tm-nbsd.h: Ditto.
1145 * config/arm/tm-linux.h: Ditto.
1146 * config/mips/tm-linux.h: Ditto.
1147
e8ce19c0
AC
1148 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1149 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1150 in_solib_call_trampoline, delete corresponding unused function.
1151 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1152 (vaxnbsd_aout_init_abi): Ditto.
1153 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1154 (sparc32nbsd_aout_init_abi): Ditto.
1155 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1156 (ppc_linux_init_abi): Ditto.
1157 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1158 (ns32knbsd_init_abi_aout): Ditto.
1159 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1160 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1161 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1162 (m68kbsd_aout_init_abi): Ditto.
1163 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1164 (i386_cygwin_init_abi): Ditto.
1165 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1166 (i386bsd_init_abi): Ditto.
1167
af380d61
AC
1168 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1169 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1170 isn't used by this architecture.
1171 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1172 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1173 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1174 * s390-tdep.c (s390_gdbarch_init): Ditto.
1175 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1176 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1177 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1178 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1179 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1180 * amd64-tdep.c (amd64_init_abi): Ditto.
1181
0528d9f7
AC
1182 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1183 in_solib_call_trampoline to its default value of
1184 generic_in_solib_call_trampoline.
1185 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1186 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1187 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1188 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1189 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1190 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1191
f9f9eacb
AC
1192 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1193
a4ffd1e7
AC
1194 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1195
82e34d2f
AC
1196 * config/mips/tm-mips.h: Delete file.
1197 * remote-mips.c: Delete tm-mips.h from comment.
1198 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1199 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1200 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1201 * config/mips/tm-linux.h: Don't include tm-mips.h.
1202 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1203 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1204 * config/mips/tm-wince.h: Don't include.
1205
75dec9cf
AC
1206 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1207 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1208 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1209 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1210
bd9ca83f
AC
1211 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1212 * mdebugread.c (ecoff_relocate_efi): Delete function.
1213 * objfiles.c (objfile_relocate): Delete #ifdef
1214 MDEBUG_EFI_SYMBOL_NAME code.
1215
3352ef37
AC
12162004-10-31 Orjan Friberg <organ.friberg@axis.com>
1217 Andrew Cagney <cagney@gnu.org>
1218
1219 * gdbarch.sh (single_step_through_delay): Add.
1220 * gdbarch.h, gdbarch.c: Re-generate.
1221 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1222 (mips_step_skips_delay): Delete.
1223 * mips-tdep.c (mips_single_step_through_delay): Replace
1224 mips_step_skips_delay.
1225 (mips_gdbarch_init): Set single_step_through_delay.
1226 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1227
2440b685
MK
12282004-10-31 Mark Kettenis <kettenis@gnu.org>
1229
1230 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1231 from TRAMP_FRAME frame type.
1232
56a2fed5
AC
12332004-10-31 Andrew Cagney <cagney@gnu.org>
1234
9b792b1d
AC
1235 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1236
0a5e8d98
AC
1237 * mips-tdep.c (mips_ignore_helper): Delete.
1238 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1239 * infrun.c (handle_inferior_event): Delete #ifdef
1240 DEPRECATED_IGNORE_HELPER_CALL code.
1241
56a2fed5
AC
1242 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1243
f69c55b2
MK
12442004-10-31 Mark Kettenis <kettenis@gnu.org>
1245
1246 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1247 (fill_fpregset): Do not compile for 64-bit systems.
1248 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1249 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1250 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1251
d37cca3d
AC
12522004-10-30 Andrew Cagney <cagney@gnu.org>
1253
36b8628e
AC
1254 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1255 (struct mdebug_extra_func_info): Define.
1256 * config/alpha/tm-alpha.h: Delete same.
1257 * config/mips/tm-mips.h: Delete same.
1258 * mdebugread.c: Delete same.
1259 * Makefile.in: Update dependencies.
1260 * mips-mdebug-tdep.c: Include "mdebugread.h".
1261
5b123146
AC
1262 * objfiles.c: Include "mdebugread.h".
1263 * mdebugread.c: Include "mdebugread.h".
1264 (ecoff_relocate_cfi): Delete.
1265 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1266 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1267 * mdebugread.h (ecoff_relocate_efi): New file.
1268 * Makefile.in: Update dependencies.
1269
b9c3a7de
AC
1270 * mips-tdep.c (struct frame_extra_info): Delete.
1271 (temp_proc_desc): Delete.
1272
f92761ec
AC
1273 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1274 MIPS_EFI_SYMBOL_NAME.
1275 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1276 (struct mdebug_extra_func_info): Replace struct
1277 alpha_extra_func_info and alpha_extra_func_info_t.
1278 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1279 MIPS_EFI_SYMBOL_NAME.
1280 (struct mdebug_extra_func_info): Replace struct
1281 alpha_extra_func_info and alpha_extra_func_info_t.
1282 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1283 * mdebugread.c, alpha-mdebug-tdep.c:
1284
0bb57b31
AC
1285 Suggested by Mark Kettenis.
1286 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1287 fields frame_adjust and high_addr.
1288 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1289 (non_heuristic_proc_desc): Delete references.
1290
a5c9623c
AC
1291 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1292 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1293 * mips-tdep.c: Update.
1294
607fc93c
AC
1295 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1296 (MIPS_LAST_EMBED_REGNUM): Add.
1297 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1298 (LAST_EMBED_REGNUM): Delete.
1299 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1300
24e05951
AC
1301 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1302 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1303 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1304 * mips-linux-nat.c: Update.
1305
613e114f
AC
1306 * mips-tdep.h: Add comments on registers.
1307 (MIPS_UNUSED_REGNUM): Define.
1308 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1309 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1310 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1311 * mips-linux-nat.c, remote-mips.c: Update.
1312
d37cca3d
AC
1313 * config/mips/tm-mips.h (t_insn): Delete.
1314 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1315 Replace t_insn with ULONGEST.
1316
ceb41096
MK
13172004-10-30 Mark Kettenis <kettenis@gnu.org>
1318
d1180b0f
MK
1319 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1320 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1321 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1322 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1323 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1324 (mipsnbsd_core_osabi_sniffer): New function.
1325 (mipsnbsd_init_abi): Set regset_from_core_section.
1326 (_initialize_mipsnbsd_tdep): Remove calls to
1327 deprecated_add_core_fns.
1328 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1329 (mipsnbsd_regset_from_core_section): New functions.
1330 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1331 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1332
ceb41096
MK
1333 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1334 Remove optimization for DEPRECATED_FP_REGNUM.
1335
ec4045ea
AC
13362004-10-30 Andrew Cagney <cagney@gnu.org>
1337
cd65c8f6
AC
1338 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1339 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1340 (alpha_setup_arbitrary_frame): Delete.
1341 * mips-tdep.c (setup_arbitrary_frame): Delete.
1342 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1343 (setup_arbitrary_frame): Delete.
1344 * stack.c (parse_frame_specification_1): When specified, call
1345 create_new_frame with two parameters. Delete #ifdef
1346 SETUP_ARBITRARY_FRAME.
1347
95ac2dcf
AC
1348 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1349 (MIPS_INSTLEN): Delete.
1350 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1351 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1352 * remote-mips.c, mips-tdep.c: Update.
1353
1a8da44d
AC
1354 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1355 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1356 * mips-tdep.c (mips_mdebug_frame_cache)
1357 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1358 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1359 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1360 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1361 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1362 (mips_gdbarch_init): Do not append mdebug sniffers.
1363 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1364 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1365 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1366 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1367 * Makefile.in: Update dependencies.
1368
e6bc2e8a
AC
1369 * mips-tdep.h (mips_abi_regsize): Declare.
1370 * mips-tdep.c (mips_abi_regsize): Make non-static.
1371
ec4045ea
AC
1372 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1373 (make_mips16_addr): Delete.
e6bc2e8a 1374
6b16acab
MK
13752004-10-30 Mark Kettenis <kettenis@gnu.org>
1376
1377 * i386-sol2-nat.c: New file.
1378 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1379 i386-sol2-tdep.c.
1380 (i386-sol2-nat.o): Update dependencies.
1381 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1382 i386-sol2-nat.o.
1383
8b622e6a
AC
13842004-10-30 Andrew Cagney <cagney@gnu.org>
1385
1386 Total breakage identified by Joel Brobecker.
1387 * mips-tdep.c (after_prologue): Delete.
1388 (mips_skip_prologue): Use skip_prologue_using_sal.
1389 (heuristic_proc_desc): Delete, unused.
1390
772cf8be
MK
13912004-10-30 Mark Kettenis <kettenis@gnu.org>
1392
1393 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1394 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1395 Cleanup coding style.
1396
9c8fdbfa
AC
13972004-10-30 Andrew Cagney <cagney@gnu.org>
1398
0fe7e7c8
AC
1399 * mips-tdep.h (mips_pc_is_mips16): Declare.
1400 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1401 non-static. Update calls.
1402
1b295c3d
AC
1403 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1404 * command.h (add_setshow_enum_cmd): Declare.
1405 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1406
6bcadd06
AC
1407 * mips-tdep.c (_initialize_mips_tdep): Use
1408 add_setshow_zinteger_cmd.
1409
9c8fdbfa
AC
1410 * mips-tdep.c (mips_eabi_extract_return_value)
1411 (mips_o64_extract_return_value, mips_o64_store_return_value)
1412 (return_value_location, mips_eabi_reg_struct_has_addr)
1413 (mips_eabi_use_struct_convention)
1414 (mips_eabi_store_return_value): Delete.
1415 (mips_eabi_store_return_value): New function.
1416 (mips_eabi_return_value): New function.
1417 (mips_gdbarch_init): For O64 and EABI, delete
1418 extract_return_value, store_return_value, use_struct_convention
1419 and reg_struct_has_addr, add return_value.
1420
1d93fe1a
AC
1421 * mips-tdep.c (read_signed_register): Use
1422 regcache_cooked_read_signed.
1423
303d2914
MK
14242004-10-30 Mark Kettenis <kettenis@gnu.org>
1425
1426 * mipsread.c: Cleanup coding style.
1427 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1428 (mipscoff_symfile_finish): Remove prototypes.
1429
14302004-10-29 Mark Kettenis <kettenis@gnu.org>
1431
1432 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1433 (mips_mdebug_frame_cache, mips16_scan_prologue)
1434 (mips32_scan_prologue, mips_stub_frame_cache)
1435 (heuristic_proc_start, heuristic_proc_desc)
1436 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1437 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1438 (mips_o32_return_value, mips_o64_push_dummy_call)
1439 (mips_step_skips_delay, mips_skip_trampoline_code)
1440 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1441 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1442 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1443 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1444 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1445 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1446 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1447 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1448 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1449 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1450 ZERO_REGNUM.
1451 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1452 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1453 ZERO_REGNUM.
1454 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1455 A0_REGNUM.
1456 * mipsnbsd-nat.c: Include "mips-tdep.h".
1457 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1458 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1459
1c8831c5
AC
14602004-10-29 Andrew Cagney <cagney@gnu.org>
1461
1462 * stack.c (parse_frame_specification_1): New function based on
1463 parse_frame_specification. Add message and selected_frame_p
1464 paramters. Truely always return non-NULL.
1465 (parse_frame_specification): Call parse_frame_specification_1.
1466 (frame_info): Update. Eliminate target_has_stack check.
1467 (select_frame_command): Update.
1468
b04f3ab4
AC
14692004-10-29 Andrew Cagney <cagney@gnu.org>
1470
1471 * frame.h (get_selected_frame): Add message parameter.
1472 * frame.c (get_selected_frame): Add and use message parameter.
1473 * stack.c (current_frame_command, return_command, locals_info)
1474 (catch_info, args_info, up_silently_base, down_silently_base): Use
1475 get_selected_frame with an explicit message.
1476 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1477 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1478 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1479 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1480 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1481 * breakpoint.c: Update.
1482
14832004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
1484
1485 * trad-frame.c (trad_frame_get_prev_register): Use
1486 frame_unwind_register instead of frame_register_unwind, do not
1487 recurse the register's location.
1488 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1489 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1490 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1491 * sh-tdep.c (sh_frame_prev_register): Ditto.
1492 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1493 * i386-tdep.c (i386_frame_prev_register): Ditto.
1494 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1495 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1496
7a952542
MK
14972004-10-28 Mark Kettenis <kettenis@jive.nl>
1498
c18c06be
MK
1499 * proc-events.c: Fix several coding-style issues. Consistently
1500 use #ifdef instead of #if defined().
1501 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1502 ARRAY_SIZE.
1503 (_initialize_proc_events): New prototype.
1504
7a952542
MK
1505 * proc-why.c: Fix several coding-style issues.
1506 (proc_prettyfprint_why): Use ARRAY_SIZE.
1507
fcad0fa4
JB
15082004-10-27 Jim Blandy <jimb@redhat.com>
1509
1510 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1511 manner independent of the host byte order.
1512
c163184f
MK
15132004-10-27 Mark Kettenis <kettenis@gnu.org>
1514
1515 * mips-tdep.c (id_delayed): Remove prototype.
1516
9c46b6f0
MK
15172004-10-26 Mark Kettenis <kettenis@gnu.org>
1518
1519 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1520 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1521 to enum with register numbers.
1522 (enum mips_insn_size): New enum.
1523
0d0266c6
AC
15242004-10-26 Andrew Cagney <cagney@gnu.org>
1525
e7d6a6d2
AC
1526 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1527 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1528 (mips_gdbarch_init): Update.
1529 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1530
c5115f39
AC
1531 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1532 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1533 IN_SOLIB_RETURN_TRAMPOLINE.
1534 * mips-tdep.c (mips_dump_tdep): Do not print
1535 IN_SOLIB_RETURN_TRAMPOLINE.
1536 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1537 (mips_gdbarch_init): Update.
1538
0d0266c6
AC
1539 * mips-tdep.h (mips_software_single_step): Move to here ...
1540 * config/mips/tm-mips.h: ... from here.
1541 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1542 (SOFTWARE_SINGLE_STEP): Delete.
1543 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1544
156a53ca
AC
15452004-10-25 Andrew Cagney <cagney@gnu.org>
1546
1547 * NEWS: Add Changes since GDB 6.3 section.
1548
f27cf670
AS
15492004-10-23 Andreas Schwab <schwab@suse.de>
1550
156a53ca
AC
1551 * ada-lang.c (grow_vect): Return the new array instead of
1552 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
1553 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1554
121d8485
UW
15552004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1556
1557 * s390-tdep.c (enum pv_boolean): Remove.
1558 (pv_is_array_ref): Remove.
1559 (s390_on_stack): Remove.
1560 (S390_NUM_SPILL_SLOTS): Remove.
1561 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1562 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1563 (s390_store): Track all stores of orginal incoming registers to the
1564 stack constant offsets relative to the CFA, instead of only tracking
1565 stores into specific spill slots.
1566 (s390_load): Likewise.
1567 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1568 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1569 defined as call-saved by the ABI.
1570 (s390_push_dummy_call): Use bottom of dummy call argument save area
1571 as return value, not the top. Do not store to the called function's
1572 register save area.
1573 (s390_unwind_dummy_id): Adapt accordingly.
1574
0a6ddd08
AC
15752004-10-23 Andrew Cagney <cagney@gnu.org>
1576
1577 * objfiles.h (struct objfile): Rename obj_private to
1578 deprecated_obj_private, sym_private to deprecated_sym_private, and
1579 sym_stab_info to deprecated_sym_stab_info.
1580 * gdb-stabs.h: Update.
1581 * elfread.c: Update.
1582 * dbxread.c: Update.
1583 * coffread.c: Update.
1584 * xcoffread.c: Update.
1585 * symfile.c: Update.
1586 * somread.c: Update.
1587 * nlmread.c: Update.
1588 * mdebugread.c: Update.
1589 * hpread.c: Update.
1590 * coffread.c: Update.
1591
abc08782
MK
15922004-10-23 Mark Kettenis <kettenis@gnu.org>
1593
1594 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1595 * configure.host: Add mips64*-*-openbsd*.
1596 * configure.tgt: Add mips64*-*-openbsd*.
1597 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1598 mips64obsd-tdep.c.
1599 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1600 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1601
fc062ac6
JB
16022004-10-21 Joel Brobecker <brobecker@gnat.com>
1603
1604 * symtab.c (symbol_search_name): Minor reformatting.
1605
5bccb4d1
JB
16062004-10-20 Joel Brobecker <brobecker@gnat.com>
1607
1608 * symtab.h: Fix typo in comment.
1609
a738430d
MK
16102004-10-19 Mark Kettenis <kettenis@gnu.org>
1611
1612 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1613 (dwarf_decode_line_header): Likewise.
1614
f2cb65ca
MC
16152004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1616
1617 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1618
09e55376
AC
16192004-10-19 Andrew Cagney <cagney@gnu.org>
1620
1621 GDB 6.3 branch created.
1622 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1623
bc5f45f8
JB
16242004-10-15 Joel Brobecker <brobecker@gnat.com>
1625
1626 * dwarf2read.c (set_cu_language): Set language to Ada for
1627 DW_LANG_Ada83 and DW_LANG_Ada95.
1628
2941da8c
MC
16292004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1630
1631 From Andreas Schwab <schwab@suse.de>:
1632 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1633 for xmalloc and xrealloc.
1634
34a17005
AC
16352004-10-15 Andrew Cagney <cagney@gnu.org>
1636
1637 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1638 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1639 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1640 Update dependencies.
1641
714e53ab
PH
16422004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1643
1644 * ada-lang.c (ada_lookup_symbol): Correct comment.
1645 (ada_evaluate_subexp): Change error message for
1646 OP_FUNCALL case so as not to indicate an internal error.
1647
16482004-10-15 Joel Brobecker <brobecker@gnat.com>
1649
1650 Committed by Paul Hilfinger.
1651 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1652 type sizes in XVE/XVU types, and emit a warning when that happens,
1653 instead of rounding up the size of the resulting type.
1654 Some minor reformatting.
1655 (ada_is_aligner_type): Do not consider a type as an aligner type
1656 if there is a corresponding XVS type as well.
1657 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1658 have several levels of pointer indirection to the array.
1659
16602004-10-15 Jerome Guitton <guitton@gnat.com>
1661
1662 Committed by Paul Hilfinger.
1663 * ada-lang.c (check_size): New function.
1664 (coerce_unspec_val_to_type): call check_size to make sure
1665 that the object size is reasonable.
1666 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1667 Implements the case when we get a reference when we evaluate
1668 the expression of one of the bounds of the slice.
1669 (ada_value_struct_elt): when a packed array field is
1670 a reference, use ada_coerce_ref to dereference it; use
1671 ada_value_ind only if it is a pointer.
1672
29639122
JB
16732004-10-15 Joel Brobecker <brobecker@gnat.com>
1674
1675 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1676 a bit to avoid the necessity of an advance declaration. Remove
1677 declaration.
1678 (set_reg_offset): Move implemenation up.
1679 (mips16_get_imm): Likewise.
1680 (mips16_scan_prologue): Likewise.
1681 (reset_saved_regs): Likewise.
1682 (mips32_scan_prologue): Likewise.
1683
a65bbe44
JB
16842004-10-14 Joel Brobecker <brobecker@gnat.com>
1685
1686 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1687 Remove sp as a parameter, compute it internally instead. Move
1688 prologue scanning limit from heuristic_proc_desc to here.
1689 (mips16_scan_prologue): Likewise.
1690 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1691 by call to mips16_scan_prologue.
1692 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1693 by call to mips32_scan_prologue.
1694 (heuristic_proc_desc): Remove code that's no longer necessary.
1695 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1696 (mips_skip_prologue): Update calls to mips16_scan_prologue
1697 and mips32_scan_prologue.
1698
1c645fec
JB
16992004-10-14 Joel Brobecker <brobecker@gnat.com>
1700
1701 * mips-tdep.c (mips16_scan_prologue): Merge code from
1702 mips16_skip_prologue. Now return the address of the first
1703 instruction past the function prologue.
1704 (mips16_skip_prologue): Remove, no longer necessary.
1705 (mips_skip_prologue): Replace call to mips16_skip_prologue
1706 by call to mips16_scan_prologue.
1707
98b4dd94
JB
17082004-10-14 Joel Brobecker <brobecker@gnat.com>
1709
1710 * mips-tdep.c (mips32_scan_prologue): Merge code from
1711 mips32_skip_prologue. Now return the address of the first
1712 instruction past the function prologue.
1713 (mips32_skip_prologue): Remove. No longer necessary.
1714 (mips16_skip_prologue): Add parameter end_pc instead of
1715 computing it.
1716 (mips_skip_prologue): Compute the upper limit for the
1717 prologue scanning. Update call to mips16_skip_prologue.
1718 Replace call to mips32_skip_prologue by call to
1719 mips32_scan_prologue.
1720
ad4c72d2
MK
17212004-10-14 Mark Kettenis <kettenis@gnu.org>
1722
dfaf8edb
MK
1723 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1724 NetBSD system call stubs that store %rp in the ERP slot of the
1725 stack frame.
1726
3e3a28f1
MK
1727 * source.c: Always define O_BINARY to 0 if not defined already.
1728 (openp): Unconditionally use O_BINARY.
1729
ad4c72d2
MK
1730 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1731 * event-top.c (gdb_readline2): Likewise.
1732
52bd1401
OF
17332004-10-14 Orjan Friberg <orjanf@axis.com>
1734
1735 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1736 deprecated_add_core_fns which was removed by mistake.
1737
e0e25c6c
KB
17382004-10-13 Kevin Buettner <kevinb@redhat.com>
1739
1740 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1741 references to deprecated_registers[] with equivalent code.
1742
9f335945
KB
17432004-10-13 Kevin Buettner <kevinb@redhat.com>
1744
1745 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1746 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1747 instead of explicit test and print statement.
1748
06c2338d
MK
17492004-10-12 Mark Kettenis <kettenis@gnu.org>
1750
1b9445c2
MK
1751 * sparc-nat.c: Include "inf-ptrace.h".
1752 (sparc_target): New function.
1753 * sparc-nat.h: Update copyright year.
1754 (sparc_target): New prototype.
1755 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1756 (_initialize_sparcnbsd_nat): Construct and add target vector.
1757 * sparc64nbsd-nat.c: Include "target.h".
1758 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1759 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1760 Update dependencies.
1761 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1762 inftarg.o, add inf-ptrace.o.
1763 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1764 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1765 (NAT_FILE): Set to nm-bsd.h.
1766 (LOADLIBES): New variable.
1767 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1768 infarg.o, add inf-ptrace.o.
1769 * config/sparc/nm-nbsdaout.h: Remove file.
1770 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1771 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1772 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1773
06c2338d
MK
1774 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1775 "fopen-same.h". Update comment.
1776
3303a276
MK
17772004-10-11 Mark Kettenis <kettenis@gnu.org>
1778
1779 * i386gnu-nat.c: Include "gdb_string.h".
1780 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1781 registers when the floating-point state isn't initialized.
1782 * Makefile.in (i386gnu-nat.o): Update dependencies.
1783
04c663e3
DA
17842004-10-11 David Anderson <davea@sgi.com>
1785
1786 * regcache.c (regcache_raw_read): Comment was missing "to".
1787 Extraneous ' removed.
1788 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1789 comment now describes use.
1790
a5f6c8f5
OF
17912004-10-11 Orjan Friberg <orjanf@axis.com>
1792
1793 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1794 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1795 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1796 (cris_sigtramp_frame_sniffer): New functions.
1797 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1798 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1799 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1800 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1801 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1802 command.
1803 (cris_version_update): Remove, replace with ...
1804 (set_cris_version): New function.
1805 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1806 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1807 (_initialize_cris_tdep): Remove CRIS mode command.
1808 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1809 cris-fpless-backtrace command.
1810 (cris_scan_prologue): Fix prologue scanning limit.
1811 (cris_register_type): Update to reflect actual registers.
1812 (cris_register_bytes_ok) Remove.
1813 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1814 Remove set_gdbarch_deprecated_register_size,
1815 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1816
77109804
AC
18172004-10-10 Andrew Cagney <cagney@gnu.org>
1818
1819 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1820 comment.
1821
25652d4f
JB
18222004-10-10 Joel Brobecker <brobecker@gnat.com>
1823
1824 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1825
1e05a7bf
JB
18262004-10-10 Joel Brobecker <brobecker@gnat.com>
1827
1828 * mips-tdep.c (mips16_scan_prologue): Renames
1829 mips16_heuristic_proc_desc. Update comment.
1830 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1831 (heuristic_proc_desc): Update calls to the 2 functions above.
1832
c68a4142
JB
18332004-10-10 Joel Brobecker <brobecker@gnat.com>
1834
1835 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1836 Update comments. Also immediately return empty cache when the start
1837 address of our function could not be found.
1838 (mips_insn32_frame_cache): Likewise.
1839
0fce0821
JB
18402004-10-10 Joel Brobecker <brobecker@gnat.com>
1841
1842 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1843 (mips_insn16_frame_cache): Pass frame cache in call to
1844 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1845 Remove code that became redundant as a consequence.
1846 (mips32_heuristic_proc_desc): No longer compute a fake
1847 procedure descriptor. Compute the full frame cache instead.
1848 Some minor comment reformatting.
1849
b672553e
JB
18502004-10-10 Jim Blandy <jimb@redhat.com>
1851
1852 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1853 reader, tracing bytecode stuff): Remove self.
1854
9cc52bde
MK
18552004-10-10 Mark Kettenis <kettenis@gnu.org>
1856
cc9784b6
MK
1857 * sparc64-linux-tdep.c: Update copyright year. Don't include
1858 "solib-svr4.h".
1859 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1860 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1861 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1862
ee8aef23
MK
1863 * sparc-linux-tdep.c: Update copyright year.
1864 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1865 to struct frame_info *. Use safe_frame_unwind_memory instead of
1866 deprecated_read_memory_nobpt.
1867 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1868 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1869 changed signature of sparc_linux_sigtramp_start.
1870 (sparc32_linux_pc_in_sigtramp): Remove function.
1871 (sparc32_linux_sigtramp_p): New function.
1872 (sparc32_linux_sigtramp_frame_sniffer): Use
1873 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1874
bc73f8cc
MK
1875 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1876 Remove function.
1877 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1878
a2249542
MK
1879 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1880 (decode_packed_array_type, value_subscript_packed)
1881 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1882 argument in call to lim_warning.
1883
9cc52bde
MK
1884 * configure.in: Really disable the TUI if an enhanced curses
1885 library isn't found.
1886 * configure: Regenerate.
1887
151fc45b
MK
18882004-10-09 Mark Kettenis <kettenis@gnu.org>
1889
1890 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1891 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1892 * config/i386/nm-nbsdaout.h: Remove file.
1893 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1894 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1895 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1896 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1897 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1898 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1899 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1900 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1901 (ldd, ld_un, ld_2): Remove defines.
1902 * config/i386/nm-obsd.h: Likewise.
1903
375c0479
PH
19042004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1905
1906 * ada-lex.l: Remove useless rule whose right-context clause
1907 causes unreferenced static function warning for yyrealloc.
1908 (ada_flex_use): Remove the artificial reference to yyrealloc.
1909
c8e73a31
AC
19102004-10-08 Andrew Cagney <cagney@gnu.org>
1911
1912 * target.h (struct target_ops): Rename to_xfer_memory to
1913 deprecated_xfer_memory.
1914 * target.c: Update.
1915 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1916 * wince.c: Update.
1917 * win32-nat.c: Update.
1918 * v850ice.c: Update.
1919 * uw-thread.c: Update.
1920 * thread-db.c: Update.
1921 * sol-thread.c: Update.
1922 * remote.c: Update.
1923 * remote-vx.c: Update.
1924 * remote-st.c: Update.
1925 * remote-sim.c: Update.
1926 * remote-sds.c: Update.
1927 * remote-rdp.c: Update.
1928 * remote-rdi.c: Update.
1929 * remote-mips.c: Update.
1930 * remote-m32r-sdi.c: Update.
1931 * remote-e7000.c: Update.
1932 * procfs.c: Update.
1933 * ppc-bdm.c: Update.
1934 * nto-procfs.c: Update.
1935 * monitor.c: Update.
1936 * linux-nat.c: Update.
1937 * inftarg.c: Update.
1938 * hpux-thread.c: Update.
1939 * go32-nat.c: Update.
1940 * gnu-nat.c: Update.
1941 * exec.c: Update.
1942 * corelow.c: Update.
1943 * bsd-kvm.c: Update.
1944 * aix-thread.c: Update.
1945
aa869812
AC
19462004-10-08 Andrew Cagney <cagney@gnu.org>
1947
1948 * target.c (debug_target): Move to near start of file.
1949 (target_stopped_data_address_p): Re-org logic, add casts.
1950
8dcef9cf
MK
19512004-10-02 Mark Kettenis <kettenis@gnu.org>
1952
1953 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1954 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1955 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1956 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1957 New defines.
1958
4aa7a7f5
JJ
19592004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1960
1961 * target.h (to_stopped_data_address): Change prototype to
1962 take a CORE_ADDR pointer and return an int.
1963 * target.c (update_current_target): Change to_stopped_data_address
1964 to match new prototype.
1965 (debug_to_stopped_data_address): Change appropriately.
1966 * breakpoint.c (bpstat_stop_status): Change call to
1967 target_stopped_data_address to use new prototype.
1968 * frv-tdep.c (frv_have_stopped_data_address): New function.
1969 (frv_stopped_data_address): Change to new prototype and
1970 functionality.
1971 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1972 prototype and functionality.
1973 (ia64_stopped_by_watchpoint): New function.
1974 * i386-nat.c (i386_stopped_data_address): Change to new
1975 prototype and functionality.
1976 (i386_stopped_by_watchpoint): New function.
1977 * remote.c (remote_stopped_data_address): Change to new prototype
1978 and functionality.
1979 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1980 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1981 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1982 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1983 new i386_stopped_by_watchpoint function.
1984 (i386_stopped_by_watchpoint): New prototype.
1985 (i386_stoppped_data_address): Change to new prototype.
1986 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1987 new ia64_stopped_by_watchpoint function.
1988 (ia64_stopped_by_watchpoint): New prototype.
1989 (ia64_stopped_data_address): Ditto.
1990
61ee279c
PH
19912004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1992
1993 * ada-typeprint.c (ada_print_type): Use int_string for printing
1994 modulus of modular type.
1995 * ada-lang.h (ada_modulus): Change return type to unsigned.
1996 * ada-lang.c (ada_language_arch_info): Correct type of
1997 string_char_type.
1998 (ada_modulus): Return unsigned result.
1999 (ada_lookup_symbol): Remove user disambiguation and modify comment
2000 accordingly.
2001
20022004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
2003
2004 Committed by Paul Hilfinger.
2005 * ada-lang.c (decode_packed_array): On big-endian targets,
2006 left-justify the value if it comes with a modular type.
2007
20082004-10-08 Joel Brobecker <brobecker@gnat.com>
2009
2010 Committed by Paul Hilfinger.
2011 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
2012 (is_name_suffix): Add support for "___JM" suffixes.
2013 (ada_check_typedef): Renames ada_completed_type.
2014 Update all users of CHECK_TYPEDEF, check_typedef, and
2015 ada_complete_type to call ada_check_typedef.
2016 * ada-typeprint.c: Likewise.
2017 * ada-valprint.c: Likewise.
2018
b6c25a56
CV
20192004-10-08 Corinna Vinschen <vinschen@redhat.com>
2020
2021 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
2022
83ca6a46
NR
20232004-10-08 Nick Roberts <nickrob@snap.net.nz>
2024
2025 * MAINTAINERS: Update e-mail address.
2026
1fd8cd20
DJ
20272004-10-07 Daniel Jacobowitz <dan@debian.org>
2028
2029 From Maciej W. Rozycki <macro@mips.com>:
2030 * mips-tdep.c (mips32_next_pc): Check the register's contents,
2031 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2032
cea15572
KI
20332004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
2034
2035 * m32r-tdep.c (decode_prologue): Support functions written
2036 in assembler language. Recognize trap instructions as the
2037 end of prologue.
2038 (m32r_frame_unwind_cache): Ditto.
2039 (m32r_skip_prologue): Extend search limit. Quit analyzing
2040 prologue if pc's location is not readable.
2041
23485554
PH
20422004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
2043
2044 * Makefile.in (.l.c): Do conversions of names of alloc and free
2045 functions that are done for .y.c files, plus special one
2046 for yy_flex_realloc. Also, correct missing-file tests here.
2047 * ada-lex.l (malloc, free): Remove macros.
2048 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2049 xrealloc.
2050 (ada_flex_use): Dummy definition to remove warnings about unused
2051 functions.
2052 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2053 to suppress warning.
2054
c0409442
CV
20552004-10-06 Corinna Vinschen <vinschen@redhat.com>
2056
2057 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2058 RETURN_VALUE.
2059 (sh_return_value_fpu): Ditto for CPUs with FPU.
2060 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2061 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2062 Install sh_return_value_nofpu resp. sh_return_value_fpu as
2063 RETURN_VALUE functions.
2064
9bed62d7
CV
20652004-10-06 Corinna Vinschen <vinschen@redhat.com>
2066
2067 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
2068 (sh_pseudo_register_write): Ditto.
2069
03131d99
CV
20702004-10-06 Corinna Vinschen <vinschen@redhat.com>
2071
2072 * sh-tdep.c (IS_MACL_STS): New define.
2073 (IS_MOVI20): Ditto.
2074 (IS_MACL_LDS): Ditto.
2075 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2076 instructions in prologue.
2077 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2078 instructions in epilogue.
2079
da962468
CV
20802004-10-06 Corinna Vinschen <vinschen@redhat.com>
2081
2082 * sh-tdep.c (SH_NUM_REGS): Define as 67.
2083 (sh_sh_register_name): Add eight empty register names.
2084 (sh_sh3_register_name): Ditto.
2085 (sh_sh3e_register_name): Ditto.
2086 (sh_sh2e_register_name): Ditto.
2087 (sh_sh2a_register_name): New function, defining SH2A register set.
2088 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2089 in nofpu case.
2090 (sh_sh_dsp_register_name): Add eight empty register names.
2091 (sh_sh3_dsp_register_name): Ditto.
2092 (sh_sh4_register_name): Ditto.
2093 (sh_sh4_nofpu_register_name): Ditto.
2094 (sh_sh4al_dsp_register_name): Ditto.
2095 (sh2a_show_regs): New function.
2096 (sh2a_nofpu_show_regs): New function.
2097 (sh_sh2a_register_type): New function.
2098 (do_bank_register_info): New function.
2099 (sh_print_pseudo_register): Call do_bank_register_info.
2100 Call sh_print_pseudo_register for valid "bank" register.
2101 (sh_sh2a_register_sim_regno): New function.
2102 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2103 Increment pseudo register count by one for all sh variants with
2104 pseudo registers to accomodate pseudo bank register.
2105 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2106 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2107 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
2108 Increment pseudo register numbers.
2109
1326e61b
CV
21102004-10-06 Corinna Vinschen <vinschen@redhat.com>
2111
2112 * dwarf2read.c (read_subroutine_type): Call make_function_type
2113 instead of lookup_function_type.
2114
146c42e3
JB
21152004-10-05 Jim Blandy <jimb@redhat.com>
2116
2117 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2118 (Previous change missed some uses.)
2119
1df84f13
AC
21202004-10-05 Andrew Cagney <cagney@gnu.org>
2121
2122 * target.h (deprecated_child_ops): Rename child_ops.
2123 * wince.c: Update copyright. Rename child_ops.
2124 * win32-nat.c: Rename child_ops.
2125 * target.c: Rename child_ops.
2126 * rs6000-nat.c: Rename child_ops.
2127 * linux-nat.c: Rename child_ops.
2128 * infttrace.c: Rename child_ops.
2129 * inftarg.c: Rename child_ops.
2130 * infptrace.c: Rename child_ops.
2131 * hppah-nat.c: Update copyright. Rename child_ops.
2132 * hpux-thread.c: Update copyright. Rename child_ops.
2133
21e3b9b9
DJ
21342004-10-05 Daniel Jacobowitz <dan@debian.org>
2135
2136 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2137
de83afe7
AC
21382004-10-05 Andrew Cagney <cagney@gnu.org>
2139
2140 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2141
10b3939b
DJ
21422004-10-05 Daniel Jacobowitz <dan@debian.org>
2143
2144 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2145 (die_ref_table): Remove.
2146 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2147 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2148 the usage of this type.
2149 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2150 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2151 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2152 (dwarf2_create_include_psymtab): Update comment.
2153 (find_partial_die): Remove third argument. Remove unreachable call
2154 to error ().
2155 (dwarf2_find_containing_comp_unit): Update comments. Change one
2156 assertion to an error. Remove an unreachable error.
2157 (dwarf2_find_comp_unit): Update comments.
2158 (type_at_offset): Remove dead code.
2159 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2160 (store_in_ref_table): Add CU argument.
2161 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2162 inter-compilation-unit references.
2163 (load_full_comp_unit, process_full_comp_unit): New functions, based
2164 on psymtab_to_symtab_1.
2165 (psymtab_to_symtab_1): Use them.
2166 (dwarf2_add_dependence): New function.
2167 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2168 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2169 (partial_die_parent_scope, guess_structure_name): Update for changes
2170 to find_partial_die.
2171 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2172 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2173 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2174 (read_die_and_children): Update call to store_in_ref_table.
2175 (do_free_die_list_cleanup): Remove.
2176 (fixup_partial_die): Update for changes to find_partial_die.
2177 (read_full_die): Handle queueing absolute references.
2178 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2179 (dwarf2_attr, die_specification, die_type)
2180 (die_containing_type, dwarf2_extension): Update calls to
2181 follow_die_ref.
2182 (dump_die): Update DW_FORM_ref* handling.
2183 (dwarf2_get_ref_die_offset): Likewise.
2184 (free_one_comp_unit): Release the dies list.
2185 (dwarf2_mark_helper): New function.
2186 (dwarf2_mark): Use it.
2187
998bdd68
MK
21882004-10-05 Mark Kettenis <kettenis@jive.nl>
2189
2190 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2191 when writing to memory.
2192
14588880
KI
21932004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2194
2195 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2196 (m32r_extract_struct_value_address): Delete function.
2197 (m32r_return_value): New function.
2198 (m32r_gdbarch_init): Instead of store_return_value,
2199 extract_return_value, deprecated_extract_struct_value_address
2200 and deprecated_use_struct_convention, set return_value.
2201
dd5e6932
DJ
22022004-10-03 Daniel Jacobowitz <dan@debian.org>
2203
2204 * dwarf2read.c (read_subrange_type): Add comment for variable
2205 sized arrays.
2206
7dc1ef8d
PH
22072004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2208
2209 * Makefile.in (.l.c): Modify rule for compatibility with recent
2210 versions of flex, and remove most command-line options.
2211 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2212 options.
2213
1f8173e6
PH
22142004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2215
2216 Turn on initial Ada support (mainly expression evaluation).
2217
2218 * Makefile.in (SFILES): Remove ada-tasks.c.
2219 (HFILES_NO_SRCDIR): Add ada-lang.h.
2220 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2221 (YYOBJ): Add ada-exp.o.
2222 (rule .l.c): Generalize to not mention ada.
2223 * symtab.c: Include ada-lang.h.
2224 (symbol_natural_name, symbol_demangled_name)
2225 (symbol_search_name): Add Ada case.
2226
cb85a953
AC
22272004-10-01 Andrew Cagney <cagney@gnu.org>
2228
3f3db248
AC
2229 * Makefile.in (COMMON_OBS): Add inf-child.o.
2230 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2231 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2232 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2233 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2234 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2235 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2236 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2237 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2238 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2239 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2240 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2241 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2242 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2243
cb85a953
AC
2244 * target.c (xfer_using_stratum): Change return type to LONGEST.
2245 On each iteration offset, readbuf and writebuf.
2246 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2247 partial_length, and read/modify/write predicate, update comments.
2248 Pass buffer.word to ptrace write.
2249
963a6417
PH
22502004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2251
2252 * symfile.c (init_filename_language_table): Add extensions for
2253 Ada.
2254 * defs.h (enum language): Add language_ada.
2255 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2256 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2257 (add_symbols_from_enclosing_procs): Make a no-op for now.
2258 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2259 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2260 (find_line_in_linetable, find_next_line_in_linetable)
2261 (read_all_symtabs, is_plausible_func_for_line)
2262 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2263 (is_runtime_sym_defined, check_size): Remove declaration.
2264 (function_name_from_pc, ada_translate_error_message)
2265 (ada_lookup_minimal_symbol): Remove definition.
2266 (ada_add_block_symbols): Remove useless label.
2267 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2268 useless declaration.
2269 (ada_is_exception_sym): Likewise.
2270
9b32d526
KI
22712004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2272
2273 Add m32r-linux support.
2274 * configure.tgt: Add m32r*-*-linux*.
2275 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2276 and m32r-linux-tdep.c.
2277 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2278 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2279 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2280 m32r-linux-tdep.c.
2281 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2282 config/m32r/linux.mh, config/m32r/linux.mt,
2283 config/m32r/nm-linux.h: New files.
2284
2de118d3
JB
22852004-09-30 Joel Brobecker <brobecker@gnat.com>
2286
2287 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2288 (mips32_fetch_instruction): Remove, unused.
2289
a9fe69d1
JB
22902004-09-30 Joel Brobecker <brobecker@gnat.com>
2291
2292 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2293 conditions that will always be true.
2294
bc8ffc12
MK
22952004-09-30 Mark Kettenis <kettenis@gnu.org>
2296
ba0cd111
MK
2297 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2298 (vaxbsd_fetch_inferior_registers): Rename from
2299 fetch_inferior_registers. Make static.
2300 (vaxbsd_store_inferior_registers): Rename from
2301 store_inferior_registers. Make static.
2302 (_initialize_vaxbsd_nat): Construct and add target vector.
2303 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2304 inftarg.o. Add inf-child.o and inf-ptrace.o.
2305 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2306 inftarg.o. Add inf-child.o and inf-ptrace.o.
2307 (NAT_FILE): Remove.
2308 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2309 inftarg.o. Add inf-child.o and inf-ptrace.o.
2310 (NAT_FILE): Remove.
2311 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2312
bc8ffc12
MK
2313 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2314 (m88kbsd_fetch_inferior_registers): Rename from
2315 fetch_inferior_registers. Make static.
2316 (m88kbsd_store_inferior_registers): Rename from
2317 store_inferior_registers. Make static.
2318 (_initialize_m88kbsd_nat): New prototype and function.
2319 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2320 inftarg.o. Add inf-child.o and inf-ptrace.o.
2321 (NAT_FILE): Remove.
2322 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2323
27394598
AC
23242004-09-30 Andrew Cagney <cagney@gnu.org>
2325
2326 * target.c (target_xfer_partial): New function.
2327 (target_read_memory_partial, target_write_memory_partial)
2328 (default_xfer_partial, target_read_partial, target_write_partial)
2329 (xfer_using_stratum): Use.
2330 (debug_to_xfer_partial): Delete function.
2331 (setup_target_debug): Do not override to_xfer_partial.
2332
74a4fe32
MK
23332004-09-30 Mark Kettenis <kettenis@chello.nl>
2334
2335 * fork-child.c: Update copyright year. Fix coding style.
2336
982526a1
MK
23372004-09-29 Mark Kettenis <kettenis@gnu.org>
2338
2339 * defs.h (msavestring, mstrsave): Remove prototypes.
2340 * utils.c (msavestring, mstrsave): Remove functions.
2341 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2342 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2343 of mstrsave.
2344 * source.c (find_and_open_source): Use xstrdup instead of
2345 mstrsave.
2346
b8eb5af0
AC
23472004-09-30 Andrew Cagney <cagney@gnu.org>
2348
0779438d
AC
2349 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2350 (inf_ptrace_xfer_memory): Delete.
2351 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2352 (target_read_memory, target_write_memory): Use xfer_using_stratum
2353 when target_xfer_partial_p.
2354 (debug_target): Move to start of file.
2355 (target_read_memory_partial, target_write_memory_partial): Use
2356 to_xfer_partial when target_xfer_partial_p.
2357
f929a579
AC
2358 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2359 inf_ptrace_xfer_memory with equivalent code.
2360 * inftarg.c (child_xfer_partial): When performing a write, pass
2361 writebuf to child_xfer_memory.
2362
b8eb5af0
AC
2363 * target.c (target_read_string): Use target_read_memory instead of
2364 target_xfer_memory.
2365
ee21b650
AC
23662004-09-29 Andrew Cagney <cagney@gnu.org>
2367
d3e05d0d
AC
2368 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2369 the address of status.
2370
ee21b650
AC
2371 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2372 (kill_inferior): Inline ptrace_wait call.
2373 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2374 * inftarg.c (child_wait): Inline ptrace_wait call.
2375
a182eed6
AC
2376 * target.h (struct target_ops): Delete field to_post_wait.
2377 (target_post_wait): Delete macro.
2378 (child_post_wait): Delete declaration.
2379 * target.c (update_current_target, update_current_target)
2380 (debug_to_post_wait, setup_target_debug): Delete functions and
2381 references.
2382 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2383 * inftarg.c (child_post_wait): Delete.
2384 (init_child_ops): Do not set to_post_wait.
2385 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2386 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2387 * inf-child.c (inf_child_post_wait): Delete.
2388 (inf_child_target): Do not set to_post_wait.
2389 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2390 (inf_ptrace_target): Do not set to_post_wait.
2391
ba0c540b
AC
2392 * wince.c (child_ops): Delete.
2393 * win32-nat.c (child_ops): Delete.
2394
81977402
AC
2395 * inftarg.c (inftarg_set_find_memory_regions)
2396 (inftarg_set_make_corefile_notes): Delete functions.
2397 (_initialize_linux_nat): Inline calls.
2398
5ac10fd1
AC
2399 * target.h (child_ops): Declare.
2400 * inftarg.c (child_ops): Move from here ...
2401 * target.c (child_ops): ... to here.
2402 * wince.c (child_ops): Delete extern declaration.
2403 * win32-nat.c (child_ops): Delete extern declaration.
2404 * linux-nat.c (child_ops): Delete extern declaration.
2405 * hpux-thread.c (child_ops): Delete extern declaration.
2406
663408c2 24072004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
2408
2409 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2410
0dad8a66
MK
24112004-09-28 Mark Kettenis <kettenis@gnu.org>
2412
2413 * configure.in: Only set host_makefile_frag when building a native
2414 debugger.
2415 * configure: Regenerate.
e8d74ed3
MK
2416
2417 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2418 for OpenBSD ELF.
2419
dba24537
AC
24202004-09-28 Andrew Cagney <cagney@gnu.org>
2421
e979516b
AC
2422 Problem identified by Paul Hilfinger.
2423 * Makefile.in (ada_lex_c): Define.
2424 (ada-lex.o): Delete rule.
2425
dba24537
AC
2426 * linux-proc.c: Delete file.
2427 * Makefile.in: Update.
2428 * config/sparc/linux64.mh (NATDEPFILES):
2429 * config/sparc/linux.mh (NATDEPFILES): Update.
2430 * config/s390/s390.mh (NATDEPFILES): Update.
2431 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2432 * config/powerpc/linux.mh (NATDEPFILES): Update.
2433 * config/pa/linux.mh (NATDEPFILES): Update.
2434 * config/mips/linux.mh (NATDEPFILES): Update.
2435 * config/m68k/linux.mh (NATDEPFILES): Update.
2436 * config/ia64/linux.mh (NATDEPFILES): Update.
2437 * config/i386/linux64.mh (NATDEPFILES): Update.
2438 * config/i386/linux.mh (NATDEPFILES): Update.
2439 * config/arm/linux.mh (NATDEPFILES): Update.
2440 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2441 * linux-nat.c: Update copyright. Include <sys/param.h>,
2442 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2443 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2444 (O_LARGEFILE): Possibly define.
2445 (_initialize_linux_nat, linux_proc_pending_signals)
2446 (add_line_to_sigset, linux_proc_xfer_memory)
2447 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2448 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2449 (struct linux_corefile_thread_data)
2450 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2451 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2452
d6b0e80f
AC
24532004-09-16 Andrew Cagney <cagney@gnu.org>
2454
2455 * lin-lwp.c: Delete file.
2456 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2457 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2458 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2459 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2460 (linux_nat_attach, detach_callback, linux_nat_detach)
2461 (resume_callback, resume_clear_callback, linux_nat_resume)
2462 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2463 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2464 (status_callback, running_callback, count_events_callback)
2465 (select_singlestep_lwp_callback, select_event_lwp_callback)
2466 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2467 (child_wait, stop_and_resume_callback, linux_nat_wait)
2468 (kill_callback, kill_wait_callback, linux_nat_kill)
2469 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2470 (linux_nat_xfer_memory, linux_nat_thread_alive)
2471 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2472 (_initialize_linux_nat): New functions.
2473 * Makefile.in: Update all dependencies.
2474 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2475 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2476 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2477 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2478 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2479 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2480 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2481 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2482 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2483 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2484 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2485 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2486 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2487
5a174d79
MK
24882004-09-27 Mark Kettenis <kettenis@gnu.org>
2489
2f604c28
MK
2490 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2491 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2492
5a174d79
MK
2493 * configure.in: Don't comment out NATDEPFILES in the generated
2494 Makefile if NAT_FILE is unset.
2495 * configure: Regenerate.
2496
b2ed1746
AC
24972004-09-27 Andrew Cagney <cagney@gnu.org>
2498
44cbf7b5
AC
2499 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2500 (insert_step_resume_breakpoint): Delete.
2501 (insert_step_resume_breakpoint_at_frame): New function.
2502 (insert_step_resume_breakpoint_at_sal): New function.
2503 (handle_inferior_event, step_into_function)
2504 (insert_step_resume_breakpoint): Simplify by using same.
2505
b2ed1746
AC
2506 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2507
3691b3be
MK
25082004-09-26 Mark Kettenis <kettenis@gnu.org>
2509
36f391e8
MK
2510 * fbsd-proc.c: Remove file.
2511 * Makefile.in (fbsd-proc.o): Remove dependency.
2512
771e236c
MK
2513 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2514 code together.
2515
3691b3be
MK
2516 * config/i386/nm-fbsd64.h: Remove file.
2517 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2518
6a5c78a3
MK
25192004-09-26 Mark Kettenis <kettenis@gnu.org>
2520
2521 * amd64-nat.h: Update copyright year.
2522 (amd64bsd_target): New prototype.
2523 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2524 (amd64bsd_target): New function.
2525 (amd64bsd_fetch_inferior_registers): Rename from
2526 fetch_inferior_registers. Make static.
2527 (amd64bsd_store_inferior_registers): Rename from
2528 store_inferior_registers. Make static.
2529 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2530 (_initialize_amd64fbsd_nat): Construct and add target vector.
2531 * amd64nbsd-nat.o: Include "target.h".
2532 (_initialize_amd64nbsd_nat): Construct and add target vector.
2533 * amd64obsd-nat.c: Include "target.h".
2534 (_initialize_amd64obsd_nat): Construct and add target vector.
2535 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2536 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2537 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2538 fbsd-nat.o.
2539 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2540 Remove infptrace.o and inftarg.o. Add inf-child.o and
2541 inf-ptrace.o.
2542 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2543 (amd64obsd-nat.o): Update dependencies.
2544
27acbe61
MK
25452004-09-25 Mark Kettenis <kettenis@gnu.org>
2546
509a5e7d
MK
2547 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2548 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2549 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2550 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2551 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2552
6e1e94ea
MK
2553 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2554 Inline attach call.
2555 (inf_ptrace_detach): Inline detach call.
2556
8b9cf735
MK
2557 * configure.in: Check for waddstr instead of mvwaddstr when
2558 searching for curses library. Check for wborder.
2559 * configure, config.in: Regenerate.
2560 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2561 available.
2562
27acbe61
MK
2563 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2564
b96ec7ac
AC
25652004-09-24 Robert Picco <Robert.Picco@hp.com>
2566
2567 Committed by Andrew Cagney.
2568 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2569 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2570 configuration.
2571 (fetch_register_using_p): Implement 'p' packet. Based on code by
2572 Fernando Nasser.
2573 (remote_fetch_registers): Call fetch_register_using_p.
2574 (init_all_packet_configs, show_remote_cmd)
2575 (_initialize_remote): Add p-packet.
2576
62ece330
MK
25772004-09-24 Mark Kettenis <kettenis@gnu.org>
2578
2579 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2580 instead of call_ptrace. Call wait directly instead of
2581 ptrace_wait.
2582 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2583 (inf_ptrace_wait): Inline ptrace_wait call.
2584
00937274
PH
25852004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2586
2587 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2588 rolled back instead.
2589
3f2c7a45
PH
25902004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2591
2592 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2593 the new argument order.
2594
b6fcb393
CV
25952004-09-23 Corinna Vinschen <vinschen@redhat.com>
2596
2597 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2598 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2599 (struct gdbarch_tdep): Remove.
2600 (struct xstormy16_frame_cache): New frame cache structure.
2601 (xstormy16_register_byte, xstormy16_register_raw_size)
2602 (xstormy16_reg_virtual_type, xstormy16_register_type)
2603 (xstormy16_push_arguments, xstormy16_push_return_address)
2604 (xstormy16_pop_frame, xstormy16_store_struct_return)
2605 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2606 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2607 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2608 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2609 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2610 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2611 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2612 (xstormy16_extract_return_value, xstormy16_store_return_value):
2613 Regcachify. Drop useless struct convention handling.
2614 (xstormy16_register_type, xstormy16_return_value)
2615 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2616 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2617 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2618 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2619 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2620 (xstormy16_unwind_dummy_id) : New functions.
2621 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2622 of xstormy16_scan_prologue.
2623 (xstormy16_frame_unwind): New frame_unwind structure.
2624 (xstormy16_frame_base): New frame_base structure.
2625 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2626 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2627
1285b746
MK
26282004-09-22 Mark Kettenis <kettenis@gnu.org>
2629
2630 * language.c (language_gdbarch_post_init): Fix off-by one error.
2631
1c379e20
DJ
26322004-09-21 Daniel Jacobowitz <dan@debian.org>
2633
2634 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2635 (struct dwarf2_offset_and_type): New.
2636 (set_die_type, reset_die_and_siblings_types, get_die_type)
2637 (offset_and_type_hash, offset_and_type_eq): New functions.
2638 (read_structure_type, read_enumeration_type, read_array_type)
2639 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2640 (read_tag_reference_type, read_tag_const_type)
2641 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2642 (read_typedef, read_base_type, read_subrange_type): Use
2643 set_die_type.
2644
ae038cb0
DJ
26452004-09-20 Daniel Jacobowitz <dan@debian.org>
2646
2647 * Makefile.in (dwarf2read.o): Update dependencies.
2648 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2649 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2650 and read_in_chain.
2651 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2652 mark, and has_form_ref_addr.
2653 (struct dwarf2_per_cu_data): New.
2654 (dwarf2_max_cache_age): New.
2655 (dwarf2_build_psymtabs_hard): Free cached compilation units
2656 after loading. Create and manage the list of compilation units.
2657 Remove unnecessary NULL initialization. Fix indentation.
2658 (psymtab_to_symtab_1): Initialize all of CU.
2659 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2660 (find_partial_die): Use dwarf2_find_containing_comp_unit
2661 and load_comp_unit.
2662 (free_stack_comp_unit): Update comments. Clear the per-cu
2663 pointer. Handle aging.
2664 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2665 (age_cached_comp_units, free_one_cached_comp_unit)
2666 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2667 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2668 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2669 (show_dwarf2_cmd): New.
2670 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2671 and "maint show dwarf2 max-cache-age".
2672 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2673 externs.
2674 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2675 global.
2676
987504bb
JJ
26772004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2678
2679 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2680 and dwarf2_cu struct pointer as arguments. Change function to use
2681 obstack if provided and use dwarf2_cu to determine language-specific
2682 separator.
2683 (partial_die_parent_scope): Change comment to include java. Use
2684 new version of typename_concat instead of obconcat.
2685 (partial_die_full_name): Use typename_concat.
2686 (read_namespace): Ditto.
2687 (read_enumeration_type): Use typename_concat instead of obconcat.
2688 (new_symbol): Ditto.
2689 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2690 (guess_structure_name): Ditto.
2691 (read_subroutine_type): Ditto.
2692 (read_structure_type): Ditto.
2693 (is_vtable_name): Add Java support.
2694 (determine_class_name): Switch to new typename_concat call.
2695 (determine_prefix): Switch to new typename_concat call.
2696 * jv-exp.y (FuncStart): New pattern.
2697 (MethodInvocation): Add support for simple function calls. Change
2698 warning message for other forms of inferior call currently not
2699 supported.
2700 * valarith.c (value_subscript): Treat an array with upper-bound
2701 of -1 as unknown size.
2702
d9c8471e
DJ
27032004-09-20 Daniel Jacobowitz <dan@debian.org>
2704
2705 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2706 (lookup_partial_symtab): Use symtab_to_fullname.
2707
d73f140a
JB
27082004-09-19 Jim Blandy <jimb@redhat.com>
2709
2710 * minsyms.c (lookup_minimal_symbol): Doc fix.
2711
adbef1f0
AC
27122004-09-20 Andrew Cagney <cagney@gnu.org>
2713
2714 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2715 CHILD_RESUME.
2716 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2717 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2718 KILL_INFERIOR.
2719 * infptrace.c: Update.
2720
d092d1a2
DJ
27212004-09-19 Daniel Jacobowitz <dan@debian.org>
2722
2723 * symtab.c (output_source_filename): Mark first argument as const.
2724 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2725 for "info sources" output.
2726
86d9e1d7
MK
27272004-09-20 Mark Kettenis <kettenis@gnu.org>
2728
2729 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2730 <machine/vmparam.h>.
2731 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2732 (register_u_addr): Remove prototype.
2733
9a6c8ef4
MK
27342004-09-19 Mark Kettenis <kettenis@gnu.org>
2735
9692934b
MK
2736 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2737 (i386bsd_fetch_inferior_registers): Rename from
2738 fetch_inferior_registers. Make static.
2739 (i386bsd_store_inferior_registers): Rename from
2740 store_inferior_registers. Make static.
2741 (i386bsd_target): New function.
2742 * i386bsd-nat.h: New file.
2743 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2744 "i386bsd-nat.h".
2745 (i386fbsd_resume): Rename from child_resume. Make static.
2746 (_initialize_i386fbsd_nat): Construct and add target vector.
2747 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2748 (_initialize_i386nbsd_nat): Construct and add target vector.
2749 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2750 Remove defines.
2751 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2752 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2753 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2754 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2755 (LOADLIBES): New variable.
2756 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2757 inf-ptrace.o. Remove inftarg.o.
2758 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2759 inf-ptrace.o. Remove inftarg.o.
2760 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2761 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2762 (LOADLIBES): New variable.
2763 * Makefile.in (i386bsd_nat_h): New variable.
2764 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2765 dependencies.
2766
3510d1f2
MK
2767 * sparc64nbsd-tdep.c: Include "objfiles.h".
2768 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2769 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2770 svr4_lp64_fetch_link_map_offsets.
2771 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2772 "nbsd-tdep.h".
2773 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2774 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2775 svr4_lp64_fetch_link_map_offsets.
2776 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2777 dependencies.
2778
578c1c03
MK
2779 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2780 * fbsd-nat.h: New file.
2781 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2782 (fbsd_nat_h): New variable.
2783 (fbsd-nat.o): New dependency.
2784
7a7b73b7
MK
2785 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2786 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2787
9a6c8ef4
MK
2788 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2789 comment.
2790
72d5681a
PH
27912004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2792
2793 * ada-exp.y (type_int): New function to add layer of abstraction
2794 around references to expression types.
2795 (type_long): Ditto.
2796 (type_long_long): Ditto.
2797 (type_float): Ditto.
2798 (type_double): Ditto.
2799 (type_long_double): Ditto.
2800 (type_char): Ditto.
2801 (type_system_address): Ditto.
2802 (simple_exp): Use type_* functions in place of builtin_*
2803 variables.
2804 (exp): Ditto.
2805 (write_var_from_name): Ditto.
2806 (write_object_renaming): Ditto.
2807 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2808 declaration.
2809 (build_ada_types): Remove, replacing with...
2810 (ada_language_arch_info): New function to initialize primitive
2811 type vector in language_arch_info.
2812 (ada_array_length): Remove use of builtin_type_ada_int.
2813 (value_pos_atr): Ditto.
2814 (ada_evaluate_subexp): Ditto.
2815 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2816 builtin_type_ada_long_long, builtin_type_ada_char,
2817 builtin_type_ada_float, builtin_type_ada_double,
2818 builtin_type_ada_long_double, builtin_type_ada_natural,
2819 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2820 (ada_builtin_types): Remove.
2821 (ada_language_defn): Remove entries for la_builtin_type_vector and
2822 string_char_type and use ada_language_arch_info.
2823 (_initialize_ada_language): Do type-vector initialization along
2824 the lines of c-lang.c.
2825 (ada_create_fundamental_type): Break up line.
2826 (ada_dump_symtab): Remove unused function.
2827 (enum ada_primitive_types): Define.
2828 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2829 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2830 builtin_type_ada_float, builtin_type_ada_double,
2831 builtin_type_ada_long_double, builtin_type_ada_natural,
2832 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2833 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2834 (processInt): Ditto.
2835 (processReal): Ditto.
2836 (name_lookup): Ditto.
2837 * ada-typeprint.c (print_range): Use builtin_type_int, not
2838 builtin_type_ada_int.
2839
4f0be353
MK
28402004-09-18 Mark Kettenis <kettenis@gnu.org>
2841
30b0e2d8
MK
2842 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2843
4f0be353
MK
2844 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2845 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2846 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2847 * configure.in: Improve checks for curses library by checking for
2848 mvwaddstr instead of initscr. Drop HP curses in favour of
2849 standard curses on HP-UX.
2850 * configure: Regenerated.
2851
72d5681a 28522004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
2853
2854 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2855 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2856 Minor formatting changes.
2857 (empty_array): Slight rewrite for formatting.
2858 (emit_char,parse,ada_language_defn,build_ada_types,
2859 ada_is_exception_sym, _initialize_ada_language): Move
2860 definitions around.
2861 (ada_dump_symtab): Remove unused definition.
2862 (ada_maybe_exception_partial_symbol): Remove unused definition.
2863
1c8c7407
AC
28642004-09-16 Andrew Cagney <cagney@gnu.org>
2865
7681f339
AC
2866 * inf-child.c: Include "gdb_string.h".
2867 (inf_child_core_file_to_sym_file): Delete.
2868 (inf_child_target): Set to_fetch_registers and to_store_registers.
2869 * inf-ptrace.c: Include "gdb_string.h".
2870 * Makefile.in: Update all dependencies.
2871
1c8c7407
AC
2872 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2873 problem.
2874
65596487
JB
28752004-09-14 Joel Brobecker <brobecker@gnat.com>
2876
2877 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2878 call to heuristic_proc_desc. Remove code that became redundant
2879 as a consequence.
2880 (read_next_frame_reg): Remove special case for SP_REGNUM.
2881 (set_reg_offset): Fix small typo.
2882 (reset_saved_regs): New procedure.
2883 (mips32_heuristic_proc_desc): No longer compute a fake
2884 procedure descriptor. Compute the full frame cache instead.
2885 Some minor comment reformatting.
2886
95575b2e
AC
28872004-09-14 Andrew Cagney <cagney@gnu.org>
2888
f200c492
AC
2889 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2890 maintainer.
2891
95575b2e
AC
2892 * thread-db.c (thread_db_new_objfile): Assume that there is a
2893 child process.
2894
69657671
JB
28952004-09-13 Jim Blandy <jimb@redhat.com>
2896
2897 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2898 so that its storage isn't referenced after its lifetime ends.
2899
6c4182dd
JB
2900 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2901 and never assigned to. Delete it, and the 'if (use_buffer)'
2902 clauses. Delete 'raw_buffer', since it is now unused.
2903
ee31a58d
AC
29042004-09-13 Andrew Cagney <cagney@gnu.org>
2905
2c0fc042
AC
2906 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2907 * configure: Re-generate.
2908 * nlm/Makefile.in (TAGS): Update.
2909 * Makefile.in (TAGS): Update.
2910 * config/vax/nbsd.mt (TM_FILE): Update.
2911 * config/sparc/vxworks.mt (TM_FILE): Update.
2912 * config/sparc/sol2.mt (TM_FILE): Update.
2913 * config/sparc/sol2-64.mt (TM_FILE): Update.
2914 * config/sparc/obsd64.mt (TM_FILE): Update.
2915 * config/sparc/obsd.mt (TM_FILE): Update.
2916 * config/sparc/nbsd64.mt (TM_FILE): Update.
2917 * config/sparc/nbsd.mt (TM_FILE): Update.
2918 * config/sparc/linux64.mt (TM_FILE): Update.
2919 * config/sparc/linux.mt (TM_FILE): Update.
2920 * config/sparc/fbsd.mt (TM_FILE): Update.
2921 * config/sh/wince.mt (TM_FILE): Update.
2922 * config/sh/nbsd.mt (TM_FILE): Update.
2923 * config/sh/linux.mt (TM_FILE): Update.
2924 * config/sh/embed.mt (TM_FILE): Update.
2925 * config/s390/s390.mt (TM_FILE): Update.
2926 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2927 * config/rs6000/rs6000.mt (TM_FILE): Update.
2928 * config/rs6000/aix4.mt (TM_FILE): Update.
2929 * config/powerpc/vxworks.mt (TM_FILE): Update.
2930 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2931 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2932 * config/powerpc/obsd.mt (TM_FILE): Update.
2933 * config/powerpc/nbsd.mt (TM_FILE): Update.
2934 * config/powerpc/linux.mt (TM_FILE): Update.
2935 * config/powerpc/aix.mt (TM_FILE): Update.
2936 * config/pa/obsd.mt (TM_FILE): Update.
2937 * config/pa/linux.mt (TM_FILE): Update.
2938 * config/pa/hppahpux.mt (TM_FILE): Update.
2939 * config/pa/hppa64.mt (TM_FILE): Update.
2940 * config/pa/hppa.mt (TM_FILE): Update.
2941 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2942 * config/mips/wince.mt (TM_FILE): Update.
2943 * config/mips/vxmips.mt (TM_FILE): Update.
2944 * config/mips/nbsd.mt (TM_FILE): Update.
2945 * config/mips/linux.mt (TM_FILE): Update.
2946 * config/mips/irix6.mt (TM_FILE): Update.
2947 * config/mips/irix5.mt (TM_FILE): Update.
2948 * config/mips/embed.mt (TM_FILE): Update.
2949 * config/m68k/vxworks68.mt (TM_FILE): Update.
2950 * config/m68k/st2000.mt (TM_FILE): Update.
2951 * config/m68k/os68k.mt (TM_FILE): Update.
2952 * config/m68k/obsd.mt (TM_FILE): Update.
2953 * config/m68k/nbsd.mt (TM_FILE): Update.
2954 * config/m68k/monitor.mt (TM_FILE): Update.
2955 * config/m68k/linux.mt (TM_FILE): Update.
2956 * config/m68k/cisco.mt (TM_FILE): Update.
2957 * config/ia64/linux.mt (TM_FILE): Update.
2958 * config/ia64/aix.mt (TM_FILE): Update.
2959 * config/ia64/ia64.mt (TM_FILE): Update.
2960 * config/i386/vxworks.mt (TM_FILE): Update.
2961 * config/i386/obsd64.mt (TM_FILE): Update.
2962 * config/i386/obsd.mt (TM_FILE): Update.
2963 * config/i386/nto.mt (TM_FILE): Update.
2964 * config/i386/nbsd64.mt (TM_FILE): Update.
2965 * config/i386/nbsd.mt (TM_FILE): Update.
2966 * config/i386/linux64.mt (TM_FILE): Update.
2967 * config/i386/linux.mt (TM_FILE): Update.
2968 * config/i386/i386sol2.mt (TM_FILE): Update.
2969 * config/i386/i386lynx.mt (TM_FILE): Update.
2970 * config/i386/fbsd64.mt (TM_FILE): Update.
2971 * config/i386/fbsd.mt (TM_FILE): Update.
2972 * config/i386/cygwin.mt (TM_FILE): Update.
2973 * config/h8300/h8300.mt (TM_FILE): Update.
2974 * config/frv/frv.mt (TM_FILE): Update.
2975 * config/cris/cris.mt (TM_FILE): Update.
2976 * config/arm/wince.mt (TM_FILE): Update.
2977 * config/arm/nbsd.mt (TM_FILE): Update.
2978 * config/arm/linux.mt (TM_FILE): Update.
2979 * config/arm/embed.mt (TM_FILE): Update.
2980 * config/alpha/nbsd.mt (TM_FILE): Update.
2981 * config/alpha/fbsd.mt (TM_FILE): Update.
2982 * config/alpha/alpha.mt (TM_FILE): Update.
2983 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2984 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2985
362646f5
AC
2986 Eliminate event_loop_p, always has the value 1.
2987 * defs.h (event_loop_p): Delete macro.
2988 * breakpoint.c (until_break_command): Simplify.
2989 * utils.c (prompt_for_continue): Simplify.
2990 * tracepoint.c (read_actions): Simplify.
2991 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2992 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2993 (set_prompt, init_main): Simplify.
2994 (init_signals, disconnect): Delete, unused.
2995 * remote.c (remote_async_resume)
2996 (extended_remote_async_create_inferior): Simplify.
2997 * mi/mi-interp.c (mi_input): Delete, unused.
2998 (mi_interpreter_resume, mi_command_loop): Simplify.
2999 * interps.c (current_interp_command_loop): Simplify.
3000 * infrun.c (proceed): Simplify.
3001 * infcmd.c (run_command, continue_command, step_1, jump_command)
3002 (until_command, advance_command, finish_command)
3003 (interrupt_target_command): Simplify.
3004 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
3005
ee31a58d
AC
3006 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3007 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3008 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3009 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3010 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3011 * mips-tdep.c (mips_dump_tdep): Do not print same.
3012
b7ffc4a8
AC
30132004-09-12 Andrew Cagney <cagney@gnu.org>
3014
2bfb72ee
AC
3015 * valprint.c (print_longest): Use fputs_filtered. Make "val"
3016 const.
3017 * Makefile.in (valprint.o): Delete explict rule.
3018
4f17c3c1
AC
3019 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
3020 reported by Dave Anderson.
3021
f810308b
AC
3022 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
3023
b7ffc4a8
AC
3024 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
3025
28b41c52
AC
30262004-09-12 Salvador E. Tropea <set@users.sf.net>
3027 Andrew Cagney <cagney@gnu.org>
3028
3029 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
3030 (mi_cmd_data_list_register_values)
3031 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
3032 the register number computation.
3033
5bf970f9
AC
30342004-09-12 Andrew Cagney <cagney@gnu.org>
3035
3036 * ppcnbsd-nat.c: Include "inf-ptrace.h".
3037 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
3038 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
3039 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
3040 target.
3041 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3042 inf-ptrace.o and inf-child.o.
3043 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3044 * Makefile.in: Update dependencies.
3045
0759e0bf
AC
30462004-09-11 Andrew Cagney <cagney@gnu.org>
3047
3048 * language.c (hex_string, hex_string_custom): Move from here ...
3049 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3050 (CELLSIZE): Increase to 50.
3051 * language.h (hex_string, hex_string_custom): Move from here ...
3052 * defs.h: ... to here.
3053 * Makefile.in: Update all dependencies.
3054
bb599908
PH
30552004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
3056
3057 * language.c (local_hex_format_custom): Remove.
3058 (local_hex_string): Rename to hex_string, use C format, and move to
3059 utils.c
3060 (local_hex_string_custom): Rename to hex_string_custom and change
3061 interface. Now uses C format. Move to utils.c
3062 (local_octal_format_custom): Remove.
3063 (local_decimal_format_custom): Remove.
3064 (unknown_language_defn): Remove language-specific number
3065 formatting entries.
3066 (auto_language_defn): Ditto.
3067 (local_language_defn): Ditto.
3068 * language.h (struct language_format_info): Delete declaration.
3069 (struct language_defn): Remove language_format_info fields
3070 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3071 (local_binary_format): Remove macro.
3072 (local_binary_format_prefix): Remove macro.
3073 (local_binary_format_specifier): Remove macro.
3074 (local_binary_format_suffix): Remove macro.
3075 (local_octal_format): Remove macro.
3076 (local_octal_format_prefix): Remove macro.
3077 (local_octal_format_specifier): Remove macro.
3078 (local_octal_format_suffix): Remove macro.
3079 (local_decimal_format): Remove macro.
3080 (local_decimal_format_prefix): Remove macro.
3081 (local_decimal_format_specifier): Remove macro.
3082 (local_decimal_format_suffix): Remove macro.
3083 (local_hex_format): Remove macro.
3084 (local_hex_format_prefix): Remove macro.
3085 (local_hex_format_specifier): Remove macro.
3086 (local_hex_format_suffix): Remove macro.
3087 (local_decimal_format_custom): Remove.
3088 (local_octal_format_custom): Remove.
3089 (local_hex_format_custom): Remove.
3090 (local_hex_string): Rename to hex_string and move to defs.h.
3091 (local_hex_string_custom): Rename to hex_string_custom, change
3092 interface, and move to defs.h.
3093 * utils.c: (int_string): New function.
3094 (hex_string): New function (from language.c).
3095 (hex_string_custom): New function (from language.c).
3096 (octal2str): New function.
3097 (decimal2str): Add width parameter.
3098 (paddr_u): Use new decimal2str interface.
3099 (paddr_d): Ditto.
3100 * defs.h (hex_string): Declare.
3101 (hex_string_custom): Declare.
3102 (int_string): Declare.
3103 * printcmd.c (print_scalar_formatted): Remove localized binary
3104 formatting.
3105 * valprint.c (print_longest): Use int_string.
3106 (print_floating): Use C hex format.
3107 (print_hex_chars): Ditto.
3108 (print_binary_chars): Remove language-specific formatting.
3109 (print_octal_chars): Use C octal format.
3110 (print_decimal_chars): Delocalize format.
3111 (print_decimal): Remove.
3112 * ada-lang.c (ada_language_defn): Remove language-specific number
3113 formatting entries.
3114 * p-lang.c (pascal_language_defn): Ditto.
3115 * c-lang.c (c_language_defn): Ditto.
3116 (cplus_language_defn): Ditto.
3117 (asm_language_defn): Ditto.
3118 (minimal_language_defn): Ditto.
3119 * f-lang.c (f_language_defn): Ditto.
3120 * jv-lang.c (java_language_defn): Ditto.
3121 * m2-lang.c (m2_language_defn): Ditto.
3122 * scm-lang.c (scm_language_defn): Ditto.
3123 * objc-lang.c (objc_language_defn): Ditto.
3124 * memattr.c (mem_info_command): Use renamed hex_string_custom with
3125 new interface.
3126 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3127 * ui-out.c (ui_out_field_core_addr): Ditto.
3128 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3129 * exec.c (print_section_info): Ditto.
3130 * i387-tdep.c (print_i387_status_word): Ditto.
3131 (print_i387_control_word): Ditto.
3132 (i387_print_float_info): Ditto.
3133 * maint.c (maint_print_section_info): Ditto.
3134 * solib.c (info_sharedlibrary_command): Ditto.
3135 * somsolib.c (som_sharedlibrary_info_command): Ditto.
3136 * symtab.c (print_msymbol_info): Ditto.
3137 * tracepoint.c (tracepoints_info): Ditto.
3138 * solib-frv.c (lm_base): Ditto.
3139 (frv_current_sos): Ditto.
3140 (enable_break2): Ditto.
3141 (enable_break): Ditto.
3142 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3143 (process_one_symbol): Ditto.
3144 * infcmd.c (program_info): Ditto.
3145 * mdebugread.c (parse_partial_symbols): Ditto.
3146 * symfile.c (add_symbol_file_command): Ditto.
3147 * cli/cli-cmds.c (edit_command): Ditto.
3148 (list_command): Ditto.
3149 * infcall.c (call_function_by_hand): Ditto.
3150 * remote-vx.c (vx_run_files_info): Ditto.
3151 (vx_wait): Ditto.
3152 (vx_attach): Ditto.
3153 (vx_detach): Ditto.
3154 (vx_kill): Ditto.
3155 * aix-thread.c (pdc_symbol_addrs): Ditto.
3156 (pdc_read_regs): Ditto.
3157 (pdc_write_regs): Ditto.
3158 (pdc_read_data): Ditto.
3159 (pdc_write_data): Ditto.
3160 * d10v-tdep.c (display_trace): Ditto.
3161 * rs6000-nat.c (find_toc_address): Ditto.
3162 * aix-thread.c: Don't include language.h.
3163 * buildsym.c: Ditto.
3164 * dbxread.c: Ditto.
3165 * mdebugread.c: Ditto.
3166 * rs6000-nat.c: Ditto.
3167 * buildsym.c (make_blockvector): Use renamed hex_string.
3168
33f2d567
JM
31692004-09-10 Jason Molenda (jmolenda@apple.com)
3170
3171 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3172 chars after 'if' or 'while' commands in user-defined commands.
3173
7b90c3f9
JB
31742004-09-08 Jim Blandy <jimb@redhat.com>
3175
3176 Fix bug reported and analyzed by Olivier Crete:
3177 * symfile.c (copy_section_addr_info): New function.
3178 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3179 original set of address arguments, instead of handwritten code
3180 that uses one length to allocate and a different length to
3181 initialize. Use make_cleanup_free_section_addr_info.
3182 * symfile.h (copy_section_addr_info): New declaration.
3183 * utils.c: #include "symfile.h".
3184 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3185 New functions.
3186 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3187 * Makefile.in (utils.o): Update dependencies.
3188
b26a6851
AC
31892004-09-08 Andrew Cagney <cagney@gnu.org>
3190
3191 * thread-db.c (keep_thread_db): Delete.
3192 (thread_db_new_objfile, thread_db_create_inferior)
3193 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3194
be24b061
MK
31952004-09-08 Mark Kettenis <kettenis@gnu.org>
3196
f6792ef4
MK
3197 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3198 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3199 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3200 (i386_frameless_signal_p): Remove prototype.
3201 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3202 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3203 I386_SSE_NUM_REGS.
3204 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3205 instead of FP0_REGNUM.
3206 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3207 of FP0_REGNUM and FPC_REGNUM.
3208
eeefdaa7
MK
3209 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3210 (sunos_solib_create_inferior_hook): Don't call
3211 sunos_relocate_main_executable.
3212
be24b061
MK
3213 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3214 solib_svr4_fetch_link_map_offsets to
3215 svr4_ilp32_fetch_link_map_offsets.
3216 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3217 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3218 svr4_ilp32_fetch_link_map_offsets.
3219 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3220
7c679d16
JB
32212004-09-07 Jim Blandy <jimb@redhat.com>
3222
3223 * frame.h (frame_register): Doc fix.
3224
1f04aa62
AC
32252004-09-07 Andrew Cagney <cagney@gnu.org>
3226
3227 * vx-share/wait.h: Delete #ifdef USG.
3228 * utils.c (request_quit): Ditto.
3229 * tui/tui.c (tui_reset): Ditto.
3230 * remote.c: Ditto.
3231 * remote-sds.c: Ditto.
3232 * remote-rdi.c: Ditto.
3233 * mdebugread.c: Ditto.
3234 * m68klinux-nat.c: Ditto.
3235 * infttrace.c: Ditto.
3236 * infptrace.c: Ditto.
3237 * i386v-nat.c: Ditto.
3238 * exec.c: Ditto.
3239 * dbxread.c: Ditto.
3240 * core-aout.c: Ditto.
3241
90edbfbc
JB
32422004-09-05 Joel Brobecker <brobecker@gnat.com>
3243
3244 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3245 heuristic_proc_desc.
3246 (mips_insn32_frame_cache): Likewise.
3247
01f4bf2b
JB
32482004-09-04 Joel Brobecker <brobecker@gnat.com>
3249
3250 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3251 left behind by error.
3252
8511a048
JB
32532004-09-04 Joel Brobecker <brobecker@gnat.com>
3254
3255 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3256 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3257
649dfe9f
JB
32582004-09-04 Joel Brobecker <brobecker@gnat.com>
3259
3260 * config/rs6000/xm-aix4.h: Remove this file.
3261 * config/rs6000/aix4.mh (XM_FILE): Delete.
3262
6e50f889
JB
32632004-09-04 Joel Brobecker <brobecker@gnat.com>
3264
3265 * config/rs6000/xm-rs6000.h: Remove this file.
3266 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3267
b8c4aece
AC
32682004-09-03 Andrew Cagney <cagney@gnu.org>
3269
fb603883
AC
3270 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3271 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3272 only use.
3273
c9343fd1
AC
3274 * mips-tdep.c (temp_saved_regs): Delete.
3275 (set_reg_offset): Replace saved_regs parameter with this_cache.
3276 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3277 (mips32_heuristic_proc_desc): Add this_cache parameter.
3278 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3279 (after_prologue): Pass a NULL this_cache.
3280
9733cfe1
AC
3281 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3282 non-kernel trap prologues.
3283
0d5febcc
AC
3284 * mips-tdep.c (find_proc_desc): Delete function.
3285 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3286 simplify.
3287 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3288 mips_insn32_frame_cache.
3289
9733cfe1 3290 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
3291 Simplify as NEXT_FRAME is NULL.
3292 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3293
177f84a3
AC
3294 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3295 local variable.
3296 (mips_skip_prologue): Update.
3297
465f7520
AC
3298 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3299 "cur_frame" parameter.
177f84a3
AC
3300 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3301 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 3302
e38b8658
AC
3303 * config/vax/nm-obsd.h: Delete file.
3304 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3305 * config/vax/nm-nbsd.h: Delete file.
3306 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3307 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3308 * config/sh/nm-nbsd.h: Delete file.
3309 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3310 * config/rs6000/nm-rs6000ly.h: Delete file.
3311 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3312 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3313 * config/powerpc/nm-obsd.h: Delete file.
3314 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3315 * config/powerpc/nm-nbsd.h: Delete file.
3316 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3317 * config/pa/nm-obsd.h: Delete file.
3318 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3319 * config/mips/nm-nbsd.h: Delete file.
3320 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3321 * config/m88k/nm-obsd.h: Delete file.
3322 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3323 * config/m68k/nm-nbsd.h: Delete file.
3324 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3325 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3326 * config/i386/nm-nbsd.h: Delete file.
3327 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3328 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3329 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3330 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3331 * config/i386/nm-i386lynx.h: Delete file.
3332 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3333 * config/arm/nm-nbsd.h: Delete file.
3334 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3335 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3336
be1ed680
AC
3337 * config/i386/tm-fbsd.h: Delete file.
3338 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3339 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3340
4b392b26
AC
3341 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3342 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3343 * config/rs6000/aix4.mt (TM_FILE): Set to
3344 config/rs6000/tm-rs6000.h.
3345 * config/powerpc/tm-ppc-aix.h: Delete file.
3346 * config/powerpc/aix.mt (TM_FILE): Set to
3347 config/rs6000/tm-rs6000.h.
3348 * config/m68k/tm-linux.h: Delete file.
3349 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3350 * config/i386/tm-linux64.h: Delete file.
3351 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3352 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3353
f3219c75
AC
3354 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3355 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3356 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3357 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3358 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3359 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3360 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3361 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3362 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3363
b8c4aece
AC
3364 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3365 gdb_host_cpu.
3366
8ac2e020
JB
33672004-09-02 Joel Brobecker <brobecker@gnat.com>
3368
3369 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3370 Minor reformatting. Some code factoring.
3371
c185a355
AC
33722004-09-02 Andrew Cagney <cagney@gnu.org>
3373
63f22f0d
AC
3374 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3375 * config/vax/tm-nbsd.h: Delete file.
3376 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3377 * config/sparc/tm-vxworks.h: Delete file.
3378 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3379 * config/sparc/tm-nbsd.h: Delete file.
3380 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3381 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3382 * config/sparc/tm-linux.h: Delete file.
3383 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3384 * config/s390/tm-linux.h: Delete file.
3385 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3386 * config/pa/tm-bsd.h: Delete file.
3387 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3388 * config/m68k/tm-obsd.h: Delete file.
3389 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3390 * config/m68k/tm-nbsd.h: Delete file.
3391 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3392 * config/i386/tm-vxworks.h: Delete file.
3393 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3394 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3395 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3396 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3397 * config/i386/tm-nbsd.h: Delete file.
3398 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3399 * config/i386/tm-i386lynx.h: Delete file.
3400 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3401 * config/cris/tm-cris.h: Delete file.
3402
0f475e27
AC
3403 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3404 * configure: Re-generate.
3405 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3406 * config/arm/tm-nbsd.h: Delete file.
3407
458ed000
AC
3408 * config/powerpc/tm-ppcle-sim.h: Delete.
3409 * config/powerpc/tm-ppcle-eabi.h: Delete.
3410 * config/powerpc/tm-nbsd.h: Delete.
3411 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3412 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3413 tm-ppcle-eabi.h.
3414
f14375f3
AC
3415 * config/i386/nto.mh (NAT_FILE): Delete.
3416 * config/i386/nm-nto.h: Delete.
3417
c34d127c
AC
3418 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3419 * config/m68k/tm-os68k.h: Ditto.
3420 * config/m68k/tm-monitor.h: Ditto.
3421 * config/m68k/tm-cisco.h: Ditto.
3422 * config/m68k/st2000.mt (TM_FILE): Delete.
3423 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3424 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3425 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3426 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3427
f7f0fe03
AC
3428 * config/m68k/tm-st2000.h: Delete.
3429 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3430 * config/sparc/fbsd.mt (TM_FILE): Delete.
3431 * config/sparc/tm-fbsd.h: Delete.
3432
a2558533
AC
3433 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3434 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3435 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3436
b78960be
AC
3437 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3438 GDB_TM_FILE and GDB_XM_FILE.
3439 * gdbarch.c: Re-generate.
3440 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3441 quotes in macro definition.
3442 * configure.in: Re-generate.
3443
4d60522e
AC
3444 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3445 validating architecture methods.
3446 * gdbarch.c: Re-generate.
3447
5010d38b
AC
3448 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3449 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3450 GDB_MULTI_ARCH_PARTIAL.
3451 * gdbarch.h: Re-generate.
3452
c185a355
AC
3453 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3454 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3455 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3456 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3457 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3458 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3459 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3460 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3461 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3462 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3463 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3464 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3465
14aaa6ab
AC
34662004-09-01 Andrew Cagney <cagney@gnu.org>
3467
3468 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3469 and main_func_highpc.
3470 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3471 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3472 * nlmread.c (nlm_symfile_read): Update.
3473
a343eb3c
JB
34742004-09-01 Joel Brobecker <brobecker@gnat.com>
3475
3476 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3477 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3478 (find_proc_desc): Remove dead code.
3479
4fbbbd07
JB
34802004-09-01 Joel Brobecker <brobecker@gnat.com>
3481
3482 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3483
84acb35a
JJ
34842004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3485
3486 * observer.sh: Add struct so_list declaration.
3487 * Makefile.in: Add dependencies on observer.h for solib.c and
3488 breakpoint.c.
3489 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3490 function.
3491 (_initialize_breakpoint): Register
3492 disable_breakpoints_in_unloaded_shlib as an observer of the
3493 "solib unloaded" observation event.
3494 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3495 call decode_line_1 so unfound breakpoint errors are silent.
3496 * solib.c (update_solib_list): When a solib is discovered to have
3497 been unloaded by the program, notify all observers of the
3498 "solib unloaded" observation event.
3499
c8cd9f6c
AC
35002004-09-01 Andrew Cagney <cagney@gnu.org>
3501
3502 * frame.c: Include "objfiles.h".
3503 (inside_main_func): New function.
3504 (get_prev_frame): Use new inside_main_func.
3505 * Makefile.in (frame.o): Update dependencies.
3506 * defs.h (inside_main_func): Delete declaration.
3507 * blockframe.c (inside_main_func): Delete function.
3508
1168df01
JB
35092004-08-31 Jim Blandy <jimb@redhat.com>
3510
3511 * dwarf2read.c (is_vtable_name): New function, based on logic from
3512 read_structure_type, but passing the correct length to strncmp,
3513 and using 'sizeof' instead of 'strlen'.
3514 (read_structure_type): Call it.
3515
f14f9744
JB
35162004-08-31 Joel Brobecker <brobecker@gnat.com>
3517
3518 * config/powerpc/aix.mh: Add comment.
3519
386d4518
PG
35202004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3521
3522 * MAINTAINERS: Add self to Write-After-Approval.
3523
7d97d5e2
MI
35242004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3525
3526 * MAINTAINERS: Add self to Write-After-Approval.
3527
68f53502
AC
35282004-08-30 Andrew Cagney <cagney@gnu.org>
3529
3530 Fix PR breakpoints/1757.
3531 * infrun.c (struct execution_control_state): Replace
3532 remove_breakpoints_on_following_step with
3533 step_after_step_resume_breakpoint.
3534 (init_execution_control_state): Update.
3535 (handle_inferior_event): For signals, when stepping off a
3536 breakpoint, set step_after_step_resume_breakpoint. When
3537 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3538 (keep_going): Delete code handling
3539 remove_breakpoints_on_following_step.
3540
7ca2d3a3
DL
35412004-08-29 David Lecomber <david@streamline-computing.com>
3542
3543 Fix PR gdb/648
3544 * language.h (enum array_ordering): New enum.
3545 * language.h (struct language_defn): New la_array_ordering
3546 attribute.
3547 * language.c (unknown_language_defn, auto_language_defn)
3548 (local_language_defn): Ditto.
3549 * ada-lang.c (ada_language_defn): Ditto.
3550 * c-lang.c (c_language_defn, cplus_language_defn)
3551 (asm_language_defn, minimal_language_defn): Ditto.
3552 * f-lang.c (f_language_defn): Ditto.
3553 * jv-lang.c (java_language_defn): Ditto.
3554 * m2-lang.c (f_language_defn): Ditto.
3555 * objc-lang.c (objc_language_defn): Ditto.
3556 * p-lang.c (pascal_language_defn): Ditto.
3557 * scm-lang.c (scm_language_defn): Ditto.
3558 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3559 oriented large to small in type structure.
3560 * dwarf2read.c (read_array_order): New function.
3561 (read_array_type): Use read_array_order to check row/column
3562 major ordering.
3563
e354df01
NW
35642004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3565
3566 * target.c (target_resize_to_sections): Check
3567 current_target.to_sections for an old value when updating.
3568
9185ddce
JB
35692004-08-27 Joel Brobecker <brobecker@gnat.com>
3570
3571 * procfs.c (dbx_link_bpt_addr): New static global variable.
3572 (dbx_link_shadow_contents): New static global variable.
3573 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3574 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3575 if we just hit it.
3576 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3577 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3578 from run to run.
3579 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3580 after the inferior has been forked.
3581 (remove_dbx_link_breakpoint): New function.
3582 (dbx_link_addr): New function.
3583 (insert_dbx_link_bpt_in_file): New function.
3584 (insert_dbx_link_bpt_in_region): New function.
3585 (insert_dbx_link_breakpoint): New function.
3586 (proc_trace_syscalls_1): New function, extracted from
3587 proc_trace_syscalls.
3588 (proc_trace_syscalls): Replace extract code by call to
3589 proc_trace_syscalls_1.
3590 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3591 is no longer valid.
3592
e6742ace
JB
35932004-08-25 Jim Blandy <jimb@redhat.com>
3594
3595 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3596
8fb3e588
AC
35972004-08-25 Andrew Cagney <cagney@gnu.org>
3598
629a41ee
AC
3599 * infrun.c (struct execution_control_state): Delete field
3600 "stepping_through_sigtramp".
3601 (init_execution_control_state): Do not set same.
3602 (context_switch): Do not pass same to save_infrun_state and
3603 load_infrun_state.
3604 * gdbthread.h (struct thread_info): Delete field
3605 stepping_through_sigtramp.
3606 (save_infrun_state, load_infrun_state): Delete parameter
3607 stepping_through_sigtramp.
3608 * thread.c (load_infrun_state, save_infrun_state): Update.
3609
8fb3e588
AC
3610 * infrun.c: Re-indent. Move expression operators to the beginning
3611 of the line. Remove long disabled #if 0 code.
3612
49c54768
AC
36132004-08-24 Andrew Cagney <cagney@gnu.org>
3614
3615 * doublest.h (floatformat_ieee_quad): Rename
3616 floatformat_ia64_quad.
3617 * doublest.c (floatformat_ieee_quad): Rename
3618 floatformat_ia64_quad.
3619 (_initialize_doublest): Update.
3620
5ca2e327
JB
36212004-08-24 Jim Blandy <jimb@redhat.com>
3622
87808bd6
JB
3623 * dwarf2expr.h (struct dwarf_expr_context): New members
3624 'num_pieces' and 'pieces', for returning the result of an
3625 expression that uses DW_OP_piece.
3626 (struct dwarf_expr_piece): New struct type.
3627 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3628 pieces.
3629 (free_dwarf_expr_context): Free pieces, if any.
3630 (add_piece): New function.
3631 (execute_stack_op): Implement DW_OP_piece.
3632 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3633 expression is a list of pieces, print an error message.
3634 (dwarf2_loc_desc_needs_frame): If the expression yields
3635 pieces, and any piece is in a register, then we need a frame.
3636
5ca2e327
JB
3637 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3638 the stack until we've decided what sort of result the evaluation
3639 has produced. Use separate variables, with more specific names.
3640
2afeb6b8
RE
36412004-08-23 Richard Earnshaw <rearnsha@arm.com>
3642
3643 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3644 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3645 (arm_netbsd_init_abi_common): Register them.
3646
5885ab49
MK
36472004-08-22 Mark Kettenis <kettenis@gnu.org>
3648
fda820a6
MK
3649 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3650
1c5bf419
MK
3651 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3652 safe_frame_unwind_memory instead of target_read_memory.
3653
8cbba7c8
MK
3654 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3655 Reorder includes.
3656 (fetch_register, store_register): Remove prototypes.
3657 (child_resume): Reorganize code and comments such that it is
3658 grouped a bit more logically.
3659 (attach): Explicitly compare errno against 0.
3660 (detach): Likewise. Use perror_with_name instead of
3661 print_sys_errmsg.
3662 * Makefile.in (infptrace.o): Update dependencies.
3663
c5fa4245
MK
3664 * ia64-linux-nat.c: Update copyright year.
3665 (fetch_debug_register, store_debug_register)
3666 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3667 PTRACE_TYPE_ARG3.
3668 * config/ia64/nm-linux.h: Update copyright year.
3669 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3670
387c058c
MK
3671 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3672 from CORE_ADDR to struct frame_info *. Use
3673 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3674 (amd64_linux_sigtramp_p): Adjust for changed signature of
3675 and64_linux_sigtramp_start
3676
277215a6
MK
3677 * gdb_ptrace.h: GNU/Linux.
3678
25f6178e
MK
3679 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3680 Remove defines.
3681
652fc137
MK
3682 * infptrace.c: Include "gdb_assert.h".
3683 (PTRACE_XFER_TYPE): Remove define.
3684 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3685 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3686 Tweak comment.
3687 (fetch_inferior_registers, store_inferior_registers): Remove
3688 redundant culry braces. Tweak comment. s/regno/regnum.
3689 * Makefile.in (infptrace.o): Update dependencies.
3690
5885ab49
MK
3691 * configure.in: Change test for return type of ptrace to default
3692 to `long' instead of `int'.
3693 * configure: Regenerate.
3694
11003ae3
MK
36952004-08-21 Mark Kettenis <kettenis@gnu.org>
3696
6b95110c
MK
3697 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3698
bcb3dc3d
MK
3699 * configure.in: Check for ttrace function.
3700 * configure, config.in: Regenerate.
3701
11003ae3
MK
3702 * gdb_ptrace.h: New file.
3703 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3704 <sys/ptrace.h>.
3705 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3706 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3707 (attach): Don't define PT_ATTACH.
3708 (detach): Don't define PT_DETACH.
3709 * Makefile.in (gdb_ptrace_h): New variable.
3710 (infptrace.o): Update dependencies.
3711
f8707cac
MK
37122004-08-16 Mark Kettenis <kettenis@gnu.org>
3713
3714 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3715 instead of `int' if not already defined.
3716 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3717 PTRACE_TYPE_ARG3.
3718 * infptrace.c (call_ptrace): Revert change that replaced
3719 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3720
655c5466
MK
37212004-08-15 Mark Kettenis <kettenis@gnu.org>
3722
156e5ba7
MK
3723 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3724 Remove defines.
3725
de9a9e51
MK
3726 * linux-nat.c (kill_inferior): Add missing third and fourth
3727 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3728
88800403
MK
3729 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3730 PTRACE_TYPE_RET.
3731
849a1d7c
MK
3732 * proc-why.c (proc_prettyfprint_why): Fix format string.
3733
61ad16d1
MK
3734 * solib-osf.c (osf_current_sos): Remove unsused label.
3735
a6ed5501
MK
3736 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3737 curses headers.
3738 * configure, config.in: Regenerate.
3739 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3740 <ncurses/ncurses.h>.
3741
016ddeca
MK
3742 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3743 * config/nm-nbsd.h: Update copyright year.
3744 (PTRACE_ARG3_TYPE): Remove define.
3745
49ec097f
MK
3746 * sparc-nat.c (fetch_inferior_registers)
3747 (store_inferior_registers, sparc_xfer_wcookie):
3748 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3749
9f8e0089
MK
3750 * alphabsd-nat.c (fetch_inferior_registers):
3751 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3752 PTRACE_TYPE_ARG3.
3753 * amd64bsd-nat.c (fetch_inferior_registers)
3754 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3755 PTRACE_TYPE_ARG3.
3756 * armnbsd-nat.c: Update copyright year.
3757 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3758 (store_register, store_regs, store_fp_register, store_fp_regs):
3759 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3760 * hppabsd-nat.c (fetch_inferior_registers)
3761 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3762 PTRACE_TYPE_ARG3.
3763 * i386bsd-nat.c (fetch_inferior_registers)
3764 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3765 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3766 * m68kbsd-nat.c (fetch_inferior_registers)
3767 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3768 PTRACE_TYPE_ARG3.
3769 * m88kbsd-nat.c (fetch_inferior_registers)
3770 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3771 PTRACE_TYPE_ARG3.
3772 * mipsnbsd-nat.c: Update copyright year.
3773 (fetch_inferior_registers, store_inferior_registers):
3774 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3775 * ns32knbsd-nat.c: Update copyright year.
3776 (fetch_inferior_registers, store_inferior_registers):
3777 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3778 * ppcnbsd-nat.c (fetch_inferior_registers):
3779 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3780 PTRACE_TYPE_ARG3.
3781 * ppcobsd-nat.c (fetch_inferior_registers):
3782 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3783 PTRACE_TYPE_ARG3.
3784 * shnbsd-nat.c: Update copyright year.
3785 (fetch_inferior_registers, store_inferior_registers):
3786 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3787 * vaxbsd-nat.c (fetch_inferior_registers)
3788 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3789 PTRACE_TYPE_ARG3.
3790
655c5466
MK
3791 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3792 PTRACE_TYPE_ARG3.
3793 * infptrace.c (call_ptrace, child_resume, attach, detach)
3794 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3795 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3796 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3797 PTRACE_TYPE_ARG3.
3798
c40d0d10
MK
37992004-08-14 Mark Kettenis <kettenis@gnu.org>
3800
5cb0ff31
MK
3801 * defs.h: Remove out-of-date comment.
3802 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3803 [!GETENV_PROVIDED] (getenv): Remove prototype.
3804
5f0f34cb
MK
3805 * standalone.c: Remove file.
3806 * Makefile.in (standalone.o): Remove dependency.
3807
7532965f
MK
3808 * i386-linux-nat.c (dummy_sse_values): Remove function and
3809 prototype.
3810 (i386_linux_dr_get): Fix typo in comment.
3811 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3812
1bdc6c53
MK
3813 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3814
c40d0d10
MK
3815 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3816 from declaration.
3817 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3818 from definition.
3819
64218d3e
MK
38202004-08-13 Mark Kettenis <kettenis@gnu.org>
3821
3822 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3823 parenthesis in definition.
3824 * configure: Regenerated.
3825
926c94e7
MC
38262004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3827
3828 * PROBLEMS: Mention build/1411.
3829
69489883
NN
38302004-08-09 Robert Millan <robertmh@gnu.org>
3831
3832 Committed by Nathanael Nerode.
3833 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3834 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3835
ebb7c577
AC
38362004-08-12 Andrew Cagney <cagney@gnu.org>
3837
3838 * NEWS: Mention fixes in GDB 6.2.1.
3839 * PROBLEMS: Remove mention of mips-irix.
3840
232d697c
JB
38412004-08-11 Joel Brobecker <brobecker@gnat.com>
3842
3843 * config/powerpc/xm-aix.h: Delete.
3844 * config/powerpc/aix.mh (MH_FILE): Remove.
3845 * config/powerpc/aix432.mh (MH_FILE): Remove.
3846
72f4e82b
JB
38472004-08-11 Joel Brobecker <brobecker@gnat.com>
3848
3849 * config/powerpc/aix.mh: Remove obsolete comment.
3850 * config/powerpc/aix432.mh: Likewise.
3851
0687ccb2
JB
38522004-08-11 Joel Brobecker <brobecker@gnat.com>
3853
3854 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3855
dbf3ada7
JB
38562004-08-11 Joel Brobecker <brobecker@gnat.com>
3857
e08e1886
JB
3858 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3859 this file is now empty.
3860 * config/xm-aix4.h: Remove, this file is no longer included
3861 anywhere.
3862
38632004-08-11 Joel Brobecker <brobecker@gnat.com>
3864
3865 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3866 that file is now empty.
dbf3ada7
JB
3867 (termdef): Remove prototype, function no longer used.
3868
4c525ef6
JB
38692004-08-11 Joel Brobecker <brobecker@gnat.com>
3870
3871 * doc/gdbint.texinfo (Host Definition): Remove documentation
3872 for USE_O_NOCTTY, no longer used.
3873 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3874 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3875
82e0b968
JB
38762004-08-11 Joel Brobecker <brobecker@gnat.com>
3877
3878 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3879 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3880 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3881
f2acbe1c
MK
38822004-08-11 Mark Kettenis <kettenis@gnu.org>
3883
daa98270
MK
3884 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3885 instead of FIVE_ARG_PTRACE.
3886
f2acbe1c
MK
3887 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3888 (new_tty): Use O_NOCTTY unconditionally.
3889
cc377e6b
MK
38902004-08-10 Mark Kettenis <kettenis@gnu.org>
3891
3892 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3893 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3894 fflush on stdout.
3895
3bcc18fa
JB
38962004-08-10 Joel Brobecker <brobecker@gnat.com>
3897
3898 * xcoff_symfile_finish: Replace last call to xmfree by call
3899 to xfree.
3900
7936743b
AC
39012004-08-10 Andrew Cagney <cagney@gnu.org>
3902
cc503c8a
AC
3903 * main.c (captured_main): Delete call to init_malloc.
3904 * defs.h (init_malloc): Delete declaration.
3905 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3906 (init_malloc): Delete functions.
3907
2dc74dc1
AC
3908 * defs.h (xmfree): Delete.
3909 * utils.c (xmfree): Delete function.
3910 (xfree): Inline calls to xmfree and mfree.
3911 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3912 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3913 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3914 * somread.c (som_symfile_finish): Ditto.
3915 * objfiles.c (allocate_objfile, free_objfile):
3916 * nlmread.c (nlm_symfile_finish): Ditto.
3917 * hpread.c (hpread_symfile_finish): Ditto.
3918 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3919 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3920 * coffread.c (coff_symfile_finish): Ditto.
3921
aa2ee5f6
AC
3922 * defs.h (xmcalloc): Delete declaration.
3923 * utils.c (xmcalloc): Delete.
3924 (xcalloc): Inline calls to xmcalloc and mcalloc.
3925 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3926 xcalloc and xfree.
3927 * symtab.c (create_demangled_names_hash): Ditto.
3928
0efffb96
AC
3929 * defs.h (xmrealloc): Delete.
3930 * utils.c (xmrealloc): Delete.
3931 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3932 * symmisc.c (extend_psymbol_list): Use xrealloc.
3933 * source.c (find_source_lines): Ditto.
3934 * hpread.c (hpread_lookup_type): Ditto.
3935 * dbxread.c (add_bincl_to_list): Ditto.
3936
7936743b
AC
3937 * utils.c (xmmalloc): Delete.
3938 (xmalloc): Inline xmmalloc and mmalloc calls.
3939 (msavestring): Use xmalloc.
3940 * defs.h (xmmalloc): Delete declaration.
3941 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3942 xmmalloc.
3943 * symmisc.c (extend_psymbol_list): Ditto.
3944 * symfile.c (init_psymbol_list): Ditto.
3945 * source.c (find_source_lines): Ditto.
3946 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3947 * elfread.c (elf_symtab_read): Ditto.
3948 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3949 * coffread.c (coff_symfile_init): Ditto.
3950
252ab814
DC
39512004-08-10 David Carlton <carlton@bactrian.org>
3952
3953 * MAINTAINERS: Remove David Carlton from c++ testsuite
3954 maintainers.
3955
8f5ba92b
JG
39562004-08-10 Jerome Guitton <guitton@gnat.com>
3957
3958 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3959 print a line feed before the prompt.
3960
21749010
MK
39612004-08-10 Mark Kettenis <kettenis@gnu.org>
3962
3963 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3964
1f011ce2
JB
39652004-08-09 Joel Brobecker <brobecker@gnat.com>
3966
3967 General cleanup of the AIX xm include file:
3968 * config/xm-aix4.h (fd_set): Remove undefine.
3969 Remove include of <sys/select.h>.
3970 (HAVE_TERMIO): Remove define.
3971 (USG): Likewise.
3972 (NULL): Remove redefine.
3973 (alloca): Remove #pragma.
3974 (vfork): Remove define.
3975 (termdef): Remove.
3976 (SIGWINCH_HANDLER): Remove.
3977 (SIGWINCH_HANDLER_BODY): Remove.
3978
cf4e7692
MK
39792004-08-09 Mark Kettenis <kettenis@gnu.org>
3980
3981 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3982 GDB_OSABI_OPENBSD_ELF.
3983
ac5754fa
MK
39842004-08-07 Robert Millan <robertmh@gnu.org>
3985
3986 * bsd-kvm.c: Check for nlist.h before including it.
3987
086ec9eb
MK
39882004-08-09 Mark Kettenis <kettenis@gnu.org>
3989
bbe06c74
MK
3990 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3991 sigcontext' offset consistency checks for ancient BSD.
3992
3aa7b3b3
MK
3993 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3994
086ec9eb
MK
3995 * configure.in: Check for <sys/types.h>. Check return and
3996 argument types of ptrace.
3997 * configure, config.in: Regenerate.
3998
09991fa0
JB
39992004-08-09 Jim Blandy <jimb@redhat.com>
4000
4001 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
4002 rs6000_register_sim_regno): Doc fixes.
4003
fed7ba43
JB
40042004-08-08 Joel Brobecker <brobecker@gnat.com>
4005
4006 * mips-tdep.c: Include "floatformat.h".
4007 (n32n64_floatformat_always_valid): New function.
4008 (floatformat_n32n64_long_double_big): New constant.
4009 (mips_gdbarch_init): Set size and format of long double
4010 for N32 and N64 ABIs.
4011 * Makefile.in (mips-tdep.o): Update dependencies.
4012
456fcf94
AC
40132004-08-08 Andrew Cagney <cagney@gnu.org>
4014
2f9b146e
AC
4015 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
4016 print. Improve script's error messages.
4017 * gdbarch.h: Re-generate.
4018
456fcf94
AC
4019 * gdbarch.sh (pformat): New function.
4020 (float_format, double_format, long_double_format): List with bit
4021 members. Use pformat when printing.
4022 * gdbarch.c, gdbarch.h: Re-generate.
4023
69e9e646
NW
40242004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
4025
4026 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
4027 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
4028 (ppcnbsd_supply_pcb): New function.
4029 (_initialize_ppcnbsd_nat): New prototype and function.
4030 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4031 (LOADLIBES): New variable.
4032 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
4033
5ef2d0aa
AC
40342004-08-08 Andrew Cagney <cagney@gnu.org>
4035
4036 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
4037 (builtin_type_ieee_double, builtin_type_ia64_quad)
4038 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
4039 BE/LE floating-point types.
4040 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
4041 (builtin_type_ieee_double, builtin_type_ia64_quad)
4042 (builtin_type_ia64_spill): Declare.
4043 * doublest.c (_initialize_doublest, floatformat_ieee_single)
4044 (floatformat_ieee_double, floatformat_arm_ext)
4045 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4046 of LE/BE floatformats.
4047 * doublest.h: (struct floatformat, floatformat_ieee_single)
4048 (floatformat_ieee_double, floatformat_arm_ext)
4049 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4050
5c7f2947
MK
40512004-08-08 Mark Kettenis <kettenis@gnu.org>
4052
ecac404d
MK
4053 * i386gnu-nat.c (gnu_store_registers): Fix typo.
4054
9b8607ce
MK
4055 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4056 instead of regcache_raw_supply when storing the registers.
4057
f6052080
MK
4058 * i386gnu-nat.c: Update copyright year.
4059 (gnu_store_registers): Don't use deprecated_registers and
4060 deprecated_registers_valid. Use regcache_valid_p and
4061 regcache_raw_supply instead.
4062
17777823
MK
4063 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4064 frame_pc_unwind.
4065
5240ceac
MK
4066 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4067 variables. Incapitalized "process".
4068
5c7f2947
MK
4069 * configure.in: Add cursesX to the list of possible curses libs.
4070 Add cursesX.h to the list of possible curses headers.
4071 * configure, config.in: Regenerate.
4072
da7d81e3
NW
40732004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4074
4075 * configure.in: Test for struct lwp in <sys/lwp.h>.
4076 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4077 the offset of l_addr in struct lwp.
4078
7f245d65
NW
40792004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4080
4081 * bsd-kvm.c: Include "gdbcore.h"
4082 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4083
47b3f456
AC
40842004-08-07 Andrew Cagney <cagney@gnu.org>
4085
70bd8e24
AC
4086 * gdbtypes.c (build_flt, build_complex): New functions.
4087 (gdbtypes_post_init): Use.
4088
9b0dea39
AC
4089 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4090
5cf7abac
AC
4091 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4092 through to builtin_type_uint128.
4093
64d2b26d
AC
4094 * c-exp.y: Use builtin_type function to obtain builtin types.
4095
7ad6570d
AC
4096 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4097 builtin_uint128.
4098 * gdbtypes.c (gdbtypes_post_init): Update.
4099 (build_gdbtypes): Move initialization of builtin_type_int0
4100 through to builtin_type_uint128 from here ...
4101 (_initialize_gdbtypes): ... to here.
4102 * d10v-tdep.c (d10v_register_type): Update.
4103
47b3f456
AC
4104 * doublest.c: Update copyright.
4105 (floatformat_from_length): Call error when floatformat is NULL.
4106 (extract_floating_by_length): Remove NULL fmt check.
4107 (store_floating_by_length): Ditto.
4108
0a8146bf
AC
41092004-08-07 Andrew Cagney <cagney@gnu.org>
4110
4111 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4112 that the register is valid.
4113
c0ccb908
MK
41142004-08-05 Mark Kettenis <kettenis@chello.nl>
4115
8e6bed05
MK
4116 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4117 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4118 struct frame_info *. Use safe_frame_unwind_memory instead of
4119 deprecated_read_memory_nobpt.
4120 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4121 changed signature of i386_linux_sigtramp_start and
4122 i386_linux_rt_sigtramp_start.
4123
24f9f5e3
MK
4124 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4125 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
4126 instead of deprecated_read_memory_nobpt.
4127 (i386nbsd_sigtramp_p): Adjust for changed signature of
4128 i386nbsd_sigtramp_offset.
4129
c822af0c
MK
4130 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4131 safe_frame_unwind_memory instead of target_read_memory.
4132
c0ccb908
MK
4133 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4134 !NO_SYS_FILE.
4135 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4136 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4137 (_initialize_kernel_u_addr): Remove prototype and function.
4138 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4139 !NO_SYS_FILE.
4140 * xcoffread.c: Likewise.
4141
b9e1c0d6
MK
41422004-08-06 Mark Kettenis <kettenis@gnu.org>
4143
4144 * vax-nat.c: New file.
4145 * vaxbsd-nat.c: Tweak comment.
4146 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4147 vaxnbsd-tdep.c.
4148 (vax-nat.o): New dependency.
4149 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4150 (vax-*-ultrix2*): Remove.
4151 * config/vax/vax.mh: New file.
4152 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4153 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4154 (vax_register_u_addr): New prototype.
4155 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4156 * config/vax/vaxult2.mh: Remove file.
4157 * config/vax/vaxult.mh: Remove file.
4158 * config/vax/vaxbsd.mh: Remove file.
4159 * config/vax/vax.mt (TM_FILE): Remove.
4160 * config/vax/tm-vaxbsd.h: Remove file.
4161
9ad7bec7
JB
41622004-08-06 Joel Brobecker <brobecker@gnat.com>
4163
4164 * aix-thread.c (get_signaled_thread): New function.
4165 (iter_trap): Delete, no longer used.
4166 (iter_tid): New function.
4167 (pd_update): Find the thread that received the SIGTRAP signal
4168 by first locating the kernel thread, and then finding its
4169 associated thread.
4170
bf0d233d
UW
41712004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4172
4173 * lin-lwp.c (child_wait): Continue inferior after processing
4174 PTRACE_EVENT_CLONE event.
4175
d0f853e1
NN
41762004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4177
4178 * MAINTAINERS: Add self to Write-After-Approval.
4179
ab14aeb0
JJ
41802004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4181
4182 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4183 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4184
9c8dbfa9
AC
41852004-08-05 Andrew Cagney <cagney@gnu.org>
4186
c8f3ca46
AC
4187 * config/xm-sysv4.h: Delete file.
4188 * config/mips/xm-irix5.h: Delete file.
4189 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4190 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4191 * config/ia64/xm-aix.h: Delete file.
4192 * config/ia64/aix.mh (XM_FILE): Delete.
4193 * config/pa/xm-hppah.h: Delete file.
4194 * config/pa/hpux11w.mh (XM_FILE): Delete.
4195 * config/pa/hpux11.mh (XM_FILE): Delete.
4196 * config/pa/hpux1020.mh (XM_FILE): Delete.
4197 * config/pa/hppahpux.mh (XM_FILE): Delete.
4198
5f7daaff
AC
4199 * config/alpha/xm-alphalinux.h: Delete file.
4200 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4201 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4202 * config/alpha/xm-alphaosf.h: Delete file.
4203 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4204 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4205 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4206 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4207
69babf95
AC
4208 * config/i386/xm-i386v.h: Delete file.
4209 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4210 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4211 * config/i386/xm-i386sco.h: Delete file.
4212 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4213 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4214 * config/i386/xm-i386v4.h: Delete file.
4215 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4216 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4217 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4218 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4219
6f009c8a
AC
4220 * config/vax/xm-vax.h: Delete file.
4221 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4222 * config/vax/xm-vaxult2.h: Delete file.
4223 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4224 * config/vax/vaxult2.mh (XM_FILE): Delete.
4225 * config/vax/xm-vaxult.h: Delete file.
4226 * config/vax/vaxult.mh (XM_FILE): Delete.
4227 * config/vax/xm-vaxbsd.h: Delete file.
4228 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4229
9c8dbfa9
AC
4230 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4231 * gdbarch.h, gdbarch.c: Re-generate.
4232 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4233 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4234 * frame.h: Delete deprecated_read_fp from comments.
4235 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4236 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4237
84367a3e
MK
42382004-08-04 Mark Kettenis <kettenis@gnu.org>
4239
9c8e3411
MK
4240 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4241 trampoline in OpenBSD 3.5-current.
4242
b87bc0d8
MK
4243 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4244 SSE registers.
4245
84367a3e
MK
4246 * Makefile.in: Remove embedded page breaks.
4247
a44bddec
JB
42482004-08-04 Jim Blandy <jimb@redhat.com>
4249
7ab3286f
JB
4250 * regcache.c (regcache_raw_read): Assert that, after calling
4251 target_fetch_registers, the register we're reading is cached.
4252
a44bddec
JB
4253 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4254 a call to 'internal_error', with a more helpful error message.
4255 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 4256 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 4257
35124113
AC
42582004-08-04 Andrew Cagney <cagney@gnu.org>
4259
4260 * Makefile.in: Update dependencies.
4261
9f643768
JB
42622004-08-04 Jim Blandy <jimb@redhat.com>
4263
6ced10dd
JB
4264 Change the layout of the PowerPC E500 raw register cache to allow
4265 the lower 32-bit halves of the GPRS to be their own raw registers,
4266 not pseudoregisters.
4267 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4268 add ppc_ev0_upper_regnum flag.
4269 * rs6000-tdep.c: #include "reggroups.h".
4270 (spe_register_p): Recognize the ev upper half registers as SPE
4271 registers.
4272 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4273 registers.
4274 (e500_move_ev_register): New function.
4275 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4276 vector registers are the pseudo-registers now, formed by splicing
4277 together the gprs and the upper-half registers.
4278 (e500_register_reggroup_p): New function.
4279 (P): Macro deleted.
4280 (P8, A4): New macro.
4281 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4282 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4283 macros.
4284 (registers_e500): Rearrange register set so that the raw register
4285 set contains 32-bit GPRs and upper-half registers, and the SPE
4286 vector registers become pseudo-registers.
4287 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4288 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4289 register numbers are now the same for the E500 as they are for
4290 other PowerPC variants. Register e500_register_reggroup_p as the
4291 register group function for the E500.
4292 * Makefile.in (rs6000-tdep.o): Update dependencies.
4293
4294 Adapt PPC E500 native support to the new raw regcache layout.
4295 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4296 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4297 (fetch_spe_register, store_spe_register): Handle fetching/storing
4298 all the SPE registers at once, if regno == -1. These now take
4299 over the job of fetch_spe_registers and store_spe_registers.
4300 (fetch_spe_registers, store_spe_registers): Deleted.
4301 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4302 unconditionally; they're always raw. Fetch/store SPE upper half
4303 registers, if present, instead of ev registers.
4304 (fetch_register, store_register): Remove sanity checks: gprs are
4305 never pseudo-registers now, so we never need to even mention any
4306 registers that are ever pseudoregisters.
4307
9f643768
JB
4308 Use a fixed register numbering when communicating with the PowerPC
4309 simulator.
4310 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4311 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4312 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4313 New functions.
4314 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4315 init_sim_regno_table.
4316 * Makefile.in (gdb_sim_ppc_h): New variable.
4317 (rs6000-tdep.o): Update dependencies.
4318
1e2279c8
AC
43192004-08-02 Andrew Cagney <cagney@gnu.org>
4320
1d94326f
AC
4321 * cris-tdep.c (cris_register_size): Restore function, still used
4322 locally.
4323
331ae7ed
AC
4324 * gdbarch.sh (deprecated_target_read_fp)
4325 (deprecated_frame_locals_address, deprecated_frame_args_address)
4326 (deprecated_frame_chain_valid, deprecated_frame_chain)
4327 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4328 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4329 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4330 * gdbarch.h, gdbarch.c: Re-generate.
4331 * regcache.c (deprecated_read_fp): Do not call
4332 DEPRECATED_TARGET_READ_FP_P.
4333 * infcmd.c (default_print_registers_info): Do not call
4334 DEPRECATED_DO_REGISTERS_INFO.
4335 * frame-base.c (default_frame_locals_address): Do not call
4336 DEPRECATED_FRAME_LOCALS_ADDRESS.
4337 (default_frame_args_address): Do not call
4338 DEPRECATED_FRAME_ARGS_ADDRESS.
4339
1e2279c8
AC
4340 * gdbarch.sh (deprecated_register_raw_size)
4341 (deprecated_register_virtual_size:int): Delete.
4342 * gdbarch.h, gdbarch.c: Re-generate.
4343 * cris-tdep.c (cris_register_size): Delete.
4344 (cris_gdbarch_init): Update.
4345 * alpha-tdep.c (alpha_register_raw_size)
4346 (alpha_register_virtual_size): Delete.
4347 (alpha_gdbarch_init): Update.
4348
a90c06b4
AC
4349 * gdbarch.sh (deprecated_register_virtual_type)
4350 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4351 (deprecated_dummy_write_sp): Delete.
4352 * gdbarch.h, gdbarch.c: Re-generate.
4353
f42accbe
AC
4354 * gdbarch.sh (deprecated_register_bytes): Delete.
4355 * gdbarch.h, gdbarch.c: Re-generate.
4356 * regcache.c (deprecated_register_bytes): New function.
4357 * regcache.h (deprecated_register_bytes): Declare.
4358 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4359 * v850-tdep.c (v850_gdbarch_init): Update.
4360 * sh64-tdep.c (sh64_gdbarch_init): Update.
4361 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4362 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4363 * mcore-tdep.c (mcore_gdbarch_init): Update.
4364 * cris-tdep.c (cris_gdbarch_init): Update.
4365 * arm-tdep.c (arm_gdbarch_init): Update.
4366 * remote.c (init_remote_state): Update.
4367 * remote-vx.c (vx_prepare_to_store): Update.
4368 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4369 * irix5-nat.c (fetch_core_registers): Update.
4370 * cris-tdep.c (cris_register_bytes_ok): Update.
4371 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4372
45c9dd44
AC
4373 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4374 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4375 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4376 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4377 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4378 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4379 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4380 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4381 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4382 with mips_insn16 and mips_insn32.
4383
3acba339
AC
4384 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4385 * rs6000-tdep.c (rs6000_push_dummy_call)
4386 (rs6000_extract_return_value): Use register_size.
4387 * xstormy16-tdep.c (xstormy16_get_saved_register)
4388 (xstormy16_extract_return_value): Ditto.
4389 * valops.c (value_assign): Ditto.
4390 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4391 * v850-tdep.c (v850_extract_return_value): Ditto.
4392 * tracepoint.c (collect_symbol): Ditto.
4393 * target.c (debug_print_register): Ditto.
4394 * stack.c (frame_info): Ditto.
4395 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4396 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4397 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4398 (store_register_using_P): Ditto.
4399 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4400 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4401 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4402 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4403 * regcache.c (deprecated_read_register_bytes)
4404 (deprecated_write_register_bytes, read_register)
4405 (write_register): Ditto.
4406 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4407 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4408 * monitor.c (monitor_supply_register, monitor_fetch_register)
4409 (monitor_store_register): Ditto.
4410 * mn10300-tdep.c (mn10300_pop_frame_regular)
4411 (mn10300_print_register): Ditto.
4412 * mipsv4-nat.c (fill_fpregset): Ditto.
4413 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4414 (mips64_fill_fpregset): Ditto.
4415 * mi/mi-main.c (register_changed_p, get_register)
4416 (mi_cmd_data_write_register_values): Ditto.
4417 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4418 * irix5-nat.c (fill_gregset, fetch_core_registers):
4419 * infrun.c (write_inferior_status_register): Ditto.
4420 * infptrace.c (fetch_register, store_register): Ditto.
4421 * infcmd.c (default_print_registers_info): Ditto.
4422 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4423 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4424 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4425 * hpux-thread.c (hpux_thread_fetch_registers)
4426 (hpux_thread_store_registers): Ditto.
4427 * hppah-nat.c (store_inferior_registers, fetch_register):
4428 * findvar.c (value_from_register): Ditto.
4429 * dve3900-rom.c (fetch_bitmapped_register):
4430 * cris-tdep.c (cris_gdbarch_init): Ditto.
4431 * alpha-tdep.h: Ditto.
4432 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4433
01e1877c
AC
4434 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4435 DEPRECATED_REGISTER_RAW_SIZE from comments.
4436 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4437 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4438 DEPRECATED_REGISTER_RAW_SIZE.
4439 * findvar.c (value_of_register): Simplify by assuming that the
4440 registers raw and virtual sizes are identical.
4441 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4442 comment.
4443 * arch-utils.c (generic_register_size): Simplify by assuming
4444 register_type.
4445
73f458fb
AC
4446 * regcache.c (legacy_read_register_gen, real_register)
4447 (legacy_write_register_gen): Delete, not used.
4448
336a3131
AC
4449 * regcache.c (struct regcache_descr): Delete legacy_p.
4450 (init_legacy_regcache_descr): Delete function.
4451 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4452 Do not use deprecated register functions.
4453 (regcache_raw_read, deprecated_write_register_gen):
4454 (deprecated_read_register_gen, regcache_raw_write): Delete code
4455 predicated on legacy_p.
4456 (register_size): Delete check against register raw size.
4457
c1d546cd
AC
4458 * cris-tdep.c (cris_register_type): Replace
4459 cris_register_virtual_type.
4460 (cris_gdbarch_init): Update, set register_type.
4461
48c2c0a6
AC
4462 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4463 * gdbarch.h, gdbarch.c: Re-generate.
4464 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4465 (arm_gdbarch_init) Do not set frameless function invocation.
4466 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4467 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4468 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4469 (frv_gdbarch_init): Do not set frameless function invocation.
4470 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4471 * sh-tdep.c (sh_gdbarch_init): Ditto.
4472 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4473 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4474 * avr-tdep.c (avr_gdbarch_init): Ditto.
4475
474093a6
AC
4476 * blockframe.c (legacy_frame_chain_valid): Delete function.
4477
3c109c8b
AC
4478 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4479 and pc. Update comments.
4480 (pc_in_dummy_frame): Delete function.
4481 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4482 use the "id".
4483 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4484 call_hi, top and pc, use the id.
4485 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4486
96860204
AC
4487 * dummy-frame.c: Include "gdb_string.h".
4488 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4489 (generic_save_dummy_frame_tos): Delete.
4490 (dummy_frame_push): New function, replaces above.
4491 * dummy-frame.h: Update copyright.
4492 (dummy_frame_push): Declare.
4493 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4494 (generic_save_call_dummy_addr): Delete declarations.
4495 * infcall.c: Include "dummy-frame.h".
4496 (call_function_by_hand): Add locals caller_regcache,
4497 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4498 with call to frame_save_as_regcache plus cleanup. Delete calls to
4499 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4500 Move clear_proceed_status to just before the resume, add call to
4501 dummy_frame_push (discard cleanup).
4502 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4503 (dummy-frame.o): Add $(gdb_string_h).
4504
d67ec5db
AC
45052004-08-01 Andrew Cagney <cagney@gnu.org>
4506
4507 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4508 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4509 * dummy-frame.c (find_dummy_frame): Delete.
4510 (struct dummy_frame_cache, dummy_frame_sniffer)
4511 (dummy_frame_prev_register, dummy_frame_this_id)
4512 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4513 frame unwinder using a dummy_frame_cache.
4514
a81dcb05
AC
45152004-08-01 Andrew Cagney <cagney@gnu.org>
4516
4517 * frame.h (frame_save_as_regcache): Declare.
4518 * frame.c (frame_save_as_regcache): New function.
4519 (do_frame_read_register): Replace do_frame_unwind_register.
4520 (frame_pop): Use frame_save_as_regcache.
4521 * dummy-frame.c (generic_push_dummy_frame): Use
4522 frame_save_as_regcache.
4523
aa495d11
JB
45242004-08-01 Joel Brobecker <brobecker@gnat.com>
4525
4526 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4527 file as included until we record the first line in the linetable.
4528
ff65ac78
AC
45292004-08-01 Andrew Cagney <cagney@gnu.org>
4530
4531 * frame.h (deprecated_pop_dummy_frame)
4532 (deprecated_read_register_dummy)
4533 (deprecated_generic_find_dummy_frame): Delete.
4534 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4535 (deprecated_read_register_dummy)
4536 (deprecated_find_dummy_frame_regcache)
4537 (discard_innermost_dummy)
4538 (deprecated_pop_dummy_frame): Delete.
4539 (dummy_frame_this_id): Simplify.
4540 (struct dummy_frame): Delete "fp" and "sp".
4541 (find_dummy_frame): Simplify.
4542 (generic_push_dummy_frame): Do not set "fp" or "sp".
4543 (fprint_dummy_frames): Do not print "fp" and "sp"
4544
37bdc87e
MK
45452004-08-01 Mark Kettenis <kettenis@gnu.org>
4546
4547 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4548 (struct i386_insn): New structure.
4549 (i386_match_insn): New function.
4550 (i386_frame_setup_skip_insns): New variable.
4551 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4552 array i386_frame_setup_insns of instructions that should be
4553 skipped inside the frame setup sequence.
4554
8241eaa6
AC
45552004-08-01 Andrew Cagney <cagney@gnu.org>
4556
5bc602c7
AC
4557 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4558 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4559 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4560 * stack.c (frame_info): Delete references to
4561 DEPRECATED_FRAME_INIT_SAVED_REGS and
4562 deprecated_get_frame_saved_regs.
4563 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4564 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4565 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4566 (frame_unwind_register_signed)
4567 (frame_unwind_register_unsigned)
4568 (frame_unwind_unsigned_register): Use register_size.
4569 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4570 (deprecated_frame_xmalloc_with_cleanup)
4571 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4572 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4573
03d363a1
AC
4574 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4575 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4576 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4577 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4578
8241eaa6
AC
4579 * infcall.c (call_function_by_hand): Do not use
4580 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4581 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4582 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4583 DEPRECATED_STACK_ALIGN.
4584
f00df8b7
AC
45852004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4586
4587 Committed by Andrew Cagney.
4588 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4589
eec63939
AC
45902004-08-01 Andrew Cagney <cagney@gnu.org>
4591
4592 * mips-tdep.c (mips16_frame_cache)
4593 (mips16_frame_this_id, mips16_frame_prev_register)
4594 (mips16_frame_unwind, mips16_frame_sniffer)
4595 (mips16_frame_base_address, mips16_frame_base)
4596 (mips16_frame_base_sniffer, mips32_frame_cache)
4597 (mips32_frame_this_id, mips32_frame_prev_register)
4598 (mips32_frame_unwind, mips32_frame_sniffer)
4599 (mips32_frame_base_address, mips32_frame_base)
4600 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4601 separate heuristic mips16 and mips32 unwinders.
4602 (mips_stub_frame_cache, mips_stub_frame_this_id)
4603 (mips_stub_frame_prev_register)
4604 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4605 (mips_stub_frame_base_address, mips_stub_frame_base)
4606 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4607 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4608 match true mdebug frames.
4609 (non_heuristic_proc_desc): Add forward declaration.
4610
e66299b3
AC
46112004-08-01 Andrew Cagney <cagney@gnu.org>
4612
83cbbf3e
AC
4613 * config/mips/tm-irix6.h: Delete file.
4614 * config/mips/tm-irix5.h: Delete file.
4615 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4616 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4617
22d41b37
AC
4618 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4619 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4620 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4621 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4622 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4623 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4624 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4625 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4626 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4627 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4628 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4629 (TARGET_SIGNAL_RAW_VALUES): Delete.
4630 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4631 Delete.
4632 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4633 (TARGET_HW_WATCH_LIMIT): Delete.
4634 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4635 * minimon.h: Delete file.
4636
e66299b3
AC
4637 * trad-frame.c (trad_frame_get_this_base)
4638 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4639 functions.
4640 * trad-frame.h (trad_frame_set_this_base)
4641 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4642
1f67027d
AC
46432004-07-31 Andrew Cagney <cagney@gnu.org>
4644
4645 * trad-frame.c (trad_frame_get_prev_register): Rename
4646 trad_frame_get_prev_register.
4647 * vax-tdep.c (vax_frame_prev_register): Update.
4648 * trad-frame.h: Update.
4649 * trad-frame.c (trad_frame_get_register): Update.
4650 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4651 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4652 Update.
4653 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4654 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4655 Update.
4656 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4657 Update.
4658 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4659 Update.
4660 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4661 Update.
4662 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4663 Update.
4664 * s390-tdep.c (s390_frame_prev_register)
4665 (s390_stub_frame_prev_register)
4666 (s390_sigtramp_frame_prev_register): Update.
4667 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4668 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4669 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4670 * m88k-tdep.c (m88k_frame_prev_register)
4671 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4672 * m32r-tdep.c (m32r_frame_prev_register): Update.
4673 * hppa-tdep.c (hppa_frame_prev_register_helper)
4674 * frv-tdep.c (frv_frame_prev_register): Update.
4675 * d10v-tdep.c (d10v_frame_prev_register): Update.
4676 * cris-tdep.c (cris_frame_prev_register): Update.
4677 * avr-tdep.c (avr_frame_prev_register): Update.
4678 * arm-tdep.c (arm_prologue_prev_register)
4679 (arm_sigtramp_prev_register): Update.
4680
c1bf6f65
AC
46812004-07-31 Andrew Cagney <cagney@gnu.org>
4682
4683 * frame.h (legacy_saved_regs_unwind)
4684 (legacy_frame_chain_valid, legacy_frame_p)
4685 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
4686 * dummy-frame.c (dummy_frame_this_id): Simplify.
4687 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
4688 * frame.c (struct frame_info): Delete the field "type".
4689 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4690 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4691 (legacy_saved_regs_unwind, legacy_frame_p)
4692 (frame_type_from_pc): Delete.
4693 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4694 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4695
dc856692
MK
46962004-07-31 Mark Kettenis <kettenis@gnu.org>
4697
5a5effe1
MK
4698 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4699 indentation.
4700
d4fd50a6
MK
4701 * mips-nat.c: Remove file.
4702 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4703 (mips-nat.o): Remove dependency.
4704
2689df5a
MK
4705 * infptrace.c: Update copyright year.
4706 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4707 explicitly setting the buffer to all zeroes.
4708
dc856692
MK
4709 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4710 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4711
763910e0
AC
47122004-07-30 Andrew Cagney <cagney@gnu.org>
4713
4714 * GDB 6.2 released from gdb_6_2-branch.
4715
0b66e38c
EZ
47162004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4717
4718 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4719
4720 * exec.c (exec_file_attach):
4721 * nto-tdep.c (nto_find_and_open_solib):
4722 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4723 * solib.c (solib_open):
4724 * somsolib.c (som_solib_sizeof_symbol_table):
4725 * source.c (is_regular_file, openp, open_source_file):
4726 * symfile.c (symfile_bfd_open):
4727 * wince.c (upload_to_device): Differentiate between the search for
4728 binary and source files.
4729
be7d7357
AC
47302004-07-30 Andrew Cagney <cagney@gnu.org>
4731
4732 * complaints.c (_initialize_complaints): Pass NULL to
4733 add_setshow_zinteger_cmd for help_doc.
4734 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4735
ddc9cd0f
AC
47362004-07-30 Andrew Cagney <cagney@gnu.org>
4737
4738 Fix PR i18n/761.
4739 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4740 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4741 $(PACKAGE).pot and update-po.
4742 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4743 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4744 (update-po): New rules.
4745 (localedir): Define using autoconf.
4746 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4747 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4748 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4749 * configure.in: Generate CATALOGS and LINGUAS from contents of
4750 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4751 * configure: Re-generate.
4752 * po/gdbtext: New file
4753
e92f3704
JG
47542004-07-30 Jerome Guitton <guitton@gnat.com>
4755
4756 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4757 order.
4758
b0f35d58
DL
47592004-07-30 David Lecomber <dsl@sources.redhat.com>
4760
4761 * dwarf2read.c (read_file_scope): Set producer if attribute
4762 present.
4763 (struct dwarf2_cu): Added new member producer.
4764
ce7d4522
JG
47652004-07-30 Jerome Guitton <guitton@gnat.com>
4766
4767 * inflow.c (kill_command): release file handles in BFD.
4768 * exec.c (exec_file_attach): Ditto.
4769 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4770
05ee07c7
AC
47712004-07-29 Andrew Cagney <cagney@gnu.org>
4772
4773 * PROBLEMS (mips-irix): Note that it is broken.
4774
62eceb47
AC
47752004-07-29 Andrew Cagney <cagney@gnu.org>
4776
e57b8d41
AC
4777 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4778 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4779
d334389b
AC
4780 * config/xm-nbsd.h: Delete file.
4781 * config/arm/xm-nbsd.h: Delete file.
4782 * config/i386/xm-nbsd.h: Delete file.
4783 * config/ns32k/xm-nbsd.h: Delete file.
4784 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4785 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4786 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4787 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4788 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4789
e910f676
AC
4790 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4791 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4792 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4793 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4794 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4795 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4796
6fa856b9
AC
4797 * config/powerpc/xm-linux.h: Delete empty file.
4798 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4799 * config/powerpc/linux.mh (XM_FILE): Delete.
4800 * config/m68k/xm-linux.h: Delete empty file.
4801 * config/m68k/linux.mh (XM_FILE): Delete.
4802 * config/ia64/xm-linux.h: Delete empty file.
4803 * config/ia64/linux.mh (XM_FILE): Delete.
4804 * config/arm/xm-linux.h: Delete empty file.
4805 * config/arm/linux.mh (XM_FILE): Delete.
4806
471ae5ae
AC
4807 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4808 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4809 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4810 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4811 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4812 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4813 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4814 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4815
62eceb47
AC
4816 * config/m68k/xm-m68k.h: Delete file.
4817 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4818 copyright.
4819 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4820 * config/pa/xm-linux.h: Delete empty file.
4821 * config/pa/linux.mh (XM_FILE): Delete.
4822 * config/i386/xm-i386.h: Delete empty file.
4823 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4824 "i386/xm-i386.h".
4825 * config/i386/obsdaout.mh (XM_FILE): Delete.
4826 * config/i386/obsd64.mh (XM_FILE): Delete.
4827 * config/i386/fbsd64.mh (XM_FILE): Delete.
4828 * config/i386/nto.mh (XM_FILE): Delete.
4829 * config/i386/obsd.mh (XM_FILE): Delete.
4830 * config/i386/linux64.mh (XM_FILE): Delete.
4831 * config/i386/linux.mh (XM_FILE): Delete.
4832 * config/i386/i386sol2.mh (XM_FILE): Delete.
4833 * config/i386/i386gnu.mh (XM_FILE): Delete.
4834 * config/i386/fbsd.mh (XM_FILE): Delete.
4835 * config/i386/nbsd64.mh (XM_FILE): Delete.
4836
c35f4ffc
AC
48372004-07-29 Andrew Cagney <cagney@gnu.org>
4838
4839 * config/pa/xm-linux.h: Do not include "floatformat.h".
4840 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4841 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4842 * config/i386/xm-i386.h: Do not include "floatformat.h".
4843 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4844 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4845 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4846 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4847 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4848 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4849 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4850 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4851 * configure, config.in: Regenerate.
4852 * configure.host (gdb_host_float_format, gdb_host_double_format)
4853 (gdb_host_long_double_format): Set according to the host.
4854
624a44a3
AC
48552004-07-29 Andrew Cagney <cagney@gnu.org>
4856
4857 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4858
0dea2468
AC
48592004-07-28 Andrew Cagney <cagney@gnu.org>
4860
4861 * PROBLEMS: Mention threads/1650.
4862 * NEWS: Mention the NPTL fix.
4863
b3f42336
AC
48642004-07-28 Andrew Cagney <cagney@gnu.org>
4865
4866 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4867 (add_setshow_cmd_full): Make static.
4868 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4869 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4870 * cli/cli-decode.c (add_setshow_filename_cmd)
4871 (add_setshow_string_cmd): New functions.
4872 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4873 * mips-tdep.c (_initialize_mips_tdep): Update.
4874 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4875 * cli/cli-logging.c (_initialize_cli_logging): Update.
4876 * complaints.c (_initialize_complaints): Update.
4877 * remote.c (_initialize_remote): Update.
4878
3b64bf98
AC
48792004-07-28 Andrew Cagney <cagney@gnu.org>
4880
4881 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4882 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4883 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4884 print parameters. Make string parameters constant.
4885 * command.h: Update. Update copyright.
4886 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4887 * observer.c (_initialize_observer): Ditto.
4888 * frame.c (_initialize_frame): Ditto.
4889 * complaints.c (_initialize_complaints): Ditto.
4890 * maint.c (_initialize_maint_cmds): Ditto.
4891 * target.c (initialize_targets): Ditto.
4892 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4893 * infcall.c (_initialize_infcall): Ditto.
4894 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4895 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4896 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4897 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4898 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4899
e9667a65
AC
49002004-07-28 Andrew Cagney <cagney@gnu.org>
4901
54a5b07d
AC
4902 * gdbtypes.c (lookup_primitive_typename): Delete function.
4903 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4904 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4905 * gdbtypes.c (lookup_typename): Ditto.
4906 * f-exp.y (yylex): Ditto.
4907 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4908
e9667a65
AC
4909 * scm-lang.c (c_builtin_types): Delete extern declaration.
4910 (scm_language_defn): Replace
4911 string_char_type and primitive_type_vector with
4912 la_language_arch_info.
4913 * jv-lang.c (java_language_defn): Replace
4914 string_char_type and primitive_type_vector with
4915 la_language_arch_info.
4916 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4917 c_builtin_types in comment.
4918 * c-lang.h (struct language_arch_info): Declare opaque.
4919 (c_language_arch_info): Declare.
4920 (c_builtin_types): Delete declaration.
4921 * c-lang.c (c_language_arch_info): Set string_char_type to
4922 builtin_char, not builtin_true_char. Make global.
4923 (c_builtin_types): Delete array.
4924 (asm_language_defn, minimal_language_defn): Replace
4925 string_char_type and primitive_type_vector with
4926 la_language_arch_info.
4927
685419e2
AC
49282004-07-28 Andrew Cagney <cagney@gnu.org>
4929
4930 * gdbtypes.h (struct builtin_type): Rename true_char to
4931 builtin_true_char.
4932 * gdbtypes.c (gdbtypes_post_init): Update.
4933 * c-lang.c (arch_info): New function.
4934 (enum c_primitive_types): New enum.
4935 (c_language_defn): Instead of string_char_type and
4936 primitive_type_vector set la_language_arch_info.
4937
5a44ea29
AC
49382004-07-28 Andrew Cagney <cagney@gnu.org>
4939
4940 * language.h (struct language_arch_info): Fix typo
4941 s/primative/primitive/.
4942 * gdbtypes.c (lookup_primitive_typename): Ditto.
4943 * language.c (language_lookup_primitive_type_by_name)
4944 (unknown_language_arch_info): Ditto.
4945
f290d38e
AC
49462004-07-27 Andrew Cagney <cagney@gnu.org>
4947
4948 * defs.h (enum language): Add nr_languages.
4949 * language.h (struct language_arch_info): Define.
4950 (struct language_defn): Add la_language_arch_info.
4951 (language_lookup_primative_type_by_name): Declare.
4952 (language_string_char_type): Declare.
4953 * language.c (_initialize_language, language_gdbarch_post_init)
4954 (struct language_gdbarch, language_gdbarch_data): Implement
4955 per-architecture language information.
4956 (unknown_language_arch_info, language_string_char_type)
4957 (language_lookup_primative_type_by_name): New functions.
4958 (unknown_language_defn, auto_language_defn)
4959 (local_language_defn): Set la_language_arch_info to
4960 unknown_language_arch_info.
4961 (unknown_builtin_types): Delete.
4962 * gdbtypes.c (lookup_primitive_typename): Use
4963 language_lookup_primative_type_by_name.
4964 (create_string_type): Use language_string_char_type.
4965 * values.c (value_from_string): Use language_string_char_type.
4966 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4967 * p-lang.c (pascal_language_defn): Ditto.
4968 * m2-lang.c (m2_language_defn): Ditto.
4969 * jv-lang.c (java_language_defn): Ditto.
4970 * objc-lang.c (objc_language_defn): Ditto.
4971 * f-lang.c (f_language_defn): Ditto.
4972 * c-lang.c (c_language_defn, cplus_language_defn)
4973 (asm_language_defn, minimal_language_defn): Ditto.
4974
000177f0
AC
49752004-07-27 Andrew Cagney <cagney@gnu.org>
4976
4977 * gdbtypes.h (struct builtin_type): Declare.
4978 (builtin_type): Declare.
4979 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4980 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4981 (gdbtypes_post_init): New function.
4982 (builtin_type): New function.
4983
e22f895c
KI
49842004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4985
4986 * remote-m32r-sdi.c: Fix breakpoint bug.
4987 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4988 recv_char_data, recv_long_data): New functions to replace communication
4989 sequences.
4990
536517dd
MC
49912004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4992
4993 Document PR threads/1650.
4994 * PROBLEMS (Threads): Document problem with many threads
4995
a0a44d18
AC
49962004-07-26 Andrew Cagney <cagney@gnu.org>
4997
4998 * gdb-mi.el: Move from here ...
4999 * mi/gdb-mi.el: ... to here.
5000
7ac4ac06
AC
50012004-07-26 Andrew Cagney <cagney@gnu.org>
5002
5003 Problem reported by Ashley Pittman <ashley@quadrics.com>.
5004 * main.c (captured_main): When in batch mode always detach.
5005
a1b461bf
AC
50062004-07-26 Andrew Cagney <cagney@gnu.org>
5007
5008 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
5009 and h8300 as broken.
5010 * NEWS: END-OF-LIFE frame compatibility module.
5011 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
5012 specific comments.
5013
cb1a6d5f
AC
50142004-07-26 Andrew Cagney <cagney@gnu.org>
5015
5016 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
5017 * xcoffsolib.c (_initialize_xcoffsolib): Update.
5018 * wince.c (_initialize_wince): Update.
5019 * win32-nat.c (_initialize_win32_nat): Update.
5020 * varobj.c (_initialize_varobj): Update.
5021 * valops.c (_initialize_valops): Update.
5022 * utils.c (initialize_utils, initialize_utils): Update.
5023 * tui/tui-win.c (_initialize_tui_win): Update.
5024 * top.c (init_main): Update.
5025 * symfile.c (_initialize_symfile): Update.
5026 * source.c (_initialize_source): Update.
5027 * somsolib.c (_initialize_som_solib): Update.
5028 * solib.c (_initialize_solib): Update.
5029 * solib-frv.c (_initialize_frv_solib): Update.
5030 * serial.c (_initialize_serial): Update.
5031 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
5032 * remote.c (_initialize_remote, _initialize_remote): Update.
5033 * remote-vx.c (_initialize_vx): Update.
5034 * remote-utils.c (_initialize_sr_support): Update.
5035 * remote-sds.c (_initialize_remote_sds): Update.
5036 * remote-mips.c (_initialize_remote_mips): Update.
5037 * remote-e7000.c (_initialize_remote_e7000): Update.
5038 * proc-api.c (_initialize_proc_api): Update.
5039 * printcmd.c: Update.
5040 * parse.c (_initialize_parse): Update.
5041 * pa64solib.c (_initialize_pa64_solib): Update.
5042 * p-valprint.c (_initialize_pascal_valprint): Update.
5043 * monitor.c (_initialize_remote_monitors): Update.
5044 * mips-tdep.c (_initialize_mips_tdep): Update.
5045 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5046 * maint.c (_initialize_maint_cmds): Update.
5047 * lin-lwp.c (_initialize_lin_lwp): Update.
5048 * language.c (_initialize_language): Update.
5049 * kod.c (_initialize_kod): Update.
5050 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5051 * i386-tdep.c (_initialize_i386_tdep): Update.
5052 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5053 * gdbarch.sh: Update.
5054 * gdbarch.c: Re-generate.
5055 * gdb-events.sh: Update.
5056 * gdb-events.c: Re-generate.
5057 * frame.c (_initialize_frame): Update.
5058 * exec.c: Update.
5059 * demangle.c (_initialize_demangler): Update.
5060 * dcache.c (_initialize_dcache): Update.
5061 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5062 * cp-valprint.c (_initialize_cp_valprint): Update.
5063 * corefile.c (_initialize_core): Update.
5064 * command.h: Update.
5065 * cli/cli-decode.h: Update.
5066 * cli/cli-cmds.c (init_cli_cmds): Update.
5067 * charset.c (_initialize_charset): Update.
5068 * breakpoint.c (_initialize_breakpoint): Update.
5069 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5070 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5071 * aix-thread.c (_initialize_aix_thread): Update.
5072
b4632131
MK
50732004-07-24 Mark Kettenis <kettenis@gnu.org>
5074
5075 Partial fix for PR backtrace/1718.
5076 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5077 that GCC migrates into the prolugue. Don't handle any
5078 instructions that clobber %ebx.
5079
822c9732
AC
50802004-07-23 Andrew Cagney <cagney@gnu.org>
5081
5082 Use regcache_raw_collect instead of regcache_collect.
5083 * regcache.h (regcache_collect): Delete declaration.
5084 * regcache.c (regcache_colect): Delete function.
5085 * win32-nat.c (do_child_store_inferior_registers): Update.
5086 * sol-thread.c (sol_thread_store_registers): Update.
5087 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5088 * rs6000-nat.c (store_register): Update.
5089 * remote.c (store_register_using_P, remote_store_registers): Update.
5090 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5091 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
5092 (fill_vrregset, store_spe_registers, fill_gregset)
5093 (fill_gregset): Update.
5094 * nto-procfs.c (procfs_store_registers): Update.
5095 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5096 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5097 * m68klinux-nat.c (store_register, fill_gregset): Update.
5098 * m68k-tdep.c (fill_gregset): Update.
5099 * infptrace.c (store_register): Update.
5100 * i386-nto-tdep.c (i386nto_regset_fill): Update.
5101 * i386-linux-nat.c (store_register, fill_gregset): Update.
5102 * hppa-linux-nat.c (fill_gregset): Update.
5103 * go32-nat.c (store_register): Update.
5104 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5105 (store_fp_regs): Update.
5106 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
5107 (store_nwfpe_extended, store_fpregister, store_fpregs)
5108 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5109 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5110 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5111 (store_regs_user_thread, store_regs_kernel_thread): Update.
5112
32b05c07
MK
51132004-07-24 Mark Kettenis <kettenis@gnu.org>
5114
5115 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5116 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5117 encoding.
5118 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5119 member of `struct comp_unit'.
5120
8567c30f
AC
51212004-07-23 Andrew Cagney <cagney@gnu.org>
5122
5123 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5124 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5125
f6da8dd8
MH
51262004-07-23 Martin Hunt <hunt@redhat.com>
5127 Kevin Buettner <kevinb@redhat.com>
5128
5129 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5130 alignment was being added to the offset instead of multiplied.
5131
bd921882
MK
51322004-07-23 Mark Kettenis <kettenis@gnu.org>
5133
24f033e8
MK
5134 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5135 changed signal trampoline in OpenBSD 3.5-current.
5136
90f3cecd
MK
5137 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5138 <machine/pcb.h> and "bsd-kvm.h".
5139 (sparc64nbsd_supply_pcb): New function.
5140 (_initialize_sparc64nbsd_nat): Renamed from
5141 _initialize_sparcnbsd_nat. Enable libkvm interface.
5142 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5143 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5144 (LOADLIBES): New variable.
5145
a4954a62
MK
5146 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5147
bd921882
MK
5148 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5149
23a6d369
AC
51502004-07-21 Andrew Cagney <cagney@gnu.org>
5151
5152 Use regcache_raw_supply instead of supply_register.
5153 * regcache.h (supply_register): Delete declaration.
5154 * regcache.c (supply_register): Delete function.
5155 * wince.c (do_child_fetch_inferior_registers): Update.
5156 * win32-nat.c (do_child_fetch_inferior_registers)
5157 (fetch_elf_core_registers): Update.
5158 * v850ice.c (v850ice_fetch_registers): Update.
5159 * thread-db.c (thread_db_store_registers): Update.
5160 * sol-thread.c (sol_thread_store_registers): Update.
5161 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5162 * rs6000-nat.c (fetch_register): Update.
5163 * rom68k-rom.c (rom68k_supply_one_register): Update.
5164 * remote.c (remote_wait, remote_async_wait): Update.
5165 * remote-st.c (get_hex_regs): Update.
5166 * remote-sim.c (gdbsim_fetch_register): Update.
5167 * remote-sds.c (sds_fetch_registers): Update.
5168 * remote-rdp.c (remote_rdp_fetch_register): Update.
5169 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5170 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5171 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5172 * remote-hms.c (init_hms_cmds): Update.
5173 * remote-est.c (init_est_cmds): Update.
5174 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5175 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5176 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5177 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5178 (fetch_register, supply_vrregset, supply_vrregset)
5179 (fetch_spe_registers): Update.
5180 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5181 * monitor.c (monitor_supply_register): Update.
5182 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5183 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5184 (mipsnbsd_supply_fpreg): Update.
5185 * mips-nat.c (fetch_inferior_registers)
5186 (fetch_core_registers): Update.
5187 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5188 (supply_fpregset, mips64_supply_gregset)
5189 (mips64_supply_fpregset): Update.
5190 * m68klinux-nat.c (fetch_register, supply_gregset)
5191 (supply_fpregset): Update.
5192 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5193 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5194 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5195 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5196 * infptrace.c (fetch_register): Update.
5197 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5198 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5199 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5200 (gnu_fetch_registers, gnu_store_registers): Update.
5201 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5202 * i386-linux-nat.c (fetch_register, supply_gregset)
5203 (dummy_sse_values): Update.
5204 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5205 * hppah-nat.c (fetch_register): Update.
5206 * hppa-linux-nat.c (fetch_register, supply_gregset)
5207 (supply_fpregset): Update.
5208 * go32-nat.c (fetch_register): Update.
5209 * dve3900-rom.c (fetch_bitmapped_register)
5210 (_initialize_r3900_rom): Update.
5211 * cris-tdep.c (supply_gregset): Update.
5212 * abug-rom.c (init_abug_cmds): Update.
5213 * core-aout.c (fetch_core_registers): Update.
5214 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5215 (fetch_register, fetch_fp_register): Update.
5216 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5217 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5218 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5219 * alphanbsd-tdep.c (fetch_core_registers): Update.
5220 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5221 * alpha-nat.c (fetch_osf_core_registers)
5222 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5223 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5224 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5225
73cc75f3
AC
52262004-07-21 Andrew Cagney <cagney@gnu.org>
5227
5228 * PROBLEMS: Mention breakpoints/1702.
5229 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5230 that is known to work.
5231
a53c66de
AC
52322004-07-21 Andrew Cagney <cagney@gnu.org>
5233
5234 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5235 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5236 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5237 (handle_inferior_event): Wrap call to deprecated
5238 IGNORE_HELPER_CALL in #ifdef.
5239 * config/mips/tm-nbsd.h: Update.
5240
708ff411
JB
52412004-07-20 Jim Blandy <jimb@redhat.com>
5242
412b3060
JB
5243 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5244 bfd_mach_ppc has no segment registers.
5245
13ac140c
JB
5246 Include PowerPC SPR numbers for special-purpose registers.
5247 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5248 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5249 new member in initializer.
5250 (S, S4, SN4, S64): New macros for defining special-purpose
5251 registers.
5252 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5253 registers_403, registers_403GC, registers_505, registers_860,
5254 registers_601, registers_602, registers_603, registers_604,
5255 registers_750, registers_e500): Use them.
5256
708ff411
JB
5257 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5258 replace references with expression used to initialize variable.
5259
1f602b35
AC
52602004-07-20 Andrew Cagney <cagney@gnu.org>
5261
5262 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5263 read_memory_nobpt.
5264 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5265 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5266 (s390_sigtramp_frame_sniffer): Update.
5267 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5268 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5269 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5270 (mips32_fetch_instruction): Update.
5271 * mcore-tdep.c (get_insn): Update.
5272 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5273 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5274 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5275 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5276 (i386_linux_rt_sigtramp_start): Update.
5277 * i386-linux-nat.c (child_resume): Update.
5278 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5279 * hppa-linux-tdep.c (insns_match_pattern): Update.
5280 * gdbcore.h: Update.
5281 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5282 * frame.c (safe_frame_unwind_memory): Update.
5283 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5284 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5285 * alpha-tdep.c (alpha_read_insn): Update.
5286
2cd8546d
AC
52872004-07-20 Andrew Cagney <cagney@gnu.org>
5288
5289 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5290 containing both bytes and mask. Add "frame_type".
5291 * tramp-frame.c (tramp_frame_start): Update.
5292 (tramp_frame_prepend_unwinder): Update.
5293 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5294 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5295 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5296 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5297
f928dd62
EZ
52982004-07-19 Eli Zaretskii <eliz@gnu.org>
5299
5300 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5301 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5302 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5303 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5304
d5c560f7
AC
53052004-07-17 Andrew Cagney <cagney@gnu.org>
5306
860660cb
AC
5307 * NEWS, PROBLEMS: Update for 6.2.
5308
8c266f54
AC
5309 * README: Update to 6.2.
5310
a552edd9
AC
5311 * utils.c (xvasprintf): Call xstrvprintf.
5312
c4a172b5
AC
5313 * parse.c: Update copyright.
5314 (null_post_parser): Eliminate ARGSUSED.
5315
da745b36
AC
5316 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5317 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5318 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5319
9cbc6ef0
AC
5320 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5321 * ppc-linux-nat.c: Use "Linux kernel".
5322 * hppa-linux-tdep.c: Use GNU/Linux.
5323 * hppa-linux-nat.c: Use GNU/Linux.
5324 * dwarfread.c: Add [sic] to use of Linux.
5325
1b89295f
AC
5326 * hppa-linux-nat.c: Do not include <string.h>.
5327 (supply_fpregset): Remove "register" attribute.
5328
d5c560f7
AC
5329 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5330
7ddd7709
MK
53312004-07-17 Mark Kettenis <kettenis@gnu.org>
5332
b1d19a62
MK
5333 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5334 * configure, config.in: Regenerated.
5335
7ddd7709
MK
5336 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5337 "bsd-kvm.h".
5338 (vaxbsd_supply_pcb): New function.
5339 (_initialize_vaxbsd_nat): New prototype and function.
5340 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5341 solib-sunos.o.
5342 (LOADLIBES): New variable.
5343 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5344 (LOADLIBES): New variable.
5345 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5346 (LOADLIBES): New variable.
5347 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5348
2c07db7a
AC
53492004-07-16 Andrew Cagney <cagney@gnu.org>
5350
5351 * defs.h (event_loop_p): Replace variable declaration with macro,
5352 always 1.
5353 * main.c (captured_main): Delete options "-async" and "-noasync".
5354 (event_loop_p): Delete variable.
5355 * NEWS: Mention that "-async" and "-noasync" were removed.
5356
717eb1cf
AC
53572004-07-16 Andrew Cagney <cagney@gnu.org>
5358
5359 * remote-m32r-sdi.c: Re-indent.
5360
c101bc14
JB
53612004-07-16 Jim Blandy <jimb@redhat.com>
5362
5109a438
JB
5363 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5364 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5365 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5366 missing MPC823 SPRs.
5367 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5368 incorrect. (This was corrected in GDB's register name tables on
5369 2004-07-14.)
5370
c101bc14
JB
5371 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5372 should be "esasrr" ("ESA Save and Restore Register").
5373
7ce450bd
AC
53742004-07-16 Andrew Cagney <cagney@gnu.org>
5375
5376 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5377 calls, no longer applicable. Update comments and rename parameter
5378 "step_frame" to "return_frame".
5379
ca73dd9d
AC
53802004-07-16 Andrew Cagney <cagney@gnu.org>
5381
5382 * frame.c (fprint_field): New function.
5383 (fprint_frame_id): Use fprint_field.
5384
31941f6d
JB
53852004-07-15 Joel Brobecker <brobecker@gnat.com>
5386
5387 * ada-lang.c (ada_language_defn): Remove commented out code.
5388
f86a7158
JB
53892004-07-15 Jim Blandy <jimb@redhat.com>
5390
5391 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5392 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5393
c24791ec
JB
53942004-07-14 Jim Blandy <jimb@redhat.com>
5395
29bb1356
JB
5396 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5397
cc98b5cc
JB
5398 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5399
8f088af7
JB
5400 * ppc-tdep.h (ppc_num_srs): New enum constant.
5401
0ea0ec5f
JB
5402 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5403 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5404 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5405 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5406 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5407 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5408 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5409 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5410 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5411 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5412 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5413 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5414 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5415 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5416 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5417 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5418 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5419 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5420 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5421 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5422 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5423 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5424 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5425 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5426 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5427 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5428 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5429 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5430 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5431 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5432 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5433 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5434 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5435 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5436 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5437 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5438 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5439 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5440 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5441 special-purpose register numbers.
5442
c24791ec
JB
5443 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5444 manual mentions 'md_twb', but many mention 'm_twb', and at that
5445 point in the register list.)
5446
d833db3b
AC
54472004-07-14 Andrew Cagney <cagney@gnu.org>
5448
5449 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5450 instead of "internal-error".
5451
080228b2
JB
54522004-07-10 Joel Brobecker <brobecker@gnat.com>
5453
5454 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5455 that was inserted inside a comment.
5456
c268433a
RC
54572004-07-10 Randolph Chung <tausq@debian.org>
5458
5459 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5460 function.
5461 (hppa_hpux_push_dummy_code): New function.
5462 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5463 Set find_global_pointer method.
5464
71009278
MK
54652004-07-10 Mark Kettenis <kettenis@gnu.org>
5466
5467 * NEWS: Mention BSD libkvm interface.
5468
b2fa5097
MS
54692004-07-10 Michael Snyder <msnyder@redhat.com>
5470
5471 * symfile.c (generic_load): Comment typo.
5472 * stack.c (get_selected_block): Ditto.
5473 * regcache.c (regcache_cooked_read): Ditto.
5474 * monitor.c (monitor_debug): Ditto.
5475 * mips-tdep.c (mips_read_pc): Ditto.
5476 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5477 * gdb_mbuild.sh: Ditto.
5478 * gdbarch.sh: Ditto.
5479 * gdbarch.h: Ditto.
5480
c3e5cd34
PH
54812004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5482
8a2225b2
PH
5483 * ada-tasks.c: Remove file.
5484
c3e5cd34
PH
5485 Remove ARI problems:
5486
5487 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5488 beginning of line.
5489
5490 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5491 Add comment.
5492 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5493 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5494 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5495 (UMIN_OF_SIZE): Remove.
5496 (max_of_type): New function to replace orphan macro in gdbtypes.h
5497 (min_of_type): Ditto.
5498 (discrete_type_high_bound): Use max_of_type.
5499 (discrete_type_low_bound): Use min_of_type.
5500 (possible_user_operator_p): Move operator to beginning of line.
5501 (ada_is_variant_part): Ditto.
5502 (ensure_lval): Rewrite to avoid deprecated operations.
5503 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5504 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5505 (ada_enum_name): Remove assignments in 'if' statements.
5506 (build_ada_types): Add gdbarch parameter.
5507 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5508 with gdbarch_data_register_post_init.
5509 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5510 add_show_from_set.
5511
5512 * ada-valprint.c (inspect_it): Remove declaration.
5513 (repeat_count_threshold): Remove declaration.
5514 (ada_print_floating): Remove assignments in 'if' statements.
5515 (print_str): Move operator to beginning of line.
5516
61ce229a
JB
55172004-07-08 Jim Blandy <jimb@redhat.com>
5518
5519 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5520
09bcec80
BR
55212004-07-08 Bob Rossi <bob@brasko.net>
5522
5523 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5524
31c27f77
JJ
55252004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5526
5527 * language.h (struct_language_defn): Add new function pointer:
5528 la_class_name_from_physname. Also add new prototype for
5529 language_class_name_from_physname.
5530 * language.c (language_class_name_from_physname): New function.
5531 (unk_lang_class_name): Ditto.
5532 (unknown_language_defn, auto_language_defn): Change
5533 to add unk_lang_class_name function pointer for
5534 la_class_name_from_physname.
5535 (local_language_defn): Ditto.
5536 * dwarf2read.c (guess_structure_name): Change to call
5537 language_class_name_from_physname.
5538 (determine_class_name): Ditto.
5539 * cp-support.c (class_name_from_physname): Renamed.
5540 (cp_class_name_from_physname): New name of function.
5541 * cp-support.h: Ditto.
5542 * c-lang.c (c_language_defn): Change to add NULL
5543 for class_name_from_physname function pointer.
5544 (cplus_language_defn): Change to add cp_class_name_from_physname.
5545 * jv-lang.c (java_class_name_physname): New function.
5546 (java_find_last_component): New static routine.
5547 (java_language_defn): Add java_class_name_from_physname pointer.
5548 * ada-lang.c (ada_language_defn): Change to add NULL
5549 for class_name_from_physname function pointer.
5550 * f-lang.c (f_language_defn): Ditto.
5551 * m2-lang.c (m2_language_defn): Ditto.
5552 * objc-lang.c (objc_language_defn): Ditto.
5553 * p-lang.c (pascal_language_defn): Ditto.
5554 * scm-lang.c (scm_language_defn): Ditto.
5555
ee28ca0f
AC
55562004-07-06 Andrew Cagney <cagney@gnu.org>
5557
5558 Patch from Bart Robinson.
5559 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5560 (O_LARGEFILE): Define to 0, if not defined.
5561
fdb1bf9d
MK
55622004-07-03 Mark Kettenis <kettenis@gnu.org>
5563
cb162ff6
MK
5564 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5565 <machine/pcb.h> and "bsd-kvm.h".
5566 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5567 (m68kbsd_supply_pcb): New function.
5568 (_initialize_m68kbsd_nat): New prototype and function.
5569 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5570 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5571 (LOADLIBES): New variable.
5572 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5573 (LOADLIBES): New variable.
5574
fdb1bf9d
MK
5575 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5576
963c4174
MK
55772004-07-03 Mark Kettenis <kettenis@gnu.org>
5578
5579 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5580 <sys/proc.h>.
5581 (bsd_kvm_cmdlist): New variable.
5582 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5583 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5584 command and "kvm proc" command.
5585 * Makefile.in (bsd-kvm.o): Update dependencies.
5586
533f1d8f
MK
55872004-07-02 Mark Kettenis <kettenis@gnu.org>
5588
5589 * osabi.c: Update copyright year.
5590 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5591 notes if EI_OSABI is set to ELFOSABI_HPUX.
5592
6780dcde
MS
55932004-07-01 Michael Snyder <msnyder@redhat.com>
5594
5595 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5596 that seems to have gotten whacked out of line.
5597
67bebe79
MK
55982004-07-01 Mark Kettenis <kettenis@gnu.org>
5599
5600 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5601 code.
5602
0b5d8877
PH
56032004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5604
5605 * ada-lang.c (decode_packed_array): Minor change to comment.
5606 (ada_value_slice_ptr): New function.
5607 (ada_value_slice): New function.
5608 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5609 test. Don't know why it is there.
5610 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5611 to avoid dereferencing huge arrays from which one is slicing.
5612 (empty_array): Correct to return an array rather than
5613 a subrange value.
5614 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5615 on empty arrays (let'em use 'FIRST instead).
5616
19c1ef65
PH
56172004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5618
5619 Address complaints from gdb_ari.sh:
5620
5621 * ada-exp.y: Include gdb_string.h rather than string.h.
5622 (convert_char_literal): Reformat declaration.
5623 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5624 * ada-lex.l: Change use of free to xfree (the macro would do so
5625 anyway, but this is harmless).
5626 Include gdb_string.h rather than string.h.
5627 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5628
5629 * ada-lang.c (parse): Remove K&Rism in parameter list.
5630 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5631
d81cbc94
MK
56322004-06-30 Mark Kettenis <kettenis@gnu.org>
5633
5634 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5635 dead code.
5636
07681759
MK
56372004-06-30 Mark Kettenis <kettenis@gnu.org>
5638
5639 * alphabsd-nat.c: Update copyright year.
5640 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5641
f7948b5f
JB
56422004-06-29 Joel Brobecker <brobecker@gnat.com>
5643
6e0cdd28 5644 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
5645 (i386_cygwin_in_solib_call_trampoline): New function.
5646 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5647 and skip_trampoline_code gdbarch methods.
5648
8f113c9a
JB
56492004-06-29 Jim Blandy <jimb@redhat.com>
5650
5651 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5652 name actually used in the dependency lists.
5653
97dc871c
RC
56542004-06-29 Randolph Chung <tausq@debian.org>
5655
5656 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5657
47216e51
CV
56582004-06-29 Corinna Vinschen <vinschen@redhat.com>
5659
5660 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 5661 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
5662 functionality.
5663
e623b504
AC
56642004-06-28 Andrew Cagney <cagney@gnu.org>
5665
5666 * defs.h (xstrvprintf): Declare.
5667 * utils.c (xstrvprintf): New function.
5668 (internal_vproblem, xstrprintf, xasprintf)
5669 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5670 * serial.c (serial_printf): Ditto.
5671 * complaints.c (vcomplaint): Ditto.
5672
79acc9b3
CV
56732004-06-29 Corinna Vinschen <vinschen@redhat.com>
5674
5675 * infcmd.c (attach_command): Move call to target_terminal_inferior
5676 behind loading symbol table.
5677
1daf35d9
AC
56782004-06-28 Andrew Cagney <cagney@gnu.org>
5679
5680 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5681 change - add back extern deprecated_ui_loop_hook declaration.
5682
b435e160
AC
56832004-06-28 Andrew Cagney <cagney@gnu.org>
5684
5685 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5686 xstrprintf.
5687 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5688 (c_value_of_variable): Ditto.
5689 * utils.c (internal_vproblem): Ditto.
5690 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5691 * remote.c (add_packet_config_cmd): Ditto.
5692 * remote-rdp.c (rdp_set_command_line): Ditto.
5693 * regcache.c (regcache_dump): Ditto.
5694 * frv-tdep.c (new_variant, new_variant): Ditto.
5695 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5696 (fbsd_find_memory_regions): Ditto.
5697 * breakpoint.c (create_thread_event_breakpoint)
5698 (create_breakpoints): Ditto.
5699 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5700 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5701
06d5cf63
JB
57022004-06-28 Joel Brobecker <brobecker@gnat.com>
5703
5704 * ada-lang.c: Re-indent file, with some massaging to help indent
5705 a bit when the result is otherwise really too ugly.
5706
35809fad
UW
57072004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5708
5709 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5710 code_addr_p and special_addr_p to 'unsigned int'.
5711
40e20472
MK
57122004-06-27 Mark Kettenis <kettenis@gnu.org>
5713
5714 * i386v4-nat.c: Update copyright year and tweak comment.
5715 (regmap): Remove trailing comma.
5716 (supply_gregset): Rename local variable i to regnum. Call
5717 regcache_raw_supply instead of supply_register.
5718 (fill_gregset): Rename argument regno to regnum. Call
5719 regcache_raw_collect instead of regcache_collect.
5720
12b0b6de
UW
57212004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5722
5723 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5724 and special_addr_p.
5725 (frame_id_build, frame_id_build_special): Update comments.
5726 (frame_id_build_wild): New prototype.
5727 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5728 struct frame_id fields.
5729 (frame_id_build_wild): New function.
5730 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5731
47b42a3e
MK
57322004-06-27 Mark Kettenis <kettenis@gnu.org>
5733
5734 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5735 hppabsd-tdep.c.
5736
1265e4aa
JB
57372004-06-27 Joel Brobecker <brobecker@gnat.com>
5738
5739 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5740
76a01679
JB
57412004-06-27 Joel Brobecker <brobecker@gnat.com>
5742
5743 * ada-lang.c: Re-indent file.
5744
7aca490a
JB
57452004-06-27 Joel Brobecker <brobecker@gnat.com>
5746
5747 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5748 (no_symtab_msg): Likewise.
5749
5e987968
AS
57502004-06-27 Andreas Schwab <schwab@suse.de>
5751
5752 * source.c: Fix whitespace.
5753
315c4276
MK
57542004-06-27 Mark Kettenis <kettenis@gnu.org>
5755
d15be926
MK
5756 * configure.in: Include <sys/param.h> for td_pcb test.
5757 * configure: Regenerated.
5758
9062529b
MK
5759 * i386nbsd-nat.c: New file.
5760 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5761 i386obsd-nat.c and i386obsd-tdep.c.
5762 (i386nbsd-nat.o): New dependency.
5763 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5764 bsd-kvm.o.
5765 (LOADLIBES): New variable.
5766 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5767 bsd-kvm.o.
5768 (LOADLIBES): New variable.
5769
8010310e
MK
5770 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5771 (LOADLIBES): New variable.
5772
efe1d7b9
MK
5773 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5774 fetching from BSD_KVM_PADDR. Correctly lookup address for
5775 "_thread0".
5776
315c4276
MK
5777 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5778 "bsd-kvm.h".
5779 (amd64fbsd_supply_pcb): New funcion.
5780 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5781
399cfac6
DL
57822004-06-27 <david@streamline-computing.com>
5783
5784 Partial fix for PR cli/1056.
5785 * valarith.c: Check for zero in division and remainder
5786 evaluation.
5787
6235f9c8
MK
57882004-06-27 Mark Kettenis <kettenis@gnu.org>
5789
5790 * i387-tdep.c: Remove excessive whitespace.
5791
2726dafc
AC
57922004-06-26 Andrew Cagney <cagney@gnu.org>
5793
5794 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5795 * gdb-events.h, gdb-events.c: Re-generate.
5796 * tui/tui-hooks.c (tui_install_hooks): Update.
5797 (tui_remove_hooks): Update.
5798 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5799
0e56aeaf
MK
58002004-06-26 Mark Kettenis <kettenis@gnu.org>
5801
cb461069
MK
5802 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5803 (gregset_t, fpregset_t): Remove typedefs.
5804 (REG_OFFSET): Rename argument.
5805 (amd64bsd_r_reg_offset): Rename from reg_offset.
5806 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5807 Remove functions.
5808 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5809 of reg_offset.
5810 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5811
ecba89de
MK
5812 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5813
4cd80476
MK
5814 * vax-tdep.c: Tweak comment.
5815
0e56aeaf
MK
5816 Add OpenBSD/hppa support.
5817 * NEWS (New native configurations): Mention OpenBSD/hppa.
5818 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5819 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5820 files.
5821 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5822 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5823 * configure.host: Add hppa*-*-openbsd*.
5824 * configure.tgt: Add hppa*-*-openbsd*.
5825
98bbd631
AC
58262004-06-25 Andrew Cagney <cagney@gnu.org>
5827
5828 * defs.h (deprecated_ui_loop_hook): Deprecated.
5829 * wince.c (child_wait): Update.
5830 * win32-nat.c (child_wait): Update.
5831 * v850ice.c (v850ice_wait): Update.
5832 * top.c (deprecated_ui_loop_hook): Update.
5833 * serial.h: Update.
5834 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5835 (do_unix_readchar): Update.
5836 * ser-tcp.c (net_open): Update.
5837 * remote-sim.c (gdb_os_poll_quit): Update.
5838 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5839
769d7dc4
AC
58402004-06-24 Andrew Cagney <cagney@gnu.org>
5841
5842 * defs.h (deprecated_pre_add_symbol_hook)
5843 (deprecated_post_add_symbol_hook): Deprecated.
5844 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5845 (symbol_file_add_with_addrs_or_offsets): Update references.
5846
11c949aa
AC
58472004-06-24 Andrew Cagney <cagney@gnu.org>
5848
5849 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5850 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5851 * wince.c (ui_loop_hook): Delete extern declaration.
5852 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5853 * v850ice.c (ui_loop_hook): Delete extern declaration..
5854 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5855 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5856 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5857 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5858 ui_loop_hook declaration.
5859
eedc19af
AC
58602004-06-24 Andrew Cagney <cagney@gnu.org>
5861
5862 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5863 entry_func_highpc fields.
5864 * objfiles.c (init_entry_point_info): Do not clear
5865 entry_func_lowpc and entry_func_highpc.
5866 (objfile_relocate): Do not relocate entry_func_lowpc and
5867 entry_func_highpc.
5868 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5869 entry_func_highpc.
5870 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5871 entry_func_highpc.
5872 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5873 entry_func_lowpc and entry_func_highpc with call to
5874 inside_entry_func.
5875
d47079be
MK
58762004-06-24 Mark Kettenis <kettenis@gnu.org>
5877
5878 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5879 quad-precision floating point arguments in registers.
5880
2107e348
MK
58812004-06-24 Mark Kettenis <kettenis@gnu.org>
5882
5883 From Michael Mueller <m.mueller99@kay-mueller.de>:
5884 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5885 account.
5886
46587c42
JJ
58872004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5888
5889 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5890 to -1.
5891 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5892 untriggered watchpoints to a separate if clause. Update function
5893 comment regarding STOPPED_BY_WATCHPOINT argument.
5894
226f5cf4
JB
58952004-06-22 Jim Blandy <jimb@redhat.com>
5896
5897 * gdbarch.sh: Doc fix.
5898
f10683bb
MH
58992004-06-21 Martin Hunt <hunt@redhat.com>
5900 Kevin Buettner <kevinb@redhat.com>
5901
5902 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5903 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5904 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5905 to set_gdbarch_sp_regnum(). Use cooked register number.
5906 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5907
412d5987
AC
59082004-06-21 Andrew Cagney <cagney@gnu.org>
5909
5910 * gdbarch.sh: When the macro field is empty, do not generate a
5911 macro definition. When the macro field is "=", generate the macro
5912 name from the upper-case function name.
5913 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5914 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5915 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5916 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5917 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5918 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5919 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5920 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5921 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5922 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5923 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5924 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5925 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5926 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5927 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5928 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5929 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5930 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5931 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5932 (DEPRECATED_USE_STRUCT_CONVENTION)
5933 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5934 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5935 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5936 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5937 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5938 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5939 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5940 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5941 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5942 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5943 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5944 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5945 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5946 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5947 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5948 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5949 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5950 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5951
68908a3e
AC
59522004-06-21 Andrew Cagney <cagney@gnu.org>
5953
48f7351b
AC
5954 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5955 macro name, and the function rather than macro value. Only wrap
5956 macro print statements in #ifdef. Move format logic to where it
5957 is needed.
5958 * gdbarch.c: Re-generate.
5959
283354d8
AC
5960 * gdbarch.sh (read): Delete "print_p" and "description", add
5961 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5962 Delete references to print_p.
5963 (TARGET_ARCHITECTURE): Delete print predicate.
5964 * gdbarch.c: Re-generate.
5965
68908a3e
AC
5966 * gdbarch.sh: Check that multi-arch methods do not provide a
5967 macro.
5968 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5969 (print_registers_info, print_float_info, print_vector_info)
5970 (adjust_breakpoint_address, remote_translate_xfer_address)
5971 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5972 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5973 name from the multi-arch definition.
5974
a2428dbe
AC
59752004-06-20 Andrew Cagney <cagney@gnu.org>
5976
5977 * gdbarch.sh: Sort by the function, instead of macro name.
5978 * gdbarch.c: Re-generate.
5979
750eb019
AC
59802004-06-20 Andrew Cagney <cagney@gnu.org>
5981
66d659b1
AC
5982 * gdbarch.sh: Use the function, instead of macro name in
5983 errors and the log file.
5984 (return_value): Remove stray ":" in spec.
5985
750eb019
AC
5986 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5987 * gdbarch.h, gdbarch.c: Re-generate.
5988 * Makefile.in (arch-utils.o): Update dependencies.
5989 * values.c (using_struct_return): Move code calling
5990 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5991 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5992 to legacy_return_value, simplify.
5993 * infcmd.c (print_return_value): Move code calling
5994 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5995 to legacy_return_value, simplify.
5996 * infcall.c (call_function_by_hand): Move code calling
5997 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5998 * arch-utils.c: Update copyright. Include "gdbcore.h".
5999 (legacy_return_value): New function.
6000 * arch-utils.h: Update copyright.
6001 (legacy_return_value): Declare.
6002
b5622e8d
AC
60032004-06-20 Andrew Cagney <cagney@gnu.org>
6004
6005 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
6006 * gdbarch.h, gdbarch.c: Re-generate.
6007 * values.c (using_struct_return): Update call.
6008 * mcore-tdep.c: Update comment.
6009 * infcall.c (call_function_by_hand): Update comment.
6010 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6011 * arch-utils.h (always_use_struct_convention): Update.
6012 * v850-tdep.c (v850_gdbarch_init): Update.
6013 * sh64-tdep.c (sh64_gdbarch_init): Update.
6014 * sh-tdep.c (sh_gdbarch_init): Update.
6015 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6016 * mips-tdep.c (mips_gdbarch_init): Update.
6017 * mcore-tdep.c (mcore_gdbarch_init): Update.
6018 * m32r-tdep.c (m32r_gdbarch_init): Update.
6019 * ia64-tdep.c (ia64_gdbarch_init): Update.
6020 * h8300-tdep.c (h8300_gdbarch_init): Update.
6021 * frv-tdep.c (frv_gdbarch_init): Update.
6022 * cris-tdep.c (cris_gdbarch_init): Update.
6023 * arm-tdep.c (arm_gdbarch_init): Update.
6024 * alpha-tdep.c (alpha_gdbarch_init): Update.
6025
5191de37
MC
60262004-06-18 Michael Chastain <mec.gnu@mindspring.com>
6027
6028 * PROBLEMS: Add more specific information, and a work-around,
6029 for PR gdb/1458.
6030
782263ab
AC
60312004-06-18 Andrew Cagney <cagney@gnu.org>
6032
6033 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
6034 * gdbarch.h, gdbarch.c: Re-generate.
6035 * ada-lang.c (ada_finish_decode_line_1): Update.
6036 * infrun.c (handle_inferior_event): Update.
6037 * infcall.c (find_function_addr): Update.
6038 * linespec.c (minsym_found): Update.
6039 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
6040 Update.
6041 * blockframe.c (legacy_frameless_look_for_prologue): Update.
6042 * cli/cli-cmds.c (disassemble_command): Update.
6043 * vax-tdep.c (vax_gdbarch_init): Update.
6044
2f305df1
MK
60452004-06-18 Mark Kettenis <kettenis@gnu.org>
6046
6047 * i386-tdep.c (i386_collect_fpregset): Fix comment.
6048
e5fe55f7
AC
60492004-06-17 Andrew Cagney <cagney@gnu.org>
6050
6051 GDB 6.1.1 released from the GDB 6.1 branch.
6052 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6053 * PROBLEMS: Ditto.
6054
473b7be6
DJ
60552004-06-16 Daniel Jacobowitz <dan@debian.org>
6056
6057 PR gdb/1658
6058 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6059 operation as a uleb128. Found by Michael Coulter.
6060
96d887e8
PH
60612004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
6062
6063 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6064 make it non-static.
6065 * ada-lang.h (task_control_block): declaration moved from ada-task.c
6066 to ada-lang.h; this is needed to be able to implement the kill command
6067 in multi-task mode.
6068 (task_ptid): Ditto.
6069 (task_entry): Ditto.
6070 (task_list): Ditto.
6071 (ada_build_task_list): Ditto.
6072
6073 * ada-lang.c: Conditionalize routines and data structures related
6074 to breakpoints, exceptions, completion, and symbol caching on
6075 GNAT_GDB, since these are not yet used in the submitted public sources.
6076 (ada_main_name): Editorial: Move definition out of exception-related
6077 code.
6078
31eef181
AC
60792004-06-15 Andrew Cagney <cagney@gnu.org>
6080
6081 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6082 deprecated_pc_in_call_dummy.
6083
2c500098
AM
60842004-06-15 Alan Modra <amodra@bigpond.net.au>
6085
6086 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6087 bfd_get_section_size_before_reloc or _raw_size.
6088 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6089 * dwarf2read.c (dwarf2_locate_sections): Likewise.
6090 (dwarf2_read_section): Likewise.
6091 * elfread.c (elf_locate_sections): Likewise.
6092 * gcore.c (derive_heap_segment): Likewise.
6093 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6094 * remote-e7000.c (e7000_load): Likewise.
6095 * remote-m32r-sdi.c (m32r_load): Likewise.
6096 * remote-mips.c (mips_load_srec): Likewise.
6097 (pmon_load_fast): Likewise.
6098 * remote.c (compare_sections_command): Likewise.
6099 * symfile.c (add_section_size_callback): Likewise.
6100 (load_section_callback): Likewise.
6101 (pc_in_unmapped_range): Likewise.
6102 (pc_in_mapped_range): Likewise.
6103 (sections_overlap): Likewise.
6104 (list_overlays_command): Likewise.
6105 (simple_overlay_update_1): Likewise.
6106 (simple_overlay_update): Likewise.
6107 * tracepoint.c (remote_set_transparent_ranges): Likewise.
6108 * win32-nat.c (core_section_load_dll_symbols): Likewise.
6109
90f943f1
RC
61102004-06-14 Randolph Chung <tausq@debian.org>
6111
6112 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6113 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6114 static.
6115 (hppa_hpux_inferior_created): New function.
6116 (hppa_hpux_init_abi): Register observer.
6117 * symfile.c (hp_cxx_exception_support_initialized)
6118 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6119 (symbol_file_add_main_1, symbol_file_clear): Likewise.
6120
700c15aa
RC
61212004-06-14 Randolph Chung <tausq@debian.org>
6122
3973a7d3
AC
6123 * MAINTAINERS (Write After Approval): Alphabetize my entry
6124 correctly.
700c15aa 6125
cea4838c
AC
61262004-06-14 Andrew Cagney <cagney@gnu.org>
6127
6128 * MAINTAINERS (testsuite): List Michael Chastain as the lead
6129 testsuite maintainer.
6130
97092415
AC
61312004-06-13 Andrew Cagney <cagney@gnu.org>
6132
e8c3165b
AC
6133 * infcmd.c (print_return_value): Fix logic, allow
6134 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6135
bceabdd8
AC
6136 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6137 defining any macros.
6138 * gdbarch.h: Re-generate.
6139
57010b1c
AC
6140 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6141 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6142 * gdbarch.h: Re-generate.
6143
bc87dfa0
AC
6144 * values.c (generic_use_struct_convention): Don't check gcc_p.
6145
15ac804d
AC
6146 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6147 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6148 * gdbarch.h, gdbarch.c: Regenerate.
6149 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6150 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6151 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6152 deprecated_max_register_raw_size and
6153 deprecated_max_register_virtual_size.
6154 * v850-tdep.c (v850_gdbarch_init): Ditto.
6155 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6156 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6157 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6158 * cris-tdep.c (cris_gdbarch_init): Ditto.
6159
97092415
AC
6160 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6161 * gdbarch.h, gdbarch.c: Re-generate.
6162 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6163 (m68hc11_use_struct_convention): Delete function.
6164 (m68hc11_extract_struct_value_address): Delete function.
6165 (m68hc11_return_value): New function.
6166 (m68hc11_gdbarch_init): Instead of store_return_value,
6167 extract_return_value, return_value_on_stack,
6168 deprecated_extract_struct_value_address and use_struct_convention,
6169 set return_value.
6170 * values.c (using_struct_return): Do not call
6171 RETURN_VALUE_ON_STACK.
6172 * arch-utils.h (generic_return_value_on_stack_not): Delete
6173 declaration.
6174 * arch-utils.c (generic_return_value_on_stack_not): Delete
6175 function.
6176
44e5158b
AC
61772004-06-12 Andrew Cagney <cagney@gnu.org>
6178
6179 * values.c (register_value_being_returned): Delete function.
6180 * infcmd.c (legacy_return_value): Delete function.
6181 * infcall.c (call_function_by_hand): Inline
6182 "register_value_being_returned", simplify.
6183 * values.c (using_struct_return): Update comment, refer to
6184 print_return_value instead of register_value_being_returned.
6185 * infcmd.c (print_return_value): Inline calls to
6186 register_value_being_returned and legacy_return_value. Simplify.
6187
b887c273
RC
61882004-06-11 Randolph Chung <tausq@debian.org>
6189
6190 * somread.c (som_symtab_read): Exclude gcc local symbols.
6191
1b2bfbb9
RC
61922004-06-11 Randolph Chung <tausq@debian.org>
6193
3973a7d3
AC
6194 * infrun.c (handle_inferior_event): Handle the case when a
6195 trampoline ends up in the runtime resolver, and if the trampoline
6196 has no name. Rearrange the code so that all the trampoline
6197 processing happens before other step-out-of-range handling.
1b2bfbb9 6198
a9d61c86
MH
61992004-06-11 Martin Hunt <hunt@redhat.com>
6200
6201 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6202 has no fpu.
6203
2c87cf5a
AC
62042004-06-10 Andrew Cagney <cagney@gnu.org>
6205
6206 * blockframe.c (legacy_inside_entry_func): Delete.
6207 (legacy_frame_chain_valid): Inline call to
6208 legacy_inside_entry_func, simplify.
6209
0b67b468 62102004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
6211
6212 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
6213 * dwarf2read.c (partial_die_info): Add dirname field.
6214 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6215 (read_partial_die): Save away DW_AT_comp_dir.
6216 * defs.h (symtab_to_filename): Removed.
6217 * source.c (find_and_open_source): Added.
57c22c6c 6218 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
6219 (symtab_to_filename): Removed.
6220 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
6221 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6222 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6223 symtab_to_filename.
6224 * symtab.h (partial_symtab): Add dirname field.
6225 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
6226 (mi_cmd_file_list_exec_source_file): Call new function
6227 symtab_to_fullname to find fullname.
57c22c6c 6228 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 6229 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
6230 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6231
9a1dd1ad
AC
62322004-06-10 Andrew Cagney <cagney@gnu.org>
6233
239ae8c7
AC
6234 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6235 to generic_use_struct_convention, the default value.
6236
fc720350
AC
6237 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6238 of abort.
6239
9a1dd1ad
AC
6240 * ns32k-tdep.c (ns32k_push_arguments): New function.
6241 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6242 * infcall.c (call_function_by_hand): Call error instead of
6243 legacy_push_arguments.
6244 * value.h (legacy_push_arguments): Delete declaration.
6245 * valops.c (legacy_push_arguments): Delete function.
6246 (value_push): Delete function.
6247
fea25152
BF
62482004-06-10 Brian Ford <ford@vss.fsi.com>
6249
6250 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6251 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6252 info.
6253 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6254
30a4a8e0
AC
62552004-06-10 Andrew Cagney <cagney@gnu.org>
6256
6257 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6258 * gdbarch.h, gdbarch.c: Re-generate.
6259 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6260 parameters.
6261 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6262 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6263 deprecated_pc_in_call_dummy instead of
6264 DEPRECATED_PC_IN_CALL_DUMMY.
6265 (arm_skip_prologue): Ditto.
6266 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6267 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6268 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6269 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6270 Ditto.
6271 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6272 (sh64_init_extra_frame_info, sh64_get_saved_register)
6273 (sh64_pop_frame): Ditto.
6274 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6275 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6276 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6277 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6278 (h8300_pop_frame): Ditto.
6279 * blockframe.c (legacy_inside_entry_func)
6280 (legacy_frame_chain_valid): Ditto.
6281 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6282 to deprecated_pc_in_call_dummy.
6283
81cfbe54
AC
62842004-06-09 Andrew Cagney <cagney@gnu.org>
6285
a1f4a1b6
AC
6286 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6287 provide a default value.
6288 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6289 * gdbarch.h, gdbarch.c: Re-generate.
6290 * arch-utils.c (generic_convert_register_p): Rename
6291 legacy_convert_register_p
6292 (legacy_register_to_value, legacy_value_to_register): Delete
6293 functions.
6294 * arch-utils.h (generic_convert_register_p): Rename
6295 legacy_convert_register_p.
6296 (legacy_register_to_value, legacy_value_to_register): Delete
6297 declarations.
6298
9730f241
AC
6299 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6300 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6301 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6302 * gdbarch.h, gdbarch.c: Re-generate.
6303 * infcmd.c (default_print_registers_info): Simplify.
6304 * findvar.c (value_of_register): Simplify.
6305 * mi/mi-main.c (get_register): Simplify.
6306 * arch-utils.c (legacy_convert_register_p): Always return 0.
6307 (legacy_register_to_value, legacy_value_to_register): Always call
6308 internal_error.
6309
8a1bf479
AC
6310 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6311 #ifdef CLEAR_INSN_CACHE code.
6312 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6313 Delete #ifdef CLEAR_DEFERRED_STORES code.
6314
4b38d6f1
AC
6315 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6316
2d62ecc7
AC
6317 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6318 copyright.
6319 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6320
be4f7469
AC
6321 * config/mips/mipsv4.mh: Delete file.
6322
81cfbe54
AC
6323 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6324 unreferenced macro.
6325 (hpread_adjust_stack_address): Delete declaration.
6326
d966f0cb
AC
63272004-06-08 Andrew Cagney <cagney@gnu.org>
6328
6329 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6330 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6331 PTRACE_ATTACH / PTRACE_DETACH available call error.
6332 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6333 * infttrace.c (update_thread_state_after_attach, attach, detach):
6334 Remove #ifdef wrappers.
6335 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6336 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6337 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6338 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6339 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6340 * config/nm-linux.h (ATTACH_DETACH): Delete.
6341 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6342 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6343 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6344 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6345 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6346
d91670b9
CV
63472004-06-08 Corinna Vinschen <vinschen@redhat.com>
6348
6349 * configure.in: Set $configdir to the right OS specific value.
6350 Use value when setting $tcldir and $tkdir.
6351 * configure: Regenerate.
6352
28ba0b33
PB
63532004-06-06 Paul Brook <paul@codesourcery.com>
6354
6355 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6356 records.
6357
f26caa11
PH
63582004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6359
6360 * ada-lang.c (lookup_symbol_in_language): New function to allow
6361 re-use of another language's symbol lookup code. (Placed here
6362 temporarily while Ada support is being integrated into the public
6363 tree).
6364 (restore_language): New auxiliary function for
6365 lookup_symbol_in_language.
6366 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6367 temporarily while Ada support is being integrated into the public
6368 tree).
6369
d560a54b
AO
63702004-06-08 Alexandre Oliva <aoliva@redhat.com>
6371
e75d110c
AO
6372 * Makefile.in (check//%): New.
6373
d560a54b
AO
6374 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6375 (mn10300_store_return_value): Rewrite.
6376 (mn10300_type_align): New.
6377 (mn10300_use_struct_convention): Rewrite.
6378 (mn10300_return_value): New, using all of the above.
6379 (mn10300_pop_frame_regular): Add saved_regs_size.
6380 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6381
a72fbdb7
AO
6382 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6383 regs if PC is on movm.
6384
01904826
JB
63852004-06-07 Jim Blandy <jimb@redhat.com>
6386
6387 Add native Linux support for the PowerPC E500.
6388 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6389 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6390 all architectures except the E500.
6391 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6392 #definitions.
6393 (struct gdb_evrregset_t): New type.
6394 (have_ptrace_getsetevrregs): New variable.
6395 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6396 fetch_spe_registers): New functions.
6397 (fetch_register): Call fetch_spe_register as appropriate.
6398 Assert that we're only passed raw register numbers.
6399 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6400 Don't fetch gprs if they're pseudoregisters.
6401 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6402 store_spe_registers): New functions.
6403 (store_register): Call store_spe_register as appropriate.
6404 Assert that we're only passed raw register numbers.
6405 (store_ppc_registers): Call store_spe_registers as appropriate.
6406 Don't store gprs if they're pseudoregisters.
6407
f90ef764
JJ
64082004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6409
6410 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6411 struct if one exists, even if we are dealing with a zombie thread.
6412
45b75230
AC
64132004-06-07 Andrew Cagney <cagney@gnu.org>
6414
6415 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6416 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6417 Rename PC_REQUIRES_RUN_BEFORE_USE.
6418 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6419 #ifdef.
6420
1658da49
RC
64212004-06-07 Randolph Chung <tausq@debian.org>
6422
6423 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6424 unwinding after sp has been saved to the stack but before the end
6425 of the prologue, and after the fp has been modified but before it has
6426 been saved to the stack.
6427 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6428 Remove superfluous definitions.
6429 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6430
9a727a3c
RC
64312004-06-07 Guy Martin <gmsoft@gentoo.org>
6432
6433 Committed by Randolph Chung.
6434 * hppa-linux-nat.c: Include the correct version of the header file
6435 depending on the kernel version.
6436
9e500012
RC
64372004-06-06 Randolph Chung <tausq@debian.org>
6438
6439 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6440 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6441
3388d7ff
RC
64422004-06-06 Randolph Chung <tausq@debian.org>
6443
6444 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6445 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6446 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6447 * hppa-tdep.c (hppa_symbol_address): New function definition.
6448 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6449
d49771ef
RC
64502004-06-06 Randolph Chung <tausq@debian.org>
6451
6452 * hppa-tdep.h (struct value): Forward declaration.
6453 (gdbarch_tdep): Define tdep find_global_pointer method.
6454 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6455 associated with the function we are trying to call, and write it
6456 to the gp register.
6457 (hppa32_convert_from_funct_ptr_addr): New function.
6458 (hppa_find_global_pointer): New function.
6459 (hppa_gdbarch_init): Set default find_global_pointer method; set
6460 convert_from_func_ptr_addr method.
6461 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6462 (hppa_linux_init_abi): Set find_global_pointer method.
6463 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6464
7d9b040b
RC
64652004-06-06 Randolph Chung <tausq@debian.org>
6466
6467 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6468 to struct value *function.
6469 * gdbarch.c: Regenerate.
6470 * gdbarch.h: Likewise.
6471 * infcall.c (call_function_by_hand): Pass entire function value
6472 to push_dummy_call.
6473
6474 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6475 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6476 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6477 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6478 * arm-tdep.c (arm_push_dummy_call): Likewise.
6479 * avr-tdep.c (avr_push_dummy_call): Likewise.
6480 * cris-tdep.c (cris_push_dummy_call): Likewise.
6481 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6482 * frv-tdep.c (frv_push_dummy_call): Likewise.
6483 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6484 * hppa-tdep.c (hppa32_push_dummy_call)
6485 (hppa64_push_dummy_call): Likewise.
6486 * i386-tdep.c (i386_push_dummy_call): Likewise.
6487 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6488 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6489 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6490 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6491 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6492 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6493 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6494 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6495 (ppc64_sysv_abi_push_dummy_call): Likewise.
6496 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6497 (ppc64_sysv_abi_push_dummy_call): Likewise.
6498 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6499 * s390-tdep.c (s390_push_dummy_call): Likewise.
6500 * sh-tdep.c (sh_push_dummy_call_fpu)
6501 (sh_push_dummy_call_nofpu): Likewise.
6502 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6503 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6504 * vax-tdep.c (vax_push_dummy_call): Likewise.
6505
4a19ea35
JB
65062004-06-04 Jim Blandy <jimb@redhat.com>
6507
8327ccee
JB
6508 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6509 gdbarch argument to register_size.
6510
a3c001ce
JB
6511 * rs6000-tdep.c (rs6000_store_return_value): Use
6512 regcache_cooked_write_part instead of
6513 deprecated_write_register_bytes.
6514 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6515 not gdbarch_deprecated_store_return_value.
6516
4a19ea35
JB
6517 * ppc-linux-nat.c (store_register, fetch_register): Remove
6518 incorrect assertions. Simplify and generalize handling of
6519 transfers whose sizes are not multiples of, or less than, sizeof
6520 (PTRACE_XFER_TYPE).
6521
b9b5d7ea
JJ
65222004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6523
6524 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6525 as a new thread event.
720c7d64 6526 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 6527 zombie, return TD_THR_ZOMBIE.
720c7d64 6528 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
6529 TD_THR_ZOMBIE, check if the thread is still on the thread list
6530 and return a -1 ptid if not found.
6531 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6532 change the status to TARGET_WAITKIND_SPURIOUS.
6533
c8a3b559
CV
65342004-06-03 Corinna Vinschen <vinschen@redhat.com>
6535
6536 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6537 double values in little endian mode.
6538
20605361
AC
65392004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6540
6541 Committed by Andrew Cagney.
6542 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6543 after last enum constant to avoid error from IBM C
6544 compiler.
6545
bc97b3ba
JB
65462004-06-02 Jim Blandy <jimb@redhat.com>
6547
6548 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6549 to 'message', and make it local to the lone block that uses it.
6550
1da28ab0
JB
6551 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6552
4c4b4cd2
PH
65532004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6554
8a2225b2
PH
6555 * ada-exp.y: Update copyright notice.
6556 Include block.h.
6557
6558 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6559 SPECIAL_VARIABLE and unify the treatment of these cases.
6560
6561 (write_attribute_call0): Remove.
6562 (write_attribute_call1): Remove.
6563 (write_attribute_calln): Remove.
6564 (save_qualifier): Add missing semicolon.
6565
6566 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6567 temporarily disabled to allow compilation with FSF head version.
6568
6569 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6570 use individual operators (OP_*) for all attributes.
6571 (exp syntax): Use write_int.
6572 Handle STRING literals with OP_STRING.
6573 (variable syntax): Add limit parameter to calls to
6574 write_object_renaming.
6575
6576 (temp_parse_space): New definition to hold entities that need
6577 only live until the next call to ada_parse.
6578 (string_to_operator): Rename fields of ada_opname_table entries.
6579
6580 (write_var_from_sym): Record block.
6581 (write_var_from_name): Minor reformatting.
6582 Make sure saved name is properly encoded in the case of multiple
6583 matches, and set its language to Ada.
6584 Update comment.
6585 Modify to indicate unresolved name as symbol in the UNRESOLVED
6586 namespace, allocated in temp_parse_space.
6587 (write_int): New function.
6588
6589 (write_object_renaming): Add max_depth parameter to limit
6590 chains of object renamings.
6591 Handle case where root of renaming expression is itself a renaming.
6592 Use temp_parse_space for temporary name buffer.
6593 Handle renamings to dereferenced pointers (___XEXA suffices).
6594
6595 (ada_parse, yyerror, string_to_operator,
6596 write_var_from_sym, write_var_from_name, write_attribute_call0,
6597 write_attribute_call1, write_attribute_calln,
6598 write_object_renaming): Protoize.
6599
6600 (_initialize_ada_exp): New function.
6601
6602 * ada-lang.c: Update copyright notice.
6603 General terminology change to conform to GNAT compiler usage:
6604 mangle => encode, demangle => decode
6605 Include gdb_obstack.h.
6606 Include gdb_regex.h
6607 Include frame.h
6608 Include hashtab.h
6609 Include completer.h
6610 Include gdb_stat.h
6611 Include block.h
6612 Include infcall.h
6613
6614 (ADA_RETAIN_DOTS): Make sure this is defined.
6615 (TRUNCATION_TOWARDS_ZERO): Define.
6616 (struct string_vector): Define.
6617 (unresolved_names): Remove definition.
6618 (xnew_string_vector): New function.
6619 (string_vector_append): New function.
6620 (extract_string): Make static.
6621 (ada_unqualified_name): New function.
6622 (add_angle_brackets): New function.
6623 (function_name_from_pc): New function.
6624 (place_on_stack): Rename to ensure_lval.
6625
6626 (ensure_lval): Renamed from place_on_stack.
6627 Make identity on lvals.
6628 Update comment.
6629 (is_nonfunction): New interface.
6630 Only symbols in LOC_CONST class can be enumerals.
6631 (fill_in_ada_prototype): Remove; now independent of language.
6632 (add_defn_to_vec): Add obstack and symtab arguments.
6633 Use obstack to hold collected definitions.
6634 (num_defns_collected): New function.
6635 (defns_collected): New function.
6636 (ada_resolve_subexp): Rename to resolve_subexp.
6637 (resolve_subexp): Renamed from ada_resolve_subexp.
6638 (ada_op_name): Return non-const result.
6639 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6640 other purposes.
6641
6642 (to_fixed_array_type): Add declaration.
6643 (coerce_unspec_val_to_type): Remove offset parameter.
6644 (find_sal_from_funcs_and_line): New interface.
6645 (find_line_in_linetable): Ditto.
6646
6647 (all_sals_for_line): Rename to ada_sals_for_line and make
6648 global.
6649 Add new parameter. When set, do not ask the user to choose the
6650 instance, but use the first one found instead.
6651 Use given line number in returned sals.
6652 Fix comment.
6653 Skip the prologue if funfirstline is set.
6654 Correct for memory leak when 0 lines found.
6655
6656 (value_pos_atr): Use pos_atr.
6657 (pos_atr): New function.
6658 (standard_lookup): Add block parameter.
6659
6660 (makeTimeStart): Remove declaration and uses.
6661 (makeTimeStop): Remove declaration and uses.
6662
6663 (ada_completer_word_break_characters): Allow for VMS.
6664 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6665 (raise_sym_name): New constant.
6666 (raise_unhandled_sym_name): New constant.
6667 (raise_assert_sym_name): New constant.
6668 (process_raise_exception_name): New constant.
6669 (longest_exception_template): New constant.
6670 (warning_limit): New variable to limit warnings during expression
6671 evaluation.
6672 (warnings_issued): New variable to keep track of warnings issued.
6673 (known_runtime_file_name_patterns): New constant.
6674 (known_auxiliary_function_name_patterns): New constant.
6675 (symbol_list_obstack): New variable.
6676
6677 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6678 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6679 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6680 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6681 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6682 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6683 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6684 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6685 and strcmp.
6686
6687 (ada_get_field_index): New function.
6688 (lim_warning): New function.
6689 (ada_translate_error_message): New function.
6690 (MAX_OF_SIZE): New function.
6691 (MIN_OF_SIZE): New function.
6692 (UMAX_OF_SIZE): New function.
6693 (UMIN_OF_SIZE): New function.
6694 (discrete_type_high_bound): New function.
6695 (discrete_type_low_bound): New function.
6696 (base_type): New function.
6697 (do_command): Remove.
6698
6699 (ada_update_initial_language): Use language_ada, not language_unknown.
6700 (ada_encode): Renamed from ada_mangle.
6701 Obey ADA_RETAIN_DOTS.
6702 (ada_decode): Renamed from ada_demangle.
6703 Update coding conventions.
6704 (decoded_names_store): New hash table.
6705 (ada_decode_symbol): New function.
6706 (ada_la_decode): New function.
6707
6708 (modify_general_field): Correct computations of offset and bit
6709 position.
6710 (desc_base_type): Handle ref types, too.
6711 (ada_is_direct_array_type): New function.
6712
6713 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6714 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6715 (ada_is_bogus_array_descriptor,ada_type_of_array,
6716 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6717 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6718 ada_is_array_descriptor_type.
6719
6720 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6721 (ada_is_packed_array_type): Handle pointers or
6722 references to packed arrays as well.
6723 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6724 (decode_packed_array_type): Search for the packed array type
6725 symbol in the currently selected block and associated
6726 superblocks too.
6727 Use lookup_symbol again.
6728
6729 (decode_packed_array): Handle pointers and references.
6730 Update call to coerce_unspec_val_to_type.
6731 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6732 (ada_value_primitive_packed_val): Improve comment.
6733
6734 (ada_index_type): Substitute int type for "undefined".
6735 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6736 ada_array_langth, ada_is_string_type): Use renamed
6737 ada_is_simple_array_type.
6738 (empty_array): New function.
6739
6740 (ada_resolve): Rename to resolve.
6741 (resolve): Make static.
6742 Call renamed resolve_subexp.
6743 Update comment.
6744 (ada_resolve_subexp): Rename to resolve_subexp.
6745 (resolve_subexp): Update comment.
6746 Decomment disabled code.
6747 Add LOC_COMPUTED* cases.
6748 Modify to use temporary struct symbols (marked as being in
6749 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6750 OP_UNRESOLVED_VALUE.
6751 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6752 Add OP_STRING case.
6753 Remove OP_ARRAY.
6754 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6755 Use new ada_lookup_symbol_list interface.
6756 Use new ada_resolve_function interface.
6757 Remove OP_TYPE case.
6758
6759 (ada_args_match): Idiot proof against null actuals.
6760 Use intermediate variables to clarify.
6761 (ada_resolve_function): Update comment and interface.
6762 (mangled_ordered_before): Rename to encoded_ordered_before and
6763 update comment.
6764 (sort_choices): Update comment and interface.
6765 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6766 (user_select_syms): New interface.
6767 Use new sort_choices interface.
6768 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6769 (possible_user_operator_p): Idiot-proof against null values.
6770 (ada_simple_renamed_entity): Don't make cleanup; rely on
6771 caller to free result string.
6772 Remove const from return type.
6773 (make_array_descriptor): Rename uses of place_on_stack to
6774 ensure_lval.
6775 Make sure that arrays are on stack.
6776
6777 (HASH_SIZE): Define.
6778 (struct cache_entry): Define.
6779 (cache_space): Define.
6780 (cache): Define.
6781 (clear_ada_sym_cache): New function.
6782 (find_entry): New function.
6783 (lookup_cached_symbol): New function.
6784 (defn_vector_size): Define.
6785 (cache_symbol): New function.
6786 (defn_symbols): Remove.
6787
6788 (standard_lookup): Use lookup_symbol_in_language to get effect of
6789 C lookup.
6790 Cache results.
6791
6792 (symbol_completion_match): New function.
6793 (symbol_completion_add): New function.
6794 (ada_make_symbol_completion_list): New function.
6795
6796 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6797 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6798 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6799 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6800
6801 (ada_lookup_simple_minsym): New function.
6802 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6803
6804 (add_symbols_from_enclosing_procs): New interface.
6805 Conditionalize more helpfully.
6806 Don't bother if program isn't running.
6807 Use new interface to get_frame_block.
6808 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6809
6810 (remove_extra_symbols): New interface.
6811 (xget_renaming_scope): New function.
6812 (is_package_name): New function.
6813 (renaming_is_visible): New function.
6814 (remove_out_of_scope_renamings): New function.
6815
6816 (ada_lookup_symbol_list): New interface.
6817 Properly reinitialize the symbol list obstack.
6818 Don't call add_symbols_from_enclosing_procs if we start from a
6819 static or global block.
6820 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6821 add_symbols_from_enclosing_procs.
6822 Add symtab data to cached entries.
6823 Handle symbols prefixed with
6824 "standard__" specially; strip prefix and don't look in local symbols.
6825 Do not include out of scope renaming symbols in list of
6826 symbols returned.
6827 Add const to block parameter.
6828 Move check for non-local, non-global symbols earlier.
6829 Remove timing stuff.
6830 (ada_lookup_symbol): New interface.
6831 Find symtab as well.
6832 (ada_lookup_symbol_nonlocal): New function.
6833
6834 (is_name_suffix): Enhance suffix detection to recognize
6835 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6836 (is_dot_digits_suffix): New function.
6837 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6838
6839 (ada_add_block_symbols): New interface. Use obstack to return results
6840 in a vector of struct ada_symbol_infos. Add symtab argument.
6841 Use new interface to add_defn_to_vec.
6842 Remove calls to fill_in_ada_prototype.
6843 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6844
6845 (ada_finish_decode_line_1): Add const qualification to local to fix
6846 warning.
6847 Start looking in static block for functions to avoid attempts
6848 to search frame chain for up-level variables.
6849 Adapt to new ada_sals_for_line interface.
6850 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6851 Handle quoting of the function name inside the spec string.
6852 Skip prologue when funfirstline is set and update the
6853 function documentation to that effect.
6854
6855 (debug_print_lines, debug_print_block, debug_print_blocks,
6856 debug_print_symtab): Remove.
6857
6858 (ada_main_name): New function.
6859 (ada_exception_breakpoint_type): New function.
6860 (is_known_support_routine): New function.
6861 (ada_find_printable_frame): Renamed from find_printable_frame and made
6862 global.
6863 Remove level parameter.
6864 Use new interface to select_frame.
6865
6866 (begin_command): Remove.
6867 (ada_adjust_exception_stop): New function.
6868 (ada_print_exception_stop): New function.
6869 (exception_name_from_cond): New function.
6870 (ada_report_exception_break): Replace disabled code with
6871 conditionalization on GNAT_GDB.
6872 Get the exception name from the condition string.
6873 Remove and move functionality into new functions
6874 ada_print_exception_breakpoint_task and
6875 ada_print_exception_breakpoint_nontask.
6876 (error_breakpoint_runtime_sym_not_found): New function.
6877 (is_runtime_sym_defined): New function.
6878 (ada_breakpoint_rewrite): Uncomment suppressed code.
6879 Use symbolic error-message and runtime-symbol names.
6880 Surround runtime symbol names in quotes.
6881 Allow non-specific breakpoints on exceptions and assertions before
6882 program starts.
6883
6884 (ada_is_tagged_type): Add parameter.
6885 (ada_is_tag_type): New function.
6886 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6887 (ada_variant_discrim_type): Ditto.
6888 (value_tag_from_contents_and_address): New function.
6889 (type_from_tag): New function.
6890 (struct tag_args): New structure used to communicate with
6891 ada_tag_name_1.
6892 (ada_tag_name_1): New function.
6893 (ada_tag_name): New function.
6894
6895 (ada_scan_number): Update comment.
6896 (find_struct_field): New function.
6897 (ada_search_struct_field): Make static.
6898 (ada_value_struct_elt): New version that returns references when
6899 given pointers or references to structs.
6900 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6901 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6902 interface.
6903 (ada_value_ind): Use new ada_to_fixed_value interface.
6904 (ada_coerce_ref): Ditto.
6905 (field_offset): Remove.
6906
6907 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6908 (ada_find_renaming_symbol): New function.
6909 (ada_prefer_type): Prefer named types over unnamed ones.
6910 (variant_field_index): New function.
6911 (contains_variant_part): Removed: subsumed by variant_field_index.
6912 (ada_template_to_fixed_record_type): New function, mostly from
6913 template_to_fixed_record_type.
6914 (template_to_fixed_record_type):
6915 Do not scan the type fields beyond the last one; prevents a
6916 potential SEGV.
6917 Handle case where variant field is listed BEFORE discriminant it
6918 depends on.
6919 Fix calculation of record length when bit length is
6920 not evenly divisible by char length.
6921 Move code to ada_template_to_fixed_record_type and call it.
6922
6923 (template_to_static_fixed_type): Revise comment.
6924 Modify to work on ordinary record types as well as templates,
6925 so as to handle fields that use ___XVE or ___XVU encodings.
6926 (to_record_with_fixed_variant_part): Fill out comment.
6927 Initialize C++ stuff in right type.
6928 Allow case where DVAL is null.
6929 Handle case where variant field is not last.
6930 Fix typo concerning record length.
6931 (to_fixed_record_type): Decomment disabled code.
6932 (to_fixed_record_type): Use variant_field_index instead of
6933 contains_variant_part.
6934 (to_fixed_variant_branch_type): Ditto.
6935 (to_fixed_array_type): Decomment disabled code.
6936 (ada_to_fixed_type): Convert tagged types to the specific type.
6937 Deactivate the size-check for array types in order to avoid
6938 some false size alarms.
6939 (to_static_fixed_type): Decomment disabled code.
6940 Modify to call template_to_static_fixed_type
6941 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6942 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6943 Remove valaddr argument, as it is never really used.
6944 (ada_to_fixed_value): Change interface to act on single struct value*
6945 operand.
6946 (adjust_pc_past_prologue): New function.
6947 (ada_attribute_name): Modify to take enum exp_opcode argument.
6948
6949 (ada_enum_name): Recognize new homonym-distinguishing convention.
6950 Adjust local variable's type to remove compiler warning.
6951 Fix a small problem in the part that unqualifies the enumeration name.
6952 (ada_value_binop): New function.
6953 (ada_value_equal): New function.
6954
6955 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6956 Don't give error message when not doing normal evaluation
6957 and a tagged type doesn't seem to contain a structure member.
6958 Give error message for packed arrays.
6959 For indexing arrays, handle pointers to packed arrays correctly.
6960 Handle case of 'first and 'last attributes of bare integral type
6961 without encoded subtype info.
6962 Remove some unnecessary casts.
6963 Fix uninitialized value of type in computing 'first, 'last, or 'length
6964 of array object.
6965 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6966 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6967 calls.
6968 Attributes are now exp_opcode values.
6969 Correct treatment of 'modulus.
6970 Better error message for taking 'length of wrong kind of type;
6971 improve comment.
6972 Change EVAL_NORMAL to noside for consistency.
6973 Use ada_value_binop for DIV, MOD, REM.
6974 Make special case out of array of length 0, since an argument
6975 of 0 upsets some platforms' malloc.
6976 Use OP_STRING instead of OP_ARRAY.
6977 For slice, add check that we have an array type before extracting
6978 a slice out of it. Avoids a SEGV.
6979 When evaluating an array slice, if the array type is a reference to
6980 an aligner type, then replace the aligner type by the actual type.
6981 Decomment disabled code.
6982 Remove some dead code.
6983 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6984 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6985 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6986 and UNOP_MBR to UNOP_IN_RANGE.
6987 If an array type has a parallel ___XVE type, then use it.
6988 Turn arrays into pointers for lvalue arrays.
6989 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6990 bounds error and handle 0-length slices.
6991 Use lim_warning.
6992 When selecting fields, apply ada_to_fixed_value (because the fields
6993 might have ___XVU or ___XVE encodings even if not dynamic.)
6994 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6995 (ada_is_system_address_type): New function.
6996
6997 (get_var_value): Use new interface to ada_lookup_symbol_list.
6998 (get_int_var_value): New interface.
6999 (to_fixed_range_type): Allow unknown bound, with warning.
7000 (ada_is_modular_type): Decomment disabled code.
7001 (ADA_OPERATORS): New definition.
7002 (ada_operator_length): New function.
7003 (ada_expr_op_name): New function.
7004 (ada_forward_operator_length): New function.
7005 (ada_dump_subexp_body): New function.
7006 (ada_print_subexp): New function.
7007 (ada_exp_descriptor): New constant.
7008 (ada_op_print_tab): Add 'size. Remove FIXMEs.
7009 (ada_language_defn): Add ada_exp_descriptor entry.
7010 Change ada_parse => parse.
7011 Add post-parser entry.
7012 Use ada-specific non-local symbol lookup.
7013 Don't use C-style arrays.
7014 String lower-bound is 1.
7015 Decomment disabled code.
7016 (parse): New function.
7017 New fields ada_translate_error_message, ada_lookup_symbol,
7018 ada_lookup_minimal_symbol.
7019
7020 * ada-lang.h: Update copyright dates.
7021 Replace the mangle/demangle terminology throughout by the
7022 more appropriate encode/decode one.
7023 Include breakpoint.h.
7024 Forward declare struct partial_symbol, struct block.
7025 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
7026 (EXTRACT_ADDRESS): Remove.
7027 (EXTRACT_INT): Remove.
7028 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
7029 (MAX_ENCLOSING_FRAME_LEVELS): Define.
7030 (MAX_RENAMING_CHAIN_LENGTH): Define.
7031 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
7032
7033 (enum task_states): Remove.
7034 ada_task_states: Remove.
7035 (fat_string): Remove.
7036 (struct entry_call): Remove.
7037 (struct task_fields): Remove.
7038 (struct task_entry): Remove.
7039
7040 (struct ada_symbol_info): Define.
7041 (enum ada_attribute): Remove.
7042 (enum ada_operator): Define.
7043
7044 (ada_get_field_index): Declare.
7045 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7046 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7047 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7048 (ada_lookup_symbol_list): New interface.
7049 (ada_decode_symbol): Declare.
7050 (ada_decode): Declare.
7051 (ada_lookup_symbol): New interface.
7052 (ada_update_initial_language): Declare.
7053 (ada_lookup_simple_minsym): Declare.
7054 (user_select_syms): New interface.
7055 (ada_sals_for_line): Declare.
7056 (ada_is_tagged_type): New interface.
7057 (ada_tag_name): Declare.
7058 (ada_lookup_struct_elt_type): Remove declaration.
7059 (ada_search_struct_field): Remove declaration.
7060 (ada_attribute_name): New interface.
7061 (ada_is_system_address_type): Declare.
7062 (ada_to_fixed_value): Remove declaration.
7063 (ada_template_to_fixed_record_type_1): Declare.
7064 (get_int_var_value): New interface.
7065 (ada_find_any_symbol): Declare.
7066 (ada_find_renaming_symbol): Declare.
7067 (ada_mangle): Rename to ada_encode.
7068 (ada_simple_renamed_entity): Remove const.
7069 (ada_main_name): Declare.
7070 (get_current_task): Rename to ada_get_current_task.
7071 (get_entry_number): Remove declaration.
7072 (ada_report_exception_break): Remove declaration.
7073 (ada_print_exception_breakpoint_nontask): Declare.
7074 (ada_print_exception_breakpoint_task): Declare.
7075 (ada_find_printable_frame): Declare.
7076
7077 * ada-lex.l: Update copyright notices.
7078 Use xmalloc and xfree instead of malloc and free.
7079 Use new interface to name_lookup.
7080 Use new interface to
7081 ada_mangle=>ada_encode.
7082 Redo handling of '$...' variable to parallel current treatment
7083 in c-exp.y.
7084 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7085 digit_to_int, strtoulst, processInt, processReal, processId,
7086 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7087 yywrap): Protoize.
7088
7089 (processInt): Use cast to remove harmless warning.
7090 (processReal): Modify to get rid of compiler warning on scan formats.
7091
7092 (processId): Replace xmalloc with obstack_alloc for name and remove
7093 call to ada_name_string_cleanup.
7094 Remove obsolete disabled code.
7095 (name_lookup): Ditto.
7096 New interface.
7097 Use obsavestring on temp_parse_space instead of savestring
7098 on name, and remove call to ada_name_string_cleanup.
7099 Free string returned from ada_simple_renamed_entity.
7100 Use new interface to ada_lookup_symbol_list.
7101 Decomment disabled code.
7102 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
7103 not types.
7104 When a type name lookup succeeds as a result of
7105 lookup_primitive_typename, check for regular type entry that has not
7106 yet been read in.
7107 Limit length of chain of renamed symbols we are willing to follow.
7108 Do not break names beginning with "standard__" into segments.
7109 (block_lookup): Use new interface to ada_lookup_symbol_list.
7110
7111 * ada-typeprint.c: Update copyright notice.
7112 (demangled_type_name): Rename to decoded_type_name.
7113 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7114 (print_range_bound): Correct handling of negative
7115 bounds that make the index type looked unsigned under STABS.
7116 (print_dynamic_range_bound): Use new interface to get_int_var_value.
7117 (print_range_type_named): Use the builtin int type if no type
7118 corresponding to the given type name could be found.
7119 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7120 Add some bullet-proofing.
7121 (print_variant_clauses): Allow for variant branches with ___XVU
7122 encodings that are not dynamic fields.
7123 Use new interface to ada_is_tagged_type.
7124 (print_record_type): Allow for fields with ___XVE encodings that
7125 are not dynamic fields.
7126 Use new interface to ada_is_tagged_type.
7127 (ada_print_type): ada_is_array_descriptor =>
7128 ada_is_array_descriptor_type.
7129
7130 * ada-valprint.c: Update copyright notice.
7131 Include gdb_string.h
7132 Include infcall.h
7133 (ui_memcpy): New function.
7134 (ada_print_floating): New function.
7135 (ada_print_str): Order arguments correctly.
7136 Correct handling of empty arrays and arrays of 0-length items.
7137 ada_is_array_descriptor => ada_is_array_descriptor_type
7138 Print values of type System.Address in hexadecimal format.
7139 Use ada_print_floating to print floating-point numbers in Ada format.
7140 Print class tag values with type names.
7141 No longer print the address of reference values. Avoids
7142 a potential confusion.
7143 (ada_value_print): Stop printing the object type for reference
7144 values, but preserve that behavior for access types. Avoids
7145 a potential confusion.
7146 Simplify one conditional expression, as the first part is now
7147 necessarily true.
7148 ada_is_array_descriptor => ada_is_array_descriptor_type
7149 Add check for arrays for null records, and print them by hand.
4c4b4cd2 7150
f65f91b5
JB
71512004-06-01 Jim Blandy <jimb@redhat.com>
7152
7153 * ppc-tdep.h: Delete unused 'regoff' member.
7154 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7155
d4687fa0
MC
71562004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7157
7158 Fix PR symtab/1661.
7159 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7160 (hpread_read_struct_type): Likewise.
7161
de169ec9
AC
71622004-06-01 Andrew Cagney <cagney@gnu.org>
7163
c6902d46
AC
7164 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7165 instead of xasprintf.
7166 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7167 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7168 (mi_cmd_data_list_register_names)
7169 (mi_cmd_data_list_changed_registers)
7170 (mi_cmd_data_list_register_values)
7171 (get_register, mi_cmd_data_write_register_values)
7172 (mi_cmd_data_write_register_values)
7173 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7174 (mi_cmd_target_download, mi_cmd_target_select)
7175 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7176 (mi_execute_cli_command, mi_execute_async_cli_command)
7177 (mi_execute_async_cli_command): Ditto.
7178 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7179 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7180
6085fc2d
AC
7181 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7182 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7183 error_last_message instead of mi_error_last_message.
7184 * mi/mi-main.c (mi_error_last_message): Delete function.
7185
de169ec9
AC
7186 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7187 "invalid number of columns" error. Delete redundant "out of
7188 memory" check.
7189
1fc7d519
MK
71902004-05-31 Mark Kettenis <kettenis@gnu.org>
7191
6cfb2041
MK
7192 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7193 (gregset_t, fpregset_t): Remove typedefs.
7194 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7195 (REG_OFFSET): Rename argument.
7196 (i386bsd_r_reg_offset): Rename from reg_offset.
7197 (REG_ADDR): Remove macro.
7198 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7199 functions.
7200 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7201 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7202 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7203 instead of supply_gregset.
7204 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7205 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7206 instead of fill_gregset.
7207 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7208
1fc7d519
MK
7209 * i386bsd-nat.c: Don't include "gregset.h".
7210 (supply_gregset, fill_gregset): Make static.
7211 (supply_fpregset, fill_fpregset): Remove.
7212 * Makefile.in (i386bsd-nat.o): Update dependencies.
7213
2c34abbe
MK
72142004-05-30 Mark Kettenis <kettenis@gnu.org>
7215
448724fb
MK
7216 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7217 "gdb_assert.h". Con't include "gregset.h".
7218 (fbsd_make_corefile_notes): Use regset-based core file support
7219 instead off fill_gregset and fill_fpregset.
7220 * Makefile.in (fbsd-proc.o): Update dependencies.
7221
5ca8ca7c
MK
7222 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7223 instructions.
7224 (m88k_frame_prev_register): Simplify code a bit.
7225
593adc23
MK
7226 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7227 (amd64_collect_fpregset): New function.
7228 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7229
8d1b517b
MK
7230 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7231
7fdafb5a
MK
7232 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7233 (i386_collect_gregset): New function.
7234 (i386_supply_fpregset): Adjust comment.
7235 (i386_collect_fpregset): New function.
7236 (i386_regset_from_core_section): Use i386_collect_gregset and
7237 i386_collect_fpregset.
7238
8693c419
MK
7239 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7240 handle VALUEP being null.
7241
2c34abbe
MK
7242 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7243
45d134d8
MK
72442004-05-29 Mark Kettenis <kettenis@gnu.org>
7245
1698f4e7
MK
7246 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7247
45d134d8
MK
7248 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7249 assembler in OpenBSD 3.5-current.
7250 (amd64obsd_sigcontext_addr): Likewise.
7251
691d145a
JB
72522004-05-28 Jim Blandy <jimb@redhat.com>
7253
7254 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7255 register set, so our regcache isn't declared "legacy" and our E500
7256 pseudoregister read and write functions aren't ignored.
7257 (rs6000_register_byte, rs6000_register_raw_size,
7258 rs6000_register_virtual_type, rs6000_register_convertible,
7259 rs6000_register_convert_to_virtual,
7260 rs6000_register_convert_to_raw): Deleted.
7261 (rs6000_register_type, rs6000_convert_register_p,
7262 rs6000_register_to_value, rs6000_value_to_register): New
7263 functions.
7264 (rs6000_gdbarch_init): Don't register
7265 gdbarch_deprecated_register_size,
7266 gdbarch_deprecated_register_bytes,
7267 gdbarch_deprecated_register_byte,
7268 gdbarch_deprecated_register_raw_size,
7269 gdbarch_deprecated_register_virtual_type,
7270 gdbarch_deprecated_register_convertible,
7271 gdbarch_deprecated_register_convert_to_virtual, or
7272 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7273 register gdbarch_register_type, gdbarch_convert_register_p,
7274 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7275
18ed0c4e
JB
72762004-05-26 Jim Blandy <jimb@redhat.com>
7277
7278 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7279 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7280 functions, updated to match the register numberings used in GCC.
7281 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7282 rs6000_dwarf2_reg_to_regnum as register number conversions
7283 functions for STABS and Dwarf2.
7284
779af9e3
RC
72852004-05-26 Randolph Chung <tausq@debian.org>
7286
7287 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7288 in header file.
7289
c23968a2
JB
72902004-05-25 Joel Brobecker <brobecker@gnat.com>
7291
7292 * NEWS: Document new "start" command.
7293
3a7d1c27
RC
72942004-05-25 Randolph Chung <tausq@debian.org>
7295
7296 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7297 hppa-linux.
7298
43613416
RC
72992004-05-25 Randolph Chung <tausq@debian.org>
7300
7301 * hppa-hpux-tdep.c (offsetof): Define.
7302 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7303 (hppa32_hpux_frame_base_before_sigtramp)
7304 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7305 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7306 (hppa64_hpux_frame_base_before_sigtramp)
7307 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7308 functions.
7309 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7310 (hppa_hpux_sigtramp_frame_unwind_cache)
7311 (hppa_hpux_sigtramp_frame_this_id)
7312 (hppa_hpux_sigtramp_frame_prev_register)
7313 (hppa_hpux_sigtramp_frame_unwind)
7314 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7315 (hppa_hpux_init_abi): Register sigtramp unwinder.
7316 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7317
6d1be3f1
RC
73182004-05-25 Randolph Chung <tausq@debian.org>
7319
7320 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7321 and multiple stack unwinds.
7322 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7323
97c34f65
AC
73242004-05-25 Andrew Cagney <cagney@gnu.org>
7325
7326 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7327 * symfile-mem.h: Delete file.
7328 * symfile-mem.c: Do not include "symfile-mem.h".
7329 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7330 "struct bfd_section". When an error do not bother returning NULL.
7331 (add_symbol_file_from_memory_command): Use "struct bfd" and
7332 "struct bfd_section".
7333 * Makefile.in (symfile_mem_h): Delete.
7334 (symfile-mem.o): Update dependencies.
7335
e23cbd82
NR
73362004-05-25 Nick Roberts <nickrob@gnu.org>
7337
7338 * gdb-mi.el: New file.
7339
20d2ca3e
AC
73402004-05-25 Andrew Cagney <cagney@gnu.org>
7341
7342 * inftarg.c: Include "observer.h".
7343 (child_attach, child_create_inferior): Notify inferior_created.
7344 * corelow.c: Include "observer.h".
7345 (core_open): Notify inferior_created.
7346 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7347
c27cda74
AC
73482004-05-25 Andrew Cagney <cagney@gnu.org>
7349
7350 * target.h (struct target_ops): Add from_tty to
7351 to_create_inferior.
7352 (target_create_inferior, find_default_create_inferior): Update.
7353 * infcmd.c (run_command): Update.
7354 * wince.c (child_create_inferior): Update.
7355 * win32-nat.c (child_create_inferior): Update.
7356 * uw-thread.c (uw_thread_create_inferior): Update.
7357 * thread-db.c (thread_db_create_inferior): Update.
7358 * target.c (debug_to_create_inferior)
7359 (find_default_create_inferior): Update.
7360 (maybe_kill_then_create_inferior): Update.
7361 * sol-thread.c (sol_thread_create_inferior): Update.
7362 * remote.c (extended_remote_async_create_inferior)
7363 (extended_remote_create_inferior): Update.
7364 * remote-vx.c (vx_create_inferior): Update.
7365 * remote-st.c (st2000_create_inferior): Update.
7366 * remote-sim.c (gdbsim_create_inferior): Update.
7367 * remote-sds.c (sds_create_inferior): Update.
7368 * remote-rdp.c (remote_rdp_create_inferior): Update.
7369 * remote-rdi.c (arm_rdi_create_inferior): Update.
7370 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7371 * remote-e7000.c (e7000_create_inferior): Update.
7372 * procfs.c (procfs_create_inferior): Update.
7373 * ocd.c (ocd_create_inferior): Update.
7374 * ocd.h (ocd_create_inferior): Update.
7375 * nto-procfs.c (procfs_create_inferior): Update.
7376 * monitor.c (monitor_create_inferior): Update.
7377 * lin-lwp.c (lin_lwp_create_inferior): Update.
7378 * inftarg.c (child_create_inferior): Update.
7379 * hpux-thread.c (hpux_thread_create_inferior): Update.
7380 * gnu-nat.c (gnu_create_inferior): Update.
7381
1db2a798
AC
73822004-05-25 Andrew Cagney <cagney@gnu.com>
7383
7384 * MAINTAINERS: Update e-mail address.
7385
007d08bb
RC
73862004-05-24 Randolph Chung <tausq@debian.org>
7387
7388 * thread.c (info_threads_command, thread_apply_all_command)
7389 (thread_apply_command, thread_command, do_captured_thread_select):
7390 Remove HPUXHPPA-specific code.
7391
69e7b95e
RC
73922004-05-24 Randolph Chung <tausq@debian.org>
7393
7394 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7395 unused symbols.
7396 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7397 references.
7398
a4d5f2e0
JB
73992004-05-24 Joel Brobecker <brobecker@gnat.com>
7400
7401 * infcmd.c (kill_if_already_running): New function, extracted
7402 from run_command().
7403 (run_command): Replace extracted code by call to
7404 kill_if_already_running().
7405 (start_command): New function.
7406 (_initialize_infcmd): Add "start" command.
7407
bf2ca189
MK
74082004-05-24 Mark Kettenis <kettenis@gnu.org>
7409
7410 Add OpenBSD/m88k support.
7411 * NEWS (New native configurations): Mention OpenBSD/m88k.
7412 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7413 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7414 * Makefile.in (m88k_tdep_h): New variable.
7415 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7416 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7417 * configure.host: Add m88*-*-openbsd*.
7418 * configure.tgt: Add m88*-*-openbsd*.
7419
80fadb11
JB
74202004-05-24 Jim Blandy <jimb@redhat.com>
7421
7422 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7423 to approve changes.
7424
19e2d14b
KB
74252004-05-24 Kevin Buettner <kevinb@redhat.com>
7426
7427 * symtab.c (fixup_section): Search section table when lookup by
7428 name fails.
7429
1b07b470
RC
74302004-05-24 Randolph Chung <tausq@debian.org>
7431
7432 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7433 be "small_struct".
7434
368702b1
MK
74352004-05-24 Mark Kettenis <kettenis@gnu.org>
7436
5df97fde
MK
7437 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7438 register number in regcache_raw_collect call.
7439 (m68kbsd_collect_fpregset): Likewise.
7440 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7441
368702b1
MK
7442 * regset.h (struct regset): Add back `regset' member.
7443
a770d4ec
MK
74442004-05-23 Mark Kettenis <kettenis@gnu.org>
7445
70f9f479
MK
7446 * configure.in: Check for td_pcb in `struct thread'.
7447 * configure, config.in: Regenerated.
7448
2e16d79e
MK
7449 * dpx2-nat.c: Remove file.
7450 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7451 (dpx2-nat.o): Remove dependencies.
7452
492cf391
MK
7453 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7454 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7455 (amd64obsd_supply_pcb): New function.
7456 (_initialize_amd64obsd_nat): Enable libkvm interface.
7457 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7458 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7459 (LOADLIBES): New variable.
7460
a770d4ec
MK
7461 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7462 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7463 (sparc32nbsd_supply_pcb): New function.
7464 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7465 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7466 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7467 (LOADLIBES): New variable.
7468
9ea75c57
MK
74692004-05-22 Mark Kettenis <kettenis@gnu.org>
7470
2e0c3539
MK
7471 * bsd-kvm.c, bsd-kvm.h: New files.
7472 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7473 "bsd-kvm.h".
7474 (i386fbsd_supply_pcb): New function.
7475 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7476 (i386fbsd-nat.o): Update dependencies.
7477 (bsd_kvm_h): New variable.
7478 (bsd-kvm.o): New dependency.
7479 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7480 (LOADLIBES): New variable.
7481
9ea75c57
MK
7482 * regset.c: Tweak comment.
7483 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7484 macro.
7485 * regset.h: Update copyright year.
7486 (struct regset): Remove `descr' member, add `gdbarch' member.
7487 (regset_alloc): Adjust prototype and comment.
7488 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7489 (i386_supply_fpregset): Likewise.
7490 (i386_regset_from_core_section): Update call to regset_alloc.
7491 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7492 REGSET->arch.
7493 (i386obsd_aout_regset_from_core_section): Update call to
7494 regset_alloc.
7495 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7496 REGSET->arch.
7497 (i386nbsd_aout_regset_from_core_section): Update call to
7498 regset_alloc.
7499 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7500 REGSET->arch.
7501 (amd64_regset_from_core_section): Update call to regset_alloc.
7502 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7503 REGSET->arch.
7504 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7505 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7506 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7507 (sparc32nbsd_init_abi): Update call to regset_alloc.
7508 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7509 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7510 (sparc64obsd_init_abi): Update call to regset_alloc.
7511 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7512 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7513 (sparc64nbsd_init_abi): Update call to regset_alloc.
7514 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7515 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7516 (sparc64fbsd_init_abi): Update call to regset_alloc.
7517
867e2dc5
JB
75182004-05-22 Jim Blandy <jimb@redhat.com>
7519
7520 * ppc-tdep.h (spe_register_p): New declaration.
7521 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7522 ppc_spefscr_regnum.
7523 * rs6000-tdep.c (spe_register_p): New function.
7524 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7525 spefscr.
7526 (rs6000_gdbarch_init): Initialize the new members of the tdep
7527 structure.
7528
617a4cba
JB
75292004-05-21 Jim Blandy <jimb@redhat.com>
7530
0397dee1
JB
7531 * ppc-linux-nat.c (fetch_register): Move code back to be next
7532 to the comment that describes it. (Moved code, instead of
7533 comment, for symmetry with store_register.)
7534
617a4cba
JB
7535 Allocate regset structures in the gdbarch's obstack, not using
7536 xmalloc.
7537 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7538 Add 'arch' argument. Allocate the regset on arch's obstack, not
7539 using xmalloc.
7540 * regset.h (regset_alloc): Update declaration.
7541 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7542 gdbarch argument.
7543 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7544 * i386-tdep.c (i386_regset_from_core_section): Same.
7545 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7546 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7547 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7548 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7549 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7550 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7551
9aa3914d
JB
75522004-05-21 Joel Brobecker <brobecker@gnat.com>
7553
7554 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7555
99c87dab
JB
75562004-05-21 Jim Blandy <jimb@redhat.com>
7557
7558 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7559 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7560
c2b6b4aa
JB
75612004-05-20 Jim Blandy <jimb@redhat.com>
7562
7563 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7564
144529d0
MK
75652004-05-20 Mark Kettenis <kettenis@gnu.org>
7566
7567 * regset.h: Make prototype const-correct.
7568 * regset.c (regset_xmalloc): Make const-correct.
7569
4725b721
PH
75702004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7571
7572 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7573 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7574 (symbol_search_name): Declare.
7575
7576 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7577 (iter_name_next_hashed): Ditto.
7578 (iter_name_next_linear): Ditto.
7579 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7580
7581 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7582 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7583 (symbol_search_name): New function.
7584
7585 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7586
7587 * minsyms.c (build_minimal_symbol_hash_tables): Change
7588 test for adding to demangled hash table to check for difference
7589 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7590
be07a590
JB
75912004-05-19 Jim Blandy <jimb@redhat.com>
7592
7593 Use a constructor function to create regset structures.
7594 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7595 (struct regset): Use supply_regset_ftype. Add new
7596 'collect_regset' member.
7597 (regset_xmalloc): New declaration.
7598 * regset.c: New file.
7599 * am64-tdep.c (amd64_regset_from_core_section): Use
7600 regset_xmalloc to construct regset structures.
7601 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7602 * i386-tdep.c (i386_regset_from_core_section): Same.
7603 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7604 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7605 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7606 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7607 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7608 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7609 * Makefile.in (COMMON_OBS): Add regset.o.
7610 (regset.o): New rule.
7611
604368f5
JB
76122004-05-19 Joel Brobecker <brobecker@gnat.com>
7613
7614 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7615 and pthread_cond_wait.c.
7616
82d69f8b
JB
76172004-05-18 Jim Blandy <jimb@redhat.com>
7618
7619 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7620 before the mach-specific switch, and then let the individual cases
7621 override the defaults, rather than leaving them uninitialized
7622 until the switch and then setting them in each case.
7623
5859efe5
RC
76242004-05-18 Randolph Chung <tausq@debian.org>
7625
7626 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7627 millicode functions.
7628
9ca80cf8
RC
76292004-05-18 Randolph Chung <tausq@debian.org>
7630
7631 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7632 references to dld_flags_buffer consistent.
7633
ed70ba00
RC
76342004-05-18 Randolph Chung <tausq@debian.org>
7635
7636 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7637 it for unwinding the stack.
7638
63100632
RC
76392004-05-18 Randolph Chung <tausq@debian.org>
7640
7641 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7642 Undefine these so we can overide them using gdbarch.
7643
090ccbb7
RC
76442004-05-18 Randolph Chung <tausq@debian.org>
7645
7646 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7647 handling for 64-bit HPUX (elf).
7648
594706e6
DJ
76492004-05-18 Daniel Jacobowitz <dan@debian.org>
7650
7651 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7652 constants.
7653 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7654 * ia64-tdep.c (examine_prologue): Likewise.
7655 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7656 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7657
e5483145
MK
76582004-05-18 Mark Kettenis <kettenis@gnu.org>
7659
7660 * vax-tdep.c (vax_return_value): Implement
7661 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7662
caed1a45
MK
76632004-05-17 Mark Kettenis <kettenis@gnu.org>
7664
7665 * vax-tdep.c (vax_return_value): Fix typo.
7666
3c0b7db2
AC
76672004-05-17 Andrew Cagney <cagney@redhat.com>
7668
5aae53e5
AC
7669 * MAINTAINERS: Mark Salter was also responsible for
7670 testsuite/config/
7671
3c0b7db2
AC
7672 * NEWS: Mention signal fixes.
7673
22b0923d
RC
76742004-05-17 Randolph Chung <tausq@debian.org>
7675
7676 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7677 check to see if we are unwinding an export stub. Export stubs clobber
7678 the %rp in the call path and stores the original rp in a stack slot.
7679
22f2b2f3
JB
76802004-05-17 Jim Blandy <jimb@redhat.com>
7681
7682 * MAINTAINERS: Update address for J.T. Conklin.
7683
cea96d64
RC
76842004-05-17 Randolph Chung <tausq@debian.org>
7685
7686 * hppa-tdep.c: Remove superfluous #include's.
7687 * Makefile.in (hppa-tdep.o): Update dependencies.
7688
f08f6a4a
RC
76892004-05-17 Randolph Chung <tausq@debian.org>
7690
7691 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7692 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7693 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7694 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7695 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7696 Remove static function declarations.
7697
51da707a
MK
76982004-05-17 Mark Kettenis <kettenis@gnu.org>
7699
caed1a45
MK
7700 * alphabsd-nat.c: Update copyright year.
7701 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7702
c0c2b0db
MK
7703 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7704 and M68K_A2_REGNUM.
7705
51da707a
MK
7706 * m68k-tdep.c (m68k_svr4_return_value): Implement
7707 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7708
8d027a04
MK
77092004-05-16 Mark Kettenis <kettenis@gnu.org>
7710
7711 * sol-thread.c Update copyright year. Fix various coding
7712 standards violations. Tweak a few comments.
7713 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7714 Delete prototypes.
7715
0d99fdb9
RC
77162004-05-15 Randolph Chung <tausq@debian.org>
7717
7718 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7719 as pointer instead of array reference since HPUX compiler does
7720 not accept unsized array arguments.
7721 * somsolib.c (dld_flags_buffer): Use constant array size.
7722
f7e3843a
MK
77232004-05-15 Mark Kettenis <kettenis@gnu.org>
7724
0fe85704
MK
7725 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7726 offset with decimal offset.
7727 (amd64obsd_sigcontext_addr): Return correct address for entire
7728 signal trampoline.
7729
a54f9a00
MK
7730 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7731 instead of get_frame_base.
7732
feae6502
MK
7733 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7734 (fill_gregset): Use regcache_raw_collect.
7735
0382d099
MK
7736 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7737 ppcobsd-tdep.c.
7738
f7e3843a
MK
7739 * config/sparc/tm-nbsd64.h: Remove file.
7740 * config/tm-sunos.h: Remove file.
7741
773df3e5
JB
77422004-05-15 Joel Brobecker <brobecker@gnat.com>
7743
7744 * rs6000-tdep.c (store_param_on_stack_p): New function,
7745 an improved version of some code extracted from skip_prologue().
7746 (skip_prologue): Use store_param_on_stack_p() to detect
7747 instructions saving a parameter on the stack. Detect when r0
7748 is used to save a parameter.
7749 Do not mark "li rx, SIMM" instructions as part of the prologue,
7750 unless the following instruction is also part of the prologue.
7751
95918acb
AC
77522004-05-14 Andrew Cagney <cagney@redhat.com>
7753
06f32659
AC
7754 * infrun.c (handle_inferior_event): Simplify
7755 STEP_OVER_UNDEBUGGABLE.
7756
95918acb
AC
7757 * infrun.c (handle_step_into_function): Delete function.
7758 (handle_inferior_event): Inline calls to
7759 handle_step_into_function.
7760
40711ff1 77612004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
7762
7763 * rs6000-nat.c: Fix a comment.
7764
02f60eae
JB
77652004-05-12 David Anderson <davea@sgi.com>
7766
7767 Committed by Jim Blandy <jimb@redhat.com>:
7768 * regcache.c (struct regcache_descr): fix comment spelling.
7769
552e377b
JB
77702004-05-13 J. Brobecker <brobecker@gnat.com>
7771
7772 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7773 Fixes a link link failure.
7774
349766b2
JB
77752004-05-13 J. Brobecker <brobecker@gnat.com>
7776
7777 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7778 error that was causing the build to fail.
7779
0d4d5484
JB
77802004-05-13 J. Brobecker <brobecker@gnat.com>
7781
7782 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7783 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7784
0b30808c
AC
77852004-05-13 Andrew Cagney <cagney@redhat.com>
7786
7787 * infrun.c (handle_inferior_event): Check for
7788 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7789 calls. Update comments.
7790
cdf2c5f5
JB
77912004-05-13 Jim Blandy <jimb@redhat.com>
7792
063715bf
JB
7793 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7794 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7795 (store_regs_user_thread, store_regs_kernel_thread): Use
7796 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7797 * ppc-linux-nat.c (fill_gregset): Same.
7798 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7799 (ppc_linux_sigtramp_cache): Same.
7800 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7801 (ppcnbsd_sigtramp_cache_init): Same.
7802 * rs6000-nat.c (fetch_core_registers): Same.
7803 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7804 (rs6000_frame_cache): Same.
7805
cdf2c5f5
JB
7806 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7807 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7808 of assuming that the gprs are numbered starting with zero.
7809 * ppc-linux-nat.c (fill_gregset): Same.
7810 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7811 * ppcnbsd-nat.c (getregs_supplies): Same.
7812 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7813 * rs6000-nat.c (fetch_core_registers): Same.
7814 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7815
450bd37b
MS
78162004-05-07 Michael Snyder <msnyder@redhat.com>
7817
7818 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7819 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7820
4a72a2a6
AC
78212004-05-13 Andrew Cagney <cagney@redhat.com>
7822
7823 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7824
8edfa926
BM
78252004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7826
7827 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7828 base_address for shared libraries.
7829
723e0e3d
BM
78302004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7831
7832 * MAINTAINERS (write after approval): Add myself.
7833
00d4360e
UW
78342004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7835
7836 * breakpoint.c (bpstat_stop_status): Add new argument
7837 STOPPED_BY_WATCHPOINT. Use it instead of testing
7838 target_stopped_data_address agaist 0 to check whether
7839 or not we stopped due to a hardware watchpoint.
7840 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7841 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7842 with new argument.
7843
ec76baa5
JB
78442004-05-12 Jim Blandy <jimb@redhat.com>
7845
7846 * configure.in: When checking whether we should use the -bbigtoc
7847 option, don't forget to restore the original value of LDFLAGS.
7848 * configure: Regenerated.
7849
f2c9ca08
AC
78502004-05-12 Andrew Cagney <cagney@redhat.com>
7851
7852 * thread.c (load_infrun_state): Delete step_sp.
7853 * infrun.c (context_switch): Ditto.
7854 * inferior.h (step_sp): Ditto.
7855 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7856 * gdbthread.h (struct thread_info, save_infrun_state)
7857 (restore_infrun_state): Ditto.
7858
090ddb2a
UW
78592004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7860
7861 * MAINTAINERS (write after approval): Add myself.
7862
8aad930b
AC
78632004-05-12 Andrew Cagney <cagney@redhat.com>
7864
7865 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7866 eliminate reference to step_sp.
7867 (struct execution_control_state, init_execution_control_state)
7868 (handle_inferior_event, keep_going): Delete update_step_sp and
7869 step_sp.
7870 * infcmd.c (step_sp): Note that variable is unused.
7871
922d5ae0
AC
78722004-05-11 Andrew Cagney <cagney@redhat.com>
7873
7874 * infrun.c (step_over_function): Delete function.
7875 (handle_step_into_function): Use insert_step_resume_breakpoint.
7876 (insert_step_resume_breakpoint): Fix assertion.
7877
017c5ca5
NR
78782004-05-11 Nick Roberts <nickrob@gnu.org>
7879
7880 * utils.c (defaulted_query): Just use the normal query input type
7881 when printing the annotations.
7882
42edda50
AC
78832004-05-11 Andrew Cagney <cagney@redhat.com>
7884
7885 * infrun.c (handle_inferior_event): Simplify code handling
7886 step-into or return-from a signal trampoline.
7887
d28b44a7
AC
78882004-05-11 Andrew Cagney <cagney@redhat.com>
7889
7890 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7891 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7892
383f0f5b
JB
78932004-05-10 Jim Blandy <jimb@redhat.com>
7894
d0b57c3a
JB
7895 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7896 with a call to internal_error.
7897
383f0f5b
JB
7898 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7899 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7900 processor variant lacks those registers.
7901 (ppc_floating_point_unit_p): Change description to make it clear
7902 that this returns info about the ISA, not the ABI.
7903 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7904 return true or false by checking tdep->ppc_fp0_regnum and
7905 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7906 arch/mach switching done in rs6000_gdbarch_init; it's better to
7907 keep that logic there, and just check the results here.
7908 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7909 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7910 floating-point registers.
7911 (ppc_supply_fpregset, ppc_collect_fpregset)
7912 (rs6000_push_dummy_call, rs6000_extract_return_value)
7913 (rs6000_store_return_value): Assert that we have floating-point
7914 registers.
7915 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7916 (rs6000_frame_cache): Don't note the locations at which
7917 floating-point registers were saved if we have no fprs.
7918 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7919 registers.
7920 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7921 (store_regs_user_thread, store_regs_kernel_thread): Only call
7922 supply_fprs / fill_fprs if we actually have floating-point
7923 registers.
7924 (special_register_p): Check ppc_fpscr_regnum before matching
7925 against it.
7926 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7927 supply / collect fpscr if we don't have it.
7928 * ppc-bdm.c: #include "gdb_assert.h".
7929 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7930 have floating-point registers, since I can't test this code on
7931 FP-free systems to adapt it.
7932 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7933 fpscr and floating point register numbers if they don't exist.
7934 (fetch_register): Assert that we have floating-point registers
7935 before we reach the code that handles them.
7936 (store_register): Same. And use tdep instead of calling
7937 gdbarch_tdep again.
7938 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7939 don't have them.
7940 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7941 fprs and fpscr if we don't have them.
7942 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7943 don't have them.
7944 * ppcnbsd-nat.c: #include "gdb_assert.h".
7945 (getfpregs_supplies): Assert that we have floating-point registers.
7946 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7947 * ppcobsd-tdep.c: #include "gdb_assert.h".
7948 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7949 have floating-point registers.
7950 * rs6000-nat.c (regmap): Don't match against the fpscr and
7951 floating point register numbers if they don't exist.
7952 (fetch_inferior_registers, store_inferior_registers,
7953 fetch_core_registers): Only fetch / store / supply the
7954 floating-point registers and the fpscr if we have them.
7955 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7956 (ppcobsd-tdep.o): Update dependencies.
7957
15960608
AC
79582004-05-10 Andrew Cagney <cagney@redhat.com>
7959
7960 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7961 (context_switch): Do not switch through_sigtramp_breakpoint.
7962 * gdbthread.h (save_infrun_state, load_infrun_state)
7963 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7964 and structure member.
7965 * thread.c (load_infrun_state, save_infrun_state): Update.
7966
5ab5aa0f
MK
79672004-05-10 Mark Kettenis <kettenis@gnu.org>
7968
7969 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7970
da78b0e7
DJ
79712004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7972
7973 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7974 throughout.
7975 * aclocal.m4: Regenerate.
7976
cca0d3b0
NW
79772004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7978
7979 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7980
d303a6c7
AC
79812004-05-10 Andrew Cagney <cagney@redhat.com>
7982
7983 * infrun.c (check_sigtramp2): Delete function.
7984 (handle_inferior_event): When single stepping, and taking a
7985 signal, set a breakpoint at the signal return address. Delete
7986 redundant calls to check_sigtramp2.
7987 (insert_step_resume_breakpoint): New function.
7988 (through_sigtramp_breakpoint, handle_inferior_event)
7989 (follow_exec, wait_for_inferior, fetch_inferior_event)
7990 (currently_stepping, keep_going): Delete most uses of
7991 through_sigtramp_breakpoint, not that it should be deleted.
7992 (delete_breakpoint_current_contents): Delete function.
7993
03f4cc20
RC
79942004-05-10 Randolph Chung <tausq@debian.org>
7995
7996 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7997 target.
7998 * config/pa/tm-linux.h: New file.
7999
37fc812e
DJ
80002004-05-10 Daniel Jacobowitz <drow@mvista.com>
8001
8002 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
8003 of prefixes. Don't print the prefix twice in the CLI.
8004
26c0b942
JB
80052004-05-10 Jim Blandy <jimb@redhat.com>
8006
2e56e9c1
JB
8007 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
8008 collect all the gprs.
8009
26c0b942
JB
8010 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
8011 loop collecting gprs.
8012
dc497459
AC
80132004-05-09 Andrew Cagney <cagney@redhat.com>
8014
8015 * remote-vx.c (net_step): Delete step-range code.
8016 * remote.c (remote_resume, init_all_packet_configs)
8017 (set_remote_protocol_E_packet_cmd)
8018 (show_remote_protocol_E_packet_cmd)
8019 (remote_protocol_E, show_remote_cmd, _initialize_remote)
8020 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
8021 (show_remote_protocol_e_packet_cmd): Ditto.
8022
0543f387
MK
80232004-05-09 Mark Kettenis <kettenis@gnu.org>
8024
c481d1ca
MK
8025 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
8026
f626a069
MK
8027 * hppa-tdep.h: Update copyright year.
8028 (struct trad_frame_saved_reg): Add opaque declaration.
8029
6fa57a7d
MK
8030 * amd64-tdep.c (amd64_return_value): Implement
8031 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8032
e47577ab
MK
8033 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
8034 (m68k_value_to_register): New functions.
8035 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
8036 value_to_register.
8037
31db7b6c
MK
8038 * defs.h (enum return_value_convention): Add
8039 RETURN_VALUE_ABI_RETURNS_ADDRESS and
8040 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8041 * infcmd.c (legacy_return_value): New function.
8042 (print_return_value): Rwerite to implement
8043 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8044 * values.c (using_struct_return): Check for inequality to
8045 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8046 RETURN_VALUE_STRUCT_CONVENTION.
8047 * i386-tdep.c (i386_return_value): Implement
8048 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8049
0543f387
MK
8050 * vax-tdep.c: Tweak comments. Reorder include files. Don't
8051 include "symtab.h", "opcode/vax.h" and "inferior.h".
8052 (vax_skip_prologue): Replace calls to read_memory_integer by calls
8053 to read_memory_unsigned_integer.
8054 (vax_gdbarch_init): Reorder.
8055 (_initialize_vax_tdep): Spell out prototype.
8056 * Makefile.in (vax-tdep.o): Update dependencies.
8057
0c93b7b6
AC
80582004-05-08 Andrew Cagney <cagney@redhat.com>
8059
e6b55ae2
AC
8060 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8061 * target.c (target_detach, target_disconnect): Ditto.
8062
1ac839b8
AC
8063 * infcall.c (call_function_by_hand): When no
8064 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8065 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8066 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8067 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8068 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8069
28954179
AC
8070 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8071 * gdbarch.h, gdbarch.c: Re-generate.
8072 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8073 deprecated_fix_call_dummy.
8074 * v850-tdep.c (v850_gdbarch_init): Ditto.
8075 * infcall.c (call_function_by_hand): Do not call
8076 DEPRECATED_FIX_CALL_DUMMY.
8077
434b87dd
AC
8078 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8079 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8080 * gdbarch.h, gdbarch.c: Re-generate.
8081 * arm-linux-tdep.c (arm_linux_call_dummy_words)
8082 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8083 deprecated_sizeof_call_dummy_words.
8084 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8085 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8086 * v850-tdep.c (v850_gdbarch_init): Ditto.
8087 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8088 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8089 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8090 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8091 * arch-utils.h (legacy_call_dummy_words)
8092 (legacy_sizeof_call_dummy_words): Delete declarations.
8093 * arch-utils.c (legacy_call_dummy_words)
8094 (legacy_sizeof_call_dummy_words): Delete variables.
8095
58d28df8
AC
8096 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8097 * gdbarch.h, gdbarch.c: Re-generate.
8098 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8099 * infcall.c (call_function_by_hand): Eliminate call to
8100 DEPRECATED_PUSH_DUMMY_FRAME.
8101 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8102 push_dummy_frame.
8103 (ns32k_push_dummy_frame): Delete function.
8104
e4a2df64
AC
8105 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8106 deprecated_call_dummy_breakpoint_offset or
8107 deprecated_call_dummy_start_offset.
8108 * dummy-frame.c, arm-tdep.c: Update comments.
8109 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8110 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8111 * gdbarch.h, gdbarch.c: Re-generate.
8112
d3712828
AC
8113 * infcall.c (legacy_push_dummy_code): Delete function.
8114 (push_dummy_code): Delete call.
8115
7a882905
AC
8116 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8117 * gdbarch.h, gdbarch.c: Re-generate.
8118 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8119 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8120 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8121 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8122
0ec5872b
AC
8123 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8124 (struct frame_info): Delete opaque declaration.
8125 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8126 * frame.c (get_frame_type): Delete call.
8127
0c93b7b6
AC
8128 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8129 pc_in_call_dummy.
8130 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8131 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8132
75536971
MK
81332004-05-08 Mark Kettenis <kettenis@gnu.org>
8134
527ca6bb
MK
8135 * alphanbsd-tdep.c: Include "gdb_string.h".
8136 * armnbsd-tdep.c: Update copyright year.
8137 Include "gdb_string.h".
8138 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8139 dependencies.
8140
d39fdc61
MK
8141 * delta68-nat.c: Remove file.
8142 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8143 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8144 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8145 (delta68-nat.o): Remove dependency.
8146
75536971
MK
8147 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8148 function.
8149 (m68k_gdbarch_init): Don't set
8150 deprecated_frameless_function_invocation.
8151
f4ca1d1f
RC
81522004-05-07 Randolph Chung <tausq@debian.org>
8153
8154 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8155 read_memory_nobpt for code reading when doing frame unwinding.
8156 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8157
2f0e8c7a
RC
81582004-05-07 Randolph Chung <tausq@debian.org>
8159
8160 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8161 instead of sp, handle sigaltstack case.
8162 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8163 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8164 signal handler and not that of the caller.
8165 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8166 hppa_linux_sigtramp_find_sigcontext.
8167
959464ff
RC
81682004-05-07 Randolph Chung <tausq@debian.org>
8169
8170 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8171 hppa-linux-nat.c.
8172 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8173 * hppa-linux-nat.c (fetch_register, store_register): Define.
8174 (fetch_inferior_registers, store_inferior_registers): Define.
8175 (supply_gregset): Add comment and clean up some unneeded code.
8176 (fill_gregset): Add comment and fix so that it saves registers in
8177 the right place in the gregset.
8178 (fill_fpregset): Fix buffer overrun problem.
8179 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8180
0da28f8a
RC
81812004-05-07 Randolph Chung <tausq@debian.org>
8182
8183 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8184 do common handling of the pcoqt register.
8185 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8186 to use helper function.
8187 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8188 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8189 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8190 generic fallback unwinder when all else fails.
8191 (hppa_gdbarch_init): Add fallback sniffer.
8192 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8193 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8194 to use helper function.
8195
b9ec757a
JB
81962004-05-08 Joel Brobecker <brobecker@gnat.com>
8197
8198 * config/djgpp/fnchange.lst: Add translation rules for
8199 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8200
756e95f1
MK
82012004-05-08 Mark Kettenis <kettenis@gnu.org>
8202
8203 * frame.c (get_prev_frame_1): Work around GCC bug.
8204 * frame.h: Add comment about GCC bug.
8205
2b4855ab
AC
82062004-05-07 Andrew Cagney <cagney@redhat.com>
8207
8208 * observer.c: Include "commands.h" and "gdbcmd.h".
8209 (observer_debug, _initialize_observer): Add the
8210 command "set/show debug observer".
8211 * observer.sh: When observer debugging, log notify calls.
8212 * Makefile.in (observer.o): Update dependencies.
8213
ba3e8e46
JM
82142004-05-07 Jason Molenda (jmolenda@apple.com)
8215
8216 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8217
16796152
JB
82182004-05-07 Jim Blandy <jimb@redhat.com>
8219
daf6dc85
JB
8220 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8221 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8222 to recognize gpr regnums, instead of assuming that
8223 tdep->ppc_fp0_regnum marks the end of the general-purpose
8224 registers.
8225
16796152
JB
8226 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8227 the given architecture has floating-point registers.
8228
c69b8bfc
AC
82292004-05-07 Andrew Cagney <cagney@redhat.com>
8230
8231 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8232 macro defined to 1.
8233 * gdbarch.h, gdbarch.c: Re-generate.
8234 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8235 deprecated_use_generic_dummy_frames.
8236
7243600a
BF
82372004-05-07 Brian Ford <ford@vss.fsi.com>
8238
8239 * NEWS: Mention Cygwin DWARF 2 support.
8240
73c1e0a1
AC
82412004-05-07 Andrew Cagney <cagney@redhat.com>
8242
8243 * objfiles.h (struct entry_info): Delete unused fields
8244 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8245 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8246 * mipsread.c (mipscoff_symfile_read): Update.
8247 * mdebugread.c (parse_partial_symbols): Update.
8248 * dwarfread.c (read_file_scope): Update.
8249 * dwarf2read.c (read_file_scope): Update.
8250 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8251 * coffread.c (complete_symtab): Update.
8252
1d3056ac
MK
82532004-05-07 Mark Kettenis <kettenis@gnu.org>
8254
8255 * infcall.c (_initialize_infcall): Fix typo.
8256
15170568
AC
82572004-05-07 Andrew Cagney <cagney@redhat.com>
8258
8259 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8260 * command.h (add_setshow_zinteger_cmd): Declare.
8261
34f75cc1
RC
82622004-05-06 Randolph Chung <tausq@debian.org>
8263
8264 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8265 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8266 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8267 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8268 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8269 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8270 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8271 definitions ...
8272 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8273 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8274 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8275 (hppa64_hpux_frame_find_saved_regs_in_sig)
8276 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8277 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8278 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8279 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8280 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8281 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8282 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8283 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8284 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8285 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8286 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8287 (hppa32_register_type, hppa_cannot_store_register)
8288 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8289 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8290 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8291 * pa64solib.c (pa64_solib_have_load_event)
8292 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8293 (pa64_solib_unloaded_library_pathname): Likewise.
8294 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8295 (som_solib_library_pathname): Likewise.
8296
0a5e7efe
JI
82972004-05-05 Jim Ingham <jingham@apple.com>
8298
8299 * breakpoint.c (create_breakpoints): Copy the ignore count and
8300 thread id over from the pended breakpoint to the actual
8301 breakpoint.
8302
10a4b113
AC
83032004-05-05 Andrew Cagney <cagney@redhat.com>
8304
8305 * gdbarch.sh (PARM_BOUNDARY): Delete.
8306 gdbarch.h, gdbarch.c: Re-generate.
8307 * valops.c (PARM_BOUNDARY): Delete macro.
8308 (value_push): Delete PARM_BOUNDARY code.
8309 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8310
366f009f
JB
83112004-05-04 Jim Blandy <jimb@redhat.com>
8312
32b99774
JB
8313 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8314 Don't assume that the gprs, fprs, and UISA sprs are
8315 contiguous, start at register number zero, and end with fpscr.
8316 Instead, use the numbers from the tdep structure.
8317
366f009f
JB
8318 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8319 should no longer be used in code specific to the RS6000 and its
8320 derivatives.
8321 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8322 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8323 tdep->ppc_fp0_regnum.
8324 (ppc_supply_fpregset, ppc_collect_fpregset)
8325 (rs6000_push_dummy_call, rs6000_extract_return_value)
8326 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8327 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8328 FP0_REGNUM.
8329 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8330 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8331 Same.
8332 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8333 bdm_ppc_store_registers): Same.
8334 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8335 (store_register, fill_fpregset): Same.
8336 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8337 (ppc_linux_supply_fpregset): Same.
8338 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8339 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8340 Same.
8341 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8342 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8343 ppc64_sysv_abi_return_value): Same.
8344 * rs6000-nat.c (regmap, fetch_inferior_registers)
8345 (store_inferior_registers, fetch_core_registers): Same.
8346
827f338d
MK
83472004-05-01 Mark Kettenis <kettenis@gnu.org>
8348
8349 * m68knbsd-nat.c: Remove file.
8350 * m68knbsd-tdep.c: Remove file.
8351 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8352 dependencies.
8353 * configure.host: Add m68k-*-netbsdelf*.
8354 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8355 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8356 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8357 (XM_FILE): Remove.
8358 * config/m68k/nbsdelf.mh: New file.
8359 * config/m68k/nbsd.mt: New file.
8360 * config/m68k/nbsdaout.mt: Remove file.
8361 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8362 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8363 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8364 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8365 (use_struct_convention): Remove prototype.
8366 (USE_STRUCT_CONVENTION): Remove define.
8367 * config/m68k/xm-nbsd.h: Remove file.
8368
66894781
MS
83692004-05-04 Michael Snyder <msnyder@redhat.com>
8370
8371 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8372 reg_struct_return method (as gcc usually does for cross targets).
8373
f0f63663
AC
83742004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8375
8376 Committed by Andrew Cagney.
8377 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8378 alignment padding when accessing ucontext struct members.
8379
edf61169
JB
83802004-05-04 Jim Blandy <jimb@redhat.com>
8381
8bf659e8
JB
8382 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8383 'ppc_gplast_regnum' member.
8384 (ppc_num_gprs): New enum constant.
8385 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8386 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8387 * rs6000-nat.c (regmap, fetch_inferior_registers,
8388 store_inferior_registers): Same.
8389 * rs6000-tdep.c (e500_pseudo_register_read)
8390 (e500_pseudo_register_write): Same.
8391 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8392
b967e06f
JB
8393 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8394 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8395 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8396 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8397 FPLAST_REGNUM.
8398 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8399 Same.
8400 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8401 * rs6000-nat.c (regmap, fetch_inferior_registers)
8402 (store_inferior_registers): Same.
8403
edf61169
JB
8404 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8405 with FPLAST_REGNUM.
8406
58a9656e
JB
84072004-05-03 Joel Brobecker <brobecker@gnat.com>
8408
8409 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8410 failure detected by recent versions of GCC.
8411 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8412 to be consistent with the usage in dwarf2_create_include_psymtab.
8413
dc305454
MS
84142004-05-03 Michael Snyder <msnyder@redhat.com>
8415
8416 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8417 (heuristic_proc_start): Whitespace cleanup.
8418
29972665
MK
84192004-05-04 Mark Kettenis <kettenis@gnu.org>
8420
6b57680d
MK
8421 * sun3-nat.c: Remove file.
8422 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8423 dependencies.
8424 (ALLDEPFILES): Remove sun3-nat.c.
8425 (sun3-nat.o): Remove dependencies.
8426
29972665
MK
8427 * i386-interix-nat.c, i386-interix-tdep.c,
8428 config/i386/nm-interix.h, config/i386/interix.mh,
8429 config/i386/interix.mt: Remove files.
8430 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8431 dependencies.
8432
f595cb19
MK
84332004-05-03 Mark Kettenis <kettenis@gnu.org>
8434
8435 * m68k-tdep.h (struct gdbarch_tdep): Add member
8436 struct_value_regnum.
8437 (m68k_svr4_init_abi): New prototype.
8438 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8439 different calling conventions.
8440 (m68k_extract_return_value): Remove code dealing with single-field
8441 structs.
8442 (m68k_store_return_value): Remove code dealing with single-field
8443 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8444 (m68k_extract_struct_value_address): Remove function.
8445 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8446 (m68k_reg_struct_return_p, m68k_return_value)
8447 (m68k_svr4_return_value): New functions.
8448 (m68k_use_struct_convention): Remove function.
8449 (m68k_push_dummy_call): Use new struct_value_regnum member of
8450 `struct gdbarch_tdep' instead of hardcoded register number to
8451 store STRUCT_ADDR.
8452 (m68k_svr4_init_abi): New function.
8453 (m68k_gdbarch_init): Don't set extract_return_value,
8454 store_return_values, deprecated_extract_struct_value_address and
8455 use_struct_convention. Set return_value instead. Initialize new
8456 struct_value_regnum member of `struct gdbarch_tdep'.
8457 * m68klinux-tdep.c: Update copyright year.
8458 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8459 (m68k_linux_extract_struct_value_address): Remove function.
8460 (m68k_linux_init_abi): Don't set extract_return_value,
8461 store_return_values, deprecated_extract_struct_value_address and
8462 use_struct_convention. Call m68k_svr4_init_abi but override the
8463 new struct_value_regnum member of `struct gdbarch_tdep'.
8464 * Makefile.in (m68k-tdep.o): Update dependencies.
8465
aaa75496
JB
84662004-05-03 J. Brobecker <brobecker@gnat.com>
8467
8468 * dwarf2read.c (line_header): Add new included_p field in
8469 field file_names.
8470 (partial_die_info): New field has_stmt_list. New field line_offset.
8471 (dwarf2_create_include_psymtab): New function.
8472 (dwarf2_build_include_psymtabs): New function.
8473 (add_file_name): Add forward declaration. Initialize new field.
8474 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8475 to be able to determine the list of files included by the
8476 given unit, and build their associated psymtabs.
8477 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8478 files as well.
8479 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8480 (read_file_scope): Update call to dwarf_decode_lines.
8481 (read_partial_die): Handle DW_AT_stmt_list attributes.
8482
c848556f
MC
84832004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8484
8485 Unfix PR gdb/1626.
8486 * configure.in: Revert special case for osf5.*.
8487 * configure: Regenerate.
8488
eb4556d7
JB
84892004-05-02 Jim Blandy <jimb@redhat.com>
8490
8491 Move the symbol-file-from-memory functions into their own file.
8492 * symfile-mem.c, symfile-mem.h: New files.
8493 * symfile.c (symbol_file_add_from_bfd): New function.
8494 (symbol_file_add): Call symbol_file_add_from_bfd.
8495 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8496 Moved to symfile-mem.c.
8497 (_initialize_symfile): Move definition of
8498 add-symbol-file-from-memory command to symfile-mem.c.
8499 * symfile.h (symbol_file_add_from_bfd): New declaration.
8500 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8501 * config/powerpc/linux.mt (TDEPFILES): Same.
8502 * Makefile.in (SFILES): Add symfile-mem.c.
8503 (symfile_mem_h): New variable.
8504 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8505 (symfile-mem.o): New rule.
8506
80bb239e
AC
85072004-05-01 Andrew Cagney <cagney@redhat.com>
8508
7789d0fa
AC
8509 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8510 frame_find_by_id instead of frame_relative_level.
8511 (do_enable_breakpoint): Ditto.
8512 * thread.c: Update copyright.
8513 (info_threads_command): Ditto, simplify.
8514
80bb239e
AC
8515 * frame.c (deprecated_generic_get_saved_register): Delete
8516 function, moved to "xstormy16-tdep.c".
8517 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8518 deprecated_generic_get_saved_register from "frame.c".
8519 (xstormy16_frame_saved_register): Call
8520 xstormy16_get_saved_register.
8521 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8522 static.
8523 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8524 * frame.h (deprecated_generic_get_saved_register): Delete.
8525
b2a871dd
MC
85262004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8527
8528 * dwarfread.c: Update documentation on the state of dwarf-1.
8529
0e100dab
AC
85302004-05-01 Andrew Cagney <cagney@redhat.com>
8531
acd8056e
AC
8532 * stack.c (select_frame_command): Delete call to
8533 frame_relative_level.
8534 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8535 Delete #if0 code.
8536 (frame_info): Do not print FRAMELESS.
8537 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8538 (catch_info): Delete #if0 code.
8539
0e100dab
AC
8540 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8541 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8542 of frame_relative_level.
8543 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8544 to SENTINEL_FRAME.
8545 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8546 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8547 frame_relative_level.
8548
55699d59
AC
8549 * frame.h (deprecated_set_frame_type): Delete declaration.
8550 * frame.c (deprecated_set_frame_type): Delete function, update
8551 comments.
8552
fcf70625
AC
8553 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8554 * gdbarch.h, gdbarch.c: Re-generate.
8555 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8556 (shnbsd_pc_in_sigtramp): Delete.
8557 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8558 pc_in_sigtramp.
8559 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8560 pc_in_sigtramp.
8561 * frame.h: Update comments.
8562 * ppc-linux-tdep.c: Update comments.
8563 * breakpoint.c (bpstat_what): Update comments.
8564
ac5eccb7
AC
8565 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8566 m68klinux-tdep.o's dependencies, were previously added to
8567 m68klinux-nat.o.
8568
f2524b93
AC
8569 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8570 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8571 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8572 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8573 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8574
17e20bce
AC
8575 * Makefile.in (m68klinux-nat.o): Update dependencies.
8576 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8577 (m68k_linux_sigtramp_frame_cache)
8578 (m68k_linux_sigtramp_frame_this_id)
8579 (m68k_linux_sigtramp_frame_prev_register)
8580 (m68k_linux_sigtramp_frame_unwind)
8581 (m68k_linux_sigtramp_frame_sniffer)
8582 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8583 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8584 names, use trad-frame.h.
8585 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8586 (struct m68k_sigtramp_info): Delete.
8587 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8588 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8589 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8590 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8591 "m68klinux-tdep.c".
8592
c8864fa2
AC
8593 * infrun.c (check_sigtramp2): Delete check for
8594 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8595
511dd2cd
MK
85962004-05-01 Mark Kettenis <kettenis@gnu.org>
8597
8598 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8599
8c6b0e06
AC
86002004-05-01 Andrew Cagney <cagney@redhat.com>
8601
9df0bb3f
AC
8602 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8603 (frv_linux_sigtramp_frame_cache)
8604 (frv_linux_sigtramp_frame_this_id)
8605 (frv_linux_sigtramp_frame_prev_register)
8606 (frv_linux_sigtramp_frame_unwind)
8607 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8608 include "linux" in function and variable names, directly call
8609 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8610 the latest trad-frame code.
8611 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8612 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8613 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8614 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8615 * frv-tdep.c (frv_sigtramp_frame_cache)
8616 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8617 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8618 frv-linux-tdep.c.
8619 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8620 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8621 (frv_set_sigcontext_reg_addr): Delete function.
8622
8c6b0e06
AC
8623 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8624 (DEPRECATED_SIGTRAMP_END): Delete.
8625 * gdbarch.h, gdbarch.c: Re-generate.
8626 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8627 * config/vax/tm-vaxbsd.h: Update copyright.
8628 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8629 (DEPRECATED_IN_SIGTRAMP): Define.
8630 * config/m68k/tm-nbsd.h: Update copyright.
8631 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8632 (DEPRECATED_IN_SIGTRAMP): Define.
8633
50ea7769
MK
86342004-05-01 Mark Kettenis <kettenis@gnu.org>
8635
03ac2a74
MK
8636 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8637 encondings. Fixes PR gdb/1628.
8638
50ea7769
MK
8639 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8640 DW_CFA_restore state without a matching DW_CFA_remember_state
8641 instead of aborting. Fixes PR backtrace/1589.
8642
9a5d7be1
JB
86432004-04-30 Joel Brobecker <brobecker@gnat.com>
8644
8645 * MAINTAINERS: Add self as AIX maintainer.
8646 Update my e-mail address in write-after-approval section.
8647
2593d1cd
AC
86482004-04-30 Andrew Cagney <cagney@redhat.com>
8649
ce12bbf9
AC
8650 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8651 (legacy_get_prev_frame): Ditto.
8652
36710c63
AC
8653 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8654 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8655 * mipsread.c (sigtramp_address): Delete extern variable.
8656 (mipscoff_new_init): Delete reference.
8657 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8658 (fixup_sigtramp): Delete function.
8659 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8660 (fixup_sigtramp): Delete declarations.
8661
2593d1cd
AC
8662 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8663 deprecated_pc_in_sigtramp.
8664 (ppcnbsd_pc_in_sigtramp): Delete function.
8665
2a25f91c
MK
86662004-05-01 Mark Kettenis <kettenis@gnu.org>
8667
8668 * config/m68k/nm-nbsd.h: Tweak comments.
8669 * config/m68k/nm-nbsdaout.h: Likewise.
8670
0b281939
AC
86712004-04-30 Andrew Cagney <cagney@redhat.com>
8672
8673 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8674 legacy_pc_in_sigtramp.
8675 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8676
8f2d3ea0
MK
86772004-05-01 Mark Kettenis <kettenis@gnu.org>
8678
8679 Add OpenBSD/m68k support.
8680 * NEWS (New native configurations): Mention OpenBSD/m68k.
8681 * m68kbsd-tdep.c: New file.
8682 * m68kbsd-nat.c: New file.
8683 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8684 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8685 * configure.host: Add m68k-*-openbsd.
8686 * configure.tgt: Add m68k-*-openbsd.
8687 * config/m68k/tm-obsd.h: New file.
8688 * config/m68k/obsd.mt: New file.
8689 * config/m68k/obsd.mh: New file.
8690 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8691 m68kbsd-tdep.c.
8692
c40f49a4
AC
86932004-04-30 Andrew Cagney <cagney@redhat.com>
8694
8695 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8696 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8697
e81554cd
MK
86982004-04-30 Mark Kettenis <kettenis@gnu.org>
8699
8700 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8701 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8702
d4dc1a91
BF
87032004-04-30 Brian Ford <ford@vss.fsi.com>
8704
8705 Revert 2004-04-16 change.
8706 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8707 (i386_coff_init_abi): Remove.
8708 * i386-tdep.h (i386_coff_init_abi): Remove.
8709 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8710
2f72f850
AC
87112004-04-30 Andrew Cagney <cagney@redhat.com>
8712
e492f9d6
AC
8713 * blockframe.c (find_pc_partial_function): Delete use of
8714 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8715 DEPRECATED_SIGTRAMP_END.
8716
7b7adad0
AC
8717 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8718 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8719 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8720 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8721 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8722
2f72f850
AC
8723 * defs.h (deprecated_inside_entry_file): Delete declaration.
8724 * blockframe.c (deprecated_inside_entry_file): Delete function.
8725 (legacy_frame_chain_valid): Delete call.
8726 * sh64-tdep.c (sh64_frame_chain): Delete call.
8727 * objfiles.h: Update comments.
8728 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8729 call.
8730 * frame.c (get_prev_frame): Delete call, update comments.
8731
283f90a7
BF
87322004-04-30 Brian Ford <ford@vss.fsi.com>
8733
8734 * MAINTAINERS (Write After Approval): Add myself.
8735
8ee56bcf
AC
87362004-04-30 Andrew Cagney <cagney@redhat.com>
8737
8738 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8739 * gdbarch.h, gdbarch.c: Re-generate.
8740 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8741 code.
8742
ee27e1b6
AC
87432004-04-30 Andrew Cagney <cagney@redhat.com>
8744
8745 * gdb-events.sh (selected_thread_changed)
8746 (selected_frame_level_changed, target_changed): Delete.
8747 * gdb-events.h, gdb-events.c: Re-generate.
8748 * valops.c (value_assign): Update.
8749 * stack.c (select_frame_command, up_silently_base)
8750 (down_silently_base): Update.
8751
d5ac5a39
AC
87522004-04-29 Andrew Cagney <cagney@redhat.com>
8753
8754 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8755 registers correctly.
8756 (print_gp_register_row, mips32_heuristic_proc_desc)
8757 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8758 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8759 references to mips_isa_regsize.
8760
ceae6e75
AC
87612004-04-29 Andrew Cagney <cagney@redhat.com>
8762
8763 * mips-tdep.c (struct gdbarch_tdep): Delete
8764 mips_fp_register_double.
8765 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8766 mips_abi_regsize.
8767 (mips_gdbarch_init): Do not set mips_fp_register_double.
8768 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8769
a587af0b
AC
87702004-04-29 Joel Brobecker <brobecker@gnat.com>
8771
8772 Committed by Andrew Cagney.
8773 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8774 function calls.
8775
13326b4e
AC
87762004-04-29 Andrew Cagney <cagney@redhat.com>
8777
8778 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8779 gdbarch, use mips_abi, update callers.
8780 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8781 mips_abi_regsize, update callers.
8782 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8783 mips_default_abi_regsize.
8784 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8785 mips_default_abi_regsize.
8786
711cc5cd
AC
87872004-04-29 Andrew Cagney <cagney@redhat.com>
8788
1b13c4f6
AC
8789 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8790 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8791 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8792 mips_default_abi_regsize.
8793 (mips_isa_regsize): Rename mips_regisze.
8794 * mipsnbsd-tdep.c: Update.
8795 * mips-linux-tdep.c: Update.
8796 * irix5-nat.c: Update.
8797 * mips-tdep.h (mips_isa_regsize): Update.
8798
711cc5cd
AC
8799 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8800 Delete all disabled code.
8801 * gdb-events.h, gdb-events.c: Re-generate.
8802
e63bbc88
MK
88032004-04-19 Jerome Guitton <guitton@gnat.com>
8804 Mark Kettenis <kettenis@gnu.org>
8805
8806 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8807 the function begins with a branch instruction.
8808
fd35795f
MK
88092004-04-29 Mark Kettenis <kettenis@gnu.org>
8810
8811 * i386-tdep.c: Fix spelling mistakes.
8812
c960c18f
AC
88132004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8814 Andrew Cagney <cagney@redhat.com>
8815
8816 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8817 <sys/proc.h>.
8818 * acconfig.h: Provide default _KMEMUSER value.
8819 * config.in, configure: Re-generate.
8820 * NEWS: Mention fix.
8821
50306a9d
RC
88222004-04-24 Randolph Chung <tausq@debian.org>
8823
8824 * configure.host (hppa*-*-linux*): New target.
8825 * configure.tgt (hppa*-*-linux*): Likewise.
8826 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8827 gdbarch_init_osabi() call earlier so that osabi-specific frame
8828 unwinders can be registered first.
8829 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8830 hppa-linux-nat.c.
8831 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8832 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8833 * config/pa/linux.mh: New file.
8834 * config/pa/linux.mt: New file.
8835 * config/pa/nm-linux.h: New file.
8836 * config/pa/xm-linux.h: New file.
8837 * hppa-linux-nat.c: New file.
8838 * hppa-linux-tdep.c: New file.
8839
2a6228ef
RC
88402004-04-28 Randolph Chung <tausq@debian.org>
8841
8842 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8843 return values.
8844 (hppa32_push_dummy_call): Fix small struct and floating point argument
8845 passing, and make sure the stack frame is properly aligned.
8846
82c10df6
AC
88472004-04-28 Andrew Cagney <cagney@redhat.com>
8848
d762c46a
AC
8849 * stack.c (print_stack_frame): Fix description.
8850
82c10df6
AC
8851 * NEWS: Mention gdb/gdbserver/configure execute permission
8852 changed. PR server/519.
8853
0faf0076
AC
88542004-04-28 Andrew Cagney <cagney@redhat.com>
8855
8856 * stack.c (print_stack_frame_stub): Delete declaration.
8857 (struct print_stack_frame_args, print_stack_frame)
8858 (print_frame_info, print_frame): Replace "source" with print what.
8859 Replace "print" with "print_level". Replace "args" with
8860 "print_args".
8861 * frame.h (show_and_print_stack_frame, print_stack_frame)
8862 (print_frame_info): Update declarations.
8863 * stack.c (select_and_print_frame, frame_command)
8864 (current_frame_command, up_command, down_command): Update calls -
8865 use get_selected_frame, pass "enum print_what" for source, do not
8866 call frame_relative_level.
8867 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8868 * remote-rdp.c (remote_rdp_open): Ditto.
8869 * remote-mips.c (common_open): Ditto.
8870 * remote-e7000.c (e7000_start_remote): Ditto.
8871 * ocd.c (ocd_start_remote): Ditto.
8872 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8873 * infrun.c (normal_stop): Ditto.
8874 * inflow.c (kill_command): Ditto.
8875 * infcmd.c (finish_command): Ditto.
8876 * corelow.c (core_open): Ditto.
8877 * tracepoint.c (finish_tfind_command): Ditto.
8878 * thread.c (info_threads_command, info_threads_command)
8879 (restore_current_thread, do_captured_thread_select): Ditto.
8880 * ada-tasks.c (task_command): Ditto.
8881
f4c5303c
OF
88822004-04-26 Orjan Friberg <orjanf@axis.com>
8883
8884 * frame.c: Include "observer.h".
8885 (frame_observer_target_changed): New function.
8886 (_initialize_frame): Attach target_changed observer.
8887 * regcache.c: Include "observer.h".
8888 (regcache_observer_target_changed): New function.
8889 (_initialize_regcache): Attach target_changed observer.
8890 * valops.c: Include "observer.h".
8891 (value_assign): Notify target_changed event when modifying register.
8892 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8893
7270d8f2
OF
88942004-04-26 Orjan Friberg <orjanf@axis.com>
8895
8896 From Paul Koning <pkoning@equallogic.com>:
8897 * breakpoint.c (free_valchain): New function.
8898 (insert_bp_location, delete_breakpoint): Use free_valchain.
8899 (remove_breakpoint): Do not remove the valchain.
8900 (bpstat_stop_status): If not stopped by watchpoint, skip
8901 watchpoints when generating stop status list.
8902 * infrun.c (handle_inferior_event): Make
8903 stepped_after_stopped_by_watchpoint a global variable.
8904 * remote.c (remote_stopped_data_address): Return watch data
8905 address rather than zero if stepped_after_stopped_by_watchpoint is
8906 set.
8907
02d62932
MC
89082004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8909
8910 Fix PR gdb/1626.
8911 * configure.in: Check for curses after termcap.
8912 On osf5.*, do not check for ncurses.
8913 * configure: Regenerate.
8914
3e9a183c
MK
89152004-04-25 Mark Kettenis <kettenis@gnu.org>
8916
c79ac407
MK
8917 * ppcobsd-nat.c: Include "ppc-tdep.h".
8918 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8919
3e9a183c
MK
8920 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8921 Fixes PR tdep/1623 and PR tdep/1624.
8922
38cc9c28
MC
89232004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8924
8925 * xmodem.h, xmodem.c: Remove files.
8926 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8927
7f07c5b6
RC
89282004-04-23 Randolph Chung <tausq@debian.org>
8929
8930 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8931 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8932 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8933 for handling stackless frames.
8934 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8935
9f7194c3
RC
89362004-04-23 Randolph Chung <tausq@debian.org>
8937
8938 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8939 starts at a pc before the frame is created.
8940
dcff6009
JB
89412004-04-23 Joel Brobecker <brobecker@gnat.com>
8942
8943 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8944
40711ff1 89452004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
8946
8947 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8948 use convert_typed_floating to get the appropriate format.
8949
abc485a1
RC
89502004-04-22 Randolph Chung <tausq@debian.org>
8951
8952 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8953 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8954 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8955 (hppa_sign_extend): Add prototype.
8956 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8957 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8958 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8959 hppa targets will also use these functions.
8960 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8961 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8962 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8963 (hppa_gdbarch_init): Remove gdbarch setting of
8964 skip_trampoline_code, in_solib_call_trampoline and
8965 in_solib_return_trampoline.
8966 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8967 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8968 hppa_in_solib_call_trampoline.
8969 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8970 Moved from hppa-tdep.c.
8971 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8972 in_solib_call_trampoline and in_solib_return_trampoline.
8973
369aa520
RC
89742004-04-22 Randolph Chung <tausq@debian.org>
8975
8976 * hppa-tdep.c (hppa_debug): New variable.
8977 (find_unwind_entry, hppa_frame_cache): Add debug output.
8978 (_initialize_hppa_tdep): Add command to set debug flag.
8979
476be15e
AC
89802004-04-22 Andrew Cagney <cagney@redhat.com>
8981
8982 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8983 "trad-frame.h".
8984 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8985 signal trampoline unwinder.
8986 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8987
d195bc9f
MK
89882004-04-22 Mark Kettenis <kettenis@gnu.org>
8989
8990 Add OpenBSD/powerpc support.
8991 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8992 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8993 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8994 (ppc_collect_fpregset): New prototypes.
8995 * ppcobsd-nat.c: New file.
8996 * ppcobsd-tdep.c: New file.
8997 * ppcobsd-tdep.h: New file.
8998 * rs6000-tdep.c: Include "regset.h".
8999 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
9000 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
9001 New functions.
9002 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
9003 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
9004 (rs6000-tdep.o): Update dependencies.
9005 * configure.host: Add powerpc-*-openbsd.
9006 * configure.tgt: Add powerpc-*-openbsd.
9007 * config/powerpc/obsd.mh: New file.
9008 * config/powerpc/nm-obsd.h: New file.
9009 * config/powerpc/obsd.mt: New file.
9010
6f14cc33
AC
90112004-04-22 Andrew Cagney <cagney@redhat.com>
9012
fcf29e5f
AC
9013 * frame.h (show_frame_info): Delete declaration.
9014
6f14cc33
AC
9015 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
9016 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
9017 * m32r-tdep.c (m32r_frame_this_id): Ditto.
9018 * frv-tdep.c (frv_frame_this_id): Ditto.
9019 * avr-tdep.c (avr_frame_this_id): Ditto.
9020
e5786a5c
EZ
90212004-04-22 Elena Zannoni <ezannoni@redhat.com>
9022
9023 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
9024
26e75e5c
JB
90252004-04-22 Jim Blandy <jimb@redhat.com>
9026
9027 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
9028 register number zero.
9029
d8d65dd3
MS
90302004-04-21 Michael Snyder <msnyder@redhat.com>
9031
9032 * mips-tdep.c (heuristic_proc_start):
9033 Warning() already prefixes "Warning: ".
9034
9a4105ab
AC
90352004-04-21 Andrew Cagney <cagney@redhat.com>
9036
9037 * annotate.h (deprecated_annotate_starting_hook)
9038 (deprecated_annotate_stopped_hook)
9039 (deprecated_annotate_exited_hook)
9040 (deprecated_annotate_signal_hook)
9041 (deprecated_annotate_signalled_hook): Deprecate.
9042 * tracepoint.h (deprecated_create_tracepoint_hook)
9043 (deprecated_delete_tracepoint_hook)
9044 (deprecated_modify_tracepoint_hook)
9045 (deprecated_trace_find_hook)
9046 (deprecated_trace_start_stop_hook): Deprecate.
9047 * target.h (deprecated_target_new_objfile_hook): Deprecate.
9048 * remote.h (deprecated_target_resume_hook)
9049 (deprecated_target_wait_loop_hook): Deprecate.
9050 * gdbcore.h (deprecated_exec_file_display_hook)
9051 (deprecated_file_changed_hook): Deprecate.
9052 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9053 * defs.h (deprecated_modify_breakpoint_hook)
9054 (deprecated_command_loop_hook, deprecated_show_load_progress)
9055 (deprecated_print_frame_info_listing_hook)
9056 (deprecated_query_hook, deprecated_warning_hook)
9057 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9058 (deprecated_delete_breakpoint_hook)
9059 (deprecated_interactive_hook, deprecated_registers_changed_hook)
9060 (deprecated_readline_begin_hook, deprecated_readline_hook)
9061 (deprecated_readline_end_hook, deprecated_register_changed_hook)
9062 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9063 (deprecated_context_hook, deprecated_target_wait_hook)
9064 (deprecated_attach_hook, deprecated_detach_hook)
9065 (deprecated_call_command_hook, deprecated_set_hook)
9066 (deprecated_error_hook, deprecated_error_begin_hook)
9067 (deprecated_ui_load_progress_hook): Deprecate.
9068 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9069 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9070 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9071 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9072 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9073 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9074 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9075 * annotate.c, aix-thread.c: Update.
9076
62cf13cc
AC
90772004-04-21 Andrew Cagney <cagney@redhat.com>
9078
b2e31a62
AC
9079 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9080 * vaxnbsd-tdep.c: Include "gdb_string.h".
9081
62cf13cc
AC
9082 * symfile.c (symbol_file_add_from_memory): #if 0 function.
9083 (add_symbol_file_from_memory_command): #if 0 function body, call
9084 error instead.
9085
00e32a35
AC
90862004-04-21 Andrew Cagney <cagney@redhat.com>
9087
9088 * gdbcore.h: Update copyright.
9089 (deprecated_add_core_fns): Rename add_core_fns.
9090 * win32-nat.c (_initialize_core_win32): Update.
9091 * sun3-nat.c (_initialize_core_sun3): Update.
9092 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9093 * rs6000-nat.c (_initialize_core_rs6000): Update.
9094 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9095 * nto-tdep.c (_initialize_nto_tdep): Update.
9096 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9097 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9098 * mips-nat.c (_initialize_core_mips): Update.
9099 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9100 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9101 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9102 * lynx-nat.c (_initialize_core_lynx): Update.
9103 * irix5-nat.c (_initialize_core_irix5): Update.
9104 * i386-interix-nat.c (_initialize_core_interix): Update.
9105 * cris-tdep.c (_initialize_cris_tdep): Update.
9106 * corelow.c (deprecated_add_core_fns): Update.
9107 * core-regset.c (_initialize_core_regset): Update.
9108 * core-aout.c (_initialize_core_aout): Update.
9109 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9110 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9111 * alpha-nat.c (_initialize_core_alpha): Update.
9112
13c7b1ca
JB
91132004-04-21 Jim Blandy <jimb@redhat.com>
9114
9115 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9116
7b5a2f43
DJ
91172004-04-19 Daniel Jacobowitz <drow@mvista.com>
9118
9119 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9120 Delete.
9121 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
9122 (read_attribute_value): Update calls to dwarf_alloc_block.
9123 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9124 dwarf2_tmp_obstack.
9125 (psymtab_to_symtab_1): Likewise. Clean up using
9126 free_stack_comp_unit.
9127 (add_to_cu_func_list): Use the comp_unit_obstack.
9128
05cf31d1
JB
91292004-04-19 Joel Brobecker <brobecker@gnat.com>
9130
9131 * dwarf2read.c (dwarf2_flag_true_p): New function.
9132 (die_is_declaration): Use the function above. Add some comments.
9133
adf93a2f
MK
91342004-04-19 Mark Kettenis <kettenis@gnu.org>
9135
9136 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9137 architecture when registering sparcnbsd_core_osabi_sniffer.
9138 Adjust comment.
9139
748894bf
MK
91402004-04-18 Mark Kettenis <kettenis@gnu.org>
9141
f622ad42
MK
9142 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9143 return value.
9144
c4fc7f1b
MK
9145 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9146 * i386-tdep.c: Correct register numbering scheme comments
9147 throughout.
9148 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9149 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9150 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9151 (i386_gdb_arch_init): Likewise.
9152
b4ead1bd
MK
9153 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9154 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9155 ppcnbsd-tdep.o.
9156
748894bf
MK
9157 * m68k-tdep.h: Tweak comments.
9158 * m68k-tdep.c: Tweak comment.
9159
fdd72f95
RC
91602004-04-17 Randolph Chung <tausq@debian.org>
9161
9162 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9163 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9164 (hppa_hpux_som_init_abi): Set is_elf to 0.
9165 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9166 * hppa-tdep.c (low_text_segment_address): Remove global.
9167 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9168 section offset to calculate segment address.
9169 (internalize_unwinds): Define low_text_segment_address as local and
9170 pass to record_text_segment_lowaddr for ELF targets.
9171 (hppa_gdbarch_init): Zero fill tdep structure.
9172 (hppa_dump_tdep): Print tdep structure.
9173 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9174
0f8d9d59
RC
91752004-04-17 Randolph Chung <tausq@debian.org>
9176
9177 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9178 (hppa_gdbarch_init): Set pseudo_register_read.
9179 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9180 * regcache.c (supply_register): Remove check for
9181 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9182
7c46b9fb
RC
91832004-04-17 Randolph Chung <tausq@debian.org>
9184
9185 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9186 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9187 (hpread_adjust_stack_address): Move to hpread.c.
9188 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9189 obj_private_struct): Move from tm-hppa.h.
9190 * hpread.c (hppa-tdep.h): Include.
9191 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9192 (hpread_read_function_type, hpread_read_doc_function_type)
9193 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9194 directly.
9195 * pa64solib.c (hppa-tdep.h): Include.
9196 * somsolib.c (hppa-tdep.h): Include.
9197 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9198 inferior_status): Remove unused forward declarations.
9199 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9200 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9201 obj_private_struct): Move to hppa-tdep.h.
9202 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9203
8d153463
RC
92042004-04-17 Randolph Chung <tausq@debian.org>
9205
9206 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9207 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9208 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9209 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9210 Remove forward declaration and make static.
9211 (hppa_reg_struct_has_addr): Remove.
9212
350c2e5b
JB
92132004-04-16 Joel Brobecker <brobecker@gnat.com>
9214
9215 * observer.sh: Move comments in sed command to first column.
9216
bbde78fa
JM
92172004-04-16 Jason Molenda (jmolenda@apple.com)
9218
9219 * frame.c: Minor typeo corrections in comments.
9220
e0270fd9
JB
92212004-04-16 Joel Brobecker <brobecker@gnat.com>
9222
9223 * observer.c (observer_test_first_notification_function): Update
9224 function profile.
9225 (observer_test_second_notification_function): Likewise.
9226 (observer_test_third_notification_function): Likewise.
9227
3d049254
MK
92282004-04-16 Mark Kettenis <kettenis@gnu.org>
9229
9230 From Brian Ford <ford@vss.fsi.com>:
9231 * i386-tdep.c (i386_coff_init_abi): New function.
9232 * i386-tdep.h (i386_coff_init_abi): New prototype.
9233 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9234 register number translation functions for DWARF and DWARF 2.
9235
7867684d
JB
92362004-04-16 Joel Brobecker <brobecker@gnat.com>
9237
9238 * dwarf2read.c: Back out my previous change, it was incorrect.
9239
72bf9492
DJ
92402004-04-16 Daniel Jacobowitz <drow@mvista.com>
9241
9242 * dwarf2read.c: Include "hashtab.h".
9243 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9244 has_namespace_info.
9245 (struct partial_die_info): Add comments. Use bitfields to reduce
9246 memory footprint. Add scope, scope_set, has_specification,
9247 spec_offset, die_parent, die_child, and die_sibling.
9248 (peek_die_abbrev): Add prototype.
9249 (partial_read_comp_unit_head): New function, broken out from
9250 dwarf2_build_psymtabs_hard.
9251 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9252 Use partial_read_comp_unit_head. Initialize the CU and
9253 comp_unit_obstack. Update calls to read_partial_die and
9254 scan_partial_symbols. Use free_stack_comp_unit and
9255 load_partial_dies.
9256 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9257 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9258 Update calls to helper functions. Remove NAMESPACE argument.
9259 Update comments.
9260 (partial_die_parent_scope, partial_die_full_name): New functions.
9261 (add_partial_symbol): Remove namespace argument. Update call to
9262 pdi_needs_namespace. Use partial_die_full_name. Handle
9263 DW_TAG_namespace. Check has_namespace_info flag.
9264 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9265 tag. Handle namespaces.
9266 (add_partial_namespace, add_partial_enumeration): Simplify.
9267 (guess_structure_name): New function, derived from
9268 add_partial_structure.
9269 (add_partial_structure): Remove.
9270 (determine_class_name): Update comment.
9271 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9272 (is_type_tag_for_partial, load_partial_dies): New functions.
9273 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9274 Record specifications instead of following them immediately.
9275 (find_partial_die_in_comp_unit, find_partial_die)
9276 (fixup_partial_die, free_stack_comp_unit)
9277 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9278 (partial_die_hash, partial_die_eq): New functions.
9279 * Makefile.in (hashtab_h): Define.
9280 (dwarf2read.o): Update dependencies.
9281 (observer_inc, observer_h): Move to the correct section.
9282
fdc860a3
JB
92832004-04-15 Joel Brobecker <brobecker@gnat.com>
9284
9285 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9286 (die_is_declaration): Use the function above. Add comment.
9287
dc718098
JB
92882004-04-15 Joel Brobecker <brobecker@gnat.com>
9289
9290 * dwarf2read.c (read_structure_scope): Identify stub types
9291 using die_is_declaration() only.
9292
8718a420
RM
92932004-04-15 Roland McGrath <roland@redhat.com>
9294
9295 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9296 argument instead of NAME.
9297 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9298 in call to symbol_file_add_with_addrs_or_offsets.
9299 (build_addr_info): New function, helper for ...
9300 (symbol_file_add_from_memory): New function.
9301 (add_symbol_file_from_memory_command): New function using that.
9302 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9303 (pre_add_symbol_hook): Add const to argument type.
9304 * symfile.h (symbol_file_add_from_memory): Declare it.
9305
8b910bab
MK
93062004-04-15 Mark Kettenis <kettenis@gnu.org>
9307
9f076e7a
MK
9308 * NEWS (New native configurations): Mention OpenBSD/vax.
9309 * configure.host: Add vax-*-openbsd*.
9310 * config/vax/obsd.mh: New file.
9311 * config/vax/nm-obsd.h: New file.
9312
8b910bab
MK
9313 * vax-tdep.c: Include "regset.h".
9314 (vax_supply_gregset): New function.
9315 (vax_gregset): New variable.
9316 (vax_regset_from_core_section): New function.
9317 (vax_gdbarch_init): Set regset_from_core_section.
9318 * Makefile.in (vax-tdep.o): Update dependencies.
9319
7a464420
AC
93202004-04-15 Andrew Cagney <cagney@redhat.com>
9321
9322 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9323 (observer_normal_stop_notification_stub)
9324 (observer_attach_normal_stop, observer_detach_normal_stop):
9325 Delete, replaced by #include "observer.inc".
9326 * infrun.c (normal_stop): Pass "stop_bpstat" to
9327 observer_notify_normal_stop.
9328 * Makefile.in (observer_inc): Define.
9329 (observer.o): Update dependencies.
9330 (observer.h, observer.inc): New rules.
9331 * observer.h: Delete file.
9332 * observer.sh: New file.
9333
e36ad527
MK
93342004-04-15 Mark Kettenis <kettenis@gnu.org>
9335
9336 * vax-tdep.c (vax_frame_cache): Fix typo.
9337
67b441e1
MK
93382004-04-14 Mark Kettenis <kettenis@gnu.org>
9339
6f606e1c
MK
9340 * NEWS (New native configurations): Mention NetBSD/vax.
9341 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9342 * config/vax/nbsdelf.mh: New file.
9343 * config/vax/nbsdaout.mh: New file.
9344 * config/vax/nm-nbsd.h: New file.
9345 * config/vax/nm-nbsdaout.h: New file.
9346
9c5519a5
MK
9347 * vaxnbsd-tdep.c: New file.
9348 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9349 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9350 * config/vax/nbsd.mt: New file.
9351 * config/vax/tm-nbsd.h: New file.
9352
4844a614
MK
9353 * Makefile.in (vaxbsd-nat.o): New dependency.
9354
67b441e1
MK
9355 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9356 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9357 struct_addr arguments. Don't push return value address.
9358 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9359 arguments to vax_store_arguments. Store return value address in
9360 R1.
9361 (vax_store_struct_return, vax_extract_return_value)
9362 (vax_store_return_value): Remove functions.
9363 (vax_return_value): New function.
9364 (vax_gdbarch_init): Set return value. Don't set
9365 deprecated_store_struct_return, deprecated_extract_struct_return
9366 and deprecated_store_return_value.
9367
6672f2ae
AS
93682004-04-14 Andreas Schwab <schwab@suse.de>
9369
9370 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9371 value buffer.
9372 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9373
7346c184
MK
93742004-04-14 Mark Kettenis <kettenis@gnu.org>
9375
9376 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9377 (vax_unwind_dummy_id): New functions.
9378 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9379 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9380 variables.
9381 (vax_fix_call_dummy): Remove function.
9382 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9383 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9384 call_dummy_location, deprecated_call_dummy_words,
9385 deprecated_sizeof_call_dummy_words,
9386 deprecated_call_dummy_breakpoint_offset,
9387 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9388 and deprecated_dummy_write_sp.
9389
58e23df4
DC
93902004-04-13 David Carlton <carlton@kealia.com>
9391
9392 * MAINTAINERS: Move myself to "paper trail" section.
9393
5e6b39ff
MK
93942004-04-12 Mark Kettenis <kettenis@gnu.org>
9395
7def7fef
MK
9396 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9397 "trad-frame.h".
9398 (vax_frame_init_saved_regs): Remove function.
9399 (vax_sigtramp_saved_pc): Remove function.
9400 (vax_frame_saved_pc): Remove function.
9401 (vax_frame_args_address): Remove function.
9402 (vax_frame_num_args): Rewrite.
9403 (vax_frame_chain): Remove function.
9404 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9405 VAX_FP_REGNUM.
9406 (vax_pop_frame): Likewise.
9407 (vax_saved_pc_after_call): Remove function.
9408 (struct vax_frame_cache): New structure.
9409 (vax_frame_cache): New function.
9410 (vax_frame_this_id): New function.
9411 (vax_frame_prev_register): New function.
9412 (vax_frame_unwind): New variable.
9413 (vax_frame_sniffer): New function.
9414 (vax_frame_base_address): New function.
9415 (vax_frame_args_address): New function.
9416 (vax_frame_base): New variable.
9417 (vax_unwind_pc): New function.
9418 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9419 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9420 deprecated_frame_chain, deprecated_frame_saved_pc,
9421 deprecated_frame_args_address and
9422 deprecated_frame_init_saved_regs.
9423 * Makefile.in (vax-tdep.o): Update dependencies.
9424
53284fc1
MK
9425 * vaxbsd-nat.c: New file.
9426
5e6b39ff
MK
9427 * vax-tdep.h: Update copyright year. Adjust comments.
9428 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9429 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9430 (vax_regnum): New enum. Replacing...
9431 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9432 (VAX_PS_REGNUM): ... these removed macros.
9433 * vax-tdep.c (vax_register_name): Remove prototype.
9434 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9435 (vax_register_byte, vax_register_raw_size,
9436 vax_register_virtual_size, vax_register_virtual_type): Remove
9437 functions.
9438 (vax_register_type): New function.
9439 (vax_breakpoint_from_pc): Reorganize.
9440 (vax_gdbarch_init): Set register_type. Don't set
9441 deprecated_register_size, deprecated_register_bytes,
9442 deprecated_register_byte, deprecated_register_raw_size,
9443 deprecated_max_register_raw_size,
9444 deprecated_register_virtual_size,
9445 deprecated_max_register_virtual_size and
9446 deprecated_register_virtual_type. Add comment on stack direction.
9447
e9c71e9f
MK
94482004-04-11 Mark Kettenis <kettenis@gnu.org>
9449
9450 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9451 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 9452 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 9453
d46f1176 94542004-04-10 Randolph Chung <tausq@debian.org>
8718a420 9455
d46f1176
RC
9456 * MAINTAINERS (write after approval): Add myself.
9457
a2a84a72
RC
94582004-04-07 Randolph Chung <tausq@debian.org>
9459
9460 * hppa-tdep.c (hppa_inner_than): Remove.
9461 (is_pa_2): Remove unused static variable.
8718a420 9462 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 9463
e85c3284
PH
94642004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9465
9466 * language.h (language_defn): Add new la_post_parser field.
9467 * parser-defs.h (null_post_parser): New declaration (default for
9468 la_post_parser).
8718a420 9469
e85c3284
PH
9470 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9471 insert call to that function.
9472 (parse_exp_in_context): New function, including code formerly in
8718a420 9473 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
9474 prefixification.
9475 (parse_expression_in_context): New exported function.
9476 (null_post_parser): New definition.
9477 * expression.h (parse_expression_in_context): Add declaration.
8718a420 9478
e85c3284
PH
9479 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9480 * c-lang.c (c_language_defn): Ditto.
9481 (cplus_language_defn): Ditto.
9482 (asm_language_defn): Ditto.
9483 (minimal_language_defn): Ditto.
9484 * f-lang.c (f_language_defn): Ditto.
9485 * jv-lang.c (java_language_defn): Ditto.
9486 * language.c (unknown_language_defn): Ditto.
9487 (auto_language_defn): Ditto.
9488 (local_language_defn): Ditto.
9489 * m2-lang.c (m2_language_defn): Ditto.
9490 * scm-lang.c (scm_language_defn): Ditto.
9491 * obj-lang.c (objc_language_defn): Ditto.
8718a420 9492
d9f8c85b
MK
94932004-04-10 Mark Kettenis <kettenis@gnu.org>
9494
fa34704a
MK
9495 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9496 (amd64nbsd_mcontext_addr): New function.
9497 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9498 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9499 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9500
403e1656
MK
9501 * corelow.c (core_xfer_partial): Fix coding standards violation.
9502 Add support for TARGET_OBJECT_WCOOKIE.
9503
a57e5a95
MK
9504 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9505 deprecated_pc_in_sigtramp.
9506 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9507 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9508 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9509 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9510 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9511 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9512 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9513
377d9ebd
MK
9514 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9515 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9516 Fix typo.
9517
f0ef85a5
MK
9518 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9519 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9520 (amd64_collect_fxsave): Likewise.
9521
d9f8c85b
MK
9522 * i386-sol2-tdep.c: Include "gdb_string.h".
9523 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9524 name.
9525 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9526
75f501b5
MK
95272004-04-10 Mark Kettenis <kettenis@gnu.org>
9528
9529 * i386-sol2-tdep.c: Include "solib-svr4.h".
9530 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9531 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9532 * config/i386/tm-i386sol2.h: Include :solib.h".
9533 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9534 solib-svr4.o and solib-legacy.o.
9535 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9536 solib-svr4.o.
9537
b31bc724
MK
95382004-04-09 Mark Kettenis <kettenis@gnu.org>
9539
18bbbd9e
MK
9540 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9541 whether a register is supplied by PTRACE_GETFPREGS.
9542 (store_inferior_registers): Likewise.
9543 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9544 whether a register is supplied by PT_GETFPREGS.
9545 (store_inferior_registers): Likewise.
9546
3c30bf1b
MK
9547 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9548 * config/i386/linux64.mt (TDEPFILES): Likewise.
9549
a4194092
MK
9550 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9551
911bc6ee
MK
9552 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9553 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9554 the program counter is in the range specified by `struct
9555 gdbarch_tdep'.
9556 * amd64-linux-tdep.c: Include "symtab.h".
9557 (amd64_linux_pc_in_sigtramp): Remove function.
9558 (amd64_linux_sigtramp_p): New function.
9559 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9560 deprecated_pc_in_sigtramp.
9561 * amd64nbsd-tdep.c: Include "symtab.h".
9562 (amd64nbsd_sigtramp_p): New function.
9563 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9564 deprecated_pc_in_sigtramp.
9565 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9566 few comments.
9567 (amd64obsd_pc_in_sigtramp): Remove function.
9568 (amd64obsd_sigtramp_p): New function.
9569 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9570 deprecated_pc_in_sigtramp.
9571 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9572 (i386bsd_pc_ins_sigtramp): Remove prototype.
9573 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9574 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9575 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9576 the program counter is in the range specified by `struct
9577 gdbarch_tdep'.
9578 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9579 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9580 (i386_go32_pc_in_sigtramp): Remove function.
9581 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9582 Initialize TDEP->sigtramp_p.
9583 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9584 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9585 deprecated_pc_in_sigtramp.
9586 * i386-linux-tdep.c: Adjust comments.
9587 (i386_linux_pc_in_sigtramp): Remove function.
9588 (i386_linux_sigtramp_p): New function.
9589 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9590 deprecated_pc_in_sigtramp.
9591 * i386-nto-tdep.c: Update copyright year.
9592 (i386nto_pc_in_sigtramp): Remove function.
9593 (i386nto_sigtramp_p): New function.
9594 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9595 SP_REGNUM.
9596 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9597 deprecated_pc_in_sigtramp.
9598 * i386-sol2-tdep.c: Update copyright year.
9599 (i386_sol2_pc_in_sigtramp): Remove function.
9600 (i386_sol2_sigtramp_p): New function.
9601 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9602 deprecated_pc_in_sigtramp.
9603 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9604 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9605 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9606 deprecated_sigtramp_start and deprecated_sigtramp_end.
9607 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9608 (i386nbsd_pc_in_sigtramp): Remove function.
9609 (i386nbsd_sigtramp_p): New function.
9610 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9611 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9612 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9613 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9614 (i386obsd_pc_in_sigtramp): Remove function.
9615 (i386obsd_sigtramp_p): New function.
9616 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9617 functions.
9618 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9619 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9620 TDEP->sigtramp_p.
9621 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9622 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9623 dependencies.
9624
e083e6ec
MK
9625 * config/i386/i386aout.mt: Remove file.
9626
bd153b94
MK
9627 * configure.tgt: Remove i[34567]86-*-go32*,
9628 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9629 and i[34567]86-*-isc*. Set gdb_target to i386 for
9630 i[34567]86-*-netware* and i[34567]86-*-*.
9631 * config/i386/i386.mt: New file.
9632 * config/i386/embed.mt: Remove file.
9633 * config/i386/go32.mt: Remove file.
9634 * config/i386/i386nw.mt: Remove file.
9635 * config/i386/i386v.mt: Remove file.
9636 * config/i386/tm-go32.h: Remove file.
9637
4a1bcc8c
MK
9638 * tui/tui-hooks.c: Include "readline/readline.h" after
9639 "gdb_curses.h" instead of before.
9640 * tui/tui-io.c: Likewise.
9641
f9a79064
MK
9642 * tui/tui.c: Fix typo in comment.
9643
b31bc724
MK
9644 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9645
f83f82bc
AC
96462004-04-08 Andrew Cagney <cagney@redhat.com>
9647
9648 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9649 (deprecated_exception_support_initialized): Declare.
8718a420 9650 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
9651 (initialize_hp_cxx_exception_support)
9652 (child_enable_exception_callback): Update.
9653 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9654 (deprecated_exception_support_initialized): Rename
9655 deprecated_exception_catchpoints_are_fragile and
9656 deprecated_exception_support_initialized.
9657 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9658
9659 * symtab.c (deprecated_hp_som_som_object_present): Rename
9660 hp_som_som_object_present.
9661 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9662 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9663 Update. Delete extern declaration.
9664 * valops.c (hp_som_som_object_present): Ditto.
8718a420 9665 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
9666 (parse_nested_classes_for_hpacc): Ditto.
9667 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 9668 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
9669 (initialize_hp_cxx_exception_support): Ditto.
9670 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 9671 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 9672 (cp_print_class_method): Ditto.
8718a420 9673 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
9674 (c_type_print_base): Ditto.
9675 * c-exp.y (hp_som_som_object_present): Ditto.
9676
fb2be677
AC
96772004-04-08 Andrew Cagney <cagney@redhat.com>
9678
9679 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9680 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9681 (frame_unwind_find_by_frame): Re-implement the unwind code so
9682 that it can both prepend and append sniffers. Replace
9683 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9684 * tramp-frame.c (tramp_frame_append): Use
9685 frame_unwind_prepend_unwinder.
9686 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9687 frame_unwind_register_unwinder.
9688 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9689 tramp_frame_append.
9690 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 9691 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
9692 (mips_linux_init_abi): Update.
9693
67faf007
KB
96942004-04-08 Kevin Buettner <kevinb@redhat.com>
9695
9696 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9697 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9698 file support.
9699
8973ff21
KB
97002004-04-07 Kevin Buettner <kevinb@redhat.com>
9701
9702 * ia64-tdep.c (elf.h): Don't include.
9703 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9704
4a0e2f88
JM
97052004-04-07 Jason Molenda (jmolenda@apple.com)
9706
9707 * frame.h: Typeo corrections in comments.
9708
9872ad24
JB
97092004-04-07 Jim Blandy <jimb@redhat.com>
9710
9711 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9712 %esp and %ebp
9713
70b216c8
MK
97142004-04-07 Mark Kettenis <kettenis@gnu.org>
9715
11d5789c
MK
9716 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9717 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9718 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9719 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9720 and solib-legacy.o.
9721 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9722 solib-svr4.o.
9723 * config/sparc/tm-sol2.h: Update copyright year. Include
9724 "solib.h".
9725
70b216c8
MK
9726 * sparc-sol2-tdep.c: Update copyright year. Include
9727 "solib-svr4.h".
9728 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9729 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9730 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 9731 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
9732 dependencies.
9733
6339dc9e
AC
97342004-04-06 Andrew Cagney <cagney@redhat.com>
9735
9736 * infttrace.c: Include "infttrace.h".
9737 * infttrace.h: Include "target.h".
9738 * Makefile.in (infttrace_h): Update.
9739 (infttrace.o): Update.
8718a420 9740
93449403
AC
97412004-04-06 Andrew Cagney <cagney@redhat.com>
9742
6d518969
AC
9743 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9744 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9745 move extern declarations from here ...
9746 * infttrace.h: ... to here.
9747 * Makefile.in (hppah-nat.o): Update dependencies.
9748
85f4f2d8
AC
9749 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9750 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 9751 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
9752 (hppa_breakpoint_from_pc): Delete.
9753
93449403
AC
9754 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9755
71456ec6
AC
97562004-04-05 Andrew Cagney <cagney@redhat.com>
9757
9758 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9759 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9760 <sys/file.h>.
8718a420 9761
4c02c60c
AC
97622004-04-06 Randolph Chung <tausq@debian.org>
9763
9764 Committed by Andrew Cagney (mechanical change).
9765 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9766 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9767 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9768 child_enable_exception_callback, current_ex_event,
9769 null_symtab_and_line, child_get_current_exception_event,
9770 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9771 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9772 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9773 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9774 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9775 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9776 Move hpux-specific definitions ...
9777 * hppa-hpux-tdep.c: ... to here.
9778
3a515653
AC
97792004-04-05 Andrew Cagney <cagney@redhat.com>
9780
9781 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9782 skip_prologue_using_sal.
9783
c1730d02
AC
97842004-04-05 Andrew Cagney <cagney@redhat.com>
9785
9786 * config/i386/tm-i386.h: Delete file.
9787 * config/i386/tm-vxworks.h: Update copyright, do not include
9788 "tm-i386.h".
9789 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9790 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9791 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9792 * config/i386/ncr3000.mt (TM_FILE): Delete.
9793 * config/i386/interix.mt (TM_FILE): Delete.
9794 * config/i386/i386v.mt (TM_FILE): Delete.
9795 * config/i386/i386nw.mt (TM_FILE): Delete.
9796 * config/i386/i386gnu.mt (TM_FILE): Delete.
9797 * config/i386/i386aout.mt (TM_FILE): Delete.
9798 * config/i386/embed.mt (TM_FILE): Delete.
9799
8b67aa36
KB
98002004-04-05 Kevin Buettner <kevinb@redhat.com>
9801
9802 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9803 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9804 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9805 (accg7_regnum): New constants.
9806 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
9807 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9808 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
9809 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9810 for accg registers.
9811 (frv_register_sim_regno): Update spr_map[].
9812
3c7012f5
AC
98132004-04-04 Andrew Cagney <cagney@redhat.com>
9814
9815 * config/mips/xm-riscos.h: Delete.
9816 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9817 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9818 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9819 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9820 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9821 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9822 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9823 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9824 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9825 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9826 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9827 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9828 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9829 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9830 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9831 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9832 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9833 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9834 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9835 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9836 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9837 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9838 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9839 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9840 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9841 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 9842
3c7012f5
AC
9843 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9844 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9845 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9846 * configure.host: Remove m680[01]0-sun-sunos3*,
9847 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9848 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9849 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9850 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9851 mips-*-riscos*.
9852 * NEWS: Mention removed systems.
9853
99d16a21
AC
98542004-04-04 Andrew Cagney <cagney@redhat.com>
9855
9856 GDB 6.1 release created from 6.1 branch.
9857
6cdf9d98
AC
98582004-04-04 Andrew Cagney <cagney@redhat.com>
9859
98d346c3
AC
9860 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9861 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9862 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9863
6cdf9d98
AC
9864 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9865 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9866 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9867
859a326d
JB
98682004-04-03 Jim Blandy <jimb@redhat.com>
9869
9870 * MAINTAINERS: Chris Faylor has changed employers; add him to
9871 "paper trail" section, and update his E-mail address.
9872
b87178c3
AC
98732004-04-03 Andrew Cagney <cagney@redhat.com>
9874
4ea2acf0
AC
9875 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9876 generic dummy frames.
9877 * dummy-frame.c: Update copyright.
9878 (dummy_frame_sniffer): Delete check for generic dummy frames.
9879
d0bd2d18 9880 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 9881 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
9882 (REG_PARM_STACK_SPACE): Delete.
9883 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9884 Inline reference to REG_PARM_STACK_SPACE.
9885
b87178c3
AC
9886 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9887 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9888 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9889 (FRAME_BASE_BEFORE_SIGTRAMP)
9890 (hppa32_hpux_frame_base_before_sigtramp)
9891 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9892 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9893 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9894 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9895 (FRAME_BASE_BEFORE_SIGTRAMP)
9896 (hppa64_hpux_frame_base_before_sigtramp)
9897 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9898
43e2e1a0
AC
98992004-04-03 Andrew Cagney <cagney@redhat.com>
9900
9901 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9902
ddc135a4
AC
99032004-04-02 Andrew Cagney <cagney@redhat.com>
9904
9905 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9906 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9907 * dummy-frame.h: Delete out-of-date comments.
9908 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9909 * gdbarch.h, gdbarch.c: Re-generate.
9910
d15bfd3a 99112004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 9912
d15bfd3a
AC
9913 Committed by Andrew Cagney <cagney@redhat.com>.
9914 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9915 into account an instruction saving a register if we have already
9916 seen an earlier instruction saving that same register.
9917
f04ceafa
AC
99182004-04-02 Andrew Cagney <cagney@redhat.com>
9919
08be3abd
AC
9920 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9921 * gdbarch.h, gdbarch.c: Re-generate.
9922 * frame.c (legacy_get_prev_frame): Delete references to
9923 DEPRECATED_INIT_FRAME_PC_FIRST.
9924
f04ceafa
AC
9925 * infrun.c (pc_in_sigtramp): Delete function.
9926 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9927 get_frame_type.
9928
08e69816
AC
99292004-04-02 Andrew Cagney <cagney@redhat.com>
9930
9931 * infrun.c (handle_step_into_function): Delete code conditional on
9932 legacy_frame_p.
9933 (handle_inferior_event, step_over_function): Ditto.
9934
adb54772
AC
99352004-04-02 Andrew Cagney <cagney@redhat.com>
9936
9937 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9938 "previous frame inner to this frame" test.
9939
304396fb
AC
99402004-04-02 Andrew Cagney <cagney@redhat.com>
9941
9942 * frame.c (safe_frame_unwind_memory): New function.
9943 * frame.h (safe_frame_unwind_memory): Declare. Update description
9944 of /safe_/ methods.
9945 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9946 "next_frame". Use safe_frame_unwind_memory.
9947 (tramp_frame_sniffer): Update call to tramp_frame_start.
9948
6502dd73
DJ
99492004-04-01 Daniel Jacobowitz <drow@mvista.com>
9950
9951 * dwarf2read.c (dwarf2_objfile_data_key): New.
9952 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9953 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9954 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9955 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9956 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9957 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9958 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9959 Remove variables.
9960 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9961 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9962 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9963 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9964 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9965 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9966 Remove macros.
9967 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9968 data.
9969 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9970 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9971 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9972 (read_partial_die, read_full_die, read_indirect_string)
9973 (dwarf_decode_line_header, dwarf_decode_macros)
9974 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9975 Update uses of removed variables.
9976 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9977 of removed macros.
9978 (_initialize_dwarf2_read): New function.
9979 * symfile.h (dwarf2_has_info): Update prototype.
9980 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9981 * elfread.c (elf_symfile_read): Likewise.
9982
408752b0
JB
99832004-04-01 Jim Blandy <jimb@redhat.com>
9984
9f744501
JB
9985 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9986 function for register numbers on all the rs6000-derived targets.
9987 (rs6000_gdbarch_init): Don't register a separate
9988 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9989 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9990 variants.
9991
408752b0
JB
9992 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9993 numbering.
9994
2de41bce
PH
99952004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9996
9997 * valarith.c: Update copyright notice.
9998 (value_add): Handle range types.
9999 (value_sub): Ditto.
10000 (value_equal): Ditto.
10001 (value_less): Ditto.
10002 (value_neg): Ditto.
10003 (value_complement): Ditto.
8718a420 10004 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 10005 eliminiating unnecessary COERCE_ENUMs.
8718a420 10006
5613d8d3
AC
100072004-03-31 Andrew Cagney <cagney@redhat.com>
10008
10009 * frame.h (frame_unwind_id): Declare.
10010 * frame.c (frame_unwind_id): New function.
10011 (get_prev_frame_1): New function.
10012 (frame_debug_got_null_frame): New function.
10013 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
10014 code proper to prev_frame, update description.
10015 * infrun.c (step_over_function): Use frame_unwind_id.
10016
c4557624
JB
100172004-04-31 J. Brobecker <brobecker@gnat.com>
10018
10019 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
10020 (hppa64_push_dummy_call): Likewise.
10021
3e6bb910
JB
100222004-03-30 Jim Blandy <jimb@redhat.com>
10023
10024 From Ulrich Weigand:
10025 * utils.c (query): Do not use a va_list variable multiple times.
10026
a2f23071
DJ
100272004-03-29 Daniel Jacobowitz <drow@mvista.com>
10028
10029 * Makefile.in (linux_nat_h): Update dependencies.
10030 * configure.in: Check for <gnu/libc-version.h>.
10031 * configure: Regenerate.
10032 * config.in: Regenerate.
10033 * linux-nat.h: Include "target.h". Add waitstatus field to
10034 struct lwp_info.
10035 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
10036 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
10037 to.
10038 (lin_lwp_handle_extended): New function. Handle clone events.
10039 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
10040 thread exit events.
10041 (child_wait): Handle clone events.
10042 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10043 * linux-nat.c (linux_enable_event_reporting): Turn on
10044 PTRACE_O_TRACECLONE.
10045 (linux_handle_extended_wait): Handle clone events.
10046 * thread-db.c: Include <gnu/libc-version.h>.
10047 (struct private_thread_info): Add dying flag.
10048 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10049 higher.
10050 (attach_thread): Update comments. Handle dying threads.
10051 (detach_thread): Set the dying flag.
10052 (check_event): Always call attach_thread.
10053
8d5f9dcb
DJ
100542004-03-29 Daniel Jacobowitz <drow@mvista.com>
10055
10056 * mips-tdep.c (mips_pdr_data): New.
10057 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10058 (_initialize_mips_tdep): Initialize mips_pdr_data.
10059
66337bb1
CV
100602004-03-29 Corinna Vinschen <vinschen@redhat.com>
10061
10062 * minsyms.c (install_minimal_symbols): Move dropping leading
10063 char from linkage name from here...
10064 (prim_record_minimal_symbol_and_info): ...to here. Simplify
10065 test for "__gnu_compiled*" symbols.
10066
e802b915
JB
100672004-03-28 Jim Blandy <jimb@redhat.com>
10068
10069 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10070 registers to temp register r0 and byte stores as prologue
10071 instructions.
10072
72b56458
AC
100732004-03-28 Andrew Cagney <cagney@redhat.com>
10074
10075 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
10076 arm*-*-*.
10077
0bfbda3b
SC
100782004-03-28 Stephane Carrez <stcarrez@nerim.fr>
10079
10080 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10081 and switch the layout to force a display of register window.
10082
5a7225ed
JB
100832004-02-26 J. Brobecker <brobecker@gnat.com>
10084
10085 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10086 of the INTEGER class.
10087
81a07a45
JB
100882004-03-26 Jim Blandy <jimb@redhat.com>
10089
10090 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10091 bytes long on PPC GNU/Linux.
10092
8c691c7a
DC
100932004-03-26 David Carlton <carlton@kealia.com>
10094
10095 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10096
103a0089
AC
100972004-03-25 Andrew Cagney <cagney@redhat.com>
10098
10099 * PROBLEMS: Add general section titles, remove references to
10100 specific releases.
10101
7a5ea0d4
DJ
101022004-03-25 Daniel Jacobowitz <drow@mvista.com>
10103
10104 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10105 INT_REGISTER_SIZE.
10106 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10107 FP_REGISTER_VIRTUAL_SIZE.
10108 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10109 of DEPRECATED_REGISTER_RAW_SIZE.
10110 (arm_register_type): Add gdbarch argument.
10111 (arm_register_raw_size, arm_register_virtual_size): Delete.
10112 (arm_register_byte, arm_extract_return_value)
10113 (arm_store_return_value, arm_get_longjmp_target): Update references
10114 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10115 (arm_gdbarch_init): Likewise. Don't set
10116 deprecated_register_raw_size, deprecated_register_virtual_size,
10117 deprecated_max_register_raw_size,
10118 deprecated_max_register_virtual_size, or
10119 deprecated_max_register_virtual_type. Do set register_type.
10120 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10121 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10122 (FP_REGISTER_VIRTUAL_SIZE): Delete.
10123 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10124 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10125 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10126 INT_REGISTER_SIZE.
10127 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10128 (remote_rdp_store_register): Likewise.
10129
5792a79b
DJ
101302004-03-24 Daniel Jacobowitz <drow@mvista.com>
10131
10132 * Makefile.in (mips-linux-tdep.o): Update dependencies.
10133 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10134 to after osabi initialization.
10135 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10136 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10137 functions.
10138 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10139 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10140 variables.
10141 (mips_linux_init_abi): Append signal trampoline unwinders.
10142
1196bfda
AC
101432004-03-24 Andrew Cagney <cagney@redhat.com>
10144
10145 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10146 * tramp-frame.c: Include "gdb_assert.h".
10147 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10148 correct sizeof.
10149 (tramp_frame_append): Validate the tramp frame's instructions.
10150 * Makefile.in (tramp-frame.o): Update dependencies.
10151
4be282b4
AC
101522004-03-23 Andrew Cagney <cagney@redhat.com>
10153
10154 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10155
69aec09b
AC
101562004-03-23 Andrew Cagney <cagney@redhat.com>
10157
10158 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10159 Nasser as past testsuite/lib/ (and other) maintainers.
10160
63ed89b4
DJ
101612004-03-23 Daniel Jacobowitz <drow@mvista.com>
10162
10163 * infcmd.c (attach_command): Reread symbols if we already have
10164 an exec file.
10165
f3b36427
AC
101662004-03-23 Andrew Cagney <cagney@redhat.com>
10167
10168 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10169
aa2a3f87
AC
101702004-03-23 Andrew Cagney <cagney@redhat.com>
10171
10172 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10173 * gdbarch.h, gdbarch.c: Re-generate.
10174 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10175 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10176 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 10177 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 10178 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 10179 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
10180 (DEPRECATED_SIGTRAMP_START): Update.
10181 * blockframe.c (find_pc_sect_partial_function): Update.
10182 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10183
00cac895
DJ
101842004-03-23 Daniel Jacobowitz <drow@mvista.com>
10185
10186 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10187 if necessary.
10188
f561f026
AC
101892004-03-23 Andrew Cagney <cagney@redhat.com>
10190
10191 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10192 predicate, deprecate.
10193 * gdbarch.h, gdbarch.c: Re-generate.
10194 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10195 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10196 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10197 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10198 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10199 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10200 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10201 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10202 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10203 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10204 * blockframe.c (find_pc_partial_function): Update.
10205 * breakpoint.c (bpstat_what): Update.
10206 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10207 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10208 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10209 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10210 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10211 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10212 * i386-nto-tdep.c (i386nto_init_abi): Update.
10213 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10214 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10215 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10216 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10217 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10218 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10219 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10220 * infrun.c (pc_in_sigtramp): Update.
10221 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10222 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10223 * mips-tdep.c (mips_gdbarch_init): Update.
10224 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10225 * ppc-linux-tdep.c: Update comment.
10226 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10227 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10228 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10229 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10230 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10231 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10232 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10233 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10234 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10235 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 10236
8050c72f
AC
102372004-03-23 Andrew Cagney <cagney@redhat.com>
10238
d2259dd3
AC
10239 * tramp-frame.h, tramp-frame.h: New files.
10240 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10241 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10242
8050c72f
AC
10243 * Makefile.in: Update all dependencies.
10244
0db9b4b7
AC
102452004-03-23 Andrew Cagney <cagney@redhat.com>
10246
10247 * Makefile.in (trad_frame_h): Add $(frame_h).
10248 * trad-frame.h: Update copyright. Include "frame.h".
10249 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10250 (trad_frame_set_id, trad_frame_get_id): Declare.
10251 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10252 * trad-frame.c: Update copyright.
10253 (struct trad_frame_cache): Define.
10254 (trad_frame_cache_zalloc): New function.
10255 (trad_frame_set_id, trad_frame_get_id): New functions.
10256 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 10257
8e645ae7
AC
102582004-03-22 Andrew Cagney <cagney@redhat.com>
10259
10260 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10261 s390_pltstub_unwind_cache.
10262 (s390_stub_frame_unwind_cache): Rename
10263 s390_pltstub_frame_unwind_cache.
10264 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10265 (s390_stub_frame_prev_register): Rename
10266 s390_pltstub_frame_prev_register.
10267 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10268 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10269
10270 From Ulrich Weigand:
10271 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10272 pointer calls like PLT calls.
10273
34fcf120
DJ
102742004-03-22 Daniel Jacobowitz <drow@mvista.com>
10275
10276 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10277 PC rather than the partial function start address. Use the start
10278 address to sanity check the found PDR.
10279
5b917078
DJ
102802004-03-22 Daniel Jacobowitz <drow@mvista.com>
10281
10282 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10283 linux_handle_extended_wait.
10284
8adf9e78
AC
102852004-03-22 Andrew Cagney <cagney@redhat.com>
10286
c3122434
AC
10287 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10288 function.
10289
8adf9e78
AC
10290 * frame.h (generic_pop_current_frame): Delete declaration.
10291 (deprecate_pop_dummy_frame): Deprecate
10292 generic_pop_dummy_frame.
10293 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10294 (generic_pop_current_frame): Delete function.
10295 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10296 generic_pop_current_frame.
10297 * v850-tdep.c (v850_pop_frame): Update.
10298 * mcore-tdep.c (mcore_pop_frame): Update.
10299 * sh64-tdep.c (sh64_pop_frame): Update.
10300 * h8300-tdep.c (h8300_pop_frame): Update.
10301
90ba813f
AC
103022004-03-22 Andrew Cagney <cagney@redhat.com>
10303
10304 * frame.h (deprecated_pc_in_call_dummy): Rename
10305 generic_pc_in_call_dummy.
10306 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10307 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10308 generic_pc_in_call_dummy.
10309 (pc_in_dummy_frame): Make static.
10310 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10311 * gdbarch.h, gdbarch.c: Re-generate.
10312 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10313 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10314 (legacy_get_prev_frame): Ditto.
10315 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10316 comment.
8718a420 10317
ca4bb888
AC
103182004-03-21 Andrew Cagney <cagney@redhat.com>
10319
244675f9
AC
10320 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10321 declaration and out-of-date comment.
10322 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10323 Delete function.
10324 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10325 deprecated_pc_in_call_dummy.
10326
ca4bb888
AC
10327 * infrun.c (handle_inferior_event): For non legacy frames, use the
10328 frame ID and frame type to identify a signal trampoline. Update
10329 comments.
10330
1777c7b4
NW
103312004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10332
10333 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10334 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10335
82417da5
AC
103362004-03-21 Andrew Cagney <cagney@redhat.com>
10337
10338 * frame-unwind.h: Update copyright.
10339 (struct frame_data): Add opaque declaration.
10340 (frame_sniffer_ftype): Declare.
10341 (struct frame_unwind): Add "unwind_data" and "sniffer".
10342 (frame_unwind_register_unwinder): Declare.
10343 (frame_unwind_find_by_frame): Add parameter "this_cache".
10344 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10345 (legacy_get_prev_frame, legacy_get_prev_frame)
10346 (get_frame_type): Pass the prologue_cache to
10347 frame_unwind_find_by_frame.
10348 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10349 "unwinder".
10350 (frame_unwind_register_unwinder): New function.
10351 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10352
b2ba182e
PH
103532004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10354
10355 * bcache.c (print_percentage): Use floating point to avoid
10356 incorrect results when portion*100 overflows.
10357
81332287
KB
103582004-03-19 Kevin Buettner <kevinb@redhat.com>
10359
10360 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10361 (ppc_linux_init_extra_frame_info)
10362 (ppc_linux_frameless_function_invocation)
10363 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10364 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10365 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10366 (rs6000_frame_chain): Delete declarations.
10367 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10368 (ppc_linux_init_extra_frame_info)
10369 (ppc_linux_frameless_function_invocation)
10370 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10371 (ppc_linux_init_abi): Remove registration of above deleted functions.
10372 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10373 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10374 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10375 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10376 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10377 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10378 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10379 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10380 frame management for all OSABIs.
10381
61a65099
KB
103822004-03-19 Andrew Cagney <cagney@redhat.com>
10383
10384 Committed by Kevin Buettner <kevinb@redhat.com>.
10385
10386 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10387 Update copyright.
10388 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10389 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10390 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10391 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10392 unwinders. #ifdef legacy frame code.
10393 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10394 "frame-base.h".
10395 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10396 (struct rs6000_frame_cache, rs6000_frame_cache)
10397 (rs6000_frame_this_id, rs6000_frame_prev_register)
10398 (rs6000_frame_sniffer, rs6000_frame_unwind)
10399 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10400 (rs6000_frame_base): Implement a traditional frame unwinder.
10401 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10402 frame unwinder.
10403
88f7da05
KB
104042004-03-19 Kevin Buettner <kevinb@redhat.com>
10405
10406 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10407 breakpoint address for watchpoints or the catch eventpoints.
10408 Add new paramter ``bptype''. Adjust all callers.
10409
f826dce1
AC
104102004-03-19 Andrew Cagney <cagney@redhat.com>
10411
33cb8b0f
AC
10412 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10413
f826dce1
AC
10414 * PROBLEMS: Delete note that ARM does not use frame code, problem
10415 fixed.
10416
43b1ab88
AC
104172004-03-18 Andrew Cagney <cagney@redhat.com>
10418
292ab034
AC
10419 * stack.c (return_command): Delete code wrapped in #ifdef
10420 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10421
43b1ab88
AC
10422 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10423
dbfe4626
AC
104242004-03-18 Andrew Cagney <cagney@redhat.com>
10425
10426 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10427 DEPRECATED_IN_SIGTRAMP.
10428 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10429 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10430 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10431 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10432 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10433 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10434 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10435 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10436 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10437 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10438
0cad6aec
AC
104392004-03-18 Andrew Cagney <cagney@redhat.com>
10440
10441 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10442 (struct frame_base_table_entry): Define.
10443 (struct frame_base_table): Re-implement as a linked list.
10444 (frame_base_init): Re-implement.
10445 (frame_base_table): Delete function.
10446 (append_predicate): Delete function.
10447 (frame_base_append_sniffer): Update.
10448 (frame_base_set_default): Update.
10449 (frame_base_find_by_frame): Update.
10450 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10451 * Makefile.in (frame-base.o): Update dependencies.
10452
9982c2e7
AC
104532004-03-17 Andrew Cagney <cagney@redhat.com>
10454
10455 * frame.c (legacy_get_prev_frame): Pass correct frame to
10456 frame_unwind_find_by_frame.
10457
8dfe8985
DC
104582004-03-17 David Carlton <carlton@kealia.com>
10459
10460 * NEWS: Mention C++ nested types and namespaces
10461
ed47347a
MC
104622004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10463
10464 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10465 and "Regressions since gdb 5.3.". Add known regressions since
10466 gdb 6.0.
10467
90aeadfc
DC
104682004-03-16 David Carlton <carlton@kealia.com>
10469
10470 * dwarf2read.c (process_structure_scope): Process children even
10471 when we're a declaration.
10472
73912b9b
AC
104732004-03-16 Andrew Cagney <cagney@redhat.com>
10474
10475 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10476 * blockframe.c (find_pc_partial_function)
10477 (find_pc_sect_partial_function): Merge into a single
10478 find_pc_partial_function.
10479
283accbc
MK
104802004-03-16 Mark Kettenis <kettenis@gnu.org>
10481
10482 * i386bsd-nat.c: s/regno/regnum/g.
10483 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10484 FP0_REGNUM.
10485 (store_inferior_registers): Likewise.
10486
f5b1afdf
MK
104872004-03-16 Mark Kettenis <kettenis@gnu.org>
10488
10489 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10490 of i387_fill_fsave.
10491 (store_inferior_registers): Call i387_collect_fsave and
10492 i387_collect_fxsave instead of i387_fill_fsave and
10493 i387_fill_fxsave.
10494
41fe5eb3
AC
104952004-03-15 Andrew Cagney <cagney@redhat.com>
10496
10497 * Makefile.in (frame-unwind.o): Update dependencies.
10498 * frame-unwind.c: Include "gdb_obstack.h".
10499 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10500 parameter.
10501 (append_predicate): Delete function.
10502 (struct frame_unwind_table_entry): New structure.
10503 (struct frame_unwind_table): Replace "sniffer" with "head" and
10504 "tail".
10505 (frame_unwind_append_sniffer): Update.
10506 (frame_unwind_find_by_frame): Update.
10507 (_initialize_frame_unwind): Registe frame_unwind_init using
10508 gdbarch_data_register_pre_init.
10509
3f63813d
MK
105102004-03-15 Mark Kettenis <kettenis@gnu.org>
10511
10512 * i386bsd-nat.c: Update copyright year.
10513 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10514 define unconditionally.
10515
3248c325 105162004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
10517
10518 * i387-tdep.h (i387_collect_fsave): New prototype.
10519 * i387-tdep.c (i387_collect_fsave): New function containing most
10520 of the code from i387_fill_fsave.
3248c325 10521 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 10522
871fbe6a
MK
105232004-03-15 Mark Kettenis <kettenis@gnu.org>
10524
10525 * i386-linux-tdep.c: Update copyright year.
10526 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10527 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10528 svr4_ilp32_link_map_offsets instead of
10529 i386_linux_svr4_fetch_link_map_offsets.
10530
8176b9b8
DC
105312004-03-15 David Carlton <carlton@kealia.com>
10532
10533 Fix for PR c++/1553:
10534 * dwarf2read.c (read_structure_type): Determine type name by
10535 calling determine_class_name.
10536 (determine_class_name): New.
10537 (determine_prefix): Look at TYPE_TAG_NAME and call
10538 determine_class_name when appropriate.
10539 (determine_prefix_aux, class_name): Delete.
9d58e29d 10540 (read_namespace): Set die->type.
8176b9b8 10541
fe8bf7d7
KB
105422004-03-15 Kevin Buettner <kevinb@redhat.com>
10543
10544 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10545 unused macro definition. The definition in target.h (or perhaps
10546 elsewhere) takes precedence.
10547
ed6edd9b
AC
105482004-03-15 Andrew Cagney <cagney@redhat.com>
10549
f9be684a
AC
10550 * ppc-tdep.h: Update copyright.
10551 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10552 function signatures to match "regsets.h".
10553 * ppc-linux-tdep.c: Include "regset.h".
10554 (ELF_GREGSET_SIZE): Delete.
10555 (right_supply_register): New function.
10556 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10557 using right_supply_register.
10558 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10559 functions.
10560 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10561 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10562 (_initialize_ppc_linux_tdep): Do not register
10563 ppc_linux_regset_core_fns.
10564 (ppc_linux_regset_from_core_section): Replace
10565 fetch_core_registers.
10566 (ppc_linux_regset_core_fns): Delete.
10567 * ppc-linux-nat.c: (right_fill_reg): New function.
10568 (supply_gregset): Update call to ppc_linux_supply_gregset.
10569 (fill_gregset): Clear the register set, use right_fill_reg.
10570 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10571 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10572
ed6edd9b
AC
10573 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10574 unsigned.
10575
030f20e1
AC
105762004-03-15 Andrew Cagney <cagney@redhat.com>
10577
10578 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10579 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10580 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10581 and register_gdbarch_data.
10582 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10583 (struct gdbarch_data): Replace "init" by "pre_init" and
10584 "post_init".
10585 * gdbarch.h, gdbarch.c: Re-generate.
10586 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10587 with"obstack", use OBSTACK_ZALLOC.
10588 (dwarf2_frame_ops): Delete.
10589 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10590 (dwarf2_frame_init_reg): Use gdbarch_data.
10591 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 10592 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
10593 (_initialize_svr4_solib): Update.
10594 * user-regs.c (_initialize_user_regs): Update.
10595 * reggroups.c (_initialize_reggroup): Update.
10596 * regcache.c (_initialize_regcache): Update.
10597 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10598 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10599 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10600 * frame-unwind.c (_initialize_frame_unwind): Update.
10601 * frame-base.c (_initialize_frame_base): Update.
10602 * user-regs.c (user_reg_add): Update.
10603 * reggroups.c (reggroup_add): Update.
10604 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10605 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10606 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10607 * frame-base.c (frame_base_table): Update.
10608 * remote.c (_initialize_remote): Update.
10609 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 10610
3111a3fc
AC
106112004-03-15 Andrew Cagney <cagney@redhat.com>
10612
10613 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10614
5ecb7103
KB
106152004-03-15 Kevin Buettner <kevinb@redhat.com>
10616
10617 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10618 * frv-linux-tdep.c: New file.
10619 * frv-tdep.c (struct gdbarch_tdep): Add new field
10620 ``sigcontext_reg_addr''.
10621 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10622 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10623 (frv_sigramp_frame_sniffer): New functions.
10624 (frv_sigtramp_frame_unwind): New static global.
10625 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10626 sniffers.
10627 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10628 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10629
1ccda5e9
KB
106302004-03-15 Kevin Buettner <kevinb@redhat.com>
10631
10632 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10633 but not via a call to error(), when unable to read memory.
10634
b375a0a5
KB
106352004-03-15 Kevin Buettner <kevinb@redhat.com>
10636
10637 * frv-tdep.c (frv_call_dummy_words): Delete.
10638 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10639
4fdf6121
AC
106402004-03-15 Andrew Cagney <cagney@redhat.com>
10641
10642 * infrun.c (handle_step_into_function, step_over_function): Only
10643 update and use STEP_FRAME_ID when the system is using legacy
10644 frames. Update comments.
10645
34021503
MK
106462004-03-14 Mark Kettenis <kettenis@gnu.org>
10647
187e21d1
MK
10648 * amd64-linux-tdep.h: Remove file.
10649 * amd64-linux-tdep.c: Don't include "inferior.h" and
10650 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10651 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10652 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10653 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10654 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10655 macros.
10656 (user_to_gdb_regmap): Remove variable.
10657 (amd64_linux_gregset_reg_offset): New variable.
10658 (amd64_core_fns): Remove variable.
10659 (fetch_core_registers): Remove function.
10660 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10661 functions.
10662 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10663 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10664 * Makefile.in (amd64_linux_tdep_h): Remove.
10665 (amd64-linux-nat.o): Update dependencies.
10666 (amd64-linux-tdep.o): Update dependencies.
10667
99679982
MK
10668 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10669 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10670 functions.
10671 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10672
34021503
MK
10673 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10674 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10675
134d01f1
DJ
106762004-03-14 Daniel Jacobowitz <drow@mvista.com>
10677
10678 * dwarf2read.c (read_structure_type): Rename from
8718a420 10679 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
10680 Return immediately if die->type is set. Call read_type_die before
10681 dwarf2_add_member_fn.
10682 (process_structure_scope): New function.
10683 (read_enumeration_type, process_enumeration_scope): New functions,
10684 broken out from read_enumeration. Don't create the enumeration
10685 type if it has already been created.
10686 (read_enumeration): Removed.
10687 (process_die): Call read_structure_type, process_structure_scope,
10688 read_enumeration_type, and process_enumeration_scope. Just call
10689 new_symbol for base and subrange types. Add a comment about other
10690 type dies.
10691 (read_type_die): Call read_enumeration_type.
10692 (add_partial_structure, new_symbol): Update comments.
10693
65760afb
SC
106942004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10695
10696 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10697
10f59415
SC
106982004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10699
10700 * tui/tui-win.h (tui_get_cmd_list): Declare.
10701 * tui/tui-win.c (tui_command): New function.
10702 (tui_get_cmd_list): New function.
10703 (_initialize_tui_win): Moved initialization of tui command in
10704 tui_get_cmd_list.
10705
10706 * tui/tui-data.c (init_content_element): Setup new data members.
10707 (init_win_info): Likewise.
10708 (free_content_elements): Free it.
10709 * tui/tui-data.h (struct tui_data_element): Store the register
10710 content to print.
10711 (struct tui_data_info): Keep the current register group.
10712
10713 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10714
10715 * tui/tui-regs.h (tui_show_registers): Update prototype.
10716 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10717 (tui_resize_all): No need to calculate anything for register window.
10718 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10719 (tui_set_register_element, tui_set_general_regs_content): Remove.
10720 (tui_set_special_regs_content): Remove.
10721 (tui_set_general_and_special_regs_content): Remove.
10722 (tui_set_float_regs_content): Remove.
10723 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10724 (tui_set_regs_content): Remove.
10725 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10726 (tui_v_show_registers_command_support): Remove.
10727 (tui_show_registers): Use a reggroup to specify the registers to show.
10728 (tui_show_register_group): New function.
10729 (tui_display_registers_from): Compute the layout of register window
10730 and refresh with new API; be sure to delete old register windows.
10731 (tui_check_register_values): Update to use tui_get_register and
10732 tui_display_data.
10733 (tui_display_register): Just refresh the register window part.
10734 (tui_register_format): Format registers and save in tui_data_element.
10735 (tui_get_register): New to combine tui_reg_value_has_changed and
10736 tui_get_register_raw_value; fix to use the new gdb API.
10737 (tui_show_float_command): Renamed tui_reg_float_command.
10738 (tui_show_general_command): Renamed tui_reg_general_command.
10739 (tui_show_special_command): Renamed tui_reg_system_command.
10740 (_initialize_tui_regs): Remove unused commands.
10741
c3364ea4
MK
107422004-03-13 Mark Kettenis <kettenis@gnu.org>
10743
27d1e716
MK
10744 * NEWS (New native configurations): Mention OpenBSD/amd64.
10745
c3364ea4
MK
10746 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10747 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10748 Remove defines.
10749 * config/i386/nm-fbsd64.h: Likewise.
10750 * config/i386/nm-obsd.h: Likewise.
10751 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10752 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10753
b2d6d697
KB
107542004-03-12 Kevin Buettner <kevinb@redhat.com>
10755
10756 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
10757 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10758 New constants.
10759
76e43199
KB
10760 From Richard Sandiford <rsandifo@redhat.com>:
10761 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10762
34ce532e
KB
107632004-03-12 Kevin Buettner <kevinb@redhat.com>
10764
10765 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10766 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10767 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10768 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10769 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10770 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10771 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10772 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10773 definitions from frv-tdep.c to frv-tdep.h.
10774
c4d10515
KB
107752004-03-12 Kevin Buettner <kevinb@redhat.com>
10776
10777 Add shared library support for FR-V FDPIC ABI:
10778 * Makefile.in (solib-frv.o): Add dependencies.
10779 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10780 New functions.
10781 (frv_push_dummy_call): Add support for FDPIC ABI.
10782 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10783 for FDPIC ABI.
10784 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10785 (frv_fdpic_find_canonical_descriptor): Declare.
10786 * solib-frv.c: New file.
10787 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10788 * config/frv/tm-frv.h (solib.h): Include.
10789
ed1bd989
KB
107902004-03-12 Kevin Buettner <kevinb@redhat.com>
10791
10792 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10793 (frv-tdep.o): Update dependencies.
10794 * frv-tdep.h: New file.
10795 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10796 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10797 constants.
10798 (struct gdbarch_tdep): Add new member ``frv_abi''.
10799 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10800 functions.
10801 (new_variant): Set ``frv_abi'' field.
10802 (gdb_arch_init): Detect FDPIC executables.
10803
82b38f72
MK
108042004-03-12 Mark Kettenis <kettenis@gnu.org>
10805
10806 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10807 wrapper.
10808
db1ea9ba
AC
108092004-03-11 Andrew Cagney <cagney@redhat.com>
10810
10811 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10812
f8766ec1
KB
108132004-03-11 Kevin Buettner <kevinb@redhat.com>
10814
10815 * solist.h (master_so_list): New function.
10816 * solib.c (master_so_list): Likewise.
10817 * solib-svr4.c (enable_break): Iterate over so_list entries
10818 obtained from master list instead of entries obtained directly
10819 via svr4_current_sos().
10820
523f6a27
BE
108212004-03-10 Ben Elliston <bje@gnu.org>
10822
10823 * MAINTAINERS: Update my mail address.
10824
37814c18
KI
108252004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10826
10827 * remote-m32r-sdi.c: Support hardware watchpoint.
10828
8b9740d8
DJ
108292004-03-09 Daniel Jacobowitz <drow@mvista.com>
10830
10831 * user-regs.c: Update copyright years.
10832 (struct user_regs): Rename to gdb_user_regs.
10833 (append_user_reg, builtin_user_regs, user_regs_init)
10834 (user_reg_add, user_reg_map_name_to_regnum)
10835 (usernum_to_user_reg): Update.
10836
4bb7a0a7
DJ
108372004-03-09 Daniel Jacobowitz <drow@mvista.com>
10838
10839 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10840 (skip_children): New functions.
10841 (locate_pdi_sibling): Call skip_children.
10842
44e1a9eb
DJ
108432004-03-09 Daniel Jacobowitz <drow@mvista.com>
10844
10845 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10846 * gdbtypes.c (check_typedef): Update comments.
10847
f3dd6933
DJ
108482004-03-09 Daniel Jacobowitz <drow@mvista.com>
10849
10850 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10851 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10852 pointer. Update comment about comp_unit_head.
10853 (struct abbrev_info): Shorten two int flags.
10854 (dwarf_alloc_abbrev): Take a CU argument.
10855 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10856 each time through the loop. Update cleanup argument.
10857 (psymtab_to_symtab_1): Update cleanup call.
10858 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10859 abbrev_obstack.
10860 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10861 Just call obstack_free and clear the pointer.
10862
b40c7d58
DJ
108632004-03-09 Daniel Jacobowitz <drow@mvista.com>
10864
10865 * infrun.c (handle_inferior_event): Remove short-circuit code for
10866 events in a different thread.
10867
333dabeb
DJ
108682004-03-09 Daniel Jacobowitz <drow@mvista.com>
10869
10870 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10871 print the whole transfer.
10872 (initialize_targets): Update description of "set debug target".
10873
aa17d93e
DJ
108742004-03-09 Daniel Jacobowitz <drow@mvista.com>
10875
10876 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10877
0b71f08f
NW
108782004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10879
10880 * MAINTAINERS (write after approval): Add myself.
10881
3930f270
CV
108822004-03-08 Corinna Vinschen <vinschen@redhat.com>
10883
10884 * sh-tdep.c (sh_print_registers_info): Use for loop.
10885 Don't skip multiple registers when a float register is encountered.
10886
a2b4a96c
CV
108872004-03-08 Corinna Vinschen <vinschen@redhat.com>
10888
10889 Fix PR tdep/1291.
10890 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10891 to official SH documentation.
10892
f15a4bc0
AC
108932004-03-07 Andrew Cagney <cagney@redhat.com>
10894
10895 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10896 unused function.
10897
9498281f
DJ
108982004-03-07 Daniel Jacobowitz <drow@mvista.com>
10899
10900 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10901 (arm_get_next_pc): Handle BX and BLX.
10902
449e1137
AC
109032004-03-07 Andrew Cagney <cagney@redhat.com>
10904
eded0a31
AC
10905 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10906 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10907 HPPA_SP_REGNUM.
10908 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10909 (hppa_target_read_fp): Delete.
10910 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10911 register_virtual_size, max_register_raw_size,
10912 max_register_virtual_size, register_byte, register_size,
10913 target_read_fp, fp_regnum, and register_bytes. Set register_type
10914 instead of register_virtual_type.
10915 (hppa32_register_type, hppa64_register_type): Replace
10916 hppa32_register_virtual_type and hppa64_register_virtual_type.
10917 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10918 (HPPA_FP_REGNUM): Define.
10919
f5f907e2
AC
10920 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10921
69b4bbe4
AC
10922 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10923 (pa_do_registers_info): Delete.
10924 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 10925 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 10926 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 10927
78161e48
AC
10928 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10929 GDB_TARGET_IS_HPPA code.
10930 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 10931 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
10932 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10933 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
10934 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10935 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10936 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 10937 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
10938 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10939 (hppa_frameless_function_invocation, hppa64_store_return_value)
10940 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 10941 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 10942 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 10943 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
10944 (find_proc_framesize, deposit_21, restore_pc_queue)
10945 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 10946 (rp_saved, pc_in_linker_stub): Delete.
78161e48 10947
782eae8b
AC
10948 Unconditionally enable 64-bit frame and ABI code.
10949 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10950 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10951 push_dummy_frame, fix_call_dummy, push_arguments,
10952 call_dummy_location, extract_return_value, use_struct_convention,
10953 store_return_value, store_struct_return, saved_pc_after_call,
10954 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10955 frame_chain, frame_chain_valid, frameless_function_invocation,
10956 frame_saved_pc, and pop_frame.
78161e48 10957
449e1137
AC
10958 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10959 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10960 (hppa_gdbarch_init): Do not set PC_REGNUM.
10961
12507572
MK
109622004-03-06 Mark Kettenis <kettenis@gnu.org>
10963
10964 * config/alpha/tm-fbsd.h: Remove file.
10965 * config/alpha/fbsd.mt: Tweak comment.
10966 (TM_FILE): Set to tm-alpha.h.
10967
c107cc1b
AC
109682004-03-05 Andrew Cagney <cagney@redhat.com>
10969
10970 * infrun.c (step_over_function): When non-legacy code, and no
10971 step_frame_id, use the unwinder to get the caller's frame ID.
10972
f2e7c15d
MK
109732004-03-05 Mark Kettenis <kettenis@gnu.org>
10974
8b0c3633
MK
10975 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10976 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10977 bfd_arch_unknown. Adjust comment.
10978
f2e7c15d
MK
10979 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10980 * i386obsd-tdep.c: Correct spelling in comment.
10981 * i386nbsd-tdep.c: Correct spelling in comment.
10982 * sparc-tdep.c: Correct spelling in comments.
10983
1198ecbe
DC
109842004-03-05 David Carlton <carlton@kealia.com>
10985
10986 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10987 bug.
10988
9eb42ed1
MK
109892004-03-05 Mark Kettenis <kettenis@gnu.org>
10990
10991 * sparc-tdep.c: Fix typo in comment.
10992
52b5e991
JB
109932004-03-04 J. Brobecker <brobecker@gnat.com>
10994
10995 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10996
d8151005
DJ
109972004-03-04 Daniel Jacobowitz <drow@mvista.com>
10998
10999 * dwarf2read.c: Add comment describing memory lifetimes.
11000 (struct dwarf2_pinfo): Update comment.
11001 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
11002 (read_enumeration, new_symbol): Don't use obsavestring.
11003
cbeae229
MK
110042004-03-04 Mark Kettenis <kettenis@gnu.org>
11005
722d18c2
MK
11006 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
11007 instead of amd64_fill_fxsave.
11008 * amd64bsd-nat.c (store_inferior_registers): Likewise.
11009 * amd64fbsd-nat.c (fill_fpregset): Likewise.
11010
cbeae229
MK
11011 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
11012 Reorganize code a bit.
11013
b4206d25
OF
110142004-03-04 Orjan Friberg <orjanf@axis.com>
11015
11016 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
11017 when the frame pointer is pushed. Don't set the frame pointer's
11018 address on the stack unless it's actually located there.
b4206d25
OF
11019 Set the SRP's address on the stack correctly when the PC is still in
11020 the prologue.
11021 (cris_return_value): New function.
11022 (cris_gdbarch_init): Clear deprecated store_return_value,
11023 extract_return_value.
11024
49b0b195
JB
110252004-03-02 Jim Blandy <jimb@redhat.com>
11026
11027 * stabsread.c (reg_value_complaint): The maximum register number
11028 is one less than the number of registers.
11029
e9ff708b
AC
110302004-03-02 Andrew Cagney <cagney@redhat.com>
11031
11032 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
11033 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
11034 trailing comma and redundant assignment of I386_ST0_REGNUM.
11035 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
11036 32-bit segment registers.
11037
d4715e41
AC
110382004-03-01 Andrew Cagney <cagney@redhat.com>
11039
11040 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
11041 use frame_relative_level and get_next_frame.
11042
3ce2bf18
AC
110432004-02-29 Andrew Cagney <cagney@redhat.com>
11044
11045 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11046 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11047 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11048 Delete macro.
11049
2da6aac3
DJ
110502004-02-29 Daniel Jacobowitz <drow@mvista.com>
11051
11052 * inflow.c (terminal_inferior): Don't give up the terminal if we
11053 previously couldn't get the inferior's terminal state.
11054
6ba34a8d
DJ
110552004-02-29 Daniel Jacobowitz <drow@mvista.com>
11056
11057 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11058 PC_REGNUM.
11059
faae5abe
AC
110602004-02-28 Andrew Cagney <cagney@redhat.com>
11061
11062 * NEWS: Refer to GDB 6.1.
11063 * README: Refer to GDB 6.1.
11064 * PROBLEMS: Refer to GDB 6.1.
11065
2227a3c5
DJ
110662004-02-28 Daniel Jacobowitz <drow@mvista.com>
11067
11068 * thread-db.c (disable_thread_signals): Remove unused function.
11069
80571bff
MK
110702004-02-28 Mark Kettenis <kettenis@gnu.org>
11071
041bd74b
MK
11072 * amd64-nat.c: Include "gdb_string.h".
11073 (amd64_collect_native_gregset): Zero-extend the 32-bit
11074 general-purpose registers and %eip.
11075
3c017e40
MK
11076 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11077 * amd64-tdep.c (amd64_collect_fxsave): New function.
11078 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11079
80571bff
MK
11080 * i387-tdep.h: Update copyright year.
11081 (i387_collect_fxsave): New prototype.
11082 * i387-tdep.c: Update copyright year.
11083 (i387_collect_fxsave): New function containing most of the code
11084 from i387_fill_fxsave.
11085 (i387_fill_fxsave): Call i387_collect_fxsave.
11086
50d71875
AC
110872004-02-28 Andrew Cagney <cagney@redhat.com>
11088
11089 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11090 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
11091
4a28816e
MK
110922004-02-28 Mark Kettenis <kettenis@gnu.org>
11093
11094 * amd64-tdep.c (amd64_frame_cache): Fix comment.
11095
dbda9972
AC
110962004-02-28 Andrew Cagney <cagney@redhat.com>
11097
11098 * utils.c: Use "", instead of <>, to include readline.
11099 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11100 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11101 * source.c, solib.c, exec.c, event-top.c: Ditto.
11102 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11103 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11104 * Makefile.in: Update all dependencies.
11105 (readline_tilde_h, readline_history_h): Define.
11106 (readline_headers): Delete.
11107
83277a99
MK
111082004-02-28 Mark Kettenis <kettenis@gnu.org>
11109
91ae4303
MK
11110 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11111 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11112 "config/i386/tm-lx64.h".
11113
83277a99
MK
11114 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11115 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
11116 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11117
6e1d7d6c
AC
111182004-02-28 Andrew Cagney <cagney@redhat.com>
11119
ecc9ac84
AC
11120 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11121
6e1d7d6c
AC
11122 * breakpoint.c (_initialize_breakpoint): Use
11123 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
11124 Add help to show command.
11125
9671aeef
MK
111262004-02-28 Mark Kettenis <kettenis@gnu.org>
11127
7fa2737c
MK
11128 * i386-nat.c: Reformat to be closer to coding standards.
11129 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11130 `retval'. Make variables `align' and `size' local to while-loop.
11131 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11132 (_initialize_i386_nat): New prototype.
11133
9671aeef
MK
11134 * tui/tui.c: Include <readline/readline.h> instead of
11135 "readline/readline.h". Include it after <term.h> and
11136 "gdb_curses.h".
11137
fca7aa43
AC
111382004-02-27 Andrew Cagney <cagney@redhat.com>
11139
412275d5
AC
11140 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11141 the new frame unwind code.
11142 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11143 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11144 PCOQ_HEAD_REGNUM.
11145
fca7aa43
AC
11146 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11147 "return_value" and "push_dummy_call".
11148 (hppa32_use_struct_convention): Delete unused function.
11149 (hppa32_store_return_value): Delete unused function.
11150 (hppa32_extract_return_value): Delete unused function.
11151 (hppa32_stack_align): Delete function.
11152
e6a8a7d2
EZ
111532004-02-27 Eli Zaretskii <eliz@elta.co.il>
11154
11155 * coffread.c (enter_linenos): Don't let rawptr reference memory
11156 outside linetab[]'s limits.
11157
1797a8f6
AC
111582004-02-27 Andrew Cagney <cagney@redhat.com>
11159
11160 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11161 inferior stack space - the stack needs to grow upwards.
11162 (hppa32_frame_align): New function.
11163 (hppa64_frame_align): Replace hppa_frame_align.
11164 (hppa_gdbarch_init): Update.
11165
2e4b5889
OF
111662004-02-26 Orjan Friberg <orjanf@axis.com>
11167
11168 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11169 (dwarf2-frame.h): Include.
11170 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11171 Remove static variables related to ABI setting.
11172 (struct gdbarch_tdep): Remove cris_abi member.
11173 (struct frame_extra_info): Remove.
11174 (cris_unwind_cache, stack_item): New structs.
11175 (cris_frame_unwind, cris_frame_base): New variables.
11176 (push_stack_item, pop_stack_item)
11177 (cris_frame_unwind_cache, cris_frame_this_id)
11178 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11179 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11180 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11181 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11182 (cris_reg_struct_has_addr): New functions.
11183 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 11184 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
11185 (cris_store_struct_return, cris_frameless_function_invocation)
11186 (cris_pop_frame, cris_skip_prologue_main)
11187 (cris_abi_original_store_return_value)
11188 (cris_abi_v2_store_return_value)
11189 (cris_abi_original_extract_return_value)
11190 (cris_abi_v2_extract_return_value)
11191 (cris_abi_original_reg_struct_has_addr)
11192 (cris_abi_v2_reg_struct_has_addr)
11193 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11194 (cris_push_return_address, cris_abi_update): Remove.
11195 (_initialize_cris_tdep): Remove ABI command.
11196 (cris_dump_tdep): Ditto.
8718a420 11197 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
11198 Set store_return_value, extract_return_value, push_dummy_code,
11199 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11200 frame_unwind_append_sniffer, frame_base_set_default.
11201 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11202 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11203 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 11204 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
11205 init_extra_frame_info, frameless_function_invocation, frame_chain,
11206 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11207 dummy_write_sp.
8718a420 11208
6b9acc27
JJ
112092004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11210
11211 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11212 * valprint.c (print_hex_chars): Change from static to external.
11213 (print_char_chars): New function.
11214 * printcmd.c (print_scalar_formatted): For integer and enum types
11215 that are longer than LONGEST, perform processing via appropriate
11216 print_*_chars routines.
11217
a431654a
AC
112182004-02-26 Andrew Cagney <cagney@redhat.com>
11219
11220 * Makefile.in: Update dependencies.
11221 Changes from Ulrich Weigand,
11222 * s390-tdep.c: Include "dwarf2-frame.h".
11223 (s390_dwarf2_frame_init_reg): New function.
11224 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11225 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11226
fa8d40ab
JJ
112272004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11228
11229 * breakpoint.c (pending_break_support): New setting variable.
11230 (break_command_1): Account for pending_break_support setting
11231 when creating pending breakpoints.
11232 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11233 (_initialize_breakpoint): Add "set breakpoint pending" and
11234 "show breakpoint pending" commands.
11235
0dcd613f
AC
112362004-02-26 Andrew Cagney <cagney@redhat.com>
11237
11238 Fix PR i18n/1570.
11239 * charset.c (backslashable, backslashed, represented): Remove 'e'
11240 from list of escaped characters, not part of ISO-C.
11241
479272a3
JB
112422004-02-25 J. Brobecker <brobecker@gnat.com>
11243
11244 From Peter Schauer <schauer@pdf.de>:
11245 * tui/tui.c: Move system header includes after local includes.
11246 Fixes a build failure on solaris systems.
11247
7613d933
JB
112482004-02-25 J. Brobecker <brobecker@gnat.com>
11249
11250 * configure.in: Refine the previous change.
11251 * configure: Regenerate.
11252
9c1488cb
MK
112532004-02-25 Mark Kettenis <kettenis@gnu.org>
11254
11255 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11256 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11257 "amd64-tdep.h" instead of "x86-64-tdep.h".
11258 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11259 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11260 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11261 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11262 and "x86-64-tdep.c".
11263 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11264 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11265 and "x86-64-tdep.c".
11266 * amd64bsd-nat.c: Update copyright year.
11267 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11268 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11269 "x86-64-tdep.h".
11270 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11271 "x86-64-tdep.h".
11272 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11273 "x86-64-tdep.h".
11274 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11275 "x86-64-tdep.h".
11276 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11277 "x86-64-tdep.h".
11278 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11279 "x86-64-tdep.h".
8718a420 11280 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
11281 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11282 * Makefile.in (amd64_linux_tdep_h): Renamed from
11283 x86_64_linux_tdep_h.
11284 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11285 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11286 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11287 (amd64obsd-tdep.o): Update dependencies.
11288 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11289 dependencies.
11290 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11291 dependencies.
11292 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11293 amd64-linux-nat.c amd64-linux-tdep.c.
11294 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11295 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11296 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11297 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11298 amd64-tdep.o and amd64-linux-tdep.o.
11299 (TM_FILE): Set to tm-linux64.h.
11300 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11301 (NAT_FILE): Set to nm-linux64.h.
11302 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11303 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11304 amd64-tdep.o.
11305 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11306 amd64-tdep.o.
11307 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11308 amd64-tdep.o.
11309
4b8dad4a
RM
113102004-02-25 Roland McGrath <roland@redhat.com>
11311
11312 * remote.c (remote_protocol_qPart_auxv): New variable.
11313 (init_all_packet_configs): Initialize it.
11314 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11315 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11316 (show_remote_cmd): Call it.
11317 (_initialize_remote): Initialize commands.
11318 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11319 service TARGET_OBJECT_AUXV requests.
11320
66745969
JB
113212004-02-25 J. Brobecker <brobecker@gnat.com>
11322
11323 * configure.in: Make sure that the wborder function is available.
11324 Otherwise, search for it in the cur_colr library.
11325 * configure: Regenerate.
11326
79508e1e
AC
113272004-02-25 Andrew Cagney <cagney@redhat.com>
11328
11329 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11330
571ee600
MK
113312004-02-25 Mark Kettenis <kettenis@gnu.org>
11332
11333 * config/i386/tm-x86-64linux.h: Tweak comments.
11334
2b1b322f 113352004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
11336
11337 * MAINTAINERS: Add self to write-after-approval list.
11338
4d2acc65
AC
113392004-02-25 Andrew Cagney <cagney@redhat.com>
11340
4b8dad4a 11341 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
11342 * cli/cli-script.c (execute_control_command): Unconditionally
11343 install a cleanup. Default "ret" to "invalid_control". Use
11344 "break" instead of "return" to escape from the switch.
11345
4cfcaf21
JB
113462004-02-24 J. Brobecker <brobecker@gnat.com>
11347
11348 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11349 with the lines macro defined in term.h on AiX.
11350 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11351 a collision with the label_width macro defined in term.h on AiX.
11352
54a5c8d8
KB
113532004-02-23 David Mosberger <davidm@hpl.hp.com>
11354
11355 Committed by Kevin Buettner <kevinb@redhat.com>.
11356
11357 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11358 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11359 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11360 instead of ia64_write_pc().
11361 * ia64-linux-tdep.c (regcache.h): Include.
11362 (ia64_linux_write_pc): New function.
4b8dad4a 11363
8a1dac83
RM
113642004-02-23 Roland McGrath <roland@redhat.com>
11365
11366 * auxv.c (info_auxv_command): Fix typos in error messages.
11367
90f90721
MK
113682004-02-23 Mark Kettenis <kettenis@gnu.org>
11369
8a1dac83 11370 * x86-64-tdep.h: Tweak comment.
90f90721
MK
11371 (enum amd64_regnum): New.
11372 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11373 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11374 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11375 (X86_64_XMM1_REGNUM): Removed.
11376 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11377 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11378 prototypes for renamed functions.
11379 * x86-64-tdep.c: Fix typo.
11380 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11381 register numbers.
11382 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11383 Use constants from `enum amd64_regnum' for register numbers.
11384 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11385 (amd64_analyze_prologue, amd64_frame_cache,
11386 amd64_sigtramp_frame_cache): Use constants from `enum
11387 amd64_regnum' for register numbers.
11388 (amd64_supply_fpregset): Adjust for renamed functions.
11389 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11390 `enum amd64_regnum' for register numbers.
11391 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11392 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11393 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11394 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11395 (amd64_linux_fill_gregset): Adjust for renamed macros.
11396 (fetch_core_registers): Adjust for renamed functions.
11397 (amd64_linux_init_abi): Adjust for renamed functions.
11398 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11399 renamed functions.
11400 * amd64-nat.c: Adjust for renamed macros.
11401 * amd64bsd-nat.c (fetch_inferior_registers)
11402 (store_inferior_registers): Use constants from `enum amd64_regnum'
11403 for register numbers. Adjust for renamed variables.
11404 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11405 renamed variables.
11406 (_initialize_amd64fbsd_nat): Use constants from `enum
11407 amd64_regnum' for register numbers.
11408 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11409 `enum amd64_regnum' for register numbers.
11410 (amd64fbsd_init_abi): Adjust for renamed functions.
11411 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11412 `enum amd64_regnum' for register numbers.
11413 (amd64nbsd_init_abi): Adjust for renamed functions.
11414 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11415 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11416 `enum amd64_regnum' for register numbers.
11417 (amd64obsd_init_abi): Adjust for renamed functions.
11418 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11419
d5479188
JJ
114202004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11421
11422 * breakpoint.c (print_one_breakpoint): Do not output spaces
11423 after printing <PENDING> for a pending breakpoint.
11424
81cb7cc9
JJ
114252004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11426
11427 * printcmd.c (print_scalar_formatted): Initialize val_long
11428 to remove compiler warning message.
11429
cbdeadca
JJ
114302004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11431
11432 * defs.h (nquery, yquery): New prototypes.
11433 * breakpoint.c (break_command_1): Use new nquery interface.
11434 * utils.c (defaulted_query, nquery, yquery): New functions.
11435
da6bab63
AC
114362004-02-23 Andrew Cagney <cagney@redhat.com>
11437
2f690297
AC
11438 * hppa-tdep.c (hppa_frame_align): New function.
11439 (hppa32_push_dummy_call): New function.
11440 (hppa64_push_dummy_call): New function.
11441 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11442 disabled.
8a1dac83 11443
da6bab63
AC
11444 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11445 FIX_CALL_DUMMY when push_dummy_call is available.
11446 (call_function_by_hand, push_dummy_code): Ditto.
11447
abf9b42d
AC
114482004-02-22 Andrew Cagney <cagney@redhat.com>
11449
11450 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11451 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11452 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11453 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11454 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11455 call_dummy_location to ON_STACK.
11456
10fc94a4
MK
114572004-02-22 Mark Kettenis <kettenis@gnu.org>
11458
51433e4b
MK
11459 * x86-64-linux-tdep.c: Tweak comment.
11460 (amd64_linux_supply_gregset): Renamed from
11461 x86_64_linux_supply_gresget.
11462 (amd64_linux_fill_gregset): Renamed from
11463 x86_64_linux_fill_gregset.
11464 (fetch_core_registers): Adjust for renamed functions.
11465 (amd64_core_fns): Renamed from x86_64_core_fns.
11466 (amd64_linux_sigtramp_start): Renamed from
11467 x86_64_linux_sigtramp_start.
11468 (amd64_linux_pc_in_sigtramp): Renamed from
11469 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11470 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11471 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11472 (amd64_linux_sigcontext_addr): Renamed from
11473 x86_64_linux_sigcontext_addr.
11474 (amd64_linux_sc_reg_offset): Renamed from
11475 x86_64_linux_sc_reg_offset.
11476 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11477 Adjust for renamed functions and variables.
11478 (_initialize_amd64_linux_tdep): Renamed from
11479 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11480 variables.
11481 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11482 Adjust for renamed functions.
11483
430eaf2e
MK
11484 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11485 from x86_64_linux_gregset64_reg_offset.
11486 (amd64_linux_gregset32_reg_offset): Rename from
11487 x86_64_linux_gregset64_reg_offset.
11488 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11489 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11490 (amd64_linux_dr_set_control): Renamed from
11491 x86_64_linux_dr_set_control. Adjust for renamed functions.
11492 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11493 Adjust for renamed functions.
11494 (amd64_linux_dr_reset_addr): Renamed from
11495 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11496 (amd64_linux_dr_get_status): Renamed from
11497 x86_64_linux_dr_get_status. Adjust for renamed functions.
11498 (_initialize_amd64_linux_nat): Renamed from
11499 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11500 functions.
11501 * config/i386/nm-x86-64linux.h: Update copyright year.
11502 Adjust for renamed functions.
11503
10fc94a4
MK
11504 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11505 amd64fbsd_sigtramp_start.
11506 (amd64fbsd_sigtramp_end_addr): Renamed from
11507 amd64fbsd_sigtramp_end.
11508 (amd64fbsd_init_abi): Adjust for renamed variables.
11509 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11510 variables.
11511 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11512 amd64fbsd_sigtramp_start.
11513 (amd64fbsd_sigtramp_end_addr): Renamed from
11514 amd64fbsd_sigtramp_end.
11515
343af405
AC
115162004-02-22 Andrew Cagney <cagney@redhat.com>
11517
537987fc
AC
11518 * hppa-tdep.c (hppa32_return_value): New function.
11519 (hppa64_return_value): New function.
11520 (hppa_gdbarch_init): Set return_value; keep disabled.
11521
fad850b2
AC
11522 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11523 struct-return and inferior function call methods.
11524
26d08f08
AC
11525 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11526 "frame-base.h".
11527 (struct hppa_frame_cache): Define.
11528 (hppa_frame_cache, hppa_frame_this_id): New functions.
11529 (hppa_frame_prev_register): New function.
11530 (hppa_frame_unwind, hppa_frame_base): New variables.
11531 (hppa_frame_unwind_sniffer): New function.
11532 (hppa_frame_base_address, hppa_unwind_pc): New function.
11533 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11534 sniffer, and frame base sniffer; keep disabled.
11535 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11536 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11537
e7d7bd65
AC
11538 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11539 to predicates for "seriously old code".
11540
e963316f
AC
11541 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11542 runtime if(0).
11543
56132691
AC
11544 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11545 unsigned.
11546 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 11547
343af405
AC
11548 * config/pa/tm-hppa.h: Update copyright.
11549 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11550 (deprecated_init_frame_pc_default): Delete declaration.
11551 (hppa_frame_init_saved_regs): Delete declaration.
11552 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11553 * hppa-tdep.c: Include "arch-utils.h".
11554 (hppa_gdbarch_init): Set deprecated init_frame_pc
11555 and deprecated frame_init_saved_regs.
11556 (hppa_frame_init_saved_regs): Make static.
11557
f5859b4d
MK
115582004-02-22 Mark Kettenis <kettenis@gnu.org>
11559
86f6f8e7 11560 Remove old 386BSD support.
cf7c5c23 11561 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
11562 * configure.host: Remove i[34567]86-*-bsd*.
11563 * configure.tgt: Remove i[34567]86-*-bsd*.
11564 * i386b-nat.c: Removed.
11565 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
11566 (i386b-nat.o): Remove dependencies.
11567
86f6f8e7
MK
11568 * config/i386/i386bsd.mh: Removed.
11569 * config/i386/i386bsd.mt: Removed.
11570 * config/i386/nm-i386bsd.h: Removed.
11571 * config/i386/tm-i386bsd.h: Removed.
11572 * config/i386/xm-i386bsd.h: Removed.
11573
971218cd
MK
11574 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11575
7e654c37
MK
11576 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11577 (amd64fbsd_init_abi): Set link map offsets.
11578 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11579 (amd64nbsd_init_abi): Set link map offsets.
11580 * amd64obsd-tdep.c: Include "solib-svr4.h".
11581 (amd64obsd_init_abi): Set link map offsets.
11582 * i386fbsd-tdep.c: Include "solib-svr4.h".
11583 (i386fbsd_init_abi): Set link map offsets.
11584 * i386nbsd-tdep.c: Include "solib-svr4.h".
11585 (i386nbsdelf_init_abi): Set link map offsets.
11586 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11587 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11588 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11589 solib-legacy.o and core-aout.o. Reformat.
11590 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11591 solib-svr4.o, solib-legacy.o. Reformat.
11592 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11593 * config/i386/nbsdelf.mh: Reformat.
11594 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11595 solib-svr4.o, solib-legacy.o and corelow.o.
11596 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11597 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11598 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11599 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11600 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11601 (TM_FILE): Set to tm-fbsd.h.
11602 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11603 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11604 solib-svr4.o.
11605 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11606 solib-svr4.o.
11607 (TM_FILE): Set to nm-nbsd.h.
11608 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11609 Simplify shared library support. Don't include "elf/common.h".
11610 (SVR4_SHARED_LIBS): Don't define.
11611 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11612 "solib.h".
11613 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11614 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11615 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11616 Don't include "i386/tm-i386.h". Include "solib.h".
11617 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11618 Don't include "i386/tm-i386.h".
11619 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11620 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11621 Include "i386/xm-i386.h".
11622 (HOST_LONG_DOUBLE_FORMAT): Remove.
11623
5d93ae8c
MK
11624 Fix OpenBSD/i386 sigtramp recognition.
11625 * i386-tdep.h: Update copyright year.
11626 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11627 (i386bsd_sigtramp_end): New prototypes.
11628 (i386fbsd_sigtramp_start_addr): Renamed from
11629 i386fbsd_sigtramp_start.
11630 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11631 (i386obsd_sigtramp_start_addr): Renamed from
11632 i386obsd_sigtramp_start.
11633 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11634 * i386bsd-tdep.c: Update copyright year.
11635 (i386bsd_pc_in_sigtramp): Make public.
11636 * i386fbsd-nat.c: Update copyright year.
11637 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11638 * i386fbsd-tdep.c: Update copyright year.
11639 (i386fbsd_sigtramp_start_addr): Renamed from
11640 i386fbsd_sigtramp_start.
11641 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11642 (i386fbsdaout_init_abi): Adjust for renamed variables.
11643 * i386obsd-nat.c: Update copyright year.
11644 (_initialize_i386obsd_nat): Adjust for renamed variables.
11645 * i386obsd-tdep.c: Include "target.h".
11646 (i386obsd_page_size): New variable.
11647 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11648 (i386obsd_sigtramp_end): New functions.
11649 (i386obsd_sigtramp_start_addr): Renamed from
11650 i386obsd_sigtramp_start.
11651 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11652 (i386obsd_init_abi): Adjust for renamed variables. Set
11653 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11654 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11655
84d04465
MK
11656 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11657 trampoline change in OpenBSD kernel.
11658
b053aceb
MK
11659 * amd64-nat.c: Update copyright year.
11660 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11661 architecture from REGCACHE.
11662
f5859b4d
MK
11663 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11664 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11665
e4bbbda8
MK
116662004-02-21 Mark Kettenis <kettenis@gnu.org>
11667
ba361932
MK
11668 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11669 i[34567]86-*-openbsd3.[0-3].
11670 * config/i386/obsdaout.mh: New file.
11671
d3e48264
MK
11672 * config/i386/obsd.mh (MH_FLAGS): Remove.
11673
60a6eeb6
MK
11674 Fix PR build/1549.
11675 * i386obsd-tdep.c: Update copyright years. Include
11676 "solib-svr4.h".
11677 (i386obsd_init_abi): Don't set regset_from_core_section here.
11678 (i386obsd_aout_init_abi): New function. Set
11679 regset_from_core_section here.
11680 (i386obsd_elf_init_abi): New function.
11681 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11682 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11683 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11684 (TM_FILE): Set to tm-nbsd.h.
11685
11686 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11687 solib-sunos.o.
11688
e4bbbda8
MK
11689 * solib-svr4.h: Update copyright year.
11690 (svr4_ilp32_fetch_link_map_offsets)
11691 (svr4_lp64_fetch_link_map_offsets): New prototype.
11692 * solib-svr4.c: Update copyright year.
11693 (svr4_ilp32_fetch_link_map_offsets)
11694 (svr4_lp64_fetch_link_map_offsets): New function.
11695
f6fe98ef
DJ
116962004-02-20 Daniel Jacobowitz <drow@mvista.com>
11697
11698 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11699 to the partial symbol table.
11700
589ca796
JB
117012004-02-20 J. brobecker <brobecker@gnat.com>
11702
11703 * PROBLEMS: Add description of problem documented under gdb/1560.
11704
2031c21a
MK
117052004-02-20 Mark Kettenis <kettenis@gnu.org>
11706
30b344b1
MK
11707 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11708 comments.
11709 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11710 functions.
11711 (amd64obsd_init_abi): Reorder initializations. Use
11712 amd64obsd_r_reg_offset to initialize the general-purpose register
11713 set details. Set regset_from_core_section.
11714 (_initialize_amd64obsd_tdep): Rename from
11715 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11716 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11717 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11718
2031c21a
MK
11719 * NEWS (New native configurations): Mention OpenBSD/alpha.
11720 * configure.tgt: Add alpha*-*-openbsd*.
11721 * configure.host: Add alpha*-*-openbsd*.
11722 * alphanbsd-tdep.c: Update copyright year.
11723 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11724
42471775
AC
117252004-02-20 Andrew Cagney <cagney@redhat.com>
11726
11727 Fix PR tdep/1372.
11728 * configure.tgt: Delete target "none-*-*".
11729 * configure.host: Delete host "none-*-*".
11730 * config/none/none.mh: Delete file.
11731 * config/none/none.mt: Delete file.
11732 * config/none/xm-none.h: Delete file.
11733 * config/none/tm-none.h: Delete file.
11734 * config/none/nm-none.h: Delete file.
11735
960ccd7d
FF
117362004-02-19 Fred Fish <fnf@redhat.com>
11737
11738 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11739 cache->uses_fp prior to setting it.
11740
5f883edd
FF
117412004-02-19 Fred Fish <fnf@redhat.com>
11742
11743 Fix for PR breakpoint/1558.
11744 * sh-tdep.c (IS_JSR): New macro.
11745 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11746
f98c22d5
JB
117472004-02-19 Jim Blandy <jimb@redhat.com>
11748
11749 * findvar.c (value_from_register): Doc fix.
11750
95051d27
JJ
117512004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11752
11753 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11754 type being greater than sizeof of host's LONGEST. Always use
11755 unpack_long() unless format 'f' chosen.
11756
ccefbec3
EZ
117572004-02-19 Joel Brobecker <brobecker@gnat.com>
11758
11759 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 11760
ccefbec3
EZ
11761 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11762 contains a symbol wich is the best, non-exact match for the given
11763 pc. Update comments.
11764
117652004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11766
2ede629f
EZ
11767 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11768 macro, which was part of the now removed Mach 3 port.
11769 * utils.c (request_quit): Ditto.
11770
567ee972
MK
117712004-02-18 Mark Kettenis <kettenis@gnu.org>
11772
11773 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11774 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11775
50cca7bb
MK
117762004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11777
11778 Committed by Mark Kettenis <kettenis@gnu.org>.
11779
11780 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11781 Define.
11782
226361c4
AC
117832004-02-18 Andrew Cagney <cagney@redhat.com>
11784
11785 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11786 CONFIG_INSTALL and CONFIG_UNINSTALL.
11787 * configure: Re-generate.
11788 * interps.h (INTERP_TUI): Define.
11789 * Makefile.in: Update dependencies.
11790 (TUI): New macro.
11791 (tui-main.o): Specify dependencies.
11792 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11793 * tui/tui-main.c: New file.
11794
49cfa46f
MK
117952004-02-18 Mark Kettenis <kettenis@gnu.org>
11796
e2879ccb
MK
11797 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11798 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11799 dependencies.
11800 * configure.host: Add x86_64-*-openbsd*.
11801 * configure.tgt: Add x86_64-*-openbsd*.
11802 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11803
c43f4bec
MK
11804 * tui/tui.c: Don't include <malloc.h>.
11805
09ae75b6
MK
11806 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11807 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11808 amd64nbsd-tdep.c.
11809
49cfa46f 11810 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 11811 static. Remove extraneous whitespace.
49cfa46f
MK
11812 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11813 static.
11814
05957fdb
JB
118152004-02-17 Jim Blandy <jimb@redhat.com>
11816
11817 * findvar.c (value_from_register): Doc fix.
11818
d0f54f9d
JB
118192004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11820
11821 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 11822
8a1dac83 11823 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
11824 CORE_ADDR as type for selectors. Correct types for GNU run time
11825 message lookup function to use double indirection.
11826 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11827 * objc-lang.h (lookup_child_selector): Adapt prototype.
11828
9cbd5950
JB
11829 * s390-nat.c (SUBOFF): New macro.
11830 (supply_gregset, fill_gregset): Use it to handle debugging
11831 of 32-bit exectuables running under a 64-bit kernel.
11832 * s390-tdep.c: Include "solib-svr4.h".
11833 (s390_svr4_fetch_link_map_offset): New function.
11834 (s390x_svr_fetch_link_map_offset): Likewise.
11835 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11836 * Makefile.in (s390-tdep.o): Update dependencies.
11837
a8c99f38
JB
11838 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11839 "frame-unwind.h".
11840 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11841 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11842 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11843 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11844 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11845 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 11846 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
11847 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11848 (struct frame_extra_info): Remove.
11849 (s390_memset_extra_info): Remove.
f73b1eff
JB
11850 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11851 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11852 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
11853 (is_rse): Renamed to ...
11854 (is_rsy): ... this. Support long displacements.
11855 (is_rxe): Renamed to ...
11856 (is_rxy): ... this. Support long displacements.
11857 (compute_x_addr): Support long displacements.
11858 (struct s390_prologue_data): New data type.
11859 (s390_on_stack): Change API to use struct s390_prologue_data.
11860 (s390_store): Reimplement.
11861 (s390_load): New function.
11862 (s390_get_signal_frame_info): Remove.
11863 (s390_get_frame_info): Remove, replace by ...
11864 (s390_analyze_prolog): ... this new function.
11865 (s390_check_function_end): Remove.
11866 (s390_function_start): Remove.
11867 (s390_frameless_function_invokation): Remove.
11868 (s390_is_sigreturn): Remove.
11869 (s390_init_frame_pc_first): Remove.
11870 (s390_init_frame_extra_info): Remove.
11871 (s390_frame_init_saved_regs): Remove.
11872 (s390_frame_saved_pc_nofix): Remove.
11873 (s390_frame_saved_pc): Remove.
11874 (s390_frame_chain): Remove.
11875 (s390_fp_regnum, s390_read_fp): Remove.
11876 (s390_pop_frame_regular, s390_pop_frame): Remove.
11877 (s390_saved_pc_after_call): Remove.
11878 (s390_skip_prologue): Reimplement.
11879 (s390_in_function_epilogue_p): Support long displacements.
11880 (struct s390_unwind_cache): New data structure.
11881 (s390_frame_unwind_cache): New function.
11882 (s390_prologue_frame_unwind_cache): Likewise.
11883 (s390_backchain_frame_unwind_cache): Likewise.
11884 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11885 (s390_frame_unwind): Define.
11886 (s390_frame_sniffer): New function.
11887 (struct s390_pltstub_unwind_cache): New data structure.
11888 (s390_pltstub_frame_unwind_cache): New function.
11889 (s390_pltstub_frame_this_id): Likewise.
11890 (s390_pltstub_frame_prev_register): Likewise.
11891 (s390_pltstub_frame_unwind): Define.
11892 (s390_pltstub_frame_sniffer): New function.
11893 (struct s390_sigtramp_unwind_cache): New data structure.
11894 (s390_sigtramp_frame_unwind_cache): New function.
11895 (s390_sigtramp_frame_this_id): Likewise.
11896 (s390_sigtramp_frame_prev_register): Likewise.
11897 (s390_sigtramp_frame_unwind): Define.
11898 (s390_sigtramp_frame_sniffer): New function.
11899 (s390_frame_base_address, s390_local_base_address): New functions.
11900 (s390_frame_base): Define.
11901 (s390_unwind_pc, s390_unwind_sp): New function.
11902 (s390_push_dummy_call): Use new frame base location.
11903 (s390_unwind_dummy_id): Likewise.
11904 (s390_gdbarch_init): Remove calls to:
11905 set_gdbarch_frameless_function_invocation,
11906 set_gdbarch_deprecated_init_frame_pc,
11907 set_gdbarch_deprecated_frame_chain,
11908 set_gdbarch_deprecated_frame_init_saved_regs,
11909 set_gdbarch_deprecated_pop_frame,
11910 set_gdbarch_deprecated_init_extra_frame_info,
11911 set_gdbarch_deprecated_init_frame_pc_first,
11912 set_gdbarch_deprecated_target_read_fp,
11913 set_gdbarch_deprecated_frame_saved_pc,
11914 set_gdbarch_deprecated_saved_pc_after_call,
11915 set_gdbarch_deprecated_fp_regnum.
11916 Add calls to:
11917 set_gdbarch_in_solib_call_trampoline,
11918 frame_unwind_append_sniffer,
11919 frame_base_set_default,
11920 set_gdbarch_unwind_pc,
11921 set_gdbarch_unwind_sp.
11922 * Makefile.in (s390-tdep.o): Update dependencies.
11923
b0cf273e
JB
11924 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11925 (S390_STACK_FRAME_OVERHEAD): Remove.
11926 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11927 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11928 (s390_promote_integer_argument): Remove.
11929 (s390_cannot_extract_struct_value_address): Remove.
11930 (s390_use_struct_convention, s390_store_struct_return): Remove.
11931 (s390_extract_return_value, s390_store_return_value): Remove.
11932 (s390_return_value_convention, s390_return_value): New functions.
11933 (is_float_singleton): Handle typedefs.
8a1dac83 11934 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
11935 Remove, replace by ...
11936 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11937 s390_function_arg_integer): ... these new functions.
11938 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11939 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11940 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11941 Fill in tdep->abi.
11942 Remove calls to:
11943 set_gdbarch_deprecated_store_struct_return,
11944 set_gdbarch_deprecated_extract_return_value,
11945 set_gdbarch_deprecated_store_return_value,
11946 set_gdbarch_use_struct_convention,
11947 set_gdbarch_extract_struct_value_address,
11948 set_gdbarch_deprecated_pc_in_call_dummy,
11949 set_gdbarch_deprecated_push_arguments,
11950 set_gdbarch_deprecated_save_dummy_frame_tos,
11951 set_gdbarch_deprecated_push_return_address,
11952 set_gdbarch_deprecated_sizeof_call_dummy_words,
11953 set_gdbarch_deprecated_call_dummy_words,
11954 set_gdbarch_deprecated_dummy_write_sp.
11955 Add calls to:
11956 set_gdbarch_push_dummy_call,
11957 set_gdbarch_unwind_dummy_id,
11958 set_gdbarch_return_value.
8a1dac83 11959
e1457d83
JB
11960 * config/s390/nm-linux.h: Update comments.
11961 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11962 (STOPPED_BY_WATCHPOINT): Redefine.
11963 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11964 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11965 (s390_stopped_by_watchpoint): Likewise.
11966 (watch_area_cnt): Remove.
11967 * s390-nat.c: Update comments.
11968 (watch_area): Remove typedef.
11969 Global replace watch_area by struct watch_area.
11970 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 11971 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
11972 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11973 (s390_fix_watch_points): Remove pid argument,
11974 use s390_inferior_tid. Recompute area spanned by watchpoints.
11975 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11976 argument. Reimplement.
11977
d0f54f9d
JB
11978 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11979 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11980 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 11981 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
11982 core-regset.o.
11983 * config/s390/s390x.mt: Remove.
11984 * config/s390/tm-s390.h: Remove.
11985 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11986 (TARGET_ELF64): Remove.
11987 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11988 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11989 s390*-*-* case; always set gdb_target to s390.
11990 * regformats/reg-s390.dat: Remove control registers.
11991 * regformats/reg-s390x.dat: Likewise.
11992 * s390-tdep.h: New file.
8a1dac83 11993 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
11994 Include "inferior.h" and "s390-tdep.h".
11995 Remove private definition of offsetof.
11996 (s390_register_u_addr): Remove.
11997 (regmap_gregset, regmap_fpregset): Define.
11998 (supply_gregset, fill_gregset): Reimplement.
11999 (supply_fpregset, fill_fpregset): Likewise.
12000 (s390_inferior_tid): New function.
12001 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
12002 (fetch_inferior_registers, store_inferior_registers): Likewise.
12003 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
12004 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
12005 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
12006 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
12007 (struct gdbarch_tdep): Define.
12008 (struct s390_register_info): Define.
12009 (s390_register_info): New variable.
12010 (s390_register_name): Reimplement.
12011 (s390_register_type): New function.
12012 (s390_register_raw_size, s390x_register_raw_size): Remove.
12013 (s390_cannot_fetch_register): Remove.
12014 (s390_register_byte): Remove.
12015 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
12016 (s390_dwarf_regmap): New variable.
12017 (s390_dwarf_reg_to_regnum): New function.
12018 (s390_stab_reg_to_regnum): Remove.
12019 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
12020 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
12021 (s390_convert_register_p): Likewise.
12022 (s390_register_to_value, s390_value_to_register): Likewise.
12023 (s390_register_reggroup_p): Likewise.
12024 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
12025 s390_gregset, s390x_gregset, s390_fpregset): New variables.
12026 (s390_supply_regset, s390_regset_from_core_section): New functions.
12027 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
12028 (S390_FPR_SIZE): Likewise.
12029 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
12030 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
12031 (S390_NUM_GPRS): Move here from tm-s390.h.
12032 (S390_NUM_FPRS): Likewise.
12033 (s390_in_function_epilogue_p): New function.
12034 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
12035 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
12036 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
12037 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
12038 Replace S390_FP_REGNUM by S390_SP_REGNUM.
12039 Remove calls to:
12040 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
12041 set_gdbarch_deprecated_max_register_virtual_size,
12042 set_gdbarch_deprecated_register_byte,
d0f54f9d 12043 set_gdbarch_cannot_fetch_register,
8a1dac83 12044 set_gdbarch_cannot_store_register,
d0f54f9d
JB
12045 set_gdbarch_deprecated_register_size,
12046 set_gdbarch_deprecated_register_raw_size,
12047 set_gdbarch_deprecated_register_virtual_size,
12048 set_gdbarch_deprecated_register_virtual_type,
12049 set_gdbarch_deprecated_register_bytes.
12050 Add calls to:
12051 set_gdbarch_num_pseudo_regs,
12052 set_gdbarch_register_type,
12053 set_gdbarch_convert_register_p,
12054 set_gdbarch_register_to_value,
12055 set_gdbarch_value_to_register,
12056 set_gdbarch_register_reggroup_p,
12057 set_gdbarch_regset_from_core_section,
12058 set_gdbarch_pseudo_register_read,
12059 set_gdbarch_pseudo_register_write,
12060 set_gdbarch_in_function_epilogue_p.
12061 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12062 (s390_tdep_h): New variable.
12063
8cfe231d
JB
120642004-02-17 Jim Blandy <jimb@redhat.com>
12065
4589a601
JB
12066 * findvar.c (value_from_register): If the type has no length, just
12067 return an acceptable value --- don't report an internal error.
12068
8cfe231d
JB
12069 * stabsread.c (read_type): If we find any type numbers that are
12070 forward references, complain if the references aren't resolved by
12071 the time we're finished reading.
12072 (cleanup_undefined_types): Make error message more appropriate for
12073 a complaint.
12074
5bf0017e
EZ
120752004-02-17 Elena Zannoni <ezannoni@redhat.com>
12076
9d62932d
EZ
12077 * Makefile.in (defs_h): Remove dependency on progress_h.
12078 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12079 progress.h.
12080 * main.c (captured_main): Delete use of START_PROGRESS and
12081 END_PROGRESS.
12082
120832004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 12084
5bf0017e
EZ
12085 * objfiles.c (terminate_minimal_symbol_table): Add back
12086 initialization of MSYMBOL_TYPE.
12087
9fc9f5e2
AC
120882004-02-17 David Mosberger <davidm@hpl.hp.com>
12089
12090 Committed by Andrew Cagney.
12091 * Makefile.in (ia64_tdep_h): New macro.
12092 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12093 (ia64-tdep.o): Likewise.
12094 * ia64-tdep.h: New file.
12095 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
12096 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12097 (ia64_aix_sigcontext_register_address): Likewise.
12098 (ia64_linux_getunwind_table): Delete declaration.
12099 * ia64-linux-tdep.c: Likewise.
12100
76cd2bd9
CV
121012004-02-17 Corinna Vinschen <vinschen@redhat.com>
12102
12103 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12104 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12105 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12106
634aa483
AC
121072004-02-17 Andrew Cagney <cagney@redhat.com>
12108
12109 * symtab.c (skip_prologue_using_sal): New function.
12110 * symtab.h (skip_prologue_using_sal): Declare.
12111 * frv-tdep.c: Include "symtab.h".
12112 (skip_prologue_using_sal): Delete function.
12113 * mips-tdep.c (skip_prologue_using_sal): Delete function.
12114 * rs6000-tdep.c (refine_prologue_limit): Mention
12115 skip_prologue_using_sal.
12116 * ia64-tdep.c (refine_prologue_limit): Ditto.
12117 * Makefile.in: Update dependencies.
12118
121192004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 12120
39ce7b3f
AC
12121 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12122 START_INFERIOR_TRAPS_EXPECTED.
12123 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12124 START_INFERIOR_TRAPS_EXPECTED.
12125 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12126 Delete macro.
12127 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12128 macro, moved to "nm-osf.h". Update copyright.
12129 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12130 update copyright.
12131
19772a2c
AC
12132 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12133 and function replacing FRAMELESS_FUNCTION_INVOCATION.
12134 * blockframe.c (legacy_frameless_look_for_prologue): Rename
12135 frameless_look_for_prologue.
12136 * frame.h (legacy_frameless_look_for_prologue): Rename
12137 frameless_look_for_prologue.
12138 * gdbarch.h, gdbarch.c: Re-generate.
12139 * sh64-tdep.c (sh64_gdbarch_init): Update.
12140 * sh-tdep.c (sh_gdbarch_init): Update.
12141 * s390-tdep.c (s390_gdbarch_init): Update.
12142 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12143 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12144 * m68k-tdep.c (m68k_gdbarch_init): Update.
12145 (delta68_frame_args_address): Update.
12146 * m32r-tdep.c (m32r_gdbarch_init): Update.
12147 * hppa-tdep.c (hppa_gdbarch_init): Update.
12148 * h8300-tdep.c (h8300_gdbarch_init): Update.
12149 * frv-tdep.c (frv_gdbarch_init): Update.
12150 (frv_frameless_function_invocation): Update.
12151 * cris-tdep.c (cris_gdbarch_init): Update.
12152 (cris_frameless_function_invocation): Update.
12153 * avr-tdep.c (avr_gdbarch_init): Update.
12154 * arm-tdep.c (arm_gdbarch_init): Update.
12155 * stack.c (frame_info): Update, call predicate.
12156 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12157 * frame.c (legacy_get_prev_frame): Update, call predicate..
12158 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12159 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12160 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12161 invocation.
12162 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12163 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12164 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
12165
12166 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12167 function.
12168
7dcaac91
DJ
121692004-02-16 Daniel Jacobowitz <drow@mvista.com>
12170
12171 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12172 initializations.
12173
88289b6e
AC
121742004-02-16 Andrew Cagney <cagney@redhat.com>
12175
12176 * tui/tui-windata.c: Include "gdb_string.h".
12177 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12178 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12179 * Makefile.in: Update dependencies.
12180
9f976b41
DJ
121812004-02-16 Daniel Jacobowitz <drow@mvista.com>
12182
12183 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12184 * infrun.c: Include "gdb_assert.h".
12185 (singlestep_ptid, saved_singlestep_ptid)
12186 (stepping_past_singlestep_breakpoint): New variables.
12187 (resume): Set singlestep_ptid. Check for singlestep thread
12188 hop.
12189 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12190 (handle_inferior_event): Handle singlestep thread hop.
12191
c324d747
AC
121922004-02-16 Andrew Cagney <cagney@redhat.com>
12193
f090b9b1
AC
12194 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12195 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12196 (dwarf2_frame_init_reg): Ditto.
12197
fd33e6cb
AC
12198 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12199 suggested by Joshua Neuheisel
12200
c324d747
AC
12201 * configure.in: Always check for curses, including pdcurses.
12202 Warn, instead of error, when no curses are found. Enable TUI when
12203 curses is available.
12204 * configure: Re-generate.
12205
b66ba949
CV
122062004-02-16 Corinna Vinschen <vinschen@redhat.com>
12207
12208 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12209 sh_sh4_register_convert_to_virtual.
12210 (sh_register_convert_to_raw): Rename from
12211 sh_sh4_register_convert_to_raw.
12212 (sh_pseudo_register_read): Accomodate above name change.
12213 (sh_pseudo_register_write): Ditto.
12214
b58cbbf2
CV
122152004-02-16 Corinna Vinschen <vinschen@redhat.com>
12216
12217 * sh-tdep.c (sh_generic_register_name): Remove.
12218 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12219
5929a910
AC
122202004-02-15 Andrew Cagney <cagney@redhat.com>
12221
4566dfcf
AC
12222 * configure.in (build_warnings): Add -Wunused-function.
12223 * configure: Re-generate.
12224
db11ed55
AC
12225 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12226 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12227
46ac7a5d
AC
12228 * procfs.c (procfs_init_inferior): Assume that
12229 START_INFERIOR_TRAPS_EXPECTED is defined.
12230 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12231 * config/ns32k/tm-nbsd.h: Delete file,
12232 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12233
ba801595
AC
12234 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12235 * config/vax/tm-vax.h: Delete file.
12236
5929a910
AC
12237 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12238 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12239 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12240 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12241 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12242 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12243 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12244
8f22cb90
MK
122452004-02-15 Mark Kettenis <kettenis@gnu.org>
12246
12247 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12248 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12249 (struct dwarf2_frame_ops): New.
12250 (dwarf2_frame_default_init_reg): New function, based on
12251 dwarf2_frame_init_reg.
12252 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12253 (dwarf2_frame_init_reg): Call architecture-specific function.
12254 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12255 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12256 instead of dwarf2_frame_data.
12257 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12258 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12259
8132723e
AC
122602004-02-15 Andrew Cagney <cagney@redhat.com>
12261
046a4708
AC
12262 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12263 register_gdbarch_swap.
12264 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12265 * f-lang.c (_initialize_f_language): Update, use
12266 DEPRECATED_REGISTER_GDBARCH_SWAP.
12267 * remote.c (_initialize_remote): Ditto.
12268 * regcache.c (_initialize_regcache): Ditto.
12269 * parse.c (_initialize_parse): Ditto.
12270 * infrun.c (_initialize_infrun): Ditto.
12271 * mi/mi-main.c (_initialize_mi_main): Ditto.
12272 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 12273
549c1eea
AC
12274 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12275 poking .cacheable directly.
12276 * symfile.c (symfile_bfd_open): Ditto.
12277
0c0b39de
AC
12278 * Makefile.in: Update all dependencies.
12279
8132723e
AC
12280 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12281 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12282 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12283 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12284 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 12285
b9d26eb9
AC
122862004-02-14 Andrew Cagney <cagney@redhat.com>
12287
8e1f669a
AC
12288 * arch-utils.c (legacy_convert_register_p): Check
12289 DEPRECATED_REGISTER_CONVERTIBLE_P.
12290 * findvar.c (value_of_register): Ditto.
12291
cd0bfa36
AC
12292 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12293 * gdbarch.h, gdbarch.c: Re-generate.
12294 * arch-utils.c (deprecated_register_convertible_not): Delete.
12295 * arch-utils.h (deprecated_register_convertible_not): Delete.
12296 * mi/mi-main.c (get_register): Update. Update copyright.
12297 * infcmd.c (default_print_registers_info): Update.
12298
b9d26eb9
AC
12299 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12300 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12301 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 12302 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
12303 * frame.c (deprecated_get_next_frame_hack): Delete function.
12304 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12305 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12306 Update.
12307 * infcall.c (call_function_by_hand): Update.
12308
9ab9195f
EZ
123092004-02-14 Elena Zannoni <ezannoni@redhat.com>
12310
12311 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 12312 from here...
9ab9195f
EZ
12313 * objfiles.c (init_entry_point_info, entry_point_address):..to
12314 here.
12315 * symfile.h (init_entry_point_info, entry_point_address): Remove
12316 prototypes.
12317 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 12318 prototypes.
9ab9195f
EZ
12319 * cris-tdep.c: Remove include of symfile.h. Add include of
12320 objfiles.h.
12321 * infcall.c: Ditto.
12322 * mcore-tdep.c: Ditto.
12323 * mn10300-tdep.c: Ditto.
12324 * sh64-tdep.c: Ditto.
12325 * v850-tdep.c: Ditto.
12326 * arm-tdep.c: Remove include of symfile.h.
12327 * blockframe.c: Ditto.
12328 * coffread.c: Ditto.
12329 * dbxread.c: Ditto.
12330 * dwarf2read.c: Ditto.
12331 * dwarfread.c: Ditto.
8a1dac83 12332 * frv-tdep.c: Ditto.
9ab9195f
EZ
12333 * ia64-tdep.c: Ditto.
12334 * mdebugread.c: Ditto.
12335 * mipsread.c: Ditto.
8a1dac83 12336 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
12337 * s390-tdep.c: Ditto.
12338 * sh-tdep.c: Ditto.
8a1dac83 12339 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
12340 * gdbarch.sh: Remove include of symfile.h.
12341 * gdbarch.c: Regenerate.
12342 * solib-irix.c (enable_break): Use entry_point_address().
12343 Add comment about include file.
12344 * xcoffread.c: Add comment about include file.
8a1dac83
RM
12345 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12346 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12347 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12348 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
12349 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12350
c4c5b7ba
AC
123512004-02-13 Andrew Cagney <cagney@redhat.com>
12352
12353 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12354 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12355 copyright.
12356 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12357
3e7879de
FF
123582004-02-12 Fred Fish <fnf@redhat.com>
12359
12360 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12361 set_gdbarch_store_return_value.
12362
6a7760b6
AC
123632004-02-12 Andrew Cagney <cagney@redhat.com>
12364
12365 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12366 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12367 (interrupt_query): Ditto.
12368 (ofunc): Delete unused variable.
12369 * cris-tdep.c (cris_abi): Delete unused function.
12370 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12371 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12372 (cris_get_asr_quick_shift_steps): Ditto.
12373 (cris_skip_prologue_frameless_p): Ditto.
12374 * arm-tdep.c (arm_push_return_address): Delete unused function.
12375 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12376 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12377 * s390-tdep.c (s390_function_start): Delete unused function.
12378
31687c3c
AC
123792004-02-12 Andrew Cagney <cagney@redhat.com>
12380
12381 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12382 gdbarch.h, gdbarch.c: Re-generate.
12383 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12384 to generic_prologue_frameless_p.
12385 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12386 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12387
6de918a6
DJ
123882004-02-11 Daniel Jacobowitz <drow@mvista.com>
12389
12390 * mips-linux-tdep.c: Include "frame.h".
12391 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12392 (mips_linux_skip_resolver): New functions.
12393 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12394 and set_gdbarch_in_solib_call_trampoline.
12395 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12396 to after set_gdbarch_in_solib_return_trampoline. Only set the
12397 solib hooks to mips16 functions if the OS ABI is unknown.
12398 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12399 including "config/tm-linux.h".
12400 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12401 * Makefile.in (mips-linux-tdep.o): Update.
12402
87b3ede8
DC
124032004-02-11 David Carlton <carlton@kealia.com>
12404
12405 * linespec.c (decode_compound): Only look for a class symbol when
12406 considering all but the rightmost component.
12407
5979bc46
AC
124082004-02-11 Andrew Cagney <cagney@redhat.com>
12409
12410 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12411 abi code are are separatly grouped.
12412
5867a2fb
AC
124132004-02-11 Andrew Cagney <cagney@redhat.com>
12414
12415 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12416 * gdbarch.h, gdbarch.c: Re-generate.
12417 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12418 * v850-tdep.c (v850_gdbarch_init): Update.
12419 * sh64-tdep.c (sh64_gdbarch_init): Update.
12420 * sh-tdep.c (sh_gdbarch_init): Update.
12421 * s390-tdep.c (s390_gdbarch_init): Update.
12422 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12423 * mips-tdep.c (mips_gdbarch_init): Update.
12424 * mcore-tdep.c (mcore_gdbarch_init): Update.
12425 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12426 * m32r-tdep.c (m32r_gdbarch_init): Update.
12427 * ia64-tdep.c (ia64_gdbarch_init): Update.
12428 * hppa-tdep.c (hppa_gdbarch_init): Update.
12429 * h8300-tdep.c (h8300_gdbarch_init): Update.
12430 * frv-tdep.c (frv_gdbarch_init): Update.
12431 * d10v-tdep.c (d10v_gdbarch_init): Update.
12432 * cris-tdep.c (cris_gdbarch_init): Update.
12433 * avr-tdep.c (avr_gdbarch_init): Update.
12434 * arm-tdep.c (arm_gdbarch_init): Update.
12435 * alpha-tdep.c (alpha_gdbarch_init): Update.
12436
026a72f8
CV
124372004-02-11 Corinna Vinschen <vinschen@redhat.com>
12438
12439 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12440 comma.
12441 (sh_sh4al_dsp_register_name): Ditto.
12442
3903d437
AC
124432004-02-10 Andrew Cagney <cagney@redhat.com>
12444
12445 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12446 (mips_init_frame_pc_first): Delete function.
12447 (mips_frame_saved_pc): Delete function.
12448 (mips_frame_chain): Delete function.
12449 (mips_init_extra_frame_info): Delete function.
12450 (mips_xfer_register): Delete unused variable "reg".
12451 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12452 (mips_n32n64_return_value): Delete unused variable "reg".
12453 (mips_n32n64_return_value): Delete unused variable "pos".
12454 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12455 (mips_o32_return_value): Delete unused variable "pos".
12456 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12457 (mips_print_fp_register): Delete unused variable "namelen"
12458 (mips_print_fp_register): Delete unused variable "flt2"
12459 (get_frame_pointer): Delete function.
12460 (cached_proc_desc): Delete static variable.
12461 (mips_pop_frame): Delete function.
12462 (mips_find_saved_regs): Delete function.
12463 (mips_get_saved_register): Delete function.
12464 (mips_saved_pc_after_call): Delete function.
12465 (SIGFRAME_BASE): Delete macro.
12466 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12467 (SIGFRAME_PC_OFF): Delete macro.
12468 (SIGFRAME_REGSAVE_OFF): Delete macro.
12469 (mips_dump_tdep): Do not print deleted macro definitions.
12470
b9fb98bd
AC
124712004-02-10 Andrew Cagney <cagney@redhat.com>
12472
12473 * Makefile.in (SFILES): Remove explictly listed tui files.
12474 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12475
78ced177 124762004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 12477
78ced177
JJ
12478 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12479 to use paddr functions to format ia64 addresses and long values.
12480 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12481 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12482 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12483 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12484 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12485
6a83354a
AC
124862004-02-10 Andrew Cagney <cagney@redhat.com>
12487
12488 * defs.h: Do not include "tui.h".
12489 * gdb_curses.h: New file.
12490 * tui/tui-hooks.h: New file.
12491 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12492 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12493 (tui_initialize_io): Delete declaration.
12494 (tui_initialize_readline: Delete redundant declaration.
12495 (struct tui_point): Delete definition.
12496 * tui/tui-data.h (struct tui_point): Define.
12497 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12498 * utils.c: Include "tui/tui.h".
12499 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12500 * printcmd.c [TUI]: Include "tui/tui.h".
12501 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12502 * tui/tui-command.c: Include "gdb_curses.h".
12503 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12504 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12505 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12506 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12507 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12508 * Makefile.in: Update all dependencies.
12509 (tui_hooks_h, gdb_curses_h): Define.
12510 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12511
997470ef
EZ
125122004-02-10 Elena Zannoni <ezannoni@redhat.com>
12513
12514 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12515 auxf2. Add comments about some other rarely used fields.
12516
4ff2cc4d
AC
125172004-02-10 Andrew Cagney <cagney@redhat.com>
12518
12519 * Makefile.in (init.c): Fix script removing duplicates. Problem
12520 reported by Peter Schauer.
12521
1ab21617
EZ
125222004-02-09 Elena Zannoni <ezannoni@redhat.com>
12523
12524 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12525 obstack_specify_allocation.
12526 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 12527 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
12528 (allocate_rt_common_objfile): Ditto.
12529 * symfile.c (reread_symbols): Ditto.
12530 * gdb_obstack.h: Add comment.
12531
17763fd9
EZ
125322004-02-09 Elena Zannoni <ezannoni@redhat.com>
12533
12534 * linespec.c (decode_line_1, locate_first_half)
12535 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12536 commented out code.
12537
ec5cdd75
DJ
125382004-02-09 Daniel Jacobowitz <drow@mvista.com>
12539
12540 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12541 obstack_free.
12542
43b54b88
AC
125432004-02-09 Andrew Cagney <cagney@redhat.com>
12544
12545 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12546 fails, try find_pc_section. Fix PR c++/1267.
12547 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12548 instead of find_pc_mapped_section.
12549 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12550 not default to the section containing PC. Fix PR symtab/1519.
12551
edfae063
AC
125522004-02-09 Andrew Cagney <cagney@redhat.com>
12553
12554 * Makefile.in (mips-tdep.o): Update dependencies.
12555 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12556 "trad-frame.h".
12557 (mips_unwind_pc): Return the pseudo PC register.
12558 (mips_unwind_dummy_id): New function.
12559 (mips16_fetch_instruction): New function.
12560 (mips32_fetch_instruction): New function.
12561 (struct mips_frame_cache): Define.
12562 (mips_mdebug_frame_cache): New function.
12563 (mips_mdebug_frame_this_id): New function.
12564 (mips_mdebug_frame_prev_register): New function.
12565 (mips_mdebug_frame_unwind): Define.
12566 (mips_mdebug_frame_sniffer): New function.
12567 (mips_mdebug_frame_base_address): New function.
12568 (mips_mdebug_frame_base): Define.
12569 (mips_mdebug_frame_base_sniffer): New function.
12570 (mips_gdbarch_init): Append unwind and base sniffers. Set
12571 unwind_dummy_id.
12572
defc864c
AC
125732004-02-08 Andrew Cagney <cagney@redhat.com>
12574
6764ddad
AC
12575 * frame.c: Print both the register number and name.
12576
defc864c
AC
12577 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12578 and a sed into a single sed. Make .c and .o patterns more robust.
12579 (OBS): Delete.
12580 (INIT_FILES): Replace OBS with COMMON_OBS.
12581 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12582
645d6d10
MK
125832004-02-08 Mark Kettenis <kettenis@gnu.org>
12584
12585 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12586 the PT_WCOOKIE request.
12587
23e3c3fc
AC
125882004-02-08 Andrew Cagney <cagney@redhat.com>
12589
58dfe9ff
AC
12590 * mips-tdep.c (mips_unwind_pc): New function.
12591 (mips_gdbarch_init): Set mips_unwind_pc.
12592
1152e35e
AC
12593 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12594 (get_frame_id): Allow the UNKNOWN_FRAME.
12595 (frame_register_unwind, get_frame_type): Ditto.
12596
31b75dbf
AC
12597 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12598 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12599 unwind_dummy_id indicates a legacy frame.
12600
3483b318
AC
12601 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12602 * configure: Re-generate.
12603
23e3c3fc
AC
12604 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12605 methods.
12606
33f8ca73
AC
126072004-02-08 Andrew Cagney <cagney@redhat.com>
12608
12609 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12610 makefile macro.
12611 * configure: Re-generate.
12612 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12613 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12614 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12615 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12616 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12617 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12618 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12619 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12620 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12621 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12622
6ba8e26f 126232004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 12624
20d286a5
AC
12625 * Makefile.in: Update all dependencies.
12626
d836ee13
AC
12627 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12628 * configure: Re-generate.
12629 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12630 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12631 (COMMON_OBS): Add "main.o" and "annotate.o".
12632 (ANNOTATE_OBS): Delete.
12633 (OBS): Remove ANNOTATE_OBS.
12634 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12635 CONFIG_INITS.
12636 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12637 against CONFIG_OBS and "main.o".
12638 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12639 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12640
d02c80cd
AC
12641 * tui/tui-command.c: Include "gdb_string.h", delete register
12642 attribute, use ISO-C function signatures.
12643 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12644 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12645 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12646 * tui/tui.c: Ditto.
6ba8e26f
AC
12647
12648 * tui/tui-command.c: Change variable and function names to lower
12649 case.
12650 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12651 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12652 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12653 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12654 * tui/tui-winsource.c, tui/tui.c: Ditto.
12655
4a146b47
EZ
126562004-02-07 Elena Zannoni <ezannoni@redhat.com>
12657
12658 * buildsym.c (free_pending_blocks, finish_block)
12659 (record_pending_block, make_blockvector, end_symtab): Replace
12660 symbol_obstack with objfile_obstack.
8a1dac83 12661 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 12662 (coff_read_enum_type): Ditto.
8a1dac83 12663 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 12664 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 12665 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
12666 (dwarf2_symbol_mark_computed): Ditto.
12667 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12668 * elfread.c (elf_symtab_read): Ditto.
12669 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12670 (hpread_read_enum_type, hpread_read_function_type)
12671 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12672 Ditto.
8a1dac83 12673 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 12674 (java_link_class_type): Ditto.
8a1dac83 12675 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
12676 (new_symbol): Ditto.
12677 * minsyms.c (install_minimal_symbols): Ditto.
12678 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12679 (terminate_minimal_symbol_table): Replace symbol_obstack with
12680 objfile_obstack.
12681 (free_objfile): Remove freeing of symbol_obstack.
12682 * objfiles.h: Remove symbol_obstack field.
12683 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12684 objfile_obstack.
12685 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12686 symbol_obstack.
12687 (solib_add_common_symbols): Replace symbol_obstack with
12688 objfile_obstack.
12689 * somsolib.c (som_solib_add): Ditto.
12690 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12691 (common_block_start, common_block_end): Ditto.
12692 * symfile.c (reread_symbols): Remove freeing and init of
12693 symbol_obstack.
12694 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12695 * symfile.h: Update comment.
12696 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12697 stats printing.
12698 * symtab.c (symbol_set_names): Replace symbol_obstack with
12699 objfile_obstack.
12700 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12701 Update comments.
12702 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12703 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12704 objfile_obstack.
12705
6d012f14
AC
127062004-02-07 Andrew Cagney <cagney@redhat.com>
12707
12708 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12709 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12710 fields and variables.
12711 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12712 (m_beInvisible): Delete macro.
12713 * tui/tui-data.h: Fix case case fields and variables.
12714 (m_genWinPtrIsNull): Delete macro.
12715 (tui_win_list): Rename winList.
12716 (TUI_SRC_WIN): Rename srcWin.
12717 (TUI_DISASM_WIN): Rename disassemWin.
12718 (TUI_DATA_WIN): Rename dataWin.
12719 (TUI_CMD_WIN): Rename cmdWin.
12720 (m_genWinPtrNotNull): Delete macro.
12721 (m_winPtrIsNull): Delete macro.
12722 (m_winPtrNotNull): Delete macro.
12723 (tui_win_is_source_type): Replace m_winIsSourceType
12724 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12725 (tui_win_has_locator): Replace m_hasLocator.
12726 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12727 m_setWinHighlightOff.
12728 * tui/tui-data.c: Update references.
12729 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12730 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12731 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12732 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12733 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12734 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12735 * tui/tui-winsource.c, tui/tui.c: Ditto.
12736
7d34766b
MK
127372004-02-07 Mark Kettenis <kettenis@gnu.org>
12738
1c800673
MK
12739 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12740 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12741 StackGhost.
12742
7d34766b
MK
12743 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12744 variable `i6' to `i7'.
12745 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12746
22940a24
AC
127472004-02-07 Andrew Cagney <cagney@redhat.com>
12748
12749 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12750 (TuiPoint, TuiPointPtr): Ditto.
12751 (TuiStatus, TuiStatusPtr): Ditto.
12752 (TuiWinType, TuiWinTypePtr): Ditto.
12753 (struct tui_point): Rename _TuiPoint.
12754 (tui_get_low_disassembly_address): Rename
12755 tuiGetLowDisassemblyAddress.
12756 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12757 (tuiFree): Delete declaration.
12758 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12759 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12760 * tui/tui.c (tuiFree): Delete function.
12761 * cli/cli-cmds.c (disassemble_command): Update references.
12762 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12763 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12764 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12765 * tui/tui-winsource.c: Ditto.
12766
8b92e4d5
EZ
127672004-02-07 Elena Zannoni <ezannoni@redhat.com>
12768
12769 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12770 coffstab_build_psymtabs, elfstab_build_psymtabs)
12771 (stabsect_build_psymtabs): Replace psymbol_obstack with
12772 objfile_obstack.
12773 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12774 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12775 Ditto.
12776 * dwarfread.c (scan_compilation_units): Ditto.
12777 * elfread.c (elfstab_offset_sections): Ditto.
12778 * hppa-tdep.c (read_unwind_info): Ditto.
12779 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12780 (hpread_end_psymtab): Ditto.
12781 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12782 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12783 Ditto.
12784 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 12785 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
12786 (build_objfile_section_table): Ditto.
12787 (allocate_objfile): Remove init of psymbol_obstack.
12788 (free_objfile): Remove freeing of psymbol_obstack.
12789 * objfiles.h (struct objfile): Remove field
12790 psymbol_obstack. Update comments.
12791 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12792 psymbol_obstack with objfile_obstack.
12793 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12794 psymbol_obstack.
12795 * somread.c (som_symfile_offsets, init_import_symbols)
12796 (init_export_symbols): Replace psymbol_obstack with
12797 objfile_obstack.
12798 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12799 * symfile.c (default_symfile_offsets, syms_from_objfile)
12800 (reread_symbols): Remove freeing and init of psymbol_obstack.
12801 (cashier_psymtab): Update comment.
12802 * symmisc.c (print_objfile_statistics): Don't report stats for
12803 psymbol obstack.
12804 * symtab.h (struct general_symbol_info, struct partial_symtab):
12805 Update comments.
12806 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12807 (xcoff_symfile_offsets): Replace psymbol_obstack with
12808 objfile_obstack.
12809
b99607ea
EZ
128102004-02-07 Elena Zannoni <ezannoni@redhat.com>
12811
12812 * objfiles.h (struct objfile): Add objfile_obstack field.
12813 Remove type_obstack field.
12814
12815 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12816 read_structure_scope read_enumeration, new_symbol): Replace
12817 type_obstack with objfile_obstack.
12818 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 12819 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
12820 (lookup_fundamental_type): Ditto.
12821 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
12822 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12823 (hpread_read_doc_function_type, hpread_read_struct_type)
12824 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 12825 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 12826 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
12827 (java_link_class_type): Ditto.
12828 * mdebugread.c (parse_type): Ditto.
12829 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12830 * solib-sunos.c (solib_add_common_symbols): Ditto.
12831 * stabsread.c (define_symbol, read_type, read_member_functions,
12832 read_cpp_abbrev, read_one_struct_field): Ditto.
12833 * symfile.c (reread_symbols): Ditto.
12834 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 12835
2a8854a7
AC
128362004-02-07 Andrew Cagney <cagney@redhat.com>
12837
12838 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12839 (tui_exec_info_content): Rename TuiExecInfoContent.
12840 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12841 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12842 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12843 (TuiList, TuiListPtr): Ditto.
12844 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12845 (TuiDataType, TuiDataTypePtr): Ditto.
12846 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12847 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12848 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12849 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12850 (TuiDataElement, TuiDataElementPtr): Ditto.
12851 (TuiWinElement, TuiWinElementPtr): Ditto.
12852 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12853 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12854 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12855 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12856 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12857 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12858 * tui/tui-command.c, tui/tui-data.c: Update references.
12859 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12860 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12861 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12862 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 12863
05cbe71a
MK
128642004-02-07 Mark Kettenis <kettenis@gnu.org>
12865
12866 * dwarf2-frame.h: Update copyright.
12867 (enum dwarf2_frame_reg_rule): New.
12868 (struct dwarf2_frame_state_reg): New.
12869 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12870 * dwarf2-frame.c: Update copyright.
12871 (enum dwarf2_reg_rule): Remove.
12872 (struct dwarf2_frame_state): Remove defenition of `struct
12873 dwarf2_frame_state_reg'.
12874 (read_reg): Call get_frame_arch to get the architecture instead of
12875 using CURRENT_GDBARCH.
12876 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12877 DWARF2_FRAME_.
12878 (dwarf2_frame_init_reg): New function.
12879 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12880 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12881 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12882 tags with DWARF2_FRAME_.
12883 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12884 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12885 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12886
ec7d9e56
AC
128872004-02-06 Andrew Cagney <cagney@redhat.com>
12888
dd1abb8c
AC
12889 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12890 (enum tui_data_type): Rename _TuiDataType.
12891 (struct tui_layout_def): Rename _TuiLayoutDef.
12892 (struct tui_source_element): Rename _TuiSourceElement.
12893 (struct tui_data_element): Rename _TuiDataElement.
12894 (struct tui_command_element): Rename _TuiCommandElement.
12895 (struct tui_locator_element): Rename _TuiLocatorElement.
12896 (union tui_which_element): Define.
12897 (struct tui_win_element): Rename _TuiWinElement.
12898 (struct tui_data_info): Rename _TuiDataInfo.
12899 (struct tui_source_info): Rename _TuiSourceInfo.
12900 (struct tui_command_info): Rename _TuiCommandInfo.
12901 (tui_initialize_static_data): Rename initializeStaticData.
12902 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12903 (tui_alloc_win_info): Rename allocWinInfo.
12904 (tui_init_generic_part): Rename initGenericPart.
12905 (tui_init_win_info): Rename initWinInfo.
12906 (tui_alloc_content): Rename allocContent.
12907 (tui_add_content_elements): Rename addContentElements.
12908 (tui_init_content_element): Rename initContentElement.
12909 (tui_free_window): Rename freeWindow.
12910 (tui_free_win_content): Rename freeWinContent.
12911 (tui_free_data_content): Rename freeDataContent.
12912 (tui_free_all_source_wins_content): Rename
12913 freeAllSourceWinsContent.
12914 (tui_del_window): Rename tuiDelWindow.
12915 (tui_del_data_windows): Rename tuiDelDataWindows.
12916 (tui_partial_win_by_name): Rename partialWinByName.
12917 (tui_win_name): Rename winName.
12918 (tui_current_layout): Rename currentLayout.
12919 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12920 (tui_term_height): Rename termHeight.
12921 (tui_set_term_height_to): Rename setTermHeightTo.
12922 (tui_term_width): Rename termWidth.
12923 (tui_set_term_width_to): Rename setTermWidthTo.
12924 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12925 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12926 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12927 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12928 (tui_source_windows): Rename sourceWindows.
12929 (tui_clear_source_windows): Rename clearSourceWindows.
12930 (tui_clear_source_windows_detail): Rename
12931 clearSourceWindowsDetail.
12932 (tui_clear_win_detail): Rename clearWinDetail.
12933 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12934 (tui_default_tab_len): Rename tuiDefaultTabLen.
12935 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12936 (tui_win_with_focus): Rename tuiWinWithFocus.
12937 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12938 (tui_layout_def): Rename tuiLayoutDef.
12939 (tui_win_resized): Rename tuiWinResized.
12940 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12941 (tui_next_win): Rename tuiNextWin.
12942 (tui_prev_win): Rename tuiPrevWin.
12943 (tui_add_to_source_windows): Rename addToSourceWindows.
12944 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12945 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12946 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12947 * tui/tui.c, tui/tui-data.c: Ditto.
12948 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12949 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12950
a358af15
AC
12951 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12952 (struct symtab): Declare.
12953 (tui_set_source_content): Rename tuiSetSourceContent.
12954 (tui_show_symtab_source): Rename tuiShowSource.
12955 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12956 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12957 * tui/tui-source.c: Update copyright. Update references.
12958 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12959 * tui/tui-stack.c: Update references.
12960
a21fcd8f
AC
12961 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12962 (struct tui_win_info): Declare.
12963 (tui_scroll_forward): Rename tuiScrollForward.
12964 (tui_scroll_backward): Rename tuiScrollBackward.
12965 (tui_scroll_left): Rename tuiScrollLeft.
12966 (tui_scroll_right): Rename tuiScrollRight.
12967 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12968 (tui_resize_all): Rename tuiResizeAll.
12969 (tui_refresh_all_win): Rename tuiRefreshAll.
12970 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12971 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12972 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12973 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12974
edae1ccf
AC
12975 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12976 (tui_erase_data_content): Rename tuiEraseDataContent.
12977 (tui_display_all_data): Rename tuiDisplayAllData.
12978 (tui_check_data_values): Rename tuiCheckDataValues.
12979 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12980 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12981 (tui_first_data_element_no_in_line): Rename
12982 tuiFirstDataElementNoInLine.
12983 (tui_delete_data_content_windows): Rename
12984 tuiDeleteDataContentWindows.
12985 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12986 (tui_display_data_from): Rename tuiDisplayDataFrom.
12987 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12988 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12989 * tui/tui-win.c, tui/tui-regs.c: Update references.
12990 * tui/tui-layout.c, tui/tui.c: Update references.
12991
ec7d9e56
AC
12992 * tui/tui-wingeneral.h: Update copyright.
12993 (m_allBeVisible): Delete macro.
8a1dac83 12994 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
12995 (struct tui_gen_win_info): Declare.
12996 (struct tui_win_info): Declare.
12997 (tui_unhighlight_win): Rename unhighlightWin.
12998 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12999 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
13000 (tui_make_window): Rename makeWindow.
13001 (tui_copy_win): Rename copyWin.
13002 (tui_box_win): Rename boxWin.
13003 (tui_highlight_win): Rename highlightWin.
13004 (tui_check_and_display_highlight_if_needed): Rename
13005 checkAndDisplayHighlightIfNeeded.
13006 (tui_refresh_all): Rename refreshAll.
13007 (tui_delete_win): Rename tuiDelwin.
13008 (tui_refresh_win): Rename tuiRefreshWin.
13009 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
13010 (tui_make_visible, tui_make_invisible): New functions.
13011 (tui_make_all_visible, tui_make_all_invisible): New functions.
13012 (make_all_visible): Rename makeAllVisible.
13013 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
13014 * tui/tui-data.c, tui/tui-winsource.c: Update references.
13015 * tui/tui-windata.c, tui/tui-win.c: Update references.
13016 * tui/tui-regs.c, tui/tui-layout.c: Update references.
13017 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
13018
1e52e2eb
MK
130192004-02-06 Mark Kettenis <kettenis@gnu.org>
13020
13021 * proc-api.c (write_with_trace): Initialize local variable to
13022 silence compiler warning.
13023
f80bda8e
AC
130242004-02-06 Andrew Cagney <cagney@redhat.com>
13025
13026 * tui/tui-source.h: Do not include "defs.h".
13027 (struct tui_win_info): Declare.
13028 (tui_set_source_content_nil): Declare.
13029 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
13030 (union tui_line_or_address): Rename _TuiLineOrAddress.
13031 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
13032 (tui_update_source_window): Rename tuiUpdateSourceWindow.
13033 (tui_update_source_window_as_is): Rename
13034 tuiUpdateSourceWindowAsIs.
13035 (tui_update_source_windows_with_addr): Rename
13036 tuiUpdateSourceWindowsWithAddr.
13037 (tui_update_source_windows_with_line): Rename
13038 tuiUpdateSourceWindowsWithLine.
13039 (tui_clear_source_content): Rename tuiClearSourceContent.
13040 (tui_erase_source_content): Rename tuiEraseSourceContent.
13041 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13042 (tui_show_source_content): Rename tuiShowSourceContent.
13043 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13044 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13045 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13046 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13047 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13048 (tui_update_exec_info): Rename tuiUpdateExecInfo.
13049 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13050 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13051 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13052 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13053 (struct tui_win_info): Declare.
13054 * tui/tui-stack.c: Update references.
13055 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13056 * tui/tui-win.c, tui/tui-source.c: Ditto.
13057 * tui/tui.c, tui/tui-disasm.c: Ditto.
13058
9fbfb822
MK
130592004-02-06 Mark Kettenis <kettenis@gnu.org>
13060
13061 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13062 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
13063
03cebad2
MK
130642004-02-05 Mark Kettenis <kettenis@gnu.org>
13065
13066 * infrun.c (handle_inferior_event): Allow for breakpoint
13067 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13068 and SIGEMT. Update comments.
13069 * NEWS (Revised SPARC target): Mention support for non-executable
13070 stack.
13071
290281b1
MK
130722004-02-04 Mark Kettenis <kettenis@gnu.org>
13073
13074 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13075 * inftarg.c: Update copyright year.
13076 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13077 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13078 (sparc_xfer_wcookie): New function.
13079 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13080 * Makefile.in (sparc-nat.o): Update dependencies.
13081 * config/sparc/nm-nbsd.h: Include "target.h".
13082 (NATIVE_XFER_WCOOKIE): New define.
13083 (sparc_xfer_wcookie): New prototype.
13084
212161df
AC
130852004-02-04 Andrew Cagney <cagney@redhat.com>
13086
13087 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13088 SYSCALL_TRAP function.
13089 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13090
6e4c6c91
DJ
130912004-02-04 Andrew Cagney <cagney@redhat.com>
13092 Daniel Jacobowitz <drow@mvista.com>
13093
13094 * objfiles.h: Delete comments refering to inside_entry_func and
13095 DEPRECATED_FRAME_CHAIN_VALID.
13096 * defs.h (inside_entry_func): Update prototype..
13097 * blockframe.c (inside_entry_func): Rename to
13098 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
13099 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13100
cae688ec
JJ
131012004-02-03 Jeff Johnston <jjohnstn@redhat.com>
13102
13103 * breakpoint.c (struct captured_parse_breakpoint_args): Move
13104 outside of #ifdef SOLIB_ADD region.
13105 (do_restore_lang_radix_cleanup): Ditto.
13106 (resolve_pending_breakpoint): Ditto.
13107
19217676
AC
131082004-02-03 Andrew Cagney <cagney@redhat.com>
13109
13110 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13111 (process_note_abi_tag_sections): Delete unused function.
13112 (ia64_read_fp): Delete unused function.
13113 (gdbarch_extract_struct_value_address): Delete declaration.
13114
876753be
AC
131152004-02-02 Andrew Cagney <cagney@redhat.com>
13116
13117 * vax-tdep.c (vax_frame_chain): Delete call to
13118 deprecated_inside_entry_file.
13119 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13120
d4f10bf2
MK
131212004-02-02 Mark Kettenis <kettenis@gnu.org>
13122
13123 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13124 column that's "empty" or "same value" when eliminating REG_RA
13125 rules.
13126
cae688ec
JJ
131272004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13128
13129 * NEWS: Add information about new pending breakpoint support.
13130
0101ce28
JJ
131312004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13132
13133 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13134 and pending fields for pending breakpoint support.
13135 * breakpoint.c (breakpoint_enabled): Add check for not pending.
13136 (condition_command): Only parse condition if not a pending
13137 breakpoint.
13138 (print_one_breakpoint): Add support for pending breakpoints.
13139 (describe_other_breakpoints): Add checks to verify we are not
13140 dealing with pending breakpoints.
13141 (check_duplicates): Don't check pending breakpoints.
13142 (set_raw_breakpoint): Initialize pending flag.
13143 (do_restore_lang_radix_cleanup): New cleanup routine.
13144 (resolve_pending_breakpoint): New function.
13145 (re_enable_breakpoints_in_shlibs): Try and resolve any
13146 pending breakpoints via resolve_pending_breakpoint.
13147 (mention): Add pending breakpoint support.
13148 (parse_breakpoint_sals): Add new parameter to pass to
13149 decode_line_1 to indicate silent errors when files or functions
13150 are not found. Change all callers.
13151 (do_captured_parse_breakpoint): New function.
13152 (break_command_1): Change prototype to return an rc value and to
13153 take an optional pending breakpoint pointer. Support creating
13154 a pending breakpoint if a "not found" form of error occurs when
13155 parsing the breakpoint. Also support resolving an existing pending
13156 breakpoint and be silent if the resolution fails.
13157 (create_breakpoints): Change prototype to take pending breakpoint
13158 pointer. When resolving a pending breakpoint, use the new pointer
13159 to provide a conditional or commands added by the end-user.
13160 (delete_breakpoint): Add appropriate check for pending.
13161 (breakpoint_re_set_one): Ditto.
13162 (do_enable_breakpoint): Ditto.
13163
8d577d32
DC
131642004-02-02 David Carlton <carlton@kealia.com>
13165
13166 * valops.c (enum oload_classification): New.
13167 (find_overload_match): Break implementation into separate
13168 functions; delete #if 0'd code; look for symbols within
13169 namespaces.
13170 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13171 (find_oload_champ,oload_method_static,classify_oload_match): New.
13172 * cp-support.h: Add declaration for cp_func_name; update
13173 declaration for make_symbol_overload_list.
13174 * cp-support.c (cp_func_name): New.
13175 (overload_list_add_symbol): Fix comment, use
13176 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13177 (make_symbol_overload_list): Take a function name and a namespace
13178 instead of a symbol; change implementation.
13179 (make_symbol_overload_list_using): New.
13180 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13181
22e8e3c7
FF
131822004-02-02 Fred Fish <fnf@redhat.com>
13183
13184 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 13185 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
13186 * remote-sim.c (gdb_os_write_stderr): Write output to
13187 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13188 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 13189 gdb_stderr stream and update copyright years.
22e8e3c7 13190
6b753f60
DJ
131912004-02-01 Daniel Jacobowitz <drow@mvista.com>
13192
13193 * Makefile.in (mips-linux-nat.o): Update dependencies.
13194 * mips-linux-nat.c: Include mips-tdep.h.
13195
131962004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
13197
13198 * sol-thread.c (sol_thread_xfer_partial): New function.
13199 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13200 (init_sol_core_ops): Likewise.
13201
13202 * procfs.c (procfs_xfer_partial): New function.
13203 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13204 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13205
13206 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13207 procfs_xfer_auxv function.
13208
13209 * procfs.c (procfs_make_note_section): If we can read
13210 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13211 * linux-proc.c (linux_make_note_section): Likewise.
13212
13213 * auxv.h: New file.
13214 * auxv.c: New file.
13215 * Makefile.in (auxv_h): New variable.
13216 (COMMON_OBS): Add auxv.o here.
13217 (auxv.o): New target.
13218
13219 * corelow.c (core_xfer_partial): New function.
13220 (init_core_ops): Use it for core_ops.to_xfer_partial.
13221
13222 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13223 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13224 macro if that is defined.
13225
fa5281d0
DJ
132262004-02-01 Daniel Jacobowitz <drow@mvista.com>
13227
13228 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13229 and check the specified thread for each breakpoint.
13230 * breakpoint.h (bpstat_stop_status): Update prototype.
13231 * infrun.c (handle_inferior_event): Update calls to
13232 bpstat_stop_status.
13233
26ee262d
DJ
132342004-02-01 Daniel Jacobowitz <drow@mvista.com>
13235
13236 * Makefile.in (cli-cmds.o): Add $(readline_h).
13237
d9b52655
DJ
132382004-02-01 Daniel Jacobowitz <drow@mvista.com>
13239
13240 * cli/cli-cmds.c: Include readline.h.
13241 (complete_command): Pass the start of the last word to
13242 complete_line.
13243
9709f61c
DJ
132442004-01-31 Daniel Jacobowitz <drow@mvista.com>
13245
13246 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13247 argument, and change first argument to a CORE_ADDR.
13248 * breakpoint.h (bpstat_stop_status): Update prototype.
13249 * infrun.c (adjust_pc_after_break): Add a new comment.
13250 (handle_inferior_event): Update calls to bpstat_stop_status.
13251
4f1280bb
DJ
132522004-01-31 Daniel Jacobowitz <drow@mvista.com>
13253
13254 * breakpoint.h: Update copyright years.
13255
4fa8626c
DJ
132562004-01-31 Daniel Jacobowitz <drow@mvista.com>
13257
13258 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13259 (bpstat_stop_status): Don't decrement PC.
13260 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13261 prototype.
13262 * infrun.c (adjust_pc_after_break): New function.
13263 (handle_inferior_event): Call it, early. Remove later references
13264 to DECR_PC_AFTER_BREAK.
13265 (normal_stop): Add commentary.
13266
fad0733a
DJ
132672004-01-31 Daniel Jacobowitz <drow@mvista.com>
13268
13269 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13270 2004-01-27 double-free fix.
13271
42cdca6c
MK
132722004-01-31 Mark Kettenis <kettenis@gnu.org>
13273
13274 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13275 (sparc32_frame_prev_register): Handle StackGhost.
13276 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13277
932d5416
RM
132782004-01-29 Roland McGrath <roland@redhat.com>
13279
13280 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13281 * configure: Regenerated.
13282
13283 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13284 * Makefile.in (procfs.o): Add dep.
13285
47d3492a
AC
132862004-01-28 Andrew Cagney <cagney@redhat.com>
13287
13288 * tui/tui-stack.h: Update copyright.
13289 (struct frame_info): Add opaque declaration.
13290 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13291 (tui_show_locator_content): Rename tuiShowLocatorContent.
13292 (tui_show_frame_info): Rename tuiShowFrameInfo.
13293 * tui/tui-stack.c: Update copyright. Update references.
13294 * tui/tui-winsource.c: Update references.
13295 * tui/tui-win.c: Update references.
13296 * tui/tui-layout.c: Update references.
13297 * tui/tui-hooks.c: Update copyright, update references.
13298 * tui/tui.c: Update copyright, update references.
13299 * tui/tui-disasm.c: Update references.
13300
5d51ca54
DC
133012004-01-28 David Carlton <carlton@kealia.com>
13302
13303 * dwarf2read.c (add_partial_structure): Use demangled name if
13304 namespace equals "".
13305
086ed43d
JB
133062004-01-27 Jim Blandy <jimb@redhat.com>
13307
13308 Clean up misapplied patch:
13309 * dwarf2read.c (determine_prefix): Change one of the two forward
13310 declarations for 'determine_prefix_aux' to a declaration for this.
13311 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13312 argument to 'die_specification'.
13313
2a35147e
JB
13314 * dwarf2read.c (read_func_scope): Re-indent comment.
13315
a355c7de 133162004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 13317
a355c7de
AC
13318 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13319 b->exp to NULL after freeing so that error during re-parsing or
13320 evaluation of expressions associated with breakpoint don't
13321 eventually lead to re-freeing of storage.
13322 Committed by Andrew Cagney.
13323
63ff5125
AC
133242004-01-27 Andrew Cagney <cagney@redhat.com>
13325
13326 * source.c (ambiguous_line_spec): Delete undefined declaration.
13327 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13328 (m32r_set_server_address, m32r_set_download_path): Ditto.
13329 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13330
e142c38c
DJ
133312004-01-27 Daniel Jacobowitz <drow@mvista.com>
13332
13333 * dwarf2read.c: Update calls to changed and renamed functions, and
13334 references to moved variables.
13335
13336 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13337 language, language_defn, list_in_scope, and ftypes members.
13338 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13339 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13340 (baseaddr): Remove globals.
13341
13342 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13343 (set_cu_language, die_is_declaration, die_specification)
13344 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13345 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13346 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13347 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13348
13349 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13350 cu.list_in_scope. Don't initialize cu_header_offset.
13351 (add_partial_symbol): Add local baseaddr.
13352 (psymtab_to_symtab_1): Add local baseaddr. Use
13353 objfile->section_offsets for consistency. Don't initialize
13354 cu_header_offset; do initialize cu.header.offset and
13355 cu.list_in_scope.
13356 (read_file_scope, read_func_scope, read_lexical_block_scope)
13357 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13358
c6e06ede
MC
133592004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13360
fb328ecc 13361 * PROBLEMS: Add gdb/1516.
c6e06ede 13362
48184fd4
AC
133632003-12-29 Robert Millan <robertmh@gnu.org>
13364
13365 Patch committed by Andrw Cagney.
13366 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13367 * configure.tgt: Match knetbsd*-gnu.
13368
c1321b30
AC
133692004-01-26 Andrew Cagney <cagney@redhat.com>
13370
f3699be3
AC
13371 * breakpoint.c (catch_command_1): Delete #ifdef code.
13372 (catch_fork_command_1): Delete #ifdef wrapper.
13373 (catch_exec_command_1): Ditto.
13374 (catch_load_command_1): Ditto.
13375 (catch_unload_command_1): Ditto.
13376
c1321b30
AC
13377 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13378 (catch_breakpoint): Delete #if0ed function.
13379 (disable_catch_breakpoint): Ditto.
13380 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13381 (disable_catch, enable_catch, delete_catch): Ditto.
13382
b4501125
AC
133832004-01-26 Andrew Cagney <cagney@redhat.com>
13384
13385 * remote.c (echo_check, quit_flag): Delete variables.
13386 (cisco_kernel_mode): Delete variable.
13387 (minitelnet_return, tty_input, escape_count): Delete variables.
13388 (remote_cisco_mode): Delete variable.
13389 (remote_cisco_open, remote_cisco_close): Delete function.
13390 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13391 (init_remote_cisco_ops): Delete function.
13392 (_initialize_remote): Do not install "remote cisco" code.
13393 (read_frame): Delete cisco specific code.
13394 (remote_info_process): Delete function.
13395 (remote_wait): Delete cisco specific code.
13396 (remote_cisco_section_offsets): Delete function.
13397 (remote_cisco_objfile_relocate): Delete function.
13398 (remote_async_wait): Delete cisco specific code.
13399 (minitelnet, readtty, readsocket): Delete function.
13400
74055713
AC
134012004-01-26 Andrew Cagney <cagney@redhat.com>
13402
13403 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13404 comments mentioning extract_returned_value_address.
13405 * infcmd.c (print_return_value): Update. Add comments on
13406 extract_returned_value_address.
13407 * stack.c (return_command): Add comments on
13408 extract_returned_value_address.
13409 * values.c: Update comment.
13410 * m32r-tdep.c: Update comment.
13411 * sparc-tdep.c: Update comment.
13412 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13413 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13414 * sh64-tdep.c (sh64_gdbarch_init): Update.
13415 * sh-tdep.c (sh_gdbarch_init): Update.
13416 * s390-tdep.c (s390_gdbarch_init): Update.
13417 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13418 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13419 * m68k-tdep.c (m68k_gdbarch_init): Update.
13420 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13421 * m32r-tdep.c (m32r_gdbarch_init): Update.
13422 * ia64-tdep.c (ia64_gdbarch_init): Update.
13423 * h8300-tdep.c (h8300_gdbarch_init): Update.
13424 * frv-tdep.c (frv_gdbarch_init): Update.
13425 * arm-tdep.c (arm_gdbarch_init): Update.
13426 * alpha-tdep.c (alpha_gdbarch_init): Update.
13427
a67af2b9
AC
134282004-01-26 Andrew Cagney <cagney@redhat.com>
13429
13430 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13431 SYMBOL_LOCATION_FUNCS
13432 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13433 "struct symbol_ops".
13434 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13435 type to "struct symbol_ops".
13436 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13437 (struct symbol): Replace ".aux_value.loc.funcs" and
13438 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13439 (SYMBOL_OBJFILE): Delete macro.
13440 (SYMBOL_LOCATION_FUNCS): Delete macro.
13441 (SYMBOL_LOCATION_BATON): Update.
13442 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13443 intead of SYMBOL_LOCATION_FUNCS.
13444 * ax-gdb.c (gen_var_ref): Ditto.
13445 * printcmd.c (address_info): Ditto.
13446 * findvar.c (read_var_value): Ditto.
13447 (symbol_read_needs_frame): Ditto.
13448
c034e007
AC
134492004-01-26 Andrew Cagney <cagney@redhat.com>
13450
13451 * dwarf2read.c (read_func_scope): Document frame-base hack.
13452
bb472c1e
MK
134532004-01-25 Mark Kettenis <kettenis@gnu.org>
13454
13455 * infcmd.c (print_return_value): Plug memory leak; delete
13456 ui_stream object. Rename argument `structure_return' to
13457 `struct_return'.
13458
c8e737d5
MK
134592004-01-25 Mark Kettenis <kettenis@gnu.org>
13460
f941662f
MK
13461 * infcmd.c (print_return_value): Wrap long lines.
13462 (finish_command_continuation, finish_command): Remove unused
13463 variable `funcaddr'. Fix some coding-standards problems.
13464
c558d81a 13465 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 13466 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
13467 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13468 TDEP->fpregset to zero.
13469
bf1e5861 13470 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
13471 floating-point registers for traditional NetBSD core files.
13472 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13473 TDEP->sizeof_fpregset here.
13474
4c72d57a
MK
134752004-01-25 Mark Kettenis <kettenis@gnu.org>
13476
566626fa
MK
13477 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13478 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13479 function with code split out from
13480 sparc32nbsd_sigcontext_frame_cache.
13481 (sparc32nbsd_sigcontext_frame_cache): Use
13482 sparc32nbsd_sigcontext_saved_regs.
13483 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13484 OpenBSD.
13485 * sparcobsd-tdep.c: New file.
13486 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13487 (sparcobsd-tdep.o): New dependency.
13488 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13489 * config/sparc/obsd.mt: New file.
13490
4c72d57a
MK
13491 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13492 TDEP->fpregset to be initialized to enable core file register
13493 sets.
13494
7e5e9f88
MK
134952004-01-24 Mark Kettenis <kettenis@gnu.org>
13496
f0f207fd 13497 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
13498 Add opaque declarations.
13499 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13500 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13501 function with code split out from
13502 sparc64nbsd_sigcontext_frame_cache.
13503 (sparc64nbsd_sigcontext_frame_cache): Use
13504 sparc64nbsd_sigcontext_saved_regs.
13505 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13506 OpenBSD.
13507 * sparc64obsd-tdep.c: New file.
13508 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13509 (sparc64obsd-tdep.o): New dependency.
13510 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13511 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13512 * config/sparc/obsd64.mt: New file.
13513
690668cc
MK
13514 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13515 read the instruction at PC.
13516
7e5e9f88
MK
13517 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13518 value of GDB_OSABI_DEFAULT.
13519 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13520 instead of GDB_OSABI_NETBSD_AOUT.
13521
68b6dce9
NR
135222004-01-24 Nick Roberts <nick@nick.uklinux.net>
13523
13524 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13525 copyright.
13526
080ce8c0
AC
135272004-01-23 Andrew Cagney <cagney@redhat.com>
13528
13529 * printcmd.c (display_command): Replace tui_set_display call with
13530 tui_set_layout_for_display_command.
13531 * tui/tui.h (enum tui_win_type): Define.
13532 (tui_set_layout): Delete declaration.
13533 (tui_set_layout_for_display_command): Rename set_tui_layout.
13534 * tui/tui-data.h (enum tui_layout_type): Define.
13535 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13536 "tui.h".
13537 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13538 (tui_default_win_height): Rename tuiDefaultWinHeight.
13539 (tui_default_win_viewport_height): Rename
13540 tuiDefaultWinViewportHeight.
13541 (tui_set_layout): RenametuiSetLayout.
13542 * tui/tui-layout.c: Update references.
13543 * tui/tui.c: Update references.
13544 * tui/tui-disasm.c: Update references.
13545
b368761e
DC
135462004-01-23 David Carlton <carlton@kealia.com>
13547
13548 Partial workaround for PR c++/1511:
13549 * cp-namespace.c: Include frame.h.
13550 (cp_lookup_transparent_type): New
13551 (cp_lookup_transparent_type_loop): New.
13552 * cp-support.h: Declare cp_lookup_transparent_type.
13553 * symtab.c (basic_lookup_transparent_type): Renamed from
13554 lookup_transparent_type.
13555 (lookup_transparent_type): Replace old body by a call to
13556 current_language->la_lookup_transparent_type.
13557 * symtab.h: Update copyright. Declare
13558 basic_lookup_transparent_type.
13559 * language.h: Update copyright.
13560 (struct language_defn): Add la_lookup_transparent_type.
13561 * language.c: Update copyright.
13562 (unknown_language_defn): Add basic_lookup_transparent_type.
13563 (auto_language_defn): Add basic_lookup_transparent_type.
13564 (local_language_defn): Add basic_lookup_transparent_type.
13565 * ada-lang.c: Update copyright.
13566 (ada_language_defn): Add basic_lookup_transparent_type.
13567 * c-lang.c: Update copyright.
13568 (c_language_defn): Add basic_lookup_transparent_type.
13569 (cplus_language_defn): Add basic_lookup_transparent_type.
13570 (asm_language_defn): Add basic_lookup_transparent_type.
13571 (minimal_language_defn): Add basic_lookup_transparent_type.
13572 * f-lang.c: Update copyright.
13573 (f_language_defn): Add basic_lookup_transparent_type.
13574 * jv-lang.c: Update copyright.
13575 (java_language_defn): Add basic_lookup_transparent_type.
13576 * m2-lang.c: Update copyright.
13577 (m2_language_defn): Add basic_lookup_transparent_type.
13578 * objc-lang.c: Update copyright.
13579 (objc_language_defn): Add basic_lookup_transparent_type.
13580 * p-lang.c: Update copyright.
13581 (p_language_defn): Add basic_lookup_transparent_type.
13582 * scm-lang.c: Update copyright.
13583 (scm_language_defn): Add basic_lookup_transparent_type.
13584 * Makefile.in (cp-namespace.o): Depend on frame.h.
13585
fdde2d81
DC
135862004-01-23 David Carlton <carlton@kealia.com>
13587
13588 Patch for PR c++/1520:
13589 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13590 properly if we have a specification die.
13591 (determine_prefix_aux): Rename from determine_prefix.
13592 (determine_prefix): Like the old determine_prefix, but never
13593 returns NULL.
13594
5b828b6b
TR
135952004-01-23 Theodore A. Roth <troth@openavr.org>
13596
13597 * avr-tdep.c: Update copyright.
13598 (avr_iaddr_p): Delete unused function.
13599 (avr_saddr_p): Delete unused function.
13600
a1b8c067
DC
136012004-01-23 David Carlton <carlton@kealia.com>
13602
13603 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13604 Fix for PR symtab/1534.
13605
f2cab569
MK
136062004-01-23 Mark Kettenis <kettenis@gnu.org>
13607
13608 * NEWS (New native configurations): Mention OpenBSD/sparc and
13609 OpenBSD/sparc64.
13610 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13611 * configure.host: Likewise.
13612 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13613 handler for OpenBSD.
13614 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13615
642d8300
MK
136162004-01-22 Mark Kettenis <kettenis@gnu.org>
13617
89aac506
MK
13618 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13619 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13620
36662fde
MK
13621 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13622 * cli/cli-cmds.c (shell_escape): Likewise.
13623
642d8300
MK
13624 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13625 OpenBSD .note.openbsd.ident sections.
13626
fae299cd
DC
136272004-01-22 David Carlton <carlton@kealia.com>
13628
13629 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13630 get_scope_pc_bounds.
13631 (read_file_scope): Ditto.
13632 (get_scope_pc_bounds): New function, produced by extracting code
13633 from the above two functions, consolidating it, and adding support
13634 for DW_TAG_namespace.
13635
a49d618c
MK
136362004-01-22 Mark Kettenis <kettenis@gnu.org>
13637
13638 * osabi.c (MAX_NOTESZ): New define.
13639 (check_note): New function.
13640 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13641 check_note.
13642
fe61caab
RM
136432004-01-21 Roland McGrath <roland@redhat.com>
13644
13645 * MAINTAINERS (write after approval): Add myself.
13646
ec145965
EZ
136472004-01-21 Eli Zaretskii <eliz@gnu.org>
13648
13649 * utils.c (init_page_info): Move declarations of `rows' and
13650 `cols' before the __GO32__-specific code. Move the closing brace
13651 outside the #ifdef __GO32__..#endif block.
13652 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13653
877522db
PB
136542004-01-21 Paul Brook <paul@codesourcery.com>
13655
13656 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13657 BPSTAT_WHAT_CHECK_SHLIBS.
13658
dbf5be1c
PB
136592004-01-21 Paul Brook <paul@codesourcery.com>
13660
13661 * MAINTAINERS: Add myself to write-after-approval.
13662
81f08b92
AC
136632004-01-20 Andrew Cagney <cagney@redhat.com>
13664
5a1efed7
AC
13665 * ax-gdb.c (print_axs_value): Delete unused function.
13666 * jv-lang.c (java_lookup_type): Delete unused function.
13667 * cli/cli-dump.c (dump_filetype): Delete unused function.
13668 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13669 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13670 (mips_getstring): Delete unused function.
13671 (pmon_insert_breakpoint): Delete #if0ed function.
13672 (PMON_MAX_BP): Delete #if0ed MACRO.
13673 (mips_pmon_bp_info): Delete #if0ed variable.
13674 (pmon_remove_breakpoint): Delete #if0ed function.
13675 * monitor.c (monitor_write_even_block): Delete unused function.
13676 (monitor_write_memory_block): Delete #if0ed code.
13677 * dink32-rom.c (dink32_load): Delete unused function.
13678 (_initialize_dink32_rom): Delete #if0ed code.
13679 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13680
b0a30fce
AC
13681 * tui/tui-command.c: Update references.
13682 * tui/tui-io.c: Update references.
13683 * tui/tui-command.h: Update copyright.
13684 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13685
81f08b92
AC
13686 * source.c (ambiguous_line_spec): Delete never-defined function.
13687 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13688 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13689 * cli/cli-cmds.c (validate_comname): Ditto.
13690
65f05602
AC
13691 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13692 "tui-data.h".
13693 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13694 (tui_show_disassem): Rename tuiShowDisassem.
13695 (tui_show_disassem_and_update_source): Rename
13696 tuiVerticalDisassemScroll.
13697 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13698 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13699 * tui/tui.h: Update copyright.
13700 (enum tui_status): Define.
13701 * tui/tui-data.h (enum tui_scroll_direction): Define.
13702 * tui/tui-disasm.c: Update copyright. Update references.
13703 * tui/tui-winsource.c: Update copyright. Update references.
13704 * tui/tui-win.c: Update references.
13705 * tui/tui-layout.c: Update references.
13706
6bb0384f
AC
137072004-01-20 Andrew Cagney <cagney@redhat.com>
13708
13709 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13710 sym2 to start of block.
13711
9175c9a3
MC
137122004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13713
13714 * MAINTAINERS: Delete mmalloc.
13715 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13716 * NEWS: Mention removal of --with-malloc.
13717 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13718 * config.in: Regenerate.
13719 * configure: Regenerate.
6bb0384f
AC
13720 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13721 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
13722 * gdbinit.in: Remove mmalloc.
13723 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13724 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13725 * config/i386/go32.mh: Likewise.
13726 * config/i386/interix.mh: Likewise.
13727 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13728
4fcef00a
JJ
137292004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13730
13731 * linespec.c (decode_variable, symtab_from_filename): Call
13732 error_silent with error message instead of throwing an exception
13733 directly.
13734 * defs.h (error_silent, error_output_message): Add prototypes.
13735 (catch_exceptions_with_msg): Ditto.
13736 * utils.c (error_silent, error_output_message): New functions.
13737 * top.c (catch_exceptions_with_msg): New function.
13738
8e94b928
NR
137392004-01-20 Nick Roberts <nick@nick.uklinux.net>
13740
13741 * mi/mi-cmds.h (enum print_values): Add definition.
13742
13743 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13744 type and value for simple data types and just the name and type
13745 for complex ones, if required.
13746
13747 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13748 children, if required.
13749
a02d6af8
KB
137502004-01-19 Kevin Buettner <kevinb@redhat.com>
13751
13752 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13753 unused declarations.
13754
78a4a9b9
AC
137552004-01-19 Andrew Cagney <cagney@redhat.com>
13756
13757 * top.h (mapped_symbol_files): Delete declaration.
13758 * main.c (captured_main): Delete option "m" and "mapped".
13759 * objfiles.c (mapped_symbol_files): Delete variable.
13760 * symfile.c (symbol_file_command): Delete mmap code.
13761 (symbol_file_add_with_addrs_or_offsets): Ditto.
13762 (add_symbol_file_command, reread_separate_symbols): Ditto.
13763 * objfiles.h (OBJF_MAPPED): Delete.
13764 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13765 (free_objfile) [USE_MMALLOC]: Ditto.
13766 (open_existing_mapped_file): Delete function.
13767 (open_mapped_file): Delete function.
13768 (map_to_file): Delete function.
13769
2dbd5e30
KB
137702004-01-19 Kevin Buettner <kevinb@redhat.com>
13771
13772 * infrun.c (step_into_function): Account for possible breakpoint
13773 adjustment when computing ``stop_func_start''.
13774
437b434f
KB
137752004-01-19 Kevin Buettner <kevinb@redhat.com>
13776
13777 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13778 the region size against the size of a pointer, not the size of
13779 a register as given by DEPRECATED_REGISTER_SIZE.
13780
55fb0713
AC
137812004-01-19 Andrew Cagney <cagney@redhat.com>
13782
13783 * tui/tui-regs.h: Include "tui-data.h".
13784 (tuiFirstRegElementNoInLine): Delete declaration.
13785 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13786 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13787 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13788 (tui_calculate_regs_column_count): Rename
13789 tuiCalculateRegsColumnCount.
13790 (tui_check_register_values): Rename tuiCheckRegisterValues.
13791 (tui_show_registers): Rename tuiShowRegisters.
13792 (tui_display_registers_from_line): Rename
13793 tuiDisplayRegistersFromLine.
13794 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13795 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13796 (tui_first_reg_element_no_inline): Rename
13797 tuiFirstRegElementNoInLine.
13798 * tui/tui-data.h: Update copyright.
13799 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13800 * tui/tui-windata.c: Update copyright, update references.
13801 * tui/tui-regs.c: Update copyright, update references.
13802 * tui/tui-win.c: Update copyright, update references.
13803 * tui/tui-layout.c: Update copyright, update references.
fe61caab 13804
cebe9500
AC
138052004-01-18 Andrew Cagney <cagney@redhat.com>
13806
bcdf1568
AC
13807 * tui/tui-io.c: Update copyright.
13808 (key_is_end_sequence, key_is_backspace): New functions.
13809 (key_is_command_char, key_is_start_sequence): New function.
13810 (tui_getc): Update references.
13811 * tui/tui-io.h: Update copyright.
13812 (m_tuiStartNewLine): Delete macro.
13813 (m_isBackspace, m_isDeleteChar): Delete macros.
13814 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13815 (m_isNextPage, m_isPrevPage): Delete macros.
13816 (m_isLeftArrow, m_isRightArrow): Delete macros.
13817 (m_isXdbStyleCommandChar): Delete macro.
13818 (key_is_start_sequence): Declare, replace m_isStartSequence.
13819 (key_is_end_sequence): Declare, replace m_isEndSequence.
13820 (key_is_backspace): Declare ,replace m_isBackspace.
13821 (key_is_command_char): Declare, replace m_isCommandChar.
13822 * tui/tui-command.c: Update copyright.
13823 (tuiDispatchCtrlChar): Update references.
13824
130d87e6
AC
13825 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13826 tuiSourceWin.h.
13827
d7b2e967
AC
13828 * tui/tui-command.c: Rename tui/tuiCommand.c.
13829 * tui/tui-command.h: Rename tui/tuiCommand.h.
13830 * tui/tui-data.c: Rename tui/tuiData.c.
13831 * tui/tui-data.h: Rename tui/tuiData.h.
13832 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13833 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13834 * tui/tui-io.c: Rename tui/tuiIO.c.
13835 * tui/tui-io.h: Rename tui/tuiIO.h.
13836 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13837 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13838 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13839 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13840 * tui/tui-source.c: Rename tui/tuiSource.c.
13841 * tui/tui-source.h: Rename tui/tuiSource.h.
13842 * tui/tui-stack.c: Rename tui/tuiStack.c.
13843 * tui/tui-stack.h: Rename tui/tuiStack.h.
13844 * tui/tui-win.c: Rename tui/tuiWin.c.
13845 * tui/tui-win.h: Rename tui/tuiWin.h.
13846 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13847 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13848 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13849 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13850 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13851 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13852 * tui/tui-file.c: Update includes.
13853 * tui/tui-hooks.c: Update includes.
13854 * tui/tui-interp.c: Update includes.
13855 * tui/tui.c: Update includes.
13856 * Makefile.in: Update all tui/ dependencies.
13857 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13858
b2100910
AC
13859 * Makefile.in: Update copyright. Update dependencies.
13860
cebe9500
AC
13861 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13862 problem.
13863
c6f0559b
AC
138642004-01-18 Andrew Cagney <cagney@redhat.com>
13865
43e9390b
AC
13866 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13867 instead of register_gdbarch_init.
13868
c6f0559b
AC
13869 * remote-sds.c (tohex): Delete unused function. Update copyright.
13870 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13871 * v850-tdep.c (v850_register_virtual_size): Ditto.
13872 * target.c (normal_target_post_startup_inferior): Ditto.
13873 * source.c (ambiguous_line_spec): Ditto.
13874 * remote.c (adapt_remote_get_threadinfo): Ditto.
13875 * mi/mi-out.c (out_field_fmt): Ditto.
13876 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13877 (output_control_change_notification): Ditto.
13878 * m68k-tdep.c (m68k_register_byte): Ditto.
13879 (m68k_remote_breakpoint_from_pc): Ditto.
13880 * ui-out.c (init_ui_out_state): Delete unused declaration.
13881 * stabsread.c (search_value): Ditto.
13882 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13883 * maint.c (print_section_table): Ditto.
13884 * infrun.c (set_follow_fork_mode_command): Ditto.
13885
a8504492
MK
138862004-01-18 Mark Kettenis <kettenis@gnu.org>
13887
13888 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13889 DW_CFA_def_cfa_exporession. Add support for
13890 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13891 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13892
0bd8997e
AC
138932004-01-18 Andrew Cagney <cagney@redhat.com>
13894
13895 * ocd.c: Update copyright.
13896 (bdm_read_register_command): Delete unused function.
13897 (_initialize_remote_ocd): Delete commented out reference.
13898 (get_quoted_char, reset_packet): Delete #if0ed function.
13899 (output_packet, put_quoted_char): Delete #if0ed function.
13900 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13901 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13902 (BDM_BREAKPOINT): Delete #if0ed macro.
13903 (remote_timeout): Delete #if0ed variable.
13904
31bb40e4
MK
139052004-01-18 Mark Kettenis <kettenis@gnu.org>
13906
13907 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13908 (core-sol2.o): Remove dependency.
13909 * core-sol2.c: Remove file.
13910
887432a5
AC
139112004-01-17 Andrew Cagney <cagney@redhat.com>
13912
13913 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13914 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13915 enums.
13916
29182b13
DJ
139172004-01-17 Daniel Jacobowitz <drow@mvista.com>
13918
13919 * remote.c: Update copyright years.
13920
2963ee1d
DJ
139212004-01-17 Daniel Jacobowitz <drow@mvista.com>
13922
13923 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13924
79d45cd4
AC
139252004-01-17 Andrew Cagney <cagney@redhat.com>
13926
ee300cd4
AC
13927 * mdebugread.c: Update copyright.
13928 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13929 (parse_type, parse_procedure): Ditto.
13930 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13931
fcacc9c2
AC
13932 * cris-tdep.c (cris_store_struct_return): Put back accidently
13933 deleted function.
13934
79d45cd4
AC
13935 * gdbarch.sh: Update copyright year.
13936 * gdbarch.h, gdbarch.c: Re-generate.
13937
b263358a
DJ
139382004-01-17 Daniel Jacobowitz <drow@mvista.com>
13939
13940 Suggested by George Anzinger.
13941 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13942 correct stack offset. Include unknown opcode numbers in the error
13943 message.
13944
931aecf5
AC
139452004-01-17 Andrew Cagney <cagney@redhat.com>
13946
13947 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13948 extract_struct_value_address, i386 does not set it.
13949 * sparc64-tdep.c (sparc64_init_abi): Do not set
13950 extract_struct_value_address, never called.
13951 (sparc64_extract_struct_value_address): Delete function.
13952 * m68hc11-tdep.c: Update copyright.
13953 (m68hc11_gdbarch_init): Delete redundant assignment of
13954 extract_struct_value_address.
13955 * i386-tdep.c: Update copyright.
13956 (i386_gdbarch_init): Do not set extract_struct_value_address,
13957 never called.
13958 (i386_extract_struct_value_address): Delete function.
13959 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13960 extract_struct_value_address, never called.
13961 (sparc32_extract_struct_value_address): #if 0 function. Add
13962 comments explaining its future.
13963
756fe439
DJ
139642004-01-17 Daniel Jacobowitz <drow@mvista.com>
13965
13966 * arm-tdep.c (arm_write_pc): New function.
13967 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13968
e74f0f02
DJ
139692004-01-17 Daniel Jacobowitz <drow@mvista.com>
13970
13971 * breakpoint.c (must_shift_inst_regs): Delete.
13972 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13973 and SHIFT_INST_REGS.
13974 * infcmd.c (step_1, step_1_continuation): Delete references to
13975 SHIFT_INST_REGS.
13976 * infrun.c (keep_going): Likewise.
13977 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13978 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13979
b6cb9035
AC
139802004-01-17 Andrew Cagney <cagney@redhat.com>
13981
444a1e2e
AC
13982 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13983 * gdbarch.h, gdbarch.c: Re-generate.
13984 * infcmd.c (print_return_value): Delete reference to
13985 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13986
def7e6ed
AC
13987 * cris-tdep.c (cris_gdbarch_init): Do not set
13988 deprecated_extract_struct_value_address.
13989
07be497a
AC
13990 * xstormy16-tdep.c: Update copyright.
13991 (xstormy16_extract_struct_value_address): Update to current
13992 extract struct value address interface.
13993 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13994 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13995 current extract struct value address interface.
13996 (sh64_gdbarch_init): Set extract_struct_value_address.
13997
6b4d5c91
AC
13998 * cris-tdep.c: Update copyright.
13999 (cris_extract_struct_value_address): Delete function.
14000 (struct_return_address): Delete variable.
14001 (cris_store_struct_return): Do not set struct_return_address.
14002
464e0365
AC
14003 * mcore-tdep.c: Update copyright.
14004 (mcore_extract_struct_value_address): Delete function. Update
14005 comments.
14006 (mcore_gdbarch_init): Update.
14007 * mn10300-tdep.c: Update copyright.
14008 (mn10300_extract_struct_value_address): Delete function.
14009 (mn10300_gdbarch_init): Update.
14010 * v850-tdep.c: Update copyright.
14011 (v850_extract_struct_value_address): Delete.
14012 (v850_gdbarch_init): Update.
14013 * ns32k-tdep.c: Update copyright.
14014 (ns32k_extract_struct_value_address): Delete.
14015 (ns32k_gdbarch_init): Update.
14016 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
14017 (hppa_gdbarch_init): Update.
14018 * vax-tdep.c: Update copyright.
14019 (vax_extract_struct_value_address): Delete.
14020 (vax_gdbarch_init): Update.
14021
afb18d0f
AC
14022 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
14023 * gdbarch.h, gdbarch.c: Re-generate.
14024 * procfs.c (procfs_fetch_registers): Delete reference to
14025 DEPRECATED_NPC_REGNUM.
14026 (procfs_store_registers): Ditto.
14027 * regcache.c (generic_target_write_pc): Simplify.
14028 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
14029
a698f53e
AC
14030 * core-sol2.c (fetch_core_registers): Replace
14031 DEPRECATED_NPC_REGNUM with equivalent tdep value.
14032
adc11376
AC
14033 * hppa-tdep.c: Update copyright year.
14034 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
14035 NPC_REGNUM.
14036 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
14037
b6cb9035
AC
14038 * mips-tdep.c (mips_write_pc): New function.
14039 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
14040 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
14041 (mips_find_saved_regs, mips_software_single_step: Ditto.
14042 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14043 mips_init_extra_frame_info, mips_pop_frame): Ditto.
14044
6d82d43b
AC
140452004-01-17 Andrew Cagney <cagney@redhat.com>
14046
14047 * mips-tdep.c: Re-indent. Group functions by ABI.
14048
71bd6bd4
AC
140492004-01-17 Andrew Cagney <cagney@redhat.com>
14050
14051 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14052 * gdbarch.c: Re-generate.
14053 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14054 DECR_PC_AFTER_BREAK to zero.
14055 * vax-tdep.c (vax_gdbarch_init): Ditto.
14056 * v850-tdep.c (v850_gdbarch_init): Ditto.
14057 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14058 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14059 * sh-tdep.c (sh_gdbarch_init): Ditto.
14060 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14061 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14062 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14063 * mips-tdep.c (mips_gdbarch_init): Ditto.
14064 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14065 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14066 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14067 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14068 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14069 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14070 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14071 * frv-tdep.c (frv_gdbarch_init): Ditto.
14072 * cris-tdep.c (cris_gdbarch_init): Ditto.
14073 * avr-tdep.c (avr_gdbarch_init): Ditto.
14074 * arm-tdep.c (arm_gdbarch_init): Ditto.
14075 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14076
a02abb62
JB
140772004-01-17 J. Brobecker <brobecker@gnat.com>
14078
14079 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14080 Delete, no longer used.
14081 (read_subrange_type): New function, mostly extracted from
14082 read_array_type().
14083 (read_array_type): Replace extracted code by call to
14084 read_subrange_type().
14085 (dwarf2_get_attr_constant_value): New function.
14086 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14087 (add_partial_symbol): Likewise.
14088 (process_die): Likewise.
14089 (new_symbol): Likewise.
14090 (read_type_die): Likewise.
14091
cf5b2f1b
AC
140922004-01-16 Andrew Cagney <cagney@redhat.com>
14093
14094 * symfile.c: Update copyright year.
14095 (compare_symbols): Delete unused function.
14096 * stabsread.c: Update copyright year.
14097 (lrs_general_complaint): Delete unused function.
14098 (ref_search_value): Ditto.
14099 (get_substring): Delete declaration.
14100 * sh64-tdep.c: Update copyright year.
14101 (sh64_get_gdb_regnum): Delete unused function.
14102 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14103 Delete unused function.
14104
d33b9831
MK
141052004-01-17 Mark Kettenis <kettenis@gnu.org>
14106
14107 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14108 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14109
7aea86e6
AC
141102004-01-16 Andrew Cagney <cagney@redhat.com>
14111
14112 Changes from Peter Schauer.
14113 * rs6000-tdep.c: Update copyright year.
14114 (rs6000_push_dummy_call): Update the stack pointer before
14115 accessing the corresponding stack region.
14116 * rs6000-nat.c: Update copyright year.
14117 (set_host_arch): Set "info.abfd" to "exec_bfd".
14118
26b0da32
MK
141192004-01-15 Mark Kettenis <kettenis@gnu.org>
14120
14121 * blockframe.c: Update copyright year.
14122 (inside_entry_func): Don't treat a zero PC specially.
14123
86fbe6cc
EZ
141242004-01-14 Elena Zannoni <ezannoni@redhat.com>
14125
14126 * gcore.c (gcore_copy_callback): Use paddr_d to print size
14127 variable.
14128 (gcore_create_callback): Ditto. Skip any memory segment that has
14129 no permissions set.
14130
63d06c5c
DC
141312004-01-14 David Carlton <carlton@kealia.com>
14132
14133 Change symbols for C++ nested types to contain the fully qualified
14134 name, if possible. (At least in the DWARF-2 case.) Partial fix
14135 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14136 c++/895.
14137 * c-exp.y (qualified_type): Handle types nested within classes.
14138 * cp-namespace.c: Update comments.
14139 (cp_set_block_scope): Delete #if 0.
14140 (cp_lookup_nested_type): Handle types nested within classes.
14141 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14142 when appropriate.
14143 (add_partial_symbol): Add the name of the enclosing namespace to
14144 types.
14145 (pdi_needs_namespace): New.
14146 (add_partial_namespace): Tweak comment.
14147 (add_partial_structure): New.
14148 (psymtab_to_symtab_1): Initialize processing_current_prefix
14149 here...
14150 (process_die): instead of here.
14151 (read_structure_scope): Try to figure out the name of the class or
14152 namespace that the structure might be defined within.
14153 (read_enumeration): Generate fully-qualified names, if possible.
14154 (read_namespace): Don't set name to NULL.
14155 (die_specification): New.
14156 (new_symbol): Generate fully-qualified names for types.
14157 (read_type_die): Determine appropriate prefix.
14158 (determine_prefix): New.
14159 (typename_concat): New.
14160 (class_name): New.
14161 * valops.c (value_aggregate_elt): Pass NOSIDE to
14162 value_struct_elt_for_reference.
14163 (value_struct_elt_for_reference): Make static, add NOSIDE
14164 parameter, call value_maybe_namespace_elt as a last resort.
14165 (value_namespace_elt): Break out code into
14166 value_maybe_namespace_elt.
14167 (value_maybe_namespace_elt): New.
14168
87783b8b
AC
141692004-01-12 Andrew Cagney <cagney@redhat.com>
14170
14171 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14172 cooked floating-point registers.
14173 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14174 and value_to_register.
14175
6503b91e
AC
141762004-01-13 Andrew Cagney <cagney@redhat.com>
14177
14178 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14179 * gdbarch.c: Re-generate.
14180 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14181 FUNCTION_START_OFFSET.
14182 * v850-tdep.c (v850_gdbarch_init): Ditto.
14183 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14184 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14185 * sh-tdep.c (sh_gdbarch_init): Ditto.
14186 * s390-tdep.c (s390_gdbarch_init): Ditto.
14187 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14188 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14189 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14190 * mips-tdep.c (mips_gdbarch_init): Ditto.
14191 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14192 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14193 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14194 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14195 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14196 * i386-tdep.c (i386_gdbarch_init): Ditto.
14197 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14198 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14199 * frv-tdep.c (frv_gdbarch_init): Ditto.
14200 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14201 * cris-tdep.c (cris_gdbarch_init): Ditto.
14202 * avr-tdep.c (avr_gdbarch_init): Ditto.
14203 * arm-tdep.c (arm_gdbarch_init): Ditto.
14204 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14205
ea1dd7bc
DJ
142062004-01-13 Daniel Jacobowitz <drow@mvista.com>
14207
14208 * infrun.c (follow_fork_mode_ask): Remove.
14209 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14210 (follow_fork): Simplify and remove internal error for
14211 follow_fork_mode_ask.
14212 (_initialize_infrun): Update "set follow-fork-mode" help text.
14213
0f0cffd2
AC
142142004-01-13 Andrew Cagney <cagney@redhat.com>
14215
14216 * configure.in: Update copyright year.
14217 (build_warnings): Add -Wunused-label.
14218 * configure: Re-generate.
14219
de38af99
AC
142202004-01-12 Andrew Cagney <cagney@redhat.com>
14221
954a7fba
AC
14222 * exec.h (exec_ops): Make "extern".
14223
de38af99
AC
14224 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14225 the function is void.
14226 (mips_pseudo_register_write): Ditto.
14227
1a111ce3
AC
142282004-01-12 Andrew Cagney <cagney@redhat.com>
14229
14230 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14231 call. Never defined.
14232 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14233 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14234 (struct sparc_gregset, struct regcache): Ditto.
14235 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14236
48efe704
AC
142372004-01-12 Andrew Cagney <cagney@redhat.com>
14238
14239 * mi/ChangeLog: Delete file. Renamed to ...
14240 * mi/ChangeLog-1999-2003: New file.
14241 * tui/ChangeLog: Delete file. Renamed to ...
14242 * tui/ChangeLog-1998-2003: New file.
fe61caab 14243
a54124c5
MK
142442004-01-11 Mark Kettenis <kettenis@gnu.org>
14245
2ca62865
MK
14246 * sparc64nbsd-tdep.c: Include "regset.h".
14247 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14248 Remove variables.
14249 (fetch_core_registers): Remove function.
14250 (sparc64nbsd_core_fns): Remove variable.
14251 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14252 functions.
14253 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14254 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14255 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14256
ca9d58e9
MK
14257 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14258 sparc_extract_struct_value_address.
14259 (sparc32_gdbarch_init): Set extract_struct_value_address.
14260 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14261 function.
14262 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14263 return_value_on_stack.
14264
3cc87ec0
MK
14265 * NEWS: Mention that %cs and %ss have been added to the AMD64
14266 configurations
14267
5bf00f29
MK
14268 * frame.c: Update copyright year.
14269 (get_prev_frame): Improve comment.
14270
4f7ec84e
MK
14271 * sparc64fbsd-tdep.c: Include "regset.h".
14272 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14273 Remove variables.
14274 (fetch_core_registers): Remove function.
14275 (sparc64fbsd_core_fns): Remove variable.
14276 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14277 functions.
14278 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14279 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 14280 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 14281
4e7b0cd3
MK
14282 * sparcnbsd-tdep.c: Include "regset.h".
14283 (fetch_core_registers): Remove function.
14284 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14285 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14286 functions.
14287 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14288 TDEP->fpregset.
46b58ce9 14289 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 14290
a54124c5
MK
14291 * sparc-tdep.h (struct regset): Provide opaque declaration.
14292 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14293 fpregset and sizeof_fpregset members.
14294 * sparc-tdep.c (struct regset): Provide opaque declaration.
14295 (sparc_regset_from_core_section): New function.
14296 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14297 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14298 Set regset_from_core_section when appropriate.
14299
29ff87c5
MK
143002004-01-10 Mark Kettenis <kettenis@gnu.org>
14301
79b1ab3d
MK
14302 * x86-64-tdep.c (amd64_non_pod_p): New function.
14303 (amd64_classify_aggregate): Return class memory for non-POD
14304 C++ structure types.
14305
6470d250
MK
14306 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14307 argument. Use it to reserve a register if necessary.
14308 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14309 amd64_push_arguments.
14310
562c50c2
MK
14311 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14312
af233647
MK
14313 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14314 register numbers in comments.
14315 * x86-64-tdep.h: Update copyright year.
14316 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14317 Adjust for addition of %cs and %ss.
14318 * amd64fbsd-nat.c: Update copyright year.
14319 (reg_offset): Add register offsets for %cs and %ss.
14320 * amd64fbsd-tdep.c: Update copyright year.
14321 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14322 (amd64fbsd_sc_reg_offset): Likewise.
14323 * x86-64-linux-nat.c: Update copyright year.
14324 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14325 and %ss.
14326 * amd64nbsd-nat.c: Update copyright year.
14327 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14328 * amd64nbsd-tdep.c: Update copyright year.
14329 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14330 * x86-64-linux-tdep.c: Update copyright year.
14331 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14332 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14333 * regformats/reg-x86-64.dat: Add %cs and %ss.
14334
29ff87c5
MK
14335 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14336 variables to prevent long lines. Update comments to reflect
14337 reality.
14338
38d518c9
EZ
143392004-01-09 David Carlton <carlton@kealia.com>
14340
14341 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14342 * dwarf2read.c (read_namespace): Pull out name-generating code
14343 into namespace_name. Rename previous_namespace to previous_prefix
14344 and processing_current_namespace to processing_current_prefix..
14345 (namespace_name): New function.
14346 (add_partial_symbol): Substitute uses of pdi->name with
14347 actual_name.
14348 * cp-support.h: Rename processing_current_namespace to
14349 processing_current_prefix.
14350 Update copyright year.
14351 * cp-namespace.c: Rename processing_current_namespace to
14352 processing_current_prefix.
14353 Update copyright year.
fe61caab 14354
1e4728e7
AC
143552004-01-09 Andrew Cagney <cagney@redhat.com>
14356
14357 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14358
c77c642a
MK
143592004-01-09 Mark Kettenis <kettenis@gnu.org>
14360
14361 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14362 complaining.
14363 (process_one_symbol): Deal with N_PATCH stabs.
14364
b44e9041
EZ
143652004-01-09 Elena Zannoni <ezannoni@redhat.com>
14366
14367 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14368 ifdeffed code.
14369 Update copyright year.
38d518c9 14370
eccfb640
MC
143712004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14372
14373 * config/pa/tm-hppa.h: Update extern declarations for
14374 hppa32_hpux_frame_saved_pc_in_sigtramp,
14375 hppa32_hpux_frame_base_before_sigtramp, and
14376 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14377
848c5feb
MC
143782004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14379
14380 * config/pa/tm-hppah.h: Update copyright years.
14381
3cc5d663
AC
143822004-01-08 Andrew Cagney <cagney@redhat.com>
14383
14384 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14385 (mips_o32_reg_struct_has_addr): Delete function.
14386 (mips_gdbarch_init): Update.
14387 (mips_extract_struct_value_address): Delete function.
14388
bfec0b41
JJ
143892004-01-08 David Mosberger <davidm@hpl.hp.com>
14390
14391 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14392 reality.
14393
16e109ca
AC
143942004-01-07 Andrew Cagney <cagney@redhat.com>
14395
6214a8a1
AC
14396 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14397 architecture's elf flags (when available).
14398
8d5838b5
AC
14399 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14400 FPU to the start, check the MIPS FPU when looking for an old
14401 architecture.
14402 (set_mipsfpu_single_command): Update the architecture.
14403 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14404
480d3dd2
AC
14405 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14406 (mips_mask_address_p): Add "tdep" parameter.
14407 (show_mask_address, mips_addr_bits_remove): Update.
14408 (mips_dump_tdep): Update.
14409 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14410 (MIPS_STACK_ARGSIZE): Delete macro.
14411 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14412 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14413 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14414 (mips_dump_tdep): Update.
14415 (MIPS_SAVED_REGSIZE): Delete macro.
14416 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14417 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14418 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14419 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14420 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14421 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14422 (mips_pop_frame, return_value_location): Update.
14423 (mips_n32n64_return_value, mips_dump_tdep): Update.
14424
ec03c1ac
AC
14425 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14426 MIPS ABI.
14427
16e109ca
AC
14428 * mips-tdep.c: Update copyright.
14429 (mips_gdbarch_init): Merge two code blocks handling the register
14430 name and number layout.
14431
15255275
MS
144322004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14433
14434 * tracepoint.c (validate_actionline): Fix segv at EOF
14435
9f9057da
MC
144362004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14437
14438 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14439 properly for static fields.
14440
0127c0d3 144412004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 14442 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
14443
14444 * disasm.c: Update copyright to include 2004.
14445 (do_mixed_source_and_assembly): For uiout asm list
14446 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 14447 NULL and do so prior to loop. Only reset when we close off
0127c0d3 14448 the tuple/list. Move check for whether to close off the
fe61caab 14449 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
14450 on each loop iteration.
14451
5269965e
AC
144522004-01-05 Andrew Cagney <cagney@redhat.com>
14453
54f1137d
AC
14454 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14455 should be a switch case and not a label.
14456 * mips-tdep.c (mips32_next_pc): Delete unused labels
14457 "greater_equal_branch" and "less_zero_branch".
14458 * jv-valprint.c (java_print_value_fields): Delete unused label
14459 "flush_it".
14460
5269965e
AC
14461 * target.c (unpush_target): Only close a target that is in the
14462 target stack.
14463
dbc22fa1
MK
144642004-01-05 Mark Kettenis <kettenis@gnu.org>
14465
9515395e
MK
14466 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14467 address from [sp + 64] instead of %o2.
14468
dbc22fa1
MK
14469 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14470 fixes PR backtrace/1476.
14471
5439edaa
AC
144722004-01-05 Andrew Cagney <cagney@redhat.com>
14473
14474 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14475 move to start of file.
14476 * i386-tdep.h (struct regcache): Add opaque declaration.
14477 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14478 declaration.
14479 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14480 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14481 * win32-nat.c (fake_create_process): Use ISO C style definition.
14482 * stabsread.c (define_symbol): Delete #ifndef
14483 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14484 stabs_argument_has_addr call, macro never defined.
14485
19061abe
MC
144862004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14487
14488 * op50-rom.c: Delete.
14489 * w89k-rom.c: Delete.
14490 * Makefile.in: Remove references.
14491
e53bef9f
MK
144922004-01-04 Mark Kettenis <kettenis@gnu.org>
14493
14494 * x86-64-tdep.c: Update copyright year.
14495 (struct amd64_register_info): Rename from x86_64_register_info.
14496 (amd64_register_info): Rename from x86_64_register_info.
14497 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14498 (amd64_register_name): Rename from x86_64_register_name.
14499 (amd64_register_type): Rename from x86_64_register_type.
14500 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14501 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14502 (amd64_dwarf_reg_to_regnum): Rename from
14503 x86_64_dwarf_reg_to_regnum.
14504 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14505 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14506 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14507 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14508 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14509 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14510 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14511 (amd64_frame_cache): Rename from x86_64_frame_cache.
14512 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14513 (amd64_frame_prev_register): Rename from
14514 x86_64_frame_prev_register.
14515 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14516 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14517 (amd64_sigtramp_frame_cache): Rename from
14518 x86_64_sigtramp_frame_cache.
14519 (amd64_sigtramp_frame_prev_register): Rename from
14520 x86_64_sigtramp_frame_prev_register.
14521 (amd64_sigtramp_frame_unwind): Rename from
14522 x86_64_sigtramp_frame_unwind.
14523 (amd64_sigtramp_frame_sniffer): Rename from
14524 x86_64_sigtramp_frame_sniffer.
14525 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14526 (amd64_frame_base): Rename from x86_64_frame_base.
14527 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14528 (amd64_frame_align): Rename from x86_64_frame_align.
14529 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14530 (amd64_regset_from_core_section): Rename from
14531 x86_64_regset_from_core_section.
14532 (x86_64_init_abi): Update comments.
14533
fca6aa58
NR
145342004-01-04 Nick Roberts <nick@nick.uklinux.net>
14535
14536 * MAINTAINERS (write after approval): Add myself.
14537
8ada74e3
MK
145382004-01-04 Mark Kettenis <kettenis@gnu.org>
14539
14540 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14541 `float' arguments.
14542
5154b0cd
MK
145432004-01-04 Mark Kettenis <kettenis@gnu.org>
14544
14545 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14546 such that it mentions a specific version of GCC that exhibits this
14547 bug.
14548
fb316966
MK
145492004-01-03 Mark Kettenis <kettenis@gnu.org>
14550
200cc553
MK
14551 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14552 structure that has a single `float' member, store it in %f1 in
14553 addition to %f0.
14554
e226a4a0
MK
14555 * sparc-sol2-nat.c: Add missing '\'.
14556
b9d4c5ed
MK
14557 * sparc-tdep.c (sparc32_return_value): New function.
14558 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14559 Remove functions.
14560 (sparc32_gdbarch_init): Set return_value, don't set
14561 extract_return_value, store_return_value, use_struct_convention
14562 and return_value_on_stack.
14563
fb316966
MK
14564 * sparc-sol2-nat.c: Add missing ')'.
14565
1af510a8
JB
145662004-01-03 J. Brobecker <brobecker@gnat.com>
14567
14568 * infrun.c (handle_step_into_function): New function.
14569 (handle_inferior_event): Extract out some code into the new
14570 function above.
14571
5cf4d23a
JB
145722004-01-03 J. Brobecker <brobecker@gnat.com>
14573
14574 * infrun.c (handle_inferior_event): Move the declaration of
14575 real_stop_pc inside the if blocks where it is used.
14576
60af1db2
MK
145772004-01-03 Mark Kettenis <kettenis@gnu.org>
14578
14579 * sparc64-tdep.c (sparc64_16_byte_align_p)
14580 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14581 Use check_typedef to get subtypes of structures and unions.
14582 (sparc64_store_return_value): Fix calculation of the appropriate
14583 offset into VALBUF when storing a structure or union.
14584 (sparc64_return_value): New function.
14585 (sparc64_use_struct_convention): Remove function.
14586 (sparc64_init_abi): Set return_value, don't set
14587 extract_return_value, store_return_value and
14588 use_struct_convention.
14589
1a901d3f
EZ
145902004-01-03 Eli Zaretskii <eliz@elta.co.il>
14591
14592 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14593 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14594 gdb/config/alpha/xm-alphaosf.h,
14595 gdb/config/powerpc/tm-ppcle-eabi.h,
14596 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14597 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14598 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14599 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14600 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14601 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14602 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14603 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14604 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14605 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14606 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14607 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14608 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14609 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14610 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14611 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14612 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14613 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14614 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14615 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14616 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14617 Remove lines for .cvsignore files.
14618
ef52e463
JB
146192004-01-03 J. Brobecker <brobecker@gnat.com>
14620
14621 * infrun.c: Back out the previous change.
14622
cb1bf9dc
MK
146232004-01-03 Mark Kettenis <kettenis@gnu.org>
14624
f0424ef6
MK
14625 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14626 sparc-*-sunos4* to the list of REMOVED configurations.
14627
cb1bf9dc
MK
14628 * configure.tgt: Add back sparc-*-vxworks*.
14629 * remote-vxsparc.c: Remove all includes except for "defs.h",
14630 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14631 Include "sparc-tdep.h".
14632 (SPARC_R_G1): New define.
14633 (vxsparc_gregset): New variable.
14634 (ext_format_sparc): Remove extern declaration.
14635 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14636 sparc32_supply_fpregset.
14637 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14638 sparc_collect_rwindow and sparc32_collect_fpregset.
14639 * config/sparc/tm-vxworks.h: New file, based on recently removed
14640 tm-vxsparc.h.
14641 * config/sparc/vxworks.mt: New file, based on recently removed
14642 vxworks.mt.
fe61caab 14643
5e938f9f
JB
146442004-01-03 J. Brobecker <brobecker@gnat.com>
14645
14646 * infrun.c (handle_step_into_function): New function.
14647 (handle_inferior_event): Extract out some code into the new
14648 function above.
14649
386c036b
MK
146502004-01-02 Mark Kettenis <kettenis@gnu.org>
14651
14652 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14653 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14654 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14655 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14656 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14657 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14658 (sparc_nat_h): New variable.
14659 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14660 (tm-sun4os4.h): Remove dependency.
14661 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14662 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14663 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14664 sparc-tdep.o): Update dependencies.
14665 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14666 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14667 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14668 dependencies.
14669 * configure.host: Remove existing sparc-*-lynxos*,
14670 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14671 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14672 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14673 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14674 triplets.
14675 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14676 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14677 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14678 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14679 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14680 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14681 sparc64-*-solaris2* and sparc64-*-* triplets.
14682 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14683 "symtab.h" and "objfiles.h".
14684 (BIAS): Remove define.
14685 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14686 (X_DISP19): Remove macros.
14687 (sparc_fetch_instruction): Remove function.
14688 (struct gdbarch_tdep): Remove definition.
14689 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14690 (sparc_breakpoint_from_pc): Remove function.
14691 (struct sparc64_frame_cache): Remove definition.
14692 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14693 sparc64_unwind_pc): Remove functions.
14694 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14695 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14696 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14697 (sparc64_frame_cache): Change return type to `struct
14698 sparc_frame_cache *'. Simply call sparc_frame_cache.
14699 (sparc64_frame_this_id, sparc64_frame_prev_register,
14700 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14701 instead of `struct sparc64_frame_cache.
14702 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14703 sparc_analyze_control_transfer, sparc_software_single_step,
14704 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14705 _initialize_sparc64_tdep): Remove functions.
14706 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14707 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14708 macros.
14709 (sparc64_supply_gregset, sparc64_collect_gregset,
14710 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14711 (sparc64_init_abi): New function.
14712 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14713 inclusion guard. Include "sparc-tdep.h".
14714 (BIAS): Define.
14715 (r_tstate_offset, r_fprs_offset): New defines.
14716 (enum sparc_regnum): Remove defenition.
14717 (enum sparc64_regnum): Reformat.
14718 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14719 (sparc64_init_abi, sparc64_supply_gregset,
14720 sparc64_collect_gregset, sparc64_supply_fpregset,
14721 sparc64_collect_fpregset): New prototypes.
14722 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14723 Add extern declarations.
14724 (sparc64_sol2_init_abi): New prototype.
14725 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14726 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14727 prototypes.
14728 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14729 "sparnbsd-nat.h".
14730 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14731 functions.
14732 (_initialize_sparc64fbsd_nat): Remove initialization of
14733 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14734 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 14735 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
14736 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14737 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14738 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14739 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14740 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14741 (sparc64fbsd_r_y_offset): Remove variables.
14742 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14743 Make static and const.
14744 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14745 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14746 functions.
14747 (sparc64fbsd_gregset): New variable.
14748 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14749 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14750 and sparc64_supply_fpregset.
14751 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14752 (sparc64fbsd_sigtramp_frame_this_id)
14753 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14754 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14755 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14756 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14757 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14758 * sparcnbsd-tdep.c: Update copyright year. Include
14759 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14760 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14761 "value.h" and "sparcnbsd-tdep.h".
14762 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14763 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14764 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14765 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14766 defines.
14767 (sparcnbsd_gregset): New variable.
14768 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14769 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14770 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14771 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14772 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14773 variables.
14774 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14775 (sparc32nbsd_sigcontext_frame_this_id)
14776 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14777 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14778 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14779 (sparcnbsd_get_longjmp_target_32,
14780 sparcnbsd_get_longjmp_target_64): Remove functions.
14781 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14782 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14783 sparcnbsd_init_elf): Remove.
14784 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14785 (sparcnbsd_elf_init_abi): New functions.
14786 (_initialize_sparcnbsd_tdep): New prototype.
14787 (_initialize_sparnbsd_tdep): Update.
14788 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14789 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14790 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14791 * config/sparc/linux.mh: Update comment.
14792 (XM_FILE, HOST_IPC): Remove variables.
14793 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14794 sparc-linux-nat.o.
14795 * config/sparc/linux.mt: Update comment.
14796 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14797 * config/sparc/nbsd.mt: Reformat.
14798 * config/sparc/nbsd64.mh: Update comment.
14799 (NATDEPFILES): Add sparc-nat.o.
14800 * config/sparc/nbsd64.mt: Update comment.
14801 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14802 (TM_FILE): Set to tm-nbsd.h.
14803 * config/sparc/nbsdelf.mh: Update comment.
14804 (NATDEPFILES): Add sparc-nat.o.
14805 (XM_FILE): Delete.
14806 * config/sparc/nbsdaout.mh: Update comment.
14807 (NATDEPFILES): Add sparc-nat.o
14808 (XM_FILE): Delete.
14809 * config/sparc/nm-linux.h: Update copyright year. Don't include
14810 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14811 inclusion.
14812 (KERNEL_U_SIZE): Remove define.
14813 (kernel_u_size): Remove prototype.
14814 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14815 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14816 "regcache.h".
14817 (CHILD_PREPARE_TO_STORE): Remove define.
14818 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14819 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14820 sparcnbsd-nat.c: Rewrite files.
14821 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14822 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14823 sparcnbsd-tdep.h: Remove files.
14824 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14825 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14826 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14827 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14828 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14829 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14830 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14831 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14832 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14833 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14834 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14835 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14836 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14837 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14838 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14839 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14840 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14841 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14842 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14843
ee84457a
AC
148442004-01-02 Andrew Cagney <cagney@redhat.com>
14845
14846 From 2003-12-18 Kazuhiro Inaoka:
14847 * configure.host: Add m32r-linux target.
14848
0bc2134e
MC
148492004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14850
14851 * top.c (print_gdb_version): Update year to 2004.
14852
89a72f9c
MM
148532004-01-02 Mark Mitchell <mark@codesourcery.com>
14854
14855 * MAINTAINERS: Add myself to the write-after-approval category.
14856
86b013ed
DJ
148572004-01-02 Daniel Jacobowitz <drow@mvista.com>
14858
14859 From Bernardo Innocenti <bernie@develer.com>:
14860 * configure.tgt: Add uClinux target.
14861
e42c9534
AC
148622004-01-02 Andrew Cagney <cagney@redhat.com>
14863
14864 * utils.c (do_my_cleanups): Make static, add forward declaration.
14865 * defs.h (do_my_cleanups): Delete declaration.
14866
162467d3
EZ
148672004-01-02 Eli Zaretskii <eliz@elta.co.il>
14868
14869 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14870 bfd/ChangeLog-0203.
14871
78434e59
MK
148722004-01-02 Mark Kettenis <kettenis@gnu.org>
14873
14874 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14875 in <machine/reg.h>.
14876 * configure, config.in: Regenerate.
14877
48efe704
AC
14878For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14879tui/ChangeLog-1998-2003.
c906108c
SS
14880\f
14881Local Variables:
14882mode: change-log
14883left-margin: 8
14884fill-column: 74
14885version-control: never
14886End:
This page took 1.286654 seconds and 4 git commands to generate.