merge from gcc
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
01f4bf2b
JB
12004-09-04 Joel Brobecker <brobecker@gnat.com>
2
3 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
4 left behind by error.
5
8511a048
JB
62004-09-04 Joel Brobecker <brobecker@gnat.com>
7
8 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
9 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
10
649dfe9f
JB
112004-09-04 Joel Brobecker <brobecker@gnat.com>
12
13 * config/rs6000/xm-aix4.h: Remove this file.
14 * config/rs6000/aix4.mh (XM_FILE): Delete.
15
6e50f889
JB
162004-09-04 Joel Brobecker <brobecker@gnat.com>
17
18 * config/rs6000/xm-rs6000.h: Remove this file.
19 * config/rs6000/rs6000.mh (XM_FILE): Remove.
20
b8c4aece
AC
212004-09-03 Andrew Cagney <cagney@gnu.org>
22
fb603883
AC
23 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
24 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
25 only use.
26
c9343fd1
AC
27 * mips-tdep.c (temp_saved_regs): Delete.
28 (set_reg_offset): Replace saved_regs parameter with this_cache.
29 (heuristic_proc_desc, mips16_heuristic_proc_desc)
30 (mips32_heuristic_proc_desc): Add this_cache parameter.
31 (mips_insn32_frame_cache, mips_insn16_frame_cache)
32 (after_prologue): Pass a NULL this_cache.
33
9733cfe1
AC
34 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
35 non-kernel trap prologues.
36
0d5febcc
AC
37 * mips-tdep.c (find_proc_desc): Delete function.
38 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
39 simplify.
40 (mips_insn16_frame_cache): Replace find_proc_desc with code from
41 mips_insn32_frame_cache.
42
9733cfe1 43 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
44 Simplify as NEXT_FRAME is NULL.
45 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
46
177f84a3
AC
47 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
48 local variable.
49 (mips_skip_prologue): Update.
50
465f7520
AC
51 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
52 "cur_frame" parameter.
177f84a3
AC
53 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
54 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 55
e38b8658
AC
56 * config/vax/nm-obsd.h: Delete file.
57 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
58 * config/vax/nm-nbsd.h: Delete file.
59 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
60 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
61 * config/sh/nm-nbsd.h: Delete file.
62 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
63 * config/rs6000/nm-rs6000ly.h: Delete file.
64 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
65 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
66 * config/powerpc/nm-obsd.h: Delete file.
67 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
68 * config/powerpc/nm-nbsd.h: Delete file.
69 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
70 * config/pa/nm-obsd.h: Delete file.
71 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
72 * config/mips/nm-nbsd.h: Delete file.
73 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
74 * config/m88k/nm-obsd.h: Delete file.
75 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
76 * config/m68k/nm-nbsd.h: Delete file.
77 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
78 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
79 * config/i386/nm-nbsd.h: Delete file.
80 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
81 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
82 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
83 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
84 * config/i386/nm-i386lynx.h: Delete file.
85 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
86 * config/arm/nm-nbsd.h: Delete file.
87 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
88 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
89
be1ed680
AC
90 * config/i386/tm-fbsd.h: Delete file.
91 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
92 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
93
4b392b26
AC
94 * config/rs6000/tm-rs6000-aix4.h: Delete file.
95 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
96 * config/rs6000/aix4.mt (TM_FILE): Set to
97 config/rs6000/tm-rs6000.h.
98 * config/powerpc/tm-ppc-aix.h: Delete file.
99 * config/powerpc/aix.mt (TM_FILE): Set to
100 config/rs6000/tm-rs6000.h.
101 * config/m68k/tm-linux.h: Delete file.
102 * config/m68k/linux.mt (TM_FILE): Set to solib.h
103 * config/i386/tm-linux64.h: Delete file.
104 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
105 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
106
f3219c75
AC
107 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
108 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
109 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
110 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
111 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
112 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
113 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
114 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
115 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
116
b8c4aece
AC
117 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
118 gdb_host_cpu.
119
8ac2e020
JB
1202004-09-02 Joel Brobecker <brobecker@gnat.com>
121
122 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
123 Minor reformatting. Some code factoring.
124
c185a355
AC
1252004-09-02 Andrew Cagney <cagney@gnu.org>
126
63f22f0d
AC
127 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
128 * config/vax/tm-nbsd.h: Delete file.
129 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
130 * config/sparc/tm-vxworks.h: Delete file.
131 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
132 * config/sparc/tm-nbsd.h: Delete file.
133 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
134 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
135 * config/sparc/tm-linux.h: Delete file.
136 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
137 * config/s390/tm-linux.h: Delete file.
138 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
139 * config/pa/tm-bsd.h: Delete file.
140 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
141 * config/m68k/tm-obsd.h: Delete file.
142 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
143 * config/m68k/tm-nbsd.h: Delete file.
144 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
145 * config/i386/tm-vxworks.h: Delete file.
146 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
147 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
148 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
149 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
150 * config/i386/tm-nbsd.h: Delete file.
151 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
152 * config/i386/tm-i386lynx.h: Delete file.
153 * config/cris/cris.mt (TM_FILE): Set to solib.h.
154 * config/cris/tm-cris.h: Delete file.
155
0f475e27
AC
156 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
157 * configure: Re-generate.
158 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
159 * config/arm/tm-nbsd.h: Delete file.
160
458ed000
AC
161 * config/powerpc/tm-ppcle-sim.h: Delete.
162 * config/powerpc/tm-ppcle-eabi.h: Delete.
163 * config/powerpc/tm-nbsd.h: Delete.
164 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
165 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
166 tm-ppcle-eabi.h.
167
f14375f3
AC
168 * config/i386/nto.mh (NAT_FILE): Delete.
169 * config/i386/nm-nto.h: Delete.
170
c34d127c
AC
171 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
172 * config/m68k/tm-os68k.h: Ditto.
173 * config/m68k/tm-monitor.h: Ditto.
174 * config/m68k/tm-cisco.h: Ditto.
175 * config/m68k/st2000.mt (TM_FILE): Delete.
176 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
177 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
178 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
179 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
180
f7f0fe03
AC
181 * config/m68k/tm-st2000.h: Delete.
182 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
183 * config/sparc/fbsd.mt (TM_FILE): Delete.
184 * config/sparc/tm-fbsd.h: Delete.
185
a2558533
AC
186 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
187 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
188 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
189
b78960be
AC
190 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
191 GDB_TM_FILE and GDB_XM_FILE.
192 * gdbarch.c: Re-generate.
193 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
194 quotes in macro definition.
195 * configure.in: Re-generate.
196
4d60522e
AC
197 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
198 validating architecture methods.
199 * gdbarch.c: Re-generate.
200
5010d38b
AC
201 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
202 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
203 GDB_MULTI_ARCH_PARTIAL.
204 * gdbarch.h: Re-generate.
205
c185a355
AC
206 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
207 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
208 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
209 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
210 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
211 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
212 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
213 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
214 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
215 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
216 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
217 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
218
14aaa6ab
AC
2192004-09-01 Andrew Cagney <cagney@gnu.org>
220
221 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
222 and main_func_highpc.
223 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
224 * objfiles.c (init_entry_point_info, objfile_relocate): Update
225 * nlmread.c (nlm_symfile_read): Update.
226
a343eb3c
JB
2272004-09-01 Joel Brobecker <brobecker@gnat.com>
228
229 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
230 (mips_insn32_frame_cache): Inline call to find_proc_desc.
231 (find_proc_desc): Remove dead code.
232
4fbbbd07
JB
2332004-09-01 Joel Brobecker <brobecker@gnat.com>
234
235 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
236
84acb35a
JJ
2372004-09-01 Jeff Johnston <jjohnstn@redhat.com>
238
239 * observer.sh: Add struct so_list declaration.
240 * Makefile.in: Add dependencies on observer.h for solib.c and
241 breakpoint.c.
242 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
243 function.
244 (_initialize_breakpoint): Register
245 disable_breakpoints_in_unloaded_shlib as an observer of the
246 "solib unloaded" observation event.
247 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
248 call decode_line_1 so unfound breakpoint errors are silent.
249 * solib.c (update_solib_list): When a solib is discovered to have
250 been unloaded by the program, notify all observers of the
251 "solib unloaded" observation event.
252
c8cd9f6c
AC
2532004-09-01 Andrew Cagney <cagney@gnu.org>
254
255 * frame.c: Include "objfiles.h".
256 (inside_main_func): New function.
257 (get_prev_frame): Use new inside_main_func.
258 * Makefile.in (frame.o): Update dependencies.
259 * defs.h (inside_main_func): Delete declaration.
260 * blockframe.c (inside_main_func): Delete function.
261
1168df01
JB
2622004-08-31 Jim Blandy <jimb@redhat.com>
263
264 * dwarf2read.c (is_vtable_name): New function, based on logic from
265 read_structure_type, but passing the correct length to strncmp,
266 and using 'sizeof' instead of 'strlen'.
267 (read_structure_type): Call it.
268
f14f9744
JB
2692004-08-31 Joel Brobecker <brobecker@gnat.com>
270
271 * config/powerpc/aix.mh: Add comment.
272
386d4518
PG
2732004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
274
275 * MAINTAINERS: Add self to Write-After-Approval.
276
7d97d5e2
MI
2772004-08-30 Manoj Iyer <manjo@austin.ibm.com>
278
279 * MAINTAINERS: Add self to Write-After-Approval.
280
68f53502
AC
2812004-08-30 Andrew Cagney <cagney@gnu.org>
282
283 Fix PR breakpoints/1757.
284 * infrun.c (struct execution_control_state): Replace
285 remove_breakpoints_on_following_step with
286 step_after_step_resume_breakpoint.
287 (init_execution_control_state): Update.
288 (handle_inferior_event): For signals, when stepping off a
289 breakpoint, set step_after_step_resume_breakpoint. When
290 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
291 (keep_going): Delete code handling
292 remove_breakpoints_on_following_step.
293
7ca2d3a3
DL
2942004-08-29 David Lecomber <david@streamline-computing.com>
295
296 Fix PR gdb/648
297 * language.h (enum array_ordering): New enum.
298 * language.h (struct language_defn): New la_array_ordering
299 attribute.
300 * language.c (unknown_language_defn, auto_language_defn)
301 (local_language_defn): Ditto.
302 * ada-lang.c (ada_language_defn): Ditto.
303 * c-lang.c (c_language_defn, cplus_language_defn)
304 (asm_language_defn, minimal_language_defn): Ditto.
305 * f-lang.c (f_language_defn): Ditto.
306 * jv-lang.c (java_language_defn): Ditto.
307 * m2-lang.c (f_language_defn): Ditto.
308 * objc-lang.c (objc_language_defn): Ditto.
309 * p-lang.c (pascal_language_defn): Ditto.
310 * scm-lang.c (scm_language_defn): Ditto.
311 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
312 oriented large to small in type structure.
313 * dwarf2read.c (read_array_order): New function.
314 (read_array_type): Use read_array_order to check row/column
315 major ordering.
316
e354df01
NW
3172004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
318
319 * target.c (target_resize_to_sections): Check
320 current_target.to_sections for an old value when updating.
321
9185ddce
JB
3222004-08-27 Joel Brobecker <brobecker@gnat.com>
323
324 * procfs.c (dbx_link_bpt_addr): New static global variable.
325 (dbx_link_shadow_contents): New static global variable.
326 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
327 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
328 if we just hit it.
329 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
330 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
331 from run to run.
332 (procfs_create_inferior): Remove syssgi syscall-exit notifications
333 after the inferior has been forked.
334 (remove_dbx_link_breakpoint): New function.
335 (dbx_link_addr): New function.
336 (insert_dbx_link_bpt_in_file): New function.
337 (insert_dbx_link_bpt_in_region): New function.
338 (insert_dbx_link_breakpoint): New function.
339 (proc_trace_syscalls_1): New function, extracted from
340 proc_trace_syscalls.
341 (proc_trace_syscalls): Replace extract code by call to
342 proc_trace_syscalls_1.
343 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
344 is no longer valid.
345
e6742ace
JB
3462004-08-25 Jim Blandy <jimb@redhat.com>
347
348 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
349
8fb3e588
AC
3502004-08-25 Andrew Cagney <cagney@gnu.org>
351
629a41ee
AC
352 * infrun.c (struct execution_control_state): Delete field
353 "stepping_through_sigtramp".
354 (init_execution_control_state): Do not set same.
355 (context_switch): Do not pass same to save_infrun_state and
356 load_infrun_state.
357 * gdbthread.h (struct thread_info): Delete field
358 stepping_through_sigtramp.
359 (save_infrun_state, load_infrun_state): Delete parameter
360 stepping_through_sigtramp.
361 * thread.c (load_infrun_state, save_infrun_state): Update.
362
8fb3e588
AC
363 * infrun.c: Re-indent. Move expression operators to the beginning
364 of the line. Remove long disabled #if 0 code.
365
49c54768
AC
3662004-08-24 Andrew Cagney <cagney@gnu.org>
367
368 * doublest.h (floatformat_ieee_quad): Rename
369 floatformat_ia64_quad.
370 * doublest.c (floatformat_ieee_quad): Rename
371 floatformat_ia64_quad.
372 (_initialize_doublest): Update.
373
5ca2e327
JB
3742004-08-24 Jim Blandy <jimb@redhat.com>
375
87808bd6
JB
376 * dwarf2expr.h (struct dwarf_expr_context): New members
377 'num_pieces' and 'pieces', for returning the result of an
378 expression that uses DW_OP_piece.
379 (struct dwarf_expr_piece): New struct type.
380 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
381 pieces.
382 (free_dwarf_expr_context): Free pieces, if any.
383 (add_piece): New function.
384 (execute_stack_op): Implement DW_OP_piece.
385 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
386 expression is a list of pieces, print an error message.
387 (dwarf2_loc_desc_needs_frame): If the expression yields
388 pieces, and any piece is in a register, then we need a frame.
389
5ca2e327
JB
390 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
391 the stack until we've decided what sort of result the evaluation
392 has produced. Use separate variables, with more specific names.
393
2afeb6b8
RE
3942004-08-23 Richard Earnshaw <rearnsha@arm.com>
395
396 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
397 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
398 (arm_netbsd_init_abi_common): Register them.
399
5885ab49
MK
4002004-08-22 Mark Kettenis <kettenis@gnu.org>
401
fda820a6
MK
402 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
403
1c5bf419
MK
404 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
405 safe_frame_unwind_memory instead of target_read_memory.
406
8cbba7c8
MK
407 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
408 Reorder includes.
409 (fetch_register, store_register): Remove prototypes.
410 (child_resume): Reorganize code and comments such that it is
411 grouped a bit more logically.
412 (attach): Explicitly compare errno against 0.
413 (detach): Likewise. Use perror_with_name instead of
414 print_sys_errmsg.
415 * Makefile.in (infptrace.o): Update dependencies.
416
c5fa4245
MK
417 * ia64-linux-nat.c: Update copyright year.
418 (fetch_debug_register, store_debug_register)
419 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
420 PTRACE_TYPE_ARG3.
421 * config/ia64/nm-linux.h: Update copyright year.
422 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
423
387c058c
MK
424 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
425 from CORE_ADDR to struct frame_info *. Use
426 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
427 (amd64_linux_sigtramp_p): Adjust for changed signature of
428 and64_linux_sigtramp_start
429
277215a6
MK
430 * gdb_ptrace.h: GNU/Linux.
431
25f6178e
MK
432 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
433 Remove defines.
434
652fc137
MK
435 * infptrace.c: Include "gdb_assert.h".
436 (PTRACE_XFER_TYPE): Remove define.
437 (offsetof): Only define if U_REGS_OFFSET isn't defined.
438 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
439 Tweak comment.
440 (fetch_inferior_registers, store_inferior_registers): Remove
441 redundant culry braces. Tweak comment. s/regno/regnum.
442 * Makefile.in (infptrace.o): Update dependencies.
443
5885ab49
MK
444 * configure.in: Change test for return type of ptrace to default
445 to `long' instead of `int'.
446 * configure: Regenerate.
447
11003ae3
MK
4482004-08-21 Mark Kettenis <kettenis@gnu.org>
449
6b95110c
MK
450 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
451
bcb3dc3d
MK
452 * configure.in: Check for ttrace function.
453 * configure, config.in: Regenerate.
454
11003ae3
MK
455 * gdb_ptrace.h: New file.
456 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
457 <sys/ptrace.h>.
458 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
459 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
460 (attach): Don't define PT_ATTACH.
461 (detach): Don't define PT_DETACH.
462 * Makefile.in (gdb_ptrace_h): New variable.
463 (infptrace.o): Update dependencies.
464
f8707cac
MK
4652004-08-16 Mark Kettenis <kettenis@gnu.org>
466
467 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
468 instead of `int' if not already defined.
469 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
470 PTRACE_TYPE_ARG3.
471 * infptrace.c (call_ptrace): Revert change that replaced
472 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
473
655c5466
MK
4742004-08-15 Mark Kettenis <kettenis@gnu.org>
475
156e5ba7
MK
476 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
477 Remove defines.
478
de9a9e51
MK
479 * linux-nat.c (kill_inferior): Add missing third and fourth
480 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
481
88800403
MK
482 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
483 PTRACE_TYPE_RET.
484
849a1d7c
MK
485 * proc-why.c (proc_prettyfprint_why): Fix format string.
486
61ad16d1
MK
487 * solib-osf.c (osf_current_sos): Remove unsused label.
488
a6ed5501
MK
489 * configure.in: Add <ncurses/ncurses.h> to the list of possible
490 curses headers.
491 * configure, config.in: Regenerate.
492 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
493 <ncurses/ncurses.h>.
494
016ddeca
MK
495 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
496 * config/nm-nbsd.h: Update copyright year.
497 (PTRACE_ARG3_TYPE): Remove define.
498
49ec097f
MK
499 * sparc-nat.c (fetch_inferior_registers)
500 (store_inferior_registers, sparc_xfer_wcookie):
501 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
502
9f8e0089
MK
503 * alphabsd-nat.c (fetch_inferior_registers):
504 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
505 PTRACE_TYPE_ARG3.
506 * amd64bsd-nat.c (fetch_inferior_registers)
507 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
508 PTRACE_TYPE_ARG3.
509 * armnbsd-nat.c: Update copyright year.
510 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
511 (store_register, store_regs, store_fp_register, store_fp_regs):
512 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
513 * hppabsd-nat.c (fetch_inferior_registers)
514 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
515 PTRACE_TYPE_ARG3.
516 * i386bsd-nat.c (fetch_inferior_registers)
517 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
518 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
519 * m68kbsd-nat.c (fetch_inferior_registers)
520 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
521 PTRACE_TYPE_ARG3.
522 * m88kbsd-nat.c (fetch_inferior_registers)
523 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
524 PTRACE_TYPE_ARG3.
525 * mipsnbsd-nat.c: Update copyright year.
526 (fetch_inferior_registers, store_inferior_registers):
527 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
528 * ns32knbsd-nat.c: Update copyright year.
529 (fetch_inferior_registers, store_inferior_registers):
530 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
531 * ppcnbsd-nat.c (fetch_inferior_registers):
532 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
533 PTRACE_TYPE_ARG3.
534 * ppcobsd-nat.c (fetch_inferior_registers):
535 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
536 PTRACE_TYPE_ARG3.
537 * shnbsd-nat.c: Update copyright year.
538 (fetch_inferior_registers, store_inferior_registers):
539 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
540 * vaxbsd-nat.c (fetch_inferior_registers)
541 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
542 PTRACE_TYPE_ARG3.
543
655c5466
MK
544 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
545 PTRACE_TYPE_ARG3.
546 * infptrace.c (call_ptrace, child_resume, attach, detach)
547 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
548 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
549 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
550 PTRACE_TYPE_ARG3.
551
c40d0d10
MK
5522004-08-14 Mark Kettenis <kettenis@gnu.org>
553
5cb0ff31
MK
554 * defs.h: Remove out-of-date comment.
555 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
556 [!GETENV_PROVIDED] (getenv): Remove prototype.
557
5f0f34cb
MK
558 * standalone.c: Remove file.
559 * Makefile.in (standalone.o): Remove dependency.
560
7532965f
MK
561 * i386-linux-nat.c (dummy_sse_values): Remove function and
562 prototype.
563 (i386_linux_dr_get): Fix typo in comment.
564 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
565
1bdc6c53
MK
566 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
567
c40d0d10
MK
568 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
569 from declaration.
570 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
571 from definition.
572
64218d3e
MK
5732004-08-13 Mark Kettenis <kettenis@gnu.org>
574
575 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
576 parenthesis in definition.
577 * configure: Regenerated.
578
926c94e7
MC
5792004-08-12 Michael Chastain <mec.gnu@mindspring.com>
580
581 * PROBLEMS: Mention build/1411.
582
69489883
NN
5832004-08-09 Robert Millan <robertmh@gnu.org>
584
585 Committed by Nathanael Nerode.
586 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
587 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
588
ebb7c577
AC
5892004-08-12 Andrew Cagney <cagney@gnu.org>
590
591 * NEWS: Mention fixes in GDB 6.2.1.
592 * PROBLEMS: Remove mention of mips-irix.
593
232d697c
JB
5942004-08-11 Joel Brobecker <brobecker@gnat.com>
595
596 * config/powerpc/xm-aix.h: Delete.
597 * config/powerpc/aix.mh (MH_FILE): Remove.
598 * config/powerpc/aix432.mh (MH_FILE): Remove.
599
72f4e82b
JB
6002004-08-11 Joel Brobecker <brobecker@gnat.com>
601
602 * config/powerpc/aix.mh: Remove obsolete comment.
603 * config/powerpc/aix432.mh: Likewise.
604
0687ccb2
JB
6052004-08-11 Joel Brobecker <brobecker@gnat.com>
606
607 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
608
dbf3ada7
JB
6092004-08-11 Joel Brobecker <brobecker@gnat.com>
610
e08e1886
JB
611 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
612 this file is now empty.
613 * config/xm-aix4.h: Remove, this file is no longer included
614 anywhere.
615
6162004-08-11 Joel Brobecker <brobecker@gnat.com>
617
618 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
619 that file is now empty.
dbf3ada7
JB
620 (termdef): Remove prototype, function no longer used.
621
4c525ef6
JB
6222004-08-11 Joel Brobecker <brobecker@gnat.com>
623
624 * doc/gdbint.texinfo (Host Definition): Remove documentation
625 for USE_O_NOCTTY, no longer used.
626 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
627 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
628
82e0b968
JB
6292004-08-11 Joel Brobecker <brobecker@gnat.com>
630
631 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
632 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
633 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
634
f2acbe1c
MK
6352004-08-11 Mark Kettenis <kettenis@gnu.org>
636
daa98270
MK
637 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
638 instead of FIVE_ARG_PTRACE.
639
f2acbe1c
MK
640 * inflow.c (O_NOCTTY): Define to zero if not already defined.
641 (new_tty): Use O_NOCTTY unconditionally.
642
cc377e6b
MK
6432004-08-10 Mark Kettenis <kettenis@gnu.org>
644
645 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
646 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
647 fflush on stdout.
648
3bcc18fa
JB
6492004-08-10 Joel Brobecker <brobecker@gnat.com>
650
651 * xcoff_symfile_finish: Replace last call to xmfree by call
652 to xfree.
653
7936743b
AC
6542004-08-10 Andrew Cagney <cagney@gnu.org>
655
cc503c8a
AC
656 * main.c (captured_main): Delete call to init_malloc.
657 * defs.h (init_malloc): Delete declaration.
658 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
659 (init_malloc): Delete functions.
660
2dc74dc1
AC
661 * defs.h (xmfree): Delete.
662 * utils.c (xmfree): Delete function.
663 (xfree): Inline calls to xmfree and mfree.
664 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
665 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
666 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
667 * somread.c (som_symfile_finish): Ditto.
668 * objfiles.c (allocate_objfile, free_objfile):
669 * nlmread.c (nlm_symfile_finish): Ditto.
670 * hpread.c (hpread_symfile_finish): Ditto.
671 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
672 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
673 * coffread.c (coff_symfile_finish): Ditto.
674
aa2ee5f6
AC
675 * defs.h (xmcalloc): Delete declaration.
676 * utils.c (xmcalloc): Delete.
677 (xcalloc): Inline calls to xmcalloc and mcalloc.
678 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
679 xcalloc and xfree.
680 * symtab.c (create_demangled_names_hash): Ditto.
681
0efffb96
AC
682 * defs.h (xmrealloc): Delete.
683 * utils.c (xmrealloc): Delete.
684 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
685 * symmisc.c (extend_psymbol_list): Use xrealloc.
686 * source.c (find_source_lines): Ditto.
687 * hpread.c (hpread_lookup_type): Ditto.
688 * dbxread.c (add_bincl_to_list): Ditto.
689
7936743b
AC
690 * utils.c (xmmalloc): Delete.
691 (xmalloc): Inline xmmalloc and mmalloc calls.
692 (msavestring): Use xmalloc.
693 * defs.h (xmmalloc): Delete declaration.
694 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
695 xmmalloc.
696 * symmisc.c (extend_psymbol_list): Ditto.
697 * symfile.c (init_psymbol_list): Ditto.
698 * source.c (find_source_lines): Ditto.
699 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
700 * elfread.c (elf_symtab_read): Ditto.
701 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
702 * coffread.c (coff_symfile_init): Ditto.
703
252ab814
DC
7042004-08-10 David Carlton <carlton@bactrian.org>
705
706 * MAINTAINERS: Remove David Carlton from c++ testsuite
707 maintainers.
708
8f5ba92b
JG
7092004-08-10 Jerome Guitton <guitton@gnat.com>
710
711 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
712 print a line feed before the prompt.
713
21749010
MK
7142004-08-10 Mark Kettenis <kettenis@gnu.org>
715
716 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
717
1f011ce2
JB
7182004-08-09 Joel Brobecker <brobecker@gnat.com>
719
720 General cleanup of the AIX xm include file:
721 * config/xm-aix4.h (fd_set): Remove undefine.
722 Remove include of <sys/select.h>.
723 (HAVE_TERMIO): Remove define.
724 (USG): Likewise.
725 (NULL): Remove redefine.
726 (alloca): Remove #pragma.
727 (vfork): Remove define.
728 (termdef): Remove.
729 (SIGWINCH_HANDLER): Remove.
730 (SIGWINCH_HANDLER_BODY): Remove.
731
cf4e7692
MK
7322004-08-09 Mark Kettenis <kettenis@gnu.org>
733
734 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
735 GDB_OSABI_OPENBSD_ELF.
736
ac5754fa
MK
7372004-08-07 Robert Millan <robertmh@gnu.org>
738
739 * bsd-kvm.c: Check for nlist.h before including it.
740
086ec9eb
MK
7412004-08-09 Mark Kettenis <kettenis@gnu.org>
742
bbe06c74
MK
743 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
744 sigcontext' offset consistency checks for ancient BSD.
745
3aa7b3b3
MK
746 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
747
086ec9eb
MK
748 * configure.in: Check for <sys/types.h>. Check return and
749 argument types of ptrace.
750 * configure, config.in: Regenerate.
751
09991fa0
JB
7522004-08-09 Jim Blandy <jimb@redhat.com>
753
754 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
755 rs6000_register_sim_regno): Doc fixes.
756
fed7ba43
JB
7572004-08-08 Joel Brobecker <brobecker@gnat.com>
758
759 * mips-tdep.c: Include "floatformat.h".
760 (n32n64_floatformat_always_valid): New function.
761 (floatformat_n32n64_long_double_big): New constant.
762 (mips_gdbarch_init): Set size and format of long double
763 for N32 and N64 ABIs.
764 * Makefile.in (mips-tdep.o): Update dependencies.
765
456fcf94
AC
7662004-08-08 Andrew Cagney <cagney@gnu.org>
767
2f9b146e
AC
768 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
769 print. Improve script's error messages.
770 * gdbarch.h: Re-generate.
771
456fcf94
AC
772 * gdbarch.sh (pformat): New function.
773 (float_format, double_format, long_double_format): List with bit
774 members. Use pformat when printing.
775 * gdbarch.c, gdbarch.h: Re-generate.
776
69e9e646
NW
7772004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
778
779 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
780 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
781 (ppcnbsd_supply_pcb): New function.
782 (_initialize_ppcnbsd_nat): New prototype and function.
783 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
784 (LOADLIBES): New variable.
785 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
786
5ef2d0aa
AC
7872004-08-08 Andrew Cagney <cagney@gnu.org>
788
789 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
790 (builtin_type_ieee_double, builtin_type_ia64_quad)
791 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
792 BE/LE floating-point types.
793 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
794 (builtin_type_ieee_double, builtin_type_ia64_quad)
795 (builtin_type_ia64_spill): Declare.
796 * doublest.c (_initialize_doublest, floatformat_ieee_single)
797 (floatformat_ieee_double, floatformat_arm_ext)
798 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
799 of LE/BE floatformats.
800 * doublest.h: (struct floatformat, floatformat_ieee_single)
801 (floatformat_ieee_double, floatformat_arm_ext)
802 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
803
5c7f2947
MK
8042004-08-08 Mark Kettenis <kettenis@gnu.org>
805
ecac404d
MK
806 * i386gnu-nat.c (gnu_store_registers): Fix typo.
807
9b8607ce
MK
808 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
809 instead of regcache_raw_supply when storing the registers.
810
f6052080
MK
811 * i386gnu-nat.c: Update copyright year.
812 (gnu_store_registers): Don't use deprecated_registers and
813 deprecated_registers_valid. Use regcache_valid_p and
814 regcache_raw_supply instead.
815
17777823
MK
816 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
817 frame_pc_unwind.
818
5240ceac
MK
819 * procfs.c (procfs_pid_to_str): Remove redundant and unused
820 variables. Incapitalized "process".
821
5c7f2947
MK
822 * configure.in: Add cursesX to the list of possible curses libs.
823 Add cursesX.h to the list of possible curses headers.
824 * configure, config.in: Regenerate.
825
da7d81e3
NW
8262004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
827
828 * configure.in: Test for struct lwp in <sys/lwp.h>.
829 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
830 the offset of l_addr in struct lwp.
831
7f245d65
NW
8322004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
833
834 * bsd-kvm.c: Include "gdbcore.h"
835 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
836
47b3f456
AC
8372004-08-07 Andrew Cagney <cagney@gnu.org>
838
70bd8e24
AC
839 * gdbtypes.c (build_flt, build_complex): New functions.
840 (gdbtypes_post_init): Use.
841
9b0dea39
AC
842 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
843
5cf7abac
AC
844 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
845 through to builtin_type_uint128.
846
64d2b26d
AC
847 * c-exp.y: Use builtin_type function to obtain builtin types.
848
7ad6570d
AC
849 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
850 builtin_uint128.
851 * gdbtypes.c (gdbtypes_post_init): Update.
852 (build_gdbtypes): Move initialization of builtin_type_int0
853 through to builtin_type_uint128 from here ...
854 (_initialize_gdbtypes): ... to here.
855 * d10v-tdep.c (d10v_register_type): Update.
856
47b3f456
AC
857 * doublest.c: Update copyright.
858 (floatformat_from_length): Call error when floatformat is NULL.
859 (extract_floating_by_length): Remove NULL fmt check.
860 (store_floating_by_length): Ditto.
861
0a8146bf
AC
8622004-08-07 Andrew Cagney <cagney@gnu.org>
863
864 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
865 that the register is valid.
866
c0ccb908
MK
8672004-08-05 Mark Kettenis <kettenis@chello.nl>
868
8e6bed05
MK
869 * i386-linux-tdep.c (i386_linux_sigtramp_start)
870 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
871 struct frame_info *. Use safe_frame_unwind_memory instead of
872 deprecated_read_memory_nobpt.
873 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
874 changed signature of i386_linux_sigtramp_start and
875 i386_linux_rt_sigtramp_start.
876
24f9f5e3
MK
877 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
878 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
879 instead of deprecated_read_memory_nobpt.
880 (i386nbsd_sigtramp_p): Adjust for changed signature of
881 i386nbsd_sigtramp_offset.
882
c822af0c
MK
883 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
884 safe_frame_unwind_memory instead of target_read_memory.
885
c0ccb908
MK
886 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
887 !NO_SYS_FILE.
888 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
889 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
890 (_initialize_kernel_u_addr): Remove prototype and function.
891 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
892 !NO_SYS_FILE.
893 * xcoffread.c: Likewise.
894
b9e1c0d6
MK
8952004-08-06 Mark Kettenis <kettenis@gnu.org>
896
897 * vax-nat.c: New file.
898 * vaxbsd-nat.c: Tweak comment.
899 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
900 vaxnbsd-tdep.c.
901 (vax-nat.o): New dependency.
902 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
903 (vax-*-ultrix2*): Remove.
904 * config/vax/vax.mh: New file.
905 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
906 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
907 (vax_register_u_addr): New prototype.
908 (REGISTER_U_ADDR): Define using vax_register_u_addr.
909 * config/vax/vaxult2.mh: Remove file.
910 * config/vax/vaxult.mh: Remove file.
911 * config/vax/vaxbsd.mh: Remove file.
912 * config/vax/vax.mt (TM_FILE): Remove.
913 * config/vax/tm-vaxbsd.h: Remove file.
914
9ad7bec7
JB
9152004-08-06 Joel Brobecker <brobecker@gnat.com>
916
917 * aix-thread.c (get_signaled_thread): New function.
918 (iter_trap): Delete, no longer used.
919 (iter_tid): New function.
920 (pd_update): Find the thread that received the SIGTRAP signal
921 by first locating the kernel thread, and then finding its
922 associated thread.
923
bf0d233d
UW
9242004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
925
926 * lin-lwp.c (child_wait): Continue inferior after processing
927 PTRACE_EVENT_CLONE event.
928
d0f853e1
NN
9292004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
930
931 * MAINTAINERS: Add self to Write-After-Approval.
932
ab14aeb0
JJ
9332004-08-05 Jeff Johnston <jjohnstn@redhat.com>
934
935 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
936 libunwind-xxxx.so" where xxxx is UNW_TARGET.
937
9c8dbfa9
AC
9382004-08-05 Andrew Cagney <cagney@gnu.org>
939
c8f3ca46
AC
940 * config/xm-sysv4.h: Delete file.
941 * config/mips/xm-irix5.h: Delete file.
942 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
943 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
944 * config/ia64/xm-aix.h: Delete file.
945 * config/ia64/aix.mh (XM_FILE): Delete.
946 * config/pa/xm-hppah.h: Delete file.
947 * config/pa/hpux11w.mh (XM_FILE): Delete.
948 * config/pa/hpux11.mh (XM_FILE): Delete.
949 * config/pa/hpux1020.mh (XM_FILE): Delete.
950 * config/pa/hppahpux.mh (XM_FILE): Delete.
951
5f7daaff
AC
952 * config/alpha/xm-alphalinux.h: Delete file.
953 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
954 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
955 * config/alpha/xm-alphaosf.h: Delete file.
956 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
957 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
958 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
959 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
960
69babf95
AC
961 * config/i386/xm-i386v.h: Delete file.
962 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
963 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
964 * config/i386/xm-i386sco.h: Delete file.
965 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
966 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
967 * config/i386/xm-i386v4.h: Delete file.
968 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
969 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
970 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
971 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
972
6f009c8a
AC
973 * config/vax/xm-vax.h: Delete file.
974 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
975 * config/vax/xm-vaxult2.h: Delete file.
976 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
977 * config/vax/vaxult2.mh (XM_FILE): Delete.
978 * config/vax/xm-vaxult.h: Delete file.
979 * config/vax/vaxult.mh (XM_FILE): Delete.
980 * config/vax/xm-vaxbsd.h: Delete file.
981 * config/vax/vaxbsd.mh (XM_FILE): Delete.
982
9c8dbfa9
AC
983 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
984 * gdbarch.h, gdbarch.c: Re-generate.
985 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
986 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
987 * frame.h: Delete deprecated_read_fp from comments.
988 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
989 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
990
84367a3e
MK
9912004-08-04 Mark Kettenis <kettenis@gnu.org>
992
9c8e3411
MK
993 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
994 trampoline in OpenBSD 3.5-current.
995
b87bc0d8
MK
996 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
997 SSE registers.
998
84367a3e
MK
999 * Makefile.in: Remove embedded page breaks.
1000
a44bddec
JB
10012004-08-04 Jim Blandy <jimb@redhat.com>
1002
7ab3286f
JB
1003 * regcache.c (regcache_raw_read): Assert that, after calling
1004 target_fetch_registers, the register we're reading is cached.
1005
a44bddec
JB
1006 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1007 a call to 'internal_error', with a more helpful error message.
1008 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 1009 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 1010
35124113
AC
10112004-08-04 Andrew Cagney <cagney@gnu.org>
1012
1013 * Makefile.in: Update dependencies.
1014
9f643768
JB
10152004-08-04 Jim Blandy <jimb@redhat.com>
1016
6ced10dd
JB
1017 Change the layout of the PowerPC E500 raw register cache to allow
1018 the lower 32-bit halves of the GPRS to be their own raw registers,
1019 not pseudoregisters.
1020 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1021 add ppc_ev0_upper_regnum flag.
1022 * rs6000-tdep.c: #include "reggroups.h".
1023 (spe_register_p): Recognize the ev upper half registers as SPE
1024 registers.
1025 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1026 registers.
1027 (e500_move_ev_register): New function.
1028 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1029 vector registers are the pseudo-registers now, formed by splicing
1030 together the gprs and the upper-half registers.
1031 (e500_register_reggroup_p): New function.
1032 (P): Macro deleted.
1033 (P8, A4): New macro.
1034 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1035 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1036 macros.
1037 (registers_e500): Rearrange register set so that the raw register
1038 set contains 32-bit GPRs and upper-half registers, and the SPE
1039 vector registers become pseudo-registers.
1040 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1041 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1042 register numbers are now the same for the E500 as they are for
1043 other PowerPC variants. Register e500_register_reggroup_p as the
1044 register group function for the E500.
1045 * Makefile.in (rs6000-tdep.o): Update dependencies.
1046
1047 Adapt PPC E500 native support to the new raw regcache layout.
1048 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1049 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1050 (fetch_spe_register, store_spe_register): Handle fetching/storing
1051 all the SPE registers at once, if regno == -1. These now take
1052 over the job of fetch_spe_registers and store_spe_registers.
1053 (fetch_spe_registers, store_spe_registers): Deleted.
1054 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1055 unconditionally; they're always raw. Fetch/store SPE upper half
1056 registers, if present, instead of ev registers.
1057 (fetch_register, store_register): Remove sanity checks: gprs are
1058 never pseudo-registers now, so we never need to even mention any
1059 registers that are ever pseudoregisters.
1060
9f643768
JB
1061 Use a fixed register numbering when communicating with the PowerPC
1062 simulator.
1063 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1064 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1065 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1066 New functions.
1067 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1068 init_sim_regno_table.
1069 * Makefile.in (gdb_sim_ppc_h): New variable.
1070 (rs6000-tdep.o): Update dependencies.
1071
1e2279c8
AC
10722004-08-02 Andrew Cagney <cagney@gnu.org>
1073
1d94326f
AC
1074 * cris-tdep.c (cris_register_size): Restore function, still used
1075 locally.
1076
331ae7ed
AC
1077 * gdbarch.sh (deprecated_target_read_fp)
1078 (deprecated_frame_locals_address, deprecated_frame_args_address)
1079 (deprecated_frame_chain_valid, deprecated_frame_chain)
1080 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1081 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1082 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1083 * gdbarch.h, gdbarch.c: Re-generate.
1084 * regcache.c (deprecated_read_fp): Do not call
1085 DEPRECATED_TARGET_READ_FP_P.
1086 * infcmd.c (default_print_registers_info): Do not call
1087 DEPRECATED_DO_REGISTERS_INFO.
1088 * frame-base.c (default_frame_locals_address): Do not call
1089 DEPRECATED_FRAME_LOCALS_ADDRESS.
1090 (default_frame_args_address): Do not call
1091 DEPRECATED_FRAME_ARGS_ADDRESS.
1092
1e2279c8
AC
1093 * gdbarch.sh (deprecated_register_raw_size)
1094 (deprecated_register_virtual_size:int): Delete.
1095 * gdbarch.h, gdbarch.c: Re-generate.
1096 * cris-tdep.c (cris_register_size): Delete.
1097 (cris_gdbarch_init): Update.
1098 * alpha-tdep.c (alpha_register_raw_size)
1099 (alpha_register_virtual_size): Delete.
1100 (alpha_gdbarch_init): Update.
1101
a90c06b4
AC
1102 * gdbarch.sh (deprecated_register_virtual_type)
1103 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1104 (deprecated_dummy_write_sp): Delete.
1105 * gdbarch.h, gdbarch.c: Re-generate.
1106
f42accbe
AC
1107 * gdbarch.sh (deprecated_register_bytes): Delete.
1108 * gdbarch.h, gdbarch.c: Re-generate.
1109 * regcache.c (deprecated_register_bytes): New function.
1110 * regcache.h (deprecated_register_bytes): Declare.
1111 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1112 * v850-tdep.c (v850_gdbarch_init): Update.
1113 * sh64-tdep.c (sh64_gdbarch_init): Update.
1114 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1115 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1116 * mcore-tdep.c (mcore_gdbarch_init): Update.
1117 * cris-tdep.c (cris_gdbarch_init): Update.
1118 * arm-tdep.c (arm_gdbarch_init): Update.
1119 * remote.c (init_remote_state): Update.
1120 * remote-vx.c (vx_prepare_to_store): Update.
1121 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1122 * irix5-nat.c (fetch_core_registers): Update.
1123 * cris-tdep.c (cris_register_bytes_ok): Update.
1124 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1125
45c9dd44
AC
1126 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1127 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1128 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1129 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1130 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1131 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1132 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1133 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1134 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1135 with mips_insn16 and mips_insn32.
1136
3acba339
AC
1137 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1138 * rs6000-tdep.c (rs6000_push_dummy_call)
1139 (rs6000_extract_return_value): Use register_size.
1140 * xstormy16-tdep.c (xstormy16_get_saved_register)
1141 (xstormy16_extract_return_value): Ditto.
1142 * valops.c (value_assign): Ditto.
1143 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1144 * v850-tdep.c (v850_extract_return_value): Ditto.
1145 * tracepoint.c (collect_symbol): Ditto.
1146 * target.c (debug_print_register): Ditto.
1147 * stack.c (frame_info): Ditto.
1148 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1149 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1150 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1151 (store_register_using_P): Ditto.
1152 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1153 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1154 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1155 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1156 * regcache.c (deprecated_read_register_bytes)
1157 (deprecated_write_register_bytes, read_register)
1158 (write_register): Ditto.
1159 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1160 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1161 * monitor.c (monitor_supply_register, monitor_fetch_register)
1162 (monitor_store_register): Ditto.
1163 * mn10300-tdep.c (mn10300_pop_frame_regular)
1164 (mn10300_print_register): Ditto.
1165 * mipsv4-nat.c (fill_fpregset): Ditto.
1166 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1167 (mips64_fill_fpregset): Ditto.
1168 * mi/mi-main.c (register_changed_p, get_register)
1169 (mi_cmd_data_write_register_values): Ditto.
1170 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1171 * irix5-nat.c (fill_gregset, fetch_core_registers):
1172 * infrun.c (write_inferior_status_register): Ditto.
1173 * infptrace.c (fetch_register, store_register): Ditto.
1174 * infcmd.c (default_print_registers_info): Ditto.
1175 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1176 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1177 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1178 * hpux-thread.c (hpux_thread_fetch_registers)
1179 (hpux_thread_store_registers): Ditto.
1180 * hppah-nat.c (store_inferior_registers, fetch_register):
1181 * findvar.c (value_from_register): Ditto.
1182 * dve3900-rom.c (fetch_bitmapped_register):
1183 * cris-tdep.c (cris_gdbarch_init): Ditto.
1184 * alpha-tdep.h: Ditto.
1185 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1186
01e1877c
AC
1187 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1188 DEPRECATED_REGISTER_RAW_SIZE from comments.
1189 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1190 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1191 DEPRECATED_REGISTER_RAW_SIZE.
1192 * findvar.c (value_of_register): Simplify by assuming that the
1193 registers raw and virtual sizes are identical.
1194 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1195 comment.
1196 * arch-utils.c (generic_register_size): Simplify by assuming
1197 register_type.
1198
73f458fb
AC
1199 * regcache.c (legacy_read_register_gen, real_register)
1200 (legacy_write_register_gen): Delete, not used.
1201
336a3131
AC
1202 * regcache.c (struct regcache_descr): Delete legacy_p.
1203 (init_legacy_regcache_descr): Delete function.
1204 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1205 Do not use deprecated register functions.
1206 (regcache_raw_read, deprecated_write_register_gen):
1207 (deprecated_read_register_gen, regcache_raw_write): Delete code
1208 predicated on legacy_p.
1209 (register_size): Delete check against register raw size.
1210
c1d546cd
AC
1211 * cris-tdep.c (cris_register_type): Replace
1212 cris_register_virtual_type.
1213 (cris_gdbarch_init): Update, set register_type.
1214
48c2c0a6
AC
1215 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1216 * gdbarch.h, gdbarch.c: Re-generate.
1217 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1218 (arm_gdbarch_init) Do not set frameless function invocation.
1219 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1220 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1221 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1222 (frv_gdbarch_init): Do not set frameless function invocation.
1223 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1224 * sh-tdep.c (sh_gdbarch_init): Ditto.
1225 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1226 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1227 * avr-tdep.c (avr_gdbarch_init): Ditto.
1228
474093a6
AC
1229 * blockframe.c (legacy_frame_chain_valid): Delete function.
1230
3c109c8b
AC
1231 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1232 and pc. Update comments.
1233 (pc_in_dummy_frame): Delete function.
1234 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1235 use the "id".
1236 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1237 call_hi, top and pc, use the id.
1238 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1239
96860204
AC
1240 * dummy-frame.c: Include "gdb_string.h".
1241 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1242 (generic_save_dummy_frame_tos): Delete.
1243 (dummy_frame_push): New function, replaces above.
1244 * dummy-frame.h: Update copyright.
1245 (dummy_frame_push): Declare.
1246 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1247 (generic_save_call_dummy_addr): Delete declarations.
1248 * infcall.c: Include "dummy-frame.h".
1249 (call_function_by_hand): Add locals caller_regcache,
1250 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1251 with call to frame_save_as_regcache plus cleanup. Delete calls to
1252 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1253 Move clear_proceed_status to just before the resume, add call to
1254 dummy_frame_push (discard cleanup).
1255 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1256 (dummy-frame.o): Add $(gdb_string_h).
1257
d67ec5db
AC
12582004-08-01 Andrew Cagney <cagney@gnu.org>
1259
1260 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1261 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1262 * dummy-frame.c (find_dummy_frame): Delete.
1263 (struct dummy_frame_cache, dummy_frame_sniffer)
1264 (dummy_frame_prev_register, dummy_frame_this_id)
1265 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1266 frame unwinder using a dummy_frame_cache.
1267
a81dcb05
AC
12682004-08-01 Andrew Cagney <cagney@gnu.org>
1269
1270 * frame.h (frame_save_as_regcache): Declare.
1271 * frame.c (frame_save_as_regcache): New function.
1272 (do_frame_read_register): Replace do_frame_unwind_register.
1273 (frame_pop): Use frame_save_as_regcache.
1274 * dummy-frame.c (generic_push_dummy_frame): Use
1275 frame_save_as_regcache.
1276
aa495d11
JB
12772004-08-01 Joel Brobecker <brobecker@gnat.com>
1278
1279 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1280 file as included until we record the first line in the linetable.
1281
ff65ac78
AC
12822004-08-01 Andrew Cagney <cagney@gnu.org>
1283
1284 * frame.h (deprecated_pop_dummy_frame)
1285 (deprecated_read_register_dummy)
1286 (deprecated_generic_find_dummy_frame): Delete.
1287 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1288 (deprecated_read_register_dummy)
1289 (deprecated_find_dummy_frame_regcache)
1290 (discard_innermost_dummy)
1291 (deprecated_pop_dummy_frame): Delete.
1292 (dummy_frame_this_id): Simplify.
1293 (struct dummy_frame): Delete "fp" and "sp".
1294 (find_dummy_frame): Simplify.
1295 (generic_push_dummy_frame): Do not set "fp" or "sp".
1296 (fprint_dummy_frames): Do not print "fp" and "sp"
1297
37bdc87e
MK
12982004-08-01 Mark Kettenis <kettenis@gnu.org>
1299
1300 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1301 (struct i386_insn): New structure.
1302 (i386_match_insn): New function.
1303 (i386_frame_setup_skip_insns): New variable.
1304 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1305 array i386_frame_setup_insns of instructions that should be
1306 skipped inside the frame setup sequence.
1307
8241eaa6
AC
13082004-08-01 Andrew Cagney <cagney@gnu.org>
1309
5bc602c7
AC
1310 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1311 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1312 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1313 * stack.c (frame_info): Delete references to
1314 DEPRECATED_FRAME_INIT_SAVED_REGS and
1315 deprecated_get_frame_saved_regs.
1316 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1317 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1318 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1319 (frame_unwind_register_signed)
1320 (frame_unwind_register_unsigned)
1321 (frame_unwind_unsigned_register): Use register_size.
1322 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1323 (deprecated_frame_xmalloc_with_cleanup)
1324 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1325 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1326
03d363a1
AC
1327 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1328 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1329 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1330 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1331
8241eaa6
AC
1332 * infcall.c (call_function_by_hand): Do not use
1333 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1334 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1335 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1336 DEPRECATED_STACK_ALIGN.
1337
f00df8b7
AC
13382004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1339
1340 Committed by Andrew Cagney.
1341 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1342
eec63939
AC
13432004-08-01 Andrew Cagney <cagney@gnu.org>
1344
1345 * mips-tdep.c (mips16_frame_cache)
1346 (mips16_frame_this_id, mips16_frame_prev_register)
1347 (mips16_frame_unwind, mips16_frame_sniffer)
1348 (mips16_frame_base_address, mips16_frame_base)
1349 (mips16_frame_base_sniffer, mips32_frame_cache)
1350 (mips32_frame_this_id, mips32_frame_prev_register)
1351 (mips32_frame_unwind, mips32_frame_sniffer)
1352 (mips32_frame_base_address, mips32_frame_base)
1353 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1354 separate heuristic mips16 and mips32 unwinders.
1355 (mips_stub_frame_cache, mips_stub_frame_this_id)
1356 (mips_stub_frame_prev_register)
1357 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1358 (mips_stub_frame_base_address, mips_stub_frame_base)
1359 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1360 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1361 match true mdebug frames.
1362 (non_heuristic_proc_desc): Add forward declaration.
1363
e66299b3
AC
13642004-08-01 Andrew Cagney <cagney@gnu.org>
1365
83cbbf3e
AC
1366 * config/mips/tm-irix6.h: Delete file.
1367 * config/mips/tm-irix5.h: Delete file.
1368 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1369 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1370
22d41b37
AC
1371 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1372 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1373 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1374 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1375 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1376 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1377 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1378 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1379 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1380 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1381 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1382 (TARGET_SIGNAL_RAW_VALUES): Delete.
1383 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1384 Delete.
1385 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1386 (TARGET_HW_WATCH_LIMIT): Delete.
1387 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1388 * minimon.h: Delete file.
1389
e66299b3
AC
1390 * trad-frame.c (trad_frame_get_this_base)
1391 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1392 functions.
1393 * trad-frame.h (trad_frame_set_this_base)
1394 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1395
1f67027d
AC
13962004-07-31 Andrew Cagney <cagney@gnu.org>
1397
1398 * trad-frame.c (trad_frame_get_prev_register): Rename
1399 trad_frame_get_prev_register.
1400 * vax-tdep.c (vax_frame_prev_register): Update.
1401 * trad-frame.h: Update.
1402 * trad-frame.c (trad_frame_get_register): Update.
1403 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1404 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1405 Update.
1406 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1407 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1408 Update.
1409 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1410 Update.
1411 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1412 Update.
1413 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1414 Update.
1415 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1416 Update.
1417 * s390-tdep.c (s390_frame_prev_register)
1418 (s390_stub_frame_prev_register)
1419 (s390_sigtramp_frame_prev_register): Update.
1420 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1421 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1422 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1423 * m88k-tdep.c (m88k_frame_prev_register)
1424 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1425 * m32r-tdep.c (m32r_frame_prev_register): Update.
1426 * hppa-tdep.c (hppa_frame_prev_register_helper)
1427 * frv-tdep.c (frv_frame_prev_register): Update.
1428 * d10v-tdep.c (d10v_frame_prev_register): Update.
1429 * cris-tdep.c (cris_frame_prev_register): Update.
1430 * avr-tdep.c (avr_frame_prev_register): Update.
1431 * arm-tdep.c (arm_prologue_prev_register)
1432 (arm_sigtramp_prev_register): Update.
1433
c1bf6f65
AC
14342004-07-31 Andrew Cagney <cagney@gnu.org>
1435
1436 * frame.h (legacy_saved_regs_unwind)
1437 (legacy_frame_chain_valid, legacy_frame_p)
1438 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
1439 * dummy-frame.c (dummy_frame_this_id): Simplify.
1440 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
1441 * frame.c (struct frame_info): Delete the field "type".
1442 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1443 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1444 (legacy_saved_regs_unwind, legacy_frame_p)
1445 (frame_type_from_pc): Delete.
1446 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1447 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1448
dc856692
MK
14492004-07-31 Mark Kettenis <kettenis@gnu.org>
1450
5a5effe1
MK
1451 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1452 indentation.
1453
d4fd50a6
MK
1454 * mips-nat.c: Remove file.
1455 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1456 (mips-nat.o): Remove dependency.
1457
2689df5a
MK
1458 * infptrace.c: Update copyright year.
1459 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1460 explicitly setting the buffer to all zeroes.
1461
dc856692
MK
1462 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1463 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1464
763910e0
AC
14652004-07-30 Andrew Cagney <cagney@gnu.org>
1466
1467 * GDB 6.2 released from gdb_6_2-branch.
1468
0b66e38c
EZ
14692004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1470
1471 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1472
1473 * exec.c (exec_file_attach):
1474 * nto-tdep.c (nto_find_and_open_solib):
1475 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1476 * solib.c (solib_open):
1477 * somsolib.c (som_solib_sizeof_symbol_table):
1478 * source.c (is_regular_file, openp, open_source_file):
1479 * symfile.c (symfile_bfd_open):
1480 * wince.c (upload_to_device): Differentiate between the search for
1481 binary and source files.
1482
be7d7357
AC
14832004-07-30 Andrew Cagney <cagney@gnu.org>
1484
1485 * complaints.c (_initialize_complaints): Pass NULL to
1486 add_setshow_zinteger_cmd for help_doc.
1487 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1488
ddc9cd0f
AC
14892004-07-30 Andrew Cagney <cagney@gnu.org>
1490
1491 Fix PR i18n/761.
1492 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1493 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1494 $(PACKAGE).pot and update-po.
1495 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1496 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1497 (update-po): New rules.
1498 (localedir): Define using autoconf.
1499 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1500 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1501 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1502 * configure.in: Generate CATALOGS and LINGUAS from contents of
1503 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1504 * configure: Re-generate.
1505 * po/gdbtext: New file
1506
e92f3704
JG
15072004-07-30 Jerome Guitton <guitton@gnat.com>
1508
1509 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1510 order.
1511
b0f35d58
DL
15122004-07-30 David Lecomber <dsl@sources.redhat.com>
1513
1514 * dwarf2read.c (read_file_scope): Set producer if attribute
1515 present.
1516 (struct dwarf2_cu): Added new member producer.
1517
ce7d4522
JG
15182004-07-30 Jerome Guitton <guitton@gnat.com>
1519
1520 * inflow.c (kill_command): release file handles in BFD.
1521 * exec.c (exec_file_attach): Ditto.
1522 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1523
05ee07c7
AC
15242004-07-29 Andrew Cagney <cagney@gnu.org>
1525
1526 * PROBLEMS (mips-irix): Note that it is broken.
1527
62eceb47
AC
15282004-07-29 Andrew Cagney <cagney@gnu.org>
1529
e57b8d41
AC
1530 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1531 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1532
d334389b
AC
1533 * config/xm-nbsd.h: Delete file.
1534 * config/arm/xm-nbsd.h: Delete file.
1535 * config/i386/xm-nbsd.h: Delete file.
1536 * config/ns32k/xm-nbsd.h: Delete file.
1537 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1538 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1539 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1540 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1541 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1542
e910f676
AC
1543 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1544 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1545 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1546 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1547 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1548 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1549
6fa856b9
AC
1550 * config/powerpc/xm-linux.h: Delete empty file.
1551 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1552 * config/powerpc/linux.mh (XM_FILE): Delete.
1553 * config/m68k/xm-linux.h: Delete empty file.
1554 * config/m68k/linux.mh (XM_FILE): Delete.
1555 * config/ia64/xm-linux.h: Delete empty file.
1556 * config/ia64/linux.mh (XM_FILE): Delete.
1557 * config/arm/xm-linux.h: Delete empty file.
1558 * config/arm/linux.mh (XM_FILE): Delete.
1559
471ae5ae
AC
1560 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1561 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1562 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1563 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1564 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1565 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1566 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1567 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1568
62eceb47
AC
1569 * config/m68k/xm-m68k.h: Delete file.
1570 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1571 copyright.
1572 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1573 * config/pa/xm-linux.h: Delete empty file.
1574 * config/pa/linux.mh (XM_FILE): Delete.
1575 * config/i386/xm-i386.h: Delete empty file.
1576 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1577 "i386/xm-i386.h".
1578 * config/i386/obsdaout.mh (XM_FILE): Delete.
1579 * config/i386/obsd64.mh (XM_FILE): Delete.
1580 * config/i386/fbsd64.mh (XM_FILE): Delete.
1581 * config/i386/nto.mh (XM_FILE): Delete.
1582 * config/i386/obsd.mh (XM_FILE): Delete.
1583 * config/i386/linux64.mh (XM_FILE): Delete.
1584 * config/i386/linux.mh (XM_FILE): Delete.
1585 * config/i386/i386sol2.mh (XM_FILE): Delete.
1586 * config/i386/i386gnu.mh (XM_FILE): Delete.
1587 * config/i386/fbsd.mh (XM_FILE): Delete.
1588 * config/i386/nbsd64.mh (XM_FILE): Delete.
1589
c35f4ffc
AC
15902004-07-29 Andrew Cagney <cagney@gnu.org>
1591
1592 * config/pa/xm-linux.h: Do not include "floatformat.h".
1593 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1594 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1595 * config/i386/xm-i386.h: Do not include "floatformat.h".
1596 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1597 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1598 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1599 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1600 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1601 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1602 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1603 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1604 * configure, config.in: Regenerate.
1605 * configure.host (gdb_host_float_format, gdb_host_double_format)
1606 (gdb_host_long_double_format): Set according to the host.
1607
624a44a3
AC
16082004-07-29 Andrew Cagney <cagney@gnu.org>
1609
1610 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1611
0dea2468
AC
16122004-07-28 Andrew Cagney <cagney@gnu.org>
1613
1614 * PROBLEMS: Mention threads/1650.
1615 * NEWS: Mention the NPTL fix.
1616
b3f42336
AC
16172004-07-28 Andrew Cagney <cagney@gnu.org>
1618
1619 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1620 (add_setshow_cmd_full): Make static.
1621 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1622 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1623 * cli/cli-decode.c (add_setshow_filename_cmd)
1624 (add_setshow_string_cmd): New functions.
1625 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1626 * mips-tdep.c (_initialize_mips_tdep): Update.
1627 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1628 * cli/cli-logging.c (_initialize_cli_logging): Update.
1629 * complaints.c (_initialize_complaints): Update.
1630 * remote.c (_initialize_remote): Update.
1631
3b64bf98
AC
16322004-07-28 Andrew Cagney <cagney@gnu.org>
1633
1634 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1635 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1636 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1637 print parameters. Make string parameters constant.
1638 * command.h: Update. Update copyright.
1639 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1640 * observer.c (_initialize_observer): Ditto.
1641 * frame.c (_initialize_frame): Ditto.
1642 * complaints.c (_initialize_complaints): Ditto.
1643 * maint.c (_initialize_maint_cmds): Ditto.
1644 * target.c (initialize_targets): Ditto.
1645 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1646 * infcall.c (_initialize_infcall): Ditto.
1647 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1648 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1649 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1650 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1651 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1652
e9667a65
AC
16532004-07-28 Andrew Cagney <cagney@gnu.org>
1654
54a5b07d
AC
1655 * gdbtypes.c (lookup_primitive_typename): Delete function.
1656 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1657 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1658 * gdbtypes.c (lookup_typename): Ditto.
1659 * f-exp.y (yylex): Ditto.
1660 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1661
e9667a65
AC
1662 * scm-lang.c (c_builtin_types): Delete extern declaration.
1663 (scm_language_defn): Replace
1664 string_char_type and primitive_type_vector with
1665 la_language_arch_info.
1666 * jv-lang.c (java_language_defn): Replace
1667 string_char_type and primitive_type_vector with
1668 la_language_arch_info.
1669 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1670 c_builtin_types in comment.
1671 * c-lang.h (struct language_arch_info): Declare opaque.
1672 (c_language_arch_info): Declare.
1673 (c_builtin_types): Delete declaration.
1674 * c-lang.c (c_language_arch_info): Set string_char_type to
1675 builtin_char, not builtin_true_char. Make global.
1676 (c_builtin_types): Delete array.
1677 (asm_language_defn, minimal_language_defn): Replace
1678 string_char_type and primitive_type_vector with
1679 la_language_arch_info.
1680
685419e2
AC
16812004-07-28 Andrew Cagney <cagney@gnu.org>
1682
1683 * gdbtypes.h (struct builtin_type): Rename true_char to
1684 builtin_true_char.
1685 * gdbtypes.c (gdbtypes_post_init): Update.
1686 * c-lang.c (arch_info): New function.
1687 (enum c_primitive_types): New enum.
1688 (c_language_defn): Instead of string_char_type and
1689 primitive_type_vector set la_language_arch_info.
1690
5a44ea29
AC
16912004-07-28 Andrew Cagney <cagney@gnu.org>
1692
1693 * language.h (struct language_arch_info): Fix typo
1694 s/primative/primitive/.
1695 * gdbtypes.c (lookup_primitive_typename): Ditto.
1696 * language.c (language_lookup_primitive_type_by_name)
1697 (unknown_language_arch_info): Ditto.
1698
f290d38e
AC
16992004-07-27 Andrew Cagney <cagney@gnu.org>
1700
1701 * defs.h (enum language): Add nr_languages.
1702 * language.h (struct language_arch_info): Define.
1703 (struct language_defn): Add la_language_arch_info.
1704 (language_lookup_primative_type_by_name): Declare.
1705 (language_string_char_type): Declare.
1706 * language.c (_initialize_language, language_gdbarch_post_init)
1707 (struct language_gdbarch, language_gdbarch_data): Implement
1708 per-architecture language information.
1709 (unknown_language_arch_info, language_string_char_type)
1710 (language_lookup_primative_type_by_name): New functions.
1711 (unknown_language_defn, auto_language_defn)
1712 (local_language_defn): Set la_language_arch_info to
1713 unknown_language_arch_info.
1714 (unknown_builtin_types): Delete.
1715 * gdbtypes.c (lookup_primitive_typename): Use
1716 language_lookup_primative_type_by_name.
1717 (create_string_type): Use language_string_char_type.
1718 * values.c (value_from_string): Use language_string_char_type.
1719 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1720 * p-lang.c (pascal_language_defn): Ditto.
1721 * m2-lang.c (m2_language_defn): Ditto.
1722 * jv-lang.c (java_language_defn): Ditto.
1723 * objc-lang.c (objc_language_defn): Ditto.
1724 * f-lang.c (f_language_defn): Ditto.
1725 * c-lang.c (c_language_defn, cplus_language_defn)
1726 (asm_language_defn, minimal_language_defn): Ditto.
1727
000177f0
AC
17282004-07-27 Andrew Cagney <cagney@gnu.org>
1729
1730 * gdbtypes.h (struct builtin_type): Declare.
1731 (builtin_type): Declare.
1732 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1733 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1734 (gdbtypes_post_init): New function.
1735 (builtin_type): New function.
1736
e22f895c
KI
17372004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1738
1739 * remote-m32r-sdi.c: Fix breakpoint bug.
1740 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1741 recv_char_data, recv_long_data): New functions to replace communication
1742 sequences.
1743
536517dd
MC
17442004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1745
1746 Document PR threads/1650.
1747 * PROBLEMS (Threads): Document problem with many threads
1748
a0a44d18
AC
17492004-07-26 Andrew Cagney <cagney@gnu.org>
1750
1751 * gdb-mi.el: Move from here ...
1752 * mi/gdb-mi.el: ... to here.
1753
7ac4ac06
AC
17542004-07-26 Andrew Cagney <cagney@gnu.org>
1755
1756 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1757 * main.c (captured_main): When in batch mode always detach.
1758
a1b461bf
AC
17592004-07-26 Andrew Cagney <cagney@gnu.org>
1760
1761 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1762 and h8300 as broken.
1763 * NEWS: END-OF-LIFE frame compatibility module.
1764 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1765 specific comments.
1766
cb1a6d5f
AC
17672004-07-26 Andrew Cagney <cagney@gnu.org>
1768
1769 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1770 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1771 * wince.c (_initialize_wince): Update.
1772 * win32-nat.c (_initialize_win32_nat): Update.
1773 * varobj.c (_initialize_varobj): Update.
1774 * valops.c (_initialize_valops): Update.
1775 * utils.c (initialize_utils, initialize_utils): Update.
1776 * tui/tui-win.c (_initialize_tui_win): Update.
1777 * top.c (init_main): Update.
1778 * symfile.c (_initialize_symfile): Update.
1779 * source.c (_initialize_source): Update.
1780 * somsolib.c (_initialize_som_solib): Update.
1781 * solib.c (_initialize_solib): Update.
1782 * solib-frv.c (_initialize_frv_solib): Update.
1783 * serial.c (_initialize_serial): Update.
1784 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1785 * remote.c (_initialize_remote, _initialize_remote): Update.
1786 * remote-vx.c (_initialize_vx): Update.
1787 * remote-utils.c (_initialize_sr_support): Update.
1788 * remote-sds.c (_initialize_remote_sds): Update.
1789 * remote-mips.c (_initialize_remote_mips): Update.
1790 * remote-e7000.c (_initialize_remote_e7000): Update.
1791 * proc-api.c (_initialize_proc_api): Update.
1792 * printcmd.c: Update.
1793 * parse.c (_initialize_parse): Update.
1794 * pa64solib.c (_initialize_pa64_solib): Update.
1795 * p-valprint.c (_initialize_pascal_valprint): Update.
1796 * monitor.c (_initialize_remote_monitors): Update.
1797 * mips-tdep.c (_initialize_mips_tdep): Update.
1798 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1799 * maint.c (_initialize_maint_cmds): Update.
1800 * lin-lwp.c (_initialize_lin_lwp): Update.
1801 * language.c (_initialize_language): Update.
1802 * kod.c (_initialize_kod): Update.
1803 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1804 * i386-tdep.c (_initialize_i386_tdep): Update.
1805 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1806 * gdbarch.sh: Update.
1807 * gdbarch.c: Re-generate.
1808 * gdb-events.sh: Update.
1809 * gdb-events.c: Re-generate.
1810 * frame.c (_initialize_frame): Update.
1811 * exec.c: Update.
1812 * demangle.c (_initialize_demangler): Update.
1813 * dcache.c (_initialize_dcache): Update.
1814 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1815 * cp-valprint.c (_initialize_cp_valprint): Update.
1816 * corefile.c (_initialize_core): Update.
1817 * command.h: Update.
1818 * cli/cli-decode.h: Update.
1819 * cli/cli-cmds.c (init_cli_cmds): Update.
1820 * charset.c (_initialize_charset): Update.
1821 * breakpoint.c (_initialize_breakpoint): Update.
1822 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1823 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1824 * aix-thread.c (_initialize_aix_thread): Update.
1825
b4632131
MK
18262004-07-24 Mark Kettenis <kettenis@gnu.org>
1827
1828 Partial fix for PR backtrace/1718.
1829 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1830 that GCC migrates into the prolugue. Don't handle any
1831 instructions that clobber %ebx.
1832
822c9732
AC
18332004-07-23 Andrew Cagney <cagney@gnu.org>
1834
1835 Use regcache_raw_collect instead of regcache_collect.
1836 * regcache.h (regcache_collect): Delete declaration.
1837 * regcache.c (regcache_colect): Delete function.
1838 * win32-nat.c (do_child_store_inferior_registers): Update.
1839 * sol-thread.c (sol_thread_store_registers): Update.
1840 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1841 * rs6000-nat.c (store_register): Update.
1842 * remote.c (store_register_using_P, remote_store_registers): Update.
1843 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1844 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1845 (fill_vrregset, store_spe_registers, fill_gregset)
1846 (fill_gregset): Update.
1847 * nto-procfs.c (procfs_store_registers): Update.
1848 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1849 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1850 * m68klinux-nat.c (store_register, fill_gregset): Update.
1851 * m68k-tdep.c (fill_gregset): Update.
1852 * infptrace.c (store_register): Update.
1853 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1854 * i386-linux-nat.c (store_register, fill_gregset): Update.
1855 * hppa-linux-nat.c (fill_gregset): Update.
1856 * go32-nat.c (store_register): Update.
1857 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1858 (store_fp_regs): Update.
1859 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1860 (store_nwfpe_extended, store_fpregister, store_fpregs)
1861 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1862 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1863 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1864 (store_regs_user_thread, store_regs_kernel_thread): Update.
1865
32b05c07
MK
18662004-07-24 Mark Kettenis <kettenis@gnu.org>
1867
1868 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1869 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1870 encoding.
1871 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1872 member of `struct comp_unit'.
1873
8567c30f
AC
18742004-07-23 Andrew Cagney <cagney@gnu.org>
1875
1876 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1877 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1878
f6da8dd8
MH
18792004-07-23 Martin Hunt <hunt@redhat.com>
1880 Kevin Buettner <kevinb@redhat.com>
1881
1882 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1883 alignment was being added to the offset instead of multiplied.
1884
bd921882
MK
18852004-07-23 Mark Kettenis <kettenis@gnu.org>
1886
24f033e8
MK
1887 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1888 changed signal trampoline in OpenBSD 3.5-current.
1889
90f3cecd
MK
1890 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1891 <machine/pcb.h> and "bsd-kvm.h".
1892 (sparc64nbsd_supply_pcb): New function.
1893 (_initialize_sparc64nbsd_nat): Renamed from
1894 _initialize_sparcnbsd_nat. Enable libkvm interface.
1895 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1896 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1897 (LOADLIBES): New variable.
1898
a4954a62
MK
1899 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1900
bd921882
MK
1901 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1902
23a6d369
AC
19032004-07-21 Andrew Cagney <cagney@gnu.org>
1904
1905 Use regcache_raw_supply instead of supply_register.
1906 * regcache.h (supply_register): Delete declaration.
1907 * regcache.c (supply_register): Delete function.
1908 * wince.c (do_child_fetch_inferior_registers): Update.
1909 * win32-nat.c (do_child_fetch_inferior_registers)
1910 (fetch_elf_core_registers): Update.
1911 * v850ice.c (v850ice_fetch_registers): Update.
1912 * thread-db.c (thread_db_store_registers): Update.
1913 * sol-thread.c (sol_thread_store_registers): Update.
1914 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1915 * rs6000-nat.c (fetch_register): Update.
1916 * rom68k-rom.c (rom68k_supply_one_register): Update.
1917 * remote.c (remote_wait, remote_async_wait): Update.
1918 * remote-st.c (get_hex_regs): Update.
1919 * remote-sim.c (gdbsim_fetch_register): Update.
1920 * remote-sds.c (sds_fetch_registers): Update.
1921 * remote-rdp.c (remote_rdp_fetch_register): Update.
1922 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1923 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1924 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1925 * remote-hms.c (init_hms_cmds): Update.
1926 * remote-est.c (init_est_cmds): Update.
1927 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1928 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1929 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1930 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1931 (fetch_register, supply_vrregset, supply_vrregset)
1932 (fetch_spe_registers): Update.
1933 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1934 * monitor.c (monitor_supply_register): Update.
1935 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1936 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1937 (mipsnbsd_supply_fpreg): Update.
1938 * mips-nat.c (fetch_inferior_registers)
1939 (fetch_core_registers): Update.
1940 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1941 (supply_fpregset, mips64_supply_gregset)
1942 (mips64_supply_fpregset): Update.
1943 * m68klinux-nat.c (fetch_register, supply_gregset)
1944 (supply_fpregset): Update.
1945 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1946 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1947 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1948 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1949 * infptrace.c (fetch_register): Update.
1950 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1951 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1952 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1953 (gnu_fetch_registers, gnu_store_registers): Update.
1954 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1955 * i386-linux-nat.c (fetch_register, supply_gregset)
1956 (dummy_sse_values): Update.
1957 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1958 * hppah-nat.c (fetch_register): Update.
1959 * hppa-linux-nat.c (fetch_register, supply_gregset)
1960 (supply_fpregset): Update.
1961 * go32-nat.c (fetch_register): Update.
1962 * dve3900-rom.c (fetch_bitmapped_register)
1963 (_initialize_r3900_rom): Update.
1964 * cris-tdep.c (supply_gregset): Update.
1965 * abug-rom.c (init_abug_cmds): Update.
1966 * core-aout.c (fetch_core_registers): Update.
1967 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1968 (fetch_register, fetch_fp_register): Update.
1969 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1970 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1971 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1972 * alphanbsd-tdep.c (fetch_core_registers): Update.
1973 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1974 * alpha-nat.c (fetch_osf_core_registers)
1975 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1976 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1977 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1978
73cc75f3
AC
19792004-07-21 Andrew Cagney <cagney@gnu.org>
1980
1981 * PROBLEMS: Mention breakpoints/1702.
1982 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1983 that is known to work.
1984
a53c66de
AC
19852004-07-21 Andrew Cagney <cagney@gnu.org>
1986
1987 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1988 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1989 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1990 (handle_inferior_event): Wrap call to deprecated
1991 IGNORE_HELPER_CALL in #ifdef.
1992 * config/mips/tm-nbsd.h: Update.
1993
708ff411
JB
19942004-07-20 Jim Blandy <jimb@redhat.com>
1995
412b3060
JB
1996 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1997 bfd_mach_ppc has no segment registers.
1998
13ac140c
JB
1999 Include PowerPC SPR numbers for special-purpose registers.
2000 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2001 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2002 new member in initializer.
2003 (S, S4, SN4, S64): New macros for defining special-purpose
2004 registers.
2005 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2006 registers_403, registers_403GC, registers_505, registers_860,
2007 registers_601, registers_602, registers_603, registers_604,
2008 registers_750, registers_e500): Use them.
2009
708ff411
JB
2010 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2011 replace references with expression used to initialize variable.
2012
1f602b35
AC
20132004-07-20 Andrew Cagney <cagney@gnu.org>
2014
2015 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2016 read_memory_nobpt.
2017 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2018 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2019 (s390_sigtramp_frame_sniffer): Update.
2020 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2021 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2022 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2023 (mips32_fetch_instruction): Update.
2024 * mcore-tdep.c (get_insn): Update.
2025 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2026 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2027 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2028 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2029 (i386_linux_rt_sigtramp_start): Update.
2030 * i386-linux-nat.c (child_resume): Update.
2031 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2032 * hppa-linux-tdep.c (insns_match_pattern): Update.
2033 * gdbcore.h: Update.
2034 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2035 * frame.c (safe_frame_unwind_memory): Update.
2036 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2037 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2038 * alpha-tdep.c (alpha_read_insn): Update.
2039
2cd8546d
AC
20402004-07-20 Andrew Cagney <cagney@gnu.org>
2041
2042 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2043 containing both bytes and mask. Add "frame_type".
2044 * tramp-frame.c (tramp_frame_start): Update.
2045 (tramp_frame_prepend_unwinder): Update.
2046 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2047 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2048 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2049 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2050
f928dd62
EZ
20512004-07-19 Eli Zaretskii <eliz@gnu.org>
2052
2053 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2054 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2055 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2056 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2057
d5c560f7
AC
20582004-07-17 Andrew Cagney <cagney@gnu.org>
2059
860660cb
AC
2060 * NEWS, PROBLEMS: Update for 6.2.
2061
8c266f54
AC
2062 * README: Update to 6.2.
2063
a552edd9
AC
2064 * utils.c (xvasprintf): Call xstrvprintf.
2065
c4a172b5
AC
2066 * parse.c: Update copyright.
2067 (null_post_parser): Eliminate ARGSUSED.
2068
da745b36
AC
2069 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2070 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2071 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2072
9cbc6ef0
AC
2073 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2074 * ppc-linux-nat.c: Use "Linux kernel".
2075 * hppa-linux-tdep.c: Use GNU/Linux.
2076 * hppa-linux-nat.c: Use GNU/Linux.
2077 * dwarfread.c: Add [sic] to use of Linux.
2078
1b89295f
AC
2079 * hppa-linux-nat.c: Do not include <string.h>.
2080 (supply_fpregset): Remove "register" attribute.
2081
d5c560f7
AC
2082 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2083
7ddd7709
MK
20842004-07-17 Mark Kettenis <kettenis@gnu.org>
2085
b1d19a62
MK
2086 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2087 * configure, config.in: Regenerated.
2088
7ddd7709
MK
2089 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2090 "bsd-kvm.h".
2091 (vaxbsd_supply_pcb): New function.
2092 (_initialize_vaxbsd_nat): New prototype and function.
2093 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2094 solib-sunos.o.
2095 (LOADLIBES): New variable.
2096 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2097 (LOADLIBES): New variable.
2098 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2099 (LOADLIBES): New variable.
2100 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2101
2c07db7a
AC
21022004-07-16 Andrew Cagney <cagney@gnu.org>
2103
2104 * defs.h (event_loop_p): Replace variable declaration with macro,
2105 always 1.
2106 * main.c (captured_main): Delete options "-async" and "-noasync".
2107 (event_loop_p): Delete variable.
2108 * NEWS: Mention that "-async" and "-noasync" were removed.
2109
717eb1cf
AC
21102004-07-16 Andrew Cagney <cagney@gnu.org>
2111
2112 * remote-m32r-sdi.c: Re-indent.
2113
c101bc14
JB
21142004-07-16 Jim Blandy <jimb@redhat.com>
2115
5109a438
JB
2116 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2117 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2118 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2119 missing MPC823 SPRs.
2120 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2121 incorrect. (This was corrected in GDB's register name tables on
2122 2004-07-14.)
2123
c101bc14
JB
2124 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2125 should be "esasrr" ("ESA Save and Restore Register").
2126
7ce450bd
AC
21272004-07-16 Andrew Cagney <cagney@gnu.org>
2128
2129 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2130 calls, no longer applicable. Update comments and rename parameter
2131 "step_frame" to "return_frame".
2132
ca73dd9d
AC
21332004-07-16 Andrew Cagney <cagney@gnu.org>
2134
2135 * frame.c (fprint_field): New function.
2136 (fprint_frame_id): Use fprint_field.
2137
31941f6d
JB
21382004-07-15 Joel Brobecker <brobecker@gnat.com>
2139
2140 * ada-lang.c (ada_language_defn): Remove commented out code.
2141
f86a7158
JB
21422004-07-15 Jim Blandy <jimb@redhat.com>
2143
2144 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2145 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2146
c24791ec
JB
21472004-07-14 Jim Blandy <jimb@redhat.com>
2148
29bb1356
JB
2149 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2150
cc98b5cc
JB
2151 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2152
8f088af7
JB
2153 * ppc-tdep.h (ppc_num_srs): New enum constant.
2154
0ea0ec5f
JB
2155 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2156 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2157 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2158 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2159 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2160 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2161 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2162 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2163 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2164 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2165 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2166 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2167 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2168 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2169 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2170 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2171 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2172 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2173 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2174 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2175 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2176 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2177 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2178 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2179 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2180 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2181 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2182 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2183 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2184 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2185 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2186 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2187 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2188 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2189 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2190 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2191 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2192 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2193 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2194 special-purpose register numbers.
2195
c24791ec
JB
2196 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2197 manual mentions 'md_twb', but many mention 'm_twb', and at that
2198 point in the register list.)
2199
d833db3b
AC
22002004-07-14 Andrew Cagney <cagney@gnu.org>
2201
2202 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2203 instead of "internal-error".
2204
080228b2
JB
22052004-07-10 Joel Brobecker <brobecker@gnat.com>
2206
2207 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2208 that was inserted inside a comment.
2209
c268433a
RC
22102004-07-10 Randolph Chung <tausq@debian.org>
2211
2212 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2213 function.
2214 (hppa_hpux_push_dummy_code): New function.
2215 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2216 Set find_global_pointer method.
2217
71009278
MK
22182004-07-10 Mark Kettenis <kettenis@gnu.org>
2219
2220 * NEWS: Mention BSD libkvm interface.
2221
b2fa5097
MS
22222004-07-10 Michael Snyder <msnyder@redhat.com>
2223
2224 * symfile.c (generic_load): Comment typo.
2225 * stack.c (get_selected_block): Ditto.
2226 * regcache.c (regcache_cooked_read): Ditto.
2227 * monitor.c (monitor_debug): Ditto.
2228 * mips-tdep.c (mips_read_pc): Ditto.
2229 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2230 * gdb_mbuild.sh: Ditto.
2231 * gdbarch.sh: Ditto.
2232 * gdbarch.h: Ditto.
2233
c3e5cd34
PH
22342004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2235
8a2225b2
PH
2236 * ada-tasks.c: Remove file.
2237
c3e5cd34
PH
2238 Remove ARI problems:
2239
2240 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2241 beginning of line.
2242
2243 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2244 Add comment.
2245 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2246 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2247 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2248 (UMIN_OF_SIZE): Remove.
2249 (max_of_type): New function to replace orphan macro in gdbtypes.h
2250 (min_of_type): Ditto.
2251 (discrete_type_high_bound): Use max_of_type.
2252 (discrete_type_low_bound): Use min_of_type.
2253 (possible_user_operator_p): Move operator to beginning of line.
2254 (ada_is_variant_part): Ditto.
2255 (ensure_lval): Rewrite to avoid deprecated operations.
2256 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2257 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2258 (ada_enum_name): Remove assignments in 'if' statements.
2259 (build_ada_types): Add gdbarch parameter.
2260 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2261 with gdbarch_data_register_post_init.
2262 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2263 add_show_from_set.
2264
2265 * ada-valprint.c (inspect_it): Remove declaration.
2266 (repeat_count_threshold): Remove declaration.
2267 (ada_print_floating): Remove assignments in 'if' statements.
2268 (print_str): Move operator to beginning of line.
2269
61ce229a
JB
22702004-07-08 Jim Blandy <jimb@redhat.com>
2271
2272 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2273
09bcec80
BR
22742004-07-08 Bob Rossi <bob@brasko.net>
2275
2276 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2277
31c27f77
JJ
22782004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2279
2280 * language.h (struct_language_defn): Add new function pointer:
2281 la_class_name_from_physname. Also add new prototype for
2282 language_class_name_from_physname.
2283 * language.c (language_class_name_from_physname): New function.
2284 (unk_lang_class_name): Ditto.
2285 (unknown_language_defn, auto_language_defn): Change
2286 to add unk_lang_class_name function pointer for
2287 la_class_name_from_physname.
2288 (local_language_defn): Ditto.
2289 * dwarf2read.c (guess_structure_name): Change to call
2290 language_class_name_from_physname.
2291 (determine_class_name): Ditto.
2292 * cp-support.c (class_name_from_physname): Renamed.
2293 (cp_class_name_from_physname): New name of function.
2294 * cp-support.h: Ditto.
2295 * c-lang.c (c_language_defn): Change to add NULL
2296 for class_name_from_physname function pointer.
2297 (cplus_language_defn): Change to add cp_class_name_from_physname.
2298 * jv-lang.c (java_class_name_physname): New function.
2299 (java_find_last_component): New static routine.
2300 (java_language_defn): Add java_class_name_from_physname pointer.
2301 * ada-lang.c (ada_language_defn): Change to add NULL
2302 for class_name_from_physname function pointer.
2303 * f-lang.c (f_language_defn): Ditto.
2304 * m2-lang.c (m2_language_defn): Ditto.
2305 * objc-lang.c (objc_language_defn): Ditto.
2306 * p-lang.c (pascal_language_defn): Ditto.
2307 * scm-lang.c (scm_language_defn): Ditto.
2308
ee28ca0f
AC
23092004-07-06 Andrew Cagney <cagney@gnu.org>
2310
2311 Patch from Bart Robinson.
2312 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2313 (O_LARGEFILE): Define to 0, if not defined.
2314
fdb1bf9d
MK
23152004-07-03 Mark Kettenis <kettenis@gnu.org>
2316
cb162ff6
MK
2317 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2318 <machine/pcb.h> and "bsd-kvm.h".
2319 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2320 (m68kbsd_supply_pcb): New function.
2321 (_initialize_m68kbsd_nat): New prototype and function.
2322 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2323 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2324 (LOADLIBES): New variable.
2325 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2326 (LOADLIBES): New variable.
2327
fdb1bf9d
MK
2328 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2329
963c4174
MK
23302004-07-03 Mark Kettenis <kettenis@gnu.org>
2331
2332 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2333 <sys/proc.h>.
2334 (bsd_kvm_cmdlist): New variable.
2335 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2336 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2337 command and "kvm proc" command.
2338 * Makefile.in (bsd-kvm.o): Update dependencies.
2339
533f1d8f
MK
23402004-07-02 Mark Kettenis <kettenis@gnu.org>
2341
2342 * osabi.c: Update copyright year.
2343 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2344 notes if EI_OSABI is set to ELFOSABI_HPUX.
2345
6780dcde
MS
23462004-07-01 Michael Snyder <msnyder@redhat.com>
2347
2348 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2349 that seems to have gotten whacked out of line.
2350
67bebe79
MK
23512004-07-01 Mark Kettenis <kettenis@gnu.org>
2352
2353 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2354 code.
2355
0b5d8877
PH
23562004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2357
2358 * ada-lang.c (decode_packed_array): Minor change to comment.
2359 (ada_value_slice_ptr): New function.
2360 (ada_value_slice): New function.
2361 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2362 test. Don't know why it is there.
2363 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2364 to avoid dereferencing huge arrays from which one is slicing.
2365 (empty_array): Correct to return an array rather than
2366 a subrange value.
2367 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2368 on empty arrays (let'em use 'FIRST instead).
2369
19c1ef65
PH
23702004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2371
2372 Address complaints from gdb_ari.sh:
2373
2374 * ada-exp.y: Include gdb_string.h rather than string.h.
2375 (convert_char_literal): Reformat declaration.
2376 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2377 * ada-lex.l: Change use of free to xfree (the macro would do so
2378 anyway, but this is harmless).
2379 Include gdb_string.h rather than string.h.
2380 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2381
2382 * ada-lang.c (parse): Remove K&Rism in parameter list.
2383 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2384
d81cbc94
MK
23852004-06-30 Mark Kettenis <kettenis@gnu.org>
2386
2387 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2388 dead code.
2389
07681759
MK
23902004-06-30 Mark Kettenis <kettenis@gnu.org>
2391
2392 * alphabsd-nat.c: Update copyright year.
2393 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2394
f7948b5f
JB
23952004-06-29 Joel Brobecker <brobecker@gnat.com>
2396
6e0cdd28 2397 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
2398 (i386_cygwin_in_solib_call_trampoline): New function.
2399 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2400 and skip_trampoline_code gdbarch methods.
2401
8f113c9a
JB
24022004-06-29 Jim Blandy <jimb@redhat.com>
2403
2404 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2405 name actually used in the dependency lists.
2406
97dc871c
RC
24072004-06-29 Randolph Chung <tausq@debian.org>
2408
2409 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2410
47216e51
CV
24112004-06-29 Corinna Vinschen <vinschen@redhat.com>
2412
2413 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 2414 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
2415 functionality.
2416
e623b504
AC
24172004-06-28 Andrew Cagney <cagney@gnu.org>
2418
2419 * defs.h (xstrvprintf): Declare.
2420 * utils.c (xstrvprintf): New function.
2421 (internal_vproblem, xstrprintf, xasprintf)
2422 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2423 * serial.c (serial_printf): Ditto.
2424 * complaints.c (vcomplaint): Ditto.
2425
79acc9b3
CV
24262004-06-29 Corinna Vinschen <vinschen@redhat.com>
2427
2428 * infcmd.c (attach_command): Move call to target_terminal_inferior
2429 behind loading symbol table.
2430
1daf35d9
AC
24312004-06-28 Andrew Cagney <cagney@gnu.org>
2432
2433 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2434 change - add back extern deprecated_ui_loop_hook declaration.
2435
b435e160
AC
24362004-06-28 Andrew Cagney <cagney@gnu.org>
2437
2438 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2439 xstrprintf.
2440 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2441 (c_value_of_variable): Ditto.
2442 * utils.c (internal_vproblem): Ditto.
2443 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2444 * remote.c (add_packet_config_cmd): Ditto.
2445 * remote-rdp.c (rdp_set_command_line): Ditto.
2446 * regcache.c (regcache_dump): Ditto.
2447 * frv-tdep.c (new_variant, new_variant): Ditto.
2448 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2449 (fbsd_find_memory_regions): Ditto.
2450 * breakpoint.c (create_thread_event_breakpoint)
2451 (create_breakpoints): Ditto.
2452 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2453 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2454
06d5cf63
JB
24552004-06-28 Joel Brobecker <brobecker@gnat.com>
2456
2457 * ada-lang.c: Re-indent file, with some massaging to help indent
2458 a bit when the result is otherwise really too ugly.
2459
35809fad
UW
24602004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2461
2462 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2463 code_addr_p and special_addr_p to 'unsigned int'.
2464
40e20472
MK
24652004-06-27 Mark Kettenis <kettenis@gnu.org>
2466
2467 * i386v4-nat.c: Update copyright year and tweak comment.
2468 (regmap): Remove trailing comma.
2469 (supply_gregset): Rename local variable i to regnum. Call
2470 regcache_raw_supply instead of supply_register.
2471 (fill_gregset): Rename argument regno to regnum. Call
2472 regcache_raw_collect instead of regcache_collect.
2473
12b0b6de
UW
24742004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2475
2476 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2477 and special_addr_p.
2478 (frame_id_build, frame_id_build_special): Update comments.
2479 (frame_id_build_wild): New prototype.
2480 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2481 struct frame_id fields.
2482 (frame_id_build_wild): New function.
2483 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2484
47b42a3e
MK
24852004-06-27 Mark Kettenis <kettenis@gnu.org>
2486
2487 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2488 hppabsd-tdep.c.
2489
1265e4aa
JB
24902004-06-27 Joel Brobecker <brobecker@gnat.com>
2491
2492 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2493
76a01679
JB
24942004-06-27 Joel Brobecker <brobecker@gnat.com>
2495
2496 * ada-lang.c: Re-indent file.
2497
7aca490a
JB
24982004-06-27 Joel Brobecker <brobecker@gnat.com>
2499
2500 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2501 (no_symtab_msg): Likewise.
2502
5e987968
AS
25032004-06-27 Andreas Schwab <schwab@suse.de>
2504
2505 * source.c: Fix whitespace.
2506
315c4276
MK
25072004-06-27 Mark Kettenis <kettenis@gnu.org>
2508
d15be926
MK
2509 * configure.in: Include <sys/param.h> for td_pcb test.
2510 * configure: Regenerated.
2511
9062529b
MK
2512 * i386nbsd-nat.c: New file.
2513 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2514 i386obsd-nat.c and i386obsd-tdep.c.
2515 (i386nbsd-nat.o): New dependency.
2516 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2517 bsd-kvm.o.
2518 (LOADLIBES): New variable.
2519 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2520 bsd-kvm.o.
2521 (LOADLIBES): New variable.
2522
8010310e
MK
2523 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2524 (LOADLIBES): New variable.
2525
efe1d7b9
MK
2526 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2527 fetching from BSD_KVM_PADDR. Correctly lookup address for
2528 "_thread0".
2529
315c4276
MK
2530 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2531 "bsd-kvm.h".
2532 (amd64fbsd_supply_pcb): New funcion.
2533 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2534
399cfac6
DL
25352004-06-27 <david@streamline-computing.com>
2536
2537 Partial fix for PR cli/1056.
2538 * valarith.c: Check for zero in division and remainder
2539 evaluation.
2540
6235f9c8
MK
25412004-06-27 Mark Kettenis <kettenis@gnu.org>
2542
2543 * i387-tdep.c: Remove excessive whitespace.
2544
2726dafc
AC
25452004-06-26 Andrew Cagney <cagney@gnu.org>
2546
2547 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2548 * gdb-events.h, gdb-events.c: Re-generate.
2549 * tui/tui-hooks.c (tui_install_hooks): Update.
2550 (tui_remove_hooks): Update.
2551 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2552
0e56aeaf
MK
25532004-06-26 Mark Kettenis <kettenis@gnu.org>
2554
cb461069
MK
2555 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2556 (gregset_t, fpregset_t): Remove typedefs.
2557 (REG_OFFSET): Rename argument.
2558 (amd64bsd_r_reg_offset): Rename from reg_offset.
2559 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2560 Remove functions.
2561 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2562 of reg_offset.
2563 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2564
ecba89de
MK
2565 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2566
4cd80476
MK
2567 * vax-tdep.c: Tweak comment.
2568
0e56aeaf
MK
2569 Add OpenBSD/hppa support.
2570 * NEWS (New native configurations): Mention OpenBSD/hppa.
2571 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2572 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2573 files.
2574 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2575 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2576 * configure.host: Add hppa*-*-openbsd*.
2577 * configure.tgt: Add hppa*-*-openbsd*.
2578
98bbd631
AC
25792004-06-25 Andrew Cagney <cagney@gnu.org>
2580
2581 * defs.h (deprecated_ui_loop_hook): Deprecated.
2582 * wince.c (child_wait): Update.
2583 * win32-nat.c (child_wait): Update.
2584 * v850ice.c (v850ice_wait): Update.
2585 * top.c (deprecated_ui_loop_hook): Update.
2586 * serial.h: Update.
2587 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2588 (do_unix_readchar): Update.
2589 * ser-tcp.c (net_open): Update.
2590 * remote-sim.c (gdb_os_poll_quit): Update.
2591 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2592
769d7dc4
AC
25932004-06-24 Andrew Cagney <cagney@gnu.org>
2594
2595 * defs.h (deprecated_pre_add_symbol_hook)
2596 (deprecated_post_add_symbol_hook): Deprecated.
2597 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2598 (symbol_file_add_with_addrs_or_offsets): Update references.
2599
11c949aa
AC
26002004-06-24 Andrew Cagney <cagney@gnu.org>
2601
2602 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2603 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2604 * wince.c (ui_loop_hook): Delete extern declaration.
2605 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2606 * v850ice.c (ui_loop_hook): Delete extern declaration..
2607 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2608 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2609 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2610 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2611 ui_loop_hook declaration.
2612
eedc19af
AC
26132004-06-24 Andrew Cagney <cagney@gnu.org>
2614
2615 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2616 entry_func_highpc fields.
2617 * objfiles.c (init_entry_point_info): Do not clear
2618 entry_func_lowpc and entry_func_highpc.
2619 (objfile_relocate): Do not relocate entry_func_lowpc and
2620 entry_func_highpc.
2621 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2622 entry_func_highpc.
2623 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2624 entry_func_highpc.
2625 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2626 entry_func_lowpc and entry_func_highpc with call to
2627 inside_entry_func.
2628
d47079be
MK
26292004-06-24 Mark Kettenis <kettenis@gnu.org>
2630
2631 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2632 quad-precision floating point arguments in registers.
2633
2107e348
MK
26342004-06-24 Mark Kettenis <kettenis@gnu.org>
2635
2636 From Michael Mueller <m.mueller99@kay-mueller.de>:
2637 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2638 account.
2639
46587c42
JJ
26402004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2641
2642 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2643 to -1.
2644 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2645 untriggered watchpoints to a separate if clause. Update function
2646 comment regarding STOPPED_BY_WATCHPOINT argument.
2647
226f5cf4
JB
26482004-06-22 Jim Blandy <jimb@redhat.com>
2649
2650 * gdbarch.sh: Doc fix.
2651
f10683bb
MH
26522004-06-21 Martin Hunt <hunt@redhat.com>
2653 Kevin Buettner <kevinb@redhat.com>
2654
2655 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2656 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2657 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2658 to set_gdbarch_sp_regnum(). Use cooked register number.
2659 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2660
412d5987
AC
26612004-06-21 Andrew Cagney <cagney@gnu.org>
2662
2663 * gdbarch.sh: When the macro field is empty, do not generate a
2664 macro definition. When the macro field is "=", generate the macro
2665 name from the upper-case function name.
2666 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2667 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2668 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2669 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2670 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2671 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2672 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2673 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2674 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2675 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2676 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2677 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2678 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2679 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2680 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2681 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2682 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2683 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2684 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2685 (DEPRECATED_USE_STRUCT_CONVENTION)
2686 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2687 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2688 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2689 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2690 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2691 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2692 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2693 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2694 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2695 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2696 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2697 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2698 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2699 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2700 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2701 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2702 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2703 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2704
68908a3e
AC
27052004-06-21 Andrew Cagney <cagney@gnu.org>
2706
48f7351b
AC
2707 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2708 macro name, and the function rather than macro value. Only wrap
2709 macro print statements in #ifdef. Move format logic to where it
2710 is needed.
2711 * gdbarch.c: Re-generate.
2712
283354d8
AC
2713 * gdbarch.sh (read): Delete "print_p" and "description", add
2714 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2715 Delete references to print_p.
2716 (TARGET_ARCHITECTURE): Delete print predicate.
2717 * gdbarch.c: Re-generate.
2718
68908a3e
AC
2719 * gdbarch.sh: Check that multi-arch methods do not provide a
2720 macro.
2721 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2722 (print_registers_info, print_float_info, print_vector_info)
2723 (adjust_breakpoint_address, remote_translate_xfer_address)
2724 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2725 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2726 name from the multi-arch definition.
2727
a2428dbe
AC
27282004-06-20 Andrew Cagney <cagney@gnu.org>
2729
2730 * gdbarch.sh: Sort by the function, instead of macro name.
2731 * gdbarch.c: Re-generate.
2732
750eb019
AC
27332004-06-20 Andrew Cagney <cagney@gnu.org>
2734
66d659b1
AC
2735 * gdbarch.sh: Use the function, instead of macro name in
2736 errors and the log file.
2737 (return_value): Remove stray ":" in spec.
2738
750eb019
AC
2739 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2740 * gdbarch.h, gdbarch.c: Re-generate.
2741 * Makefile.in (arch-utils.o): Update dependencies.
2742 * values.c (using_struct_return): Move code calling
2743 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2744 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2745 to legacy_return_value, simplify.
2746 * infcmd.c (print_return_value): Move code calling
2747 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2748 to legacy_return_value, simplify.
2749 * infcall.c (call_function_by_hand): Move code calling
2750 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2751 * arch-utils.c: Update copyright. Include "gdbcore.h".
2752 (legacy_return_value): New function.
2753 * arch-utils.h: Update copyright.
2754 (legacy_return_value): Declare.
2755
b5622e8d
AC
27562004-06-20 Andrew Cagney <cagney@gnu.org>
2757
2758 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2759 * gdbarch.h, gdbarch.c: Re-generate.
2760 * values.c (using_struct_return): Update call.
2761 * mcore-tdep.c: Update comment.
2762 * infcall.c (call_function_by_hand): Update comment.
2763 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2764 * arch-utils.h (always_use_struct_convention): Update.
2765 * v850-tdep.c (v850_gdbarch_init): Update.
2766 * sh64-tdep.c (sh64_gdbarch_init): Update.
2767 * sh-tdep.c (sh_gdbarch_init): Update.
2768 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2769 * mips-tdep.c (mips_gdbarch_init): Update.
2770 * mcore-tdep.c (mcore_gdbarch_init): Update.
2771 * m32r-tdep.c (m32r_gdbarch_init): Update.
2772 * ia64-tdep.c (ia64_gdbarch_init): Update.
2773 * h8300-tdep.c (h8300_gdbarch_init): Update.
2774 * frv-tdep.c (frv_gdbarch_init): Update.
2775 * cris-tdep.c (cris_gdbarch_init): Update.
2776 * arm-tdep.c (arm_gdbarch_init): Update.
2777 * alpha-tdep.c (alpha_gdbarch_init): Update.
2778
5191de37
MC
27792004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2780
2781 * PROBLEMS: Add more specific information, and a work-around,
2782 for PR gdb/1458.
2783
782263ab
AC
27842004-06-18 Andrew Cagney <cagney@gnu.org>
2785
2786 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2787 * gdbarch.h, gdbarch.c: Re-generate.
2788 * ada-lang.c (ada_finish_decode_line_1): Update.
2789 * infrun.c (handle_inferior_event): Update.
2790 * infcall.c (find_function_addr): Update.
2791 * linespec.c (minsym_found): Update.
2792 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2793 Update.
2794 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2795 * cli/cli-cmds.c (disassemble_command): Update.
2796 * vax-tdep.c (vax_gdbarch_init): Update.
2797
2f305df1
MK
27982004-06-18 Mark Kettenis <kettenis@gnu.org>
2799
2800 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2801
e5fe55f7
AC
28022004-06-17 Andrew Cagney <cagney@gnu.org>
2803
2804 GDB 6.1.1 released from the GDB 6.1 branch.
2805 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2806 * PROBLEMS: Ditto.
2807
473b7be6
DJ
28082004-06-16 Daniel Jacobowitz <dan@debian.org>
2809
2810 PR gdb/1658
2811 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2812 operation as a uleb128. Found by Michael Coulter.
2813
96d887e8
PH
28142004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2815
2816 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2817 make it non-static.
2818 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2819 to ada-lang.h; this is needed to be able to implement the kill command
2820 in multi-task mode.
2821 (task_ptid): Ditto.
2822 (task_entry): Ditto.
2823 (task_list): Ditto.
2824 (ada_build_task_list): Ditto.
2825
2826 * ada-lang.c: Conditionalize routines and data structures related
2827 to breakpoints, exceptions, completion, and symbol caching on
2828 GNAT_GDB, since these are not yet used in the submitted public sources.
2829 (ada_main_name): Editorial: Move definition out of exception-related
2830 code.
2831
31eef181
AC
28322004-06-15 Andrew Cagney <cagney@gnu.org>
2833
2834 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2835 deprecated_pc_in_call_dummy.
2836
2c500098
AM
28372004-06-15 Alan Modra <amodra@bigpond.net.au>
2838
2839 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2840 bfd_get_section_size_before_reloc or _raw_size.
2841 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2842 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2843 (dwarf2_read_section): Likewise.
2844 * elfread.c (elf_locate_sections): Likewise.
2845 * gcore.c (derive_heap_segment): Likewise.
2846 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2847 * remote-e7000.c (e7000_load): Likewise.
2848 * remote-m32r-sdi.c (m32r_load): Likewise.
2849 * remote-mips.c (mips_load_srec): Likewise.
2850 (pmon_load_fast): Likewise.
2851 * remote.c (compare_sections_command): Likewise.
2852 * symfile.c (add_section_size_callback): Likewise.
2853 (load_section_callback): Likewise.
2854 (pc_in_unmapped_range): Likewise.
2855 (pc_in_mapped_range): Likewise.
2856 (sections_overlap): Likewise.
2857 (list_overlays_command): Likewise.
2858 (simple_overlay_update_1): Likewise.
2859 (simple_overlay_update): Likewise.
2860 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2861 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2862
90f943f1
RC
28632004-06-14 Randolph Chung <tausq@debian.org>
2864
2865 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2866 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2867 static.
2868 (hppa_hpux_inferior_created): New function.
2869 (hppa_hpux_init_abi): Register observer.
2870 * symfile.c (hp_cxx_exception_support_initialized)
2871 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2872 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2873
700c15aa
RC
28742004-06-14 Randolph Chung <tausq@debian.org>
2875
3973a7d3
AC
2876 * MAINTAINERS (Write After Approval): Alphabetize my entry
2877 correctly.
700c15aa 2878
cea4838c
AC
28792004-06-14 Andrew Cagney <cagney@gnu.org>
2880
2881 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2882 testsuite maintainer.
2883
97092415
AC
28842004-06-13 Andrew Cagney <cagney@gnu.org>
2885
e8c3165b
AC
2886 * infcmd.c (print_return_value): Fix logic, allow
2887 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2888
bceabdd8
AC
2889 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2890 defining any macros.
2891 * gdbarch.h: Re-generate.
2892
57010b1c
AC
2893 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2894 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2895 * gdbarch.h: Re-generate.
2896
bc87dfa0
AC
2897 * values.c (generic_use_struct_convention): Don't check gcc_p.
2898
15ac804d
AC
2899 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2900 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2901 * gdbarch.h, gdbarch.c: Regenerate.
2902 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2903 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2904 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2905 deprecated_max_register_raw_size and
2906 deprecated_max_register_virtual_size.
2907 * v850-tdep.c (v850_gdbarch_init): Ditto.
2908 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2909 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2910 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2911 * cris-tdep.c (cris_gdbarch_init): Ditto.
2912
97092415
AC
2913 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2914 * gdbarch.h, gdbarch.c: Re-generate.
2915 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2916 (m68hc11_use_struct_convention): Delete function.
2917 (m68hc11_extract_struct_value_address): Delete function.
2918 (m68hc11_return_value): New function.
2919 (m68hc11_gdbarch_init): Instead of store_return_value,
2920 extract_return_value, return_value_on_stack,
2921 deprecated_extract_struct_value_address and use_struct_convention,
2922 set return_value.
2923 * values.c (using_struct_return): Do not call
2924 RETURN_VALUE_ON_STACK.
2925 * arch-utils.h (generic_return_value_on_stack_not): Delete
2926 declaration.
2927 * arch-utils.c (generic_return_value_on_stack_not): Delete
2928 function.
2929
44e5158b
AC
29302004-06-12 Andrew Cagney <cagney@gnu.org>
2931
2932 * values.c (register_value_being_returned): Delete function.
2933 * infcmd.c (legacy_return_value): Delete function.
2934 * infcall.c (call_function_by_hand): Inline
2935 "register_value_being_returned", simplify.
2936 * values.c (using_struct_return): Update comment, refer to
2937 print_return_value instead of register_value_being_returned.
2938 * infcmd.c (print_return_value): Inline calls to
2939 register_value_being_returned and legacy_return_value. Simplify.
2940
b887c273
RC
29412004-06-11 Randolph Chung <tausq@debian.org>
2942
2943 * somread.c (som_symtab_read): Exclude gcc local symbols.
2944
1b2bfbb9
RC
29452004-06-11 Randolph Chung <tausq@debian.org>
2946
3973a7d3
AC
2947 * infrun.c (handle_inferior_event): Handle the case when a
2948 trampoline ends up in the runtime resolver, and if the trampoline
2949 has no name. Rearrange the code so that all the trampoline
2950 processing happens before other step-out-of-range handling.
1b2bfbb9 2951
a9d61c86
MH
29522004-06-11 Martin Hunt <hunt@redhat.com>
2953
2954 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2955 has no fpu.
2956
2c87cf5a
AC
29572004-06-10 Andrew Cagney <cagney@gnu.org>
2958
2959 * blockframe.c (legacy_inside_entry_func): Delete.
2960 (legacy_frame_chain_valid): Inline call to
2961 legacy_inside_entry_func, simplify.
2962
0b67b468 29632004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
2964
2965 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
2966 * dwarf2read.c (partial_die_info): Add dirname field.
2967 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2968 (read_partial_die): Save away DW_AT_comp_dir.
2969 * defs.h (symtab_to_filename): Removed.
2970 * source.c (find_and_open_source): Added.
57c22c6c 2971 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
2972 (symtab_to_filename): Removed.
2973 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
2974 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2975 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2976 symtab_to_filename.
2977 * symtab.h (partial_symtab): Add dirname field.
2978 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
2979 (mi_cmd_file_list_exec_source_file): Call new function
2980 symtab_to_fullname to find fullname.
57c22c6c 2981 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 2982 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
2983 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2984
9a1dd1ad
AC
29852004-06-10 Andrew Cagney <cagney@gnu.org>
2986
239ae8c7
AC
2987 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2988 to generic_use_struct_convention, the default value.
2989
fc720350
AC
2990 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2991 of abort.
2992
9a1dd1ad
AC
2993 * ns32k-tdep.c (ns32k_push_arguments): New function.
2994 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2995 * infcall.c (call_function_by_hand): Call error instead of
2996 legacy_push_arguments.
2997 * value.h (legacy_push_arguments): Delete declaration.
2998 * valops.c (legacy_push_arguments): Delete function.
2999 (value_push): Delete function.
3000
fea25152
BF
30012004-06-10 Brian Ford <ford@vss.fsi.com>
3002
3003 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3004 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3005 info.
3006 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3007
30a4a8e0
AC
30082004-06-10 Andrew Cagney <cagney@gnu.org>
3009
3010 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3011 * gdbarch.h, gdbarch.c: Re-generate.
3012 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3013 parameters.
3014 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3015 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3016 deprecated_pc_in_call_dummy instead of
3017 DEPRECATED_PC_IN_CALL_DUMMY.
3018 (arm_skip_prologue): Ditto.
3019 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3020 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3021 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3022 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3023 Ditto.
3024 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3025 (sh64_init_extra_frame_info, sh64_get_saved_register)
3026 (sh64_pop_frame): Ditto.
3027 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3028 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3029 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3030 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3031 (h8300_pop_frame): Ditto.
3032 * blockframe.c (legacy_inside_entry_func)
3033 (legacy_frame_chain_valid): Ditto.
3034 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3035 to deprecated_pc_in_call_dummy.
3036
81cfbe54
AC
30372004-06-09 Andrew Cagney <cagney@gnu.org>
3038
a1f4a1b6
AC
3039 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3040 provide a default value.
3041 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3042 * gdbarch.h, gdbarch.c: Re-generate.
3043 * arch-utils.c (generic_convert_register_p): Rename
3044 legacy_convert_register_p
3045 (legacy_register_to_value, legacy_value_to_register): Delete
3046 functions.
3047 * arch-utils.h (generic_convert_register_p): Rename
3048 legacy_convert_register_p.
3049 (legacy_register_to_value, legacy_value_to_register): Delete
3050 declarations.
3051
9730f241
AC
3052 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3053 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3054 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3055 * gdbarch.h, gdbarch.c: Re-generate.
3056 * infcmd.c (default_print_registers_info): Simplify.
3057 * findvar.c (value_of_register): Simplify.
3058 * mi/mi-main.c (get_register): Simplify.
3059 * arch-utils.c (legacy_convert_register_p): Always return 0.
3060 (legacy_register_to_value, legacy_value_to_register): Always call
3061 internal_error.
3062
8a1bf479
AC
3063 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3064 #ifdef CLEAR_INSN_CACHE code.
3065 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3066 Delete #ifdef CLEAR_DEFERRED_STORES code.
3067
4b38d6f1
AC
3068 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3069
2d62ecc7
AC
3070 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3071 copyright.
3072 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3073
be4f7469
AC
3074 * config/mips/mipsv4.mh: Delete file.
3075
81cfbe54
AC
3076 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3077 unreferenced macro.
3078 (hpread_adjust_stack_address): Delete declaration.
3079
d966f0cb
AC
30802004-06-08 Andrew Cagney <cagney@gnu.org>
3081
3082 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3083 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3084 PTRACE_ATTACH / PTRACE_DETACH available call error.
3085 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3086 * infttrace.c (update_thread_state_after_attach, attach, detach):
3087 Remove #ifdef wrappers.
3088 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3089 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3090 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3091 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3092 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3093 * config/nm-linux.h (ATTACH_DETACH): Delete.
3094 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3095 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3096 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3097 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3098 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3099
d91670b9
CV
31002004-06-08 Corinna Vinschen <vinschen@redhat.com>
3101
3102 * configure.in: Set $configdir to the right OS specific value.
3103 Use value when setting $tcldir and $tkdir.
3104 * configure: Regenerate.
3105
28ba0b33
PB
31062004-06-06 Paul Brook <paul@codesourcery.com>
3107
3108 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3109 records.
3110
f26caa11
PH
31112004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3112
3113 * ada-lang.c (lookup_symbol_in_language): New function to allow
3114 re-use of another language's symbol lookup code. (Placed here
3115 temporarily while Ada support is being integrated into the public
3116 tree).
3117 (restore_language): New auxiliary function for
3118 lookup_symbol_in_language.
3119 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3120 temporarily while Ada support is being integrated into the public
3121 tree).
3122
d560a54b
AO
31232004-06-08 Alexandre Oliva <aoliva@redhat.com>
3124
e75d110c
AO
3125 * Makefile.in (check//%): New.
3126
d560a54b
AO
3127 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3128 (mn10300_store_return_value): Rewrite.
3129 (mn10300_type_align): New.
3130 (mn10300_use_struct_convention): Rewrite.
3131 (mn10300_return_value): New, using all of the above.
3132 (mn10300_pop_frame_regular): Add saved_regs_size.
3133 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3134
a72fbdb7
AO
3135 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3136 regs if PC is on movm.
3137
01904826
JB
31382004-06-07 Jim Blandy <jimb@redhat.com>
3139
3140 Add native Linux support for the PowerPC E500.
3141 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3142 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3143 all architectures except the E500.
3144 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3145 #definitions.
3146 (struct gdb_evrregset_t): New type.
3147 (have_ptrace_getsetevrregs): New variable.
3148 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3149 fetch_spe_registers): New functions.
3150 (fetch_register): Call fetch_spe_register as appropriate.
3151 Assert that we're only passed raw register numbers.
3152 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3153 Don't fetch gprs if they're pseudoregisters.
3154 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3155 store_spe_registers): New functions.
3156 (store_register): Call store_spe_register as appropriate.
3157 Assert that we're only passed raw register numbers.
3158 (store_ppc_registers): Call store_spe_registers as appropriate.
3159 Don't store gprs if they're pseudoregisters.
3160
f90ef764
JJ
31612004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3162
3163 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3164 struct if one exists, even if we are dealing with a zombie thread.
3165
45b75230
AC
31662004-06-07 Andrew Cagney <cagney@gnu.org>
3167
3168 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3169 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3170 Rename PC_REQUIRES_RUN_BEFORE_USE.
3171 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3172 #ifdef.
3173
1658da49
RC
31742004-06-07 Randolph Chung <tausq@debian.org>
3175
3176 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3177 unwinding after sp has been saved to the stack but before the end
3178 of the prologue, and after the fp has been modified but before it has
3179 been saved to the stack.
3180 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3181 Remove superfluous definitions.
3182 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3183
9a727a3c
RC
31842004-06-07 Guy Martin <gmsoft@gentoo.org>
3185
3186 Committed by Randolph Chung.
3187 * hppa-linux-nat.c: Include the correct version of the header file
3188 depending on the kernel version.
3189
9e500012
RC
31902004-06-06 Randolph Chung <tausq@debian.org>
3191
3192 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3193 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3194
3388d7ff
RC
31952004-06-06 Randolph Chung <tausq@debian.org>
3196
3197 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3198 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3199 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3200 * hppa-tdep.c (hppa_symbol_address): New function definition.
3201 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3202
d49771ef
RC
32032004-06-06 Randolph Chung <tausq@debian.org>
3204
3205 * hppa-tdep.h (struct value): Forward declaration.
3206 (gdbarch_tdep): Define tdep find_global_pointer method.
3207 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3208 associated with the function we are trying to call, and write it
3209 to the gp register.
3210 (hppa32_convert_from_funct_ptr_addr): New function.
3211 (hppa_find_global_pointer): New function.
3212 (hppa_gdbarch_init): Set default find_global_pointer method; set
3213 convert_from_func_ptr_addr method.
3214 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3215 (hppa_linux_init_abi): Set find_global_pointer method.
3216 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3217
7d9b040b
RC
32182004-06-06 Randolph Chung <tausq@debian.org>
3219
3220 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3221 to struct value *function.
3222 * gdbarch.c: Regenerate.
3223 * gdbarch.h: Likewise.
3224 * infcall.c (call_function_by_hand): Pass entire function value
3225 to push_dummy_call.
3226
3227 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3228 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3229 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3230 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3231 * arm-tdep.c (arm_push_dummy_call): Likewise.
3232 * avr-tdep.c (avr_push_dummy_call): Likewise.
3233 * cris-tdep.c (cris_push_dummy_call): Likewise.
3234 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3235 * frv-tdep.c (frv_push_dummy_call): Likewise.
3236 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3237 * hppa-tdep.c (hppa32_push_dummy_call)
3238 (hppa64_push_dummy_call): Likewise.
3239 * i386-tdep.c (i386_push_dummy_call): Likewise.
3240 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3241 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3242 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3243 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3244 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3245 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3246 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3247 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3248 (ppc64_sysv_abi_push_dummy_call): Likewise.
3249 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3250 (ppc64_sysv_abi_push_dummy_call): Likewise.
3251 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3252 * s390-tdep.c (s390_push_dummy_call): Likewise.
3253 * sh-tdep.c (sh_push_dummy_call_fpu)
3254 (sh_push_dummy_call_nofpu): Likewise.
3255 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3256 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3257 * vax-tdep.c (vax_push_dummy_call): Likewise.
3258
4a19ea35
JB
32592004-06-04 Jim Blandy <jimb@redhat.com>
3260
8327ccee
JB
3261 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3262 gdbarch argument to register_size.
3263
a3c001ce
JB
3264 * rs6000-tdep.c (rs6000_store_return_value): Use
3265 regcache_cooked_write_part instead of
3266 deprecated_write_register_bytes.
3267 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3268 not gdbarch_deprecated_store_return_value.
3269
4a19ea35
JB
3270 * ppc-linux-nat.c (store_register, fetch_register): Remove
3271 incorrect assertions. Simplify and generalize handling of
3272 transfers whose sizes are not multiples of, or less than, sizeof
3273 (PTRACE_XFER_TYPE).
3274
b9b5d7ea
JJ
32752004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3276
3277 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3278 as a new thread event.
720c7d64 3279 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 3280 zombie, return TD_THR_ZOMBIE.
720c7d64 3281 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
3282 TD_THR_ZOMBIE, check if the thread is still on the thread list
3283 and return a -1 ptid if not found.
3284 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3285 change the status to TARGET_WAITKIND_SPURIOUS.
3286
c8a3b559
CV
32872004-06-03 Corinna Vinschen <vinschen@redhat.com>
3288
3289 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3290 double values in little endian mode.
3291
20605361
AC
32922004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3293
3294 Committed by Andrew Cagney.
3295 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3296 after last enum constant to avoid error from IBM C
3297 compiler.
3298
bc97b3ba
JB
32992004-06-02 Jim Blandy <jimb@redhat.com>
3300
3301 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3302 to 'message', and make it local to the lone block that uses it.
3303
1da28ab0
JB
3304 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3305
4c4b4cd2
PH
33062004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3307
8a2225b2
PH
3308 * ada-exp.y: Update copyright notice.
3309 Include block.h.
3310
3311 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3312 SPECIAL_VARIABLE and unify the treatment of these cases.
3313
3314 (write_attribute_call0): Remove.
3315 (write_attribute_call1): Remove.
3316 (write_attribute_calln): Remove.
3317 (save_qualifier): Add missing semicolon.
3318
3319 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3320 temporarily disabled to allow compilation with FSF head version.
3321
3322 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3323 use individual operators (OP_*) for all attributes.
3324 (exp syntax): Use write_int.
3325 Handle STRING literals with OP_STRING.
3326 (variable syntax): Add limit parameter to calls to
3327 write_object_renaming.
3328
3329 (temp_parse_space): New definition to hold entities that need
3330 only live until the next call to ada_parse.
3331 (string_to_operator): Rename fields of ada_opname_table entries.
3332
3333 (write_var_from_sym): Record block.
3334 (write_var_from_name): Minor reformatting.
3335 Make sure saved name is properly encoded in the case of multiple
3336 matches, and set its language to Ada.
3337 Update comment.
3338 Modify to indicate unresolved name as symbol in the UNRESOLVED
3339 namespace, allocated in temp_parse_space.
3340 (write_int): New function.
3341
3342 (write_object_renaming): Add max_depth parameter to limit
3343 chains of object renamings.
3344 Handle case where root of renaming expression is itself a renaming.
3345 Use temp_parse_space for temporary name buffer.
3346 Handle renamings to dereferenced pointers (___XEXA suffices).
3347
3348 (ada_parse, yyerror, string_to_operator,
3349 write_var_from_sym, write_var_from_name, write_attribute_call0,
3350 write_attribute_call1, write_attribute_calln,
3351 write_object_renaming): Protoize.
3352
3353 (_initialize_ada_exp): New function.
3354
3355 * ada-lang.c: Update copyright notice.
3356 General terminology change to conform to GNAT compiler usage:
3357 mangle => encode, demangle => decode
3358 Include gdb_obstack.h.
3359 Include gdb_regex.h
3360 Include frame.h
3361 Include hashtab.h
3362 Include completer.h
3363 Include gdb_stat.h
3364 Include block.h
3365 Include infcall.h
3366
3367 (ADA_RETAIN_DOTS): Make sure this is defined.
3368 (TRUNCATION_TOWARDS_ZERO): Define.
3369 (struct string_vector): Define.
3370 (unresolved_names): Remove definition.
3371 (xnew_string_vector): New function.
3372 (string_vector_append): New function.
3373 (extract_string): Make static.
3374 (ada_unqualified_name): New function.
3375 (add_angle_brackets): New function.
3376 (function_name_from_pc): New function.
3377 (place_on_stack): Rename to ensure_lval.
3378
3379 (ensure_lval): Renamed from place_on_stack.
3380 Make identity on lvals.
3381 Update comment.
3382 (is_nonfunction): New interface.
3383 Only symbols in LOC_CONST class can be enumerals.
3384 (fill_in_ada_prototype): Remove; now independent of language.
3385 (add_defn_to_vec): Add obstack and symtab arguments.
3386 Use obstack to hold collected definitions.
3387 (num_defns_collected): New function.
3388 (defns_collected): New function.
3389 (ada_resolve_subexp): Rename to resolve_subexp.
3390 (resolve_subexp): Renamed from ada_resolve_subexp.
3391 (ada_op_name): Return non-const result.
3392 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3393 other purposes.
3394
3395 (to_fixed_array_type): Add declaration.
3396 (coerce_unspec_val_to_type): Remove offset parameter.
3397 (find_sal_from_funcs_and_line): New interface.
3398 (find_line_in_linetable): Ditto.
3399
3400 (all_sals_for_line): Rename to ada_sals_for_line and make
3401 global.
3402 Add new parameter. When set, do not ask the user to choose the
3403 instance, but use the first one found instead.
3404 Use given line number in returned sals.
3405 Fix comment.
3406 Skip the prologue if funfirstline is set.
3407 Correct for memory leak when 0 lines found.
3408
3409 (value_pos_atr): Use pos_atr.
3410 (pos_atr): New function.
3411 (standard_lookup): Add block parameter.
3412
3413 (makeTimeStart): Remove declaration and uses.
3414 (makeTimeStop): Remove declaration and uses.
3415
3416 (ada_completer_word_break_characters): Allow for VMS.
3417 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3418 (raise_sym_name): New constant.
3419 (raise_unhandled_sym_name): New constant.
3420 (raise_assert_sym_name): New constant.
3421 (process_raise_exception_name): New constant.
3422 (longest_exception_template): New constant.
3423 (warning_limit): New variable to limit warnings during expression
3424 evaluation.
3425 (warnings_issued): New variable to keep track of warnings issued.
3426 (known_runtime_file_name_patterns): New constant.
3427 (known_auxiliary_function_name_patterns): New constant.
3428 (symbol_list_obstack): New variable.
3429
3430 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3431 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3432 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3433 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3434 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3435 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3436 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3437 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3438 and strcmp.
3439
3440 (ada_get_field_index): New function.
3441 (lim_warning): New function.
3442 (ada_translate_error_message): New function.
3443 (MAX_OF_SIZE): New function.
3444 (MIN_OF_SIZE): New function.
3445 (UMAX_OF_SIZE): New function.
3446 (UMIN_OF_SIZE): New function.
3447 (discrete_type_high_bound): New function.
3448 (discrete_type_low_bound): New function.
3449 (base_type): New function.
3450 (do_command): Remove.
3451
3452 (ada_update_initial_language): Use language_ada, not language_unknown.
3453 (ada_encode): Renamed from ada_mangle.
3454 Obey ADA_RETAIN_DOTS.
3455 (ada_decode): Renamed from ada_demangle.
3456 Update coding conventions.
3457 (decoded_names_store): New hash table.
3458 (ada_decode_symbol): New function.
3459 (ada_la_decode): New function.
3460
3461 (modify_general_field): Correct computations of offset and bit
3462 position.
3463 (desc_base_type): Handle ref types, too.
3464 (ada_is_direct_array_type): New function.
3465
3466 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3467 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3468 (ada_is_bogus_array_descriptor,ada_type_of_array,
3469 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3470 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3471 ada_is_array_descriptor_type.
3472
3473 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3474 (ada_is_packed_array_type): Handle pointers or
3475 references to packed arrays as well.
3476 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3477 (decode_packed_array_type): Search for the packed array type
3478 symbol in the currently selected block and associated
3479 superblocks too.
3480 Use lookup_symbol again.
3481
3482 (decode_packed_array): Handle pointers and references.
3483 Update call to coerce_unspec_val_to_type.
3484 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3485 (ada_value_primitive_packed_val): Improve comment.
3486
3487 (ada_index_type): Substitute int type for "undefined".
3488 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3489 ada_array_langth, ada_is_string_type): Use renamed
3490 ada_is_simple_array_type.
3491 (empty_array): New function.
3492
3493 (ada_resolve): Rename to resolve.
3494 (resolve): Make static.
3495 Call renamed resolve_subexp.
3496 Update comment.
3497 (ada_resolve_subexp): Rename to resolve_subexp.
3498 (resolve_subexp): Update comment.
3499 Decomment disabled code.
3500 Add LOC_COMPUTED* cases.
3501 Modify to use temporary struct symbols (marked as being in
3502 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3503 OP_UNRESOLVED_VALUE.
3504 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3505 Add OP_STRING case.
3506 Remove OP_ARRAY.
3507 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3508 Use new ada_lookup_symbol_list interface.
3509 Use new ada_resolve_function interface.
3510 Remove OP_TYPE case.
3511
3512 (ada_args_match): Idiot proof against null actuals.
3513 Use intermediate variables to clarify.
3514 (ada_resolve_function): Update comment and interface.
3515 (mangled_ordered_before): Rename to encoded_ordered_before and
3516 update comment.
3517 (sort_choices): Update comment and interface.
3518 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3519 (user_select_syms): New interface.
3520 Use new sort_choices interface.
3521 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3522 (possible_user_operator_p): Idiot-proof against null values.
3523 (ada_simple_renamed_entity): Don't make cleanup; rely on
3524 caller to free result string.
3525 Remove const from return type.
3526 (make_array_descriptor): Rename uses of place_on_stack to
3527 ensure_lval.
3528 Make sure that arrays are on stack.
3529
3530 (HASH_SIZE): Define.
3531 (struct cache_entry): Define.
3532 (cache_space): Define.
3533 (cache): Define.
3534 (clear_ada_sym_cache): New function.
3535 (find_entry): New function.
3536 (lookup_cached_symbol): New function.
3537 (defn_vector_size): Define.
3538 (cache_symbol): New function.
3539 (defn_symbols): Remove.
3540
3541 (standard_lookup): Use lookup_symbol_in_language to get effect of
3542 C lookup.
3543 Cache results.
3544
3545 (symbol_completion_match): New function.
3546 (symbol_completion_add): New function.
3547 (ada_make_symbol_completion_list): New function.
3548
3549 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3550 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3551 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3552 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3553
3554 (ada_lookup_simple_minsym): New function.
3555 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3556
3557 (add_symbols_from_enclosing_procs): New interface.
3558 Conditionalize more helpfully.
3559 Don't bother if program isn't running.
3560 Use new interface to get_frame_block.
3561 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3562
3563 (remove_extra_symbols): New interface.
3564 (xget_renaming_scope): New function.
3565 (is_package_name): New function.
3566 (renaming_is_visible): New function.
3567 (remove_out_of_scope_renamings): New function.
3568
3569 (ada_lookup_symbol_list): New interface.
3570 Properly reinitialize the symbol list obstack.
3571 Don't call add_symbols_from_enclosing_procs if we start from a
3572 static or global block.
3573 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3574 add_symbols_from_enclosing_procs.
3575 Add symtab data to cached entries.
3576 Handle symbols prefixed with
3577 "standard__" specially; strip prefix and don't look in local symbols.
3578 Do not include out of scope renaming symbols in list of
3579 symbols returned.
3580 Add const to block parameter.
3581 Move check for non-local, non-global symbols earlier.
3582 Remove timing stuff.
3583 (ada_lookup_symbol): New interface.
3584 Find symtab as well.
3585 (ada_lookup_symbol_nonlocal): New function.
3586
3587 (is_name_suffix): Enhance suffix detection to recognize
3588 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3589 (is_dot_digits_suffix): New function.
3590 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3591
3592 (ada_add_block_symbols): New interface. Use obstack to return results
3593 in a vector of struct ada_symbol_infos. Add symtab argument.
3594 Use new interface to add_defn_to_vec.
3595 Remove calls to fill_in_ada_prototype.
3596 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3597
3598 (ada_finish_decode_line_1): Add const qualification to local to fix
3599 warning.
3600 Start looking in static block for functions to avoid attempts
3601 to search frame chain for up-level variables.
3602 Adapt to new ada_sals_for_line interface.
3603 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3604 Handle quoting of the function name inside the spec string.
3605 Skip prologue when funfirstline is set and update the
3606 function documentation to that effect.
3607
3608 (debug_print_lines, debug_print_block, debug_print_blocks,
3609 debug_print_symtab): Remove.
3610
3611 (ada_main_name): New function.
3612 (ada_exception_breakpoint_type): New function.
3613 (is_known_support_routine): New function.
3614 (ada_find_printable_frame): Renamed from find_printable_frame and made
3615 global.
3616 Remove level parameter.
3617 Use new interface to select_frame.
3618
3619 (begin_command): Remove.
3620 (ada_adjust_exception_stop): New function.
3621 (ada_print_exception_stop): New function.
3622 (exception_name_from_cond): New function.
3623 (ada_report_exception_break): Replace disabled code with
3624 conditionalization on GNAT_GDB.
3625 Get the exception name from the condition string.
3626 Remove and move functionality into new functions
3627 ada_print_exception_breakpoint_task and
3628 ada_print_exception_breakpoint_nontask.
3629 (error_breakpoint_runtime_sym_not_found): New function.
3630 (is_runtime_sym_defined): New function.
3631 (ada_breakpoint_rewrite): Uncomment suppressed code.
3632 Use symbolic error-message and runtime-symbol names.
3633 Surround runtime symbol names in quotes.
3634 Allow non-specific breakpoints on exceptions and assertions before
3635 program starts.
3636
3637 (ada_is_tagged_type): Add parameter.
3638 (ada_is_tag_type): New function.
3639 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3640 (ada_variant_discrim_type): Ditto.
3641 (value_tag_from_contents_and_address): New function.
3642 (type_from_tag): New function.
3643 (struct tag_args): New structure used to communicate with
3644 ada_tag_name_1.
3645 (ada_tag_name_1): New function.
3646 (ada_tag_name): New function.
3647
3648 (ada_scan_number): Update comment.
3649 (find_struct_field): New function.
3650 (ada_search_struct_field): Make static.
3651 (ada_value_struct_elt): New version that returns references when
3652 given pointers or references to structs.
3653 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3654 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3655 interface.
3656 (ada_value_ind): Use new ada_to_fixed_value interface.
3657 (ada_coerce_ref): Ditto.
3658 (field_offset): Remove.
3659
3660 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3661 (ada_find_renaming_symbol): New function.
3662 (ada_prefer_type): Prefer named types over unnamed ones.
3663 (variant_field_index): New function.
3664 (contains_variant_part): Removed: subsumed by variant_field_index.
3665 (ada_template_to_fixed_record_type): New function, mostly from
3666 template_to_fixed_record_type.
3667 (template_to_fixed_record_type):
3668 Do not scan the type fields beyond the last one; prevents a
3669 potential SEGV.
3670 Handle case where variant field is listed BEFORE discriminant it
3671 depends on.
3672 Fix calculation of record length when bit length is
3673 not evenly divisible by char length.
3674 Move code to ada_template_to_fixed_record_type and call it.
3675
3676 (template_to_static_fixed_type): Revise comment.
3677 Modify to work on ordinary record types as well as templates,
3678 so as to handle fields that use ___XVE or ___XVU encodings.
3679 (to_record_with_fixed_variant_part): Fill out comment.
3680 Initialize C++ stuff in right type.
3681 Allow case where DVAL is null.
3682 Handle case where variant field is not last.
3683 Fix typo concerning record length.
3684 (to_fixed_record_type): Decomment disabled code.
3685 (to_fixed_record_type): Use variant_field_index instead of
3686 contains_variant_part.
3687 (to_fixed_variant_branch_type): Ditto.
3688 (to_fixed_array_type): Decomment disabled code.
3689 (ada_to_fixed_type): Convert tagged types to the specific type.
3690 Deactivate the size-check for array types in order to avoid
3691 some false size alarms.
3692 (to_static_fixed_type): Decomment disabled code.
3693 Modify to call template_to_static_fixed_type
3694 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3695 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3696 Remove valaddr argument, as it is never really used.
3697 (ada_to_fixed_value): Change interface to act on single struct value*
3698 operand.
3699 (adjust_pc_past_prologue): New function.
3700 (ada_attribute_name): Modify to take enum exp_opcode argument.
3701
3702 (ada_enum_name): Recognize new homonym-distinguishing convention.
3703 Adjust local variable's type to remove compiler warning.
3704 Fix a small problem in the part that unqualifies the enumeration name.
3705 (ada_value_binop): New function.
3706 (ada_value_equal): New function.
3707
3708 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3709 Don't give error message when not doing normal evaluation
3710 and a tagged type doesn't seem to contain a structure member.
3711 Give error message for packed arrays.
3712 For indexing arrays, handle pointers to packed arrays correctly.
3713 Handle case of 'first and 'last attributes of bare integral type
3714 without encoded subtype info.
3715 Remove some unnecessary casts.
3716 Fix uninitialized value of type in computing 'first, 'last, or 'length
3717 of array object.
3718 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3719 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3720 calls.
3721 Attributes are now exp_opcode values.
3722 Correct treatment of 'modulus.
3723 Better error message for taking 'length of wrong kind of type;
3724 improve comment.
3725 Change EVAL_NORMAL to noside for consistency.
3726 Use ada_value_binop for DIV, MOD, REM.
3727 Make special case out of array of length 0, since an argument
3728 of 0 upsets some platforms' malloc.
3729 Use OP_STRING instead of OP_ARRAY.
3730 For slice, add check that we have an array type before extracting
3731 a slice out of it. Avoids a SEGV.
3732 When evaluating an array slice, if the array type is a reference to
3733 an aligner type, then replace the aligner type by the actual type.
3734 Decomment disabled code.
3735 Remove some dead code.
3736 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3737 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3738 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3739 and UNOP_MBR to UNOP_IN_RANGE.
3740 If an array type has a parallel ___XVE type, then use it.
3741 Turn arrays into pointers for lvalue arrays.
3742 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3743 bounds error and handle 0-length slices.
3744 Use lim_warning.
3745 When selecting fields, apply ada_to_fixed_value (because the fields
3746 might have ___XVU or ___XVE encodings even if not dynamic.)
3747 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3748 (ada_is_system_address_type): New function.
3749
3750 (get_var_value): Use new interface to ada_lookup_symbol_list.
3751 (get_int_var_value): New interface.
3752 (to_fixed_range_type): Allow unknown bound, with warning.
3753 (ada_is_modular_type): Decomment disabled code.
3754 (ADA_OPERATORS): New definition.
3755 (ada_operator_length): New function.
3756 (ada_expr_op_name): New function.
3757 (ada_forward_operator_length): New function.
3758 (ada_dump_subexp_body): New function.
3759 (ada_print_subexp): New function.
3760 (ada_exp_descriptor): New constant.
3761 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3762 (ada_language_defn): Add ada_exp_descriptor entry.
3763 Change ada_parse => parse.
3764 Add post-parser entry.
3765 Use ada-specific non-local symbol lookup.
3766 Don't use C-style arrays.
3767 String lower-bound is 1.
3768 Decomment disabled code.
3769 (parse): New function.
3770 New fields ada_translate_error_message, ada_lookup_symbol,
3771 ada_lookup_minimal_symbol.
3772
3773 * ada-lang.h: Update copyright dates.
3774 Replace the mangle/demangle terminology throughout by the
3775 more appropriate encode/decode one.
3776 Include breakpoint.h.
3777 Forward declare struct partial_symbol, struct block.
3778 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3779 (EXTRACT_ADDRESS): Remove.
3780 (EXTRACT_INT): Remove.
3781 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3782 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3783 (MAX_RENAMING_CHAIN_LENGTH): Define.
3784 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3785
3786 (enum task_states): Remove.
3787 ada_task_states: Remove.
3788 (fat_string): Remove.
3789 (struct entry_call): Remove.
3790 (struct task_fields): Remove.
3791 (struct task_entry): Remove.
3792
3793 (struct ada_symbol_info): Define.
3794 (enum ada_attribute): Remove.
3795 (enum ada_operator): Define.
3796
3797 (ada_get_field_index): Declare.
3798 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3799 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3800 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3801 (ada_lookup_symbol_list): New interface.
3802 (ada_decode_symbol): Declare.
3803 (ada_decode): Declare.
3804 (ada_lookup_symbol): New interface.
3805 (ada_update_initial_language): Declare.
3806 (ada_lookup_simple_minsym): Declare.
3807 (user_select_syms): New interface.
3808 (ada_sals_for_line): Declare.
3809 (ada_is_tagged_type): New interface.
3810 (ada_tag_name): Declare.
3811 (ada_lookup_struct_elt_type): Remove declaration.
3812 (ada_search_struct_field): Remove declaration.
3813 (ada_attribute_name): New interface.
3814 (ada_is_system_address_type): Declare.
3815 (ada_to_fixed_value): Remove declaration.
3816 (ada_template_to_fixed_record_type_1): Declare.
3817 (get_int_var_value): New interface.
3818 (ada_find_any_symbol): Declare.
3819 (ada_find_renaming_symbol): Declare.
3820 (ada_mangle): Rename to ada_encode.
3821 (ada_simple_renamed_entity): Remove const.
3822 (ada_main_name): Declare.
3823 (get_current_task): Rename to ada_get_current_task.
3824 (get_entry_number): Remove declaration.
3825 (ada_report_exception_break): Remove declaration.
3826 (ada_print_exception_breakpoint_nontask): Declare.
3827 (ada_print_exception_breakpoint_task): Declare.
3828 (ada_find_printable_frame): Declare.
3829
3830 * ada-lex.l: Update copyright notices.
3831 Use xmalloc and xfree instead of malloc and free.
3832 Use new interface to name_lookup.
3833 Use new interface to
3834 ada_mangle=>ada_encode.
3835 Redo handling of '$...' variable to parallel current treatment
3836 in c-exp.y.
3837 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3838 digit_to_int, strtoulst, processInt, processReal, processId,
3839 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3840 yywrap): Protoize.
3841
3842 (processInt): Use cast to remove harmless warning.
3843 (processReal): Modify to get rid of compiler warning on scan formats.
3844
3845 (processId): Replace xmalloc with obstack_alloc for name and remove
3846 call to ada_name_string_cleanup.
3847 Remove obsolete disabled code.
3848 (name_lookup): Ditto.
3849 New interface.
3850 Use obsavestring on temp_parse_space instead of savestring
3851 on name, and remove call to ada_name_string_cleanup.
3852 Free string returned from ada_simple_renamed_entity.
3853 Use new interface to ada_lookup_symbol_list.
3854 Decomment disabled code.
3855 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3856 not types.
3857 When a type name lookup succeeds as a result of
3858 lookup_primitive_typename, check for regular type entry that has not
3859 yet been read in.
3860 Limit length of chain of renamed symbols we are willing to follow.
3861 Do not break names beginning with "standard__" into segments.
3862 (block_lookup): Use new interface to ada_lookup_symbol_list.
3863
3864 * ada-typeprint.c: Update copyright notice.
3865 (demangled_type_name): Rename to decoded_type_name.
3866 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3867 (print_range_bound): Correct handling of negative
3868 bounds that make the index type looked unsigned under STABS.
3869 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3870 (print_range_type_named): Use the builtin int type if no type
3871 corresponding to the given type name could be found.
3872 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3873 Add some bullet-proofing.
3874 (print_variant_clauses): Allow for variant branches with ___XVU
3875 encodings that are not dynamic fields.
3876 Use new interface to ada_is_tagged_type.
3877 (print_record_type): Allow for fields with ___XVE encodings that
3878 are not dynamic fields.
3879 Use new interface to ada_is_tagged_type.
3880 (ada_print_type): ada_is_array_descriptor =>
3881 ada_is_array_descriptor_type.
3882
3883 * ada-valprint.c: Update copyright notice.
3884 Include gdb_string.h
3885 Include infcall.h
3886 (ui_memcpy): New function.
3887 (ada_print_floating): New function.
3888 (ada_print_str): Order arguments correctly.
3889 Correct handling of empty arrays and arrays of 0-length items.
3890 ada_is_array_descriptor => ada_is_array_descriptor_type
3891 Print values of type System.Address in hexadecimal format.
3892 Use ada_print_floating to print floating-point numbers in Ada format.
3893 Print class tag values with type names.
3894 No longer print the address of reference values. Avoids
3895 a potential confusion.
3896 (ada_value_print): Stop printing the object type for reference
3897 values, but preserve that behavior for access types. Avoids
3898 a potential confusion.
3899 Simplify one conditional expression, as the first part is now
3900 necessarily true.
3901 ada_is_array_descriptor => ada_is_array_descriptor_type
3902 Add check for arrays for null records, and print them by hand.
4c4b4cd2 3903
f65f91b5
JB
39042004-06-01 Jim Blandy <jimb@redhat.com>
3905
3906 * ppc-tdep.h: Delete unused 'regoff' member.
3907 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3908
d4687fa0
MC
39092004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3910
3911 Fix PR symtab/1661.
3912 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3913 (hpread_read_struct_type): Likewise.
3914
de169ec9
AC
39152004-06-01 Andrew Cagney <cagney@gnu.org>
3916
c6902d46
AC
3917 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3918 instead of xasprintf.
3919 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3920 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3921 (mi_cmd_data_list_register_names)
3922 (mi_cmd_data_list_changed_registers)
3923 (mi_cmd_data_list_register_values)
3924 (get_register, mi_cmd_data_write_register_values)
3925 (mi_cmd_data_write_register_values)
3926 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3927 (mi_cmd_target_download, mi_cmd_target_select)
3928 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3929 (mi_execute_cli_command, mi_execute_async_cli_command)
3930 (mi_execute_async_cli_command): Ditto.
3931 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3932 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3933
6085fc2d
AC
3934 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3935 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3936 error_last_message instead of mi_error_last_message.
3937 * mi/mi-main.c (mi_error_last_message): Delete function.
3938
de169ec9
AC
3939 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3940 "invalid number of columns" error. Delete redundant "out of
3941 memory" check.
3942
1fc7d519
MK
39432004-05-31 Mark Kettenis <kettenis@gnu.org>
3944
6cfb2041
MK
3945 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3946 (gregset_t, fpregset_t): Remove typedefs.
3947 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3948 (REG_OFFSET): Rename argument.
3949 (i386bsd_r_reg_offset): Rename from reg_offset.
3950 (REG_ADDR): Remove macro.
3951 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3952 functions.
3953 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3954 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3955 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3956 instead of supply_gregset.
3957 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3958 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3959 instead of fill_gregset.
3960 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3961
1fc7d519
MK
3962 * i386bsd-nat.c: Don't include "gregset.h".
3963 (supply_gregset, fill_gregset): Make static.
3964 (supply_fpregset, fill_fpregset): Remove.
3965 * Makefile.in (i386bsd-nat.o): Update dependencies.
3966
2c34abbe
MK
39672004-05-30 Mark Kettenis <kettenis@gnu.org>
3968
448724fb
MK
3969 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3970 "gdb_assert.h". Con't include "gregset.h".
3971 (fbsd_make_corefile_notes): Use regset-based core file support
3972 instead off fill_gregset and fill_fpregset.
3973 * Makefile.in (fbsd-proc.o): Update dependencies.
3974
5ca8ca7c
MK
3975 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3976 instructions.
3977 (m88k_frame_prev_register): Simplify code a bit.
3978
593adc23
MK
3979 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3980 (amd64_collect_fpregset): New function.
3981 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3982
8d1b517b
MK
3983 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3984
7fdafb5a
MK
3985 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3986 (i386_collect_gregset): New function.
3987 (i386_supply_fpregset): Adjust comment.
3988 (i386_collect_fpregset): New function.
3989 (i386_regset_from_core_section): Use i386_collect_gregset and
3990 i386_collect_fpregset.
3991
8693c419
MK
3992 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3993 handle VALUEP being null.
3994
2c34abbe
MK
3995 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3996
45d134d8
MK
39972004-05-29 Mark Kettenis <kettenis@gnu.org>
3998
1698f4e7
MK
3999 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4000
45d134d8
MK
4001 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4002 assembler in OpenBSD 3.5-current.
4003 (amd64obsd_sigcontext_addr): Likewise.
4004
691d145a
JB
40052004-05-28 Jim Blandy <jimb@redhat.com>
4006
4007 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4008 register set, so our regcache isn't declared "legacy" and our E500
4009 pseudoregister read and write functions aren't ignored.
4010 (rs6000_register_byte, rs6000_register_raw_size,
4011 rs6000_register_virtual_type, rs6000_register_convertible,
4012 rs6000_register_convert_to_virtual,
4013 rs6000_register_convert_to_raw): Deleted.
4014 (rs6000_register_type, rs6000_convert_register_p,
4015 rs6000_register_to_value, rs6000_value_to_register): New
4016 functions.
4017 (rs6000_gdbarch_init): Don't register
4018 gdbarch_deprecated_register_size,
4019 gdbarch_deprecated_register_bytes,
4020 gdbarch_deprecated_register_byte,
4021 gdbarch_deprecated_register_raw_size,
4022 gdbarch_deprecated_register_virtual_type,
4023 gdbarch_deprecated_register_convertible,
4024 gdbarch_deprecated_register_convert_to_virtual, or
4025 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4026 register gdbarch_register_type, gdbarch_convert_register_p,
4027 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4028
18ed0c4e
JB
40292004-05-26 Jim Blandy <jimb@redhat.com>
4030
4031 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4032 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4033 functions, updated to match the register numberings used in GCC.
4034 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4035 rs6000_dwarf2_reg_to_regnum as register number conversions
4036 functions for STABS and Dwarf2.
4037
779af9e3
RC
40382004-05-26 Randolph Chung <tausq@debian.org>
4039
4040 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4041 in header file.
4042
c23968a2
JB
40432004-05-25 Joel Brobecker <brobecker@gnat.com>
4044
4045 * NEWS: Document new "start" command.
4046
3a7d1c27
RC
40472004-05-25 Randolph Chung <tausq@debian.org>
4048
4049 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4050 hppa-linux.
4051
43613416
RC
40522004-05-25 Randolph Chung <tausq@debian.org>
4053
4054 * hppa-hpux-tdep.c (offsetof): Define.
4055 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4056 (hppa32_hpux_frame_base_before_sigtramp)
4057 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4058 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4059 (hppa64_hpux_frame_base_before_sigtramp)
4060 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4061 functions.
4062 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4063 (hppa_hpux_sigtramp_frame_unwind_cache)
4064 (hppa_hpux_sigtramp_frame_this_id)
4065 (hppa_hpux_sigtramp_frame_prev_register)
4066 (hppa_hpux_sigtramp_frame_unwind)
4067 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4068 (hppa_hpux_init_abi): Register sigtramp unwinder.
4069 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4070
6d1be3f1
RC
40712004-05-25 Randolph Chung <tausq@debian.org>
4072
4073 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4074 and multiple stack unwinds.
4075 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4076
97c34f65
AC
40772004-05-25 Andrew Cagney <cagney@gnu.org>
4078
4079 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4080 * symfile-mem.h: Delete file.
4081 * symfile-mem.c: Do not include "symfile-mem.h".
4082 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4083 "struct bfd_section". When an error do not bother returning NULL.
4084 (add_symbol_file_from_memory_command): Use "struct bfd" and
4085 "struct bfd_section".
4086 * Makefile.in (symfile_mem_h): Delete.
4087 (symfile-mem.o): Update dependencies.
4088
e23cbd82
NR
40892004-05-25 Nick Roberts <nickrob@gnu.org>
4090
4091 * gdb-mi.el: New file.
4092
20d2ca3e
AC
40932004-05-25 Andrew Cagney <cagney@gnu.org>
4094
4095 * inftarg.c: Include "observer.h".
4096 (child_attach, child_create_inferior): Notify inferior_created.
4097 * corelow.c: Include "observer.h".
4098 (core_open): Notify inferior_created.
4099 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4100
c27cda74
AC
41012004-05-25 Andrew Cagney <cagney@gnu.org>
4102
4103 * target.h (struct target_ops): Add from_tty to
4104 to_create_inferior.
4105 (target_create_inferior, find_default_create_inferior): Update.
4106 * infcmd.c (run_command): Update.
4107 * wince.c (child_create_inferior): Update.
4108 * win32-nat.c (child_create_inferior): Update.
4109 * uw-thread.c (uw_thread_create_inferior): Update.
4110 * thread-db.c (thread_db_create_inferior): Update.
4111 * target.c (debug_to_create_inferior)
4112 (find_default_create_inferior): Update.
4113 (maybe_kill_then_create_inferior): Update.
4114 * sol-thread.c (sol_thread_create_inferior): Update.
4115 * remote.c (extended_remote_async_create_inferior)
4116 (extended_remote_create_inferior): Update.
4117 * remote-vx.c (vx_create_inferior): Update.
4118 * remote-st.c (st2000_create_inferior): Update.
4119 * remote-sim.c (gdbsim_create_inferior): Update.
4120 * remote-sds.c (sds_create_inferior): Update.
4121 * remote-rdp.c (remote_rdp_create_inferior): Update.
4122 * remote-rdi.c (arm_rdi_create_inferior): Update.
4123 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4124 * remote-e7000.c (e7000_create_inferior): Update.
4125 * procfs.c (procfs_create_inferior): Update.
4126 * ocd.c (ocd_create_inferior): Update.
4127 * ocd.h (ocd_create_inferior): Update.
4128 * nto-procfs.c (procfs_create_inferior): Update.
4129 * monitor.c (monitor_create_inferior): Update.
4130 * lin-lwp.c (lin_lwp_create_inferior): Update.
4131 * inftarg.c (child_create_inferior): Update.
4132 * hpux-thread.c (hpux_thread_create_inferior): Update.
4133 * gnu-nat.c (gnu_create_inferior): Update.
4134
1db2a798
AC
41352004-05-25 Andrew Cagney <cagney@gnu.com>
4136
4137 * MAINTAINERS: Update e-mail address.
4138
007d08bb
RC
41392004-05-24 Randolph Chung <tausq@debian.org>
4140
4141 * thread.c (info_threads_command, thread_apply_all_command)
4142 (thread_apply_command, thread_command, do_captured_thread_select):
4143 Remove HPUXHPPA-specific code.
4144
69e7b95e
RC
41452004-05-24 Randolph Chung <tausq@debian.org>
4146
4147 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4148 unused symbols.
4149 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4150 references.
4151
a4d5f2e0
JB
41522004-05-24 Joel Brobecker <brobecker@gnat.com>
4153
4154 * infcmd.c (kill_if_already_running): New function, extracted
4155 from run_command().
4156 (run_command): Replace extracted code by call to
4157 kill_if_already_running().
4158 (start_command): New function.
4159 (_initialize_infcmd): Add "start" command.
4160
bf2ca189
MK
41612004-05-24 Mark Kettenis <kettenis@gnu.org>
4162
4163 Add OpenBSD/m88k support.
4164 * NEWS (New native configurations): Mention OpenBSD/m88k.
4165 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4166 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4167 * Makefile.in (m88k_tdep_h): New variable.
4168 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4169 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4170 * configure.host: Add m88*-*-openbsd*.
4171 * configure.tgt: Add m88*-*-openbsd*.
4172
80fadb11
JB
41732004-05-24 Jim Blandy <jimb@redhat.com>
4174
4175 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4176 to approve changes.
4177
19e2d14b
KB
41782004-05-24 Kevin Buettner <kevinb@redhat.com>
4179
4180 * symtab.c (fixup_section): Search section table when lookup by
4181 name fails.
4182
1b07b470
RC
41832004-05-24 Randolph Chung <tausq@debian.org>
4184
4185 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4186 be "small_struct".
4187
368702b1
MK
41882004-05-24 Mark Kettenis <kettenis@gnu.org>
4189
5df97fde
MK
4190 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4191 register number in regcache_raw_collect call.
4192 (m68kbsd_collect_fpregset): Likewise.
4193 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4194
368702b1
MK
4195 * regset.h (struct regset): Add back `regset' member.
4196
a770d4ec
MK
41972004-05-23 Mark Kettenis <kettenis@gnu.org>
4198
70f9f479
MK
4199 * configure.in: Check for td_pcb in `struct thread'.
4200 * configure, config.in: Regenerated.
4201
2e16d79e
MK
4202 * dpx2-nat.c: Remove file.
4203 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4204 (dpx2-nat.o): Remove dependencies.
4205
492cf391
MK
4206 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4207 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4208 (amd64obsd_supply_pcb): New function.
4209 (_initialize_amd64obsd_nat): Enable libkvm interface.
4210 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4211 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4212 (LOADLIBES): New variable.
4213
a770d4ec
MK
4214 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4215 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4216 (sparc32nbsd_supply_pcb): New function.
4217 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4218 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4219 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4220 (LOADLIBES): New variable.
4221
9ea75c57
MK
42222004-05-22 Mark Kettenis <kettenis@gnu.org>
4223
2e0c3539
MK
4224 * bsd-kvm.c, bsd-kvm.h: New files.
4225 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4226 "bsd-kvm.h".
4227 (i386fbsd_supply_pcb): New function.
4228 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4229 (i386fbsd-nat.o): Update dependencies.
4230 (bsd_kvm_h): New variable.
4231 (bsd-kvm.o): New dependency.
4232 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4233 (LOADLIBES): New variable.
4234
9ea75c57
MK
4235 * regset.c: Tweak comment.
4236 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4237 macro.
4238 * regset.h: Update copyright year.
4239 (struct regset): Remove `descr' member, add `gdbarch' member.
4240 (regset_alloc): Adjust prototype and comment.
4241 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4242 (i386_supply_fpregset): Likewise.
4243 (i386_regset_from_core_section): Update call to regset_alloc.
4244 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4245 REGSET->arch.
4246 (i386obsd_aout_regset_from_core_section): Update call to
4247 regset_alloc.
4248 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4249 REGSET->arch.
4250 (i386nbsd_aout_regset_from_core_section): Update call to
4251 regset_alloc.
4252 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4253 REGSET->arch.
4254 (amd64_regset_from_core_section): Update call to regset_alloc.
4255 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4256 REGSET->arch.
4257 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4258 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4259 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4260 (sparc32nbsd_init_abi): Update call to regset_alloc.
4261 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4262 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4263 (sparc64obsd_init_abi): Update call to regset_alloc.
4264 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4265 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4266 (sparc64nbsd_init_abi): Update call to regset_alloc.
4267 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4268 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4269 (sparc64fbsd_init_abi): Update call to regset_alloc.
4270
867e2dc5
JB
42712004-05-22 Jim Blandy <jimb@redhat.com>
4272
4273 * ppc-tdep.h (spe_register_p): New declaration.
4274 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4275 ppc_spefscr_regnum.
4276 * rs6000-tdep.c (spe_register_p): New function.
4277 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4278 spefscr.
4279 (rs6000_gdbarch_init): Initialize the new members of the tdep
4280 structure.
4281
617a4cba
JB
42822004-05-21 Jim Blandy <jimb@redhat.com>
4283
0397dee1
JB
4284 * ppc-linux-nat.c (fetch_register): Move code back to be next
4285 to the comment that describes it. (Moved code, instead of
4286 comment, for symmetry with store_register.)
4287
617a4cba
JB
4288 Allocate regset structures in the gdbarch's obstack, not using
4289 xmalloc.
4290 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4291 Add 'arch' argument. Allocate the regset on arch's obstack, not
4292 using xmalloc.
4293 * regset.h (regset_alloc): Update declaration.
4294 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4295 gdbarch argument.
4296 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4297 * i386-tdep.c (i386_regset_from_core_section): Same.
4298 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4299 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4300 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4301 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4302 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4303 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4304
9aa3914d
JB
43052004-05-21 Joel Brobecker <brobecker@gnat.com>
4306
4307 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4308
99c87dab
JB
43092004-05-21 Jim Blandy <jimb@redhat.com>
4310
4311 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4312 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4313
c2b6b4aa
JB
43142004-05-20 Jim Blandy <jimb@redhat.com>
4315
4316 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4317
144529d0
MK
43182004-05-20 Mark Kettenis <kettenis@gnu.org>
4319
4320 * regset.h: Make prototype const-correct.
4321 * regset.c (regset_xmalloc): Make const-correct.
4322
4725b721
PH
43232004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4324
4325 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4326 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4327 (symbol_search_name): Declare.
4328
4329 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4330 (iter_name_next_hashed): Ditto.
4331 (iter_name_next_linear): Ditto.
4332 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4333
4334 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4335 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4336 (symbol_search_name): New function.
4337
4338 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4339
4340 * minsyms.c (build_minimal_symbol_hash_tables): Change
4341 test for adding to demangled hash table to check for difference
4342 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4343
be07a590
JB
43442004-05-19 Jim Blandy <jimb@redhat.com>
4345
4346 Use a constructor function to create regset structures.
4347 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4348 (struct regset): Use supply_regset_ftype. Add new
4349 'collect_regset' member.
4350 (regset_xmalloc): New declaration.
4351 * regset.c: New file.
4352 * am64-tdep.c (amd64_regset_from_core_section): Use
4353 regset_xmalloc to construct regset structures.
4354 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4355 * i386-tdep.c (i386_regset_from_core_section): Same.
4356 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4357 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4358 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4359 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4360 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4361 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4362 * Makefile.in (COMMON_OBS): Add regset.o.
4363 (regset.o): New rule.
4364
604368f5
JB
43652004-05-19 Joel Brobecker <brobecker@gnat.com>
4366
4367 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4368 and pthread_cond_wait.c.
4369
82d69f8b
JB
43702004-05-18 Jim Blandy <jimb@redhat.com>
4371
4372 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4373 before the mach-specific switch, and then let the individual cases
4374 override the defaults, rather than leaving them uninitialized
4375 until the switch and then setting them in each case.
4376
5859efe5
RC
43772004-05-18 Randolph Chung <tausq@debian.org>
4378
4379 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4380 millicode functions.
4381
9ca80cf8
RC
43822004-05-18 Randolph Chung <tausq@debian.org>
4383
4384 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4385 references to dld_flags_buffer consistent.
4386
ed70ba00
RC
43872004-05-18 Randolph Chung <tausq@debian.org>
4388
4389 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4390 it for unwinding the stack.
4391
63100632
RC
43922004-05-18 Randolph Chung <tausq@debian.org>
4393
4394 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4395 Undefine these so we can overide them using gdbarch.
4396
090ccbb7
RC
43972004-05-18 Randolph Chung <tausq@debian.org>
4398
4399 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4400 handling for 64-bit HPUX (elf).
4401
594706e6
DJ
44022004-05-18 Daniel Jacobowitz <dan@debian.org>
4403
4404 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4405 constants.
4406 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4407 * ia64-tdep.c (examine_prologue): Likewise.
4408 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4409 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4410
e5483145
MK
44112004-05-18 Mark Kettenis <kettenis@gnu.org>
4412
4413 * vax-tdep.c (vax_return_value): Implement
4414 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4415
caed1a45
MK
44162004-05-17 Mark Kettenis <kettenis@gnu.org>
4417
4418 * vax-tdep.c (vax_return_value): Fix typo.
4419
3c0b7db2
AC
44202004-05-17 Andrew Cagney <cagney@redhat.com>
4421
5aae53e5
AC
4422 * MAINTAINERS: Mark Salter was also responsible for
4423 testsuite/config/
4424
3c0b7db2
AC
4425 * NEWS: Mention signal fixes.
4426
22b0923d
RC
44272004-05-17 Randolph Chung <tausq@debian.org>
4428
4429 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4430 check to see if we are unwinding an export stub. Export stubs clobber
4431 the %rp in the call path and stores the original rp in a stack slot.
4432
22f2b2f3
JB
44332004-05-17 Jim Blandy <jimb@redhat.com>
4434
4435 * MAINTAINERS: Update address for J.T. Conklin.
4436
cea96d64
RC
44372004-05-17 Randolph Chung <tausq@debian.org>
4438
4439 * hppa-tdep.c: Remove superfluous #include's.
4440 * Makefile.in (hppa-tdep.o): Update dependencies.
4441
f08f6a4a
RC
44422004-05-17 Randolph Chung <tausq@debian.org>
4443
4444 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4445 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4446 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4447 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4448 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4449 Remove static function declarations.
4450
51da707a
MK
44512004-05-17 Mark Kettenis <kettenis@gnu.org>
4452
caed1a45
MK
4453 * alphabsd-nat.c: Update copyright year.
4454 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4455
c0c2b0db
MK
4456 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4457 and M68K_A2_REGNUM.
4458
51da707a
MK
4459 * m68k-tdep.c (m68k_svr4_return_value): Implement
4460 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4461
8d027a04
MK
44622004-05-16 Mark Kettenis <kettenis@gnu.org>
4463
4464 * sol-thread.c Update copyright year. Fix various coding
4465 standards violations. Tweak a few comments.
4466 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4467 Delete prototypes.
4468
0d99fdb9
RC
44692004-05-15 Randolph Chung <tausq@debian.org>
4470
4471 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4472 as pointer instead of array reference since HPUX compiler does
4473 not accept unsized array arguments.
4474 * somsolib.c (dld_flags_buffer): Use constant array size.
4475
f7e3843a
MK
44762004-05-15 Mark Kettenis <kettenis@gnu.org>
4477
0fe85704
MK
4478 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4479 offset with decimal offset.
4480 (amd64obsd_sigcontext_addr): Return correct address for entire
4481 signal trampoline.
4482
a54f9a00
MK
4483 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4484 instead of get_frame_base.
4485
feae6502
MK
4486 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4487 (fill_gregset): Use regcache_raw_collect.
4488
0382d099
MK
4489 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4490 ppcobsd-tdep.c.
4491
f7e3843a
MK
4492 * config/sparc/tm-nbsd64.h: Remove file.
4493 * config/tm-sunos.h: Remove file.
4494
773df3e5
JB
44952004-05-15 Joel Brobecker <brobecker@gnat.com>
4496
4497 * rs6000-tdep.c (store_param_on_stack_p): New function,
4498 an improved version of some code extracted from skip_prologue().
4499 (skip_prologue): Use store_param_on_stack_p() to detect
4500 instructions saving a parameter on the stack. Detect when r0
4501 is used to save a parameter.
4502 Do not mark "li rx, SIMM" instructions as part of the prologue,
4503 unless the following instruction is also part of the prologue.
4504
95918acb
AC
45052004-05-14 Andrew Cagney <cagney@redhat.com>
4506
06f32659
AC
4507 * infrun.c (handle_inferior_event): Simplify
4508 STEP_OVER_UNDEBUGGABLE.
4509
95918acb
AC
4510 * infrun.c (handle_step_into_function): Delete function.
4511 (handle_inferior_event): Inline calls to
4512 handle_step_into_function.
4513
40711ff1 45142004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
4515
4516 * rs6000-nat.c: Fix a comment.
4517
02f60eae
JB
45182004-05-12 David Anderson <davea@sgi.com>
4519
4520 Committed by Jim Blandy <jimb@redhat.com>:
4521 * regcache.c (struct regcache_descr): fix comment spelling.
4522
552e377b
JB
45232004-05-13 J. Brobecker <brobecker@gnat.com>
4524
4525 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4526 Fixes a link link failure.
4527
349766b2
JB
45282004-05-13 J. Brobecker <brobecker@gnat.com>
4529
4530 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4531 error that was causing the build to fail.
4532
0d4d5484
JB
45332004-05-13 J. Brobecker <brobecker@gnat.com>
4534
4535 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4536 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4537
0b30808c
AC
45382004-05-13 Andrew Cagney <cagney@redhat.com>
4539
4540 * infrun.c (handle_inferior_event): Check for
4541 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4542 calls. Update comments.
4543
cdf2c5f5
JB
45442004-05-13 Jim Blandy <jimb@redhat.com>
4545
063715bf
JB
4546 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4547 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4548 (store_regs_user_thread, store_regs_kernel_thread): Use
4549 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4550 * ppc-linux-nat.c (fill_gregset): Same.
4551 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4552 (ppc_linux_sigtramp_cache): Same.
4553 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4554 (ppcnbsd_sigtramp_cache_init): Same.
4555 * rs6000-nat.c (fetch_core_registers): Same.
4556 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4557 (rs6000_frame_cache): Same.
4558
cdf2c5f5
JB
4559 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4560 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4561 of assuming that the gprs are numbered starting with zero.
4562 * ppc-linux-nat.c (fill_gregset): Same.
4563 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4564 * ppcnbsd-nat.c (getregs_supplies): Same.
4565 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4566 * rs6000-nat.c (fetch_core_registers): Same.
4567 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4568
450bd37b
MS
45692004-05-07 Michael Snyder <msnyder@redhat.com>
4570
4571 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4572 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4573
4a72a2a6
AC
45742004-05-13 Andrew Cagney <cagney@redhat.com>
4575
4576 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4577
8edfa926
BM
45782004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4579
4580 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4581 base_address for shared libraries.
4582
723e0e3d
BM
45832004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4584
4585 * MAINTAINERS (write after approval): Add myself.
4586
00d4360e
UW
45872004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4588
4589 * breakpoint.c (bpstat_stop_status): Add new argument
4590 STOPPED_BY_WATCHPOINT. Use it instead of testing
4591 target_stopped_data_address agaist 0 to check whether
4592 or not we stopped due to a hardware watchpoint.
4593 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4594 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4595 with new argument.
4596
ec76baa5
JB
45972004-05-12 Jim Blandy <jimb@redhat.com>
4598
4599 * configure.in: When checking whether we should use the -bbigtoc
4600 option, don't forget to restore the original value of LDFLAGS.
4601 * configure: Regenerated.
4602
f2c9ca08
AC
46032004-05-12 Andrew Cagney <cagney@redhat.com>
4604
4605 * thread.c (load_infrun_state): Delete step_sp.
4606 * infrun.c (context_switch): Ditto.
4607 * inferior.h (step_sp): Ditto.
4608 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4609 * gdbthread.h (struct thread_info, save_infrun_state)
4610 (restore_infrun_state): Ditto.
4611
090ddb2a
UW
46122004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4613
4614 * MAINTAINERS (write after approval): Add myself.
4615
8aad930b
AC
46162004-05-12 Andrew Cagney <cagney@redhat.com>
4617
4618 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4619 eliminate reference to step_sp.
4620 (struct execution_control_state, init_execution_control_state)
4621 (handle_inferior_event, keep_going): Delete update_step_sp and
4622 step_sp.
4623 * infcmd.c (step_sp): Note that variable is unused.
4624
922d5ae0
AC
46252004-05-11 Andrew Cagney <cagney@redhat.com>
4626
4627 * infrun.c (step_over_function): Delete function.
4628 (handle_step_into_function): Use insert_step_resume_breakpoint.
4629 (insert_step_resume_breakpoint): Fix assertion.
4630
017c5ca5
NR
46312004-05-11 Nick Roberts <nickrob@gnu.org>
4632
4633 * utils.c (defaulted_query): Just use the normal query input type
4634 when printing the annotations.
4635
42edda50
AC
46362004-05-11 Andrew Cagney <cagney@redhat.com>
4637
4638 * infrun.c (handle_inferior_event): Simplify code handling
4639 step-into or return-from a signal trampoline.
4640
d28b44a7
AC
46412004-05-11 Andrew Cagney <cagney@redhat.com>
4642
4643 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4644 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4645
383f0f5b
JB
46462004-05-10 Jim Blandy <jimb@redhat.com>
4647
d0b57c3a
JB
4648 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4649 with a call to internal_error.
4650
383f0f5b
JB
4651 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4652 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4653 processor variant lacks those registers.
4654 (ppc_floating_point_unit_p): Change description to make it clear
4655 that this returns info about the ISA, not the ABI.
4656 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4657 return true or false by checking tdep->ppc_fp0_regnum and
4658 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4659 arch/mach switching done in rs6000_gdbarch_init; it's better to
4660 keep that logic there, and just check the results here.
4661 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4662 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4663 floating-point registers.
4664 (ppc_supply_fpregset, ppc_collect_fpregset)
4665 (rs6000_push_dummy_call, rs6000_extract_return_value)
4666 (rs6000_store_return_value): Assert that we have floating-point
4667 registers.
4668 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4669 (rs6000_frame_cache): Don't note the locations at which
4670 floating-point registers were saved if we have no fprs.
4671 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4672 registers.
4673 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4674 (store_regs_user_thread, store_regs_kernel_thread): Only call
4675 supply_fprs / fill_fprs if we actually have floating-point
4676 registers.
4677 (special_register_p): Check ppc_fpscr_regnum before matching
4678 against it.
4679 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4680 supply / collect fpscr if we don't have it.
4681 * ppc-bdm.c: #include "gdb_assert.h".
4682 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4683 have floating-point registers, since I can't test this code on
4684 FP-free systems to adapt it.
4685 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4686 fpscr and floating point register numbers if they don't exist.
4687 (fetch_register): Assert that we have floating-point registers
4688 before we reach the code that handles them.
4689 (store_register): Same. And use tdep instead of calling
4690 gdbarch_tdep again.
4691 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4692 don't have them.
4693 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4694 fprs and fpscr if we don't have them.
4695 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4696 don't have them.
4697 * ppcnbsd-nat.c: #include "gdb_assert.h".
4698 (getfpregs_supplies): Assert that we have floating-point registers.
4699 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4700 * ppcobsd-tdep.c: #include "gdb_assert.h".
4701 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4702 have floating-point registers.
4703 * rs6000-nat.c (regmap): Don't match against the fpscr and
4704 floating point register numbers if they don't exist.
4705 (fetch_inferior_registers, store_inferior_registers,
4706 fetch_core_registers): Only fetch / store / supply the
4707 floating-point registers and the fpscr if we have them.
4708 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4709 (ppcobsd-tdep.o): Update dependencies.
4710
15960608
AC
47112004-05-10 Andrew Cagney <cagney@redhat.com>
4712
4713 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4714 (context_switch): Do not switch through_sigtramp_breakpoint.
4715 * gdbthread.h (save_infrun_state, load_infrun_state)
4716 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4717 and structure member.
4718 * thread.c (load_infrun_state, save_infrun_state): Update.
4719
5ab5aa0f
MK
47202004-05-10 Mark Kettenis <kettenis@gnu.org>
4721
4722 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4723
da78b0e7
DJ
47242004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4725
4726 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4727 throughout.
4728 * aclocal.m4: Regenerate.
4729
cca0d3b0
NW
47302004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4731
4732 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4733
d303a6c7
AC
47342004-05-10 Andrew Cagney <cagney@redhat.com>
4735
4736 * infrun.c (check_sigtramp2): Delete function.
4737 (handle_inferior_event): When single stepping, and taking a
4738 signal, set a breakpoint at the signal return address. Delete
4739 redundant calls to check_sigtramp2.
4740 (insert_step_resume_breakpoint): New function.
4741 (through_sigtramp_breakpoint, handle_inferior_event)
4742 (follow_exec, wait_for_inferior, fetch_inferior_event)
4743 (currently_stepping, keep_going): Delete most uses of
4744 through_sigtramp_breakpoint, not that it should be deleted.
4745 (delete_breakpoint_current_contents): Delete function.
4746
03f4cc20
RC
47472004-05-10 Randolph Chung <tausq@debian.org>
4748
4749 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4750 target.
4751 * config/pa/tm-linux.h: New file.
4752
37fc812e
DJ
47532004-05-10 Daniel Jacobowitz <drow@mvista.com>
4754
4755 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4756 of prefixes. Don't print the prefix twice in the CLI.
4757
26c0b942
JB
47582004-05-10 Jim Blandy <jimb@redhat.com>
4759
2e56e9c1
JB
4760 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4761 collect all the gprs.
4762
26c0b942
JB
4763 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4764 loop collecting gprs.
4765
dc497459
AC
47662004-05-09 Andrew Cagney <cagney@redhat.com>
4767
4768 * remote-vx.c (net_step): Delete step-range code.
4769 * remote.c (remote_resume, init_all_packet_configs)
4770 (set_remote_protocol_E_packet_cmd)
4771 (show_remote_protocol_E_packet_cmd)
4772 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4773 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4774 (show_remote_protocol_e_packet_cmd): Ditto.
4775
0543f387
MK
47762004-05-09 Mark Kettenis <kettenis@gnu.org>
4777
c481d1ca
MK
4778 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4779
f626a069
MK
4780 * hppa-tdep.h: Update copyright year.
4781 (struct trad_frame_saved_reg): Add opaque declaration.
4782
6fa57a7d
MK
4783 * amd64-tdep.c (amd64_return_value): Implement
4784 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4785
e47577ab
MK
4786 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4787 (m68k_value_to_register): New functions.
4788 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4789 value_to_register.
4790
31db7b6c
MK
4791 * defs.h (enum return_value_convention): Add
4792 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4793 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4794 * infcmd.c (legacy_return_value): New function.
4795 (print_return_value): Rwerite to implement
4796 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4797 * values.c (using_struct_return): Check for inequality to
4798 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4799 RETURN_VALUE_STRUCT_CONVENTION.
4800 * i386-tdep.c (i386_return_value): Implement
4801 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4802
0543f387
MK
4803 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4804 include "symtab.h", "opcode/vax.h" and "inferior.h".
4805 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4806 to read_memory_unsigned_integer.
4807 (vax_gdbarch_init): Reorder.
4808 (_initialize_vax_tdep): Spell out prototype.
4809 * Makefile.in (vax-tdep.o): Update dependencies.
4810
0c93b7b6
AC
48112004-05-08 Andrew Cagney <cagney@redhat.com>
4812
e6b55ae2
AC
4813 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4814 * target.c (target_detach, target_disconnect): Ditto.
4815
1ac839b8
AC
4816 * infcall.c (call_function_by_hand): When no
4817 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4818 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4819 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4820 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4821 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4822
28954179
AC
4823 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4824 * gdbarch.h, gdbarch.c: Re-generate.
4825 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4826 deprecated_fix_call_dummy.
4827 * v850-tdep.c (v850_gdbarch_init): Ditto.
4828 * infcall.c (call_function_by_hand): Do not call
4829 DEPRECATED_FIX_CALL_DUMMY.
4830
434b87dd
AC
4831 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4832 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4833 * gdbarch.h, gdbarch.c: Re-generate.
4834 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4835 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4836 deprecated_sizeof_call_dummy_words.
4837 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4838 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4839 * v850-tdep.c (v850_gdbarch_init): Ditto.
4840 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4841 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4842 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4843 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4844 * arch-utils.h (legacy_call_dummy_words)
4845 (legacy_sizeof_call_dummy_words): Delete declarations.
4846 * arch-utils.c (legacy_call_dummy_words)
4847 (legacy_sizeof_call_dummy_words): Delete variables.
4848
58d28df8
AC
4849 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4850 * gdbarch.h, gdbarch.c: Re-generate.
4851 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4852 * infcall.c (call_function_by_hand): Eliminate call to
4853 DEPRECATED_PUSH_DUMMY_FRAME.
4854 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4855 push_dummy_frame.
4856 (ns32k_push_dummy_frame): Delete function.
4857
e4a2df64
AC
4858 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4859 deprecated_call_dummy_breakpoint_offset or
4860 deprecated_call_dummy_start_offset.
4861 * dummy-frame.c, arm-tdep.c: Update comments.
4862 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4863 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4864 * gdbarch.h, gdbarch.c: Re-generate.
4865
d3712828
AC
4866 * infcall.c (legacy_push_dummy_code): Delete function.
4867 (push_dummy_code): Delete call.
4868
7a882905
AC
4869 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4870 * gdbarch.h, gdbarch.c: Re-generate.
4871 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4872 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4873 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4874 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4875
0ec5872b
AC
4876 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4877 (struct frame_info): Delete opaque declaration.
4878 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4879 * frame.c (get_frame_type): Delete call.
4880
0c93b7b6
AC
4881 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4882 pc_in_call_dummy.
4883 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4884 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4885
75536971
MK
48862004-05-08 Mark Kettenis <kettenis@gnu.org>
4887
527ca6bb
MK
4888 * alphanbsd-tdep.c: Include "gdb_string.h".
4889 * armnbsd-tdep.c: Update copyright year.
4890 Include "gdb_string.h".
4891 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4892 dependencies.
4893
d39fdc61
MK
4894 * delta68-nat.c: Remove file.
4895 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4896 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4897 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4898 (delta68-nat.o): Remove dependency.
4899
75536971
MK
4900 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4901 function.
4902 (m68k_gdbarch_init): Don't set
4903 deprecated_frameless_function_invocation.
4904
f4ca1d1f
RC
49052004-05-07 Randolph Chung <tausq@debian.org>
4906
4907 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4908 read_memory_nobpt for code reading when doing frame unwinding.
4909 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4910
2f0e8c7a
RC
49112004-05-07 Randolph Chung <tausq@debian.org>
4912
4913 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4914 instead of sp, handle sigaltstack case.
4915 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4916 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4917 signal handler and not that of the caller.
4918 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4919 hppa_linux_sigtramp_find_sigcontext.
4920
959464ff
RC
49212004-05-07 Randolph Chung <tausq@debian.org>
4922
4923 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4924 hppa-linux-nat.c.
4925 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4926 * hppa-linux-nat.c (fetch_register, store_register): Define.
4927 (fetch_inferior_registers, store_inferior_registers): Define.
4928 (supply_gregset): Add comment and clean up some unneeded code.
4929 (fill_gregset): Add comment and fix so that it saves registers in
4930 the right place in the gregset.
4931 (fill_fpregset): Fix buffer overrun problem.
4932 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4933
0da28f8a
RC
49342004-05-07 Randolph Chung <tausq@debian.org>
4935
4936 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4937 do common handling of the pcoqt register.
4938 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4939 to use helper function.
4940 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4941 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4942 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4943 generic fallback unwinder when all else fails.
4944 (hppa_gdbarch_init): Add fallback sniffer.
4945 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4946 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4947 to use helper function.
4948
b9ec757a
JB
49492004-05-08 Joel Brobecker <brobecker@gnat.com>
4950
4951 * config/djgpp/fnchange.lst: Add translation rules for
4952 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4953
756e95f1
MK
49542004-05-08 Mark Kettenis <kettenis@gnu.org>
4955
4956 * frame.c (get_prev_frame_1): Work around GCC bug.
4957 * frame.h: Add comment about GCC bug.
4958
2b4855ab
AC
49592004-05-07 Andrew Cagney <cagney@redhat.com>
4960
4961 * observer.c: Include "commands.h" and "gdbcmd.h".
4962 (observer_debug, _initialize_observer): Add the
4963 command "set/show debug observer".
4964 * observer.sh: When observer debugging, log notify calls.
4965 * Makefile.in (observer.o): Update dependencies.
4966
ba3e8e46
JM
49672004-05-07 Jason Molenda (jmolenda@apple.com)
4968
4969 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4970
16796152
JB
49712004-05-07 Jim Blandy <jimb@redhat.com>
4972
daf6dc85
JB
4973 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4974 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4975 to recognize gpr regnums, instead of assuming that
4976 tdep->ppc_fp0_regnum marks the end of the general-purpose
4977 registers.
4978
16796152
JB
4979 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4980 the given architecture has floating-point registers.
4981
c69b8bfc
AC
49822004-05-07 Andrew Cagney <cagney@redhat.com>
4983
4984 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4985 macro defined to 1.
4986 * gdbarch.h, gdbarch.c: Re-generate.
4987 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4988 deprecated_use_generic_dummy_frames.
4989
7243600a
BF
49902004-05-07 Brian Ford <ford@vss.fsi.com>
4991
4992 * NEWS: Mention Cygwin DWARF 2 support.
4993
73c1e0a1
AC
49942004-05-07 Andrew Cagney <cagney@redhat.com>
4995
4996 * objfiles.h (struct entry_info): Delete unused fields
4997 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4998 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4999 * mipsread.c (mipscoff_symfile_read): Update.
5000 * mdebugread.c (parse_partial_symbols): Update.
5001 * dwarfread.c (read_file_scope): Update.
5002 * dwarf2read.c (read_file_scope): Update.
5003 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5004 * coffread.c (complete_symtab): Update.
5005
1d3056ac
MK
50062004-05-07 Mark Kettenis <kettenis@gnu.org>
5007
5008 * infcall.c (_initialize_infcall): Fix typo.
5009
15170568
AC
50102004-05-07 Andrew Cagney <cagney@redhat.com>
5011
5012 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5013 * command.h (add_setshow_zinteger_cmd): Declare.
5014
34f75cc1
RC
50152004-05-06 Randolph Chung <tausq@debian.org>
5016
5017 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5018 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5019 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5020 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5021 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5022 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5023 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5024 definitions ...
5025 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5026 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5027 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5028 (hppa64_hpux_frame_find_saved_regs_in_sig)
5029 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5030 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5031 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5032 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5033 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5034 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5035 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5036 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5037 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5038 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5039 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5040 (hppa32_register_type, hppa_cannot_store_register)
5041 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5042 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5043 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5044 * pa64solib.c (pa64_solib_have_load_event)
5045 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5046 (pa64_solib_unloaded_library_pathname): Likewise.
5047 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5048 (som_solib_library_pathname): Likewise.
5049
0a5e7efe
JI
50502004-05-05 Jim Ingham <jingham@apple.com>
5051
5052 * breakpoint.c (create_breakpoints): Copy the ignore count and
5053 thread id over from the pended breakpoint to the actual
5054 breakpoint.
5055
10a4b113
AC
50562004-05-05 Andrew Cagney <cagney@redhat.com>
5057
5058 * gdbarch.sh (PARM_BOUNDARY): Delete.
5059 gdbarch.h, gdbarch.c: Re-generate.
5060 * valops.c (PARM_BOUNDARY): Delete macro.
5061 (value_push): Delete PARM_BOUNDARY code.
5062 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5063
366f009f
JB
50642004-05-04 Jim Blandy <jimb@redhat.com>
5065
32b99774
JB
5066 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5067 Don't assume that the gprs, fprs, and UISA sprs are
5068 contiguous, start at register number zero, and end with fpscr.
5069 Instead, use the numbers from the tdep structure.
5070
366f009f
JB
5071 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5072 should no longer be used in code specific to the RS6000 and its
5073 derivatives.
5074 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5075 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5076 tdep->ppc_fp0_regnum.
5077 (ppc_supply_fpregset, ppc_collect_fpregset)
5078 (rs6000_push_dummy_call, rs6000_extract_return_value)
5079 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5080 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5081 FP0_REGNUM.
5082 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5083 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5084 Same.
5085 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5086 bdm_ppc_store_registers): Same.
5087 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5088 (store_register, fill_fpregset): Same.
5089 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5090 (ppc_linux_supply_fpregset): Same.
5091 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5092 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5093 Same.
5094 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5095 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5096 ppc64_sysv_abi_return_value): Same.
5097 * rs6000-nat.c (regmap, fetch_inferior_registers)
5098 (store_inferior_registers, fetch_core_registers): Same.
5099
827f338d
MK
51002004-05-01 Mark Kettenis <kettenis@gnu.org>
5101
5102 * m68knbsd-nat.c: Remove file.
5103 * m68knbsd-tdep.c: Remove file.
5104 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5105 dependencies.
5106 * configure.host: Add m68k-*-netbsdelf*.
5107 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5108 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5109 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5110 (XM_FILE): Remove.
5111 * config/m68k/nbsdelf.mh: New file.
5112 * config/m68k/nbsd.mt: New file.
5113 * config/m68k/nbsdaout.mt: Remove file.
5114 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5115 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5116 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5117 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5118 (use_struct_convention): Remove prototype.
5119 (USE_STRUCT_CONVENTION): Remove define.
5120 * config/m68k/xm-nbsd.h: Remove file.
5121
66894781
MS
51222004-05-04 Michael Snyder <msnyder@redhat.com>
5123
5124 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5125 reg_struct_return method (as gcc usually does for cross targets).
5126
f0f63663
AC
51272004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5128
5129 Committed by Andrew Cagney.
5130 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5131 alignment padding when accessing ucontext struct members.
5132
edf61169
JB
51332004-05-04 Jim Blandy <jimb@redhat.com>
5134
8bf659e8
JB
5135 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5136 'ppc_gplast_regnum' member.
5137 (ppc_num_gprs): New enum constant.
5138 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5139 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5140 * rs6000-nat.c (regmap, fetch_inferior_registers,
5141 store_inferior_registers): Same.
5142 * rs6000-tdep.c (e500_pseudo_register_read)
5143 (e500_pseudo_register_write): Same.
5144 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5145
b967e06f
JB
5146 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5147 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5148 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5149 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5150 FPLAST_REGNUM.
5151 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5152 Same.
5153 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5154 * rs6000-nat.c (regmap, fetch_inferior_registers)
5155 (store_inferior_registers): Same.
5156
edf61169
JB
5157 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5158 with FPLAST_REGNUM.
5159
58a9656e
JB
51602004-05-03 Joel Brobecker <brobecker@gnat.com>
5161
5162 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5163 failure detected by recent versions of GCC.
5164 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5165 to be consistent with the usage in dwarf2_create_include_psymtab.
5166
dc305454
MS
51672004-05-03 Michael Snyder <msnyder@redhat.com>
5168
5169 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5170 (heuristic_proc_start): Whitespace cleanup.
5171
29972665
MK
51722004-05-04 Mark Kettenis <kettenis@gnu.org>
5173
6b57680d
MK
5174 * sun3-nat.c: Remove file.
5175 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5176 dependencies.
5177 (ALLDEPFILES): Remove sun3-nat.c.
5178 (sun3-nat.o): Remove dependencies.
5179
29972665
MK
5180 * i386-interix-nat.c, i386-interix-tdep.c,
5181 config/i386/nm-interix.h, config/i386/interix.mh,
5182 config/i386/interix.mt: Remove files.
5183 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5184 dependencies.
5185
f595cb19
MK
51862004-05-03 Mark Kettenis <kettenis@gnu.org>
5187
5188 * m68k-tdep.h (struct gdbarch_tdep): Add member
5189 struct_value_regnum.
5190 (m68k_svr4_init_abi): New prototype.
5191 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5192 different calling conventions.
5193 (m68k_extract_return_value): Remove code dealing with single-field
5194 structs.
5195 (m68k_store_return_value): Remove code dealing with single-field
5196 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5197 (m68k_extract_struct_value_address): Remove function.
5198 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5199 (m68k_reg_struct_return_p, m68k_return_value)
5200 (m68k_svr4_return_value): New functions.
5201 (m68k_use_struct_convention): Remove function.
5202 (m68k_push_dummy_call): Use new struct_value_regnum member of
5203 `struct gdbarch_tdep' instead of hardcoded register number to
5204 store STRUCT_ADDR.
5205 (m68k_svr4_init_abi): New function.
5206 (m68k_gdbarch_init): Don't set extract_return_value,
5207 store_return_values, deprecated_extract_struct_value_address and
5208 use_struct_convention. Set return_value instead. Initialize new
5209 struct_value_regnum member of `struct gdbarch_tdep'.
5210 * m68klinux-tdep.c: Update copyright year.
5211 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5212 (m68k_linux_extract_struct_value_address): Remove function.
5213 (m68k_linux_init_abi): Don't set extract_return_value,
5214 store_return_values, deprecated_extract_struct_value_address and
5215 use_struct_convention. Call m68k_svr4_init_abi but override the
5216 new struct_value_regnum member of `struct gdbarch_tdep'.
5217 * Makefile.in (m68k-tdep.o): Update dependencies.
5218
aaa75496
JB
52192004-05-03 J. Brobecker <brobecker@gnat.com>
5220
5221 * dwarf2read.c (line_header): Add new included_p field in
5222 field file_names.
5223 (partial_die_info): New field has_stmt_list. New field line_offset.
5224 (dwarf2_create_include_psymtab): New function.
5225 (dwarf2_build_include_psymtabs): New function.
5226 (add_file_name): Add forward declaration. Initialize new field.
5227 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5228 to be able to determine the list of files included by the
5229 given unit, and build their associated psymtabs.
5230 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5231 files as well.
5232 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5233 (read_file_scope): Update call to dwarf_decode_lines.
5234 (read_partial_die): Handle DW_AT_stmt_list attributes.
5235
c848556f
MC
52362004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5237
5238 Unfix PR gdb/1626.
5239 * configure.in: Revert special case for osf5.*.
5240 * configure: Regenerate.
5241
eb4556d7
JB
52422004-05-02 Jim Blandy <jimb@redhat.com>
5243
5244 Move the symbol-file-from-memory functions into their own file.
5245 * symfile-mem.c, symfile-mem.h: New files.
5246 * symfile.c (symbol_file_add_from_bfd): New function.
5247 (symbol_file_add): Call symbol_file_add_from_bfd.
5248 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5249 Moved to symfile-mem.c.
5250 (_initialize_symfile): Move definition of
5251 add-symbol-file-from-memory command to symfile-mem.c.
5252 * symfile.h (symbol_file_add_from_bfd): New declaration.
5253 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5254 * config/powerpc/linux.mt (TDEPFILES): Same.
5255 * Makefile.in (SFILES): Add symfile-mem.c.
5256 (symfile_mem_h): New variable.
5257 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5258 (symfile-mem.o): New rule.
5259
80bb239e
AC
52602004-05-01 Andrew Cagney <cagney@redhat.com>
5261
7789d0fa
AC
5262 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5263 frame_find_by_id instead of frame_relative_level.
5264 (do_enable_breakpoint): Ditto.
5265 * thread.c: Update copyright.
5266 (info_threads_command): Ditto, simplify.
5267
80bb239e
AC
5268 * frame.c (deprecated_generic_get_saved_register): Delete
5269 function, moved to "xstormy16-tdep.c".
5270 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5271 deprecated_generic_get_saved_register from "frame.c".
5272 (xstormy16_frame_saved_register): Call
5273 xstormy16_get_saved_register.
5274 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5275 static.
5276 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5277 * frame.h (deprecated_generic_get_saved_register): Delete.
5278
b2a871dd
MC
52792004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5280
5281 * dwarfread.c: Update documentation on the state of dwarf-1.
5282
0e100dab
AC
52832004-05-01 Andrew Cagney <cagney@redhat.com>
5284
acd8056e
AC
5285 * stack.c (select_frame_command): Delete call to
5286 frame_relative_level.
5287 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5288 Delete #if0 code.
5289 (frame_info): Do not print FRAMELESS.
5290 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5291 (catch_info): Delete #if0 code.
5292
0e100dab
AC
5293 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5294 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5295 of frame_relative_level.
5296 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5297 to SENTINEL_FRAME.
5298 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5299 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5300 frame_relative_level.
5301
55699d59
AC
5302 * frame.h (deprecated_set_frame_type): Delete declaration.
5303 * frame.c (deprecated_set_frame_type): Delete function, update
5304 comments.
5305
fcf70625
AC
5306 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5307 * gdbarch.h, gdbarch.c: Re-generate.
5308 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5309 (shnbsd_pc_in_sigtramp): Delete.
5310 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5311 pc_in_sigtramp.
5312 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5313 pc_in_sigtramp.
5314 * frame.h: Update comments.
5315 * ppc-linux-tdep.c: Update comments.
5316 * breakpoint.c (bpstat_what): Update comments.
5317
ac5eccb7
AC
5318 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5319 m68klinux-tdep.o's dependencies, were previously added to
5320 m68klinux-nat.o.
5321
f2524b93
AC
5322 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5323 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5324 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5325 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5326 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5327
17e20bce
AC
5328 * Makefile.in (m68klinux-nat.o): Update dependencies.
5329 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5330 (m68k_linux_sigtramp_frame_cache)
5331 (m68k_linux_sigtramp_frame_this_id)
5332 (m68k_linux_sigtramp_frame_prev_register)
5333 (m68k_linux_sigtramp_frame_unwind)
5334 (m68k_linux_sigtramp_frame_sniffer)
5335 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5336 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5337 names, use trad-frame.h.
5338 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5339 (struct m68k_sigtramp_info): Delete.
5340 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5341 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5342 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5343 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5344 "m68klinux-tdep.c".
5345
c8864fa2
AC
5346 * infrun.c (check_sigtramp2): Delete check for
5347 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5348
511dd2cd
MK
53492004-05-01 Mark Kettenis <kettenis@gnu.org>
5350
5351 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5352
8c6b0e06
AC
53532004-05-01 Andrew Cagney <cagney@redhat.com>
5354
9df0bb3f
AC
5355 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5356 (frv_linux_sigtramp_frame_cache)
5357 (frv_linux_sigtramp_frame_this_id)
5358 (frv_linux_sigtramp_frame_prev_register)
5359 (frv_linux_sigtramp_frame_unwind)
5360 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5361 include "linux" in function and variable names, directly call
5362 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5363 the latest trad-frame code.
5364 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5365 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5366 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5367 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5368 * frv-tdep.c (frv_sigtramp_frame_cache)
5369 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5370 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5371 frv-linux-tdep.c.
5372 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5373 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5374 (frv_set_sigcontext_reg_addr): Delete function.
5375
8c6b0e06
AC
5376 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5377 (DEPRECATED_SIGTRAMP_END): Delete.
5378 * gdbarch.h, gdbarch.c: Re-generate.
5379 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5380 * config/vax/tm-vaxbsd.h: Update copyright.
5381 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5382 (DEPRECATED_IN_SIGTRAMP): Define.
5383 * config/m68k/tm-nbsd.h: Update copyright.
5384 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5385 (DEPRECATED_IN_SIGTRAMP): Define.
5386
50ea7769
MK
53872004-05-01 Mark Kettenis <kettenis@gnu.org>
5388
03ac2a74
MK
5389 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5390 encondings. Fixes PR gdb/1628.
5391
50ea7769
MK
5392 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5393 DW_CFA_restore state without a matching DW_CFA_remember_state
5394 instead of aborting. Fixes PR backtrace/1589.
5395
9a5d7be1
JB
53962004-04-30 Joel Brobecker <brobecker@gnat.com>
5397
5398 * MAINTAINERS: Add self as AIX maintainer.
5399 Update my e-mail address in write-after-approval section.
5400
2593d1cd
AC
54012004-04-30 Andrew Cagney <cagney@redhat.com>
5402
ce12bbf9
AC
5403 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5404 (legacy_get_prev_frame): Ditto.
5405
36710c63
AC
5406 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5407 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5408 * mipsread.c (sigtramp_address): Delete extern variable.
5409 (mipscoff_new_init): Delete reference.
5410 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5411 (fixup_sigtramp): Delete function.
5412 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5413 (fixup_sigtramp): Delete declarations.
5414
2593d1cd
AC
5415 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5416 deprecated_pc_in_sigtramp.
5417 (ppcnbsd_pc_in_sigtramp): Delete function.
5418
2a25f91c
MK
54192004-05-01 Mark Kettenis <kettenis@gnu.org>
5420
5421 * config/m68k/nm-nbsd.h: Tweak comments.
5422 * config/m68k/nm-nbsdaout.h: Likewise.
5423
0b281939
AC
54242004-04-30 Andrew Cagney <cagney@redhat.com>
5425
5426 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5427 legacy_pc_in_sigtramp.
5428 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5429
8f2d3ea0
MK
54302004-05-01 Mark Kettenis <kettenis@gnu.org>
5431
5432 Add OpenBSD/m68k support.
5433 * NEWS (New native configurations): Mention OpenBSD/m68k.
5434 * m68kbsd-tdep.c: New file.
5435 * m68kbsd-nat.c: New file.
5436 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5437 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5438 * configure.host: Add m68k-*-openbsd.
5439 * configure.tgt: Add m68k-*-openbsd.
5440 * config/m68k/tm-obsd.h: New file.
5441 * config/m68k/obsd.mt: New file.
5442 * config/m68k/obsd.mh: New file.
5443 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5444 m68kbsd-tdep.c.
5445
c40f49a4
AC
54462004-04-30 Andrew Cagney <cagney@redhat.com>
5447
5448 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5449 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5450
e81554cd
MK
54512004-04-30 Mark Kettenis <kettenis@gnu.org>
5452
5453 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5454 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5455
d4dc1a91
BF
54562004-04-30 Brian Ford <ford@vss.fsi.com>
5457
5458 Revert 2004-04-16 change.
5459 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5460 (i386_coff_init_abi): Remove.
5461 * i386-tdep.h (i386_coff_init_abi): Remove.
5462 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5463
2f72f850
AC
54642004-04-30 Andrew Cagney <cagney@redhat.com>
5465
e492f9d6
AC
5466 * blockframe.c (find_pc_partial_function): Delete use of
5467 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5468 DEPRECATED_SIGTRAMP_END.
5469
7b7adad0
AC
5470 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5471 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5472 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5473 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5474 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5475
2f72f850
AC
5476 * defs.h (deprecated_inside_entry_file): Delete declaration.
5477 * blockframe.c (deprecated_inside_entry_file): Delete function.
5478 (legacy_frame_chain_valid): Delete call.
5479 * sh64-tdep.c (sh64_frame_chain): Delete call.
5480 * objfiles.h: Update comments.
5481 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5482 call.
5483 * frame.c (get_prev_frame): Delete call, update comments.
5484
283f90a7
BF
54852004-04-30 Brian Ford <ford@vss.fsi.com>
5486
5487 * MAINTAINERS (Write After Approval): Add myself.
5488
8ee56bcf
AC
54892004-04-30 Andrew Cagney <cagney@redhat.com>
5490
5491 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5492 * gdbarch.h, gdbarch.c: Re-generate.
5493 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5494 code.
5495
ee27e1b6
AC
54962004-04-30 Andrew Cagney <cagney@redhat.com>
5497
5498 * gdb-events.sh (selected_thread_changed)
5499 (selected_frame_level_changed, target_changed): Delete.
5500 * gdb-events.h, gdb-events.c: Re-generate.
5501 * valops.c (value_assign): Update.
5502 * stack.c (select_frame_command, up_silently_base)
5503 (down_silently_base): Update.
5504
d5ac5a39
AC
55052004-04-29 Andrew Cagney <cagney@redhat.com>
5506
5507 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5508 registers correctly.
5509 (print_gp_register_row, mips32_heuristic_proc_desc)
5510 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5511 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5512 references to mips_isa_regsize.
5513
ceae6e75
AC
55142004-04-29 Andrew Cagney <cagney@redhat.com>
5515
5516 * mips-tdep.c (struct gdbarch_tdep): Delete
5517 mips_fp_register_double.
5518 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5519 mips_abi_regsize.
5520 (mips_gdbarch_init): Do not set mips_fp_register_double.
5521 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5522
a587af0b
AC
55232004-04-29 Joel Brobecker <brobecker@gnat.com>
5524
5525 Committed by Andrew Cagney.
5526 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5527 function calls.
5528
13326b4e
AC
55292004-04-29 Andrew Cagney <cagney@redhat.com>
5530
5531 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5532 gdbarch, use mips_abi, update callers.
5533 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5534 mips_abi_regsize, update callers.
5535 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5536 mips_default_abi_regsize.
5537 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5538 mips_default_abi_regsize.
5539
711cc5cd
AC
55402004-04-29 Andrew Cagney <cagney@redhat.com>
5541
1b13c4f6
AC
5542 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5543 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5544 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5545 mips_default_abi_regsize.
5546 (mips_isa_regsize): Rename mips_regisze.
5547 * mipsnbsd-tdep.c: Update.
5548 * mips-linux-tdep.c: Update.
5549 * irix5-nat.c: Update.
5550 * mips-tdep.h (mips_isa_regsize): Update.
5551
711cc5cd
AC
5552 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5553 Delete all disabled code.
5554 * gdb-events.h, gdb-events.c: Re-generate.
5555
e63bbc88
MK
55562004-04-19 Jerome Guitton <guitton@gnat.com>
5557 Mark Kettenis <kettenis@gnu.org>
5558
5559 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5560 the function begins with a branch instruction.
5561
fd35795f
MK
55622004-04-29 Mark Kettenis <kettenis@gnu.org>
5563
5564 * i386-tdep.c: Fix spelling mistakes.
5565
c960c18f
AC
55662004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5567 Andrew Cagney <cagney@redhat.com>
5568
5569 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5570 <sys/proc.h>.
5571 * acconfig.h: Provide default _KMEMUSER value.
5572 * config.in, configure: Re-generate.
5573 * NEWS: Mention fix.
5574
50306a9d
RC
55752004-04-24 Randolph Chung <tausq@debian.org>
5576
5577 * configure.host (hppa*-*-linux*): New target.
5578 * configure.tgt (hppa*-*-linux*): Likewise.
5579 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5580 gdbarch_init_osabi() call earlier so that osabi-specific frame
5581 unwinders can be registered first.
5582 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5583 hppa-linux-nat.c.
5584 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5585 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5586 * config/pa/linux.mh: New file.
5587 * config/pa/linux.mt: New file.
5588 * config/pa/nm-linux.h: New file.
5589 * config/pa/xm-linux.h: New file.
5590 * hppa-linux-nat.c: New file.
5591 * hppa-linux-tdep.c: New file.
5592
2a6228ef
RC
55932004-04-28 Randolph Chung <tausq@debian.org>
5594
5595 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5596 return values.
5597 (hppa32_push_dummy_call): Fix small struct and floating point argument
5598 passing, and make sure the stack frame is properly aligned.
5599
82c10df6
AC
56002004-04-28 Andrew Cagney <cagney@redhat.com>
5601
d762c46a
AC
5602 * stack.c (print_stack_frame): Fix description.
5603
82c10df6
AC
5604 * NEWS: Mention gdb/gdbserver/configure execute permission
5605 changed. PR server/519.
5606
0faf0076
AC
56072004-04-28 Andrew Cagney <cagney@redhat.com>
5608
5609 * stack.c (print_stack_frame_stub): Delete declaration.
5610 (struct print_stack_frame_args, print_stack_frame)
5611 (print_frame_info, print_frame): Replace "source" with print what.
5612 Replace "print" with "print_level". Replace "args" with
5613 "print_args".
5614 * frame.h (show_and_print_stack_frame, print_stack_frame)
5615 (print_frame_info): Update declarations.
5616 * stack.c (select_and_print_frame, frame_command)
5617 (current_frame_command, up_command, down_command): Update calls -
5618 use get_selected_frame, pass "enum print_what" for source, do not
5619 call frame_relative_level.
5620 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5621 * remote-rdp.c (remote_rdp_open): Ditto.
5622 * remote-mips.c (common_open): Ditto.
5623 * remote-e7000.c (e7000_start_remote): Ditto.
5624 * ocd.c (ocd_start_remote): Ditto.
5625 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5626 * infrun.c (normal_stop): Ditto.
5627 * inflow.c (kill_command): Ditto.
5628 * infcmd.c (finish_command): Ditto.
5629 * corelow.c (core_open): Ditto.
5630 * tracepoint.c (finish_tfind_command): Ditto.
5631 * thread.c (info_threads_command, info_threads_command)
5632 (restore_current_thread, do_captured_thread_select): Ditto.
5633 * ada-tasks.c (task_command): Ditto.
5634
f4c5303c
OF
56352004-04-26 Orjan Friberg <orjanf@axis.com>
5636
5637 * frame.c: Include "observer.h".
5638 (frame_observer_target_changed): New function.
5639 (_initialize_frame): Attach target_changed observer.
5640 * regcache.c: Include "observer.h".
5641 (regcache_observer_target_changed): New function.
5642 (_initialize_regcache): Attach target_changed observer.
5643 * valops.c: Include "observer.h".
5644 (value_assign): Notify target_changed event when modifying register.
5645 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5646
7270d8f2
OF
56472004-04-26 Orjan Friberg <orjanf@axis.com>
5648
5649 From Paul Koning <pkoning@equallogic.com>:
5650 * breakpoint.c (free_valchain): New function.
5651 (insert_bp_location, delete_breakpoint): Use free_valchain.
5652 (remove_breakpoint): Do not remove the valchain.
5653 (bpstat_stop_status): If not stopped by watchpoint, skip
5654 watchpoints when generating stop status list.
5655 * infrun.c (handle_inferior_event): Make
5656 stepped_after_stopped_by_watchpoint a global variable.
5657 * remote.c (remote_stopped_data_address): Return watch data
5658 address rather than zero if stepped_after_stopped_by_watchpoint is
5659 set.
5660
02d62932
MC
56612004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5662
5663 Fix PR gdb/1626.
5664 * configure.in: Check for curses after termcap.
5665 On osf5.*, do not check for ncurses.
5666 * configure: Regenerate.
5667
3e9a183c
MK
56682004-04-25 Mark Kettenis <kettenis@gnu.org>
5669
c79ac407
MK
5670 * ppcobsd-nat.c: Include "ppc-tdep.h".
5671 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5672
3e9a183c
MK
5673 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5674 Fixes PR tdep/1623 and PR tdep/1624.
5675
38cc9c28
MC
56762004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5677
5678 * xmodem.h, xmodem.c: Remove files.
5679 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5680
7f07c5b6
RC
56812004-04-23 Randolph Chung <tausq@debian.org>
5682
5683 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5684 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5685 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5686 for handling stackless frames.
5687 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5688
9f7194c3
RC
56892004-04-23 Randolph Chung <tausq@debian.org>
5690
5691 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5692 starts at a pc before the frame is created.
5693
dcff6009
JB
56942004-04-23 Joel Brobecker <brobecker@gnat.com>
5695
5696 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5697
40711ff1 56982004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
5699
5700 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5701 use convert_typed_floating to get the appropriate format.
5702
abc485a1
RC
57032004-04-22 Randolph Chung <tausq@debian.org>
5704
5705 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5706 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5707 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5708 (hppa_sign_extend): Add prototype.
5709 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5710 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5711 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5712 hppa targets will also use these functions.
5713 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5714 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5715 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5716 (hppa_gdbarch_init): Remove gdbarch setting of
5717 skip_trampoline_code, in_solib_call_trampoline and
5718 in_solib_return_trampoline.
5719 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5720 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5721 hppa_in_solib_call_trampoline.
5722 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5723 Moved from hppa-tdep.c.
5724 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5725 in_solib_call_trampoline and in_solib_return_trampoline.
5726
369aa520
RC
57272004-04-22 Randolph Chung <tausq@debian.org>
5728
5729 * hppa-tdep.c (hppa_debug): New variable.
5730 (find_unwind_entry, hppa_frame_cache): Add debug output.
5731 (_initialize_hppa_tdep): Add command to set debug flag.
5732
476be15e
AC
57332004-04-22 Andrew Cagney <cagney@redhat.com>
5734
5735 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5736 "trad-frame.h".
5737 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5738 signal trampoline unwinder.
5739 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5740
d195bc9f
MK
57412004-04-22 Mark Kettenis <kettenis@gnu.org>
5742
5743 Add OpenBSD/powerpc support.
5744 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5745 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5746 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5747 (ppc_collect_fpregset): New prototypes.
5748 * ppcobsd-nat.c: New file.
5749 * ppcobsd-tdep.c: New file.
5750 * ppcobsd-tdep.h: New file.
5751 * rs6000-tdep.c: Include "regset.h".
5752 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5753 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5754 New functions.
5755 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5756 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5757 (rs6000-tdep.o): Update dependencies.
5758 * configure.host: Add powerpc-*-openbsd.
5759 * configure.tgt: Add powerpc-*-openbsd.
5760 * config/powerpc/obsd.mh: New file.
5761 * config/powerpc/nm-obsd.h: New file.
5762 * config/powerpc/obsd.mt: New file.
5763
6f14cc33
AC
57642004-04-22 Andrew Cagney <cagney@redhat.com>
5765
fcf29e5f
AC
5766 * frame.h (show_frame_info): Delete declaration.
5767
6f14cc33
AC
5768 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5769 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5770 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5771 * frv-tdep.c (frv_frame_this_id): Ditto.
5772 * avr-tdep.c (avr_frame_this_id): Ditto.
5773
e5786a5c
EZ
57742004-04-22 Elena Zannoni <ezannoni@redhat.com>
5775
5776 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5777
26e75e5c
JB
57782004-04-22 Jim Blandy <jimb@redhat.com>
5779
5780 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5781 register number zero.
5782
d8d65dd3
MS
57832004-04-21 Michael Snyder <msnyder@redhat.com>
5784
5785 * mips-tdep.c (heuristic_proc_start):
5786 Warning() already prefixes "Warning: ".
5787
9a4105ab
AC
57882004-04-21 Andrew Cagney <cagney@redhat.com>
5789
5790 * annotate.h (deprecated_annotate_starting_hook)
5791 (deprecated_annotate_stopped_hook)
5792 (deprecated_annotate_exited_hook)
5793 (deprecated_annotate_signal_hook)
5794 (deprecated_annotate_signalled_hook): Deprecate.
5795 * tracepoint.h (deprecated_create_tracepoint_hook)
5796 (deprecated_delete_tracepoint_hook)
5797 (deprecated_modify_tracepoint_hook)
5798 (deprecated_trace_find_hook)
5799 (deprecated_trace_start_stop_hook): Deprecate.
5800 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5801 * remote.h (deprecated_target_resume_hook)
5802 (deprecated_target_wait_loop_hook): Deprecate.
5803 * gdbcore.h (deprecated_exec_file_display_hook)
5804 (deprecated_file_changed_hook): Deprecate.
5805 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5806 * defs.h (deprecated_modify_breakpoint_hook)
5807 (deprecated_command_loop_hook, deprecated_show_load_progress)
5808 (deprecated_print_frame_info_listing_hook)
5809 (deprecated_query_hook, deprecated_warning_hook)
5810 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5811 (deprecated_delete_breakpoint_hook)
5812 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5813 (deprecated_readline_begin_hook, deprecated_readline_hook)
5814 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5815 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5816 (deprecated_context_hook, deprecated_target_wait_hook)
5817 (deprecated_attach_hook, deprecated_detach_hook)
5818 (deprecated_call_command_hook, deprecated_set_hook)
5819 (deprecated_error_hook, deprecated_error_begin_hook)
5820 (deprecated_ui_load_progress_hook): Deprecate.
5821 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5822 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5823 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5824 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5825 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5826 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5827 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5828 * annotate.c, aix-thread.c: Update.
5829
62cf13cc
AC
58302004-04-21 Andrew Cagney <cagney@redhat.com>
5831
b2e31a62
AC
5832 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5833 * vaxnbsd-tdep.c: Include "gdb_string.h".
5834
62cf13cc
AC
5835 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5836 (add_symbol_file_from_memory_command): #if 0 function body, call
5837 error instead.
5838
00e32a35
AC
58392004-04-21 Andrew Cagney <cagney@redhat.com>
5840
5841 * gdbcore.h: Update copyright.
5842 (deprecated_add_core_fns): Rename add_core_fns.
5843 * win32-nat.c (_initialize_core_win32): Update.
5844 * sun3-nat.c (_initialize_core_sun3): Update.
5845 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5846 * rs6000-nat.c (_initialize_core_rs6000): Update.
5847 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5848 * nto-tdep.c (_initialize_nto_tdep): Update.
5849 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5850 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5851 * mips-nat.c (_initialize_core_mips): Update.
5852 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5853 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5854 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5855 * lynx-nat.c (_initialize_core_lynx): Update.
5856 * irix5-nat.c (_initialize_core_irix5): Update.
5857 * i386-interix-nat.c (_initialize_core_interix): Update.
5858 * cris-tdep.c (_initialize_cris_tdep): Update.
5859 * corelow.c (deprecated_add_core_fns): Update.
5860 * core-regset.c (_initialize_core_regset): Update.
5861 * core-aout.c (_initialize_core_aout): Update.
5862 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5863 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5864 * alpha-nat.c (_initialize_core_alpha): Update.
5865
13c7b1ca
JB
58662004-04-21 Jim Blandy <jimb@redhat.com>
5867
5868 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5869
7b5a2f43
DJ
58702004-04-19 Daniel Jacobowitz <drow@mvista.com>
5871
5872 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5873 Delete.
5874 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5875 (read_attribute_value): Update calls to dwarf_alloc_block.
5876 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5877 dwarf2_tmp_obstack.
5878 (psymtab_to_symtab_1): Likewise. Clean up using
5879 free_stack_comp_unit.
5880 (add_to_cu_func_list): Use the comp_unit_obstack.
5881
05cf31d1
JB
58822004-04-19 Joel Brobecker <brobecker@gnat.com>
5883
5884 * dwarf2read.c (dwarf2_flag_true_p): New function.
5885 (die_is_declaration): Use the function above. Add some comments.
5886
adf93a2f
MK
58872004-04-19 Mark Kettenis <kettenis@gnu.org>
5888
5889 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5890 architecture when registering sparcnbsd_core_osabi_sniffer.
5891 Adjust comment.
5892
748894bf
MK
58932004-04-18 Mark Kettenis <kettenis@gnu.org>
5894
f622ad42
MK
5895 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5896 return value.
5897
c4fc7f1b
MK
5898 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5899 * i386-tdep.c: Correct register numbering scheme comments
5900 throughout.
5901 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5902 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5903 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5904 (i386_gdb_arch_init): Likewise.
5905
b4ead1bd
MK
5906 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5907 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5908 ppcnbsd-tdep.o.
5909
748894bf
MK
5910 * m68k-tdep.h: Tweak comments.
5911 * m68k-tdep.c: Tweak comment.
5912
fdd72f95
RC
59132004-04-17 Randolph Chung <tausq@debian.org>
5914
5915 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5916 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5917 (hppa_hpux_som_init_abi): Set is_elf to 0.
5918 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5919 * hppa-tdep.c (low_text_segment_address): Remove global.
5920 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5921 section offset to calculate segment address.
5922 (internalize_unwinds): Define low_text_segment_address as local and
5923 pass to record_text_segment_lowaddr for ELF targets.
5924 (hppa_gdbarch_init): Zero fill tdep structure.
5925 (hppa_dump_tdep): Print tdep structure.
5926 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5927
0f8d9d59
RC
59282004-04-17 Randolph Chung <tausq@debian.org>
5929
5930 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5931 (hppa_gdbarch_init): Set pseudo_register_read.
5932 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5933 * regcache.c (supply_register): Remove check for
5934 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5935
7c46b9fb
RC
59362004-04-17 Randolph Chung <tausq@debian.org>
5937
5938 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5939 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5940 (hpread_adjust_stack_address): Move to hpread.c.
5941 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5942 obj_private_struct): Move from tm-hppa.h.
5943 * hpread.c (hppa-tdep.h): Include.
5944 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5945 (hpread_read_function_type, hpread_read_doc_function_type)
5946 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5947 directly.
5948 * pa64solib.c (hppa-tdep.h): Include.
5949 * somsolib.c (hppa-tdep.h): Include.
5950 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5951 inferior_status): Remove unused forward declarations.
5952 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5953 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5954 obj_private_struct): Move to hppa-tdep.h.
5955 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5956
8d153463
RC
59572004-04-17 Randolph Chung <tausq@debian.org>
5958
5959 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5960 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5961 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5962 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5963 Remove forward declaration and make static.
5964 (hppa_reg_struct_has_addr): Remove.
5965
350c2e5b
JB
59662004-04-16 Joel Brobecker <brobecker@gnat.com>
5967
5968 * observer.sh: Move comments in sed command to first column.
5969
bbde78fa
JM
59702004-04-16 Jason Molenda (jmolenda@apple.com)
5971
5972 * frame.c: Minor typeo corrections in comments.
5973
e0270fd9
JB
59742004-04-16 Joel Brobecker <brobecker@gnat.com>
5975
5976 * observer.c (observer_test_first_notification_function): Update
5977 function profile.
5978 (observer_test_second_notification_function): Likewise.
5979 (observer_test_third_notification_function): Likewise.
5980
3d049254
MK
59812004-04-16 Mark Kettenis <kettenis@gnu.org>
5982
5983 From Brian Ford <ford@vss.fsi.com>:
5984 * i386-tdep.c (i386_coff_init_abi): New function.
5985 * i386-tdep.h (i386_coff_init_abi): New prototype.
5986 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5987 register number translation functions for DWARF and DWARF 2.
5988
7867684d
JB
59892004-04-16 Joel Brobecker <brobecker@gnat.com>
5990
5991 * dwarf2read.c: Back out my previous change, it was incorrect.
5992
72bf9492
DJ
59932004-04-16 Daniel Jacobowitz <drow@mvista.com>
5994
5995 * dwarf2read.c: Include "hashtab.h".
5996 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5997 has_namespace_info.
5998 (struct partial_die_info): Add comments. Use bitfields to reduce
5999 memory footprint. Add scope, scope_set, has_specification,
6000 spec_offset, die_parent, die_child, and die_sibling.
6001 (peek_die_abbrev): Add prototype.
6002 (partial_read_comp_unit_head): New function, broken out from
6003 dwarf2_build_psymtabs_hard.
6004 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6005 Use partial_read_comp_unit_head. Initialize the CU and
6006 comp_unit_obstack. Update calls to read_partial_die and
6007 scan_partial_symbols. Use free_stack_comp_unit and
6008 load_partial_dies.
6009 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6010 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6011 Update calls to helper functions. Remove NAMESPACE argument.
6012 Update comments.
6013 (partial_die_parent_scope, partial_die_full_name): New functions.
6014 (add_partial_symbol): Remove namespace argument. Update call to
6015 pdi_needs_namespace. Use partial_die_full_name. Handle
6016 DW_TAG_namespace. Check has_namespace_info flag.
6017 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6018 tag. Handle namespaces.
6019 (add_partial_namespace, add_partial_enumeration): Simplify.
6020 (guess_structure_name): New function, derived from
6021 add_partial_structure.
6022 (add_partial_structure): Remove.
6023 (determine_class_name): Update comment.
6024 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6025 (is_type_tag_for_partial, load_partial_dies): New functions.
6026 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6027 Record specifications instead of following them immediately.
6028 (find_partial_die_in_comp_unit, find_partial_die)
6029 (fixup_partial_die, free_stack_comp_unit)
6030 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6031 (partial_die_hash, partial_die_eq): New functions.
6032 * Makefile.in (hashtab_h): Define.
6033 (dwarf2read.o): Update dependencies.
6034 (observer_inc, observer_h): Move to the correct section.
6035
fdc860a3
JB
60362004-04-15 Joel Brobecker <brobecker@gnat.com>
6037
6038 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6039 (die_is_declaration): Use the function above. Add comment.
6040
dc718098
JB
60412004-04-15 Joel Brobecker <brobecker@gnat.com>
6042
6043 * dwarf2read.c (read_structure_scope): Identify stub types
6044 using die_is_declaration() only.
6045
8718a420
RM
60462004-04-15 Roland McGrath <roland@redhat.com>
6047
6048 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6049 argument instead of NAME.
6050 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6051 in call to symbol_file_add_with_addrs_or_offsets.
6052 (build_addr_info): New function, helper for ...
6053 (symbol_file_add_from_memory): New function.
6054 (add_symbol_file_from_memory_command): New function using that.
6055 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6056 (pre_add_symbol_hook): Add const to argument type.
6057 * symfile.h (symbol_file_add_from_memory): Declare it.
6058
8b910bab
MK
60592004-04-15 Mark Kettenis <kettenis@gnu.org>
6060
9f076e7a
MK
6061 * NEWS (New native configurations): Mention OpenBSD/vax.
6062 * configure.host: Add vax-*-openbsd*.
6063 * config/vax/obsd.mh: New file.
6064 * config/vax/nm-obsd.h: New file.
6065
8b910bab
MK
6066 * vax-tdep.c: Include "regset.h".
6067 (vax_supply_gregset): New function.
6068 (vax_gregset): New variable.
6069 (vax_regset_from_core_section): New function.
6070 (vax_gdbarch_init): Set regset_from_core_section.
6071 * Makefile.in (vax-tdep.o): Update dependencies.
6072
7a464420
AC
60732004-04-15 Andrew Cagney <cagney@redhat.com>
6074
6075 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6076 (observer_normal_stop_notification_stub)
6077 (observer_attach_normal_stop, observer_detach_normal_stop):
6078 Delete, replaced by #include "observer.inc".
6079 * infrun.c (normal_stop): Pass "stop_bpstat" to
6080 observer_notify_normal_stop.
6081 * Makefile.in (observer_inc): Define.
6082 (observer.o): Update dependencies.
6083 (observer.h, observer.inc): New rules.
6084 * observer.h: Delete file.
6085 * observer.sh: New file.
6086
e36ad527
MK
60872004-04-15 Mark Kettenis <kettenis@gnu.org>
6088
6089 * vax-tdep.c (vax_frame_cache): Fix typo.
6090
67b441e1
MK
60912004-04-14 Mark Kettenis <kettenis@gnu.org>
6092
6f606e1c
MK
6093 * NEWS (New native configurations): Mention NetBSD/vax.
6094 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6095 * config/vax/nbsdelf.mh: New file.
6096 * config/vax/nbsdaout.mh: New file.
6097 * config/vax/nm-nbsd.h: New file.
6098 * config/vax/nm-nbsdaout.h: New file.
6099
9c5519a5
MK
6100 * vaxnbsd-tdep.c: New file.
6101 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6102 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6103 * config/vax/nbsd.mt: New file.
6104 * config/vax/tm-nbsd.h: New file.
6105
4844a614
MK
6106 * Makefile.in (vaxbsd-nat.o): New dependency.
6107
67b441e1
MK
6108 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6109 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6110 struct_addr arguments. Don't push return value address.
6111 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6112 arguments to vax_store_arguments. Store return value address in
6113 R1.
6114 (vax_store_struct_return, vax_extract_return_value)
6115 (vax_store_return_value): Remove functions.
6116 (vax_return_value): New function.
6117 (vax_gdbarch_init): Set return value. Don't set
6118 deprecated_store_struct_return, deprecated_extract_struct_return
6119 and deprecated_store_return_value.
6120
6672f2ae
AS
61212004-04-14 Andreas Schwab <schwab@suse.de>
6122
6123 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6124 value buffer.
6125 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6126
7346c184
MK
61272004-04-14 Mark Kettenis <kettenis@gnu.org>
6128
6129 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6130 (vax_unwind_dummy_id): New functions.
6131 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6132 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6133 variables.
6134 (vax_fix_call_dummy): Remove function.
6135 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6136 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6137 call_dummy_location, deprecated_call_dummy_words,
6138 deprecated_sizeof_call_dummy_words,
6139 deprecated_call_dummy_breakpoint_offset,
6140 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6141 and deprecated_dummy_write_sp.
6142
58e23df4
DC
61432004-04-13 David Carlton <carlton@kealia.com>
6144
6145 * MAINTAINERS: Move myself to "paper trail" section.
6146
5e6b39ff
MK
61472004-04-12 Mark Kettenis <kettenis@gnu.org>
6148
7def7fef
MK
6149 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6150 "trad-frame.h".
6151 (vax_frame_init_saved_regs): Remove function.
6152 (vax_sigtramp_saved_pc): Remove function.
6153 (vax_frame_saved_pc): Remove function.
6154 (vax_frame_args_address): Remove function.
6155 (vax_frame_num_args): Rewrite.
6156 (vax_frame_chain): Remove function.
6157 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6158 VAX_FP_REGNUM.
6159 (vax_pop_frame): Likewise.
6160 (vax_saved_pc_after_call): Remove function.
6161 (struct vax_frame_cache): New structure.
6162 (vax_frame_cache): New function.
6163 (vax_frame_this_id): New function.
6164 (vax_frame_prev_register): New function.
6165 (vax_frame_unwind): New variable.
6166 (vax_frame_sniffer): New function.
6167 (vax_frame_base_address): New function.
6168 (vax_frame_args_address): New function.
6169 (vax_frame_base): New variable.
6170 (vax_unwind_pc): New function.
6171 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6172 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6173 deprecated_frame_chain, deprecated_frame_saved_pc,
6174 deprecated_frame_args_address and
6175 deprecated_frame_init_saved_regs.
6176 * Makefile.in (vax-tdep.o): Update dependencies.
6177
53284fc1
MK
6178 * vaxbsd-nat.c: New file.
6179
5e6b39ff
MK
6180 * vax-tdep.h: Update copyright year. Adjust comments.
6181 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6182 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6183 (vax_regnum): New enum. Replacing...
6184 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6185 (VAX_PS_REGNUM): ... these removed macros.
6186 * vax-tdep.c (vax_register_name): Remove prototype.
6187 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6188 (vax_register_byte, vax_register_raw_size,
6189 vax_register_virtual_size, vax_register_virtual_type): Remove
6190 functions.
6191 (vax_register_type): New function.
6192 (vax_breakpoint_from_pc): Reorganize.
6193 (vax_gdbarch_init): Set register_type. Don't set
6194 deprecated_register_size, deprecated_register_bytes,
6195 deprecated_register_byte, deprecated_register_raw_size,
6196 deprecated_max_register_raw_size,
6197 deprecated_register_virtual_size,
6198 deprecated_max_register_virtual_size and
6199 deprecated_register_virtual_type. Add comment on stack direction.
6200
e9c71e9f
MK
62012004-04-11 Mark Kettenis <kettenis@gnu.org>
6202
6203 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6204 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 6205 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 6206
d46f1176 62072004-04-10 Randolph Chung <tausq@debian.org>
8718a420 6208
d46f1176
RC
6209 * MAINTAINERS (write after approval): Add myself.
6210
a2a84a72
RC
62112004-04-07 Randolph Chung <tausq@debian.org>
6212
6213 * hppa-tdep.c (hppa_inner_than): Remove.
6214 (is_pa_2): Remove unused static variable.
8718a420 6215 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 6216
e85c3284
PH
62172004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6218
6219 * language.h (language_defn): Add new la_post_parser field.
6220 * parser-defs.h (null_post_parser): New declaration (default for
6221 la_post_parser).
8718a420 6222
e85c3284
PH
6223 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6224 insert call to that function.
6225 (parse_exp_in_context): New function, including code formerly in
8718a420 6226 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
6227 prefixification.
6228 (parse_expression_in_context): New exported function.
6229 (null_post_parser): New definition.
6230 * expression.h (parse_expression_in_context): Add declaration.
8718a420 6231
e85c3284
PH
6232 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6233 * c-lang.c (c_language_defn): Ditto.
6234 (cplus_language_defn): Ditto.
6235 (asm_language_defn): Ditto.
6236 (minimal_language_defn): Ditto.
6237 * f-lang.c (f_language_defn): Ditto.
6238 * jv-lang.c (java_language_defn): Ditto.
6239 * language.c (unknown_language_defn): Ditto.
6240 (auto_language_defn): Ditto.
6241 (local_language_defn): Ditto.
6242 * m2-lang.c (m2_language_defn): Ditto.
6243 * scm-lang.c (scm_language_defn): Ditto.
6244 * obj-lang.c (objc_language_defn): Ditto.
8718a420 6245
d9f8c85b
MK
62462004-04-10 Mark Kettenis <kettenis@gnu.org>
6247
fa34704a
MK
6248 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6249 (amd64nbsd_mcontext_addr): New function.
6250 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6251 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6252 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6253
403e1656
MK
6254 * corelow.c (core_xfer_partial): Fix coding standards violation.
6255 Add support for TARGET_OBJECT_WCOOKIE.
6256
a57e5a95
MK
6257 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6258 deprecated_pc_in_sigtramp.
6259 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6260 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6261 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6262 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6263 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6264 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6265 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6266
377d9ebd
MK
6267 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6268 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6269 Fix typo.
6270
f0ef85a5
MK
6271 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6272 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6273 (amd64_collect_fxsave): Likewise.
6274
d9f8c85b
MK
6275 * i386-sol2-tdep.c: Include "gdb_string.h".
6276 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6277 name.
6278 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6279
75f501b5
MK
62802004-04-10 Mark Kettenis <kettenis@gnu.org>
6281
6282 * i386-sol2-tdep.c: Include "solib-svr4.h".
6283 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6284 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6285 * config/i386/tm-i386sol2.h: Include :solib.h".
6286 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6287 solib-svr4.o and solib-legacy.o.
6288 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6289 solib-svr4.o.
6290
b31bc724
MK
62912004-04-09 Mark Kettenis <kettenis@gnu.org>
6292
18bbbd9e
MK
6293 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6294 whether a register is supplied by PTRACE_GETFPREGS.
6295 (store_inferior_registers): Likewise.
6296 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6297 whether a register is supplied by PT_GETFPREGS.
6298 (store_inferior_registers): Likewise.
6299
3c30bf1b
MK
6300 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6301 * config/i386/linux64.mt (TDEPFILES): Likewise.
6302
a4194092
MK
6303 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6304
911bc6ee
MK
6305 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6306 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6307 the program counter is in the range specified by `struct
6308 gdbarch_tdep'.
6309 * amd64-linux-tdep.c: Include "symtab.h".
6310 (amd64_linux_pc_in_sigtramp): Remove function.
6311 (amd64_linux_sigtramp_p): New function.
6312 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6313 deprecated_pc_in_sigtramp.
6314 * amd64nbsd-tdep.c: Include "symtab.h".
6315 (amd64nbsd_sigtramp_p): New function.
6316 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6317 deprecated_pc_in_sigtramp.
6318 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6319 few comments.
6320 (amd64obsd_pc_in_sigtramp): Remove function.
6321 (amd64obsd_sigtramp_p): New function.
6322 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6323 deprecated_pc_in_sigtramp.
6324 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6325 (i386bsd_pc_ins_sigtramp): Remove prototype.
6326 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6327 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6328 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6329 the program counter is in the range specified by `struct
6330 gdbarch_tdep'.
6331 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6332 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6333 (i386_go32_pc_in_sigtramp): Remove function.
6334 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6335 Initialize TDEP->sigtramp_p.
6336 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6337 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6338 deprecated_pc_in_sigtramp.
6339 * i386-linux-tdep.c: Adjust comments.
6340 (i386_linux_pc_in_sigtramp): Remove function.
6341 (i386_linux_sigtramp_p): New function.
6342 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6343 deprecated_pc_in_sigtramp.
6344 * i386-nto-tdep.c: Update copyright year.
6345 (i386nto_pc_in_sigtramp): Remove function.
6346 (i386nto_sigtramp_p): New function.
6347 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6348 SP_REGNUM.
6349 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6350 deprecated_pc_in_sigtramp.
6351 * i386-sol2-tdep.c: Update copyright year.
6352 (i386_sol2_pc_in_sigtramp): Remove function.
6353 (i386_sol2_sigtramp_p): New function.
6354 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6355 deprecated_pc_in_sigtramp.
6356 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6357 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6358 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6359 deprecated_sigtramp_start and deprecated_sigtramp_end.
6360 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6361 (i386nbsd_pc_in_sigtramp): Remove function.
6362 (i386nbsd_sigtramp_p): New function.
6363 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6364 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6365 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6366 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6367 (i386obsd_pc_in_sigtramp): Remove function.
6368 (i386obsd_sigtramp_p): New function.
6369 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6370 functions.
6371 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6372 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6373 TDEP->sigtramp_p.
6374 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6375 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6376 dependencies.
6377
e083e6ec
MK
6378 * config/i386/i386aout.mt: Remove file.
6379
bd153b94
MK
6380 * configure.tgt: Remove i[34567]86-*-go32*,
6381 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6382 and i[34567]86-*-isc*. Set gdb_target to i386 for
6383 i[34567]86-*-netware* and i[34567]86-*-*.
6384 * config/i386/i386.mt: New file.
6385 * config/i386/embed.mt: Remove file.
6386 * config/i386/go32.mt: Remove file.
6387 * config/i386/i386nw.mt: Remove file.
6388 * config/i386/i386v.mt: Remove file.
6389 * config/i386/tm-go32.h: Remove file.
6390
4a1bcc8c
MK
6391 * tui/tui-hooks.c: Include "readline/readline.h" after
6392 "gdb_curses.h" instead of before.
6393 * tui/tui-io.c: Likewise.
6394
f9a79064
MK
6395 * tui/tui.c: Fix typo in comment.
6396
b31bc724
MK
6397 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6398
f83f82bc
AC
63992004-04-08 Andrew Cagney <cagney@redhat.com>
6400
6401 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6402 (deprecated_exception_support_initialized): Declare.
8718a420 6403 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
6404 (initialize_hp_cxx_exception_support)
6405 (child_enable_exception_callback): Update.
6406 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6407 (deprecated_exception_support_initialized): Rename
6408 deprecated_exception_catchpoints_are_fragile and
6409 deprecated_exception_support_initialized.
6410 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6411
6412 * symtab.c (deprecated_hp_som_som_object_present): Rename
6413 hp_som_som_object_present.
6414 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6415 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6416 Update. Delete extern declaration.
6417 * valops.c (hp_som_som_object_present): Ditto.
8718a420 6418 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
6419 (parse_nested_classes_for_hpacc): Ditto.
6420 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 6421 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
6422 (initialize_hp_cxx_exception_support): Ditto.
6423 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 6424 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 6425 (cp_print_class_method): Ditto.
8718a420 6426 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
6427 (c_type_print_base): Ditto.
6428 * c-exp.y (hp_som_som_object_present): Ditto.
6429
fb2be677
AC
64302004-04-08 Andrew Cagney <cagney@redhat.com>
6431
6432 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6433 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6434 (frame_unwind_find_by_frame): Re-implement the unwind code so
6435 that it can both prepend and append sniffers. Replace
6436 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6437 * tramp-frame.c (tramp_frame_append): Use
6438 frame_unwind_prepend_unwinder.
6439 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6440 frame_unwind_register_unwinder.
6441 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6442 tramp_frame_append.
6443 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 6444 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
6445 (mips_linux_init_abi): Update.
6446
67faf007
KB
64472004-04-08 Kevin Buettner <kevinb@redhat.com>
6448
6449 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6450 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6451 file support.
6452
8973ff21
KB
64532004-04-07 Kevin Buettner <kevinb@redhat.com>
6454
6455 * ia64-tdep.c (elf.h): Don't include.
6456 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6457
4a0e2f88
JM
64582004-04-07 Jason Molenda (jmolenda@apple.com)
6459
6460 * frame.h: Typeo corrections in comments.
6461
9872ad24
JB
64622004-04-07 Jim Blandy <jimb@redhat.com>
6463
6464 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6465 %esp and %ebp
6466
70b216c8
MK
64672004-04-07 Mark Kettenis <kettenis@gnu.org>
6468
11d5789c
MK
6469 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6470 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6471 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6472 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6473 and solib-legacy.o.
6474 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6475 solib-svr4.o.
6476 * config/sparc/tm-sol2.h: Update copyright year. Include
6477 "solib.h".
6478
70b216c8
MK
6479 * sparc-sol2-tdep.c: Update copyright year. Include
6480 "solib-svr4.h".
6481 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6482 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6483 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 6484 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
6485 dependencies.
6486
6339dc9e
AC
64872004-04-06 Andrew Cagney <cagney@redhat.com>
6488
6489 * infttrace.c: Include "infttrace.h".
6490 * infttrace.h: Include "target.h".
6491 * Makefile.in (infttrace_h): Update.
6492 (infttrace.o): Update.
8718a420 6493
93449403
AC
64942004-04-06 Andrew Cagney <cagney@redhat.com>
6495
6d518969
AC
6496 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6497 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6498 move extern declarations from here ...
6499 * infttrace.h: ... to here.
6500 * Makefile.in (hppah-nat.o): Update dependencies.
6501
85f4f2d8
AC
6502 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6503 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 6504 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
6505 (hppa_breakpoint_from_pc): Delete.
6506
93449403
AC
6507 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6508
71456ec6
AC
65092004-04-05 Andrew Cagney <cagney@redhat.com>
6510
6511 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6512 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6513 <sys/file.h>.
8718a420 6514
4c02c60c
AC
65152004-04-06 Randolph Chung <tausq@debian.org>
6516
6517 Committed by Andrew Cagney (mechanical change).
6518 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6519 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6520 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6521 child_enable_exception_callback, current_ex_event,
6522 null_symtab_and_line, child_get_current_exception_event,
6523 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6524 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6525 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6526 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6527 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6528 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6529 Move hpux-specific definitions ...
6530 * hppa-hpux-tdep.c: ... to here.
6531
3a515653
AC
65322004-04-05 Andrew Cagney <cagney@redhat.com>
6533
6534 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6535 skip_prologue_using_sal.
6536
c1730d02
AC
65372004-04-05 Andrew Cagney <cagney@redhat.com>
6538
6539 * config/i386/tm-i386.h: Delete file.
6540 * config/i386/tm-vxworks.h: Update copyright, do not include
6541 "tm-i386.h".
6542 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6543 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6544 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6545 * config/i386/ncr3000.mt (TM_FILE): Delete.
6546 * config/i386/interix.mt (TM_FILE): Delete.
6547 * config/i386/i386v.mt (TM_FILE): Delete.
6548 * config/i386/i386nw.mt (TM_FILE): Delete.
6549 * config/i386/i386gnu.mt (TM_FILE): Delete.
6550 * config/i386/i386aout.mt (TM_FILE): Delete.
6551 * config/i386/embed.mt (TM_FILE): Delete.
6552
8b67aa36
KB
65532004-04-05 Kevin Buettner <kevinb@redhat.com>
6554
6555 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6556 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6557 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6558 (accg7_regnum): New constants.
6559 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
6560 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6561 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
6562 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6563 for accg registers.
6564 (frv_register_sim_regno): Update spr_map[].
6565
3c7012f5
AC
65662004-04-04 Andrew Cagney <cagney@redhat.com>
6567
6568 * config/mips/xm-riscos.h: Delete.
6569 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6570 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6571 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6572 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6573 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6574 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6575 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6576 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6577 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6578 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6579 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6580 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6581 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6582 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6583 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6584 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6585 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6586 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6587 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6588 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6589 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6590 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6591 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6592 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6593 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6594 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 6595
3c7012f5
AC
6596 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6597 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6598 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6599 * configure.host: Remove m680[01]0-sun-sunos3*,
6600 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6601 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6602 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6603 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6604 mips-*-riscos*.
6605 * NEWS: Mention removed systems.
6606
99d16a21
AC
66072004-04-04 Andrew Cagney <cagney@redhat.com>
6608
6609 GDB 6.1 release created from 6.1 branch.
6610
6cdf9d98
AC
66112004-04-04 Andrew Cagney <cagney@redhat.com>
6612
98d346c3
AC
6613 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6614 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6615 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6616
6cdf9d98
AC
6617 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6618 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6619 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6620
859a326d
JB
66212004-04-03 Jim Blandy <jimb@redhat.com>
6622
6623 * MAINTAINERS: Chris Faylor has changed employers; add him to
6624 "paper trail" section, and update his E-mail address.
6625
b87178c3
AC
66262004-04-03 Andrew Cagney <cagney@redhat.com>
6627
4ea2acf0
AC
6628 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6629 generic dummy frames.
6630 * dummy-frame.c: Update copyright.
6631 (dummy_frame_sniffer): Delete check for generic dummy frames.
6632
d0bd2d18 6633 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 6634 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
6635 (REG_PARM_STACK_SPACE): Delete.
6636 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6637 Inline reference to REG_PARM_STACK_SPACE.
6638
b87178c3
AC
6639 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6640 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6641 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6642 (FRAME_BASE_BEFORE_SIGTRAMP)
6643 (hppa32_hpux_frame_base_before_sigtramp)
6644 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6645 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6646 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6647 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6648 (FRAME_BASE_BEFORE_SIGTRAMP)
6649 (hppa64_hpux_frame_base_before_sigtramp)
6650 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6651
43e2e1a0
AC
66522004-04-03 Andrew Cagney <cagney@redhat.com>
6653
6654 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6655
ddc135a4
AC
66562004-04-02 Andrew Cagney <cagney@redhat.com>
6657
6658 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6659 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6660 * dummy-frame.h: Delete out-of-date comments.
6661 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6662 * gdbarch.h, gdbarch.c: Re-generate.
6663
d15bfd3a 66642004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 6665
d15bfd3a
AC
6666 Committed by Andrew Cagney <cagney@redhat.com>.
6667 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6668 into account an instruction saving a register if we have already
6669 seen an earlier instruction saving that same register.
6670
f04ceafa
AC
66712004-04-02 Andrew Cagney <cagney@redhat.com>
6672
08be3abd
AC
6673 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6674 * gdbarch.h, gdbarch.c: Re-generate.
6675 * frame.c (legacy_get_prev_frame): Delete references to
6676 DEPRECATED_INIT_FRAME_PC_FIRST.
6677
f04ceafa
AC
6678 * infrun.c (pc_in_sigtramp): Delete function.
6679 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6680 get_frame_type.
6681
08e69816
AC
66822004-04-02 Andrew Cagney <cagney@redhat.com>
6683
6684 * infrun.c (handle_step_into_function): Delete code conditional on
6685 legacy_frame_p.
6686 (handle_inferior_event, step_over_function): Ditto.
6687
adb54772
AC
66882004-04-02 Andrew Cagney <cagney@redhat.com>
6689
6690 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6691 "previous frame inner to this frame" test.
6692
304396fb
AC
66932004-04-02 Andrew Cagney <cagney@redhat.com>
6694
6695 * frame.c (safe_frame_unwind_memory): New function.
6696 * frame.h (safe_frame_unwind_memory): Declare. Update description
6697 of /safe_/ methods.
6698 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6699 "next_frame". Use safe_frame_unwind_memory.
6700 (tramp_frame_sniffer): Update call to tramp_frame_start.
6701
6502dd73
DJ
67022004-04-01 Daniel Jacobowitz <drow@mvista.com>
6703
6704 * dwarf2read.c (dwarf2_objfile_data_key): New.
6705 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6706 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6707 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6708 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6709 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6710 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6711 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6712 Remove variables.
6713 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6714 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6715 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6716 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6717 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6718 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6719 Remove macros.
6720 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6721 data.
6722 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6723 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6724 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6725 (read_partial_die, read_full_die, read_indirect_string)
6726 (dwarf_decode_line_header, dwarf_decode_macros)
6727 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6728 Update uses of removed variables.
6729 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6730 of removed macros.
6731 (_initialize_dwarf2_read): New function.
6732 * symfile.h (dwarf2_has_info): Update prototype.
6733 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6734 * elfread.c (elf_symfile_read): Likewise.
6735
408752b0
JB
67362004-04-01 Jim Blandy <jimb@redhat.com>
6737
9f744501
JB
6738 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6739 function for register numbers on all the rs6000-derived targets.
6740 (rs6000_gdbarch_init): Don't register a separate
6741 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6742 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6743 variants.
6744
408752b0
JB
6745 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6746 numbering.
6747
2de41bce
PH
67482004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6749
6750 * valarith.c: Update copyright notice.
6751 (value_add): Handle range types.
6752 (value_sub): Ditto.
6753 (value_equal): Ditto.
6754 (value_less): Ditto.
6755 (value_neg): Ditto.
6756 (value_complement): Ditto.
8718a420 6757 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 6758 eliminiating unnecessary COERCE_ENUMs.
8718a420 6759
5613d8d3
AC
67602004-03-31 Andrew Cagney <cagney@redhat.com>
6761
6762 * frame.h (frame_unwind_id): Declare.
6763 * frame.c (frame_unwind_id): New function.
6764 (get_prev_frame_1): New function.
6765 (frame_debug_got_null_frame): New function.
6766 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6767 code proper to prev_frame, update description.
6768 * infrun.c (step_over_function): Use frame_unwind_id.
6769
c4557624
JB
67702004-04-31 J. Brobecker <brobecker@gnat.com>
6771
6772 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6773 (hppa64_push_dummy_call): Likewise.
6774
3e6bb910
JB
67752004-03-30 Jim Blandy <jimb@redhat.com>
6776
6777 From Ulrich Weigand:
6778 * utils.c (query): Do not use a va_list variable multiple times.
6779
a2f23071
DJ
67802004-03-29 Daniel Jacobowitz <drow@mvista.com>
6781
6782 * Makefile.in (linux_nat_h): Update dependencies.
6783 * configure.in: Check for <gnu/libc-version.h>.
6784 * configure: Regenerate.
6785 * config.in: Regenerate.
6786 * linux-nat.h: Include "target.h". Add waitstatus field to
6787 struct lwp_info.
6788 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6789 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6790 to.
6791 (lin_lwp_handle_extended): New function. Handle clone events.
6792 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6793 thread exit events.
6794 (child_wait): Handle clone events.
6795 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6796 * linux-nat.c (linux_enable_event_reporting): Turn on
6797 PTRACE_O_TRACECLONE.
6798 (linux_handle_extended_wait): Handle clone events.
6799 * thread-db.c: Include <gnu/libc-version.h>.
6800 (struct private_thread_info): Add dying flag.
6801 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6802 higher.
6803 (attach_thread): Update comments. Handle dying threads.
6804 (detach_thread): Set the dying flag.
6805 (check_event): Always call attach_thread.
6806
8d5f9dcb
DJ
68072004-03-29 Daniel Jacobowitz <drow@mvista.com>
6808
6809 * mips-tdep.c (mips_pdr_data): New.
6810 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6811 (_initialize_mips_tdep): Initialize mips_pdr_data.
6812
66337bb1
CV
68132004-03-29 Corinna Vinschen <vinschen@redhat.com>
6814
6815 * minsyms.c (install_minimal_symbols): Move dropping leading
6816 char from linkage name from here...
6817 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6818 test for "__gnu_compiled*" symbols.
6819
e802b915
JB
68202004-03-28 Jim Blandy <jimb@redhat.com>
6821
6822 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6823 registers to temp register r0 and byte stores as prologue
6824 instructions.
6825
72b56458
AC
68262004-03-28 Andrew Cagney <cagney@redhat.com>
6827
6828 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6829 arm*-*-*.
6830
0bfbda3b
SC
68312004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6832
6833 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6834 and switch the layout to force a display of register window.
6835
5a7225ed
JB
68362004-02-26 J. Brobecker <brobecker@gnat.com>
6837
6838 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6839 of the INTEGER class.
6840
81a07a45
JB
68412004-03-26 Jim Blandy <jimb@redhat.com>
6842
6843 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6844 bytes long on PPC GNU/Linux.
6845
8c691c7a
DC
68462004-03-26 David Carlton <carlton@kealia.com>
6847
6848 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6849
103a0089
AC
68502004-03-25 Andrew Cagney <cagney@redhat.com>
6851
6852 * PROBLEMS: Add general section titles, remove references to
6853 specific releases.
6854
7a5ea0d4
DJ
68552004-03-25 Daniel Jacobowitz <drow@mvista.com>
6856
6857 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6858 INT_REGISTER_SIZE.
6859 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6860 FP_REGISTER_VIRTUAL_SIZE.
6861 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6862 of DEPRECATED_REGISTER_RAW_SIZE.
6863 (arm_register_type): Add gdbarch argument.
6864 (arm_register_raw_size, arm_register_virtual_size): Delete.
6865 (arm_register_byte, arm_extract_return_value)
6866 (arm_store_return_value, arm_get_longjmp_target): Update references
6867 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6868 (arm_gdbarch_init): Likewise. Don't set
6869 deprecated_register_raw_size, deprecated_register_virtual_size,
6870 deprecated_max_register_raw_size,
6871 deprecated_max_register_virtual_size, or
6872 deprecated_max_register_virtual_type. Do set register_type.
6873 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6874 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6875 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6876 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6877 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6878 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6879 INT_REGISTER_SIZE.
6880 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6881 (remote_rdp_store_register): Likewise.
6882
5792a79b
DJ
68832004-03-24 Daniel Jacobowitz <drow@mvista.com>
6884
6885 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6886 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6887 to after osabi initialization.
6888 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6889 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6890 functions.
6891 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6892 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6893 variables.
6894 (mips_linux_init_abi): Append signal trampoline unwinders.
6895
1196bfda
AC
68962004-03-24 Andrew Cagney <cagney@redhat.com>
6897
6898 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6899 * tramp-frame.c: Include "gdb_assert.h".
6900 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6901 correct sizeof.
6902 (tramp_frame_append): Validate the tramp frame's instructions.
6903 * Makefile.in (tramp-frame.o): Update dependencies.
6904
4be282b4
AC
69052004-03-23 Andrew Cagney <cagney@redhat.com>
6906
6907 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6908
69aec09b
AC
69092004-03-23 Andrew Cagney <cagney@redhat.com>
6910
6911 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6912 Nasser as past testsuite/lib/ (and other) maintainers.
6913
63ed89b4
DJ
69142004-03-23 Daniel Jacobowitz <drow@mvista.com>
6915
6916 * infcmd.c (attach_command): Reread symbols if we already have
6917 an exec file.
6918
f3b36427
AC
69192004-03-23 Andrew Cagney <cagney@redhat.com>
6920
6921 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6922
aa2a3f87
AC
69232004-03-23 Andrew Cagney <cagney@redhat.com>
6924
6925 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6926 * gdbarch.h, gdbarch.c: Re-generate.
6927 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6928 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6929 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 6930 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 6931 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 6932 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
6933 (DEPRECATED_SIGTRAMP_START): Update.
6934 * blockframe.c (find_pc_sect_partial_function): Update.
6935 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6936
00cac895
DJ
69372004-03-23 Daniel Jacobowitz <drow@mvista.com>
6938
6939 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6940 if necessary.
6941
f561f026
AC
69422004-03-23 Andrew Cagney <cagney@redhat.com>
6943
6944 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6945 predicate, deprecate.
6946 * gdbarch.h, gdbarch.c: Re-generate.
6947 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6948 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6949 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6950 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6951 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6952 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6953 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6954 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6955 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6956 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6957 * blockframe.c (find_pc_partial_function): Update.
6958 * breakpoint.c (bpstat_what): Update.
6959 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6960 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6961 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6962 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6963 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6964 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6965 * i386-nto-tdep.c (i386nto_init_abi): Update.
6966 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6967 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6968 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6969 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6970 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6971 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6972 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6973 * infrun.c (pc_in_sigtramp): Update.
6974 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6975 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6976 * mips-tdep.c (mips_gdbarch_init): Update.
6977 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6978 * ppc-linux-tdep.c: Update comment.
6979 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6980 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6981 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6982 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6983 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6984 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6985 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6986 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6987 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6988 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 6989
8050c72f
AC
69902004-03-23 Andrew Cagney <cagney@redhat.com>
6991
d2259dd3
AC
6992 * tramp-frame.h, tramp-frame.h: New files.
6993 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6994 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6995
8050c72f
AC
6996 * Makefile.in: Update all dependencies.
6997
0db9b4b7
AC
69982004-03-23 Andrew Cagney <cagney@redhat.com>
6999
7000 * Makefile.in (trad_frame_h): Add $(frame_h).
7001 * trad-frame.h: Update copyright. Include "frame.h".
7002 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7003 (trad_frame_set_id, trad_frame_get_id): Declare.
7004 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7005 * trad-frame.c: Update copyright.
7006 (struct trad_frame_cache): Define.
7007 (trad_frame_cache_zalloc): New function.
7008 (trad_frame_set_id, trad_frame_get_id): New functions.
7009 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 7010
8e645ae7
AC
70112004-03-22 Andrew Cagney <cagney@redhat.com>
7012
7013 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7014 s390_pltstub_unwind_cache.
7015 (s390_stub_frame_unwind_cache): Rename
7016 s390_pltstub_frame_unwind_cache.
7017 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7018 (s390_stub_frame_prev_register): Rename
7019 s390_pltstub_frame_prev_register.
7020 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7021 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7022
7023 From Ulrich Weigand:
7024 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7025 pointer calls like PLT calls.
7026
34fcf120
DJ
70272004-03-22 Daniel Jacobowitz <drow@mvista.com>
7028
7029 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7030 PC rather than the partial function start address. Use the start
7031 address to sanity check the found PDR.
7032
5b917078
DJ
70332004-03-22 Daniel Jacobowitz <drow@mvista.com>
7034
7035 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7036 linux_handle_extended_wait.
7037
8adf9e78
AC
70382004-03-22 Andrew Cagney <cagney@redhat.com>
7039
c3122434
AC
7040 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7041 function.
7042
8adf9e78
AC
7043 * frame.h (generic_pop_current_frame): Delete declaration.
7044 (deprecate_pop_dummy_frame): Deprecate
7045 generic_pop_dummy_frame.
7046 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7047 (generic_pop_current_frame): Delete function.
7048 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7049 generic_pop_current_frame.
7050 * v850-tdep.c (v850_pop_frame): Update.
7051 * mcore-tdep.c (mcore_pop_frame): Update.
7052 * sh64-tdep.c (sh64_pop_frame): Update.
7053 * h8300-tdep.c (h8300_pop_frame): Update.
7054
90ba813f
AC
70552004-03-22 Andrew Cagney <cagney@redhat.com>
7056
7057 * frame.h (deprecated_pc_in_call_dummy): Rename
7058 generic_pc_in_call_dummy.
7059 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7060 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7061 generic_pc_in_call_dummy.
7062 (pc_in_dummy_frame): Make static.
7063 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7064 * gdbarch.h, gdbarch.c: Re-generate.
7065 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7066 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7067 (legacy_get_prev_frame): Ditto.
7068 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7069 comment.
8718a420 7070
ca4bb888
AC
70712004-03-21 Andrew Cagney <cagney@redhat.com>
7072
244675f9
AC
7073 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7074 declaration and out-of-date comment.
7075 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7076 Delete function.
7077 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7078 deprecated_pc_in_call_dummy.
7079
ca4bb888
AC
7080 * infrun.c (handle_inferior_event): For non legacy frames, use the
7081 frame ID and frame type to identify a signal trampoline. Update
7082 comments.
7083
1777c7b4
NW
70842004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7085
7086 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7087 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7088
82417da5
AC
70892004-03-21 Andrew Cagney <cagney@redhat.com>
7090
7091 * frame-unwind.h: Update copyright.
7092 (struct frame_data): Add opaque declaration.
7093 (frame_sniffer_ftype): Declare.
7094 (struct frame_unwind): Add "unwind_data" and "sniffer".
7095 (frame_unwind_register_unwinder): Declare.
7096 (frame_unwind_find_by_frame): Add parameter "this_cache".
7097 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7098 (legacy_get_prev_frame, legacy_get_prev_frame)
7099 (get_frame_type): Pass the prologue_cache to
7100 frame_unwind_find_by_frame.
7101 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7102 "unwinder".
7103 (frame_unwind_register_unwinder): New function.
7104 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7105
b2ba182e
PH
71062004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7107
7108 * bcache.c (print_percentage): Use floating point to avoid
7109 incorrect results when portion*100 overflows.
7110
81332287
KB
71112004-03-19 Kevin Buettner <kevinb@redhat.com>
7112
7113 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7114 (ppc_linux_init_extra_frame_info)
7115 (ppc_linux_frameless_function_invocation)
7116 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7117 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7118 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7119 (rs6000_frame_chain): Delete declarations.
7120 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7121 (ppc_linux_init_extra_frame_info)
7122 (ppc_linux_frameless_function_invocation)
7123 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7124 (ppc_linux_init_abi): Remove registration of above deleted functions.
7125 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7126 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7127 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7128 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7129 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7130 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7131 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7132 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7133 frame management for all OSABIs.
7134
61a65099
KB
71352004-03-19 Andrew Cagney <cagney@redhat.com>
7136
7137 Committed by Kevin Buettner <kevinb@redhat.com>.
7138
7139 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7140 Update copyright.
7141 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7142 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7143 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7144 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7145 unwinders. #ifdef legacy frame code.
7146 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7147 "frame-base.h".
7148 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7149 (struct rs6000_frame_cache, rs6000_frame_cache)
7150 (rs6000_frame_this_id, rs6000_frame_prev_register)
7151 (rs6000_frame_sniffer, rs6000_frame_unwind)
7152 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7153 (rs6000_frame_base): Implement a traditional frame unwinder.
7154 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7155 frame unwinder.
7156
88f7da05
KB
71572004-03-19 Kevin Buettner <kevinb@redhat.com>
7158
7159 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7160 breakpoint address for watchpoints or the catch eventpoints.
7161 Add new paramter ``bptype''. Adjust all callers.
7162
f826dce1
AC
71632004-03-19 Andrew Cagney <cagney@redhat.com>
7164
33cb8b0f
AC
7165 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7166
f826dce1
AC
7167 * PROBLEMS: Delete note that ARM does not use frame code, problem
7168 fixed.
7169
43b1ab88
AC
71702004-03-18 Andrew Cagney <cagney@redhat.com>
7171
292ab034
AC
7172 * stack.c (return_command): Delete code wrapped in #ifdef
7173 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7174
43b1ab88
AC
7175 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7176
dbfe4626
AC
71772004-03-18 Andrew Cagney <cagney@redhat.com>
7178
7179 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7180 DEPRECATED_IN_SIGTRAMP.
7181 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7182 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7183 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7184 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7185 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7186 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7187 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7188 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7189 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7190 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7191
0cad6aec
AC
71922004-03-18 Andrew Cagney <cagney@redhat.com>
7193
7194 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7195 (struct frame_base_table_entry): Define.
7196 (struct frame_base_table): Re-implement as a linked list.
7197 (frame_base_init): Re-implement.
7198 (frame_base_table): Delete function.
7199 (append_predicate): Delete function.
7200 (frame_base_append_sniffer): Update.
7201 (frame_base_set_default): Update.
7202 (frame_base_find_by_frame): Update.
7203 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7204 * Makefile.in (frame-base.o): Update dependencies.
7205
9982c2e7
AC
72062004-03-17 Andrew Cagney <cagney@redhat.com>
7207
7208 * frame.c (legacy_get_prev_frame): Pass correct frame to
7209 frame_unwind_find_by_frame.
7210
8dfe8985
DC
72112004-03-17 David Carlton <carlton@kealia.com>
7212
7213 * NEWS: Mention C++ nested types and namespaces
7214
ed47347a
MC
72152004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7216
7217 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7218 and "Regressions since gdb 5.3.". Add known regressions since
7219 gdb 6.0.
7220
90aeadfc
DC
72212004-03-16 David Carlton <carlton@kealia.com>
7222
7223 * dwarf2read.c (process_structure_scope): Process children even
7224 when we're a declaration.
7225
73912b9b
AC
72262004-03-16 Andrew Cagney <cagney@redhat.com>
7227
7228 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7229 * blockframe.c (find_pc_partial_function)
7230 (find_pc_sect_partial_function): Merge into a single
7231 find_pc_partial_function.
7232
283accbc
MK
72332004-03-16 Mark Kettenis <kettenis@gnu.org>
7234
7235 * i386bsd-nat.c: s/regno/regnum/g.
7236 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7237 FP0_REGNUM.
7238 (store_inferior_registers): Likewise.
7239
f5b1afdf
MK
72402004-03-16 Mark Kettenis <kettenis@gnu.org>
7241
7242 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7243 of i387_fill_fsave.
7244 (store_inferior_registers): Call i387_collect_fsave and
7245 i387_collect_fxsave instead of i387_fill_fsave and
7246 i387_fill_fxsave.
7247
41fe5eb3
AC
72482004-03-15 Andrew Cagney <cagney@redhat.com>
7249
7250 * Makefile.in (frame-unwind.o): Update dependencies.
7251 * frame-unwind.c: Include "gdb_obstack.h".
7252 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7253 parameter.
7254 (append_predicate): Delete function.
7255 (struct frame_unwind_table_entry): New structure.
7256 (struct frame_unwind_table): Replace "sniffer" with "head" and
7257 "tail".
7258 (frame_unwind_append_sniffer): Update.
7259 (frame_unwind_find_by_frame): Update.
7260 (_initialize_frame_unwind): Registe frame_unwind_init using
7261 gdbarch_data_register_pre_init.
7262
3f63813d
MK
72632004-03-15 Mark Kettenis <kettenis@gnu.org>
7264
7265 * i386bsd-nat.c: Update copyright year.
7266 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7267 define unconditionally.
7268
3248c325 72692004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
7270
7271 * i387-tdep.h (i387_collect_fsave): New prototype.
7272 * i387-tdep.c (i387_collect_fsave): New function containing most
7273 of the code from i387_fill_fsave.
3248c325 7274 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 7275
871fbe6a
MK
72762004-03-15 Mark Kettenis <kettenis@gnu.org>
7277
7278 * i386-linux-tdep.c: Update copyright year.
7279 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7280 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7281 svr4_ilp32_link_map_offsets instead of
7282 i386_linux_svr4_fetch_link_map_offsets.
7283
8176b9b8
DC
72842004-03-15 David Carlton <carlton@kealia.com>
7285
7286 Fix for PR c++/1553:
7287 * dwarf2read.c (read_structure_type): Determine type name by
7288 calling determine_class_name.
7289 (determine_class_name): New.
7290 (determine_prefix): Look at TYPE_TAG_NAME and call
7291 determine_class_name when appropriate.
7292 (determine_prefix_aux, class_name): Delete.
9d58e29d 7293 (read_namespace): Set die->type.
8176b9b8 7294
fe8bf7d7
KB
72952004-03-15 Kevin Buettner <kevinb@redhat.com>
7296
7297 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7298 unused macro definition. The definition in target.h (or perhaps
7299 elsewhere) takes precedence.
7300
ed6edd9b
AC
73012004-03-15 Andrew Cagney <cagney@redhat.com>
7302
f9be684a
AC
7303 * ppc-tdep.h: Update copyright.
7304 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7305 function signatures to match "regsets.h".
7306 * ppc-linux-tdep.c: Include "regset.h".
7307 (ELF_GREGSET_SIZE): Delete.
7308 (right_supply_register): New function.
7309 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7310 using right_supply_register.
7311 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7312 functions.
7313 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7314 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7315 (_initialize_ppc_linux_tdep): Do not register
7316 ppc_linux_regset_core_fns.
7317 (ppc_linux_regset_from_core_section): Replace
7318 fetch_core_registers.
7319 (ppc_linux_regset_core_fns): Delete.
7320 * ppc-linux-nat.c: (right_fill_reg): New function.
7321 (supply_gregset): Update call to ppc_linux_supply_gregset.
7322 (fill_gregset): Clear the register set, use right_fill_reg.
7323 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7324 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7325
ed6edd9b
AC
7326 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7327 unsigned.
7328
030f20e1
AC
73292004-03-15 Andrew Cagney <cagney@redhat.com>
7330
7331 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7332 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7333 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7334 and register_gdbarch_data.
7335 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7336 (struct gdbarch_data): Replace "init" by "pre_init" and
7337 "post_init".
7338 * gdbarch.h, gdbarch.c: Re-generate.
7339 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7340 with"obstack", use OBSTACK_ZALLOC.
7341 (dwarf2_frame_ops): Delete.
7342 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7343 (dwarf2_frame_init_reg): Use gdbarch_data.
7344 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 7345 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
7346 (_initialize_svr4_solib): Update.
7347 * user-regs.c (_initialize_user_regs): Update.
7348 * reggroups.c (_initialize_reggroup): Update.
7349 * regcache.c (_initialize_regcache): Update.
7350 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7351 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7352 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7353 * frame-unwind.c (_initialize_frame_unwind): Update.
7354 * frame-base.c (_initialize_frame_base): Update.
7355 * user-regs.c (user_reg_add): Update.
7356 * reggroups.c (reggroup_add): Update.
7357 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7358 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7359 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7360 * frame-base.c (frame_base_table): Update.
7361 * remote.c (_initialize_remote): Update.
7362 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 7363
3111a3fc
AC
73642004-03-15 Andrew Cagney <cagney@redhat.com>
7365
7366 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7367
5ecb7103
KB
73682004-03-15 Kevin Buettner <kevinb@redhat.com>
7369
7370 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7371 * frv-linux-tdep.c: New file.
7372 * frv-tdep.c (struct gdbarch_tdep): Add new field
7373 ``sigcontext_reg_addr''.
7374 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7375 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7376 (frv_sigramp_frame_sniffer): New functions.
7377 (frv_sigtramp_frame_unwind): New static global.
7378 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7379 sniffers.
7380 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7381 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7382
1ccda5e9
KB
73832004-03-15 Kevin Buettner <kevinb@redhat.com>
7384
7385 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7386 but not via a call to error(), when unable to read memory.
7387
b375a0a5
KB
73882004-03-15 Kevin Buettner <kevinb@redhat.com>
7389
7390 * frv-tdep.c (frv_call_dummy_words): Delete.
7391 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7392
4fdf6121
AC
73932004-03-15 Andrew Cagney <cagney@redhat.com>
7394
7395 * infrun.c (handle_step_into_function, step_over_function): Only
7396 update and use STEP_FRAME_ID when the system is using legacy
7397 frames. Update comments.
7398
34021503
MK
73992004-03-14 Mark Kettenis <kettenis@gnu.org>
7400
187e21d1
MK
7401 * amd64-linux-tdep.h: Remove file.
7402 * amd64-linux-tdep.c: Don't include "inferior.h" and
7403 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7404 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7405 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7406 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7407 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7408 macros.
7409 (user_to_gdb_regmap): Remove variable.
7410 (amd64_linux_gregset_reg_offset): New variable.
7411 (amd64_core_fns): Remove variable.
7412 (fetch_core_registers): Remove function.
7413 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7414 functions.
7415 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7416 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7417 * Makefile.in (amd64_linux_tdep_h): Remove.
7418 (amd64-linux-nat.o): Update dependencies.
7419 (amd64-linux-tdep.o): Update dependencies.
7420
99679982
MK
7421 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7422 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7423 functions.
7424 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7425
34021503
MK
7426 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7427 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7428
134d01f1
DJ
74292004-03-14 Daniel Jacobowitz <drow@mvista.com>
7430
7431 * dwarf2read.c (read_structure_type): Rename from
8718a420 7432 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
7433 Return immediately if die->type is set. Call read_type_die before
7434 dwarf2_add_member_fn.
7435 (process_structure_scope): New function.
7436 (read_enumeration_type, process_enumeration_scope): New functions,
7437 broken out from read_enumeration. Don't create the enumeration
7438 type if it has already been created.
7439 (read_enumeration): Removed.
7440 (process_die): Call read_structure_type, process_structure_scope,
7441 read_enumeration_type, and process_enumeration_scope. Just call
7442 new_symbol for base and subrange types. Add a comment about other
7443 type dies.
7444 (read_type_die): Call read_enumeration_type.
7445 (add_partial_structure, new_symbol): Update comments.
7446
65760afb
SC
74472004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7448
7449 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7450
10f59415
SC
74512004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7452
7453 * tui/tui-win.h (tui_get_cmd_list): Declare.
7454 * tui/tui-win.c (tui_command): New function.
7455 (tui_get_cmd_list): New function.
7456 (_initialize_tui_win): Moved initialization of tui command in
7457 tui_get_cmd_list.
7458
7459 * tui/tui-data.c (init_content_element): Setup new data members.
7460 (init_win_info): Likewise.
7461 (free_content_elements): Free it.
7462 * tui/tui-data.h (struct tui_data_element): Store the register
7463 content to print.
7464 (struct tui_data_info): Keep the current register group.
7465
7466 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7467
7468 * tui/tui-regs.h (tui_show_registers): Update prototype.
7469 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7470 (tui_resize_all): No need to calculate anything for register window.
7471 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7472 (tui_set_register_element, tui_set_general_regs_content): Remove.
7473 (tui_set_special_regs_content): Remove.
7474 (tui_set_general_and_special_regs_content): Remove.
7475 (tui_set_float_regs_content): Remove.
7476 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7477 (tui_set_regs_content): Remove.
7478 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7479 (tui_v_show_registers_command_support): Remove.
7480 (tui_show_registers): Use a reggroup to specify the registers to show.
7481 (tui_show_register_group): New function.
7482 (tui_display_registers_from): Compute the layout of register window
7483 and refresh with new API; be sure to delete old register windows.
7484 (tui_check_register_values): Update to use tui_get_register and
7485 tui_display_data.
7486 (tui_display_register): Just refresh the register window part.
7487 (tui_register_format): Format registers and save in tui_data_element.
7488 (tui_get_register): New to combine tui_reg_value_has_changed and
7489 tui_get_register_raw_value; fix to use the new gdb API.
7490 (tui_show_float_command): Renamed tui_reg_float_command.
7491 (tui_show_general_command): Renamed tui_reg_general_command.
7492 (tui_show_special_command): Renamed tui_reg_system_command.
7493 (_initialize_tui_regs): Remove unused commands.
7494
c3364ea4
MK
74952004-03-13 Mark Kettenis <kettenis@gnu.org>
7496
27d1e716
MK
7497 * NEWS (New native configurations): Mention OpenBSD/amd64.
7498
c3364ea4
MK
7499 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7500 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7501 Remove defines.
7502 * config/i386/nm-fbsd64.h: Likewise.
7503 * config/i386/nm-obsd.h: Likewise.
7504 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7505 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7506
b2d6d697
KB
75072004-03-12 Kevin Buettner <kevinb@redhat.com>
7508
7509 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
7510 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7511 New constants.
7512
76e43199
KB
7513 From Richard Sandiford <rsandifo@redhat.com>:
7514 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7515
34ce532e
KB
75162004-03-12 Kevin Buettner <kevinb@redhat.com>
7517
7518 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7519 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7520 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7521 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7522 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7523 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7524 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7525 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7526 definitions from frv-tdep.c to frv-tdep.h.
7527
c4d10515
KB
75282004-03-12 Kevin Buettner <kevinb@redhat.com>
7529
7530 Add shared library support for FR-V FDPIC ABI:
7531 * Makefile.in (solib-frv.o): Add dependencies.
7532 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7533 New functions.
7534 (frv_push_dummy_call): Add support for FDPIC ABI.
7535 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7536 for FDPIC ABI.
7537 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7538 (frv_fdpic_find_canonical_descriptor): Declare.
7539 * solib-frv.c: New file.
7540 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7541 * config/frv/tm-frv.h (solib.h): Include.
7542
ed1bd989
KB
75432004-03-12 Kevin Buettner <kevinb@redhat.com>
7544
7545 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7546 (frv-tdep.o): Update dependencies.
7547 * frv-tdep.h: New file.
7548 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7549 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7550 constants.
7551 (struct gdbarch_tdep): Add new member ``frv_abi''.
7552 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7553 functions.
7554 (new_variant): Set ``frv_abi'' field.
7555 (gdb_arch_init): Detect FDPIC executables.
7556
82b38f72
MK
75572004-03-12 Mark Kettenis <kettenis@gnu.org>
7558
7559 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7560 wrapper.
7561
db1ea9ba
AC
75622004-03-11 Andrew Cagney <cagney@redhat.com>
7563
7564 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7565
f8766ec1
KB
75662004-03-11 Kevin Buettner <kevinb@redhat.com>
7567
7568 * solist.h (master_so_list): New function.
7569 * solib.c (master_so_list): Likewise.
7570 * solib-svr4.c (enable_break): Iterate over so_list entries
7571 obtained from master list instead of entries obtained directly
7572 via svr4_current_sos().
7573
523f6a27
BE
75742004-03-10 Ben Elliston <bje@gnu.org>
7575
7576 * MAINTAINERS: Update my mail address.
7577
37814c18
KI
75782004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7579
7580 * remote-m32r-sdi.c: Support hardware watchpoint.
7581
8b9740d8
DJ
75822004-03-09 Daniel Jacobowitz <drow@mvista.com>
7583
7584 * user-regs.c: Update copyright years.
7585 (struct user_regs): Rename to gdb_user_regs.
7586 (append_user_reg, builtin_user_regs, user_regs_init)
7587 (user_reg_add, user_reg_map_name_to_regnum)
7588 (usernum_to_user_reg): Update.
7589
4bb7a0a7
DJ
75902004-03-09 Daniel Jacobowitz <drow@mvista.com>
7591
7592 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7593 (skip_children): New functions.
7594 (locate_pdi_sibling): Call skip_children.
7595
44e1a9eb
DJ
75962004-03-09 Daniel Jacobowitz <drow@mvista.com>
7597
7598 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7599 * gdbtypes.c (check_typedef): Update comments.
7600
f3dd6933
DJ
76012004-03-09 Daniel Jacobowitz <drow@mvista.com>
7602
7603 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7604 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7605 pointer. Update comment about comp_unit_head.
7606 (struct abbrev_info): Shorten two int flags.
7607 (dwarf_alloc_abbrev): Take a CU argument.
7608 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7609 each time through the loop. Update cleanup argument.
7610 (psymtab_to_symtab_1): Update cleanup call.
7611 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7612 abbrev_obstack.
7613 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7614 Just call obstack_free and clear the pointer.
7615
b40c7d58
DJ
76162004-03-09 Daniel Jacobowitz <drow@mvista.com>
7617
7618 * infrun.c (handle_inferior_event): Remove short-circuit code for
7619 events in a different thread.
7620
333dabeb
DJ
76212004-03-09 Daniel Jacobowitz <drow@mvista.com>
7622
7623 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7624 print the whole transfer.
7625 (initialize_targets): Update description of "set debug target".
7626
aa17d93e
DJ
76272004-03-09 Daniel Jacobowitz <drow@mvista.com>
7628
7629 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7630
0b71f08f
NW
76312004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7632
7633 * MAINTAINERS (write after approval): Add myself.
7634
3930f270
CV
76352004-03-08 Corinna Vinschen <vinschen@redhat.com>
7636
7637 * sh-tdep.c (sh_print_registers_info): Use for loop.
7638 Don't skip multiple registers when a float register is encountered.
7639
a2b4a96c
CV
76402004-03-08 Corinna Vinschen <vinschen@redhat.com>
7641
7642 Fix PR tdep/1291.
7643 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7644 to official SH documentation.
7645
f15a4bc0
AC
76462004-03-07 Andrew Cagney <cagney@redhat.com>
7647
7648 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7649 unused function.
7650
9498281f
DJ
76512004-03-07 Daniel Jacobowitz <drow@mvista.com>
7652
7653 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7654 (arm_get_next_pc): Handle BX and BLX.
7655
449e1137
AC
76562004-03-07 Andrew Cagney <cagney@redhat.com>
7657
eded0a31
AC
7658 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7659 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7660 HPPA_SP_REGNUM.
7661 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7662 (hppa_target_read_fp): Delete.
7663 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7664 register_virtual_size, max_register_raw_size,
7665 max_register_virtual_size, register_byte, register_size,
7666 target_read_fp, fp_regnum, and register_bytes. Set register_type
7667 instead of register_virtual_type.
7668 (hppa32_register_type, hppa64_register_type): Replace
7669 hppa32_register_virtual_type and hppa64_register_virtual_type.
7670 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7671 (HPPA_FP_REGNUM): Define.
7672
f5f907e2
AC
7673 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7674
69b4bbe4
AC
7675 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7676 (pa_do_registers_info): Delete.
7677 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 7678 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 7679 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 7680
78161e48
AC
7681 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7682 GDB_TARGET_IS_HPPA code.
7683 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 7684 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
7685 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7686 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
7687 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7688 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7689 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 7690 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
7691 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7692 (hppa_frameless_function_invocation, hppa64_store_return_value)
7693 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 7694 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 7695 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 7696 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
7697 (find_proc_framesize, deposit_21, restore_pc_queue)
7698 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 7699 (rp_saved, pc_in_linker_stub): Delete.
78161e48 7700
782eae8b
AC
7701 Unconditionally enable 64-bit frame and ABI code.
7702 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7703 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7704 push_dummy_frame, fix_call_dummy, push_arguments,
7705 call_dummy_location, extract_return_value, use_struct_convention,
7706 store_return_value, store_struct_return, saved_pc_after_call,
7707 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7708 frame_chain, frame_chain_valid, frameless_function_invocation,
7709 frame_saved_pc, and pop_frame.
78161e48 7710
449e1137
AC
7711 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7712 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7713 (hppa_gdbarch_init): Do not set PC_REGNUM.
7714
12507572
MK
77152004-03-06 Mark Kettenis <kettenis@gnu.org>
7716
7717 * config/alpha/tm-fbsd.h: Remove file.
7718 * config/alpha/fbsd.mt: Tweak comment.
7719 (TM_FILE): Set to tm-alpha.h.
7720
c107cc1b
AC
77212004-03-05 Andrew Cagney <cagney@redhat.com>
7722
7723 * infrun.c (step_over_function): When non-legacy code, and no
7724 step_frame_id, use the unwinder to get the caller's frame ID.
7725
f2e7c15d
MK
77262004-03-05 Mark Kettenis <kettenis@gnu.org>
7727
8b0c3633
MK
7728 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7729 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7730 bfd_arch_unknown. Adjust comment.
7731
f2e7c15d
MK
7732 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7733 * i386obsd-tdep.c: Correct spelling in comment.
7734 * i386nbsd-tdep.c: Correct spelling in comment.
7735 * sparc-tdep.c: Correct spelling in comments.
7736
1198ecbe
DC
77372004-03-05 David Carlton <carlton@kealia.com>
7738
7739 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7740 bug.
7741
9eb42ed1
MK
77422004-03-05 Mark Kettenis <kettenis@gnu.org>
7743
7744 * sparc-tdep.c: Fix typo in comment.
7745
52b5e991
JB
77462004-03-04 J. Brobecker <brobecker@gnat.com>
7747
7748 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7749
d8151005
DJ
77502004-03-04 Daniel Jacobowitz <drow@mvista.com>
7751
7752 * dwarf2read.c: Add comment describing memory lifetimes.
7753 (struct dwarf2_pinfo): Update comment.
7754 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7755 (read_enumeration, new_symbol): Don't use obsavestring.
7756
cbeae229
MK
77572004-03-04 Mark Kettenis <kettenis@gnu.org>
7758
722d18c2
MK
7759 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7760 instead of amd64_fill_fxsave.
7761 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7762 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7763
cbeae229
MK
7764 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7765 Reorganize code a bit.
7766
b4206d25
OF
77672004-03-04 Orjan Friberg <orjanf@axis.com>
7768
7769 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
7770 when the frame pointer is pushed. Don't set the frame pointer's
7771 address on the stack unless it's actually located there.
b4206d25
OF
7772 Set the SRP's address on the stack correctly when the PC is still in
7773 the prologue.
7774 (cris_return_value): New function.
7775 (cris_gdbarch_init): Clear deprecated store_return_value,
7776 extract_return_value.
7777
49b0b195
JB
77782004-03-02 Jim Blandy <jimb@redhat.com>
7779
7780 * stabsread.c (reg_value_complaint): The maximum register number
7781 is one less than the number of registers.
7782
e9ff708b
AC
77832004-03-02 Andrew Cagney <cagney@redhat.com>
7784
7785 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7786 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7787 trailing comma and redundant assignment of I386_ST0_REGNUM.
7788 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7789 32-bit segment registers.
7790
d4715e41
AC
77912004-03-01 Andrew Cagney <cagney@redhat.com>
7792
7793 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7794 use frame_relative_level and get_next_frame.
7795
3ce2bf18
AC
77962004-02-29 Andrew Cagney <cagney@redhat.com>
7797
7798 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7799 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7800 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7801 Delete macro.
7802
2da6aac3
DJ
78032004-02-29 Daniel Jacobowitz <drow@mvista.com>
7804
7805 * inflow.c (terminal_inferior): Don't give up the terminal if we
7806 previously couldn't get the inferior's terminal state.
7807
6ba34a8d
DJ
78082004-02-29 Daniel Jacobowitz <drow@mvista.com>
7809
7810 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7811 PC_REGNUM.
7812
faae5abe
AC
78132004-02-28 Andrew Cagney <cagney@redhat.com>
7814
7815 * NEWS: Refer to GDB 6.1.
7816 * README: Refer to GDB 6.1.
7817 * PROBLEMS: Refer to GDB 6.1.
7818
2227a3c5
DJ
78192004-02-28 Daniel Jacobowitz <drow@mvista.com>
7820
7821 * thread-db.c (disable_thread_signals): Remove unused function.
7822
80571bff
MK
78232004-02-28 Mark Kettenis <kettenis@gnu.org>
7824
041bd74b
MK
7825 * amd64-nat.c: Include "gdb_string.h".
7826 (amd64_collect_native_gregset): Zero-extend the 32-bit
7827 general-purpose registers and %eip.
7828
3c017e40
MK
7829 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7830 * amd64-tdep.c (amd64_collect_fxsave): New function.
7831 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7832
80571bff
MK
7833 * i387-tdep.h: Update copyright year.
7834 (i387_collect_fxsave): New prototype.
7835 * i387-tdep.c: Update copyright year.
7836 (i387_collect_fxsave): New function containing most of the code
7837 from i387_fill_fxsave.
7838 (i387_fill_fxsave): Call i387_collect_fxsave.
7839
50d71875
AC
78402004-02-28 Andrew Cagney <cagney@redhat.com>
7841
7842 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7843 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7844
4a28816e
MK
78452004-02-28 Mark Kettenis <kettenis@gnu.org>
7846
7847 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7848
dbda9972
AC
78492004-02-28 Andrew Cagney <cagney@redhat.com>
7850
7851 * utils.c: Use "", instead of <>, to include readline.
7852 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7853 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7854 * source.c, solib.c, exec.c, event-top.c: Ditto.
7855 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7856 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7857 * Makefile.in: Update all dependencies.
7858 (readline_tilde_h, readline_history_h): Define.
7859 (readline_headers): Delete.
7860
83277a99
MK
78612004-02-28 Mark Kettenis <kettenis@gnu.org>
7862
91ae4303
MK
7863 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7864 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7865 "config/i386/tm-lx64.h".
7866
83277a99
MK
7867 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7868 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7869 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7870
6e1d7d6c
AC
78712004-02-28 Andrew Cagney <cagney@redhat.com>
7872
ecc9ac84
AC
7873 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7874
6e1d7d6c
AC
7875 * breakpoint.c (_initialize_breakpoint): Use
7876 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7877 Add help to show command.
7878
9671aeef
MK
78792004-02-28 Mark Kettenis <kettenis@gnu.org>
7880
7fa2737c
MK
7881 * i386-nat.c: Reformat to be closer to coding standards.
7882 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7883 `retval'. Make variables `align' and `size' local to while-loop.
7884 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7885 (_initialize_i386_nat): New prototype.
7886
9671aeef
MK
7887 * tui/tui.c: Include <readline/readline.h> instead of
7888 "readline/readline.h". Include it after <term.h> and
7889 "gdb_curses.h".
7890
fca7aa43
AC
78912004-02-27 Andrew Cagney <cagney@redhat.com>
7892
412275d5
AC
7893 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7894 the new frame unwind code.
7895 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7896 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7897 PCOQ_HEAD_REGNUM.
7898
fca7aa43
AC
7899 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7900 "return_value" and "push_dummy_call".
7901 (hppa32_use_struct_convention): Delete unused function.
7902 (hppa32_store_return_value): Delete unused function.
7903 (hppa32_extract_return_value): Delete unused function.
7904 (hppa32_stack_align): Delete function.
7905
e6a8a7d2
EZ
79062004-02-27 Eli Zaretskii <eliz@elta.co.il>
7907
7908 * coffread.c (enter_linenos): Don't let rawptr reference memory
7909 outside linetab[]'s limits.
7910
1797a8f6
AC
79112004-02-27 Andrew Cagney <cagney@redhat.com>
7912
7913 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7914 inferior stack space - the stack needs to grow upwards.
7915 (hppa32_frame_align): New function.
7916 (hppa64_frame_align): Replace hppa_frame_align.
7917 (hppa_gdbarch_init): Update.
7918
2e4b5889
OF
79192004-02-26 Orjan Friberg <orjanf@axis.com>
7920
7921 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7922 (dwarf2-frame.h): Include.
7923 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7924 Remove static variables related to ABI setting.
7925 (struct gdbarch_tdep): Remove cris_abi member.
7926 (struct frame_extra_info): Remove.
7927 (cris_unwind_cache, stack_item): New structs.
7928 (cris_frame_unwind, cris_frame_base): New variables.
7929 (push_stack_item, pop_stack_item)
7930 (cris_frame_unwind_cache, cris_frame_this_id)
7931 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7932 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7933 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7934 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7935 (cris_reg_struct_has_addr): New functions.
7936 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 7937 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
7938 (cris_store_struct_return, cris_frameless_function_invocation)
7939 (cris_pop_frame, cris_skip_prologue_main)
7940 (cris_abi_original_store_return_value)
7941 (cris_abi_v2_store_return_value)
7942 (cris_abi_original_extract_return_value)
7943 (cris_abi_v2_extract_return_value)
7944 (cris_abi_original_reg_struct_has_addr)
7945 (cris_abi_v2_reg_struct_has_addr)
7946 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7947 (cris_push_return_address, cris_abi_update): Remove.
7948 (_initialize_cris_tdep): Remove ABI command.
7949 (cris_dump_tdep): Ditto.
8718a420 7950 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
7951 Set store_return_value, extract_return_value, push_dummy_code,
7952 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7953 frame_unwind_append_sniffer, frame_base_set_default.
7954 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7955 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7956 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 7957 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
7958 init_extra_frame_info, frameless_function_invocation, frame_chain,
7959 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7960 dummy_write_sp.
8718a420 7961
6b9acc27
JJ
79622004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7963
7964 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7965 * valprint.c (print_hex_chars): Change from static to external.
7966 (print_char_chars): New function.
7967 * printcmd.c (print_scalar_formatted): For integer and enum types
7968 that are longer than LONGEST, perform processing via appropriate
7969 print_*_chars routines.
7970
a431654a
AC
79712004-02-26 Andrew Cagney <cagney@redhat.com>
7972
7973 * Makefile.in: Update dependencies.
7974 Changes from Ulrich Weigand,
7975 * s390-tdep.c: Include "dwarf2-frame.h".
7976 (s390_dwarf2_frame_init_reg): New function.
7977 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7978 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7979
fa8d40ab
JJ
79802004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7981
7982 * breakpoint.c (pending_break_support): New setting variable.
7983 (break_command_1): Account for pending_break_support setting
7984 when creating pending breakpoints.
7985 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7986 (_initialize_breakpoint): Add "set breakpoint pending" and
7987 "show breakpoint pending" commands.
7988
0dcd613f
AC
79892004-02-26 Andrew Cagney <cagney@redhat.com>
7990
7991 Fix PR i18n/1570.
7992 * charset.c (backslashable, backslashed, represented): Remove 'e'
7993 from list of escaped characters, not part of ISO-C.
7994
479272a3
JB
79952004-02-25 J. Brobecker <brobecker@gnat.com>
7996
7997 From Peter Schauer <schauer@pdf.de>:
7998 * tui/tui.c: Move system header includes after local includes.
7999 Fixes a build failure on solaris systems.
8000
7613d933
JB
80012004-02-25 J. Brobecker <brobecker@gnat.com>
8002
8003 * configure.in: Refine the previous change.
8004 * configure: Regenerate.
8005
9c1488cb
MK
80062004-02-25 Mark Kettenis <kettenis@gnu.org>
8007
8008 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8009 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8010 "amd64-tdep.h" instead of "x86-64-tdep.h".
8011 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8012 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8013 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8014 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8015 and "x86-64-tdep.c".
8016 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8017 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8018 and "x86-64-tdep.c".
8019 * amd64bsd-nat.c: Update copyright year.
8020 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8021 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8022 "x86-64-tdep.h".
8023 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8024 "x86-64-tdep.h".
8025 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8026 "x86-64-tdep.h".
8027 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8028 "x86-64-tdep.h".
8029 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8030 "x86-64-tdep.h".
8031 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8032 "x86-64-tdep.h".
8718a420 8033 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
8034 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8035 * Makefile.in (amd64_linux_tdep_h): Renamed from
8036 x86_64_linux_tdep_h.
8037 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8038 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8039 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8040 (amd64obsd-tdep.o): Update dependencies.
8041 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8042 dependencies.
8043 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8044 dependencies.
8045 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8046 amd64-linux-nat.c amd64-linux-tdep.c.
8047 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8048 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8049 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8050 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8051 amd64-tdep.o and amd64-linux-tdep.o.
8052 (TM_FILE): Set to tm-linux64.h.
8053 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8054 (NAT_FILE): Set to nm-linux64.h.
8055 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8056 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8057 amd64-tdep.o.
8058 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8059 amd64-tdep.o.
8060 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8061 amd64-tdep.o.
8062
4b8dad4a
RM
80632004-02-25 Roland McGrath <roland@redhat.com>
8064
8065 * remote.c (remote_protocol_qPart_auxv): New variable.
8066 (init_all_packet_configs): Initialize it.
8067 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8068 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8069 (show_remote_cmd): Call it.
8070 (_initialize_remote): Initialize commands.
8071 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8072 service TARGET_OBJECT_AUXV requests.
8073
66745969
JB
80742004-02-25 J. Brobecker <brobecker@gnat.com>
8075
8076 * configure.in: Make sure that the wborder function is available.
8077 Otherwise, search for it in the cur_colr library.
8078 * configure: Regenerate.
8079
79508e1e
AC
80802004-02-25 Andrew Cagney <cagney@redhat.com>
8081
8082 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8083
571ee600
MK
80842004-02-25 Mark Kettenis <kettenis@gnu.org>
8085
8086 * config/i386/tm-x86-64linux.h: Tweak comments.
8087
2b1b322f 80882004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
8089
8090 * MAINTAINERS: Add self to write-after-approval list.
8091
4d2acc65
AC
80922004-02-25 Andrew Cagney <cagney@redhat.com>
8093
4b8dad4a 8094 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
8095 * cli/cli-script.c (execute_control_command): Unconditionally
8096 install a cleanup. Default "ret" to "invalid_control". Use
8097 "break" instead of "return" to escape from the switch.
8098
4cfcaf21
JB
80992004-02-24 J. Brobecker <brobecker@gnat.com>
8100
8101 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8102 with the lines macro defined in term.h on AiX.
8103 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8104 a collision with the label_width macro defined in term.h on AiX.
8105
54a5c8d8
KB
81062004-02-23 David Mosberger <davidm@hpl.hp.com>
8107
8108 Committed by Kevin Buettner <kevinb@redhat.com>.
8109
8110 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8111 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8112 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8113 instead of ia64_write_pc().
8114 * ia64-linux-tdep.c (regcache.h): Include.
8115 (ia64_linux_write_pc): New function.
4b8dad4a 8116
8a1dac83
RM
81172004-02-23 Roland McGrath <roland@redhat.com>
8118
8119 * auxv.c (info_auxv_command): Fix typos in error messages.
8120
90f90721
MK
81212004-02-23 Mark Kettenis <kettenis@gnu.org>
8122
8a1dac83 8123 * x86-64-tdep.h: Tweak comment.
90f90721
MK
8124 (enum amd64_regnum): New.
8125 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8126 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8127 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8128 (X86_64_XMM1_REGNUM): Removed.
8129 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8130 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8131 prototypes for renamed functions.
8132 * x86-64-tdep.c: Fix typo.
8133 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8134 register numbers.
8135 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8136 Use constants from `enum amd64_regnum' for register numbers.
8137 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8138 (amd64_analyze_prologue, amd64_frame_cache,
8139 amd64_sigtramp_frame_cache): Use constants from `enum
8140 amd64_regnum' for register numbers.
8141 (amd64_supply_fpregset): Adjust for renamed functions.
8142 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8143 `enum amd64_regnum' for register numbers.
8144 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8145 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8146 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8147 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8148 (amd64_linux_fill_gregset): Adjust for renamed macros.
8149 (fetch_core_registers): Adjust for renamed functions.
8150 (amd64_linux_init_abi): Adjust for renamed functions.
8151 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8152 renamed functions.
8153 * amd64-nat.c: Adjust for renamed macros.
8154 * amd64bsd-nat.c (fetch_inferior_registers)
8155 (store_inferior_registers): Use constants from `enum amd64_regnum'
8156 for register numbers. Adjust for renamed variables.
8157 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8158 renamed variables.
8159 (_initialize_amd64fbsd_nat): Use constants from `enum
8160 amd64_regnum' for register numbers.
8161 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8162 `enum amd64_regnum' for register numbers.
8163 (amd64fbsd_init_abi): Adjust for renamed functions.
8164 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8165 `enum amd64_regnum' for register numbers.
8166 (amd64nbsd_init_abi): Adjust for renamed functions.
8167 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8168 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8169 `enum amd64_regnum' for register numbers.
8170 (amd64obsd_init_abi): Adjust for renamed functions.
8171 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8172
d5479188
JJ
81732004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8174
8175 * breakpoint.c (print_one_breakpoint): Do not output spaces
8176 after printing <PENDING> for a pending breakpoint.
8177
81cb7cc9
JJ
81782004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8179
8180 * printcmd.c (print_scalar_formatted): Initialize val_long
8181 to remove compiler warning message.
8182
cbdeadca
JJ
81832004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8184
8185 * defs.h (nquery, yquery): New prototypes.
8186 * breakpoint.c (break_command_1): Use new nquery interface.
8187 * utils.c (defaulted_query, nquery, yquery): New functions.
8188
da6bab63
AC
81892004-02-23 Andrew Cagney <cagney@redhat.com>
8190
2f690297
AC
8191 * hppa-tdep.c (hppa_frame_align): New function.
8192 (hppa32_push_dummy_call): New function.
8193 (hppa64_push_dummy_call): New function.
8194 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8195 disabled.
8a1dac83 8196
da6bab63
AC
8197 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8198 FIX_CALL_DUMMY when push_dummy_call is available.
8199 (call_function_by_hand, push_dummy_code): Ditto.
8200
abf9b42d
AC
82012004-02-22 Andrew Cagney <cagney@redhat.com>
8202
8203 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8204 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8205 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8206 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8207 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8208 call_dummy_location to ON_STACK.
8209
10fc94a4
MK
82102004-02-22 Mark Kettenis <kettenis@gnu.org>
8211
51433e4b
MK
8212 * x86-64-linux-tdep.c: Tweak comment.
8213 (amd64_linux_supply_gregset): Renamed from
8214 x86_64_linux_supply_gresget.
8215 (amd64_linux_fill_gregset): Renamed from
8216 x86_64_linux_fill_gregset.
8217 (fetch_core_registers): Adjust for renamed functions.
8218 (amd64_core_fns): Renamed from x86_64_core_fns.
8219 (amd64_linux_sigtramp_start): Renamed from
8220 x86_64_linux_sigtramp_start.
8221 (amd64_linux_pc_in_sigtramp): Renamed from
8222 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8223 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8224 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8225 (amd64_linux_sigcontext_addr): Renamed from
8226 x86_64_linux_sigcontext_addr.
8227 (amd64_linux_sc_reg_offset): Renamed from
8228 x86_64_linux_sc_reg_offset.
8229 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8230 Adjust for renamed functions and variables.
8231 (_initialize_amd64_linux_tdep): Renamed from
8232 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8233 variables.
8234 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8235 Adjust for renamed functions.
8236
430eaf2e
MK
8237 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8238 from x86_64_linux_gregset64_reg_offset.
8239 (amd64_linux_gregset32_reg_offset): Rename from
8240 x86_64_linux_gregset64_reg_offset.
8241 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8242 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8243 (amd64_linux_dr_set_control): Renamed from
8244 x86_64_linux_dr_set_control. Adjust for renamed functions.
8245 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8246 Adjust for renamed functions.
8247 (amd64_linux_dr_reset_addr): Renamed from
8248 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8249 (amd64_linux_dr_get_status): Renamed from
8250 x86_64_linux_dr_get_status. Adjust for renamed functions.
8251 (_initialize_amd64_linux_nat): Renamed from
8252 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8253 functions.
8254 * config/i386/nm-x86-64linux.h: Update copyright year.
8255 Adjust for renamed functions.
8256
10fc94a4
MK
8257 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8258 amd64fbsd_sigtramp_start.
8259 (amd64fbsd_sigtramp_end_addr): Renamed from
8260 amd64fbsd_sigtramp_end.
8261 (amd64fbsd_init_abi): Adjust for renamed variables.
8262 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8263 variables.
8264 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8265 amd64fbsd_sigtramp_start.
8266 (amd64fbsd_sigtramp_end_addr): Renamed from
8267 amd64fbsd_sigtramp_end.
8268
343af405
AC
82692004-02-22 Andrew Cagney <cagney@redhat.com>
8270
537987fc
AC
8271 * hppa-tdep.c (hppa32_return_value): New function.
8272 (hppa64_return_value): New function.
8273 (hppa_gdbarch_init): Set return_value; keep disabled.
8274
fad850b2
AC
8275 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8276 struct-return and inferior function call methods.
8277
26d08f08
AC
8278 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8279 "frame-base.h".
8280 (struct hppa_frame_cache): Define.
8281 (hppa_frame_cache, hppa_frame_this_id): New functions.
8282 (hppa_frame_prev_register): New function.
8283 (hppa_frame_unwind, hppa_frame_base): New variables.
8284 (hppa_frame_unwind_sniffer): New function.
8285 (hppa_frame_base_address, hppa_unwind_pc): New function.
8286 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8287 sniffer, and frame base sniffer; keep disabled.
8288 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8289 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8290
e7d7bd65
AC
8291 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8292 to predicates for "seriously old code".
8293
e963316f
AC
8294 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8295 runtime if(0).
8296
56132691
AC
8297 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8298 unsigned.
8299 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 8300
343af405
AC
8301 * config/pa/tm-hppa.h: Update copyright.
8302 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8303 (deprecated_init_frame_pc_default): Delete declaration.
8304 (hppa_frame_init_saved_regs): Delete declaration.
8305 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8306 * hppa-tdep.c: Include "arch-utils.h".
8307 (hppa_gdbarch_init): Set deprecated init_frame_pc
8308 and deprecated frame_init_saved_regs.
8309 (hppa_frame_init_saved_regs): Make static.
8310
f5859b4d
MK
83112004-02-22 Mark Kettenis <kettenis@gnu.org>
8312
86f6f8e7 8313 Remove old 386BSD support.
cf7c5c23 8314 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
8315 * configure.host: Remove i[34567]86-*-bsd*.
8316 * configure.tgt: Remove i[34567]86-*-bsd*.
8317 * i386b-nat.c: Removed.
8318 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
8319 (i386b-nat.o): Remove dependencies.
8320
86f6f8e7
MK
8321 * config/i386/i386bsd.mh: Removed.
8322 * config/i386/i386bsd.mt: Removed.
8323 * config/i386/nm-i386bsd.h: Removed.
8324 * config/i386/tm-i386bsd.h: Removed.
8325 * config/i386/xm-i386bsd.h: Removed.
8326
971218cd
MK
8327 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8328
7e654c37
MK
8329 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8330 (amd64fbsd_init_abi): Set link map offsets.
8331 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8332 (amd64nbsd_init_abi): Set link map offsets.
8333 * amd64obsd-tdep.c: Include "solib-svr4.h".
8334 (amd64obsd_init_abi): Set link map offsets.
8335 * i386fbsd-tdep.c: Include "solib-svr4.h".
8336 (i386fbsd_init_abi): Set link map offsets.
8337 * i386nbsd-tdep.c: Include "solib-svr4.h".
8338 (i386nbsdelf_init_abi): Set link map offsets.
8339 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8340 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8341 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8342 solib-legacy.o and core-aout.o. Reformat.
8343 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8344 solib-svr4.o, solib-legacy.o. Reformat.
8345 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8346 * config/i386/nbsdelf.mh: Reformat.
8347 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8348 solib-svr4.o, solib-legacy.o and corelow.o.
8349 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8350 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8351 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8352 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8353 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8354 (TM_FILE): Set to tm-fbsd.h.
8355 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8356 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8357 solib-svr4.o.
8358 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8359 solib-svr4.o.
8360 (TM_FILE): Set to nm-nbsd.h.
8361 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8362 Simplify shared library support. Don't include "elf/common.h".
8363 (SVR4_SHARED_LIBS): Don't define.
8364 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8365 "solib.h".
8366 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8367 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8368 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8369 Don't include "i386/tm-i386.h". Include "solib.h".
8370 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8371 Don't include "i386/tm-i386.h".
8372 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8373 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8374 Include "i386/xm-i386.h".
8375 (HOST_LONG_DOUBLE_FORMAT): Remove.
8376
5d93ae8c
MK
8377 Fix OpenBSD/i386 sigtramp recognition.
8378 * i386-tdep.h: Update copyright year.
8379 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8380 (i386bsd_sigtramp_end): New prototypes.
8381 (i386fbsd_sigtramp_start_addr): Renamed from
8382 i386fbsd_sigtramp_start.
8383 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8384 (i386obsd_sigtramp_start_addr): Renamed from
8385 i386obsd_sigtramp_start.
8386 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8387 * i386bsd-tdep.c: Update copyright year.
8388 (i386bsd_pc_in_sigtramp): Make public.
8389 * i386fbsd-nat.c: Update copyright year.
8390 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8391 * i386fbsd-tdep.c: Update copyright year.
8392 (i386fbsd_sigtramp_start_addr): Renamed from
8393 i386fbsd_sigtramp_start.
8394 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8395 (i386fbsdaout_init_abi): Adjust for renamed variables.
8396 * i386obsd-nat.c: Update copyright year.
8397 (_initialize_i386obsd_nat): Adjust for renamed variables.
8398 * i386obsd-tdep.c: Include "target.h".
8399 (i386obsd_page_size): New variable.
8400 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8401 (i386obsd_sigtramp_end): New functions.
8402 (i386obsd_sigtramp_start_addr): Renamed from
8403 i386obsd_sigtramp_start.
8404 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8405 (i386obsd_init_abi): Adjust for renamed variables. Set
8406 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8407 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8408
84d04465
MK
8409 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8410 trampoline change in OpenBSD kernel.
8411
b053aceb
MK
8412 * amd64-nat.c: Update copyright year.
8413 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8414 architecture from REGCACHE.
8415
f5859b4d
MK
8416 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8417 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8418
e4bbbda8
MK
84192004-02-21 Mark Kettenis <kettenis@gnu.org>
8420
ba361932
MK
8421 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8422 i[34567]86-*-openbsd3.[0-3].
8423 * config/i386/obsdaout.mh: New file.
8424
d3e48264
MK
8425 * config/i386/obsd.mh (MH_FLAGS): Remove.
8426
60a6eeb6
MK
8427 Fix PR build/1549.
8428 * i386obsd-tdep.c: Update copyright years. Include
8429 "solib-svr4.h".
8430 (i386obsd_init_abi): Don't set regset_from_core_section here.
8431 (i386obsd_aout_init_abi): New function. Set
8432 regset_from_core_section here.
8433 (i386obsd_elf_init_abi): New function.
8434 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8435 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8436 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8437 (TM_FILE): Set to tm-nbsd.h.
8438
8439 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8440 solib-sunos.o.
8441
e4bbbda8
MK
8442 * solib-svr4.h: Update copyright year.
8443 (svr4_ilp32_fetch_link_map_offsets)
8444 (svr4_lp64_fetch_link_map_offsets): New prototype.
8445 * solib-svr4.c: Update copyright year.
8446 (svr4_ilp32_fetch_link_map_offsets)
8447 (svr4_lp64_fetch_link_map_offsets): New function.
8448
f6fe98ef
DJ
84492004-02-20 Daniel Jacobowitz <drow@mvista.com>
8450
8451 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8452 to the partial symbol table.
8453
589ca796
JB
84542004-02-20 J. brobecker <brobecker@gnat.com>
8455
8456 * PROBLEMS: Add description of problem documented under gdb/1560.
8457
2031c21a
MK
84582004-02-20 Mark Kettenis <kettenis@gnu.org>
8459
30b344b1
MK
8460 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8461 comments.
8462 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8463 functions.
8464 (amd64obsd_init_abi): Reorder initializations. Use
8465 amd64obsd_r_reg_offset to initialize the general-purpose register
8466 set details. Set regset_from_core_section.
8467 (_initialize_amd64obsd_tdep): Rename from
8468 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8469 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8470 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8471
2031c21a
MK
8472 * NEWS (New native configurations): Mention OpenBSD/alpha.
8473 * configure.tgt: Add alpha*-*-openbsd*.
8474 * configure.host: Add alpha*-*-openbsd*.
8475 * alphanbsd-tdep.c: Update copyright year.
8476 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8477
42471775
AC
84782004-02-20 Andrew Cagney <cagney@redhat.com>
8479
8480 Fix PR tdep/1372.
8481 * configure.tgt: Delete target "none-*-*".
8482 * configure.host: Delete host "none-*-*".
8483 * config/none/none.mh: Delete file.
8484 * config/none/none.mt: Delete file.
8485 * config/none/xm-none.h: Delete file.
8486 * config/none/tm-none.h: Delete file.
8487 * config/none/nm-none.h: Delete file.
8488
960ccd7d
FF
84892004-02-19 Fred Fish <fnf@redhat.com>
8490
8491 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8492 cache->uses_fp prior to setting it.
8493
5f883edd
FF
84942004-02-19 Fred Fish <fnf@redhat.com>
8495
8496 Fix for PR breakpoint/1558.
8497 * sh-tdep.c (IS_JSR): New macro.
8498 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8499
f98c22d5
JB
85002004-02-19 Jim Blandy <jimb@redhat.com>
8501
8502 * findvar.c (value_from_register): Doc fix.
8503
95051d27
JJ
85042004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8505
8506 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8507 type being greater than sizeof of host's LONGEST. Always use
8508 unpack_long() unless format 'f' chosen.
8509
ccefbec3
EZ
85102004-02-19 Joel Brobecker <brobecker@gnat.com>
8511
8512 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 8513
ccefbec3
EZ
8514 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8515 contains a symbol wich is the best, non-exact match for the given
8516 pc. Update comments.
8517
85182004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8519
2ede629f
EZ
8520 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8521 macro, which was part of the now removed Mach 3 port.
8522 * utils.c (request_quit): Ditto.
8523
567ee972
MK
85242004-02-18 Mark Kettenis <kettenis@gnu.org>
8525
8526 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8527 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8528
50cca7bb
MK
85292004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8530
8531 Committed by Mark Kettenis <kettenis@gnu.org>.
8532
8533 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8534 Define.
8535
226361c4
AC
85362004-02-18 Andrew Cagney <cagney@redhat.com>
8537
8538 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8539 CONFIG_INSTALL and CONFIG_UNINSTALL.
8540 * configure: Re-generate.
8541 * interps.h (INTERP_TUI): Define.
8542 * Makefile.in: Update dependencies.
8543 (TUI): New macro.
8544 (tui-main.o): Specify dependencies.
8545 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8546 * tui/tui-main.c: New file.
8547
49cfa46f
MK
85482004-02-18 Mark Kettenis <kettenis@gnu.org>
8549
e2879ccb
MK
8550 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8551 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8552 dependencies.
8553 * configure.host: Add x86_64-*-openbsd*.
8554 * configure.tgt: Add x86_64-*-openbsd*.
8555 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8556
c43f4bec
MK
8557 * tui/tui.c: Don't include <malloc.h>.
8558
09ae75b6
MK
8559 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8560 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8561 amd64nbsd-tdep.c.
8562
49cfa46f 8563 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 8564 static. Remove extraneous whitespace.
49cfa46f
MK
8565 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8566 static.
8567
05957fdb
JB
85682004-02-17 Jim Blandy <jimb@redhat.com>
8569
8570 * findvar.c (value_from_register): Doc fix.
8571
d0f54f9d
JB
85722004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8573
8574 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 8575
8a1dac83 8576 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
8577 CORE_ADDR as type for selectors. Correct types for GNU run time
8578 message lookup function to use double indirection.
8579 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8580 * objc-lang.h (lookup_child_selector): Adapt prototype.
8581
9cbd5950
JB
8582 * s390-nat.c (SUBOFF): New macro.
8583 (supply_gregset, fill_gregset): Use it to handle debugging
8584 of 32-bit exectuables running under a 64-bit kernel.
8585 * s390-tdep.c: Include "solib-svr4.h".
8586 (s390_svr4_fetch_link_map_offset): New function.
8587 (s390x_svr_fetch_link_map_offset): Likewise.
8588 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8589 * Makefile.in (s390-tdep.o): Update dependencies.
8590
a8c99f38
JB
8591 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8592 "frame-unwind.h".
8593 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8594 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8595 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8596 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8597 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8598 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 8599 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
8600 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8601 (struct frame_extra_info): Remove.
8602 (s390_memset_extra_info): Remove.
f73b1eff
JB
8603 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8604 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8605 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
8606 (is_rse): Renamed to ...
8607 (is_rsy): ... this. Support long displacements.
8608 (is_rxe): Renamed to ...
8609 (is_rxy): ... this. Support long displacements.
8610 (compute_x_addr): Support long displacements.
8611 (struct s390_prologue_data): New data type.
8612 (s390_on_stack): Change API to use struct s390_prologue_data.
8613 (s390_store): Reimplement.
8614 (s390_load): New function.
8615 (s390_get_signal_frame_info): Remove.
8616 (s390_get_frame_info): Remove, replace by ...
8617 (s390_analyze_prolog): ... this new function.
8618 (s390_check_function_end): Remove.
8619 (s390_function_start): Remove.
8620 (s390_frameless_function_invokation): Remove.
8621 (s390_is_sigreturn): Remove.
8622 (s390_init_frame_pc_first): Remove.
8623 (s390_init_frame_extra_info): Remove.
8624 (s390_frame_init_saved_regs): Remove.
8625 (s390_frame_saved_pc_nofix): Remove.
8626 (s390_frame_saved_pc): Remove.
8627 (s390_frame_chain): Remove.
8628 (s390_fp_regnum, s390_read_fp): Remove.
8629 (s390_pop_frame_regular, s390_pop_frame): Remove.
8630 (s390_saved_pc_after_call): Remove.
8631 (s390_skip_prologue): Reimplement.
8632 (s390_in_function_epilogue_p): Support long displacements.
8633 (struct s390_unwind_cache): New data structure.
8634 (s390_frame_unwind_cache): New function.
8635 (s390_prologue_frame_unwind_cache): Likewise.
8636 (s390_backchain_frame_unwind_cache): Likewise.
8637 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8638 (s390_frame_unwind): Define.
8639 (s390_frame_sniffer): New function.
8640 (struct s390_pltstub_unwind_cache): New data structure.
8641 (s390_pltstub_frame_unwind_cache): New function.
8642 (s390_pltstub_frame_this_id): Likewise.
8643 (s390_pltstub_frame_prev_register): Likewise.
8644 (s390_pltstub_frame_unwind): Define.
8645 (s390_pltstub_frame_sniffer): New function.
8646 (struct s390_sigtramp_unwind_cache): New data structure.
8647 (s390_sigtramp_frame_unwind_cache): New function.
8648 (s390_sigtramp_frame_this_id): Likewise.
8649 (s390_sigtramp_frame_prev_register): Likewise.
8650 (s390_sigtramp_frame_unwind): Define.
8651 (s390_sigtramp_frame_sniffer): New function.
8652 (s390_frame_base_address, s390_local_base_address): New functions.
8653 (s390_frame_base): Define.
8654 (s390_unwind_pc, s390_unwind_sp): New function.
8655 (s390_push_dummy_call): Use new frame base location.
8656 (s390_unwind_dummy_id): Likewise.
8657 (s390_gdbarch_init): Remove calls to:
8658 set_gdbarch_frameless_function_invocation,
8659 set_gdbarch_deprecated_init_frame_pc,
8660 set_gdbarch_deprecated_frame_chain,
8661 set_gdbarch_deprecated_frame_init_saved_regs,
8662 set_gdbarch_deprecated_pop_frame,
8663 set_gdbarch_deprecated_init_extra_frame_info,
8664 set_gdbarch_deprecated_init_frame_pc_first,
8665 set_gdbarch_deprecated_target_read_fp,
8666 set_gdbarch_deprecated_frame_saved_pc,
8667 set_gdbarch_deprecated_saved_pc_after_call,
8668 set_gdbarch_deprecated_fp_regnum.
8669 Add calls to:
8670 set_gdbarch_in_solib_call_trampoline,
8671 frame_unwind_append_sniffer,
8672 frame_base_set_default,
8673 set_gdbarch_unwind_pc,
8674 set_gdbarch_unwind_sp.
8675 * Makefile.in (s390-tdep.o): Update dependencies.
8676
b0cf273e
JB
8677 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8678 (S390_STACK_FRAME_OVERHEAD): Remove.
8679 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8680 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8681 (s390_promote_integer_argument): Remove.
8682 (s390_cannot_extract_struct_value_address): Remove.
8683 (s390_use_struct_convention, s390_store_struct_return): Remove.
8684 (s390_extract_return_value, s390_store_return_value): Remove.
8685 (s390_return_value_convention, s390_return_value): New functions.
8686 (is_float_singleton): Handle typedefs.
8a1dac83 8687 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
8688 Remove, replace by ...
8689 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8690 s390_function_arg_integer): ... these new functions.
8691 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8692 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8693 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8694 Fill in tdep->abi.
8695 Remove calls to:
8696 set_gdbarch_deprecated_store_struct_return,
8697 set_gdbarch_deprecated_extract_return_value,
8698 set_gdbarch_deprecated_store_return_value,
8699 set_gdbarch_use_struct_convention,
8700 set_gdbarch_extract_struct_value_address,
8701 set_gdbarch_deprecated_pc_in_call_dummy,
8702 set_gdbarch_deprecated_push_arguments,
8703 set_gdbarch_deprecated_save_dummy_frame_tos,
8704 set_gdbarch_deprecated_push_return_address,
8705 set_gdbarch_deprecated_sizeof_call_dummy_words,
8706 set_gdbarch_deprecated_call_dummy_words,
8707 set_gdbarch_deprecated_dummy_write_sp.
8708 Add calls to:
8709 set_gdbarch_push_dummy_call,
8710 set_gdbarch_unwind_dummy_id,
8711 set_gdbarch_return_value.
8a1dac83 8712
e1457d83
JB
8713 * config/s390/nm-linux.h: Update comments.
8714 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8715 (STOPPED_BY_WATCHPOINT): Redefine.
8716 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8717 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8718 (s390_stopped_by_watchpoint): Likewise.
8719 (watch_area_cnt): Remove.
8720 * s390-nat.c: Update comments.
8721 (watch_area): Remove typedef.
8722 Global replace watch_area by struct watch_area.
8723 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 8724 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
8725 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8726 (s390_fix_watch_points): Remove pid argument,
8727 use s390_inferior_tid. Recompute area spanned by watchpoints.
8728 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8729 argument. Reimplement.
8730
d0f54f9d
JB
8731 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8732 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8733 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 8734 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
8735 core-regset.o.
8736 * config/s390/s390x.mt: Remove.
8737 * config/s390/tm-s390.h: Remove.
8738 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8739 (TARGET_ELF64): Remove.
8740 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8741 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8742 s390*-*-* case; always set gdb_target to s390.
8743 * regformats/reg-s390.dat: Remove control registers.
8744 * regformats/reg-s390x.dat: Likewise.
8745 * s390-tdep.h: New file.
8a1dac83 8746 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
8747 Include "inferior.h" and "s390-tdep.h".
8748 Remove private definition of offsetof.
8749 (s390_register_u_addr): Remove.
8750 (regmap_gregset, regmap_fpregset): Define.
8751 (supply_gregset, fill_gregset): Reimplement.
8752 (supply_fpregset, fill_fpregset): Likewise.
8753 (s390_inferior_tid): New function.
8754 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8755 (fetch_inferior_registers, store_inferior_registers): Likewise.
8756 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8757 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8758 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8759 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8760 (struct gdbarch_tdep): Define.
8761 (struct s390_register_info): Define.
8762 (s390_register_info): New variable.
8763 (s390_register_name): Reimplement.
8764 (s390_register_type): New function.
8765 (s390_register_raw_size, s390x_register_raw_size): Remove.
8766 (s390_cannot_fetch_register): Remove.
8767 (s390_register_byte): Remove.
8768 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8769 (s390_dwarf_regmap): New variable.
8770 (s390_dwarf_reg_to_regnum): New function.
8771 (s390_stab_reg_to_regnum): Remove.
8772 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8773 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8774 (s390_convert_register_p): Likewise.
8775 (s390_register_to_value, s390_value_to_register): Likewise.
8776 (s390_register_reggroup_p): Likewise.
8777 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8778 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8779 (s390_supply_regset, s390_regset_from_core_section): New functions.
8780 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8781 (S390_FPR_SIZE): Likewise.
8782 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8783 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8784 (S390_NUM_GPRS): Move here from tm-s390.h.
8785 (S390_NUM_FPRS): Likewise.
8786 (s390_in_function_epilogue_p): New function.
8787 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8788 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8789 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8790 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8791 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8792 Remove calls to:
8793 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
8794 set_gdbarch_deprecated_max_register_virtual_size,
8795 set_gdbarch_deprecated_register_byte,
d0f54f9d 8796 set_gdbarch_cannot_fetch_register,
8a1dac83 8797 set_gdbarch_cannot_store_register,
d0f54f9d
JB
8798 set_gdbarch_deprecated_register_size,
8799 set_gdbarch_deprecated_register_raw_size,
8800 set_gdbarch_deprecated_register_virtual_size,
8801 set_gdbarch_deprecated_register_virtual_type,
8802 set_gdbarch_deprecated_register_bytes.
8803 Add calls to:
8804 set_gdbarch_num_pseudo_regs,
8805 set_gdbarch_register_type,
8806 set_gdbarch_convert_register_p,
8807 set_gdbarch_register_to_value,
8808 set_gdbarch_value_to_register,
8809 set_gdbarch_register_reggroup_p,
8810 set_gdbarch_regset_from_core_section,
8811 set_gdbarch_pseudo_register_read,
8812 set_gdbarch_pseudo_register_write,
8813 set_gdbarch_in_function_epilogue_p.
8814 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8815 (s390_tdep_h): New variable.
8816
8cfe231d
JB
88172004-02-17 Jim Blandy <jimb@redhat.com>
8818
4589a601
JB
8819 * findvar.c (value_from_register): If the type has no length, just
8820 return an acceptable value --- don't report an internal error.
8821
8cfe231d
JB
8822 * stabsread.c (read_type): If we find any type numbers that are
8823 forward references, complain if the references aren't resolved by
8824 the time we're finished reading.
8825 (cleanup_undefined_types): Make error message more appropriate for
8826 a complaint.
8827
5bf0017e
EZ
88282004-02-17 Elena Zannoni <ezannoni@redhat.com>
8829
9d62932d
EZ
8830 * Makefile.in (defs_h): Remove dependency on progress_h.
8831 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8832 progress.h.
8833 * main.c (captured_main): Delete use of START_PROGRESS and
8834 END_PROGRESS.
8835
88362004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8837
5bf0017e
EZ
8838 * objfiles.c (terminate_minimal_symbol_table): Add back
8839 initialization of MSYMBOL_TYPE.
8840
9fc9f5e2
AC
88412004-02-17 David Mosberger <davidm@hpl.hp.com>
8842
8843 Committed by Andrew Cagney.
8844 * Makefile.in (ia64_tdep_h): New macro.
8845 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8846 (ia64-tdep.o): Likewise.
8847 * ia64-tdep.h: New file.
8848 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8849 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8850 (ia64_aix_sigcontext_register_address): Likewise.
8851 (ia64_linux_getunwind_table): Delete declaration.
8852 * ia64-linux-tdep.c: Likewise.
8853
76cd2bd9
CV
88542004-02-17 Corinna Vinschen <vinschen@redhat.com>
8855
8856 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8857 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8858 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8859
634aa483
AC
88602004-02-17 Andrew Cagney <cagney@redhat.com>
8861
8862 * symtab.c (skip_prologue_using_sal): New function.
8863 * symtab.h (skip_prologue_using_sal): Declare.
8864 * frv-tdep.c: Include "symtab.h".
8865 (skip_prologue_using_sal): Delete function.
8866 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8867 * rs6000-tdep.c (refine_prologue_limit): Mention
8868 skip_prologue_using_sal.
8869 * ia64-tdep.c (refine_prologue_limit): Ditto.
8870 * Makefile.in: Update dependencies.
8871
88722004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 8873
39ce7b3f
AC
8874 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8875 START_INFERIOR_TRAPS_EXPECTED.
8876 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8877 START_INFERIOR_TRAPS_EXPECTED.
8878 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8879 Delete macro.
8880 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8881 macro, moved to "nm-osf.h". Update copyright.
8882 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8883 update copyright.
8884
19772a2c
AC
8885 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8886 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8887 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8888 frameless_look_for_prologue.
8889 * frame.h (legacy_frameless_look_for_prologue): Rename
8890 frameless_look_for_prologue.
8891 * gdbarch.h, gdbarch.c: Re-generate.
8892 * sh64-tdep.c (sh64_gdbarch_init): Update.
8893 * sh-tdep.c (sh_gdbarch_init): Update.
8894 * s390-tdep.c (s390_gdbarch_init): Update.
8895 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8896 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8897 * m68k-tdep.c (m68k_gdbarch_init): Update.
8898 (delta68_frame_args_address): Update.
8899 * m32r-tdep.c (m32r_gdbarch_init): Update.
8900 * hppa-tdep.c (hppa_gdbarch_init): Update.
8901 * h8300-tdep.c (h8300_gdbarch_init): Update.
8902 * frv-tdep.c (frv_gdbarch_init): Update.
8903 (frv_frameless_function_invocation): Update.
8904 * cris-tdep.c (cris_gdbarch_init): Update.
8905 (cris_frameless_function_invocation): Update.
8906 * avr-tdep.c (avr_gdbarch_init): Update.
8907 * arm-tdep.c (arm_gdbarch_init): Update.
8908 * stack.c (frame_info): Update, call predicate.
8909 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8910 * frame.c (legacy_get_prev_frame): Update, call predicate..
8911 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8912 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8913 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8914 invocation.
8915 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8916 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8917 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
8918
8919 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8920 function.
8921
7dcaac91
DJ
89222004-02-16 Daniel Jacobowitz <drow@mvista.com>
8923
8924 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8925 initializations.
8926
88289b6e
AC
89272004-02-16 Andrew Cagney <cagney@redhat.com>
8928
8929 * tui/tui-windata.c: Include "gdb_string.h".
8930 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8931 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8932 * Makefile.in: Update dependencies.
8933
9f976b41
DJ
89342004-02-16 Daniel Jacobowitz <drow@mvista.com>
8935
8936 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8937 * infrun.c: Include "gdb_assert.h".
8938 (singlestep_ptid, saved_singlestep_ptid)
8939 (stepping_past_singlestep_breakpoint): New variables.
8940 (resume): Set singlestep_ptid. Check for singlestep thread
8941 hop.
8942 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8943 (handle_inferior_event): Handle singlestep thread hop.
8944
c324d747
AC
89452004-02-16 Andrew Cagney <cagney@redhat.com>
8946
f090b9b1
AC
8947 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8948 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8949 (dwarf2_frame_init_reg): Ditto.
8950
fd33e6cb
AC
8951 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8952 suggested by Joshua Neuheisel
8953
c324d747
AC
8954 * configure.in: Always check for curses, including pdcurses.
8955 Warn, instead of error, when no curses are found. Enable TUI when
8956 curses is available.
8957 * configure: Re-generate.
8958
b66ba949
CV
89592004-02-16 Corinna Vinschen <vinschen@redhat.com>
8960
8961 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8962 sh_sh4_register_convert_to_virtual.
8963 (sh_register_convert_to_raw): Rename from
8964 sh_sh4_register_convert_to_raw.
8965 (sh_pseudo_register_read): Accomodate above name change.
8966 (sh_pseudo_register_write): Ditto.
8967
b58cbbf2
CV
89682004-02-16 Corinna Vinschen <vinschen@redhat.com>
8969
8970 * sh-tdep.c (sh_generic_register_name): Remove.
8971 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8972
5929a910
AC
89732004-02-15 Andrew Cagney <cagney@redhat.com>
8974
4566dfcf
AC
8975 * configure.in (build_warnings): Add -Wunused-function.
8976 * configure: Re-generate.
8977
db11ed55
AC
8978 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8979 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8980
46ac7a5d
AC
8981 * procfs.c (procfs_init_inferior): Assume that
8982 START_INFERIOR_TRAPS_EXPECTED is defined.
8983 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8984 * config/ns32k/tm-nbsd.h: Delete file,
8985 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8986
ba801595
AC
8987 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8988 * config/vax/tm-vax.h: Delete file.
8989
5929a910
AC
8990 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8991 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8992 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8993 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8994 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8995 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8996 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8997
8f22cb90
MK
89982004-02-15 Mark Kettenis <kettenis@gnu.org>
8999
9000 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9001 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9002 (struct dwarf2_frame_ops): New.
9003 (dwarf2_frame_default_init_reg): New function, based on
9004 dwarf2_frame_init_reg.
9005 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9006 (dwarf2_frame_init_reg): Call architecture-specific function.
9007 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9008 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9009 instead of dwarf2_frame_data.
9010 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9011 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9012
8132723e
AC
90132004-02-15 Andrew Cagney <cagney@redhat.com>
9014
046a4708
AC
9015 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9016 register_gdbarch_swap.
9017 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9018 * f-lang.c (_initialize_f_language): Update, use
9019 DEPRECATED_REGISTER_GDBARCH_SWAP.
9020 * remote.c (_initialize_remote): Ditto.
9021 * regcache.c (_initialize_regcache): Ditto.
9022 * parse.c (_initialize_parse): Ditto.
9023 * infrun.c (_initialize_infrun): Ditto.
9024 * mi/mi-main.c (_initialize_mi_main): Ditto.
9025 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 9026
549c1eea
AC
9027 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9028 poking .cacheable directly.
9029 * symfile.c (symfile_bfd_open): Ditto.
9030
0c0b39de
AC
9031 * Makefile.in: Update all dependencies.
9032
8132723e
AC
9033 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9034 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9035 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9036 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9037 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 9038
b9d26eb9
AC
90392004-02-14 Andrew Cagney <cagney@redhat.com>
9040
8e1f669a
AC
9041 * arch-utils.c (legacy_convert_register_p): Check
9042 DEPRECATED_REGISTER_CONVERTIBLE_P.
9043 * findvar.c (value_of_register): Ditto.
9044
cd0bfa36
AC
9045 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9046 * gdbarch.h, gdbarch.c: Re-generate.
9047 * arch-utils.c (deprecated_register_convertible_not): Delete.
9048 * arch-utils.h (deprecated_register_convertible_not): Delete.
9049 * mi/mi-main.c (get_register): Update. Update copyright.
9050 * infcmd.c (default_print_registers_info): Update.
9051
b9d26eb9
AC
9052 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9053 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9054 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 9055 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
9056 * frame.c (deprecated_get_next_frame_hack): Delete function.
9057 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9058 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9059 Update.
9060 * infcall.c (call_function_by_hand): Update.
9061
9ab9195f
EZ
90622004-02-14 Elena Zannoni <ezannoni@redhat.com>
9063
9064 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 9065 from here...
9ab9195f
EZ
9066 * objfiles.c (init_entry_point_info, entry_point_address):..to
9067 here.
9068 * symfile.h (init_entry_point_info, entry_point_address): Remove
9069 prototypes.
9070 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 9071 prototypes.
9ab9195f
EZ
9072 * cris-tdep.c: Remove include of symfile.h. Add include of
9073 objfiles.h.
9074 * infcall.c: Ditto.
9075 * mcore-tdep.c: Ditto.
9076 * mn10300-tdep.c: Ditto.
9077 * sh64-tdep.c: Ditto.
9078 * v850-tdep.c: Ditto.
9079 * arm-tdep.c: Remove include of symfile.h.
9080 * blockframe.c: Ditto.
9081 * coffread.c: Ditto.
9082 * dbxread.c: Ditto.
9083 * dwarf2read.c: Ditto.
9084 * dwarfread.c: Ditto.
8a1dac83 9085 * frv-tdep.c: Ditto.
9ab9195f
EZ
9086 * ia64-tdep.c: Ditto.
9087 * mdebugread.c: Ditto.
9088 * mipsread.c: Ditto.
8a1dac83 9089 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
9090 * s390-tdep.c: Ditto.
9091 * sh-tdep.c: Ditto.
8a1dac83 9092 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
9093 * gdbarch.sh: Remove include of symfile.h.
9094 * gdbarch.c: Regenerate.
9095 * solib-irix.c (enable_break): Use entry_point_address().
9096 Add comment about include file.
9097 * xcoffread.c: Add comment about include file.
8a1dac83
RM
9098 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9099 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9100 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9101 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
9102 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9103
c4c5b7ba
AC
91042004-02-13 Andrew Cagney <cagney@redhat.com>
9105
9106 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9107 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9108 copyright.
9109 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9110
3e7879de
FF
91112004-02-12 Fred Fish <fnf@redhat.com>
9112
9113 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9114 set_gdbarch_store_return_value.
9115
6a7760b6
AC
91162004-02-12 Andrew Cagney <cagney@redhat.com>
9117
9118 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9119 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9120 (interrupt_query): Ditto.
9121 (ofunc): Delete unused variable.
9122 * cris-tdep.c (cris_abi): Delete unused function.
9123 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9124 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9125 (cris_get_asr_quick_shift_steps): Ditto.
9126 (cris_skip_prologue_frameless_p): Ditto.
9127 * arm-tdep.c (arm_push_return_address): Delete unused function.
9128 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9129 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9130 * s390-tdep.c (s390_function_start): Delete unused function.
9131
31687c3c
AC
91322004-02-12 Andrew Cagney <cagney@redhat.com>
9133
9134 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9135 gdbarch.h, gdbarch.c: Re-generate.
9136 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9137 to generic_prologue_frameless_p.
9138 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9139 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9140
6de918a6
DJ
91412004-02-11 Daniel Jacobowitz <drow@mvista.com>
9142
9143 * mips-linux-tdep.c: Include "frame.h".
9144 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9145 (mips_linux_skip_resolver): New functions.
9146 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9147 and set_gdbarch_in_solib_call_trampoline.
9148 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9149 to after set_gdbarch_in_solib_return_trampoline. Only set the
9150 solib hooks to mips16 functions if the OS ABI is unknown.
9151 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9152 including "config/tm-linux.h".
9153 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9154 * Makefile.in (mips-linux-tdep.o): Update.
9155
87b3ede8
DC
91562004-02-11 David Carlton <carlton@kealia.com>
9157
9158 * linespec.c (decode_compound): Only look for a class symbol when
9159 considering all but the rightmost component.
9160
5979bc46
AC
91612004-02-11 Andrew Cagney <cagney@redhat.com>
9162
9163 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9164 abi code are are separatly grouped.
9165
5867a2fb
AC
91662004-02-11 Andrew Cagney <cagney@redhat.com>
9167
9168 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9169 * gdbarch.h, gdbarch.c: Re-generate.
9170 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9171 * v850-tdep.c (v850_gdbarch_init): Update.
9172 * sh64-tdep.c (sh64_gdbarch_init): Update.
9173 * sh-tdep.c (sh_gdbarch_init): Update.
9174 * s390-tdep.c (s390_gdbarch_init): Update.
9175 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9176 * mips-tdep.c (mips_gdbarch_init): Update.
9177 * mcore-tdep.c (mcore_gdbarch_init): Update.
9178 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9179 * m32r-tdep.c (m32r_gdbarch_init): Update.
9180 * ia64-tdep.c (ia64_gdbarch_init): Update.
9181 * hppa-tdep.c (hppa_gdbarch_init): Update.
9182 * h8300-tdep.c (h8300_gdbarch_init): Update.
9183 * frv-tdep.c (frv_gdbarch_init): Update.
9184 * d10v-tdep.c (d10v_gdbarch_init): Update.
9185 * cris-tdep.c (cris_gdbarch_init): Update.
9186 * avr-tdep.c (avr_gdbarch_init): Update.
9187 * arm-tdep.c (arm_gdbarch_init): Update.
9188 * alpha-tdep.c (alpha_gdbarch_init): Update.
9189
026a72f8
CV
91902004-02-11 Corinna Vinschen <vinschen@redhat.com>
9191
9192 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9193 comma.
9194 (sh_sh4al_dsp_register_name): Ditto.
9195
3903d437
AC
91962004-02-10 Andrew Cagney <cagney@redhat.com>
9197
9198 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9199 (mips_init_frame_pc_first): Delete function.
9200 (mips_frame_saved_pc): Delete function.
9201 (mips_frame_chain): Delete function.
9202 (mips_init_extra_frame_info): Delete function.
9203 (mips_xfer_register): Delete unused variable "reg".
9204 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9205 (mips_n32n64_return_value): Delete unused variable "reg".
9206 (mips_n32n64_return_value): Delete unused variable "pos".
9207 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9208 (mips_o32_return_value): Delete unused variable "pos".
9209 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9210 (mips_print_fp_register): Delete unused variable "namelen"
9211 (mips_print_fp_register): Delete unused variable "flt2"
9212 (get_frame_pointer): Delete function.
9213 (cached_proc_desc): Delete static variable.
9214 (mips_pop_frame): Delete function.
9215 (mips_find_saved_regs): Delete function.
9216 (mips_get_saved_register): Delete function.
9217 (mips_saved_pc_after_call): Delete function.
9218 (SIGFRAME_BASE): Delete macro.
9219 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9220 (SIGFRAME_PC_OFF): Delete macro.
9221 (SIGFRAME_REGSAVE_OFF): Delete macro.
9222 (mips_dump_tdep): Do not print deleted macro definitions.
9223
b9fb98bd
AC
92242004-02-10 Andrew Cagney <cagney@redhat.com>
9225
9226 * Makefile.in (SFILES): Remove explictly listed tui files.
9227 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9228
78ced177 92292004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 9230
78ced177
JJ
9231 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9232 to use paddr functions to format ia64 addresses and long values.
9233 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9234 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9235 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9236 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9237 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9238
6a83354a
AC
92392004-02-10 Andrew Cagney <cagney@redhat.com>
9240
9241 * defs.h: Do not include "tui.h".
9242 * gdb_curses.h: New file.
9243 * tui/tui-hooks.h: New file.
9244 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9245 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9246 (tui_initialize_io): Delete declaration.
9247 (tui_initialize_readline: Delete redundant declaration.
9248 (struct tui_point): Delete definition.
9249 * tui/tui-data.h (struct tui_point): Define.
9250 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9251 * utils.c: Include "tui/tui.h".
9252 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9253 * printcmd.c [TUI]: Include "tui/tui.h".
9254 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9255 * tui/tui-command.c: Include "gdb_curses.h".
9256 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9257 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9258 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9259 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9260 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9261 * Makefile.in: Update all dependencies.
9262 (tui_hooks_h, gdb_curses_h): Define.
9263 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9264
997470ef
EZ
92652004-02-10 Elena Zannoni <ezannoni@redhat.com>
9266
9267 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9268 auxf2. Add comments about some other rarely used fields.
9269
4ff2cc4d
AC
92702004-02-10 Andrew Cagney <cagney@redhat.com>
9271
9272 * Makefile.in (init.c): Fix script removing duplicates. Problem
9273 reported by Peter Schauer.
9274
1ab21617
EZ
92752004-02-09 Elena Zannoni <ezannoni@redhat.com>
9276
9277 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9278 obstack_specify_allocation.
9279 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 9280 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
9281 (allocate_rt_common_objfile): Ditto.
9282 * symfile.c (reread_symbols): Ditto.
9283 * gdb_obstack.h: Add comment.
9284
17763fd9
EZ
92852004-02-09 Elena Zannoni <ezannoni@redhat.com>
9286
9287 * linespec.c (decode_line_1, locate_first_half)
9288 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9289 commented out code.
9290
ec5cdd75
DJ
92912004-02-09 Daniel Jacobowitz <drow@mvista.com>
9292
9293 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9294 obstack_free.
9295
43b54b88
AC
92962004-02-09 Andrew Cagney <cagney@redhat.com>
9297
9298 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9299 fails, try find_pc_section. Fix PR c++/1267.
9300 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9301 instead of find_pc_mapped_section.
9302 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9303 not default to the section containing PC. Fix PR symtab/1519.
9304
edfae063
AC
93052004-02-09 Andrew Cagney <cagney@redhat.com>
9306
9307 * Makefile.in (mips-tdep.o): Update dependencies.
9308 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9309 "trad-frame.h".
9310 (mips_unwind_pc): Return the pseudo PC register.
9311 (mips_unwind_dummy_id): New function.
9312 (mips16_fetch_instruction): New function.
9313 (mips32_fetch_instruction): New function.
9314 (struct mips_frame_cache): Define.
9315 (mips_mdebug_frame_cache): New function.
9316 (mips_mdebug_frame_this_id): New function.
9317 (mips_mdebug_frame_prev_register): New function.
9318 (mips_mdebug_frame_unwind): Define.
9319 (mips_mdebug_frame_sniffer): New function.
9320 (mips_mdebug_frame_base_address): New function.
9321 (mips_mdebug_frame_base): Define.
9322 (mips_mdebug_frame_base_sniffer): New function.
9323 (mips_gdbarch_init): Append unwind and base sniffers. Set
9324 unwind_dummy_id.
9325
defc864c
AC
93262004-02-08 Andrew Cagney <cagney@redhat.com>
9327
6764ddad
AC
9328 * frame.c: Print both the register number and name.
9329
defc864c
AC
9330 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9331 and a sed into a single sed. Make .c and .o patterns more robust.
9332 (OBS): Delete.
9333 (INIT_FILES): Replace OBS with COMMON_OBS.
9334 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9335
645d6d10
MK
93362004-02-08 Mark Kettenis <kettenis@gnu.org>
9337
9338 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9339 the PT_WCOOKIE request.
9340
23e3c3fc
AC
93412004-02-08 Andrew Cagney <cagney@redhat.com>
9342
58dfe9ff
AC
9343 * mips-tdep.c (mips_unwind_pc): New function.
9344 (mips_gdbarch_init): Set mips_unwind_pc.
9345
1152e35e
AC
9346 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9347 (get_frame_id): Allow the UNKNOWN_FRAME.
9348 (frame_register_unwind, get_frame_type): Ditto.
9349
31b75dbf
AC
9350 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9351 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9352 unwind_dummy_id indicates a legacy frame.
9353
3483b318
AC
9354 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9355 * configure: Re-generate.
9356
23e3c3fc
AC
9357 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9358 methods.
9359
33f8ca73
AC
93602004-02-08 Andrew Cagney <cagney@redhat.com>
9361
9362 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9363 makefile macro.
9364 * configure: Re-generate.
9365 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9366 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9367 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9368 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9369 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9370 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9371 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9372 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9373 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9374 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9375
6ba8e26f 93762004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 9377
20d286a5
AC
9378 * Makefile.in: Update all dependencies.
9379
d836ee13
AC
9380 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9381 * configure: Re-generate.
9382 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9383 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9384 (COMMON_OBS): Add "main.o" and "annotate.o".
9385 (ANNOTATE_OBS): Delete.
9386 (OBS): Remove ANNOTATE_OBS.
9387 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9388 CONFIG_INITS.
9389 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9390 against CONFIG_OBS and "main.o".
9391 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9392 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9393
d02c80cd
AC
9394 * tui/tui-command.c: Include "gdb_string.h", delete register
9395 attribute, use ISO-C function signatures.
9396 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9397 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9398 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9399 * tui/tui.c: Ditto.
6ba8e26f
AC
9400
9401 * tui/tui-command.c: Change variable and function names to lower
9402 case.
9403 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9404 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9405 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9406 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9407 * tui/tui-winsource.c, tui/tui.c: Ditto.
9408
4a146b47
EZ
94092004-02-07 Elena Zannoni <ezannoni@redhat.com>
9410
9411 * buildsym.c (free_pending_blocks, finish_block)
9412 (record_pending_block, make_blockvector, end_symtab): Replace
9413 symbol_obstack with objfile_obstack.
8a1dac83 9414 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 9415 (coff_read_enum_type): Ditto.
8a1dac83 9416 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 9417 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 9418 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
9419 (dwarf2_symbol_mark_computed): Ditto.
9420 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9421 * elfread.c (elf_symtab_read): Ditto.
9422 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9423 (hpread_read_enum_type, hpread_read_function_type)
9424 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9425 Ditto.
8a1dac83 9426 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 9427 (java_link_class_type): Ditto.
8a1dac83 9428 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
9429 (new_symbol): Ditto.
9430 * minsyms.c (install_minimal_symbols): Ditto.
9431 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9432 (terminate_minimal_symbol_table): Replace symbol_obstack with
9433 objfile_obstack.
9434 (free_objfile): Remove freeing of symbol_obstack.
9435 * objfiles.h: Remove symbol_obstack field.
9436 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9437 objfile_obstack.
9438 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9439 symbol_obstack.
9440 (solib_add_common_symbols): Replace symbol_obstack with
9441 objfile_obstack.
9442 * somsolib.c (som_solib_add): Ditto.
9443 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9444 (common_block_start, common_block_end): Ditto.
9445 * symfile.c (reread_symbols): Remove freeing and init of
9446 symbol_obstack.
9447 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9448 * symfile.h: Update comment.
9449 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9450 stats printing.
9451 * symtab.c (symbol_set_names): Replace symbol_obstack with
9452 objfile_obstack.
9453 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9454 Update comments.
9455 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9456 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9457 objfile_obstack.
9458
6d012f14
AC
94592004-02-07 Andrew Cagney <cagney@redhat.com>
9460
9461 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9462 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9463 fields and variables.
9464 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9465 (m_beInvisible): Delete macro.
9466 * tui/tui-data.h: Fix case case fields and variables.
9467 (m_genWinPtrIsNull): Delete macro.
9468 (tui_win_list): Rename winList.
9469 (TUI_SRC_WIN): Rename srcWin.
9470 (TUI_DISASM_WIN): Rename disassemWin.
9471 (TUI_DATA_WIN): Rename dataWin.
9472 (TUI_CMD_WIN): Rename cmdWin.
9473 (m_genWinPtrNotNull): Delete macro.
9474 (m_winPtrIsNull): Delete macro.
9475 (m_winPtrNotNull): Delete macro.
9476 (tui_win_is_source_type): Replace m_winIsSourceType
9477 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9478 (tui_win_has_locator): Replace m_hasLocator.
9479 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9480 m_setWinHighlightOff.
9481 * tui/tui-data.c: Update references.
9482 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9483 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9484 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9485 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9486 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9487 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9488 * tui/tui-winsource.c, tui/tui.c: Ditto.
9489
7d34766b
MK
94902004-02-07 Mark Kettenis <kettenis@gnu.org>
9491
1c800673
MK
9492 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9493 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9494 StackGhost.
9495
7d34766b
MK
9496 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9497 variable `i6' to `i7'.
9498 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9499
22940a24
AC
95002004-02-07 Andrew Cagney <cagney@redhat.com>
9501
9502 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9503 (TuiPoint, TuiPointPtr): Ditto.
9504 (TuiStatus, TuiStatusPtr): Ditto.
9505 (TuiWinType, TuiWinTypePtr): Ditto.
9506 (struct tui_point): Rename _TuiPoint.
9507 (tui_get_low_disassembly_address): Rename
9508 tuiGetLowDisassemblyAddress.
9509 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9510 (tuiFree): Delete declaration.
9511 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9512 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9513 * tui/tui.c (tuiFree): Delete function.
9514 * cli/cli-cmds.c (disassemble_command): Update references.
9515 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9516 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9517 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9518 * tui/tui-winsource.c: Ditto.
9519
8b92e4d5
EZ
95202004-02-07 Elena Zannoni <ezannoni@redhat.com>
9521
9522 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9523 coffstab_build_psymtabs, elfstab_build_psymtabs)
9524 (stabsect_build_psymtabs): Replace psymbol_obstack with
9525 objfile_obstack.
9526 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9527 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9528 Ditto.
9529 * dwarfread.c (scan_compilation_units): Ditto.
9530 * elfread.c (elfstab_offset_sections): Ditto.
9531 * hppa-tdep.c (read_unwind_info): Ditto.
9532 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9533 (hpread_end_psymtab): Ditto.
9534 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9535 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9536 Ditto.
9537 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 9538 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
9539 (build_objfile_section_table): Ditto.
9540 (allocate_objfile): Remove init of psymbol_obstack.
9541 (free_objfile): Remove freeing of psymbol_obstack.
9542 * objfiles.h (struct objfile): Remove field
9543 psymbol_obstack. Update comments.
9544 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9545 psymbol_obstack with objfile_obstack.
9546 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9547 psymbol_obstack.
9548 * somread.c (som_symfile_offsets, init_import_symbols)
9549 (init_export_symbols): Replace psymbol_obstack with
9550 objfile_obstack.
9551 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9552 * symfile.c (default_symfile_offsets, syms_from_objfile)
9553 (reread_symbols): Remove freeing and init of psymbol_obstack.
9554 (cashier_psymtab): Update comment.
9555 * symmisc.c (print_objfile_statistics): Don't report stats for
9556 psymbol obstack.
9557 * symtab.h (struct general_symbol_info, struct partial_symtab):
9558 Update comments.
9559 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9560 (xcoff_symfile_offsets): Replace psymbol_obstack with
9561 objfile_obstack.
9562
b99607ea
EZ
95632004-02-07 Elena Zannoni <ezannoni@redhat.com>
9564
9565 * objfiles.h (struct objfile): Add objfile_obstack field.
9566 Remove type_obstack field.
9567
9568 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9569 read_structure_scope read_enumeration, new_symbol): Replace
9570 type_obstack with objfile_obstack.
9571 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 9572 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
9573 (lookup_fundamental_type): Ditto.
9574 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
9575 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9576 (hpread_read_doc_function_type, hpread_read_struct_type)
9577 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 9578 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 9579 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
9580 (java_link_class_type): Ditto.
9581 * mdebugread.c (parse_type): Ditto.
9582 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9583 * solib-sunos.c (solib_add_common_symbols): Ditto.
9584 * stabsread.c (define_symbol, read_type, read_member_functions,
9585 read_cpp_abbrev, read_one_struct_field): Ditto.
9586 * symfile.c (reread_symbols): Ditto.
9587 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 9588
2a8854a7
AC
95892004-02-07 Andrew Cagney <cagney@redhat.com>
9590
9591 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9592 (tui_exec_info_content): Rename TuiExecInfoContent.
9593 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9594 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9595 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9596 (TuiList, TuiListPtr): Ditto.
9597 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9598 (TuiDataType, TuiDataTypePtr): Ditto.
9599 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9600 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9601 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9602 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9603 (TuiDataElement, TuiDataElementPtr): Ditto.
9604 (TuiWinElement, TuiWinElementPtr): Ditto.
9605 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9606 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9607 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9608 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9609 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9610 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9611 * tui/tui-command.c, tui/tui-data.c: Update references.
9612 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9613 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9614 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9615 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 9616
05cbe71a
MK
96172004-02-07 Mark Kettenis <kettenis@gnu.org>
9618
9619 * dwarf2-frame.h: Update copyright.
9620 (enum dwarf2_frame_reg_rule): New.
9621 (struct dwarf2_frame_state_reg): New.
9622 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9623 * dwarf2-frame.c: Update copyright.
9624 (enum dwarf2_reg_rule): Remove.
9625 (struct dwarf2_frame_state): Remove defenition of `struct
9626 dwarf2_frame_state_reg'.
9627 (read_reg): Call get_frame_arch to get the architecture instead of
9628 using CURRENT_GDBARCH.
9629 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9630 DWARF2_FRAME_.
9631 (dwarf2_frame_init_reg): New function.
9632 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9633 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9634 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9635 tags with DWARF2_FRAME_.
9636 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9637 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9638 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9639
ec7d9e56
AC
96402004-02-06 Andrew Cagney <cagney@redhat.com>
9641
dd1abb8c
AC
9642 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9643 (enum tui_data_type): Rename _TuiDataType.
9644 (struct tui_layout_def): Rename _TuiLayoutDef.
9645 (struct tui_source_element): Rename _TuiSourceElement.
9646 (struct tui_data_element): Rename _TuiDataElement.
9647 (struct tui_command_element): Rename _TuiCommandElement.
9648 (struct tui_locator_element): Rename _TuiLocatorElement.
9649 (union tui_which_element): Define.
9650 (struct tui_win_element): Rename _TuiWinElement.
9651 (struct tui_data_info): Rename _TuiDataInfo.
9652 (struct tui_source_info): Rename _TuiSourceInfo.
9653 (struct tui_command_info): Rename _TuiCommandInfo.
9654 (tui_initialize_static_data): Rename initializeStaticData.
9655 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9656 (tui_alloc_win_info): Rename allocWinInfo.
9657 (tui_init_generic_part): Rename initGenericPart.
9658 (tui_init_win_info): Rename initWinInfo.
9659 (tui_alloc_content): Rename allocContent.
9660 (tui_add_content_elements): Rename addContentElements.
9661 (tui_init_content_element): Rename initContentElement.
9662 (tui_free_window): Rename freeWindow.
9663 (tui_free_win_content): Rename freeWinContent.
9664 (tui_free_data_content): Rename freeDataContent.
9665 (tui_free_all_source_wins_content): Rename
9666 freeAllSourceWinsContent.
9667 (tui_del_window): Rename tuiDelWindow.
9668 (tui_del_data_windows): Rename tuiDelDataWindows.
9669 (tui_partial_win_by_name): Rename partialWinByName.
9670 (tui_win_name): Rename winName.
9671 (tui_current_layout): Rename currentLayout.
9672 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9673 (tui_term_height): Rename termHeight.
9674 (tui_set_term_height_to): Rename setTermHeightTo.
9675 (tui_term_width): Rename termWidth.
9676 (tui_set_term_width_to): Rename setTermWidthTo.
9677 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9678 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9679 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9680 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9681 (tui_source_windows): Rename sourceWindows.
9682 (tui_clear_source_windows): Rename clearSourceWindows.
9683 (tui_clear_source_windows_detail): Rename
9684 clearSourceWindowsDetail.
9685 (tui_clear_win_detail): Rename clearWinDetail.
9686 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9687 (tui_default_tab_len): Rename tuiDefaultTabLen.
9688 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9689 (tui_win_with_focus): Rename tuiWinWithFocus.
9690 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9691 (tui_layout_def): Rename tuiLayoutDef.
9692 (tui_win_resized): Rename tuiWinResized.
9693 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9694 (tui_next_win): Rename tuiNextWin.
9695 (tui_prev_win): Rename tuiPrevWin.
9696 (tui_add_to_source_windows): Rename addToSourceWindows.
9697 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9698 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9699 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9700 * tui/tui.c, tui/tui-data.c: Ditto.
9701 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9702 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9703
a358af15
AC
9704 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9705 (struct symtab): Declare.
9706 (tui_set_source_content): Rename tuiSetSourceContent.
9707 (tui_show_symtab_source): Rename tuiShowSource.
9708 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9709 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9710 * tui/tui-source.c: Update copyright. Update references.
9711 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9712 * tui/tui-stack.c: Update references.
9713
a21fcd8f
AC
9714 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9715 (struct tui_win_info): Declare.
9716 (tui_scroll_forward): Rename tuiScrollForward.
9717 (tui_scroll_backward): Rename tuiScrollBackward.
9718 (tui_scroll_left): Rename tuiScrollLeft.
9719 (tui_scroll_right): Rename tuiScrollRight.
9720 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9721 (tui_resize_all): Rename tuiResizeAll.
9722 (tui_refresh_all_win): Rename tuiRefreshAll.
9723 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9724 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9725 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9726 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9727
edae1ccf
AC
9728 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9729 (tui_erase_data_content): Rename tuiEraseDataContent.
9730 (tui_display_all_data): Rename tuiDisplayAllData.
9731 (tui_check_data_values): Rename tuiCheckDataValues.
9732 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9733 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9734 (tui_first_data_element_no_in_line): Rename
9735 tuiFirstDataElementNoInLine.
9736 (tui_delete_data_content_windows): Rename
9737 tuiDeleteDataContentWindows.
9738 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9739 (tui_display_data_from): Rename tuiDisplayDataFrom.
9740 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9741 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9742 * tui/tui-win.c, tui/tui-regs.c: Update references.
9743 * tui/tui-layout.c, tui/tui.c: Update references.
9744
ec7d9e56
AC
9745 * tui/tui-wingeneral.h: Update copyright.
9746 (m_allBeVisible): Delete macro.
8a1dac83 9747 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
9748 (struct tui_gen_win_info): Declare.
9749 (struct tui_win_info): Declare.
9750 (tui_unhighlight_win): Rename unhighlightWin.
9751 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9752 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9753 (tui_make_window): Rename makeWindow.
9754 (tui_copy_win): Rename copyWin.
9755 (tui_box_win): Rename boxWin.
9756 (tui_highlight_win): Rename highlightWin.
9757 (tui_check_and_display_highlight_if_needed): Rename
9758 checkAndDisplayHighlightIfNeeded.
9759 (tui_refresh_all): Rename refreshAll.
9760 (tui_delete_win): Rename tuiDelwin.
9761 (tui_refresh_win): Rename tuiRefreshWin.
9762 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9763 (tui_make_visible, tui_make_invisible): New functions.
9764 (tui_make_all_visible, tui_make_all_invisible): New functions.
9765 (make_all_visible): Rename makeAllVisible.
9766 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9767 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9768 * tui/tui-windata.c, tui/tui-win.c: Update references.
9769 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9770 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9771
1e52e2eb
MK
97722004-02-06 Mark Kettenis <kettenis@gnu.org>
9773
9774 * proc-api.c (write_with_trace): Initialize local variable to
9775 silence compiler warning.
9776
f80bda8e
AC
97772004-02-06 Andrew Cagney <cagney@redhat.com>
9778
9779 * tui/tui-source.h: Do not include "defs.h".
9780 (struct tui_win_info): Declare.
9781 (tui_set_source_content_nil): Declare.
9782 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9783 (union tui_line_or_address): Rename _TuiLineOrAddress.
9784 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9785 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9786 (tui_update_source_window_as_is): Rename
9787 tuiUpdateSourceWindowAsIs.
9788 (tui_update_source_windows_with_addr): Rename
9789 tuiUpdateSourceWindowsWithAddr.
9790 (tui_update_source_windows_with_line): Rename
9791 tuiUpdateSourceWindowsWithLine.
9792 (tui_clear_source_content): Rename tuiClearSourceContent.
9793 (tui_erase_source_content): Rename tuiEraseSourceContent.
9794 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9795 (tui_show_source_content): Rename tuiShowSourceContent.
9796 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9797 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9798 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9799 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9800 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9801 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9802 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9803 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9804 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9805 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9806 (struct tui_win_info): Declare.
9807 * tui/tui-stack.c: Update references.
9808 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9809 * tui/tui-win.c, tui/tui-source.c: Ditto.
9810 * tui/tui.c, tui/tui-disasm.c: Ditto.
9811
9fbfb822
MK
98122004-02-06 Mark Kettenis <kettenis@gnu.org>
9813
9814 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9815 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9816
03cebad2
MK
98172004-02-05 Mark Kettenis <kettenis@gnu.org>
9818
9819 * infrun.c (handle_inferior_event): Allow for breakpoint
9820 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9821 and SIGEMT. Update comments.
9822 * NEWS (Revised SPARC target): Mention support for non-executable
9823 stack.
9824
290281b1
MK
98252004-02-04 Mark Kettenis <kettenis@gnu.org>
9826
9827 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9828 * inftarg.c: Update copyright year.
9829 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9830 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9831 (sparc_xfer_wcookie): New function.
9832 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9833 * Makefile.in (sparc-nat.o): Update dependencies.
9834 * config/sparc/nm-nbsd.h: Include "target.h".
9835 (NATIVE_XFER_WCOOKIE): New define.
9836 (sparc_xfer_wcookie): New prototype.
9837
212161df
AC
98382004-02-04 Andrew Cagney <cagney@redhat.com>
9839
9840 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9841 SYSCALL_TRAP function.
9842 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9843
6e4c6c91
DJ
98442004-02-04 Andrew Cagney <cagney@redhat.com>
9845 Daniel Jacobowitz <drow@mvista.com>
9846
9847 * objfiles.h: Delete comments refering to inside_entry_func and
9848 DEPRECATED_FRAME_CHAIN_VALID.
9849 * defs.h (inside_entry_func): Update prototype..
9850 * blockframe.c (inside_entry_func): Rename to
9851 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9852 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9853
cae688ec
JJ
98542004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9855
9856 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9857 outside of #ifdef SOLIB_ADD region.
9858 (do_restore_lang_radix_cleanup): Ditto.
9859 (resolve_pending_breakpoint): Ditto.
9860
19217676
AC
98612004-02-03 Andrew Cagney <cagney@redhat.com>
9862
9863 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9864 (process_note_abi_tag_sections): Delete unused function.
9865 (ia64_read_fp): Delete unused function.
9866 (gdbarch_extract_struct_value_address): Delete declaration.
9867
876753be
AC
98682004-02-02 Andrew Cagney <cagney@redhat.com>
9869
9870 * vax-tdep.c (vax_frame_chain): Delete call to
9871 deprecated_inside_entry_file.
9872 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9873
d4f10bf2
MK
98742004-02-02 Mark Kettenis <kettenis@gnu.org>
9875
9876 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9877 column that's "empty" or "same value" when eliminating REG_RA
9878 rules.
9879
cae688ec
JJ
98802004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9881
9882 * NEWS: Add information about new pending breakpoint support.
9883
0101ce28
JJ
98842004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9885
9886 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9887 and pending fields for pending breakpoint support.
9888 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9889 (condition_command): Only parse condition if not a pending
9890 breakpoint.
9891 (print_one_breakpoint): Add support for pending breakpoints.
9892 (describe_other_breakpoints): Add checks to verify we are not
9893 dealing with pending breakpoints.
9894 (check_duplicates): Don't check pending breakpoints.
9895 (set_raw_breakpoint): Initialize pending flag.
9896 (do_restore_lang_radix_cleanup): New cleanup routine.
9897 (resolve_pending_breakpoint): New function.
9898 (re_enable_breakpoints_in_shlibs): Try and resolve any
9899 pending breakpoints via resolve_pending_breakpoint.
9900 (mention): Add pending breakpoint support.
9901 (parse_breakpoint_sals): Add new parameter to pass to
9902 decode_line_1 to indicate silent errors when files or functions
9903 are not found. Change all callers.
9904 (do_captured_parse_breakpoint): New function.
9905 (break_command_1): Change prototype to return an rc value and to
9906 take an optional pending breakpoint pointer. Support creating
9907 a pending breakpoint if a "not found" form of error occurs when
9908 parsing the breakpoint. Also support resolving an existing pending
9909 breakpoint and be silent if the resolution fails.
9910 (create_breakpoints): Change prototype to take pending breakpoint
9911 pointer. When resolving a pending breakpoint, use the new pointer
9912 to provide a conditional or commands added by the end-user.
9913 (delete_breakpoint): Add appropriate check for pending.
9914 (breakpoint_re_set_one): Ditto.
9915 (do_enable_breakpoint): Ditto.
9916
8d577d32
DC
99172004-02-02 David Carlton <carlton@kealia.com>
9918
9919 * valops.c (enum oload_classification): New.
9920 (find_overload_match): Break implementation into separate
9921 functions; delete #if 0'd code; look for symbols within
9922 namespaces.
9923 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9924 (find_oload_champ,oload_method_static,classify_oload_match): New.
9925 * cp-support.h: Add declaration for cp_func_name; update
9926 declaration for make_symbol_overload_list.
9927 * cp-support.c (cp_func_name): New.
9928 (overload_list_add_symbol): Fix comment, use
9929 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9930 (make_symbol_overload_list): Take a function name and a namespace
9931 instead of a symbol; change implementation.
9932 (make_symbol_overload_list_using): New.
9933 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9934
22e8e3c7
FF
99352004-02-02 Fred Fish <fnf@redhat.com>
9936
9937 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 9938 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
9939 * remote-sim.c (gdb_os_write_stderr): Write output to
9940 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9941 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 9942 gdb_stderr stream and update copyright years.
22e8e3c7 9943
6b753f60
DJ
99442004-02-01 Daniel Jacobowitz <drow@mvista.com>
9945
9946 * Makefile.in (mips-linux-nat.o): Update dependencies.
9947 * mips-linux-nat.c: Include mips-tdep.h.
9948
99492004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
9950
9951 * sol-thread.c (sol_thread_xfer_partial): New function.
9952 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9953 (init_sol_core_ops): Likewise.
9954
9955 * procfs.c (procfs_xfer_partial): New function.
9956 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9957 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9958
9959 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9960 procfs_xfer_auxv function.
9961
9962 * procfs.c (procfs_make_note_section): If we can read
9963 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9964 * linux-proc.c (linux_make_note_section): Likewise.
9965
9966 * auxv.h: New file.
9967 * auxv.c: New file.
9968 * Makefile.in (auxv_h): New variable.
9969 (COMMON_OBS): Add auxv.o here.
9970 (auxv.o): New target.
9971
9972 * corelow.c (core_xfer_partial): New function.
9973 (init_core_ops): Use it for core_ops.to_xfer_partial.
9974
9975 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9976 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9977 macro if that is defined.
9978
fa5281d0
DJ
99792004-02-01 Daniel Jacobowitz <drow@mvista.com>
9980
9981 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9982 and check the specified thread for each breakpoint.
9983 * breakpoint.h (bpstat_stop_status): Update prototype.
9984 * infrun.c (handle_inferior_event): Update calls to
9985 bpstat_stop_status.
9986
26ee262d
DJ
99872004-02-01 Daniel Jacobowitz <drow@mvista.com>
9988
9989 * Makefile.in (cli-cmds.o): Add $(readline_h).
9990
d9b52655
DJ
99912004-02-01 Daniel Jacobowitz <drow@mvista.com>
9992
9993 * cli/cli-cmds.c: Include readline.h.
9994 (complete_command): Pass the start of the last word to
9995 complete_line.
9996
9709f61c
DJ
99972004-01-31 Daniel Jacobowitz <drow@mvista.com>
9998
9999 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10000 argument, and change first argument to a CORE_ADDR.
10001 * breakpoint.h (bpstat_stop_status): Update prototype.
10002 * infrun.c (adjust_pc_after_break): Add a new comment.
10003 (handle_inferior_event): Update calls to bpstat_stop_status.
10004
4f1280bb
DJ
100052004-01-31 Daniel Jacobowitz <drow@mvista.com>
10006
10007 * breakpoint.h: Update copyright years.
10008
4fa8626c
DJ
100092004-01-31 Daniel Jacobowitz <drow@mvista.com>
10010
10011 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10012 (bpstat_stop_status): Don't decrement PC.
10013 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10014 prototype.
10015 * infrun.c (adjust_pc_after_break): New function.
10016 (handle_inferior_event): Call it, early. Remove later references
10017 to DECR_PC_AFTER_BREAK.
10018 (normal_stop): Add commentary.
10019
fad0733a
DJ
100202004-01-31 Daniel Jacobowitz <drow@mvista.com>
10021
10022 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10023 2004-01-27 double-free fix.
10024
42cdca6c
MK
100252004-01-31 Mark Kettenis <kettenis@gnu.org>
10026
10027 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10028 (sparc32_frame_prev_register): Handle StackGhost.
10029 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10030
932d5416
RM
100312004-01-29 Roland McGrath <roland@redhat.com>
10032
10033 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10034 * configure: Regenerated.
10035
10036 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10037 * Makefile.in (procfs.o): Add dep.
10038
47d3492a
AC
100392004-01-28 Andrew Cagney <cagney@redhat.com>
10040
10041 * tui/tui-stack.h: Update copyright.
10042 (struct frame_info): Add opaque declaration.
10043 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10044 (tui_show_locator_content): Rename tuiShowLocatorContent.
10045 (tui_show_frame_info): Rename tuiShowFrameInfo.
10046 * tui/tui-stack.c: Update copyright. Update references.
10047 * tui/tui-winsource.c: Update references.
10048 * tui/tui-win.c: Update references.
10049 * tui/tui-layout.c: Update references.
10050 * tui/tui-hooks.c: Update copyright, update references.
10051 * tui/tui.c: Update copyright, update references.
10052 * tui/tui-disasm.c: Update references.
10053
5d51ca54
DC
100542004-01-28 David Carlton <carlton@kealia.com>
10055
10056 * dwarf2read.c (add_partial_structure): Use demangled name if
10057 namespace equals "".
10058
086ed43d
JB
100592004-01-27 Jim Blandy <jimb@redhat.com>
10060
10061 Clean up misapplied patch:
10062 * dwarf2read.c (determine_prefix): Change one of the two forward
10063 declarations for 'determine_prefix_aux' to a declaration for this.
10064 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10065 argument to 'die_specification'.
10066
2a35147e
JB
10067 * dwarf2read.c (read_func_scope): Re-indent comment.
10068
a355c7de 100692004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 10070
a355c7de
AC
10071 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10072 b->exp to NULL after freeing so that error during re-parsing or
10073 evaluation of expressions associated with breakpoint don't
10074 eventually lead to re-freeing of storage.
10075 Committed by Andrew Cagney.
10076
63ff5125
AC
100772004-01-27 Andrew Cagney <cagney@redhat.com>
10078
10079 * source.c (ambiguous_line_spec): Delete undefined declaration.
10080 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10081 (m32r_set_server_address, m32r_set_download_path): Ditto.
10082 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10083
e142c38c
DJ
100842004-01-27 Daniel Jacobowitz <drow@mvista.com>
10085
10086 * dwarf2read.c: Update calls to changed and renamed functions, and
10087 references to moved variables.
10088
10089 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10090 language, language_defn, list_in_scope, and ftypes members.
10091 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10092 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10093 (baseaddr): Remove globals.
10094
10095 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10096 (set_cu_language, die_is_declaration, die_specification)
10097 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10098 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10099 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10100 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10101
10102 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10103 cu.list_in_scope. Don't initialize cu_header_offset.
10104 (add_partial_symbol): Add local baseaddr.
10105 (psymtab_to_symtab_1): Add local baseaddr. Use
10106 objfile->section_offsets for consistency. Don't initialize
10107 cu_header_offset; do initialize cu.header.offset and
10108 cu.list_in_scope.
10109 (read_file_scope, read_func_scope, read_lexical_block_scope)
10110 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10111
c6e06ede
MC
101122004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10113
fb328ecc 10114 * PROBLEMS: Add gdb/1516.
c6e06ede 10115
48184fd4
AC
101162003-12-29 Robert Millan <robertmh@gnu.org>
10117
10118 Patch committed by Andrw Cagney.
10119 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10120 * configure.tgt: Match knetbsd*-gnu.
10121
c1321b30
AC
101222004-01-26 Andrew Cagney <cagney@redhat.com>
10123
f3699be3
AC
10124 * breakpoint.c (catch_command_1): Delete #ifdef code.
10125 (catch_fork_command_1): Delete #ifdef wrapper.
10126 (catch_exec_command_1): Ditto.
10127 (catch_load_command_1): Ditto.
10128 (catch_unload_command_1): Ditto.
10129
c1321b30
AC
10130 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10131 (catch_breakpoint): Delete #if0ed function.
10132 (disable_catch_breakpoint): Ditto.
10133 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10134 (disable_catch, enable_catch, delete_catch): Ditto.
10135
b4501125
AC
101362004-01-26 Andrew Cagney <cagney@redhat.com>
10137
10138 * remote.c (echo_check, quit_flag): Delete variables.
10139 (cisco_kernel_mode): Delete variable.
10140 (minitelnet_return, tty_input, escape_count): Delete variables.
10141 (remote_cisco_mode): Delete variable.
10142 (remote_cisco_open, remote_cisco_close): Delete function.
10143 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10144 (init_remote_cisco_ops): Delete function.
10145 (_initialize_remote): Do not install "remote cisco" code.
10146 (read_frame): Delete cisco specific code.
10147 (remote_info_process): Delete function.
10148 (remote_wait): Delete cisco specific code.
10149 (remote_cisco_section_offsets): Delete function.
10150 (remote_cisco_objfile_relocate): Delete function.
10151 (remote_async_wait): Delete cisco specific code.
10152 (minitelnet, readtty, readsocket): Delete function.
10153
74055713
AC
101542004-01-26 Andrew Cagney <cagney@redhat.com>
10155
10156 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10157 comments mentioning extract_returned_value_address.
10158 * infcmd.c (print_return_value): Update. Add comments on
10159 extract_returned_value_address.
10160 * stack.c (return_command): Add comments on
10161 extract_returned_value_address.
10162 * values.c: Update comment.
10163 * m32r-tdep.c: Update comment.
10164 * sparc-tdep.c: Update comment.
10165 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10166 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10167 * sh64-tdep.c (sh64_gdbarch_init): Update.
10168 * sh-tdep.c (sh_gdbarch_init): Update.
10169 * s390-tdep.c (s390_gdbarch_init): Update.
10170 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10171 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10172 * m68k-tdep.c (m68k_gdbarch_init): Update.
10173 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10174 * m32r-tdep.c (m32r_gdbarch_init): Update.
10175 * ia64-tdep.c (ia64_gdbarch_init): Update.
10176 * h8300-tdep.c (h8300_gdbarch_init): Update.
10177 * frv-tdep.c (frv_gdbarch_init): Update.
10178 * arm-tdep.c (arm_gdbarch_init): Update.
10179 * alpha-tdep.c (alpha_gdbarch_init): Update.
10180
a67af2b9
AC
101812004-01-26 Andrew Cagney <cagney@redhat.com>
10182
10183 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10184 SYMBOL_LOCATION_FUNCS
10185 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10186 "struct symbol_ops".
10187 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10188 type to "struct symbol_ops".
10189 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10190 (struct symbol): Replace ".aux_value.loc.funcs" and
10191 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10192 (SYMBOL_OBJFILE): Delete macro.
10193 (SYMBOL_LOCATION_FUNCS): Delete macro.
10194 (SYMBOL_LOCATION_BATON): Update.
10195 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10196 intead of SYMBOL_LOCATION_FUNCS.
10197 * ax-gdb.c (gen_var_ref): Ditto.
10198 * printcmd.c (address_info): Ditto.
10199 * findvar.c (read_var_value): Ditto.
10200 (symbol_read_needs_frame): Ditto.
10201
c034e007
AC
102022004-01-26 Andrew Cagney <cagney@redhat.com>
10203
10204 * dwarf2read.c (read_func_scope): Document frame-base hack.
10205
bb472c1e
MK
102062004-01-25 Mark Kettenis <kettenis@gnu.org>
10207
10208 * infcmd.c (print_return_value): Plug memory leak; delete
10209 ui_stream object. Rename argument `structure_return' to
10210 `struct_return'.
10211
c8e737d5
MK
102122004-01-25 Mark Kettenis <kettenis@gnu.org>
10213
f941662f
MK
10214 * infcmd.c (print_return_value): Wrap long lines.
10215 (finish_command_continuation, finish_command): Remove unused
10216 variable `funcaddr'. Fix some coding-standards problems.
10217
c558d81a 10218 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 10219 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
10220 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10221 TDEP->fpregset to zero.
10222
bf1e5861 10223 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
10224 floating-point registers for traditional NetBSD core files.
10225 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10226 TDEP->sizeof_fpregset here.
10227
4c72d57a
MK
102282004-01-25 Mark Kettenis <kettenis@gnu.org>
10229
566626fa
MK
10230 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10231 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10232 function with code split out from
10233 sparc32nbsd_sigcontext_frame_cache.
10234 (sparc32nbsd_sigcontext_frame_cache): Use
10235 sparc32nbsd_sigcontext_saved_regs.
10236 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10237 OpenBSD.
10238 * sparcobsd-tdep.c: New file.
10239 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10240 (sparcobsd-tdep.o): New dependency.
10241 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10242 * config/sparc/obsd.mt: New file.
10243
4c72d57a
MK
10244 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10245 TDEP->fpregset to be initialized to enable core file register
10246 sets.
10247
7e5e9f88
MK
102482004-01-24 Mark Kettenis <kettenis@gnu.org>
10249
f0f207fd 10250 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
10251 Add opaque declarations.
10252 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10253 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10254 function with code split out from
10255 sparc64nbsd_sigcontext_frame_cache.
10256 (sparc64nbsd_sigcontext_frame_cache): Use
10257 sparc64nbsd_sigcontext_saved_regs.
10258 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10259 OpenBSD.
10260 * sparc64obsd-tdep.c: New file.
10261 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10262 (sparc64obsd-tdep.o): New dependency.
10263 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10264 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10265 * config/sparc/obsd64.mt: New file.
10266
690668cc
MK
10267 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10268 read the instruction at PC.
10269
7e5e9f88
MK
10270 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10271 value of GDB_OSABI_DEFAULT.
10272 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10273 instead of GDB_OSABI_NETBSD_AOUT.
10274
68b6dce9
NR
102752004-01-24 Nick Roberts <nick@nick.uklinux.net>
10276
10277 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10278 copyright.
10279
080ce8c0
AC
102802004-01-23 Andrew Cagney <cagney@redhat.com>
10281
10282 * printcmd.c (display_command): Replace tui_set_display call with
10283 tui_set_layout_for_display_command.
10284 * tui/tui.h (enum tui_win_type): Define.
10285 (tui_set_layout): Delete declaration.
10286 (tui_set_layout_for_display_command): Rename set_tui_layout.
10287 * tui/tui-data.h (enum tui_layout_type): Define.
10288 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10289 "tui.h".
10290 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10291 (tui_default_win_height): Rename tuiDefaultWinHeight.
10292 (tui_default_win_viewport_height): Rename
10293 tuiDefaultWinViewportHeight.
10294 (tui_set_layout): RenametuiSetLayout.
10295 * tui/tui-layout.c: Update references.
10296 * tui/tui.c: Update references.
10297 * tui/tui-disasm.c: Update references.
10298
b368761e
DC
102992004-01-23 David Carlton <carlton@kealia.com>
10300
10301 Partial workaround for PR c++/1511:
10302 * cp-namespace.c: Include frame.h.
10303 (cp_lookup_transparent_type): New
10304 (cp_lookup_transparent_type_loop): New.
10305 * cp-support.h: Declare cp_lookup_transparent_type.
10306 * symtab.c (basic_lookup_transparent_type): Renamed from
10307 lookup_transparent_type.
10308 (lookup_transparent_type): Replace old body by a call to
10309 current_language->la_lookup_transparent_type.
10310 * symtab.h: Update copyright. Declare
10311 basic_lookup_transparent_type.
10312 * language.h: Update copyright.
10313 (struct language_defn): Add la_lookup_transparent_type.
10314 * language.c: Update copyright.
10315 (unknown_language_defn): Add basic_lookup_transparent_type.
10316 (auto_language_defn): Add basic_lookup_transparent_type.
10317 (local_language_defn): Add basic_lookup_transparent_type.
10318 * ada-lang.c: Update copyright.
10319 (ada_language_defn): Add basic_lookup_transparent_type.
10320 * c-lang.c: Update copyright.
10321 (c_language_defn): Add basic_lookup_transparent_type.
10322 (cplus_language_defn): Add basic_lookup_transparent_type.
10323 (asm_language_defn): Add basic_lookup_transparent_type.
10324 (minimal_language_defn): Add basic_lookup_transparent_type.
10325 * f-lang.c: Update copyright.
10326 (f_language_defn): Add basic_lookup_transparent_type.
10327 * jv-lang.c: Update copyright.
10328 (java_language_defn): Add basic_lookup_transparent_type.
10329 * m2-lang.c: Update copyright.
10330 (m2_language_defn): Add basic_lookup_transparent_type.
10331 * objc-lang.c: Update copyright.
10332 (objc_language_defn): Add basic_lookup_transparent_type.
10333 * p-lang.c: Update copyright.
10334 (p_language_defn): Add basic_lookup_transparent_type.
10335 * scm-lang.c: Update copyright.
10336 (scm_language_defn): Add basic_lookup_transparent_type.
10337 * Makefile.in (cp-namespace.o): Depend on frame.h.
10338
fdde2d81
DC
103392004-01-23 David Carlton <carlton@kealia.com>
10340
10341 Patch for PR c++/1520:
10342 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10343 properly if we have a specification die.
10344 (determine_prefix_aux): Rename from determine_prefix.
10345 (determine_prefix): Like the old determine_prefix, but never
10346 returns NULL.
10347
5b828b6b
TR
103482004-01-23 Theodore A. Roth <troth@openavr.org>
10349
10350 * avr-tdep.c: Update copyright.
10351 (avr_iaddr_p): Delete unused function.
10352 (avr_saddr_p): Delete unused function.
10353
a1b8c067
DC
103542004-01-23 David Carlton <carlton@kealia.com>
10355
10356 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10357 Fix for PR symtab/1534.
10358
f2cab569
MK
103592004-01-23 Mark Kettenis <kettenis@gnu.org>
10360
10361 * NEWS (New native configurations): Mention OpenBSD/sparc and
10362 OpenBSD/sparc64.
10363 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10364 * configure.host: Likewise.
10365 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10366 handler for OpenBSD.
10367 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10368
642d8300
MK
103692004-01-22 Mark Kettenis <kettenis@gnu.org>
10370
89aac506
MK
10371 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10372 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10373
36662fde
MK
10374 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10375 * cli/cli-cmds.c (shell_escape): Likewise.
10376
642d8300
MK
10377 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10378 OpenBSD .note.openbsd.ident sections.
10379
fae299cd
DC
103802004-01-22 David Carlton <carlton@kealia.com>
10381
10382 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10383 get_scope_pc_bounds.
10384 (read_file_scope): Ditto.
10385 (get_scope_pc_bounds): New function, produced by extracting code
10386 from the above two functions, consolidating it, and adding support
10387 for DW_TAG_namespace.
10388
a49d618c
MK
103892004-01-22 Mark Kettenis <kettenis@gnu.org>
10390
10391 * osabi.c (MAX_NOTESZ): New define.
10392 (check_note): New function.
10393 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10394 check_note.
10395
fe61caab
RM
103962004-01-21 Roland McGrath <roland@redhat.com>
10397
10398 * MAINTAINERS (write after approval): Add myself.
10399
ec145965
EZ
104002004-01-21 Eli Zaretskii <eliz@gnu.org>
10401
10402 * utils.c (init_page_info): Move declarations of `rows' and
10403 `cols' before the __GO32__-specific code. Move the closing brace
10404 outside the #ifdef __GO32__..#endif block.
10405 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10406
877522db
PB
104072004-01-21 Paul Brook <paul@codesourcery.com>
10408
10409 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10410 BPSTAT_WHAT_CHECK_SHLIBS.
10411
dbf5be1c
PB
104122004-01-21 Paul Brook <paul@codesourcery.com>
10413
10414 * MAINTAINERS: Add myself to write-after-approval.
10415
81f08b92
AC
104162004-01-20 Andrew Cagney <cagney@redhat.com>
10417
5a1efed7
AC
10418 * ax-gdb.c (print_axs_value): Delete unused function.
10419 * jv-lang.c (java_lookup_type): Delete unused function.
10420 * cli/cli-dump.c (dump_filetype): Delete unused function.
10421 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10422 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10423 (mips_getstring): Delete unused function.
10424 (pmon_insert_breakpoint): Delete #if0ed function.
10425 (PMON_MAX_BP): Delete #if0ed MACRO.
10426 (mips_pmon_bp_info): Delete #if0ed variable.
10427 (pmon_remove_breakpoint): Delete #if0ed function.
10428 * monitor.c (monitor_write_even_block): Delete unused function.
10429 (monitor_write_memory_block): Delete #if0ed code.
10430 * dink32-rom.c (dink32_load): Delete unused function.
10431 (_initialize_dink32_rom): Delete #if0ed code.
10432 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10433
b0a30fce
AC
10434 * tui/tui-command.c: Update references.
10435 * tui/tui-io.c: Update references.
10436 * tui/tui-command.h: Update copyright.
10437 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10438
81f08b92
AC
10439 * source.c (ambiguous_line_spec): Delete never-defined function.
10440 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10441 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10442 * cli/cli-cmds.c (validate_comname): Ditto.
10443
65f05602
AC
10444 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10445 "tui-data.h".
10446 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10447 (tui_show_disassem): Rename tuiShowDisassem.
10448 (tui_show_disassem_and_update_source): Rename
10449 tuiVerticalDisassemScroll.
10450 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10451 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10452 * tui/tui.h: Update copyright.
10453 (enum tui_status): Define.
10454 * tui/tui-data.h (enum tui_scroll_direction): Define.
10455 * tui/tui-disasm.c: Update copyright. Update references.
10456 * tui/tui-winsource.c: Update copyright. Update references.
10457 * tui/tui-win.c: Update references.
10458 * tui/tui-layout.c: Update references.
10459
6bb0384f
AC
104602004-01-20 Andrew Cagney <cagney@redhat.com>
10461
10462 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10463 sym2 to start of block.
10464
9175c9a3
MC
104652004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10466
10467 * MAINTAINERS: Delete mmalloc.
10468 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10469 * NEWS: Mention removal of --with-malloc.
10470 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10471 * config.in: Regenerate.
10472 * configure: Regenerate.
6bb0384f
AC
10473 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10474 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
10475 * gdbinit.in: Remove mmalloc.
10476 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10477 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10478 * config/i386/go32.mh: Likewise.
10479 * config/i386/interix.mh: Likewise.
10480 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10481
4fcef00a
JJ
104822004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10483
10484 * linespec.c (decode_variable, symtab_from_filename): Call
10485 error_silent with error message instead of throwing an exception
10486 directly.
10487 * defs.h (error_silent, error_output_message): Add prototypes.
10488 (catch_exceptions_with_msg): Ditto.
10489 * utils.c (error_silent, error_output_message): New functions.
10490 * top.c (catch_exceptions_with_msg): New function.
10491
8e94b928
NR
104922004-01-20 Nick Roberts <nick@nick.uklinux.net>
10493
10494 * mi/mi-cmds.h (enum print_values): Add definition.
10495
10496 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10497 type and value for simple data types and just the name and type
10498 for complex ones, if required.
10499
10500 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10501 children, if required.
10502
a02d6af8
KB
105032004-01-19 Kevin Buettner <kevinb@redhat.com>
10504
10505 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10506 unused declarations.
10507
78a4a9b9
AC
105082004-01-19 Andrew Cagney <cagney@redhat.com>
10509
10510 * top.h (mapped_symbol_files): Delete declaration.
10511 * main.c (captured_main): Delete option "m" and "mapped".
10512 * objfiles.c (mapped_symbol_files): Delete variable.
10513 * symfile.c (symbol_file_command): Delete mmap code.
10514 (symbol_file_add_with_addrs_or_offsets): Ditto.
10515 (add_symbol_file_command, reread_separate_symbols): Ditto.
10516 * objfiles.h (OBJF_MAPPED): Delete.
10517 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10518 (free_objfile) [USE_MMALLOC]: Ditto.
10519 (open_existing_mapped_file): Delete function.
10520 (open_mapped_file): Delete function.
10521 (map_to_file): Delete function.
10522
2dbd5e30
KB
105232004-01-19 Kevin Buettner <kevinb@redhat.com>
10524
10525 * infrun.c (step_into_function): Account for possible breakpoint
10526 adjustment when computing ``stop_func_start''.
10527
437b434f
KB
105282004-01-19 Kevin Buettner <kevinb@redhat.com>
10529
10530 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10531 the region size against the size of a pointer, not the size of
10532 a register as given by DEPRECATED_REGISTER_SIZE.
10533
55fb0713
AC
105342004-01-19 Andrew Cagney <cagney@redhat.com>
10535
10536 * tui/tui-regs.h: Include "tui-data.h".
10537 (tuiFirstRegElementNoInLine): Delete declaration.
10538 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10539 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10540 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10541 (tui_calculate_regs_column_count): Rename
10542 tuiCalculateRegsColumnCount.
10543 (tui_check_register_values): Rename tuiCheckRegisterValues.
10544 (tui_show_registers): Rename tuiShowRegisters.
10545 (tui_display_registers_from_line): Rename
10546 tuiDisplayRegistersFromLine.
10547 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10548 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10549 (tui_first_reg_element_no_inline): Rename
10550 tuiFirstRegElementNoInLine.
10551 * tui/tui-data.h: Update copyright.
10552 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10553 * tui/tui-windata.c: Update copyright, update references.
10554 * tui/tui-regs.c: Update copyright, update references.
10555 * tui/tui-win.c: Update copyright, update references.
10556 * tui/tui-layout.c: Update copyright, update references.
fe61caab 10557
cebe9500
AC
105582004-01-18 Andrew Cagney <cagney@redhat.com>
10559
bcdf1568
AC
10560 * tui/tui-io.c: Update copyright.
10561 (key_is_end_sequence, key_is_backspace): New functions.
10562 (key_is_command_char, key_is_start_sequence): New function.
10563 (tui_getc): Update references.
10564 * tui/tui-io.h: Update copyright.
10565 (m_tuiStartNewLine): Delete macro.
10566 (m_isBackspace, m_isDeleteChar): Delete macros.
10567 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10568 (m_isNextPage, m_isPrevPage): Delete macros.
10569 (m_isLeftArrow, m_isRightArrow): Delete macros.
10570 (m_isXdbStyleCommandChar): Delete macro.
10571 (key_is_start_sequence): Declare, replace m_isStartSequence.
10572 (key_is_end_sequence): Declare, replace m_isEndSequence.
10573 (key_is_backspace): Declare ,replace m_isBackspace.
10574 (key_is_command_char): Declare, replace m_isCommandChar.
10575 * tui/tui-command.c: Update copyright.
10576 (tuiDispatchCtrlChar): Update references.
10577
130d87e6
AC
10578 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10579 tuiSourceWin.h.
10580
d7b2e967
AC
10581 * tui/tui-command.c: Rename tui/tuiCommand.c.
10582 * tui/tui-command.h: Rename tui/tuiCommand.h.
10583 * tui/tui-data.c: Rename tui/tuiData.c.
10584 * tui/tui-data.h: Rename tui/tuiData.h.
10585 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10586 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10587 * tui/tui-io.c: Rename tui/tuiIO.c.
10588 * tui/tui-io.h: Rename tui/tuiIO.h.
10589 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10590 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10591 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10592 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10593 * tui/tui-source.c: Rename tui/tuiSource.c.
10594 * tui/tui-source.h: Rename tui/tuiSource.h.
10595 * tui/tui-stack.c: Rename tui/tuiStack.c.
10596 * tui/tui-stack.h: Rename tui/tuiStack.h.
10597 * tui/tui-win.c: Rename tui/tuiWin.c.
10598 * tui/tui-win.h: Rename tui/tuiWin.h.
10599 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10600 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10601 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10602 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10603 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10604 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10605 * tui/tui-file.c: Update includes.
10606 * tui/tui-hooks.c: Update includes.
10607 * tui/tui-interp.c: Update includes.
10608 * tui/tui.c: Update includes.
10609 * Makefile.in: Update all tui/ dependencies.
10610 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10611
b2100910
AC
10612 * Makefile.in: Update copyright. Update dependencies.
10613
cebe9500
AC
10614 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10615 problem.
10616
c6f0559b
AC
106172004-01-18 Andrew Cagney <cagney@redhat.com>
10618
43e9390b
AC
10619 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10620 instead of register_gdbarch_init.
10621
c6f0559b
AC
10622 * remote-sds.c (tohex): Delete unused function. Update copyright.
10623 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10624 * v850-tdep.c (v850_register_virtual_size): Ditto.
10625 * target.c (normal_target_post_startup_inferior): Ditto.
10626 * source.c (ambiguous_line_spec): Ditto.
10627 * remote.c (adapt_remote_get_threadinfo): Ditto.
10628 * mi/mi-out.c (out_field_fmt): Ditto.
10629 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10630 (output_control_change_notification): Ditto.
10631 * m68k-tdep.c (m68k_register_byte): Ditto.
10632 (m68k_remote_breakpoint_from_pc): Ditto.
10633 * ui-out.c (init_ui_out_state): Delete unused declaration.
10634 * stabsread.c (search_value): Ditto.
10635 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10636 * maint.c (print_section_table): Ditto.
10637 * infrun.c (set_follow_fork_mode_command): Ditto.
10638
a8504492
MK
106392004-01-18 Mark Kettenis <kettenis@gnu.org>
10640
10641 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10642 DW_CFA_def_cfa_exporession. Add support for
10643 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10644 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10645
0bd8997e
AC
106462004-01-18 Andrew Cagney <cagney@redhat.com>
10647
10648 * ocd.c: Update copyright.
10649 (bdm_read_register_command): Delete unused function.
10650 (_initialize_remote_ocd): Delete commented out reference.
10651 (get_quoted_char, reset_packet): Delete #if0ed function.
10652 (output_packet, put_quoted_char): Delete #if0ed function.
10653 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10654 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10655 (BDM_BREAKPOINT): Delete #if0ed macro.
10656 (remote_timeout): Delete #if0ed variable.
10657
31bb40e4
MK
106582004-01-18 Mark Kettenis <kettenis@gnu.org>
10659
10660 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10661 (core-sol2.o): Remove dependency.
10662 * core-sol2.c: Remove file.
10663
887432a5
AC
106642004-01-17 Andrew Cagney <cagney@redhat.com>
10665
10666 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10667 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10668 enums.
10669
29182b13
DJ
106702004-01-17 Daniel Jacobowitz <drow@mvista.com>
10671
10672 * remote.c: Update copyright years.
10673
2963ee1d
DJ
106742004-01-17 Daniel Jacobowitz <drow@mvista.com>
10675
10676 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10677
79d45cd4
AC
106782004-01-17 Andrew Cagney <cagney@redhat.com>
10679
ee300cd4
AC
10680 * mdebugread.c: Update copyright.
10681 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10682 (parse_type, parse_procedure): Ditto.
10683 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10684
fcacc9c2
AC
10685 * cris-tdep.c (cris_store_struct_return): Put back accidently
10686 deleted function.
10687
79d45cd4
AC
10688 * gdbarch.sh: Update copyright year.
10689 * gdbarch.h, gdbarch.c: Re-generate.
10690
b263358a
DJ
106912004-01-17 Daniel Jacobowitz <drow@mvista.com>
10692
10693 Suggested by George Anzinger.
10694 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10695 correct stack offset. Include unknown opcode numbers in the error
10696 message.
10697
931aecf5
AC
106982004-01-17 Andrew Cagney <cagney@redhat.com>
10699
10700 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10701 extract_struct_value_address, i386 does not set it.
10702 * sparc64-tdep.c (sparc64_init_abi): Do not set
10703 extract_struct_value_address, never called.
10704 (sparc64_extract_struct_value_address): Delete function.
10705 * m68hc11-tdep.c: Update copyright.
10706 (m68hc11_gdbarch_init): Delete redundant assignment of
10707 extract_struct_value_address.
10708 * i386-tdep.c: Update copyright.
10709 (i386_gdbarch_init): Do not set extract_struct_value_address,
10710 never called.
10711 (i386_extract_struct_value_address): Delete function.
10712 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10713 extract_struct_value_address, never called.
10714 (sparc32_extract_struct_value_address): #if 0 function. Add
10715 comments explaining its future.
10716
756fe439
DJ
107172004-01-17 Daniel Jacobowitz <drow@mvista.com>
10718
10719 * arm-tdep.c (arm_write_pc): New function.
10720 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10721
e74f0f02
DJ
107222004-01-17 Daniel Jacobowitz <drow@mvista.com>
10723
10724 * breakpoint.c (must_shift_inst_regs): Delete.
10725 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10726 and SHIFT_INST_REGS.
10727 * infcmd.c (step_1, step_1_continuation): Delete references to
10728 SHIFT_INST_REGS.
10729 * infrun.c (keep_going): Likewise.
10730 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10731 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10732
b6cb9035
AC
107332004-01-17 Andrew Cagney <cagney@redhat.com>
10734
444a1e2e
AC
10735 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10736 * gdbarch.h, gdbarch.c: Re-generate.
10737 * infcmd.c (print_return_value): Delete reference to
10738 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10739
def7e6ed
AC
10740 * cris-tdep.c (cris_gdbarch_init): Do not set
10741 deprecated_extract_struct_value_address.
10742
07be497a
AC
10743 * xstormy16-tdep.c: Update copyright.
10744 (xstormy16_extract_struct_value_address): Update to current
10745 extract struct value address interface.
10746 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10747 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10748 current extract struct value address interface.
10749 (sh64_gdbarch_init): Set extract_struct_value_address.
10750
6b4d5c91
AC
10751 * cris-tdep.c: Update copyright.
10752 (cris_extract_struct_value_address): Delete function.
10753 (struct_return_address): Delete variable.
10754 (cris_store_struct_return): Do not set struct_return_address.
10755
464e0365
AC
10756 * mcore-tdep.c: Update copyright.
10757 (mcore_extract_struct_value_address): Delete function. Update
10758 comments.
10759 (mcore_gdbarch_init): Update.
10760 * mn10300-tdep.c: Update copyright.
10761 (mn10300_extract_struct_value_address): Delete function.
10762 (mn10300_gdbarch_init): Update.
10763 * v850-tdep.c: Update copyright.
10764 (v850_extract_struct_value_address): Delete.
10765 (v850_gdbarch_init): Update.
10766 * ns32k-tdep.c: Update copyright.
10767 (ns32k_extract_struct_value_address): Delete.
10768 (ns32k_gdbarch_init): Update.
10769 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10770 (hppa_gdbarch_init): Update.
10771 * vax-tdep.c: Update copyright.
10772 (vax_extract_struct_value_address): Delete.
10773 (vax_gdbarch_init): Update.
10774
afb18d0f
AC
10775 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10776 * gdbarch.h, gdbarch.c: Re-generate.
10777 * procfs.c (procfs_fetch_registers): Delete reference to
10778 DEPRECATED_NPC_REGNUM.
10779 (procfs_store_registers): Ditto.
10780 * regcache.c (generic_target_write_pc): Simplify.
10781 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10782
a698f53e
AC
10783 * core-sol2.c (fetch_core_registers): Replace
10784 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10785
adc11376
AC
10786 * hppa-tdep.c: Update copyright year.
10787 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10788 NPC_REGNUM.
10789 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10790
b6cb9035
AC
10791 * mips-tdep.c (mips_write_pc): New function.
10792 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10793 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10794 (mips_find_saved_regs, mips_software_single_step: Ditto.
10795 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10796 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10797
6d82d43b
AC
107982004-01-17 Andrew Cagney <cagney@redhat.com>
10799
10800 * mips-tdep.c: Re-indent. Group functions by ABI.
10801
71bd6bd4
AC
108022004-01-17 Andrew Cagney <cagney@redhat.com>
10803
10804 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10805 * gdbarch.c: Re-generate.
10806 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10807 DECR_PC_AFTER_BREAK to zero.
10808 * vax-tdep.c (vax_gdbarch_init): Ditto.
10809 * v850-tdep.c (v850_gdbarch_init): Ditto.
10810 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10811 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10812 * sh-tdep.c (sh_gdbarch_init): Ditto.
10813 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10814 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10815 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10816 * mips-tdep.c (mips_gdbarch_init): Ditto.
10817 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10818 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10819 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10820 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10821 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10822 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10823 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10824 * frv-tdep.c (frv_gdbarch_init): Ditto.
10825 * cris-tdep.c (cris_gdbarch_init): Ditto.
10826 * avr-tdep.c (avr_gdbarch_init): Ditto.
10827 * arm-tdep.c (arm_gdbarch_init): Ditto.
10828 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10829
a02abb62
JB
108302004-01-17 J. Brobecker <brobecker@gnat.com>
10831
10832 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10833 Delete, no longer used.
10834 (read_subrange_type): New function, mostly extracted from
10835 read_array_type().
10836 (read_array_type): Replace extracted code by call to
10837 read_subrange_type().
10838 (dwarf2_get_attr_constant_value): New function.
10839 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10840 (add_partial_symbol): Likewise.
10841 (process_die): Likewise.
10842 (new_symbol): Likewise.
10843 (read_type_die): Likewise.
10844
cf5b2f1b
AC
108452004-01-16 Andrew Cagney <cagney@redhat.com>
10846
10847 * symfile.c: Update copyright year.
10848 (compare_symbols): Delete unused function.
10849 * stabsread.c: Update copyright year.
10850 (lrs_general_complaint): Delete unused function.
10851 (ref_search_value): Ditto.
10852 (get_substring): Delete declaration.
10853 * sh64-tdep.c: Update copyright year.
10854 (sh64_get_gdb_regnum): Delete unused function.
10855 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10856 Delete unused function.
10857
d33b9831
MK
108582004-01-17 Mark Kettenis <kettenis@gnu.org>
10859
10860 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10861 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10862
7aea86e6
AC
108632004-01-16 Andrew Cagney <cagney@redhat.com>
10864
10865 Changes from Peter Schauer.
10866 * rs6000-tdep.c: Update copyright year.
10867 (rs6000_push_dummy_call): Update the stack pointer before
10868 accessing the corresponding stack region.
10869 * rs6000-nat.c: Update copyright year.
10870 (set_host_arch): Set "info.abfd" to "exec_bfd".
10871
26b0da32
MK
108722004-01-15 Mark Kettenis <kettenis@gnu.org>
10873
10874 * blockframe.c: Update copyright year.
10875 (inside_entry_func): Don't treat a zero PC specially.
10876
86fbe6cc
EZ
108772004-01-14 Elena Zannoni <ezannoni@redhat.com>
10878
10879 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10880 variable.
10881 (gcore_create_callback): Ditto. Skip any memory segment that has
10882 no permissions set.
10883
63d06c5c
DC
108842004-01-14 David Carlton <carlton@kealia.com>
10885
10886 Change symbols for C++ nested types to contain the fully qualified
10887 name, if possible. (At least in the DWARF-2 case.) Partial fix
10888 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10889 c++/895.
10890 * c-exp.y (qualified_type): Handle types nested within classes.
10891 * cp-namespace.c: Update comments.
10892 (cp_set_block_scope): Delete #if 0.
10893 (cp_lookup_nested_type): Handle types nested within classes.
10894 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10895 when appropriate.
10896 (add_partial_symbol): Add the name of the enclosing namespace to
10897 types.
10898 (pdi_needs_namespace): New.
10899 (add_partial_namespace): Tweak comment.
10900 (add_partial_structure): New.
10901 (psymtab_to_symtab_1): Initialize processing_current_prefix
10902 here...
10903 (process_die): instead of here.
10904 (read_structure_scope): Try to figure out the name of the class or
10905 namespace that the structure might be defined within.
10906 (read_enumeration): Generate fully-qualified names, if possible.
10907 (read_namespace): Don't set name to NULL.
10908 (die_specification): New.
10909 (new_symbol): Generate fully-qualified names for types.
10910 (read_type_die): Determine appropriate prefix.
10911 (determine_prefix): New.
10912 (typename_concat): New.
10913 (class_name): New.
10914 * valops.c (value_aggregate_elt): Pass NOSIDE to
10915 value_struct_elt_for_reference.
10916 (value_struct_elt_for_reference): Make static, add NOSIDE
10917 parameter, call value_maybe_namespace_elt as a last resort.
10918 (value_namespace_elt): Break out code into
10919 value_maybe_namespace_elt.
10920 (value_maybe_namespace_elt): New.
10921
87783b8b
AC
109222004-01-12 Andrew Cagney <cagney@redhat.com>
10923
10924 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10925 cooked floating-point registers.
10926 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10927 and value_to_register.
10928
6503b91e
AC
109292004-01-13 Andrew Cagney <cagney@redhat.com>
10930
10931 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10932 * gdbarch.c: Re-generate.
10933 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10934 FUNCTION_START_OFFSET.
10935 * v850-tdep.c (v850_gdbarch_init): Ditto.
10936 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10937 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10938 * sh-tdep.c (sh_gdbarch_init): Ditto.
10939 * s390-tdep.c (s390_gdbarch_init): Ditto.
10940 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10941 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10942 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10943 * mips-tdep.c (mips_gdbarch_init): Ditto.
10944 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10945 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10946 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10947 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10948 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10949 * i386-tdep.c (i386_gdbarch_init): Ditto.
10950 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10951 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10952 * frv-tdep.c (frv_gdbarch_init): Ditto.
10953 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10954 * cris-tdep.c (cris_gdbarch_init): Ditto.
10955 * avr-tdep.c (avr_gdbarch_init): Ditto.
10956 * arm-tdep.c (arm_gdbarch_init): Ditto.
10957 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10958
ea1dd7bc
DJ
109592004-01-13 Daniel Jacobowitz <drow@mvista.com>
10960
10961 * infrun.c (follow_fork_mode_ask): Remove.
10962 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10963 (follow_fork): Simplify and remove internal error for
10964 follow_fork_mode_ask.
10965 (_initialize_infrun): Update "set follow-fork-mode" help text.
10966
0f0cffd2
AC
109672004-01-13 Andrew Cagney <cagney@redhat.com>
10968
10969 * configure.in: Update copyright year.
10970 (build_warnings): Add -Wunused-label.
10971 * configure: Re-generate.
10972
de38af99
AC
109732004-01-12 Andrew Cagney <cagney@redhat.com>
10974
954a7fba
AC
10975 * exec.h (exec_ops): Make "extern".
10976
de38af99
AC
10977 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10978 the function is void.
10979 (mips_pseudo_register_write): Ditto.
10980
1a111ce3
AC
109812004-01-12 Andrew Cagney <cagney@redhat.com>
10982
10983 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10984 call. Never defined.
10985 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10986 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10987 (struct sparc_gregset, struct regcache): Ditto.
10988 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10989
48efe704
AC
109902004-01-12 Andrew Cagney <cagney@redhat.com>
10991
10992 * mi/ChangeLog: Delete file. Renamed to ...
10993 * mi/ChangeLog-1999-2003: New file.
10994 * tui/ChangeLog: Delete file. Renamed to ...
10995 * tui/ChangeLog-1998-2003: New file.
fe61caab 10996
a54124c5
MK
109972004-01-11 Mark Kettenis <kettenis@gnu.org>
10998
2ca62865
MK
10999 * sparc64nbsd-tdep.c: Include "regset.h".
11000 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11001 Remove variables.
11002 (fetch_core_registers): Remove function.
11003 (sparc64nbsd_core_fns): Remove variable.
11004 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11005 functions.
11006 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11007 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11008 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11009
ca9d58e9
MK
11010 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11011 sparc_extract_struct_value_address.
11012 (sparc32_gdbarch_init): Set extract_struct_value_address.
11013 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11014 function.
11015 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11016 return_value_on_stack.
11017
3cc87ec0
MK
11018 * NEWS: Mention that %cs and %ss have been added to the AMD64
11019 configurations
11020
5bf00f29
MK
11021 * frame.c: Update copyright year.
11022 (get_prev_frame): Improve comment.
11023
4f7ec84e
MK
11024 * sparc64fbsd-tdep.c: Include "regset.h".
11025 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11026 Remove variables.
11027 (fetch_core_registers): Remove function.
11028 (sparc64fbsd_core_fns): Remove variable.
11029 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11030 functions.
11031 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11032 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 11033 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 11034
4e7b0cd3
MK
11035 * sparcnbsd-tdep.c: Include "regset.h".
11036 (fetch_core_registers): Remove function.
11037 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11038 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11039 functions.
11040 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11041 TDEP->fpregset.
46b58ce9 11042 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 11043
a54124c5
MK
11044 * sparc-tdep.h (struct regset): Provide opaque declaration.
11045 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11046 fpregset and sizeof_fpregset members.
11047 * sparc-tdep.c (struct regset): Provide opaque declaration.
11048 (sparc_regset_from_core_section): New function.
11049 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11050 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11051 Set regset_from_core_section when appropriate.
11052
29ff87c5
MK
110532004-01-10 Mark Kettenis <kettenis@gnu.org>
11054
79b1ab3d
MK
11055 * x86-64-tdep.c (amd64_non_pod_p): New function.
11056 (amd64_classify_aggregate): Return class memory for non-POD
11057 C++ structure types.
11058
6470d250
MK
11059 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11060 argument. Use it to reserve a register if necessary.
11061 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11062 amd64_push_arguments.
11063
562c50c2
MK
11064 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11065
af233647
MK
11066 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11067 register numbers in comments.
11068 * x86-64-tdep.h: Update copyright year.
11069 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11070 Adjust for addition of %cs and %ss.
11071 * amd64fbsd-nat.c: Update copyright year.
11072 (reg_offset): Add register offsets for %cs and %ss.
11073 * amd64fbsd-tdep.c: Update copyright year.
11074 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11075 (amd64fbsd_sc_reg_offset): Likewise.
11076 * x86-64-linux-nat.c: Update copyright year.
11077 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11078 and %ss.
11079 * amd64nbsd-nat.c: Update copyright year.
11080 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11081 * amd64nbsd-tdep.c: Update copyright year.
11082 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11083 * x86-64-linux-tdep.c: Update copyright year.
11084 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11085 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11086 * regformats/reg-x86-64.dat: Add %cs and %ss.
11087
29ff87c5
MK
11088 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11089 variables to prevent long lines. Update comments to reflect
11090 reality.
11091
38d518c9
EZ
110922004-01-09 David Carlton <carlton@kealia.com>
11093
11094 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11095 * dwarf2read.c (read_namespace): Pull out name-generating code
11096 into namespace_name. Rename previous_namespace to previous_prefix
11097 and processing_current_namespace to processing_current_prefix..
11098 (namespace_name): New function.
11099 (add_partial_symbol): Substitute uses of pdi->name with
11100 actual_name.
11101 * cp-support.h: Rename processing_current_namespace to
11102 processing_current_prefix.
11103 Update copyright year.
11104 * cp-namespace.c: Rename processing_current_namespace to
11105 processing_current_prefix.
11106 Update copyright year.
fe61caab 11107
1e4728e7
AC
111082004-01-09 Andrew Cagney <cagney@redhat.com>
11109
11110 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11111
c77c642a
MK
111122004-01-09 Mark Kettenis <kettenis@gnu.org>
11113
11114 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11115 complaining.
11116 (process_one_symbol): Deal with N_PATCH stabs.
11117
b44e9041
EZ
111182004-01-09 Elena Zannoni <ezannoni@redhat.com>
11119
11120 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11121 ifdeffed code.
11122 Update copyright year.
38d518c9 11123
eccfb640
MC
111242004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11125
11126 * config/pa/tm-hppa.h: Update extern declarations for
11127 hppa32_hpux_frame_saved_pc_in_sigtramp,
11128 hppa32_hpux_frame_base_before_sigtramp, and
11129 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11130
848c5feb
MC
111312004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11132
11133 * config/pa/tm-hppah.h: Update copyright years.
11134
3cc5d663
AC
111352004-01-08 Andrew Cagney <cagney@redhat.com>
11136
11137 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11138 (mips_o32_reg_struct_has_addr): Delete function.
11139 (mips_gdbarch_init): Update.
11140 (mips_extract_struct_value_address): Delete function.
11141
bfec0b41
JJ
111422004-01-08 David Mosberger <davidm@hpl.hp.com>
11143
11144 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11145 reality.
11146
16e109ca
AC
111472004-01-07 Andrew Cagney <cagney@redhat.com>
11148
6214a8a1
AC
11149 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11150 architecture's elf flags (when available).
11151
8d5838b5
AC
11152 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11153 FPU to the start, check the MIPS FPU when looking for an old
11154 architecture.
11155 (set_mipsfpu_single_command): Update the architecture.
11156 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11157
480d3dd2
AC
11158 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11159 (mips_mask_address_p): Add "tdep" parameter.
11160 (show_mask_address, mips_addr_bits_remove): Update.
11161 (mips_dump_tdep): Update.
11162 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11163 (MIPS_STACK_ARGSIZE): Delete macro.
11164 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11165 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11166 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11167 (mips_dump_tdep): Update.
11168 (MIPS_SAVED_REGSIZE): Delete macro.
11169 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11170 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11171 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11172 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11173 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11174 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11175 (mips_pop_frame, return_value_location): Update.
11176 (mips_n32n64_return_value, mips_dump_tdep): Update.
11177
ec03c1ac
AC
11178 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11179 MIPS ABI.
11180
16e109ca
AC
11181 * mips-tdep.c: Update copyright.
11182 (mips_gdbarch_init): Merge two code blocks handling the register
11183 name and number layout.
11184
15255275
MS
111852004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11186
11187 * tracepoint.c (validate_actionline): Fix segv at EOF
11188
9f9057da
MC
111892004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11190
11191 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11192 properly for static fields.
11193
0127c0d3 111942004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 11195 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
11196
11197 * disasm.c: Update copyright to include 2004.
11198 (do_mixed_source_and_assembly): For uiout asm list
11199 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 11200 NULL and do so prior to loop. Only reset when we close off
0127c0d3 11201 the tuple/list. Move check for whether to close off the
fe61caab 11202 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
11203 on each loop iteration.
11204
5269965e
AC
112052004-01-05 Andrew Cagney <cagney@redhat.com>
11206
54f1137d
AC
11207 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11208 should be a switch case and not a label.
11209 * mips-tdep.c (mips32_next_pc): Delete unused labels
11210 "greater_equal_branch" and "less_zero_branch".
11211 * jv-valprint.c (java_print_value_fields): Delete unused label
11212 "flush_it".
11213
5269965e
AC
11214 * target.c (unpush_target): Only close a target that is in the
11215 target stack.
11216
dbc22fa1
MK
112172004-01-05 Mark Kettenis <kettenis@gnu.org>
11218
9515395e
MK
11219 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11220 address from [sp + 64] instead of %o2.
11221
dbc22fa1
MK
11222 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11223 fixes PR backtrace/1476.
11224
5439edaa
AC
112252004-01-05 Andrew Cagney <cagney@redhat.com>
11226
11227 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11228 move to start of file.
11229 * i386-tdep.h (struct regcache): Add opaque declaration.
11230 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11231 declaration.
11232 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11233 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11234 * win32-nat.c (fake_create_process): Use ISO C style definition.
11235 * stabsread.c (define_symbol): Delete #ifndef
11236 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11237 stabs_argument_has_addr call, macro never defined.
11238
19061abe
MC
112392004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11240
11241 * op50-rom.c: Delete.
11242 * w89k-rom.c: Delete.
11243 * Makefile.in: Remove references.
11244
e53bef9f
MK
112452004-01-04 Mark Kettenis <kettenis@gnu.org>
11246
11247 * x86-64-tdep.c: Update copyright year.
11248 (struct amd64_register_info): Rename from x86_64_register_info.
11249 (amd64_register_info): Rename from x86_64_register_info.
11250 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11251 (amd64_register_name): Rename from x86_64_register_name.
11252 (amd64_register_type): Rename from x86_64_register_type.
11253 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11254 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11255 (amd64_dwarf_reg_to_regnum): Rename from
11256 x86_64_dwarf_reg_to_regnum.
11257 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11258 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11259 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11260 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11261 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11262 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11263 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11264 (amd64_frame_cache): Rename from x86_64_frame_cache.
11265 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11266 (amd64_frame_prev_register): Rename from
11267 x86_64_frame_prev_register.
11268 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11269 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11270 (amd64_sigtramp_frame_cache): Rename from
11271 x86_64_sigtramp_frame_cache.
11272 (amd64_sigtramp_frame_prev_register): Rename from
11273 x86_64_sigtramp_frame_prev_register.
11274 (amd64_sigtramp_frame_unwind): Rename from
11275 x86_64_sigtramp_frame_unwind.
11276 (amd64_sigtramp_frame_sniffer): Rename from
11277 x86_64_sigtramp_frame_sniffer.
11278 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11279 (amd64_frame_base): Rename from x86_64_frame_base.
11280 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11281 (amd64_frame_align): Rename from x86_64_frame_align.
11282 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11283 (amd64_regset_from_core_section): Rename from
11284 x86_64_regset_from_core_section.
11285 (x86_64_init_abi): Update comments.
11286
fca6aa58
NR
112872004-01-04 Nick Roberts <nick@nick.uklinux.net>
11288
11289 * MAINTAINERS (write after approval): Add myself.
11290
8ada74e3
MK
112912004-01-04 Mark Kettenis <kettenis@gnu.org>
11292
11293 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11294 `float' arguments.
11295
5154b0cd
MK
112962004-01-04 Mark Kettenis <kettenis@gnu.org>
11297
11298 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11299 such that it mentions a specific version of GCC that exhibits this
11300 bug.
11301
fb316966
MK
113022004-01-03 Mark Kettenis <kettenis@gnu.org>
11303
200cc553
MK
11304 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11305 structure that has a single `float' member, store it in %f1 in
11306 addition to %f0.
11307
e226a4a0
MK
11308 * sparc-sol2-nat.c: Add missing '\'.
11309
b9d4c5ed
MK
11310 * sparc-tdep.c (sparc32_return_value): New function.
11311 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11312 Remove functions.
11313 (sparc32_gdbarch_init): Set return_value, don't set
11314 extract_return_value, store_return_value, use_struct_convention
11315 and return_value_on_stack.
11316
fb316966
MK
11317 * sparc-sol2-nat.c: Add missing ')'.
11318
1af510a8
JB
113192004-01-03 J. Brobecker <brobecker@gnat.com>
11320
11321 * infrun.c (handle_step_into_function): New function.
11322 (handle_inferior_event): Extract out some code into the new
11323 function above.
11324
5cf4d23a
JB
113252004-01-03 J. Brobecker <brobecker@gnat.com>
11326
11327 * infrun.c (handle_inferior_event): Move the declaration of
11328 real_stop_pc inside the if blocks where it is used.
11329
60af1db2
MK
113302004-01-03 Mark Kettenis <kettenis@gnu.org>
11331
11332 * sparc64-tdep.c (sparc64_16_byte_align_p)
11333 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11334 Use check_typedef to get subtypes of structures and unions.
11335 (sparc64_store_return_value): Fix calculation of the appropriate
11336 offset into VALBUF when storing a structure or union.
11337 (sparc64_return_value): New function.
11338 (sparc64_use_struct_convention): Remove function.
11339 (sparc64_init_abi): Set return_value, don't set
11340 extract_return_value, store_return_value and
11341 use_struct_convention.
11342
1a901d3f
EZ
113432004-01-03 Eli Zaretskii <eliz@elta.co.il>
11344
11345 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11346 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11347 gdb/config/alpha/xm-alphaosf.h,
11348 gdb/config/powerpc/tm-ppcle-eabi.h,
11349 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11350 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11351 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11352 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11353 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11354 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11355 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11356 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11357 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11358 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11359 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11360 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11361 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11362 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11363 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11364 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11365 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11366 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11367 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11368 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11369 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11370 Remove lines for .cvsignore files.
11371
ef52e463
JB
113722004-01-03 J. Brobecker <brobecker@gnat.com>
11373
11374 * infrun.c: Back out the previous change.
11375
cb1bf9dc
MK
113762004-01-03 Mark Kettenis <kettenis@gnu.org>
11377
f0424ef6
MK
11378 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11379 sparc-*-sunos4* to the list of REMOVED configurations.
11380
cb1bf9dc
MK
11381 * configure.tgt: Add back sparc-*-vxworks*.
11382 * remote-vxsparc.c: Remove all includes except for "defs.h",
11383 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11384 Include "sparc-tdep.h".
11385 (SPARC_R_G1): New define.
11386 (vxsparc_gregset): New variable.
11387 (ext_format_sparc): Remove extern declaration.
11388 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11389 sparc32_supply_fpregset.
11390 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11391 sparc_collect_rwindow and sparc32_collect_fpregset.
11392 * config/sparc/tm-vxworks.h: New file, based on recently removed
11393 tm-vxsparc.h.
11394 * config/sparc/vxworks.mt: New file, based on recently removed
11395 vxworks.mt.
fe61caab 11396
5e938f9f
JB
113972004-01-03 J. Brobecker <brobecker@gnat.com>
11398
11399 * infrun.c (handle_step_into_function): New function.
11400 (handle_inferior_event): Extract out some code into the new
11401 function above.
11402
386c036b
MK
114032004-01-02 Mark Kettenis <kettenis@gnu.org>
11404
11405 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11406 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11407 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11408 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11409 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11410 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11411 (sparc_nat_h): New variable.
11412 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11413 (tm-sun4os4.h): Remove dependency.
11414 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11415 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11416 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11417 sparc-tdep.o): Update dependencies.
11418 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11419 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11420 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11421 dependencies.
11422 * configure.host: Remove existing sparc-*-lynxos*,
11423 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11424 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11425 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11426 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11427 triplets.
11428 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11429 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11430 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11431 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11432 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11433 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11434 sparc64-*-solaris2* and sparc64-*-* triplets.
11435 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11436 "symtab.h" and "objfiles.h".
11437 (BIAS): Remove define.
11438 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11439 (X_DISP19): Remove macros.
11440 (sparc_fetch_instruction): Remove function.
11441 (struct gdbarch_tdep): Remove definition.
11442 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11443 (sparc_breakpoint_from_pc): Remove function.
11444 (struct sparc64_frame_cache): Remove definition.
11445 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11446 sparc64_unwind_pc): Remove functions.
11447 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11448 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11449 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11450 (sparc64_frame_cache): Change return type to `struct
11451 sparc_frame_cache *'. Simply call sparc_frame_cache.
11452 (sparc64_frame_this_id, sparc64_frame_prev_register,
11453 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11454 instead of `struct sparc64_frame_cache.
11455 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11456 sparc_analyze_control_transfer, sparc_software_single_step,
11457 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11458 _initialize_sparc64_tdep): Remove functions.
11459 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11460 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11461 macros.
11462 (sparc64_supply_gregset, sparc64_collect_gregset,
11463 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11464 (sparc64_init_abi): New function.
11465 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11466 inclusion guard. Include "sparc-tdep.h".
11467 (BIAS): Define.
11468 (r_tstate_offset, r_fprs_offset): New defines.
11469 (enum sparc_regnum): Remove defenition.
11470 (enum sparc64_regnum): Reformat.
11471 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11472 (sparc64_init_abi, sparc64_supply_gregset,
11473 sparc64_collect_gregset, sparc64_supply_fpregset,
11474 sparc64_collect_fpregset): New prototypes.
11475 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11476 Add extern declarations.
11477 (sparc64_sol2_init_abi): New prototype.
11478 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11479 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11480 prototypes.
11481 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11482 "sparnbsd-nat.h".
11483 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11484 functions.
11485 (_initialize_sparc64fbsd_nat): Remove initialization of
11486 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11487 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 11488 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
11489 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11490 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11491 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11492 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11493 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11494 (sparc64fbsd_r_y_offset): Remove variables.
11495 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11496 Make static and const.
11497 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11498 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11499 functions.
11500 (sparc64fbsd_gregset): New variable.
11501 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11502 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11503 and sparc64_supply_fpregset.
11504 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11505 (sparc64fbsd_sigtramp_frame_this_id)
11506 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11507 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11508 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11509 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11510 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11511 * sparcnbsd-tdep.c: Update copyright year. Include
11512 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11513 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11514 "value.h" and "sparcnbsd-tdep.h".
11515 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11516 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11517 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11518 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11519 defines.
11520 (sparcnbsd_gregset): New variable.
11521 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11522 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11523 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11524 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11525 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11526 variables.
11527 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11528 (sparc32nbsd_sigcontext_frame_this_id)
11529 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11530 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11531 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11532 (sparcnbsd_get_longjmp_target_32,
11533 sparcnbsd_get_longjmp_target_64): Remove functions.
11534 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11535 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11536 sparcnbsd_init_elf): Remove.
11537 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11538 (sparcnbsd_elf_init_abi): New functions.
11539 (_initialize_sparcnbsd_tdep): New prototype.
11540 (_initialize_sparnbsd_tdep): Update.
11541 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11542 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11543 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11544 * config/sparc/linux.mh: Update comment.
11545 (XM_FILE, HOST_IPC): Remove variables.
11546 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11547 sparc-linux-nat.o.
11548 * config/sparc/linux.mt: Update comment.
11549 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11550 * config/sparc/nbsd.mt: Reformat.
11551 * config/sparc/nbsd64.mh: Update comment.
11552 (NATDEPFILES): Add sparc-nat.o.
11553 * config/sparc/nbsd64.mt: Update comment.
11554 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11555 (TM_FILE): Set to tm-nbsd.h.
11556 * config/sparc/nbsdelf.mh: Update comment.
11557 (NATDEPFILES): Add sparc-nat.o.
11558 (XM_FILE): Delete.
11559 * config/sparc/nbsdaout.mh: Update comment.
11560 (NATDEPFILES): Add sparc-nat.o
11561 (XM_FILE): Delete.
11562 * config/sparc/nm-linux.h: Update copyright year. Don't include
11563 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11564 inclusion.
11565 (KERNEL_U_SIZE): Remove define.
11566 (kernel_u_size): Remove prototype.
11567 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11568 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11569 "regcache.h".
11570 (CHILD_PREPARE_TO_STORE): Remove define.
11571 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11572 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11573 sparcnbsd-nat.c: Rewrite files.
11574 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11575 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11576 sparcnbsd-tdep.h: Remove files.
11577 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11578 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11579 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11580 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11581 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11582 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11583 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11584 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11585 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11586 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11587 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11588 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11589 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11590 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11591 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11592 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11593 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11594 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11595 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11596
ee84457a
AC
115972004-01-02 Andrew Cagney <cagney@redhat.com>
11598
11599 From 2003-12-18 Kazuhiro Inaoka:
11600 * configure.host: Add m32r-linux target.
11601
0bc2134e
MC
116022004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11603
11604 * top.c (print_gdb_version): Update year to 2004.
11605
89a72f9c
MM
116062004-01-02 Mark Mitchell <mark@codesourcery.com>
11607
11608 * MAINTAINERS: Add myself to the write-after-approval category.
11609
86b013ed
DJ
116102004-01-02 Daniel Jacobowitz <drow@mvista.com>
11611
11612 From Bernardo Innocenti <bernie@develer.com>:
11613 * configure.tgt: Add uClinux target.
11614
e42c9534
AC
116152004-01-02 Andrew Cagney <cagney@redhat.com>
11616
11617 * utils.c (do_my_cleanups): Make static, add forward declaration.
11618 * defs.h (do_my_cleanups): Delete declaration.
11619
162467d3
EZ
116202004-01-02 Eli Zaretskii <eliz@elta.co.il>
11621
11622 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11623 bfd/ChangeLog-0203.
11624
78434e59
MK
116252004-01-02 Mark Kettenis <kettenis@gnu.org>
11626
11627 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11628 in <machine/reg.h>.
11629 * configure, config.in: Regenerate.
11630
48efe704
AC
11631For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11632tui/ChangeLog-1998-2003.
c906108c
SS
11633\f
11634Local Variables:
11635mode: change-log
11636left-margin: 8
11637fill-column: 74
11638version-control: never
11639End:
This page took 1.093902 seconds and 4 git commands to generate.