* allinsn.exp: Add new tests.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7c679d16
JB
12004-09-07 Jim Blandy <jimb@redhat.com>
2
3 * frame.h (frame_register): Doc fix.
4
1f04aa62
AC
52004-09-07 Andrew Cagney <cagney@gnu.org>
6
7 * vx-share/wait.h: Delete #ifdef USG.
8 * utils.c (request_quit): Ditto.
9 * tui/tui.c (tui_reset): Ditto.
10 * remote.c: Ditto.
11 * remote-sds.c: Ditto.
12 * remote-rdi.c: Ditto.
13 * mdebugread.c: Ditto.
14 * m68klinux-nat.c: Ditto.
15 * infttrace.c: Ditto.
16 * infptrace.c: Ditto.
17 * i386v-nat.c: Ditto.
18 * exec.c: Ditto.
19 * dbxread.c: Ditto.
20 * core-aout.c: Ditto.
21
90edbfbc
JB
222004-09-05 Joel Brobecker <brobecker@gnat.com>
23
24 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
25 heuristic_proc_desc.
26 (mips_insn32_frame_cache): Likewise.
27
01f4bf2b
JB
282004-09-04 Joel Brobecker <brobecker@gnat.com>
29
30 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
31 left behind by error.
32
8511a048
JB
332004-09-04 Joel Brobecker <brobecker@gnat.com>
34
35 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
36 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
37
649dfe9f
JB
382004-09-04 Joel Brobecker <brobecker@gnat.com>
39
40 * config/rs6000/xm-aix4.h: Remove this file.
41 * config/rs6000/aix4.mh (XM_FILE): Delete.
42
6e50f889
JB
432004-09-04 Joel Brobecker <brobecker@gnat.com>
44
45 * config/rs6000/xm-rs6000.h: Remove this file.
46 * config/rs6000/rs6000.mh (XM_FILE): Remove.
47
b8c4aece
AC
482004-09-03 Andrew Cagney <cagney@gnu.org>
49
fb603883
AC
50 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
51 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
52 only use.
53
c9343fd1
AC
54 * mips-tdep.c (temp_saved_regs): Delete.
55 (set_reg_offset): Replace saved_regs parameter with this_cache.
56 (heuristic_proc_desc, mips16_heuristic_proc_desc)
57 (mips32_heuristic_proc_desc): Add this_cache parameter.
58 (mips_insn32_frame_cache, mips_insn16_frame_cache)
59 (after_prologue): Pass a NULL this_cache.
60
9733cfe1
AC
61 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
62 non-kernel trap prologues.
63
0d5febcc
AC
64 * mips-tdep.c (find_proc_desc): Delete function.
65 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
66 simplify.
67 (mips_insn16_frame_cache): Replace find_proc_desc with code from
68 mips_insn32_frame_cache.
69
9733cfe1 70 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
71 Simplify as NEXT_FRAME is NULL.
72 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
73
177f84a3
AC
74 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
75 local variable.
76 (mips_skip_prologue): Update.
77
465f7520
AC
78 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
79 "cur_frame" parameter.
177f84a3
AC
80 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
81 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 82
e38b8658
AC
83 * config/vax/nm-obsd.h: Delete file.
84 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
85 * config/vax/nm-nbsd.h: Delete file.
86 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
87 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
88 * config/sh/nm-nbsd.h: Delete file.
89 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
90 * config/rs6000/nm-rs6000ly.h: Delete file.
91 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
92 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
93 * config/powerpc/nm-obsd.h: Delete file.
94 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
95 * config/powerpc/nm-nbsd.h: Delete file.
96 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
97 * config/pa/nm-obsd.h: Delete file.
98 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
99 * config/mips/nm-nbsd.h: Delete file.
100 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
101 * config/m88k/nm-obsd.h: Delete file.
102 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
103 * config/m68k/nm-nbsd.h: Delete file.
104 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
105 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
106 * config/i386/nm-nbsd.h: Delete file.
107 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
108 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
109 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
110 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
111 * config/i386/nm-i386lynx.h: Delete file.
112 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
113 * config/arm/nm-nbsd.h: Delete file.
114 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
115 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
116
be1ed680
AC
117 * config/i386/tm-fbsd.h: Delete file.
118 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
119 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
120
4b392b26
AC
121 * config/rs6000/tm-rs6000-aix4.h: Delete file.
122 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
123 * config/rs6000/aix4.mt (TM_FILE): Set to
124 config/rs6000/tm-rs6000.h.
125 * config/powerpc/tm-ppc-aix.h: Delete file.
126 * config/powerpc/aix.mt (TM_FILE): Set to
127 config/rs6000/tm-rs6000.h.
128 * config/m68k/tm-linux.h: Delete file.
129 * config/m68k/linux.mt (TM_FILE): Set to solib.h
130 * config/i386/tm-linux64.h: Delete file.
131 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
132 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
133
f3219c75
AC
134 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
135 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
136 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
137 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
138 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
139 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
140 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
141 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
142 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
143
b8c4aece
AC
144 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
145 gdb_host_cpu.
146
8ac2e020
JB
1472004-09-02 Joel Brobecker <brobecker@gnat.com>
148
149 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
150 Minor reformatting. Some code factoring.
151
c185a355
AC
1522004-09-02 Andrew Cagney <cagney@gnu.org>
153
63f22f0d
AC
154 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
155 * config/vax/tm-nbsd.h: Delete file.
156 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
157 * config/sparc/tm-vxworks.h: Delete file.
158 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
159 * config/sparc/tm-nbsd.h: Delete file.
160 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
161 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
162 * config/sparc/tm-linux.h: Delete file.
163 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
164 * config/s390/tm-linux.h: Delete file.
165 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
166 * config/pa/tm-bsd.h: Delete file.
167 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
168 * config/m68k/tm-obsd.h: Delete file.
169 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
170 * config/m68k/tm-nbsd.h: Delete file.
171 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
172 * config/i386/tm-vxworks.h: Delete file.
173 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
174 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
175 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
176 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
177 * config/i386/tm-nbsd.h: Delete file.
178 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
179 * config/i386/tm-i386lynx.h: Delete file.
180 * config/cris/cris.mt (TM_FILE): Set to solib.h.
181 * config/cris/tm-cris.h: Delete file.
182
0f475e27
AC
183 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
184 * configure: Re-generate.
185 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
186 * config/arm/tm-nbsd.h: Delete file.
187
458ed000
AC
188 * config/powerpc/tm-ppcle-sim.h: Delete.
189 * config/powerpc/tm-ppcle-eabi.h: Delete.
190 * config/powerpc/tm-nbsd.h: Delete.
191 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
192 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
193 tm-ppcle-eabi.h.
194
f14375f3
AC
195 * config/i386/nto.mh (NAT_FILE): Delete.
196 * config/i386/nm-nto.h: Delete.
197
c34d127c
AC
198 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
199 * config/m68k/tm-os68k.h: Ditto.
200 * config/m68k/tm-monitor.h: Ditto.
201 * config/m68k/tm-cisco.h: Ditto.
202 * config/m68k/st2000.mt (TM_FILE): Delete.
203 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
204 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
205 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
206 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
207
f7f0fe03
AC
208 * config/m68k/tm-st2000.h: Delete.
209 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
210 * config/sparc/fbsd.mt (TM_FILE): Delete.
211 * config/sparc/tm-fbsd.h: Delete.
212
a2558533
AC
213 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
214 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
215 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
216
b78960be
AC
217 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
218 GDB_TM_FILE and GDB_XM_FILE.
219 * gdbarch.c: Re-generate.
220 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
221 quotes in macro definition.
222 * configure.in: Re-generate.
223
4d60522e
AC
224 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
225 validating architecture methods.
226 * gdbarch.c: Re-generate.
227
5010d38b
AC
228 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
229 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
230 GDB_MULTI_ARCH_PARTIAL.
231 * gdbarch.h: Re-generate.
232
c185a355
AC
233 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
234 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
235 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
236 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
237 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
238 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
239 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
240 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
241 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
242 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
243 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
244 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
245
14aaa6ab
AC
2462004-09-01 Andrew Cagney <cagney@gnu.org>
247
248 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
249 and main_func_highpc.
250 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
251 * objfiles.c (init_entry_point_info, objfile_relocate): Update
252 * nlmread.c (nlm_symfile_read): Update.
253
a343eb3c
JB
2542004-09-01 Joel Brobecker <brobecker@gnat.com>
255
256 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
257 (mips_insn32_frame_cache): Inline call to find_proc_desc.
258 (find_proc_desc): Remove dead code.
259
4fbbbd07
JB
2602004-09-01 Joel Brobecker <brobecker@gnat.com>
261
262 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
263
84acb35a
JJ
2642004-09-01 Jeff Johnston <jjohnstn@redhat.com>
265
266 * observer.sh: Add struct so_list declaration.
267 * Makefile.in: Add dependencies on observer.h for solib.c and
268 breakpoint.c.
269 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
270 function.
271 (_initialize_breakpoint): Register
272 disable_breakpoints_in_unloaded_shlib as an observer of the
273 "solib unloaded" observation event.
274 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
275 call decode_line_1 so unfound breakpoint errors are silent.
276 * solib.c (update_solib_list): When a solib is discovered to have
277 been unloaded by the program, notify all observers of the
278 "solib unloaded" observation event.
279
c8cd9f6c
AC
2802004-09-01 Andrew Cagney <cagney@gnu.org>
281
282 * frame.c: Include "objfiles.h".
283 (inside_main_func): New function.
284 (get_prev_frame): Use new inside_main_func.
285 * Makefile.in (frame.o): Update dependencies.
286 * defs.h (inside_main_func): Delete declaration.
287 * blockframe.c (inside_main_func): Delete function.
288
1168df01
JB
2892004-08-31 Jim Blandy <jimb@redhat.com>
290
291 * dwarf2read.c (is_vtable_name): New function, based on logic from
292 read_structure_type, but passing the correct length to strncmp,
293 and using 'sizeof' instead of 'strlen'.
294 (read_structure_type): Call it.
295
f14f9744
JB
2962004-08-31 Joel Brobecker <brobecker@gnat.com>
297
298 * config/powerpc/aix.mh: Add comment.
299
386d4518
PG
3002004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
301
302 * MAINTAINERS: Add self to Write-After-Approval.
303
7d97d5e2
MI
3042004-08-30 Manoj Iyer <manjo@austin.ibm.com>
305
306 * MAINTAINERS: Add self to Write-After-Approval.
307
68f53502
AC
3082004-08-30 Andrew Cagney <cagney@gnu.org>
309
310 Fix PR breakpoints/1757.
311 * infrun.c (struct execution_control_state): Replace
312 remove_breakpoints_on_following_step with
313 step_after_step_resume_breakpoint.
314 (init_execution_control_state): Update.
315 (handle_inferior_event): For signals, when stepping off a
316 breakpoint, set step_after_step_resume_breakpoint. When
317 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
318 (keep_going): Delete code handling
319 remove_breakpoints_on_following_step.
320
7ca2d3a3
DL
3212004-08-29 David Lecomber <david@streamline-computing.com>
322
323 Fix PR gdb/648
324 * language.h (enum array_ordering): New enum.
325 * language.h (struct language_defn): New la_array_ordering
326 attribute.
327 * language.c (unknown_language_defn, auto_language_defn)
328 (local_language_defn): Ditto.
329 * ada-lang.c (ada_language_defn): Ditto.
330 * c-lang.c (c_language_defn, cplus_language_defn)
331 (asm_language_defn, minimal_language_defn): Ditto.
332 * f-lang.c (f_language_defn): Ditto.
333 * jv-lang.c (java_language_defn): Ditto.
334 * m2-lang.c (f_language_defn): Ditto.
335 * objc-lang.c (objc_language_defn): Ditto.
336 * p-lang.c (pascal_language_defn): Ditto.
337 * scm-lang.c (scm_language_defn): Ditto.
338 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
339 oriented large to small in type structure.
340 * dwarf2read.c (read_array_order): New function.
341 (read_array_type): Use read_array_order to check row/column
342 major ordering.
343
e354df01
NW
3442004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
345
346 * target.c (target_resize_to_sections): Check
347 current_target.to_sections for an old value when updating.
348
9185ddce
JB
3492004-08-27 Joel Brobecker <brobecker@gnat.com>
350
351 * procfs.c (dbx_link_bpt_addr): New static global variable.
352 (dbx_link_shadow_contents): New static global variable.
353 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
354 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
355 if we just hit it.
356 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
357 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
358 from run to run.
359 (procfs_create_inferior): Remove syssgi syscall-exit notifications
360 after the inferior has been forked.
361 (remove_dbx_link_breakpoint): New function.
362 (dbx_link_addr): New function.
363 (insert_dbx_link_bpt_in_file): New function.
364 (insert_dbx_link_bpt_in_region): New function.
365 (insert_dbx_link_breakpoint): New function.
366 (proc_trace_syscalls_1): New function, extracted from
367 proc_trace_syscalls.
368 (proc_trace_syscalls): Replace extract code by call to
369 proc_trace_syscalls_1.
370 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
371 is no longer valid.
372
e6742ace
JB
3732004-08-25 Jim Blandy <jimb@redhat.com>
374
375 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
376
8fb3e588
AC
3772004-08-25 Andrew Cagney <cagney@gnu.org>
378
629a41ee
AC
379 * infrun.c (struct execution_control_state): Delete field
380 "stepping_through_sigtramp".
381 (init_execution_control_state): Do not set same.
382 (context_switch): Do not pass same to save_infrun_state and
383 load_infrun_state.
384 * gdbthread.h (struct thread_info): Delete field
385 stepping_through_sigtramp.
386 (save_infrun_state, load_infrun_state): Delete parameter
387 stepping_through_sigtramp.
388 * thread.c (load_infrun_state, save_infrun_state): Update.
389
8fb3e588
AC
390 * infrun.c: Re-indent. Move expression operators to the beginning
391 of the line. Remove long disabled #if 0 code.
392
49c54768
AC
3932004-08-24 Andrew Cagney <cagney@gnu.org>
394
395 * doublest.h (floatformat_ieee_quad): Rename
396 floatformat_ia64_quad.
397 * doublest.c (floatformat_ieee_quad): Rename
398 floatformat_ia64_quad.
399 (_initialize_doublest): Update.
400
5ca2e327
JB
4012004-08-24 Jim Blandy <jimb@redhat.com>
402
87808bd6
JB
403 * dwarf2expr.h (struct dwarf_expr_context): New members
404 'num_pieces' and 'pieces', for returning the result of an
405 expression that uses DW_OP_piece.
406 (struct dwarf_expr_piece): New struct type.
407 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
408 pieces.
409 (free_dwarf_expr_context): Free pieces, if any.
410 (add_piece): New function.
411 (execute_stack_op): Implement DW_OP_piece.
412 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
413 expression is a list of pieces, print an error message.
414 (dwarf2_loc_desc_needs_frame): If the expression yields
415 pieces, and any piece is in a register, then we need a frame.
416
5ca2e327
JB
417 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
418 the stack until we've decided what sort of result the evaluation
419 has produced. Use separate variables, with more specific names.
420
2afeb6b8
RE
4212004-08-23 Richard Earnshaw <rearnsha@arm.com>
422
423 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
424 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
425 (arm_netbsd_init_abi_common): Register them.
426
5885ab49
MK
4272004-08-22 Mark Kettenis <kettenis@gnu.org>
428
fda820a6
MK
429 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
430
1c5bf419
MK
431 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
432 safe_frame_unwind_memory instead of target_read_memory.
433
8cbba7c8
MK
434 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
435 Reorder includes.
436 (fetch_register, store_register): Remove prototypes.
437 (child_resume): Reorganize code and comments such that it is
438 grouped a bit more logically.
439 (attach): Explicitly compare errno against 0.
440 (detach): Likewise. Use perror_with_name instead of
441 print_sys_errmsg.
442 * Makefile.in (infptrace.o): Update dependencies.
443
c5fa4245
MK
444 * ia64-linux-nat.c: Update copyright year.
445 (fetch_debug_register, store_debug_register)
446 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
447 PTRACE_TYPE_ARG3.
448 * config/ia64/nm-linux.h: Update copyright year.
449 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
450
387c058c
MK
451 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
452 from CORE_ADDR to struct frame_info *. Use
453 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
454 (amd64_linux_sigtramp_p): Adjust for changed signature of
455 and64_linux_sigtramp_start
456
277215a6
MK
457 * gdb_ptrace.h: GNU/Linux.
458
25f6178e
MK
459 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
460 Remove defines.
461
652fc137
MK
462 * infptrace.c: Include "gdb_assert.h".
463 (PTRACE_XFER_TYPE): Remove define.
464 (offsetof): Only define if U_REGS_OFFSET isn't defined.
465 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
466 Tweak comment.
467 (fetch_inferior_registers, store_inferior_registers): Remove
468 redundant culry braces. Tweak comment. s/regno/regnum.
469 * Makefile.in (infptrace.o): Update dependencies.
470
5885ab49
MK
471 * configure.in: Change test for return type of ptrace to default
472 to `long' instead of `int'.
473 * configure: Regenerate.
474
11003ae3
MK
4752004-08-21 Mark Kettenis <kettenis@gnu.org>
476
6b95110c
MK
477 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
478
bcb3dc3d
MK
479 * configure.in: Check for ttrace function.
480 * configure, config.in: Regenerate.
481
11003ae3
MK
482 * gdb_ptrace.h: New file.
483 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
484 <sys/ptrace.h>.
485 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
486 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
487 (attach): Don't define PT_ATTACH.
488 (detach): Don't define PT_DETACH.
489 * Makefile.in (gdb_ptrace_h): New variable.
490 (infptrace.o): Update dependencies.
491
f8707cac
MK
4922004-08-16 Mark Kettenis <kettenis@gnu.org>
493
494 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
495 instead of `int' if not already defined.
496 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
497 PTRACE_TYPE_ARG3.
498 * infptrace.c (call_ptrace): Revert change that replaced
499 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
500
655c5466
MK
5012004-08-15 Mark Kettenis <kettenis@gnu.org>
502
156e5ba7
MK
503 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
504 Remove defines.
505
de9a9e51
MK
506 * linux-nat.c (kill_inferior): Add missing third and fourth
507 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
508
88800403
MK
509 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
510 PTRACE_TYPE_RET.
511
849a1d7c
MK
512 * proc-why.c (proc_prettyfprint_why): Fix format string.
513
61ad16d1
MK
514 * solib-osf.c (osf_current_sos): Remove unsused label.
515
a6ed5501
MK
516 * configure.in: Add <ncurses/ncurses.h> to the list of possible
517 curses headers.
518 * configure, config.in: Regenerate.
519 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
520 <ncurses/ncurses.h>.
521
016ddeca
MK
522 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
523 * config/nm-nbsd.h: Update copyright year.
524 (PTRACE_ARG3_TYPE): Remove define.
525
49ec097f
MK
526 * sparc-nat.c (fetch_inferior_registers)
527 (store_inferior_registers, sparc_xfer_wcookie):
528 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
529
9f8e0089
MK
530 * alphabsd-nat.c (fetch_inferior_registers):
531 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
532 PTRACE_TYPE_ARG3.
533 * amd64bsd-nat.c (fetch_inferior_registers)
534 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
535 PTRACE_TYPE_ARG3.
536 * armnbsd-nat.c: Update copyright year.
537 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
538 (store_register, store_regs, store_fp_register, store_fp_regs):
539 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
540 * hppabsd-nat.c (fetch_inferior_registers)
541 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
542 PTRACE_TYPE_ARG3.
543 * i386bsd-nat.c (fetch_inferior_registers)
544 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
545 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
546 * m68kbsd-nat.c (fetch_inferior_registers)
547 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
548 PTRACE_TYPE_ARG3.
549 * m88kbsd-nat.c (fetch_inferior_registers)
550 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
551 PTRACE_TYPE_ARG3.
552 * mipsnbsd-nat.c: Update copyright year.
553 (fetch_inferior_registers, store_inferior_registers):
554 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
555 * ns32knbsd-nat.c: Update copyright year.
556 (fetch_inferior_registers, store_inferior_registers):
557 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
558 * ppcnbsd-nat.c (fetch_inferior_registers):
559 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
560 PTRACE_TYPE_ARG3.
561 * ppcobsd-nat.c (fetch_inferior_registers):
562 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
563 PTRACE_TYPE_ARG3.
564 * shnbsd-nat.c: Update copyright year.
565 (fetch_inferior_registers, store_inferior_registers):
566 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
567 * vaxbsd-nat.c (fetch_inferior_registers)
568 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
569 PTRACE_TYPE_ARG3.
570
655c5466
MK
571 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
572 PTRACE_TYPE_ARG3.
573 * infptrace.c (call_ptrace, child_resume, attach, detach)
574 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
575 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
576 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
577 PTRACE_TYPE_ARG3.
578
c40d0d10
MK
5792004-08-14 Mark Kettenis <kettenis@gnu.org>
580
5cb0ff31
MK
581 * defs.h: Remove out-of-date comment.
582 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
583 [!GETENV_PROVIDED] (getenv): Remove prototype.
584
5f0f34cb
MK
585 * standalone.c: Remove file.
586 * Makefile.in (standalone.o): Remove dependency.
587
7532965f
MK
588 * i386-linux-nat.c (dummy_sse_values): Remove function and
589 prototype.
590 (i386_linux_dr_get): Fix typo in comment.
591 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
592
1bdc6c53
MK
593 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
594
c40d0d10
MK
595 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
596 from declaration.
597 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
598 from definition.
599
64218d3e
MK
6002004-08-13 Mark Kettenis <kettenis@gnu.org>
601
602 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
603 parenthesis in definition.
604 * configure: Regenerated.
605
926c94e7
MC
6062004-08-12 Michael Chastain <mec.gnu@mindspring.com>
607
608 * PROBLEMS: Mention build/1411.
609
69489883
NN
6102004-08-09 Robert Millan <robertmh@gnu.org>
611
612 Committed by Nathanael Nerode.
613 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
614 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
615
ebb7c577
AC
6162004-08-12 Andrew Cagney <cagney@gnu.org>
617
618 * NEWS: Mention fixes in GDB 6.2.1.
619 * PROBLEMS: Remove mention of mips-irix.
620
232d697c
JB
6212004-08-11 Joel Brobecker <brobecker@gnat.com>
622
623 * config/powerpc/xm-aix.h: Delete.
624 * config/powerpc/aix.mh (MH_FILE): Remove.
625 * config/powerpc/aix432.mh (MH_FILE): Remove.
626
72f4e82b
JB
6272004-08-11 Joel Brobecker <brobecker@gnat.com>
628
629 * config/powerpc/aix.mh: Remove obsolete comment.
630 * config/powerpc/aix432.mh: Likewise.
631
0687ccb2
JB
6322004-08-11 Joel Brobecker <brobecker@gnat.com>
633
634 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
635
dbf3ada7
JB
6362004-08-11 Joel Brobecker <brobecker@gnat.com>
637
e08e1886
JB
638 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
639 this file is now empty.
640 * config/xm-aix4.h: Remove, this file is no longer included
641 anywhere.
642
6432004-08-11 Joel Brobecker <brobecker@gnat.com>
644
645 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
646 that file is now empty.
dbf3ada7
JB
647 (termdef): Remove prototype, function no longer used.
648
4c525ef6
JB
6492004-08-11 Joel Brobecker <brobecker@gnat.com>
650
651 * doc/gdbint.texinfo (Host Definition): Remove documentation
652 for USE_O_NOCTTY, no longer used.
653 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
654 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
655
82e0b968
JB
6562004-08-11 Joel Brobecker <brobecker@gnat.com>
657
658 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
659 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
660 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
661
f2acbe1c
MK
6622004-08-11 Mark Kettenis <kettenis@gnu.org>
663
daa98270
MK
664 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
665 instead of FIVE_ARG_PTRACE.
666
f2acbe1c
MK
667 * inflow.c (O_NOCTTY): Define to zero if not already defined.
668 (new_tty): Use O_NOCTTY unconditionally.
669
cc377e6b
MK
6702004-08-10 Mark Kettenis <kettenis@gnu.org>
671
672 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
673 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
674 fflush on stdout.
675
3bcc18fa
JB
6762004-08-10 Joel Brobecker <brobecker@gnat.com>
677
678 * xcoff_symfile_finish: Replace last call to xmfree by call
679 to xfree.
680
7936743b
AC
6812004-08-10 Andrew Cagney <cagney@gnu.org>
682
cc503c8a
AC
683 * main.c (captured_main): Delete call to init_malloc.
684 * defs.h (init_malloc): Delete declaration.
685 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
686 (init_malloc): Delete functions.
687
2dc74dc1
AC
688 * defs.h (xmfree): Delete.
689 * utils.c (xmfree): Delete function.
690 (xfree): Inline calls to xmfree and mfree.
691 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
692 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
693 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
694 * somread.c (som_symfile_finish): Ditto.
695 * objfiles.c (allocate_objfile, free_objfile):
696 * nlmread.c (nlm_symfile_finish): Ditto.
697 * hpread.c (hpread_symfile_finish): Ditto.
698 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
699 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
700 * coffread.c (coff_symfile_finish): Ditto.
701
aa2ee5f6
AC
702 * defs.h (xmcalloc): Delete declaration.
703 * utils.c (xmcalloc): Delete.
704 (xcalloc): Inline calls to xmcalloc and mcalloc.
705 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
706 xcalloc and xfree.
707 * symtab.c (create_demangled_names_hash): Ditto.
708
0efffb96
AC
709 * defs.h (xmrealloc): Delete.
710 * utils.c (xmrealloc): Delete.
711 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
712 * symmisc.c (extend_psymbol_list): Use xrealloc.
713 * source.c (find_source_lines): Ditto.
714 * hpread.c (hpread_lookup_type): Ditto.
715 * dbxread.c (add_bincl_to_list): Ditto.
716
7936743b
AC
717 * utils.c (xmmalloc): Delete.
718 (xmalloc): Inline xmmalloc and mmalloc calls.
719 (msavestring): Use xmalloc.
720 * defs.h (xmmalloc): Delete declaration.
721 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
722 xmmalloc.
723 * symmisc.c (extend_psymbol_list): Ditto.
724 * symfile.c (init_psymbol_list): Ditto.
725 * source.c (find_source_lines): Ditto.
726 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
727 * elfread.c (elf_symtab_read): Ditto.
728 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
729 * coffread.c (coff_symfile_init): Ditto.
730
252ab814
DC
7312004-08-10 David Carlton <carlton@bactrian.org>
732
733 * MAINTAINERS: Remove David Carlton from c++ testsuite
734 maintainers.
735
8f5ba92b
JG
7362004-08-10 Jerome Guitton <guitton@gnat.com>
737
738 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
739 print a line feed before the prompt.
740
21749010
MK
7412004-08-10 Mark Kettenis <kettenis@gnu.org>
742
743 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
744
1f011ce2
JB
7452004-08-09 Joel Brobecker <brobecker@gnat.com>
746
747 General cleanup of the AIX xm include file:
748 * config/xm-aix4.h (fd_set): Remove undefine.
749 Remove include of <sys/select.h>.
750 (HAVE_TERMIO): Remove define.
751 (USG): Likewise.
752 (NULL): Remove redefine.
753 (alloca): Remove #pragma.
754 (vfork): Remove define.
755 (termdef): Remove.
756 (SIGWINCH_HANDLER): Remove.
757 (SIGWINCH_HANDLER_BODY): Remove.
758
cf4e7692
MK
7592004-08-09 Mark Kettenis <kettenis@gnu.org>
760
761 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
762 GDB_OSABI_OPENBSD_ELF.
763
ac5754fa
MK
7642004-08-07 Robert Millan <robertmh@gnu.org>
765
766 * bsd-kvm.c: Check for nlist.h before including it.
767
086ec9eb
MK
7682004-08-09 Mark Kettenis <kettenis@gnu.org>
769
bbe06c74
MK
770 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
771 sigcontext' offset consistency checks for ancient BSD.
772
3aa7b3b3
MK
773 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
774
086ec9eb
MK
775 * configure.in: Check for <sys/types.h>. Check return and
776 argument types of ptrace.
777 * configure, config.in: Regenerate.
778
09991fa0
JB
7792004-08-09 Jim Blandy <jimb@redhat.com>
780
781 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
782 rs6000_register_sim_regno): Doc fixes.
783
fed7ba43
JB
7842004-08-08 Joel Brobecker <brobecker@gnat.com>
785
786 * mips-tdep.c: Include "floatformat.h".
787 (n32n64_floatformat_always_valid): New function.
788 (floatformat_n32n64_long_double_big): New constant.
789 (mips_gdbarch_init): Set size and format of long double
790 for N32 and N64 ABIs.
791 * Makefile.in (mips-tdep.o): Update dependencies.
792
456fcf94
AC
7932004-08-08 Andrew Cagney <cagney@gnu.org>
794
2f9b146e
AC
795 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
796 print. Improve script's error messages.
797 * gdbarch.h: Re-generate.
798
456fcf94
AC
799 * gdbarch.sh (pformat): New function.
800 (float_format, double_format, long_double_format): List with bit
801 members. Use pformat when printing.
802 * gdbarch.c, gdbarch.h: Re-generate.
803
69e9e646
NW
8042004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
805
806 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
807 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
808 (ppcnbsd_supply_pcb): New function.
809 (_initialize_ppcnbsd_nat): New prototype and function.
810 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
811 (LOADLIBES): New variable.
812 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
813
5ef2d0aa
AC
8142004-08-08 Andrew Cagney <cagney@gnu.org>
815
816 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
817 (builtin_type_ieee_double, builtin_type_ia64_quad)
818 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
819 BE/LE floating-point types.
820 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
821 (builtin_type_ieee_double, builtin_type_ia64_quad)
822 (builtin_type_ia64_spill): Declare.
823 * doublest.c (_initialize_doublest, floatformat_ieee_single)
824 (floatformat_ieee_double, floatformat_arm_ext)
825 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
826 of LE/BE floatformats.
827 * doublest.h: (struct floatformat, floatformat_ieee_single)
828 (floatformat_ieee_double, floatformat_arm_ext)
829 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
830
5c7f2947
MK
8312004-08-08 Mark Kettenis <kettenis@gnu.org>
832
ecac404d
MK
833 * i386gnu-nat.c (gnu_store_registers): Fix typo.
834
9b8607ce
MK
835 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
836 instead of regcache_raw_supply when storing the registers.
837
f6052080
MK
838 * i386gnu-nat.c: Update copyright year.
839 (gnu_store_registers): Don't use deprecated_registers and
840 deprecated_registers_valid. Use regcache_valid_p and
841 regcache_raw_supply instead.
842
17777823
MK
843 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
844 frame_pc_unwind.
845
5240ceac
MK
846 * procfs.c (procfs_pid_to_str): Remove redundant and unused
847 variables. Incapitalized "process".
848
5c7f2947
MK
849 * configure.in: Add cursesX to the list of possible curses libs.
850 Add cursesX.h to the list of possible curses headers.
851 * configure, config.in: Regenerate.
852
da7d81e3
NW
8532004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
854
855 * configure.in: Test for struct lwp in <sys/lwp.h>.
856 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
857 the offset of l_addr in struct lwp.
858
7f245d65
NW
8592004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
860
861 * bsd-kvm.c: Include "gdbcore.h"
862 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
863
47b3f456
AC
8642004-08-07 Andrew Cagney <cagney@gnu.org>
865
70bd8e24
AC
866 * gdbtypes.c (build_flt, build_complex): New functions.
867 (gdbtypes_post_init): Use.
868
9b0dea39
AC
869 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
870
5cf7abac
AC
871 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
872 through to builtin_type_uint128.
873
64d2b26d
AC
874 * c-exp.y: Use builtin_type function to obtain builtin types.
875
7ad6570d
AC
876 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
877 builtin_uint128.
878 * gdbtypes.c (gdbtypes_post_init): Update.
879 (build_gdbtypes): Move initialization of builtin_type_int0
880 through to builtin_type_uint128 from here ...
881 (_initialize_gdbtypes): ... to here.
882 * d10v-tdep.c (d10v_register_type): Update.
883
47b3f456
AC
884 * doublest.c: Update copyright.
885 (floatformat_from_length): Call error when floatformat is NULL.
886 (extract_floating_by_length): Remove NULL fmt check.
887 (store_floating_by_length): Ditto.
888
0a8146bf
AC
8892004-08-07 Andrew Cagney <cagney@gnu.org>
890
891 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
892 that the register is valid.
893
c0ccb908
MK
8942004-08-05 Mark Kettenis <kettenis@chello.nl>
895
8e6bed05
MK
896 * i386-linux-tdep.c (i386_linux_sigtramp_start)
897 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
898 struct frame_info *. Use safe_frame_unwind_memory instead of
899 deprecated_read_memory_nobpt.
900 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
901 changed signature of i386_linux_sigtramp_start and
902 i386_linux_rt_sigtramp_start.
903
24f9f5e3
MK
904 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
905 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
906 instead of deprecated_read_memory_nobpt.
907 (i386nbsd_sigtramp_p): Adjust for changed signature of
908 i386nbsd_sigtramp_offset.
909
c822af0c
MK
910 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
911 safe_frame_unwind_memory instead of target_read_memory.
912
c0ccb908
MK
913 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
914 !NO_SYS_FILE.
915 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
916 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
917 (_initialize_kernel_u_addr): Remove prototype and function.
918 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
919 !NO_SYS_FILE.
920 * xcoffread.c: Likewise.
921
b9e1c0d6
MK
9222004-08-06 Mark Kettenis <kettenis@gnu.org>
923
924 * vax-nat.c: New file.
925 * vaxbsd-nat.c: Tweak comment.
926 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
927 vaxnbsd-tdep.c.
928 (vax-nat.o): New dependency.
929 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
930 (vax-*-ultrix2*): Remove.
931 * config/vax/vax.mh: New file.
932 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
933 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
934 (vax_register_u_addr): New prototype.
935 (REGISTER_U_ADDR): Define using vax_register_u_addr.
936 * config/vax/vaxult2.mh: Remove file.
937 * config/vax/vaxult.mh: Remove file.
938 * config/vax/vaxbsd.mh: Remove file.
939 * config/vax/vax.mt (TM_FILE): Remove.
940 * config/vax/tm-vaxbsd.h: Remove file.
941
9ad7bec7
JB
9422004-08-06 Joel Brobecker <brobecker@gnat.com>
943
944 * aix-thread.c (get_signaled_thread): New function.
945 (iter_trap): Delete, no longer used.
946 (iter_tid): New function.
947 (pd_update): Find the thread that received the SIGTRAP signal
948 by first locating the kernel thread, and then finding its
949 associated thread.
950
bf0d233d
UW
9512004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
952
953 * lin-lwp.c (child_wait): Continue inferior after processing
954 PTRACE_EVENT_CLONE event.
955
d0f853e1
NN
9562004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
957
958 * MAINTAINERS: Add self to Write-After-Approval.
959
ab14aeb0
JJ
9602004-08-05 Jeff Johnston <jjohnstn@redhat.com>
961
962 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
963 libunwind-xxxx.so" where xxxx is UNW_TARGET.
964
9c8dbfa9
AC
9652004-08-05 Andrew Cagney <cagney@gnu.org>
966
c8f3ca46
AC
967 * config/xm-sysv4.h: Delete file.
968 * config/mips/xm-irix5.h: Delete file.
969 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
970 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
971 * config/ia64/xm-aix.h: Delete file.
972 * config/ia64/aix.mh (XM_FILE): Delete.
973 * config/pa/xm-hppah.h: Delete file.
974 * config/pa/hpux11w.mh (XM_FILE): Delete.
975 * config/pa/hpux11.mh (XM_FILE): Delete.
976 * config/pa/hpux1020.mh (XM_FILE): Delete.
977 * config/pa/hppahpux.mh (XM_FILE): Delete.
978
5f7daaff
AC
979 * config/alpha/xm-alphalinux.h: Delete file.
980 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
981 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
982 * config/alpha/xm-alphaosf.h: Delete file.
983 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
984 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
985 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
986 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
987
69babf95
AC
988 * config/i386/xm-i386v.h: Delete file.
989 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
990 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
991 * config/i386/xm-i386sco.h: Delete file.
992 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
993 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
994 * config/i386/xm-i386v4.h: Delete file.
995 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
996 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
997 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
998 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
999
6f009c8a
AC
1000 * config/vax/xm-vax.h: Delete file.
1001 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1002 * config/vax/xm-vaxult2.h: Delete file.
1003 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1004 * config/vax/vaxult2.mh (XM_FILE): Delete.
1005 * config/vax/xm-vaxult.h: Delete file.
1006 * config/vax/vaxult.mh (XM_FILE): Delete.
1007 * config/vax/xm-vaxbsd.h: Delete file.
1008 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1009
9c8dbfa9
AC
1010 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1011 * gdbarch.h, gdbarch.c: Re-generate.
1012 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1013 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1014 * frame.h: Delete deprecated_read_fp from comments.
1015 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1016 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1017
84367a3e
MK
10182004-08-04 Mark Kettenis <kettenis@gnu.org>
1019
9c8e3411
MK
1020 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
1021 trampoline in OpenBSD 3.5-current.
1022
b87bc0d8
MK
1023 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
1024 SSE registers.
1025
84367a3e
MK
1026 * Makefile.in: Remove embedded page breaks.
1027
a44bddec
JB
10282004-08-04 Jim Blandy <jimb@redhat.com>
1029
7ab3286f
JB
1030 * regcache.c (regcache_raw_read): Assert that, after calling
1031 target_fetch_registers, the register we're reading is cached.
1032
a44bddec
JB
1033 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1034 a call to 'internal_error', with a more helpful error message.
1035 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 1036 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 1037
35124113
AC
10382004-08-04 Andrew Cagney <cagney@gnu.org>
1039
1040 * Makefile.in: Update dependencies.
1041
9f643768
JB
10422004-08-04 Jim Blandy <jimb@redhat.com>
1043
6ced10dd
JB
1044 Change the layout of the PowerPC E500 raw register cache to allow
1045 the lower 32-bit halves of the GPRS to be their own raw registers,
1046 not pseudoregisters.
1047 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1048 add ppc_ev0_upper_regnum flag.
1049 * rs6000-tdep.c: #include "reggroups.h".
1050 (spe_register_p): Recognize the ev upper half registers as SPE
1051 registers.
1052 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1053 registers.
1054 (e500_move_ev_register): New function.
1055 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1056 vector registers are the pseudo-registers now, formed by splicing
1057 together the gprs and the upper-half registers.
1058 (e500_register_reggroup_p): New function.
1059 (P): Macro deleted.
1060 (P8, A4): New macro.
1061 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1062 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1063 macros.
1064 (registers_e500): Rearrange register set so that the raw register
1065 set contains 32-bit GPRs and upper-half registers, and the SPE
1066 vector registers become pseudo-registers.
1067 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1068 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1069 register numbers are now the same for the E500 as they are for
1070 other PowerPC variants. Register e500_register_reggroup_p as the
1071 register group function for the E500.
1072 * Makefile.in (rs6000-tdep.o): Update dependencies.
1073
1074 Adapt PPC E500 native support to the new raw regcache layout.
1075 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1076 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1077 (fetch_spe_register, store_spe_register): Handle fetching/storing
1078 all the SPE registers at once, if regno == -1. These now take
1079 over the job of fetch_spe_registers and store_spe_registers.
1080 (fetch_spe_registers, store_spe_registers): Deleted.
1081 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1082 unconditionally; they're always raw. Fetch/store SPE upper half
1083 registers, if present, instead of ev registers.
1084 (fetch_register, store_register): Remove sanity checks: gprs are
1085 never pseudo-registers now, so we never need to even mention any
1086 registers that are ever pseudoregisters.
1087
9f643768
JB
1088 Use a fixed register numbering when communicating with the PowerPC
1089 simulator.
1090 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1091 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1092 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1093 New functions.
1094 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1095 init_sim_regno_table.
1096 * Makefile.in (gdb_sim_ppc_h): New variable.
1097 (rs6000-tdep.o): Update dependencies.
1098
1e2279c8
AC
10992004-08-02 Andrew Cagney <cagney@gnu.org>
1100
1d94326f
AC
1101 * cris-tdep.c (cris_register_size): Restore function, still used
1102 locally.
1103
331ae7ed
AC
1104 * gdbarch.sh (deprecated_target_read_fp)
1105 (deprecated_frame_locals_address, deprecated_frame_args_address)
1106 (deprecated_frame_chain_valid, deprecated_frame_chain)
1107 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1108 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1109 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1110 * gdbarch.h, gdbarch.c: Re-generate.
1111 * regcache.c (deprecated_read_fp): Do not call
1112 DEPRECATED_TARGET_READ_FP_P.
1113 * infcmd.c (default_print_registers_info): Do not call
1114 DEPRECATED_DO_REGISTERS_INFO.
1115 * frame-base.c (default_frame_locals_address): Do not call
1116 DEPRECATED_FRAME_LOCALS_ADDRESS.
1117 (default_frame_args_address): Do not call
1118 DEPRECATED_FRAME_ARGS_ADDRESS.
1119
1e2279c8
AC
1120 * gdbarch.sh (deprecated_register_raw_size)
1121 (deprecated_register_virtual_size:int): Delete.
1122 * gdbarch.h, gdbarch.c: Re-generate.
1123 * cris-tdep.c (cris_register_size): Delete.
1124 (cris_gdbarch_init): Update.
1125 * alpha-tdep.c (alpha_register_raw_size)
1126 (alpha_register_virtual_size): Delete.
1127 (alpha_gdbarch_init): Update.
1128
a90c06b4
AC
1129 * gdbarch.sh (deprecated_register_virtual_type)
1130 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1131 (deprecated_dummy_write_sp): Delete.
1132 * gdbarch.h, gdbarch.c: Re-generate.
1133
f42accbe
AC
1134 * gdbarch.sh (deprecated_register_bytes): Delete.
1135 * gdbarch.h, gdbarch.c: Re-generate.
1136 * regcache.c (deprecated_register_bytes): New function.
1137 * regcache.h (deprecated_register_bytes): Declare.
1138 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1139 * v850-tdep.c (v850_gdbarch_init): Update.
1140 * sh64-tdep.c (sh64_gdbarch_init): Update.
1141 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1142 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1143 * mcore-tdep.c (mcore_gdbarch_init): Update.
1144 * cris-tdep.c (cris_gdbarch_init): Update.
1145 * arm-tdep.c (arm_gdbarch_init): Update.
1146 * remote.c (init_remote_state): Update.
1147 * remote-vx.c (vx_prepare_to_store): Update.
1148 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1149 * irix5-nat.c (fetch_core_registers): Update.
1150 * cris-tdep.c (cris_register_bytes_ok): Update.
1151 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1152
45c9dd44
AC
1153 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1154 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1155 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1156 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1157 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1158 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1159 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1160 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1161 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1162 with mips_insn16 and mips_insn32.
1163
3acba339
AC
1164 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1165 * rs6000-tdep.c (rs6000_push_dummy_call)
1166 (rs6000_extract_return_value): Use register_size.
1167 * xstormy16-tdep.c (xstormy16_get_saved_register)
1168 (xstormy16_extract_return_value): Ditto.
1169 * valops.c (value_assign): Ditto.
1170 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1171 * v850-tdep.c (v850_extract_return_value): Ditto.
1172 * tracepoint.c (collect_symbol): Ditto.
1173 * target.c (debug_print_register): Ditto.
1174 * stack.c (frame_info): Ditto.
1175 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1176 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1177 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1178 (store_register_using_P): Ditto.
1179 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1180 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1181 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1182 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1183 * regcache.c (deprecated_read_register_bytes)
1184 (deprecated_write_register_bytes, read_register)
1185 (write_register): Ditto.
1186 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1187 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1188 * monitor.c (monitor_supply_register, monitor_fetch_register)
1189 (monitor_store_register): Ditto.
1190 * mn10300-tdep.c (mn10300_pop_frame_regular)
1191 (mn10300_print_register): Ditto.
1192 * mipsv4-nat.c (fill_fpregset): Ditto.
1193 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1194 (mips64_fill_fpregset): Ditto.
1195 * mi/mi-main.c (register_changed_p, get_register)
1196 (mi_cmd_data_write_register_values): Ditto.
1197 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1198 * irix5-nat.c (fill_gregset, fetch_core_registers):
1199 * infrun.c (write_inferior_status_register): Ditto.
1200 * infptrace.c (fetch_register, store_register): Ditto.
1201 * infcmd.c (default_print_registers_info): Ditto.
1202 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1203 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1204 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1205 * hpux-thread.c (hpux_thread_fetch_registers)
1206 (hpux_thread_store_registers): Ditto.
1207 * hppah-nat.c (store_inferior_registers, fetch_register):
1208 * findvar.c (value_from_register): Ditto.
1209 * dve3900-rom.c (fetch_bitmapped_register):
1210 * cris-tdep.c (cris_gdbarch_init): Ditto.
1211 * alpha-tdep.h: Ditto.
1212 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1213
01e1877c
AC
1214 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1215 DEPRECATED_REGISTER_RAW_SIZE from comments.
1216 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1217 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1218 DEPRECATED_REGISTER_RAW_SIZE.
1219 * findvar.c (value_of_register): Simplify by assuming that the
1220 registers raw and virtual sizes are identical.
1221 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1222 comment.
1223 * arch-utils.c (generic_register_size): Simplify by assuming
1224 register_type.
1225
73f458fb
AC
1226 * regcache.c (legacy_read_register_gen, real_register)
1227 (legacy_write_register_gen): Delete, not used.
1228
336a3131
AC
1229 * regcache.c (struct regcache_descr): Delete legacy_p.
1230 (init_legacy_regcache_descr): Delete function.
1231 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1232 Do not use deprecated register functions.
1233 (regcache_raw_read, deprecated_write_register_gen):
1234 (deprecated_read_register_gen, regcache_raw_write): Delete code
1235 predicated on legacy_p.
1236 (register_size): Delete check against register raw size.
1237
c1d546cd
AC
1238 * cris-tdep.c (cris_register_type): Replace
1239 cris_register_virtual_type.
1240 (cris_gdbarch_init): Update, set register_type.
1241
48c2c0a6
AC
1242 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1243 * gdbarch.h, gdbarch.c: Re-generate.
1244 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1245 (arm_gdbarch_init) Do not set frameless function invocation.
1246 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1247 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1248 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1249 (frv_gdbarch_init): Do not set frameless function invocation.
1250 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1251 * sh-tdep.c (sh_gdbarch_init): Ditto.
1252 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1253 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1254 * avr-tdep.c (avr_gdbarch_init): Ditto.
1255
474093a6
AC
1256 * blockframe.c (legacy_frame_chain_valid): Delete function.
1257
3c109c8b
AC
1258 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1259 and pc. Update comments.
1260 (pc_in_dummy_frame): Delete function.
1261 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1262 use the "id".
1263 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1264 call_hi, top and pc, use the id.
1265 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1266
96860204
AC
1267 * dummy-frame.c: Include "gdb_string.h".
1268 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1269 (generic_save_dummy_frame_tos): Delete.
1270 (dummy_frame_push): New function, replaces above.
1271 * dummy-frame.h: Update copyright.
1272 (dummy_frame_push): Declare.
1273 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1274 (generic_save_call_dummy_addr): Delete declarations.
1275 * infcall.c: Include "dummy-frame.h".
1276 (call_function_by_hand): Add locals caller_regcache,
1277 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1278 with call to frame_save_as_regcache plus cleanup. Delete calls to
1279 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1280 Move clear_proceed_status to just before the resume, add call to
1281 dummy_frame_push (discard cleanup).
1282 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1283 (dummy-frame.o): Add $(gdb_string_h).
1284
d67ec5db
AC
12852004-08-01 Andrew Cagney <cagney@gnu.org>
1286
1287 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1288 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1289 * dummy-frame.c (find_dummy_frame): Delete.
1290 (struct dummy_frame_cache, dummy_frame_sniffer)
1291 (dummy_frame_prev_register, dummy_frame_this_id)
1292 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1293 frame unwinder using a dummy_frame_cache.
1294
a81dcb05
AC
12952004-08-01 Andrew Cagney <cagney@gnu.org>
1296
1297 * frame.h (frame_save_as_regcache): Declare.
1298 * frame.c (frame_save_as_regcache): New function.
1299 (do_frame_read_register): Replace do_frame_unwind_register.
1300 (frame_pop): Use frame_save_as_regcache.
1301 * dummy-frame.c (generic_push_dummy_frame): Use
1302 frame_save_as_regcache.
1303
aa495d11
JB
13042004-08-01 Joel Brobecker <brobecker@gnat.com>
1305
1306 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1307 file as included until we record the first line in the linetable.
1308
ff65ac78
AC
13092004-08-01 Andrew Cagney <cagney@gnu.org>
1310
1311 * frame.h (deprecated_pop_dummy_frame)
1312 (deprecated_read_register_dummy)
1313 (deprecated_generic_find_dummy_frame): Delete.
1314 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1315 (deprecated_read_register_dummy)
1316 (deprecated_find_dummy_frame_regcache)
1317 (discard_innermost_dummy)
1318 (deprecated_pop_dummy_frame): Delete.
1319 (dummy_frame_this_id): Simplify.
1320 (struct dummy_frame): Delete "fp" and "sp".
1321 (find_dummy_frame): Simplify.
1322 (generic_push_dummy_frame): Do not set "fp" or "sp".
1323 (fprint_dummy_frames): Do not print "fp" and "sp"
1324
37bdc87e
MK
13252004-08-01 Mark Kettenis <kettenis@gnu.org>
1326
1327 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1328 (struct i386_insn): New structure.
1329 (i386_match_insn): New function.
1330 (i386_frame_setup_skip_insns): New variable.
1331 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1332 array i386_frame_setup_insns of instructions that should be
1333 skipped inside the frame setup sequence.
1334
8241eaa6
AC
13352004-08-01 Andrew Cagney <cagney@gnu.org>
1336
5bc602c7
AC
1337 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1338 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1339 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1340 * stack.c (frame_info): Delete references to
1341 DEPRECATED_FRAME_INIT_SAVED_REGS and
1342 deprecated_get_frame_saved_regs.
1343 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1344 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1345 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1346 (frame_unwind_register_signed)
1347 (frame_unwind_register_unsigned)
1348 (frame_unwind_unsigned_register): Use register_size.
1349 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1350 (deprecated_frame_xmalloc_with_cleanup)
1351 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1352 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1353
03d363a1
AC
1354 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1355 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1356 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1357 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1358
8241eaa6
AC
1359 * infcall.c (call_function_by_hand): Do not use
1360 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1361 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1362 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1363 DEPRECATED_STACK_ALIGN.
1364
f00df8b7
AC
13652004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1366
1367 Committed by Andrew Cagney.
1368 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1369
eec63939
AC
13702004-08-01 Andrew Cagney <cagney@gnu.org>
1371
1372 * mips-tdep.c (mips16_frame_cache)
1373 (mips16_frame_this_id, mips16_frame_prev_register)
1374 (mips16_frame_unwind, mips16_frame_sniffer)
1375 (mips16_frame_base_address, mips16_frame_base)
1376 (mips16_frame_base_sniffer, mips32_frame_cache)
1377 (mips32_frame_this_id, mips32_frame_prev_register)
1378 (mips32_frame_unwind, mips32_frame_sniffer)
1379 (mips32_frame_base_address, mips32_frame_base)
1380 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1381 separate heuristic mips16 and mips32 unwinders.
1382 (mips_stub_frame_cache, mips_stub_frame_this_id)
1383 (mips_stub_frame_prev_register)
1384 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1385 (mips_stub_frame_base_address, mips_stub_frame_base)
1386 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1387 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1388 match true mdebug frames.
1389 (non_heuristic_proc_desc): Add forward declaration.
1390
e66299b3
AC
13912004-08-01 Andrew Cagney <cagney@gnu.org>
1392
83cbbf3e
AC
1393 * config/mips/tm-irix6.h: Delete file.
1394 * config/mips/tm-irix5.h: Delete file.
1395 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1396 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1397
22d41b37
AC
1398 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1399 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1400 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1401 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1402 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1403 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1404 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1405 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1406 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1407 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1408 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1409 (TARGET_SIGNAL_RAW_VALUES): Delete.
1410 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1411 Delete.
1412 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1413 (TARGET_HW_WATCH_LIMIT): Delete.
1414 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1415 * minimon.h: Delete file.
1416
e66299b3
AC
1417 * trad-frame.c (trad_frame_get_this_base)
1418 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1419 functions.
1420 * trad-frame.h (trad_frame_set_this_base)
1421 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1422
1f67027d
AC
14232004-07-31 Andrew Cagney <cagney@gnu.org>
1424
1425 * trad-frame.c (trad_frame_get_prev_register): Rename
1426 trad_frame_get_prev_register.
1427 * vax-tdep.c (vax_frame_prev_register): Update.
1428 * trad-frame.h: Update.
1429 * trad-frame.c (trad_frame_get_register): Update.
1430 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1431 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1432 Update.
1433 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1434 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1435 Update.
1436 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1437 Update.
1438 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1439 Update.
1440 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1441 Update.
1442 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1443 Update.
1444 * s390-tdep.c (s390_frame_prev_register)
1445 (s390_stub_frame_prev_register)
1446 (s390_sigtramp_frame_prev_register): Update.
1447 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1448 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1449 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1450 * m88k-tdep.c (m88k_frame_prev_register)
1451 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1452 * m32r-tdep.c (m32r_frame_prev_register): Update.
1453 * hppa-tdep.c (hppa_frame_prev_register_helper)
1454 * frv-tdep.c (frv_frame_prev_register): Update.
1455 * d10v-tdep.c (d10v_frame_prev_register): Update.
1456 * cris-tdep.c (cris_frame_prev_register): Update.
1457 * avr-tdep.c (avr_frame_prev_register): Update.
1458 * arm-tdep.c (arm_prologue_prev_register)
1459 (arm_sigtramp_prev_register): Update.
1460
c1bf6f65
AC
14612004-07-31 Andrew Cagney <cagney@gnu.org>
1462
1463 * frame.h (legacy_saved_regs_unwind)
1464 (legacy_frame_chain_valid, legacy_frame_p)
1465 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
1466 * dummy-frame.c (dummy_frame_this_id): Simplify.
1467 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
1468 * frame.c (struct frame_info): Delete the field "type".
1469 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1470 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1471 (legacy_saved_regs_unwind, legacy_frame_p)
1472 (frame_type_from_pc): Delete.
1473 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1474 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1475
dc856692
MK
14762004-07-31 Mark Kettenis <kettenis@gnu.org>
1477
5a5effe1
MK
1478 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1479 indentation.
1480
d4fd50a6
MK
1481 * mips-nat.c: Remove file.
1482 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1483 (mips-nat.o): Remove dependency.
1484
2689df5a
MK
1485 * infptrace.c: Update copyright year.
1486 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1487 explicitly setting the buffer to all zeroes.
1488
dc856692
MK
1489 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1490 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1491
763910e0
AC
14922004-07-30 Andrew Cagney <cagney@gnu.org>
1493
1494 * GDB 6.2 released from gdb_6_2-branch.
1495
0b66e38c
EZ
14962004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1497
1498 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1499
1500 * exec.c (exec_file_attach):
1501 * nto-tdep.c (nto_find_and_open_solib):
1502 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1503 * solib.c (solib_open):
1504 * somsolib.c (som_solib_sizeof_symbol_table):
1505 * source.c (is_regular_file, openp, open_source_file):
1506 * symfile.c (symfile_bfd_open):
1507 * wince.c (upload_to_device): Differentiate between the search for
1508 binary and source files.
1509
be7d7357
AC
15102004-07-30 Andrew Cagney <cagney@gnu.org>
1511
1512 * complaints.c (_initialize_complaints): Pass NULL to
1513 add_setshow_zinteger_cmd for help_doc.
1514 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1515
ddc9cd0f
AC
15162004-07-30 Andrew Cagney <cagney@gnu.org>
1517
1518 Fix PR i18n/761.
1519 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1520 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1521 $(PACKAGE).pot and update-po.
1522 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1523 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1524 (update-po): New rules.
1525 (localedir): Define using autoconf.
1526 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1527 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1528 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1529 * configure.in: Generate CATALOGS and LINGUAS from contents of
1530 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1531 * configure: Re-generate.
1532 * po/gdbtext: New file
1533
e92f3704
JG
15342004-07-30 Jerome Guitton <guitton@gnat.com>
1535
1536 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1537 order.
1538
b0f35d58
DL
15392004-07-30 David Lecomber <dsl@sources.redhat.com>
1540
1541 * dwarf2read.c (read_file_scope): Set producer if attribute
1542 present.
1543 (struct dwarf2_cu): Added new member producer.
1544
ce7d4522
JG
15452004-07-30 Jerome Guitton <guitton@gnat.com>
1546
1547 * inflow.c (kill_command): release file handles in BFD.
1548 * exec.c (exec_file_attach): Ditto.
1549 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1550
05ee07c7
AC
15512004-07-29 Andrew Cagney <cagney@gnu.org>
1552
1553 * PROBLEMS (mips-irix): Note that it is broken.
1554
62eceb47
AC
15552004-07-29 Andrew Cagney <cagney@gnu.org>
1556
e57b8d41
AC
1557 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1558 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1559
d334389b
AC
1560 * config/xm-nbsd.h: Delete file.
1561 * config/arm/xm-nbsd.h: Delete file.
1562 * config/i386/xm-nbsd.h: Delete file.
1563 * config/ns32k/xm-nbsd.h: Delete file.
1564 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1565 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1566 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1567 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1568 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1569
e910f676
AC
1570 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1571 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1572 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1573 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1574 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1575 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1576
6fa856b9
AC
1577 * config/powerpc/xm-linux.h: Delete empty file.
1578 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1579 * config/powerpc/linux.mh (XM_FILE): Delete.
1580 * config/m68k/xm-linux.h: Delete empty file.
1581 * config/m68k/linux.mh (XM_FILE): Delete.
1582 * config/ia64/xm-linux.h: Delete empty file.
1583 * config/ia64/linux.mh (XM_FILE): Delete.
1584 * config/arm/xm-linux.h: Delete empty file.
1585 * config/arm/linux.mh (XM_FILE): Delete.
1586
471ae5ae
AC
1587 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1588 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1589 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1590 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1591 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1592 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1593 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1594 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1595
62eceb47
AC
1596 * config/m68k/xm-m68k.h: Delete file.
1597 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1598 copyright.
1599 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1600 * config/pa/xm-linux.h: Delete empty file.
1601 * config/pa/linux.mh (XM_FILE): Delete.
1602 * config/i386/xm-i386.h: Delete empty file.
1603 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1604 "i386/xm-i386.h".
1605 * config/i386/obsdaout.mh (XM_FILE): Delete.
1606 * config/i386/obsd64.mh (XM_FILE): Delete.
1607 * config/i386/fbsd64.mh (XM_FILE): Delete.
1608 * config/i386/nto.mh (XM_FILE): Delete.
1609 * config/i386/obsd.mh (XM_FILE): Delete.
1610 * config/i386/linux64.mh (XM_FILE): Delete.
1611 * config/i386/linux.mh (XM_FILE): Delete.
1612 * config/i386/i386sol2.mh (XM_FILE): Delete.
1613 * config/i386/i386gnu.mh (XM_FILE): Delete.
1614 * config/i386/fbsd.mh (XM_FILE): Delete.
1615 * config/i386/nbsd64.mh (XM_FILE): Delete.
1616
c35f4ffc
AC
16172004-07-29 Andrew Cagney <cagney@gnu.org>
1618
1619 * config/pa/xm-linux.h: Do not include "floatformat.h".
1620 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1621 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1622 * config/i386/xm-i386.h: Do not include "floatformat.h".
1623 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1624 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1625 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1626 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1627 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1628 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1629 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1630 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1631 * configure, config.in: Regenerate.
1632 * configure.host (gdb_host_float_format, gdb_host_double_format)
1633 (gdb_host_long_double_format): Set according to the host.
1634
624a44a3
AC
16352004-07-29 Andrew Cagney <cagney@gnu.org>
1636
1637 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1638
0dea2468
AC
16392004-07-28 Andrew Cagney <cagney@gnu.org>
1640
1641 * PROBLEMS: Mention threads/1650.
1642 * NEWS: Mention the NPTL fix.
1643
b3f42336
AC
16442004-07-28 Andrew Cagney <cagney@gnu.org>
1645
1646 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1647 (add_setshow_cmd_full): Make static.
1648 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1649 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1650 * cli/cli-decode.c (add_setshow_filename_cmd)
1651 (add_setshow_string_cmd): New functions.
1652 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1653 * mips-tdep.c (_initialize_mips_tdep): Update.
1654 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1655 * cli/cli-logging.c (_initialize_cli_logging): Update.
1656 * complaints.c (_initialize_complaints): Update.
1657 * remote.c (_initialize_remote): Update.
1658
3b64bf98
AC
16592004-07-28 Andrew Cagney <cagney@gnu.org>
1660
1661 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1662 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1663 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1664 print parameters. Make string parameters constant.
1665 * command.h: Update. Update copyright.
1666 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1667 * observer.c (_initialize_observer): Ditto.
1668 * frame.c (_initialize_frame): Ditto.
1669 * complaints.c (_initialize_complaints): Ditto.
1670 * maint.c (_initialize_maint_cmds): Ditto.
1671 * target.c (initialize_targets): Ditto.
1672 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1673 * infcall.c (_initialize_infcall): Ditto.
1674 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1675 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1676 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1677 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1678 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1679
e9667a65
AC
16802004-07-28 Andrew Cagney <cagney@gnu.org>
1681
54a5b07d
AC
1682 * gdbtypes.c (lookup_primitive_typename): Delete function.
1683 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1684 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1685 * gdbtypes.c (lookup_typename): Ditto.
1686 * f-exp.y (yylex): Ditto.
1687 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1688
e9667a65
AC
1689 * scm-lang.c (c_builtin_types): Delete extern declaration.
1690 (scm_language_defn): Replace
1691 string_char_type and primitive_type_vector with
1692 la_language_arch_info.
1693 * jv-lang.c (java_language_defn): Replace
1694 string_char_type and primitive_type_vector with
1695 la_language_arch_info.
1696 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1697 c_builtin_types in comment.
1698 * c-lang.h (struct language_arch_info): Declare opaque.
1699 (c_language_arch_info): Declare.
1700 (c_builtin_types): Delete declaration.
1701 * c-lang.c (c_language_arch_info): Set string_char_type to
1702 builtin_char, not builtin_true_char. Make global.
1703 (c_builtin_types): Delete array.
1704 (asm_language_defn, minimal_language_defn): Replace
1705 string_char_type and primitive_type_vector with
1706 la_language_arch_info.
1707
685419e2
AC
17082004-07-28 Andrew Cagney <cagney@gnu.org>
1709
1710 * gdbtypes.h (struct builtin_type): Rename true_char to
1711 builtin_true_char.
1712 * gdbtypes.c (gdbtypes_post_init): Update.
1713 * c-lang.c (arch_info): New function.
1714 (enum c_primitive_types): New enum.
1715 (c_language_defn): Instead of string_char_type and
1716 primitive_type_vector set la_language_arch_info.
1717
5a44ea29
AC
17182004-07-28 Andrew Cagney <cagney@gnu.org>
1719
1720 * language.h (struct language_arch_info): Fix typo
1721 s/primative/primitive/.
1722 * gdbtypes.c (lookup_primitive_typename): Ditto.
1723 * language.c (language_lookup_primitive_type_by_name)
1724 (unknown_language_arch_info): Ditto.
1725
f290d38e
AC
17262004-07-27 Andrew Cagney <cagney@gnu.org>
1727
1728 * defs.h (enum language): Add nr_languages.
1729 * language.h (struct language_arch_info): Define.
1730 (struct language_defn): Add la_language_arch_info.
1731 (language_lookup_primative_type_by_name): Declare.
1732 (language_string_char_type): Declare.
1733 * language.c (_initialize_language, language_gdbarch_post_init)
1734 (struct language_gdbarch, language_gdbarch_data): Implement
1735 per-architecture language information.
1736 (unknown_language_arch_info, language_string_char_type)
1737 (language_lookup_primative_type_by_name): New functions.
1738 (unknown_language_defn, auto_language_defn)
1739 (local_language_defn): Set la_language_arch_info to
1740 unknown_language_arch_info.
1741 (unknown_builtin_types): Delete.
1742 * gdbtypes.c (lookup_primitive_typename): Use
1743 language_lookup_primative_type_by_name.
1744 (create_string_type): Use language_string_char_type.
1745 * values.c (value_from_string): Use language_string_char_type.
1746 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1747 * p-lang.c (pascal_language_defn): Ditto.
1748 * m2-lang.c (m2_language_defn): Ditto.
1749 * jv-lang.c (java_language_defn): Ditto.
1750 * objc-lang.c (objc_language_defn): Ditto.
1751 * f-lang.c (f_language_defn): Ditto.
1752 * c-lang.c (c_language_defn, cplus_language_defn)
1753 (asm_language_defn, minimal_language_defn): Ditto.
1754
000177f0
AC
17552004-07-27 Andrew Cagney <cagney@gnu.org>
1756
1757 * gdbtypes.h (struct builtin_type): Declare.
1758 (builtin_type): Declare.
1759 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1760 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1761 (gdbtypes_post_init): New function.
1762 (builtin_type): New function.
1763
e22f895c
KI
17642004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1765
1766 * remote-m32r-sdi.c: Fix breakpoint bug.
1767 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1768 recv_char_data, recv_long_data): New functions to replace communication
1769 sequences.
1770
536517dd
MC
17712004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1772
1773 Document PR threads/1650.
1774 * PROBLEMS (Threads): Document problem with many threads
1775
a0a44d18
AC
17762004-07-26 Andrew Cagney <cagney@gnu.org>
1777
1778 * gdb-mi.el: Move from here ...
1779 * mi/gdb-mi.el: ... to here.
1780
7ac4ac06
AC
17812004-07-26 Andrew Cagney <cagney@gnu.org>
1782
1783 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1784 * main.c (captured_main): When in batch mode always detach.
1785
a1b461bf
AC
17862004-07-26 Andrew Cagney <cagney@gnu.org>
1787
1788 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1789 and h8300 as broken.
1790 * NEWS: END-OF-LIFE frame compatibility module.
1791 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1792 specific comments.
1793
cb1a6d5f
AC
17942004-07-26 Andrew Cagney <cagney@gnu.org>
1795
1796 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1797 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1798 * wince.c (_initialize_wince): Update.
1799 * win32-nat.c (_initialize_win32_nat): Update.
1800 * varobj.c (_initialize_varobj): Update.
1801 * valops.c (_initialize_valops): Update.
1802 * utils.c (initialize_utils, initialize_utils): Update.
1803 * tui/tui-win.c (_initialize_tui_win): Update.
1804 * top.c (init_main): Update.
1805 * symfile.c (_initialize_symfile): Update.
1806 * source.c (_initialize_source): Update.
1807 * somsolib.c (_initialize_som_solib): Update.
1808 * solib.c (_initialize_solib): Update.
1809 * solib-frv.c (_initialize_frv_solib): Update.
1810 * serial.c (_initialize_serial): Update.
1811 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1812 * remote.c (_initialize_remote, _initialize_remote): Update.
1813 * remote-vx.c (_initialize_vx): Update.
1814 * remote-utils.c (_initialize_sr_support): Update.
1815 * remote-sds.c (_initialize_remote_sds): Update.
1816 * remote-mips.c (_initialize_remote_mips): Update.
1817 * remote-e7000.c (_initialize_remote_e7000): Update.
1818 * proc-api.c (_initialize_proc_api): Update.
1819 * printcmd.c: Update.
1820 * parse.c (_initialize_parse): Update.
1821 * pa64solib.c (_initialize_pa64_solib): Update.
1822 * p-valprint.c (_initialize_pascal_valprint): Update.
1823 * monitor.c (_initialize_remote_monitors): Update.
1824 * mips-tdep.c (_initialize_mips_tdep): Update.
1825 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1826 * maint.c (_initialize_maint_cmds): Update.
1827 * lin-lwp.c (_initialize_lin_lwp): Update.
1828 * language.c (_initialize_language): Update.
1829 * kod.c (_initialize_kod): Update.
1830 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1831 * i386-tdep.c (_initialize_i386_tdep): Update.
1832 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1833 * gdbarch.sh: Update.
1834 * gdbarch.c: Re-generate.
1835 * gdb-events.sh: Update.
1836 * gdb-events.c: Re-generate.
1837 * frame.c (_initialize_frame): Update.
1838 * exec.c: Update.
1839 * demangle.c (_initialize_demangler): Update.
1840 * dcache.c (_initialize_dcache): Update.
1841 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1842 * cp-valprint.c (_initialize_cp_valprint): Update.
1843 * corefile.c (_initialize_core): Update.
1844 * command.h: Update.
1845 * cli/cli-decode.h: Update.
1846 * cli/cli-cmds.c (init_cli_cmds): Update.
1847 * charset.c (_initialize_charset): Update.
1848 * breakpoint.c (_initialize_breakpoint): Update.
1849 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1850 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1851 * aix-thread.c (_initialize_aix_thread): Update.
1852
b4632131
MK
18532004-07-24 Mark Kettenis <kettenis@gnu.org>
1854
1855 Partial fix for PR backtrace/1718.
1856 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1857 that GCC migrates into the prolugue. Don't handle any
1858 instructions that clobber %ebx.
1859
822c9732
AC
18602004-07-23 Andrew Cagney <cagney@gnu.org>
1861
1862 Use regcache_raw_collect instead of regcache_collect.
1863 * regcache.h (regcache_collect): Delete declaration.
1864 * regcache.c (regcache_colect): Delete function.
1865 * win32-nat.c (do_child_store_inferior_registers): Update.
1866 * sol-thread.c (sol_thread_store_registers): Update.
1867 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1868 * rs6000-nat.c (store_register): Update.
1869 * remote.c (store_register_using_P, remote_store_registers): Update.
1870 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1871 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1872 (fill_vrregset, store_spe_registers, fill_gregset)
1873 (fill_gregset): Update.
1874 * nto-procfs.c (procfs_store_registers): Update.
1875 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1876 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1877 * m68klinux-nat.c (store_register, fill_gregset): Update.
1878 * m68k-tdep.c (fill_gregset): Update.
1879 * infptrace.c (store_register): Update.
1880 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1881 * i386-linux-nat.c (store_register, fill_gregset): Update.
1882 * hppa-linux-nat.c (fill_gregset): Update.
1883 * go32-nat.c (store_register): Update.
1884 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1885 (store_fp_regs): Update.
1886 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1887 (store_nwfpe_extended, store_fpregister, store_fpregs)
1888 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1889 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1890 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1891 (store_regs_user_thread, store_regs_kernel_thread): Update.
1892
32b05c07
MK
18932004-07-24 Mark Kettenis <kettenis@gnu.org>
1894
1895 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1896 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1897 encoding.
1898 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1899 member of `struct comp_unit'.
1900
8567c30f
AC
19012004-07-23 Andrew Cagney <cagney@gnu.org>
1902
1903 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1904 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1905
f6da8dd8
MH
19062004-07-23 Martin Hunt <hunt@redhat.com>
1907 Kevin Buettner <kevinb@redhat.com>
1908
1909 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1910 alignment was being added to the offset instead of multiplied.
1911
bd921882
MK
19122004-07-23 Mark Kettenis <kettenis@gnu.org>
1913
24f033e8
MK
1914 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1915 changed signal trampoline in OpenBSD 3.5-current.
1916
90f3cecd
MK
1917 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1918 <machine/pcb.h> and "bsd-kvm.h".
1919 (sparc64nbsd_supply_pcb): New function.
1920 (_initialize_sparc64nbsd_nat): Renamed from
1921 _initialize_sparcnbsd_nat. Enable libkvm interface.
1922 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1923 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1924 (LOADLIBES): New variable.
1925
a4954a62
MK
1926 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1927
bd921882
MK
1928 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1929
23a6d369
AC
19302004-07-21 Andrew Cagney <cagney@gnu.org>
1931
1932 Use regcache_raw_supply instead of supply_register.
1933 * regcache.h (supply_register): Delete declaration.
1934 * regcache.c (supply_register): Delete function.
1935 * wince.c (do_child_fetch_inferior_registers): Update.
1936 * win32-nat.c (do_child_fetch_inferior_registers)
1937 (fetch_elf_core_registers): Update.
1938 * v850ice.c (v850ice_fetch_registers): Update.
1939 * thread-db.c (thread_db_store_registers): Update.
1940 * sol-thread.c (sol_thread_store_registers): Update.
1941 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1942 * rs6000-nat.c (fetch_register): Update.
1943 * rom68k-rom.c (rom68k_supply_one_register): Update.
1944 * remote.c (remote_wait, remote_async_wait): Update.
1945 * remote-st.c (get_hex_regs): Update.
1946 * remote-sim.c (gdbsim_fetch_register): Update.
1947 * remote-sds.c (sds_fetch_registers): Update.
1948 * remote-rdp.c (remote_rdp_fetch_register): Update.
1949 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1950 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1951 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1952 * remote-hms.c (init_hms_cmds): Update.
1953 * remote-est.c (init_est_cmds): Update.
1954 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1955 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1956 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1957 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1958 (fetch_register, supply_vrregset, supply_vrregset)
1959 (fetch_spe_registers): Update.
1960 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1961 * monitor.c (monitor_supply_register): Update.
1962 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1963 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1964 (mipsnbsd_supply_fpreg): Update.
1965 * mips-nat.c (fetch_inferior_registers)
1966 (fetch_core_registers): Update.
1967 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1968 (supply_fpregset, mips64_supply_gregset)
1969 (mips64_supply_fpregset): Update.
1970 * m68klinux-nat.c (fetch_register, supply_gregset)
1971 (supply_fpregset): Update.
1972 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1973 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1974 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1975 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1976 * infptrace.c (fetch_register): Update.
1977 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1978 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1979 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1980 (gnu_fetch_registers, gnu_store_registers): Update.
1981 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1982 * i386-linux-nat.c (fetch_register, supply_gregset)
1983 (dummy_sse_values): Update.
1984 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1985 * hppah-nat.c (fetch_register): Update.
1986 * hppa-linux-nat.c (fetch_register, supply_gregset)
1987 (supply_fpregset): Update.
1988 * go32-nat.c (fetch_register): Update.
1989 * dve3900-rom.c (fetch_bitmapped_register)
1990 (_initialize_r3900_rom): Update.
1991 * cris-tdep.c (supply_gregset): Update.
1992 * abug-rom.c (init_abug_cmds): Update.
1993 * core-aout.c (fetch_core_registers): Update.
1994 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1995 (fetch_register, fetch_fp_register): Update.
1996 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1997 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1998 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1999 * alphanbsd-tdep.c (fetch_core_registers): Update.
2000 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2001 * alpha-nat.c (fetch_osf_core_registers)
2002 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2003 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2004 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2005
73cc75f3
AC
20062004-07-21 Andrew Cagney <cagney@gnu.org>
2007
2008 * PROBLEMS: Mention breakpoints/1702.
2009 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2010 that is known to work.
2011
a53c66de
AC
20122004-07-21 Andrew Cagney <cagney@gnu.org>
2013
2014 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2015 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2016 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2017 (handle_inferior_event): Wrap call to deprecated
2018 IGNORE_HELPER_CALL in #ifdef.
2019 * config/mips/tm-nbsd.h: Update.
2020
708ff411
JB
20212004-07-20 Jim Blandy <jimb@redhat.com>
2022
412b3060
JB
2023 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
2024 bfd_mach_ppc has no segment registers.
2025
13ac140c
JB
2026 Include PowerPC SPR numbers for special-purpose registers.
2027 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2028 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2029 new member in initializer.
2030 (S, S4, SN4, S64): New macros for defining special-purpose
2031 registers.
2032 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2033 registers_403, registers_403GC, registers_505, registers_860,
2034 registers_601, registers_602, registers_603, registers_604,
2035 registers_750, registers_e500): Use them.
2036
708ff411
JB
2037 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2038 replace references with expression used to initialize variable.
2039
1f602b35
AC
20402004-07-20 Andrew Cagney <cagney@gnu.org>
2041
2042 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2043 read_memory_nobpt.
2044 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2045 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2046 (s390_sigtramp_frame_sniffer): Update.
2047 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2048 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2049 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2050 (mips32_fetch_instruction): Update.
2051 * mcore-tdep.c (get_insn): Update.
2052 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2053 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2054 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2055 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2056 (i386_linux_rt_sigtramp_start): Update.
2057 * i386-linux-nat.c (child_resume): Update.
2058 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2059 * hppa-linux-tdep.c (insns_match_pattern): Update.
2060 * gdbcore.h: Update.
2061 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2062 * frame.c (safe_frame_unwind_memory): Update.
2063 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2064 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2065 * alpha-tdep.c (alpha_read_insn): Update.
2066
2cd8546d
AC
20672004-07-20 Andrew Cagney <cagney@gnu.org>
2068
2069 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2070 containing both bytes and mask. Add "frame_type".
2071 * tramp-frame.c (tramp_frame_start): Update.
2072 (tramp_frame_prepend_unwinder): Update.
2073 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2074 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2075 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2076 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2077
f928dd62
EZ
20782004-07-19 Eli Zaretskii <eliz@gnu.org>
2079
2080 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2081 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2082 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2083 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2084
d5c560f7
AC
20852004-07-17 Andrew Cagney <cagney@gnu.org>
2086
860660cb
AC
2087 * NEWS, PROBLEMS: Update for 6.2.
2088
8c266f54
AC
2089 * README: Update to 6.2.
2090
a552edd9
AC
2091 * utils.c (xvasprintf): Call xstrvprintf.
2092
c4a172b5
AC
2093 * parse.c: Update copyright.
2094 (null_post_parser): Eliminate ARGSUSED.
2095
da745b36
AC
2096 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2097 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2098 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2099
9cbc6ef0
AC
2100 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2101 * ppc-linux-nat.c: Use "Linux kernel".
2102 * hppa-linux-tdep.c: Use GNU/Linux.
2103 * hppa-linux-nat.c: Use GNU/Linux.
2104 * dwarfread.c: Add [sic] to use of Linux.
2105
1b89295f
AC
2106 * hppa-linux-nat.c: Do not include <string.h>.
2107 (supply_fpregset): Remove "register" attribute.
2108
d5c560f7
AC
2109 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2110
7ddd7709
MK
21112004-07-17 Mark Kettenis <kettenis@gnu.org>
2112
b1d19a62
MK
2113 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2114 * configure, config.in: Regenerated.
2115
7ddd7709
MK
2116 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2117 "bsd-kvm.h".
2118 (vaxbsd_supply_pcb): New function.
2119 (_initialize_vaxbsd_nat): New prototype and function.
2120 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2121 solib-sunos.o.
2122 (LOADLIBES): New variable.
2123 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2124 (LOADLIBES): New variable.
2125 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2126 (LOADLIBES): New variable.
2127 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2128
2c07db7a
AC
21292004-07-16 Andrew Cagney <cagney@gnu.org>
2130
2131 * defs.h (event_loop_p): Replace variable declaration with macro,
2132 always 1.
2133 * main.c (captured_main): Delete options "-async" and "-noasync".
2134 (event_loop_p): Delete variable.
2135 * NEWS: Mention that "-async" and "-noasync" were removed.
2136
717eb1cf
AC
21372004-07-16 Andrew Cagney <cagney@gnu.org>
2138
2139 * remote-m32r-sdi.c: Re-indent.
2140
c101bc14
JB
21412004-07-16 Jim Blandy <jimb@redhat.com>
2142
5109a438
JB
2143 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2144 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2145 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2146 missing MPC823 SPRs.
2147 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2148 incorrect. (This was corrected in GDB's register name tables on
2149 2004-07-14.)
2150
c101bc14
JB
2151 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2152 should be "esasrr" ("ESA Save and Restore Register").
2153
7ce450bd
AC
21542004-07-16 Andrew Cagney <cagney@gnu.org>
2155
2156 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2157 calls, no longer applicable. Update comments and rename parameter
2158 "step_frame" to "return_frame".
2159
ca73dd9d
AC
21602004-07-16 Andrew Cagney <cagney@gnu.org>
2161
2162 * frame.c (fprint_field): New function.
2163 (fprint_frame_id): Use fprint_field.
2164
31941f6d
JB
21652004-07-15 Joel Brobecker <brobecker@gnat.com>
2166
2167 * ada-lang.c (ada_language_defn): Remove commented out code.
2168
f86a7158
JB
21692004-07-15 Jim Blandy <jimb@redhat.com>
2170
2171 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2172 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2173
c24791ec
JB
21742004-07-14 Jim Blandy <jimb@redhat.com>
2175
29bb1356
JB
2176 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2177
cc98b5cc
JB
2178 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2179
8f088af7
JB
2180 * ppc-tdep.h (ppc_num_srs): New enum constant.
2181
0ea0ec5f
JB
2182 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2183 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2184 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2185 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2186 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2187 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2188 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2189 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2190 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2191 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2192 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2193 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2194 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2195 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2196 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2197 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2198 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2199 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2200 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2201 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2202 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2203 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2204 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2205 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2206 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2207 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2208 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2209 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2210 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2211 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2212 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2213 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2214 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2215 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2216 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2217 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2218 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2219 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2220 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2221 special-purpose register numbers.
2222
c24791ec
JB
2223 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2224 manual mentions 'md_twb', but many mention 'm_twb', and at that
2225 point in the register list.)
2226
d833db3b
AC
22272004-07-14 Andrew Cagney <cagney@gnu.org>
2228
2229 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2230 instead of "internal-error".
2231
080228b2
JB
22322004-07-10 Joel Brobecker <brobecker@gnat.com>
2233
2234 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2235 that was inserted inside a comment.
2236
c268433a
RC
22372004-07-10 Randolph Chung <tausq@debian.org>
2238
2239 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2240 function.
2241 (hppa_hpux_push_dummy_code): New function.
2242 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2243 Set find_global_pointer method.
2244
71009278
MK
22452004-07-10 Mark Kettenis <kettenis@gnu.org>
2246
2247 * NEWS: Mention BSD libkvm interface.
2248
b2fa5097
MS
22492004-07-10 Michael Snyder <msnyder@redhat.com>
2250
2251 * symfile.c (generic_load): Comment typo.
2252 * stack.c (get_selected_block): Ditto.
2253 * regcache.c (regcache_cooked_read): Ditto.
2254 * monitor.c (monitor_debug): Ditto.
2255 * mips-tdep.c (mips_read_pc): Ditto.
2256 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2257 * gdb_mbuild.sh: Ditto.
2258 * gdbarch.sh: Ditto.
2259 * gdbarch.h: Ditto.
2260
c3e5cd34
PH
22612004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2262
8a2225b2
PH
2263 * ada-tasks.c: Remove file.
2264
c3e5cd34
PH
2265 Remove ARI problems:
2266
2267 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2268 beginning of line.
2269
2270 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2271 Add comment.
2272 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2273 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2274 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2275 (UMIN_OF_SIZE): Remove.
2276 (max_of_type): New function to replace orphan macro in gdbtypes.h
2277 (min_of_type): Ditto.
2278 (discrete_type_high_bound): Use max_of_type.
2279 (discrete_type_low_bound): Use min_of_type.
2280 (possible_user_operator_p): Move operator to beginning of line.
2281 (ada_is_variant_part): Ditto.
2282 (ensure_lval): Rewrite to avoid deprecated operations.
2283 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2284 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2285 (ada_enum_name): Remove assignments in 'if' statements.
2286 (build_ada_types): Add gdbarch parameter.
2287 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2288 with gdbarch_data_register_post_init.
2289 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2290 add_show_from_set.
2291
2292 * ada-valprint.c (inspect_it): Remove declaration.
2293 (repeat_count_threshold): Remove declaration.
2294 (ada_print_floating): Remove assignments in 'if' statements.
2295 (print_str): Move operator to beginning of line.
2296
61ce229a
JB
22972004-07-08 Jim Blandy <jimb@redhat.com>
2298
2299 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2300
09bcec80
BR
23012004-07-08 Bob Rossi <bob@brasko.net>
2302
2303 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2304
31c27f77
JJ
23052004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2306
2307 * language.h (struct_language_defn): Add new function pointer:
2308 la_class_name_from_physname. Also add new prototype for
2309 language_class_name_from_physname.
2310 * language.c (language_class_name_from_physname): New function.
2311 (unk_lang_class_name): Ditto.
2312 (unknown_language_defn, auto_language_defn): Change
2313 to add unk_lang_class_name function pointer for
2314 la_class_name_from_physname.
2315 (local_language_defn): Ditto.
2316 * dwarf2read.c (guess_structure_name): Change to call
2317 language_class_name_from_physname.
2318 (determine_class_name): Ditto.
2319 * cp-support.c (class_name_from_physname): Renamed.
2320 (cp_class_name_from_physname): New name of function.
2321 * cp-support.h: Ditto.
2322 * c-lang.c (c_language_defn): Change to add NULL
2323 for class_name_from_physname function pointer.
2324 (cplus_language_defn): Change to add cp_class_name_from_physname.
2325 * jv-lang.c (java_class_name_physname): New function.
2326 (java_find_last_component): New static routine.
2327 (java_language_defn): Add java_class_name_from_physname pointer.
2328 * ada-lang.c (ada_language_defn): Change to add NULL
2329 for class_name_from_physname function pointer.
2330 * f-lang.c (f_language_defn): Ditto.
2331 * m2-lang.c (m2_language_defn): Ditto.
2332 * objc-lang.c (objc_language_defn): Ditto.
2333 * p-lang.c (pascal_language_defn): Ditto.
2334 * scm-lang.c (scm_language_defn): Ditto.
2335
ee28ca0f
AC
23362004-07-06 Andrew Cagney <cagney@gnu.org>
2337
2338 Patch from Bart Robinson.
2339 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2340 (O_LARGEFILE): Define to 0, if not defined.
2341
fdb1bf9d
MK
23422004-07-03 Mark Kettenis <kettenis@gnu.org>
2343
cb162ff6
MK
2344 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2345 <machine/pcb.h> and "bsd-kvm.h".
2346 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2347 (m68kbsd_supply_pcb): New function.
2348 (_initialize_m68kbsd_nat): New prototype and function.
2349 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2350 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2351 (LOADLIBES): New variable.
2352 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2353 (LOADLIBES): New variable.
2354
fdb1bf9d
MK
2355 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2356
963c4174
MK
23572004-07-03 Mark Kettenis <kettenis@gnu.org>
2358
2359 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2360 <sys/proc.h>.
2361 (bsd_kvm_cmdlist): New variable.
2362 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2363 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2364 command and "kvm proc" command.
2365 * Makefile.in (bsd-kvm.o): Update dependencies.
2366
533f1d8f
MK
23672004-07-02 Mark Kettenis <kettenis@gnu.org>
2368
2369 * osabi.c: Update copyright year.
2370 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2371 notes if EI_OSABI is set to ELFOSABI_HPUX.
2372
6780dcde
MS
23732004-07-01 Michael Snyder <msnyder@redhat.com>
2374
2375 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2376 that seems to have gotten whacked out of line.
2377
67bebe79
MK
23782004-07-01 Mark Kettenis <kettenis@gnu.org>
2379
2380 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2381 code.
2382
0b5d8877
PH
23832004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2384
2385 * ada-lang.c (decode_packed_array): Minor change to comment.
2386 (ada_value_slice_ptr): New function.
2387 (ada_value_slice): New function.
2388 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2389 test. Don't know why it is there.
2390 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2391 to avoid dereferencing huge arrays from which one is slicing.
2392 (empty_array): Correct to return an array rather than
2393 a subrange value.
2394 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2395 on empty arrays (let'em use 'FIRST instead).
2396
19c1ef65
PH
23972004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2398
2399 Address complaints from gdb_ari.sh:
2400
2401 * ada-exp.y: Include gdb_string.h rather than string.h.
2402 (convert_char_literal): Reformat declaration.
2403 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2404 * ada-lex.l: Change use of free to xfree (the macro would do so
2405 anyway, but this is harmless).
2406 Include gdb_string.h rather than string.h.
2407 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2408
2409 * ada-lang.c (parse): Remove K&Rism in parameter list.
2410 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2411
d81cbc94
MK
24122004-06-30 Mark Kettenis <kettenis@gnu.org>
2413
2414 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2415 dead code.
2416
07681759
MK
24172004-06-30 Mark Kettenis <kettenis@gnu.org>
2418
2419 * alphabsd-nat.c: Update copyright year.
2420 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2421
f7948b5f
JB
24222004-06-29 Joel Brobecker <brobecker@gnat.com>
2423
6e0cdd28 2424 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
2425 (i386_cygwin_in_solib_call_trampoline): New function.
2426 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2427 and skip_trampoline_code gdbarch methods.
2428
8f113c9a
JB
24292004-06-29 Jim Blandy <jimb@redhat.com>
2430
2431 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2432 name actually used in the dependency lists.
2433
97dc871c
RC
24342004-06-29 Randolph Chung <tausq@debian.org>
2435
2436 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2437
47216e51
CV
24382004-06-29 Corinna Vinschen <vinschen@redhat.com>
2439
2440 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 2441 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
2442 functionality.
2443
e623b504
AC
24442004-06-28 Andrew Cagney <cagney@gnu.org>
2445
2446 * defs.h (xstrvprintf): Declare.
2447 * utils.c (xstrvprintf): New function.
2448 (internal_vproblem, xstrprintf, xasprintf)
2449 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2450 * serial.c (serial_printf): Ditto.
2451 * complaints.c (vcomplaint): Ditto.
2452
79acc9b3
CV
24532004-06-29 Corinna Vinschen <vinschen@redhat.com>
2454
2455 * infcmd.c (attach_command): Move call to target_terminal_inferior
2456 behind loading symbol table.
2457
1daf35d9
AC
24582004-06-28 Andrew Cagney <cagney@gnu.org>
2459
2460 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2461 change - add back extern deprecated_ui_loop_hook declaration.
2462
b435e160
AC
24632004-06-28 Andrew Cagney <cagney@gnu.org>
2464
2465 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2466 xstrprintf.
2467 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2468 (c_value_of_variable): Ditto.
2469 * utils.c (internal_vproblem): Ditto.
2470 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2471 * remote.c (add_packet_config_cmd): Ditto.
2472 * remote-rdp.c (rdp_set_command_line): Ditto.
2473 * regcache.c (regcache_dump): Ditto.
2474 * frv-tdep.c (new_variant, new_variant): Ditto.
2475 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2476 (fbsd_find_memory_regions): Ditto.
2477 * breakpoint.c (create_thread_event_breakpoint)
2478 (create_breakpoints): Ditto.
2479 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2480 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2481
06d5cf63
JB
24822004-06-28 Joel Brobecker <brobecker@gnat.com>
2483
2484 * ada-lang.c: Re-indent file, with some massaging to help indent
2485 a bit when the result is otherwise really too ugly.
2486
35809fad
UW
24872004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2488
2489 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2490 code_addr_p and special_addr_p to 'unsigned int'.
2491
40e20472
MK
24922004-06-27 Mark Kettenis <kettenis@gnu.org>
2493
2494 * i386v4-nat.c: Update copyright year and tweak comment.
2495 (regmap): Remove trailing comma.
2496 (supply_gregset): Rename local variable i to regnum. Call
2497 regcache_raw_supply instead of supply_register.
2498 (fill_gregset): Rename argument regno to regnum. Call
2499 regcache_raw_collect instead of regcache_collect.
2500
12b0b6de
UW
25012004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2502
2503 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2504 and special_addr_p.
2505 (frame_id_build, frame_id_build_special): Update comments.
2506 (frame_id_build_wild): New prototype.
2507 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2508 struct frame_id fields.
2509 (frame_id_build_wild): New function.
2510 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2511
47b42a3e
MK
25122004-06-27 Mark Kettenis <kettenis@gnu.org>
2513
2514 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2515 hppabsd-tdep.c.
2516
1265e4aa
JB
25172004-06-27 Joel Brobecker <brobecker@gnat.com>
2518
2519 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2520
76a01679
JB
25212004-06-27 Joel Brobecker <brobecker@gnat.com>
2522
2523 * ada-lang.c: Re-indent file.
2524
7aca490a
JB
25252004-06-27 Joel Brobecker <brobecker@gnat.com>
2526
2527 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2528 (no_symtab_msg): Likewise.
2529
5e987968
AS
25302004-06-27 Andreas Schwab <schwab@suse.de>
2531
2532 * source.c: Fix whitespace.
2533
315c4276
MK
25342004-06-27 Mark Kettenis <kettenis@gnu.org>
2535
d15be926
MK
2536 * configure.in: Include <sys/param.h> for td_pcb test.
2537 * configure: Regenerated.
2538
9062529b
MK
2539 * i386nbsd-nat.c: New file.
2540 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2541 i386obsd-nat.c and i386obsd-tdep.c.
2542 (i386nbsd-nat.o): New dependency.
2543 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2544 bsd-kvm.o.
2545 (LOADLIBES): New variable.
2546 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2547 bsd-kvm.o.
2548 (LOADLIBES): New variable.
2549
8010310e
MK
2550 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2551 (LOADLIBES): New variable.
2552
efe1d7b9
MK
2553 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2554 fetching from BSD_KVM_PADDR. Correctly lookup address for
2555 "_thread0".
2556
315c4276
MK
2557 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2558 "bsd-kvm.h".
2559 (amd64fbsd_supply_pcb): New funcion.
2560 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2561
399cfac6
DL
25622004-06-27 <david@streamline-computing.com>
2563
2564 Partial fix for PR cli/1056.
2565 * valarith.c: Check for zero in division and remainder
2566 evaluation.
2567
6235f9c8
MK
25682004-06-27 Mark Kettenis <kettenis@gnu.org>
2569
2570 * i387-tdep.c: Remove excessive whitespace.
2571
2726dafc
AC
25722004-06-26 Andrew Cagney <cagney@gnu.org>
2573
2574 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2575 * gdb-events.h, gdb-events.c: Re-generate.
2576 * tui/tui-hooks.c (tui_install_hooks): Update.
2577 (tui_remove_hooks): Update.
2578 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2579
0e56aeaf
MK
25802004-06-26 Mark Kettenis <kettenis@gnu.org>
2581
cb461069
MK
2582 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2583 (gregset_t, fpregset_t): Remove typedefs.
2584 (REG_OFFSET): Rename argument.
2585 (amd64bsd_r_reg_offset): Rename from reg_offset.
2586 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2587 Remove functions.
2588 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2589 of reg_offset.
2590 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2591
ecba89de
MK
2592 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2593
4cd80476
MK
2594 * vax-tdep.c: Tweak comment.
2595
0e56aeaf
MK
2596 Add OpenBSD/hppa support.
2597 * NEWS (New native configurations): Mention OpenBSD/hppa.
2598 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2599 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2600 files.
2601 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2602 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2603 * configure.host: Add hppa*-*-openbsd*.
2604 * configure.tgt: Add hppa*-*-openbsd*.
2605
98bbd631
AC
26062004-06-25 Andrew Cagney <cagney@gnu.org>
2607
2608 * defs.h (deprecated_ui_loop_hook): Deprecated.
2609 * wince.c (child_wait): Update.
2610 * win32-nat.c (child_wait): Update.
2611 * v850ice.c (v850ice_wait): Update.
2612 * top.c (deprecated_ui_loop_hook): Update.
2613 * serial.h: Update.
2614 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2615 (do_unix_readchar): Update.
2616 * ser-tcp.c (net_open): Update.
2617 * remote-sim.c (gdb_os_poll_quit): Update.
2618 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2619
769d7dc4
AC
26202004-06-24 Andrew Cagney <cagney@gnu.org>
2621
2622 * defs.h (deprecated_pre_add_symbol_hook)
2623 (deprecated_post_add_symbol_hook): Deprecated.
2624 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2625 (symbol_file_add_with_addrs_or_offsets): Update references.
2626
11c949aa
AC
26272004-06-24 Andrew Cagney <cagney@gnu.org>
2628
2629 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2630 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2631 * wince.c (ui_loop_hook): Delete extern declaration.
2632 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2633 * v850ice.c (ui_loop_hook): Delete extern declaration..
2634 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2635 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2636 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2637 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2638 ui_loop_hook declaration.
2639
eedc19af
AC
26402004-06-24 Andrew Cagney <cagney@gnu.org>
2641
2642 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2643 entry_func_highpc fields.
2644 * objfiles.c (init_entry_point_info): Do not clear
2645 entry_func_lowpc and entry_func_highpc.
2646 (objfile_relocate): Do not relocate entry_func_lowpc and
2647 entry_func_highpc.
2648 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2649 entry_func_highpc.
2650 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2651 entry_func_highpc.
2652 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2653 entry_func_lowpc and entry_func_highpc with call to
2654 inside_entry_func.
2655
d47079be
MK
26562004-06-24 Mark Kettenis <kettenis@gnu.org>
2657
2658 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2659 quad-precision floating point arguments in registers.
2660
2107e348
MK
26612004-06-24 Mark Kettenis <kettenis@gnu.org>
2662
2663 From Michael Mueller <m.mueller99@kay-mueller.de>:
2664 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2665 account.
2666
46587c42
JJ
26672004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2668
2669 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2670 to -1.
2671 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2672 untriggered watchpoints to a separate if clause. Update function
2673 comment regarding STOPPED_BY_WATCHPOINT argument.
2674
226f5cf4
JB
26752004-06-22 Jim Blandy <jimb@redhat.com>
2676
2677 * gdbarch.sh: Doc fix.
2678
f10683bb
MH
26792004-06-21 Martin Hunt <hunt@redhat.com>
2680 Kevin Buettner <kevinb@redhat.com>
2681
2682 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2683 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2684 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2685 to set_gdbarch_sp_regnum(). Use cooked register number.
2686 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2687
412d5987
AC
26882004-06-21 Andrew Cagney <cagney@gnu.org>
2689
2690 * gdbarch.sh: When the macro field is empty, do not generate a
2691 macro definition. When the macro field is "=", generate the macro
2692 name from the upper-case function name.
2693 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2694 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2695 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2696 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2697 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2698 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2699 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2700 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2701 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2702 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2703 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2704 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2705 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2706 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2707 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2708 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2709 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2710 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2711 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2712 (DEPRECATED_USE_STRUCT_CONVENTION)
2713 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2714 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2715 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2716 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2717 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2718 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2719 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2720 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2721 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2722 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2723 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2724 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2725 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2726 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2727 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2728 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2729 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2730 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2731
68908a3e
AC
27322004-06-21 Andrew Cagney <cagney@gnu.org>
2733
48f7351b
AC
2734 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2735 macro name, and the function rather than macro value. Only wrap
2736 macro print statements in #ifdef. Move format logic to where it
2737 is needed.
2738 * gdbarch.c: Re-generate.
2739
283354d8
AC
2740 * gdbarch.sh (read): Delete "print_p" and "description", add
2741 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2742 Delete references to print_p.
2743 (TARGET_ARCHITECTURE): Delete print predicate.
2744 * gdbarch.c: Re-generate.
2745
68908a3e
AC
2746 * gdbarch.sh: Check that multi-arch methods do not provide a
2747 macro.
2748 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2749 (print_registers_info, print_float_info, print_vector_info)
2750 (adjust_breakpoint_address, remote_translate_xfer_address)
2751 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2752 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2753 name from the multi-arch definition.
2754
a2428dbe
AC
27552004-06-20 Andrew Cagney <cagney@gnu.org>
2756
2757 * gdbarch.sh: Sort by the function, instead of macro name.
2758 * gdbarch.c: Re-generate.
2759
750eb019
AC
27602004-06-20 Andrew Cagney <cagney@gnu.org>
2761
66d659b1
AC
2762 * gdbarch.sh: Use the function, instead of macro name in
2763 errors and the log file.
2764 (return_value): Remove stray ":" in spec.
2765
750eb019
AC
2766 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2767 * gdbarch.h, gdbarch.c: Re-generate.
2768 * Makefile.in (arch-utils.o): Update dependencies.
2769 * values.c (using_struct_return): Move code calling
2770 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2771 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2772 to legacy_return_value, simplify.
2773 * infcmd.c (print_return_value): Move code calling
2774 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2775 to legacy_return_value, simplify.
2776 * infcall.c (call_function_by_hand): Move code calling
2777 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2778 * arch-utils.c: Update copyright. Include "gdbcore.h".
2779 (legacy_return_value): New function.
2780 * arch-utils.h: Update copyright.
2781 (legacy_return_value): Declare.
2782
b5622e8d
AC
27832004-06-20 Andrew Cagney <cagney@gnu.org>
2784
2785 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2786 * gdbarch.h, gdbarch.c: Re-generate.
2787 * values.c (using_struct_return): Update call.
2788 * mcore-tdep.c: Update comment.
2789 * infcall.c (call_function_by_hand): Update comment.
2790 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2791 * arch-utils.h (always_use_struct_convention): Update.
2792 * v850-tdep.c (v850_gdbarch_init): Update.
2793 * sh64-tdep.c (sh64_gdbarch_init): Update.
2794 * sh-tdep.c (sh_gdbarch_init): Update.
2795 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2796 * mips-tdep.c (mips_gdbarch_init): Update.
2797 * mcore-tdep.c (mcore_gdbarch_init): Update.
2798 * m32r-tdep.c (m32r_gdbarch_init): Update.
2799 * ia64-tdep.c (ia64_gdbarch_init): Update.
2800 * h8300-tdep.c (h8300_gdbarch_init): Update.
2801 * frv-tdep.c (frv_gdbarch_init): Update.
2802 * cris-tdep.c (cris_gdbarch_init): Update.
2803 * arm-tdep.c (arm_gdbarch_init): Update.
2804 * alpha-tdep.c (alpha_gdbarch_init): Update.
2805
5191de37
MC
28062004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2807
2808 * PROBLEMS: Add more specific information, and a work-around,
2809 for PR gdb/1458.
2810
782263ab
AC
28112004-06-18 Andrew Cagney <cagney@gnu.org>
2812
2813 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2814 * gdbarch.h, gdbarch.c: Re-generate.
2815 * ada-lang.c (ada_finish_decode_line_1): Update.
2816 * infrun.c (handle_inferior_event): Update.
2817 * infcall.c (find_function_addr): Update.
2818 * linespec.c (minsym_found): Update.
2819 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2820 Update.
2821 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2822 * cli/cli-cmds.c (disassemble_command): Update.
2823 * vax-tdep.c (vax_gdbarch_init): Update.
2824
2f305df1
MK
28252004-06-18 Mark Kettenis <kettenis@gnu.org>
2826
2827 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2828
e5fe55f7
AC
28292004-06-17 Andrew Cagney <cagney@gnu.org>
2830
2831 GDB 6.1.1 released from the GDB 6.1 branch.
2832 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2833 * PROBLEMS: Ditto.
2834
473b7be6
DJ
28352004-06-16 Daniel Jacobowitz <dan@debian.org>
2836
2837 PR gdb/1658
2838 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2839 operation as a uleb128. Found by Michael Coulter.
2840
96d887e8
PH
28412004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2842
2843 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2844 make it non-static.
2845 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2846 to ada-lang.h; this is needed to be able to implement the kill command
2847 in multi-task mode.
2848 (task_ptid): Ditto.
2849 (task_entry): Ditto.
2850 (task_list): Ditto.
2851 (ada_build_task_list): Ditto.
2852
2853 * ada-lang.c: Conditionalize routines and data structures related
2854 to breakpoints, exceptions, completion, and symbol caching on
2855 GNAT_GDB, since these are not yet used in the submitted public sources.
2856 (ada_main_name): Editorial: Move definition out of exception-related
2857 code.
2858
31eef181
AC
28592004-06-15 Andrew Cagney <cagney@gnu.org>
2860
2861 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2862 deprecated_pc_in_call_dummy.
2863
2c500098
AM
28642004-06-15 Alan Modra <amodra@bigpond.net.au>
2865
2866 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2867 bfd_get_section_size_before_reloc or _raw_size.
2868 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2869 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2870 (dwarf2_read_section): Likewise.
2871 * elfread.c (elf_locate_sections): Likewise.
2872 * gcore.c (derive_heap_segment): Likewise.
2873 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2874 * remote-e7000.c (e7000_load): Likewise.
2875 * remote-m32r-sdi.c (m32r_load): Likewise.
2876 * remote-mips.c (mips_load_srec): Likewise.
2877 (pmon_load_fast): Likewise.
2878 * remote.c (compare_sections_command): Likewise.
2879 * symfile.c (add_section_size_callback): Likewise.
2880 (load_section_callback): Likewise.
2881 (pc_in_unmapped_range): Likewise.
2882 (pc_in_mapped_range): Likewise.
2883 (sections_overlap): Likewise.
2884 (list_overlays_command): Likewise.
2885 (simple_overlay_update_1): Likewise.
2886 (simple_overlay_update): Likewise.
2887 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2888 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2889
90f943f1
RC
28902004-06-14 Randolph Chung <tausq@debian.org>
2891
2892 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2893 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2894 static.
2895 (hppa_hpux_inferior_created): New function.
2896 (hppa_hpux_init_abi): Register observer.
2897 * symfile.c (hp_cxx_exception_support_initialized)
2898 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2899 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2900
700c15aa
RC
29012004-06-14 Randolph Chung <tausq@debian.org>
2902
3973a7d3
AC
2903 * MAINTAINERS (Write After Approval): Alphabetize my entry
2904 correctly.
700c15aa 2905
cea4838c
AC
29062004-06-14 Andrew Cagney <cagney@gnu.org>
2907
2908 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2909 testsuite maintainer.
2910
97092415
AC
29112004-06-13 Andrew Cagney <cagney@gnu.org>
2912
e8c3165b
AC
2913 * infcmd.c (print_return_value): Fix logic, allow
2914 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2915
bceabdd8
AC
2916 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2917 defining any macros.
2918 * gdbarch.h: Re-generate.
2919
57010b1c
AC
2920 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2921 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2922 * gdbarch.h: Re-generate.
2923
bc87dfa0
AC
2924 * values.c (generic_use_struct_convention): Don't check gcc_p.
2925
15ac804d
AC
2926 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2927 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2928 * gdbarch.h, gdbarch.c: Regenerate.
2929 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2930 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2931 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2932 deprecated_max_register_raw_size and
2933 deprecated_max_register_virtual_size.
2934 * v850-tdep.c (v850_gdbarch_init): Ditto.
2935 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2936 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2937 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2938 * cris-tdep.c (cris_gdbarch_init): Ditto.
2939
97092415
AC
2940 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2941 * gdbarch.h, gdbarch.c: Re-generate.
2942 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2943 (m68hc11_use_struct_convention): Delete function.
2944 (m68hc11_extract_struct_value_address): Delete function.
2945 (m68hc11_return_value): New function.
2946 (m68hc11_gdbarch_init): Instead of store_return_value,
2947 extract_return_value, return_value_on_stack,
2948 deprecated_extract_struct_value_address and use_struct_convention,
2949 set return_value.
2950 * values.c (using_struct_return): Do not call
2951 RETURN_VALUE_ON_STACK.
2952 * arch-utils.h (generic_return_value_on_stack_not): Delete
2953 declaration.
2954 * arch-utils.c (generic_return_value_on_stack_not): Delete
2955 function.
2956
44e5158b
AC
29572004-06-12 Andrew Cagney <cagney@gnu.org>
2958
2959 * values.c (register_value_being_returned): Delete function.
2960 * infcmd.c (legacy_return_value): Delete function.
2961 * infcall.c (call_function_by_hand): Inline
2962 "register_value_being_returned", simplify.
2963 * values.c (using_struct_return): Update comment, refer to
2964 print_return_value instead of register_value_being_returned.
2965 * infcmd.c (print_return_value): Inline calls to
2966 register_value_being_returned and legacy_return_value. Simplify.
2967
b887c273
RC
29682004-06-11 Randolph Chung <tausq@debian.org>
2969
2970 * somread.c (som_symtab_read): Exclude gcc local symbols.
2971
1b2bfbb9
RC
29722004-06-11 Randolph Chung <tausq@debian.org>
2973
3973a7d3
AC
2974 * infrun.c (handle_inferior_event): Handle the case when a
2975 trampoline ends up in the runtime resolver, and if the trampoline
2976 has no name. Rearrange the code so that all the trampoline
2977 processing happens before other step-out-of-range handling.
1b2bfbb9 2978
a9d61c86
MH
29792004-06-11 Martin Hunt <hunt@redhat.com>
2980
2981 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2982 has no fpu.
2983
2c87cf5a
AC
29842004-06-10 Andrew Cagney <cagney@gnu.org>
2985
2986 * blockframe.c (legacy_inside_entry_func): Delete.
2987 (legacy_frame_chain_valid): Inline call to
2988 legacy_inside_entry_func, simplify.
2989
0b67b468 29902004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
2991
2992 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
2993 * dwarf2read.c (partial_die_info): Add dirname field.
2994 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2995 (read_partial_die): Save away DW_AT_comp_dir.
2996 * defs.h (symtab_to_filename): Removed.
2997 * source.c (find_and_open_source): Added.
57c22c6c 2998 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
2999 (symtab_to_filename): Removed.
3000 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
3001 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3002 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3003 symtab_to_filename.
3004 * symtab.h (partial_symtab): Add dirname field.
3005 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
3006 (mi_cmd_file_list_exec_source_file): Call new function
3007 symtab_to_fullname to find fullname.
57c22c6c 3008 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 3009 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
3010 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3011
9a1dd1ad
AC
30122004-06-10 Andrew Cagney <cagney@gnu.org>
3013
239ae8c7
AC
3014 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3015 to generic_use_struct_convention, the default value.
3016
fc720350
AC
3017 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3018 of abort.
3019
9a1dd1ad
AC
3020 * ns32k-tdep.c (ns32k_push_arguments): New function.
3021 (ns32k_gdbarch_init): Set deprecated_push_arguments.
3022 * infcall.c (call_function_by_hand): Call error instead of
3023 legacy_push_arguments.
3024 * value.h (legacy_push_arguments): Delete declaration.
3025 * valops.c (legacy_push_arguments): Delete function.
3026 (value_push): Delete function.
3027
fea25152
BF
30282004-06-10 Brian Ford <ford@vss.fsi.com>
3029
3030 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3031 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3032 info.
3033 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3034
30a4a8e0
AC
30352004-06-10 Andrew Cagney <cagney@gnu.org>
3036
3037 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3038 * gdbarch.h, gdbarch.c: Re-generate.
3039 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3040 parameters.
3041 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3042 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3043 deprecated_pc_in_call_dummy instead of
3044 DEPRECATED_PC_IN_CALL_DUMMY.
3045 (arm_skip_prologue): Ditto.
3046 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3047 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3048 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3049 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3050 Ditto.
3051 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3052 (sh64_init_extra_frame_info, sh64_get_saved_register)
3053 (sh64_pop_frame): Ditto.
3054 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3055 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3056 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3057 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3058 (h8300_pop_frame): Ditto.
3059 * blockframe.c (legacy_inside_entry_func)
3060 (legacy_frame_chain_valid): Ditto.
3061 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3062 to deprecated_pc_in_call_dummy.
3063
81cfbe54
AC
30642004-06-09 Andrew Cagney <cagney@gnu.org>
3065
a1f4a1b6
AC
3066 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3067 provide a default value.
3068 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3069 * gdbarch.h, gdbarch.c: Re-generate.
3070 * arch-utils.c (generic_convert_register_p): Rename
3071 legacy_convert_register_p
3072 (legacy_register_to_value, legacy_value_to_register): Delete
3073 functions.
3074 * arch-utils.h (generic_convert_register_p): Rename
3075 legacy_convert_register_p.
3076 (legacy_register_to_value, legacy_value_to_register): Delete
3077 declarations.
3078
9730f241
AC
3079 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3080 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3081 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3082 * gdbarch.h, gdbarch.c: Re-generate.
3083 * infcmd.c (default_print_registers_info): Simplify.
3084 * findvar.c (value_of_register): Simplify.
3085 * mi/mi-main.c (get_register): Simplify.
3086 * arch-utils.c (legacy_convert_register_p): Always return 0.
3087 (legacy_register_to_value, legacy_value_to_register): Always call
3088 internal_error.
3089
8a1bf479
AC
3090 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3091 #ifdef CLEAR_INSN_CACHE code.
3092 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3093 Delete #ifdef CLEAR_DEFERRED_STORES code.
3094
4b38d6f1
AC
3095 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3096
2d62ecc7
AC
3097 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3098 copyright.
3099 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3100
be4f7469
AC
3101 * config/mips/mipsv4.mh: Delete file.
3102
81cfbe54
AC
3103 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3104 unreferenced macro.
3105 (hpread_adjust_stack_address): Delete declaration.
3106
d966f0cb
AC
31072004-06-08 Andrew Cagney <cagney@gnu.org>
3108
3109 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3110 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3111 PTRACE_ATTACH / PTRACE_DETACH available call error.
3112 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3113 * infttrace.c (update_thread_state_after_attach, attach, detach):
3114 Remove #ifdef wrappers.
3115 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3116 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3117 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3118 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3119 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3120 * config/nm-linux.h (ATTACH_DETACH): Delete.
3121 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3122 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3123 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3124 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3125 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3126
d91670b9
CV
31272004-06-08 Corinna Vinschen <vinschen@redhat.com>
3128
3129 * configure.in: Set $configdir to the right OS specific value.
3130 Use value when setting $tcldir and $tkdir.
3131 * configure: Regenerate.
3132
28ba0b33
PB
31332004-06-06 Paul Brook <paul@codesourcery.com>
3134
3135 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3136 records.
3137
f26caa11
PH
31382004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3139
3140 * ada-lang.c (lookup_symbol_in_language): New function to allow
3141 re-use of another language's symbol lookup code. (Placed here
3142 temporarily while Ada support is being integrated into the public
3143 tree).
3144 (restore_language): New auxiliary function for
3145 lookup_symbol_in_language.
3146 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3147 temporarily while Ada support is being integrated into the public
3148 tree).
3149
d560a54b
AO
31502004-06-08 Alexandre Oliva <aoliva@redhat.com>
3151
e75d110c
AO
3152 * Makefile.in (check//%): New.
3153
d560a54b
AO
3154 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3155 (mn10300_store_return_value): Rewrite.
3156 (mn10300_type_align): New.
3157 (mn10300_use_struct_convention): Rewrite.
3158 (mn10300_return_value): New, using all of the above.
3159 (mn10300_pop_frame_regular): Add saved_regs_size.
3160 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3161
a72fbdb7
AO
3162 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3163 regs if PC is on movm.
3164
01904826
JB
31652004-06-07 Jim Blandy <jimb@redhat.com>
3166
3167 Add native Linux support for the PowerPC E500.
3168 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3169 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3170 all architectures except the E500.
3171 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3172 #definitions.
3173 (struct gdb_evrregset_t): New type.
3174 (have_ptrace_getsetevrregs): New variable.
3175 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3176 fetch_spe_registers): New functions.
3177 (fetch_register): Call fetch_spe_register as appropriate.
3178 Assert that we're only passed raw register numbers.
3179 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3180 Don't fetch gprs if they're pseudoregisters.
3181 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3182 store_spe_registers): New functions.
3183 (store_register): Call store_spe_register as appropriate.
3184 Assert that we're only passed raw register numbers.
3185 (store_ppc_registers): Call store_spe_registers as appropriate.
3186 Don't store gprs if they're pseudoregisters.
3187
f90ef764
JJ
31882004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3189
3190 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3191 struct if one exists, even if we are dealing with a zombie thread.
3192
45b75230
AC
31932004-06-07 Andrew Cagney <cagney@gnu.org>
3194
3195 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3196 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3197 Rename PC_REQUIRES_RUN_BEFORE_USE.
3198 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3199 #ifdef.
3200
1658da49
RC
32012004-06-07 Randolph Chung <tausq@debian.org>
3202
3203 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3204 unwinding after sp has been saved to the stack but before the end
3205 of the prologue, and after the fp has been modified but before it has
3206 been saved to the stack.
3207 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3208 Remove superfluous definitions.
3209 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3210
9a727a3c
RC
32112004-06-07 Guy Martin <gmsoft@gentoo.org>
3212
3213 Committed by Randolph Chung.
3214 * hppa-linux-nat.c: Include the correct version of the header file
3215 depending on the kernel version.
3216
9e500012
RC
32172004-06-06 Randolph Chung <tausq@debian.org>
3218
3219 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3220 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3221
3388d7ff
RC
32222004-06-06 Randolph Chung <tausq@debian.org>
3223
3224 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3225 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3226 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3227 * hppa-tdep.c (hppa_symbol_address): New function definition.
3228 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3229
d49771ef
RC
32302004-06-06 Randolph Chung <tausq@debian.org>
3231
3232 * hppa-tdep.h (struct value): Forward declaration.
3233 (gdbarch_tdep): Define tdep find_global_pointer method.
3234 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3235 associated with the function we are trying to call, and write it
3236 to the gp register.
3237 (hppa32_convert_from_funct_ptr_addr): New function.
3238 (hppa_find_global_pointer): New function.
3239 (hppa_gdbarch_init): Set default find_global_pointer method; set
3240 convert_from_func_ptr_addr method.
3241 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3242 (hppa_linux_init_abi): Set find_global_pointer method.
3243 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3244
7d9b040b
RC
32452004-06-06 Randolph Chung <tausq@debian.org>
3246
3247 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3248 to struct value *function.
3249 * gdbarch.c: Regenerate.
3250 * gdbarch.h: Likewise.
3251 * infcall.c (call_function_by_hand): Pass entire function value
3252 to push_dummy_call.
3253
3254 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3255 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3256 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3257 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3258 * arm-tdep.c (arm_push_dummy_call): Likewise.
3259 * avr-tdep.c (avr_push_dummy_call): Likewise.
3260 * cris-tdep.c (cris_push_dummy_call): Likewise.
3261 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3262 * frv-tdep.c (frv_push_dummy_call): Likewise.
3263 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3264 * hppa-tdep.c (hppa32_push_dummy_call)
3265 (hppa64_push_dummy_call): Likewise.
3266 * i386-tdep.c (i386_push_dummy_call): Likewise.
3267 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3268 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3269 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3270 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3271 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3272 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3273 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3274 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3275 (ppc64_sysv_abi_push_dummy_call): Likewise.
3276 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3277 (ppc64_sysv_abi_push_dummy_call): Likewise.
3278 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3279 * s390-tdep.c (s390_push_dummy_call): Likewise.
3280 * sh-tdep.c (sh_push_dummy_call_fpu)
3281 (sh_push_dummy_call_nofpu): Likewise.
3282 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3283 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3284 * vax-tdep.c (vax_push_dummy_call): Likewise.
3285
4a19ea35
JB
32862004-06-04 Jim Blandy <jimb@redhat.com>
3287
8327ccee
JB
3288 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3289 gdbarch argument to register_size.
3290
a3c001ce
JB
3291 * rs6000-tdep.c (rs6000_store_return_value): Use
3292 regcache_cooked_write_part instead of
3293 deprecated_write_register_bytes.
3294 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3295 not gdbarch_deprecated_store_return_value.
3296
4a19ea35
JB
3297 * ppc-linux-nat.c (store_register, fetch_register): Remove
3298 incorrect assertions. Simplify and generalize handling of
3299 transfers whose sizes are not multiples of, or less than, sizeof
3300 (PTRACE_XFER_TYPE).
3301
b9b5d7ea
JJ
33022004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3303
3304 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3305 as a new thread event.
720c7d64 3306 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 3307 zombie, return TD_THR_ZOMBIE.
720c7d64 3308 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
3309 TD_THR_ZOMBIE, check if the thread is still on the thread list
3310 and return a -1 ptid if not found.
3311 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3312 change the status to TARGET_WAITKIND_SPURIOUS.
3313
c8a3b559
CV
33142004-06-03 Corinna Vinschen <vinschen@redhat.com>
3315
3316 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3317 double values in little endian mode.
3318
20605361
AC
33192004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3320
3321 Committed by Andrew Cagney.
3322 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3323 after last enum constant to avoid error from IBM C
3324 compiler.
3325
bc97b3ba
JB
33262004-06-02 Jim Blandy <jimb@redhat.com>
3327
3328 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3329 to 'message', and make it local to the lone block that uses it.
3330
1da28ab0
JB
3331 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3332
4c4b4cd2
PH
33332004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3334
8a2225b2
PH
3335 * ada-exp.y: Update copyright notice.
3336 Include block.h.
3337
3338 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3339 SPECIAL_VARIABLE and unify the treatment of these cases.
3340
3341 (write_attribute_call0): Remove.
3342 (write_attribute_call1): Remove.
3343 (write_attribute_calln): Remove.
3344 (save_qualifier): Add missing semicolon.
3345
3346 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3347 temporarily disabled to allow compilation with FSF head version.
3348
3349 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3350 use individual operators (OP_*) for all attributes.
3351 (exp syntax): Use write_int.
3352 Handle STRING literals with OP_STRING.
3353 (variable syntax): Add limit parameter to calls to
3354 write_object_renaming.
3355
3356 (temp_parse_space): New definition to hold entities that need
3357 only live until the next call to ada_parse.
3358 (string_to_operator): Rename fields of ada_opname_table entries.
3359
3360 (write_var_from_sym): Record block.
3361 (write_var_from_name): Minor reformatting.
3362 Make sure saved name is properly encoded in the case of multiple
3363 matches, and set its language to Ada.
3364 Update comment.
3365 Modify to indicate unresolved name as symbol in the UNRESOLVED
3366 namespace, allocated in temp_parse_space.
3367 (write_int): New function.
3368
3369 (write_object_renaming): Add max_depth parameter to limit
3370 chains of object renamings.
3371 Handle case where root of renaming expression is itself a renaming.
3372 Use temp_parse_space for temporary name buffer.
3373 Handle renamings to dereferenced pointers (___XEXA suffices).
3374
3375 (ada_parse, yyerror, string_to_operator,
3376 write_var_from_sym, write_var_from_name, write_attribute_call0,
3377 write_attribute_call1, write_attribute_calln,
3378 write_object_renaming): Protoize.
3379
3380 (_initialize_ada_exp): New function.
3381
3382 * ada-lang.c: Update copyright notice.
3383 General terminology change to conform to GNAT compiler usage:
3384 mangle => encode, demangle => decode
3385 Include gdb_obstack.h.
3386 Include gdb_regex.h
3387 Include frame.h
3388 Include hashtab.h
3389 Include completer.h
3390 Include gdb_stat.h
3391 Include block.h
3392 Include infcall.h
3393
3394 (ADA_RETAIN_DOTS): Make sure this is defined.
3395 (TRUNCATION_TOWARDS_ZERO): Define.
3396 (struct string_vector): Define.
3397 (unresolved_names): Remove definition.
3398 (xnew_string_vector): New function.
3399 (string_vector_append): New function.
3400 (extract_string): Make static.
3401 (ada_unqualified_name): New function.
3402 (add_angle_brackets): New function.
3403 (function_name_from_pc): New function.
3404 (place_on_stack): Rename to ensure_lval.
3405
3406 (ensure_lval): Renamed from place_on_stack.
3407 Make identity on lvals.
3408 Update comment.
3409 (is_nonfunction): New interface.
3410 Only symbols in LOC_CONST class can be enumerals.
3411 (fill_in_ada_prototype): Remove; now independent of language.
3412 (add_defn_to_vec): Add obstack and symtab arguments.
3413 Use obstack to hold collected definitions.
3414 (num_defns_collected): New function.
3415 (defns_collected): New function.
3416 (ada_resolve_subexp): Rename to resolve_subexp.
3417 (resolve_subexp): Renamed from ada_resolve_subexp.
3418 (ada_op_name): Return non-const result.
3419 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3420 other purposes.
3421
3422 (to_fixed_array_type): Add declaration.
3423 (coerce_unspec_val_to_type): Remove offset parameter.
3424 (find_sal_from_funcs_and_line): New interface.
3425 (find_line_in_linetable): Ditto.
3426
3427 (all_sals_for_line): Rename to ada_sals_for_line and make
3428 global.
3429 Add new parameter. When set, do not ask the user to choose the
3430 instance, but use the first one found instead.
3431 Use given line number in returned sals.
3432 Fix comment.
3433 Skip the prologue if funfirstline is set.
3434 Correct for memory leak when 0 lines found.
3435
3436 (value_pos_atr): Use pos_atr.
3437 (pos_atr): New function.
3438 (standard_lookup): Add block parameter.
3439
3440 (makeTimeStart): Remove declaration and uses.
3441 (makeTimeStop): Remove declaration and uses.
3442
3443 (ada_completer_word_break_characters): Allow for VMS.
3444 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3445 (raise_sym_name): New constant.
3446 (raise_unhandled_sym_name): New constant.
3447 (raise_assert_sym_name): New constant.
3448 (process_raise_exception_name): New constant.
3449 (longest_exception_template): New constant.
3450 (warning_limit): New variable to limit warnings during expression
3451 evaluation.
3452 (warnings_issued): New variable to keep track of warnings issued.
3453 (known_runtime_file_name_patterns): New constant.
3454 (known_auxiliary_function_name_patterns): New constant.
3455 (symbol_list_obstack): New variable.
3456
3457 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3458 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3459 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3460 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3461 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3462 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3463 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3464 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3465 and strcmp.
3466
3467 (ada_get_field_index): New function.
3468 (lim_warning): New function.
3469 (ada_translate_error_message): New function.
3470 (MAX_OF_SIZE): New function.
3471 (MIN_OF_SIZE): New function.
3472 (UMAX_OF_SIZE): New function.
3473 (UMIN_OF_SIZE): New function.
3474 (discrete_type_high_bound): New function.
3475 (discrete_type_low_bound): New function.
3476 (base_type): New function.
3477 (do_command): Remove.
3478
3479 (ada_update_initial_language): Use language_ada, not language_unknown.
3480 (ada_encode): Renamed from ada_mangle.
3481 Obey ADA_RETAIN_DOTS.
3482 (ada_decode): Renamed from ada_demangle.
3483 Update coding conventions.
3484 (decoded_names_store): New hash table.
3485 (ada_decode_symbol): New function.
3486 (ada_la_decode): New function.
3487
3488 (modify_general_field): Correct computations of offset and bit
3489 position.
3490 (desc_base_type): Handle ref types, too.
3491 (ada_is_direct_array_type): New function.
3492
3493 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3494 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3495 (ada_is_bogus_array_descriptor,ada_type_of_array,
3496 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3497 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3498 ada_is_array_descriptor_type.
3499
3500 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3501 (ada_is_packed_array_type): Handle pointers or
3502 references to packed arrays as well.
3503 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3504 (decode_packed_array_type): Search for the packed array type
3505 symbol in the currently selected block and associated
3506 superblocks too.
3507 Use lookup_symbol again.
3508
3509 (decode_packed_array): Handle pointers and references.
3510 Update call to coerce_unspec_val_to_type.
3511 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3512 (ada_value_primitive_packed_val): Improve comment.
3513
3514 (ada_index_type): Substitute int type for "undefined".
3515 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3516 ada_array_langth, ada_is_string_type): Use renamed
3517 ada_is_simple_array_type.
3518 (empty_array): New function.
3519
3520 (ada_resolve): Rename to resolve.
3521 (resolve): Make static.
3522 Call renamed resolve_subexp.
3523 Update comment.
3524 (ada_resolve_subexp): Rename to resolve_subexp.
3525 (resolve_subexp): Update comment.
3526 Decomment disabled code.
3527 Add LOC_COMPUTED* cases.
3528 Modify to use temporary struct symbols (marked as being in
3529 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3530 OP_UNRESOLVED_VALUE.
3531 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3532 Add OP_STRING case.
3533 Remove OP_ARRAY.
3534 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3535 Use new ada_lookup_symbol_list interface.
3536 Use new ada_resolve_function interface.
3537 Remove OP_TYPE case.
3538
3539 (ada_args_match): Idiot proof against null actuals.
3540 Use intermediate variables to clarify.
3541 (ada_resolve_function): Update comment and interface.
3542 (mangled_ordered_before): Rename to encoded_ordered_before and
3543 update comment.
3544 (sort_choices): Update comment and interface.
3545 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3546 (user_select_syms): New interface.
3547 Use new sort_choices interface.
3548 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3549 (possible_user_operator_p): Idiot-proof against null values.
3550 (ada_simple_renamed_entity): Don't make cleanup; rely on
3551 caller to free result string.
3552 Remove const from return type.
3553 (make_array_descriptor): Rename uses of place_on_stack to
3554 ensure_lval.
3555 Make sure that arrays are on stack.
3556
3557 (HASH_SIZE): Define.
3558 (struct cache_entry): Define.
3559 (cache_space): Define.
3560 (cache): Define.
3561 (clear_ada_sym_cache): New function.
3562 (find_entry): New function.
3563 (lookup_cached_symbol): New function.
3564 (defn_vector_size): Define.
3565 (cache_symbol): New function.
3566 (defn_symbols): Remove.
3567
3568 (standard_lookup): Use lookup_symbol_in_language to get effect of
3569 C lookup.
3570 Cache results.
3571
3572 (symbol_completion_match): New function.
3573 (symbol_completion_add): New function.
3574 (ada_make_symbol_completion_list): New function.
3575
3576 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3577 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3578 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3579 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3580
3581 (ada_lookup_simple_minsym): New function.
3582 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3583
3584 (add_symbols_from_enclosing_procs): New interface.
3585 Conditionalize more helpfully.
3586 Don't bother if program isn't running.
3587 Use new interface to get_frame_block.
3588 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3589
3590 (remove_extra_symbols): New interface.
3591 (xget_renaming_scope): New function.
3592 (is_package_name): New function.
3593 (renaming_is_visible): New function.
3594 (remove_out_of_scope_renamings): New function.
3595
3596 (ada_lookup_symbol_list): New interface.
3597 Properly reinitialize the symbol list obstack.
3598 Don't call add_symbols_from_enclosing_procs if we start from a
3599 static or global block.
3600 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3601 add_symbols_from_enclosing_procs.
3602 Add symtab data to cached entries.
3603 Handle symbols prefixed with
3604 "standard__" specially; strip prefix and don't look in local symbols.
3605 Do not include out of scope renaming symbols in list of
3606 symbols returned.
3607 Add const to block parameter.
3608 Move check for non-local, non-global symbols earlier.
3609 Remove timing stuff.
3610 (ada_lookup_symbol): New interface.
3611 Find symtab as well.
3612 (ada_lookup_symbol_nonlocal): New function.
3613
3614 (is_name_suffix): Enhance suffix detection to recognize
3615 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3616 (is_dot_digits_suffix): New function.
3617 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3618
3619 (ada_add_block_symbols): New interface. Use obstack to return results
3620 in a vector of struct ada_symbol_infos. Add symtab argument.
3621 Use new interface to add_defn_to_vec.
3622 Remove calls to fill_in_ada_prototype.
3623 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3624
3625 (ada_finish_decode_line_1): Add const qualification to local to fix
3626 warning.
3627 Start looking in static block for functions to avoid attempts
3628 to search frame chain for up-level variables.
3629 Adapt to new ada_sals_for_line interface.
3630 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3631 Handle quoting of the function name inside the spec string.
3632 Skip prologue when funfirstline is set and update the
3633 function documentation to that effect.
3634
3635 (debug_print_lines, debug_print_block, debug_print_blocks,
3636 debug_print_symtab): Remove.
3637
3638 (ada_main_name): New function.
3639 (ada_exception_breakpoint_type): New function.
3640 (is_known_support_routine): New function.
3641 (ada_find_printable_frame): Renamed from find_printable_frame and made
3642 global.
3643 Remove level parameter.
3644 Use new interface to select_frame.
3645
3646 (begin_command): Remove.
3647 (ada_adjust_exception_stop): New function.
3648 (ada_print_exception_stop): New function.
3649 (exception_name_from_cond): New function.
3650 (ada_report_exception_break): Replace disabled code with
3651 conditionalization on GNAT_GDB.
3652 Get the exception name from the condition string.
3653 Remove and move functionality into new functions
3654 ada_print_exception_breakpoint_task and
3655 ada_print_exception_breakpoint_nontask.
3656 (error_breakpoint_runtime_sym_not_found): New function.
3657 (is_runtime_sym_defined): New function.
3658 (ada_breakpoint_rewrite): Uncomment suppressed code.
3659 Use symbolic error-message and runtime-symbol names.
3660 Surround runtime symbol names in quotes.
3661 Allow non-specific breakpoints on exceptions and assertions before
3662 program starts.
3663
3664 (ada_is_tagged_type): Add parameter.
3665 (ada_is_tag_type): New function.
3666 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3667 (ada_variant_discrim_type): Ditto.
3668 (value_tag_from_contents_and_address): New function.
3669 (type_from_tag): New function.
3670 (struct tag_args): New structure used to communicate with
3671 ada_tag_name_1.
3672 (ada_tag_name_1): New function.
3673 (ada_tag_name): New function.
3674
3675 (ada_scan_number): Update comment.
3676 (find_struct_field): New function.
3677 (ada_search_struct_field): Make static.
3678 (ada_value_struct_elt): New version that returns references when
3679 given pointers or references to structs.
3680 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3681 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3682 interface.
3683 (ada_value_ind): Use new ada_to_fixed_value interface.
3684 (ada_coerce_ref): Ditto.
3685 (field_offset): Remove.
3686
3687 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3688 (ada_find_renaming_symbol): New function.
3689 (ada_prefer_type): Prefer named types over unnamed ones.
3690 (variant_field_index): New function.
3691 (contains_variant_part): Removed: subsumed by variant_field_index.
3692 (ada_template_to_fixed_record_type): New function, mostly from
3693 template_to_fixed_record_type.
3694 (template_to_fixed_record_type):
3695 Do not scan the type fields beyond the last one; prevents a
3696 potential SEGV.
3697 Handle case where variant field is listed BEFORE discriminant it
3698 depends on.
3699 Fix calculation of record length when bit length is
3700 not evenly divisible by char length.
3701 Move code to ada_template_to_fixed_record_type and call it.
3702
3703 (template_to_static_fixed_type): Revise comment.
3704 Modify to work on ordinary record types as well as templates,
3705 so as to handle fields that use ___XVE or ___XVU encodings.
3706 (to_record_with_fixed_variant_part): Fill out comment.
3707 Initialize C++ stuff in right type.
3708 Allow case where DVAL is null.
3709 Handle case where variant field is not last.
3710 Fix typo concerning record length.
3711 (to_fixed_record_type): Decomment disabled code.
3712 (to_fixed_record_type): Use variant_field_index instead of
3713 contains_variant_part.
3714 (to_fixed_variant_branch_type): Ditto.
3715 (to_fixed_array_type): Decomment disabled code.
3716 (ada_to_fixed_type): Convert tagged types to the specific type.
3717 Deactivate the size-check for array types in order to avoid
3718 some false size alarms.
3719 (to_static_fixed_type): Decomment disabled code.
3720 Modify to call template_to_static_fixed_type
3721 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3722 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3723 Remove valaddr argument, as it is never really used.
3724 (ada_to_fixed_value): Change interface to act on single struct value*
3725 operand.
3726 (adjust_pc_past_prologue): New function.
3727 (ada_attribute_name): Modify to take enum exp_opcode argument.
3728
3729 (ada_enum_name): Recognize new homonym-distinguishing convention.
3730 Adjust local variable's type to remove compiler warning.
3731 Fix a small problem in the part that unqualifies the enumeration name.
3732 (ada_value_binop): New function.
3733 (ada_value_equal): New function.
3734
3735 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3736 Don't give error message when not doing normal evaluation
3737 and a tagged type doesn't seem to contain a structure member.
3738 Give error message for packed arrays.
3739 For indexing arrays, handle pointers to packed arrays correctly.
3740 Handle case of 'first and 'last attributes of bare integral type
3741 without encoded subtype info.
3742 Remove some unnecessary casts.
3743 Fix uninitialized value of type in computing 'first, 'last, or 'length
3744 of array object.
3745 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3746 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3747 calls.
3748 Attributes are now exp_opcode values.
3749 Correct treatment of 'modulus.
3750 Better error message for taking 'length of wrong kind of type;
3751 improve comment.
3752 Change EVAL_NORMAL to noside for consistency.
3753 Use ada_value_binop for DIV, MOD, REM.
3754 Make special case out of array of length 0, since an argument
3755 of 0 upsets some platforms' malloc.
3756 Use OP_STRING instead of OP_ARRAY.
3757 For slice, add check that we have an array type before extracting
3758 a slice out of it. Avoids a SEGV.
3759 When evaluating an array slice, if the array type is a reference to
3760 an aligner type, then replace the aligner type by the actual type.
3761 Decomment disabled code.
3762 Remove some dead code.
3763 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3764 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3765 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3766 and UNOP_MBR to UNOP_IN_RANGE.
3767 If an array type has a parallel ___XVE type, then use it.
3768 Turn arrays into pointers for lvalue arrays.
3769 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3770 bounds error and handle 0-length slices.
3771 Use lim_warning.
3772 When selecting fields, apply ada_to_fixed_value (because the fields
3773 might have ___XVU or ___XVE encodings even if not dynamic.)
3774 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3775 (ada_is_system_address_type): New function.
3776
3777 (get_var_value): Use new interface to ada_lookup_symbol_list.
3778 (get_int_var_value): New interface.
3779 (to_fixed_range_type): Allow unknown bound, with warning.
3780 (ada_is_modular_type): Decomment disabled code.
3781 (ADA_OPERATORS): New definition.
3782 (ada_operator_length): New function.
3783 (ada_expr_op_name): New function.
3784 (ada_forward_operator_length): New function.
3785 (ada_dump_subexp_body): New function.
3786 (ada_print_subexp): New function.
3787 (ada_exp_descriptor): New constant.
3788 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3789 (ada_language_defn): Add ada_exp_descriptor entry.
3790 Change ada_parse => parse.
3791 Add post-parser entry.
3792 Use ada-specific non-local symbol lookup.
3793 Don't use C-style arrays.
3794 String lower-bound is 1.
3795 Decomment disabled code.
3796 (parse): New function.
3797 New fields ada_translate_error_message, ada_lookup_symbol,
3798 ada_lookup_minimal_symbol.
3799
3800 * ada-lang.h: Update copyright dates.
3801 Replace the mangle/demangle terminology throughout by the
3802 more appropriate encode/decode one.
3803 Include breakpoint.h.
3804 Forward declare struct partial_symbol, struct block.
3805 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3806 (EXTRACT_ADDRESS): Remove.
3807 (EXTRACT_INT): Remove.
3808 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3809 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3810 (MAX_RENAMING_CHAIN_LENGTH): Define.
3811 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3812
3813 (enum task_states): Remove.
3814 ada_task_states: Remove.
3815 (fat_string): Remove.
3816 (struct entry_call): Remove.
3817 (struct task_fields): Remove.
3818 (struct task_entry): Remove.
3819
3820 (struct ada_symbol_info): Define.
3821 (enum ada_attribute): Remove.
3822 (enum ada_operator): Define.
3823
3824 (ada_get_field_index): Declare.
3825 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3826 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3827 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3828 (ada_lookup_symbol_list): New interface.
3829 (ada_decode_symbol): Declare.
3830 (ada_decode): Declare.
3831 (ada_lookup_symbol): New interface.
3832 (ada_update_initial_language): Declare.
3833 (ada_lookup_simple_minsym): Declare.
3834 (user_select_syms): New interface.
3835 (ada_sals_for_line): Declare.
3836 (ada_is_tagged_type): New interface.
3837 (ada_tag_name): Declare.
3838 (ada_lookup_struct_elt_type): Remove declaration.
3839 (ada_search_struct_field): Remove declaration.
3840 (ada_attribute_name): New interface.
3841 (ada_is_system_address_type): Declare.
3842 (ada_to_fixed_value): Remove declaration.
3843 (ada_template_to_fixed_record_type_1): Declare.
3844 (get_int_var_value): New interface.
3845 (ada_find_any_symbol): Declare.
3846 (ada_find_renaming_symbol): Declare.
3847 (ada_mangle): Rename to ada_encode.
3848 (ada_simple_renamed_entity): Remove const.
3849 (ada_main_name): Declare.
3850 (get_current_task): Rename to ada_get_current_task.
3851 (get_entry_number): Remove declaration.
3852 (ada_report_exception_break): Remove declaration.
3853 (ada_print_exception_breakpoint_nontask): Declare.
3854 (ada_print_exception_breakpoint_task): Declare.
3855 (ada_find_printable_frame): Declare.
3856
3857 * ada-lex.l: Update copyright notices.
3858 Use xmalloc and xfree instead of malloc and free.
3859 Use new interface to name_lookup.
3860 Use new interface to
3861 ada_mangle=>ada_encode.
3862 Redo handling of '$...' variable to parallel current treatment
3863 in c-exp.y.
3864 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3865 digit_to_int, strtoulst, processInt, processReal, processId,
3866 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3867 yywrap): Protoize.
3868
3869 (processInt): Use cast to remove harmless warning.
3870 (processReal): Modify to get rid of compiler warning on scan formats.
3871
3872 (processId): Replace xmalloc with obstack_alloc for name and remove
3873 call to ada_name_string_cleanup.
3874 Remove obsolete disabled code.
3875 (name_lookup): Ditto.
3876 New interface.
3877 Use obsavestring on temp_parse_space instead of savestring
3878 on name, and remove call to ada_name_string_cleanup.
3879 Free string returned from ada_simple_renamed_entity.
3880 Use new interface to ada_lookup_symbol_list.
3881 Decomment disabled code.
3882 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3883 not types.
3884 When a type name lookup succeeds as a result of
3885 lookup_primitive_typename, check for regular type entry that has not
3886 yet been read in.
3887 Limit length of chain of renamed symbols we are willing to follow.
3888 Do not break names beginning with "standard__" into segments.
3889 (block_lookup): Use new interface to ada_lookup_symbol_list.
3890
3891 * ada-typeprint.c: Update copyright notice.
3892 (demangled_type_name): Rename to decoded_type_name.
3893 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3894 (print_range_bound): Correct handling of negative
3895 bounds that make the index type looked unsigned under STABS.
3896 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3897 (print_range_type_named): Use the builtin int type if no type
3898 corresponding to the given type name could be found.
3899 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3900 Add some bullet-proofing.
3901 (print_variant_clauses): Allow for variant branches with ___XVU
3902 encodings that are not dynamic fields.
3903 Use new interface to ada_is_tagged_type.
3904 (print_record_type): Allow for fields with ___XVE encodings that
3905 are not dynamic fields.
3906 Use new interface to ada_is_tagged_type.
3907 (ada_print_type): ada_is_array_descriptor =>
3908 ada_is_array_descriptor_type.
3909
3910 * ada-valprint.c: Update copyright notice.
3911 Include gdb_string.h
3912 Include infcall.h
3913 (ui_memcpy): New function.
3914 (ada_print_floating): New function.
3915 (ada_print_str): Order arguments correctly.
3916 Correct handling of empty arrays and arrays of 0-length items.
3917 ada_is_array_descriptor => ada_is_array_descriptor_type
3918 Print values of type System.Address in hexadecimal format.
3919 Use ada_print_floating to print floating-point numbers in Ada format.
3920 Print class tag values with type names.
3921 No longer print the address of reference values. Avoids
3922 a potential confusion.
3923 (ada_value_print): Stop printing the object type for reference
3924 values, but preserve that behavior for access types. Avoids
3925 a potential confusion.
3926 Simplify one conditional expression, as the first part is now
3927 necessarily true.
3928 ada_is_array_descriptor => ada_is_array_descriptor_type
3929 Add check for arrays for null records, and print them by hand.
4c4b4cd2 3930
f65f91b5
JB
39312004-06-01 Jim Blandy <jimb@redhat.com>
3932
3933 * ppc-tdep.h: Delete unused 'regoff' member.
3934 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3935
d4687fa0
MC
39362004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3937
3938 Fix PR symtab/1661.
3939 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3940 (hpread_read_struct_type): Likewise.
3941
de169ec9
AC
39422004-06-01 Andrew Cagney <cagney@gnu.org>
3943
c6902d46
AC
3944 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3945 instead of xasprintf.
3946 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3947 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3948 (mi_cmd_data_list_register_names)
3949 (mi_cmd_data_list_changed_registers)
3950 (mi_cmd_data_list_register_values)
3951 (get_register, mi_cmd_data_write_register_values)
3952 (mi_cmd_data_write_register_values)
3953 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3954 (mi_cmd_target_download, mi_cmd_target_select)
3955 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3956 (mi_execute_cli_command, mi_execute_async_cli_command)
3957 (mi_execute_async_cli_command): Ditto.
3958 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3959 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3960
6085fc2d
AC
3961 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3962 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3963 error_last_message instead of mi_error_last_message.
3964 * mi/mi-main.c (mi_error_last_message): Delete function.
3965
de169ec9
AC
3966 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3967 "invalid number of columns" error. Delete redundant "out of
3968 memory" check.
3969
1fc7d519
MK
39702004-05-31 Mark Kettenis <kettenis@gnu.org>
3971
6cfb2041
MK
3972 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3973 (gregset_t, fpregset_t): Remove typedefs.
3974 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3975 (REG_OFFSET): Rename argument.
3976 (i386bsd_r_reg_offset): Rename from reg_offset.
3977 (REG_ADDR): Remove macro.
3978 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3979 functions.
3980 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3981 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3982 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3983 instead of supply_gregset.
3984 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3985 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3986 instead of fill_gregset.
3987 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3988
1fc7d519
MK
3989 * i386bsd-nat.c: Don't include "gregset.h".
3990 (supply_gregset, fill_gregset): Make static.
3991 (supply_fpregset, fill_fpregset): Remove.
3992 * Makefile.in (i386bsd-nat.o): Update dependencies.
3993
2c34abbe
MK
39942004-05-30 Mark Kettenis <kettenis@gnu.org>
3995
448724fb
MK
3996 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3997 "gdb_assert.h". Con't include "gregset.h".
3998 (fbsd_make_corefile_notes): Use regset-based core file support
3999 instead off fill_gregset and fill_fpregset.
4000 * Makefile.in (fbsd-proc.o): Update dependencies.
4001
5ca8ca7c
MK
4002 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4003 instructions.
4004 (m88k_frame_prev_register): Simplify code a bit.
4005
593adc23
MK
4006 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4007 (amd64_collect_fpregset): New function.
4008 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4009
8d1b517b
MK
4010 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4011
7fdafb5a
MK
4012 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4013 (i386_collect_gregset): New function.
4014 (i386_supply_fpregset): Adjust comment.
4015 (i386_collect_fpregset): New function.
4016 (i386_regset_from_core_section): Use i386_collect_gregset and
4017 i386_collect_fpregset.
4018
8693c419
MK
4019 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4020 handle VALUEP being null.
4021
2c34abbe
MK
4022 * regset.h (collect_regset_ftype): Unconstify fourth argument.
4023
45d134d8
MK
40242004-05-29 Mark Kettenis <kettenis@gnu.org>
4025
1698f4e7
MK
4026 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4027
45d134d8
MK
4028 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4029 assembler in OpenBSD 3.5-current.
4030 (amd64obsd_sigcontext_addr): Likewise.
4031
691d145a
JB
40322004-05-28 Jim Blandy <jimb@redhat.com>
4033
4034 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4035 register set, so our regcache isn't declared "legacy" and our E500
4036 pseudoregister read and write functions aren't ignored.
4037 (rs6000_register_byte, rs6000_register_raw_size,
4038 rs6000_register_virtual_type, rs6000_register_convertible,
4039 rs6000_register_convert_to_virtual,
4040 rs6000_register_convert_to_raw): Deleted.
4041 (rs6000_register_type, rs6000_convert_register_p,
4042 rs6000_register_to_value, rs6000_value_to_register): New
4043 functions.
4044 (rs6000_gdbarch_init): Don't register
4045 gdbarch_deprecated_register_size,
4046 gdbarch_deprecated_register_bytes,
4047 gdbarch_deprecated_register_byte,
4048 gdbarch_deprecated_register_raw_size,
4049 gdbarch_deprecated_register_virtual_type,
4050 gdbarch_deprecated_register_convertible,
4051 gdbarch_deprecated_register_convert_to_virtual, or
4052 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4053 register gdbarch_register_type, gdbarch_convert_register_p,
4054 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4055
18ed0c4e
JB
40562004-05-26 Jim Blandy <jimb@redhat.com>
4057
4058 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4059 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4060 functions, updated to match the register numberings used in GCC.
4061 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4062 rs6000_dwarf2_reg_to_regnum as register number conversions
4063 functions for STABS and Dwarf2.
4064
779af9e3
RC
40652004-05-26 Randolph Chung <tausq@debian.org>
4066
4067 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4068 in header file.
4069
c23968a2
JB
40702004-05-25 Joel Brobecker <brobecker@gnat.com>
4071
4072 * NEWS: Document new "start" command.
4073
3a7d1c27
RC
40742004-05-25 Randolph Chung <tausq@debian.org>
4075
4076 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4077 hppa-linux.
4078
43613416
RC
40792004-05-25 Randolph Chung <tausq@debian.org>
4080
4081 * hppa-hpux-tdep.c (offsetof): Define.
4082 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4083 (hppa32_hpux_frame_base_before_sigtramp)
4084 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4085 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4086 (hppa64_hpux_frame_base_before_sigtramp)
4087 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4088 functions.
4089 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4090 (hppa_hpux_sigtramp_frame_unwind_cache)
4091 (hppa_hpux_sigtramp_frame_this_id)
4092 (hppa_hpux_sigtramp_frame_prev_register)
4093 (hppa_hpux_sigtramp_frame_unwind)
4094 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4095 (hppa_hpux_init_abi): Register sigtramp unwinder.
4096 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4097
6d1be3f1
RC
40982004-05-25 Randolph Chung <tausq@debian.org>
4099
4100 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4101 and multiple stack unwinds.
4102 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4103
97c34f65
AC
41042004-05-25 Andrew Cagney <cagney@gnu.org>
4105
4106 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4107 * symfile-mem.h: Delete file.
4108 * symfile-mem.c: Do not include "symfile-mem.h".
4109 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4110 "struct bfd_section". When an error do not bother returning NULL.
4111 (add_symbol_file_from_memory_command): Use "struct bfd" and
4112 "struct bfd_section".
4113 * Makefile.in (symfile_mem_h): Delete.
4114 (symfile-mem.o): Update dependencies.
4115
e23cbd82
NR
41162004-05-25 Nick Roberts <nickrob@gnu.org>
4117
4118 * gdb-mi.el: New file.
4119
20d2ca3e
AC
41202004-05-25 Andrew Cagney <cagney@gnu.org>
4121
4122 * inftarg.c: Include "observer.h".
4123 (child_attach, child_create_inferior): Notify inferior_created.
4124 * corelow.c: Include "observer.h".
4125 (core_open): Notify inferior_created.
4126 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4127
c27cda74
AC
41282004-05-25 Andrew Cagney <cagney@gnu.org>
4129
4130 * target.h (struct target_ops): Add from_tty to
4131 to_create_inferior.
4132 (target_create_inferior, find_default_create_inferior): Update.
4133 * infcmd.c (run_command): Update.
4134 * wince.c (child_create_inferior): Update.
4135 * win32-nat.c (child_create_inferior): Update.
4136 * uw-thread.c (uw_thread_create_inferior): Update.
4137 * thread-db.c (thread_db_create_inferior): Update.
4138 * target.c (debug_to_create_inferior)
4139 (find_default_create_inferior): Update.
4140 (maybe_kill_then_create_inferior): Update.
4141 * sol-thread.c (sol_thread_create_inferior): Update.
4142 * remote.c (extended_remote_async_create_inferior)
4143 (extended_remote_create_inferior): Update.
4144 * remote-vx.c (vx_create_inferior): Update.
4145 * remote-st.c (st2000_create_inferior): Update.
4146 * remote-sim.c (gdbsim_create_inferior): Update.
4147 * remote-sds.c (sds_create_inferior): Update.
4148 * remote-rdp.c (remote_rdp_create_inferior): Update.
4149 * remote-rdi.c (arm_rdi_create_inferior): Update.
4150 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4151 * remote-e7000.c (e7000_create_inferior): Update.
4152 * procfs.c (procfs_create_inferior): Update.
4153 * ocd.c (ocd_create_inferior): Update.
4154 * ocd.h (ocd_create_inferior): Update.
4155 * nto-procfs.c (procfs_create_inferior): Update.
4156 * monitor.c (monitor_create_inferior): Update.
4157 * lin-lwp.c (lin_lwp_create_inferior): Update.
4158 * inftarg.c (child_create_inferior): Update.
4159 * hpux-thread.c (hpux_thread_create_inferior): Update.
4160 * gnu-nat.c (gnu_create_inferior): Update.
4161
1db2a798
AC
41622004-05-25 Andrew Cagney <cagney@gnu.com>
4163
4164 * MAINTAINERS: Update e-mail address.
4165
007d08bb
RC
41662004-05-24 Randolph Chung <tausq@debian.org>
4167
4168 * thread.c (info_threads_command, thread_apply_all_command)
4169 (thread_apply_command, thread_command, do_captured_thread_select):
4170 Remove HPUXHPPA-specific code.
4171
69e7b95e
RC
41722004-05-24 Randolph Chung <tausq@debian.org>
4173
4174 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4175 unused symbols.
4176 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4177 references.
4178
a4d5f2e0
JB
41792004-05-24 Joel Brobecker <brobecker@gnat.com>
4180
4181 * infcmd.c (kill_if_already_running): New function, extracted
4182 from run_command().
4183 (run_command): Replace extracted code by call to
4184 kill_if_already_running().
4185 (start_command): New function.
4186 (_initialize_infcmd): Add "start" command.
4187
bf2ca189
MK
41882004-05-24 Mark Kettenis <kettenis@gnu.org>
4189
4190 Add OpenBSD/m88k support.
4191 * NEWS (New native configurations): Mention OpenBSD/m88k.
4192 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4193 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4194 * Makefile.in (m88k_tdep_h): New variable.
4195 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4196 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4197 * configure.host: Add m88*-*-openbsd*.
4198 * configure.tgt: Add m88*-*-openbsd*.
4199
80fadb11
JB
42002004-05-24 Jim Blandy <jimb@redhat.com>
4201
4202 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4203 to approve changes.
4204
19e2d14b
KB
42052004-05-24 Kevin Buettner <kevinb@redhat.com>
4206
4207 * symtab.c (fixup_section): Search section table when lookup by
4208 name fails.
4209
1b07b470
RC
42102004-05-24 Randolph Chung <tausq@debian.org>
4211
4212 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4213 be "small_struct".
4214
368702b1
MK
42152004-05-24 Mark Kettenis <kettenis@gnu.org>
4216
5df97fde
MK
4217 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4218 register number in regcache_raw_collect call.
4219 (m68kbsd_collect_fpregset): Likewise.
4220 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4221
368702b1
MK
4222 * regset.h (struct regset): Add back `regset' member.
4223
a770d4ec
MK
42242004-05-23 Mark Kettenis <kettenis@gnu.org>
4225
70f9f479
MK
4226 * configure.in: Check for td_pcb in `struct thread'.
4227 * configure, config.in: Regenerated.
4228
2e16d79e
MK
4229 * dpx2-nat.c: Remove file.
4230 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4231 (dpx2-nat.o): Remove dependencies.
4232
492cf391
MK
4233 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4234 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4235 (amd64obsd_supply_pcb): New function.
4236 (_initialize_amd64obsd_nat): Enable libkvm interface.
4237 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4238 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4239 (LOADLIBES): New variable.
4240
a770d4ec
MK
4241 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4242 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4243 (sparc32nbsd_supply_pcb): New function.
4244 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4245 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4246 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4247 (LOADLIBES): New variable.
4248
9ea75c57
MK
42492004-05-22 Mark Kettenis <kettenis@gnu.org>
4250
2e0c3539
MK
4251 * bsd-kvm.c, bsd-kvm.h: New files.
4252 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4253 "bsd-kvm.h".
4254 (i386fbsd_supply_pcb): New function.
4255 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4256 (i386fbsd-nat.o): Update dependencies.
4257 (bsd_kvm_h): New variable.
4258 (bsd-kvm.o): New dependency.
4259 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4260 (LOADLIBES): New variable.
4261
9ea75c57
MK
4262 * regset.c: Tweak comment.
4263 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4264 macro.
4265 * regset.h: Update copyright year.
4266 (struct regset): Remove `descr' member, add `gdbarch' member.
4267 (regset_alloc): Adjust prototype and comment.
4268 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4269 (i386_supply_fpregset): Likewise.
4270 (i386_regset_from_core_section): Update call to regset_alloc.
4271 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4272 REGSET->arch.
4273 (i386obsd_aout_regset_from_core_section): Update call to
4274 regset_alloc.
4275 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4276 REGSET->arch.
4277 (i386nbsd_aout_regset_from_core_section): Update call to
4278 regset_alloc.
4279 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4280 REGSET->arch.
4281 (amd64_regset_from_core_section): Update call to regset_alloc.
4282 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4283 REGSET->arch.
4284 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4285 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4286 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4287 (sparc32nbsd_init_abi): Update call to regset_alloc.
4288 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4289 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4290 (sparc64obsd_init_abi): Update call to regset_alloc.
4291 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4292 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4293 (sparc64nbsd_init_abi): Update call to regset_alloc.
4294 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4295 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4296 (sparc64fbsd_init_abi): Update call to regset_alloc.
4297
867e2dc5
JB
42982004-05-22 Jim Blandy <jimb@redhat.com>
4299
4300 * ppc-tdep.h (spe_register_p): New declaration.
4301 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4302 ppc_spefscr_regnum.
4303 * rs6000-tdep.c (spe_register_p): New function.
4304 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4305 spefscr.
4306 (rs6000_gdbarch_init): Initialize the new members of the tdep
4307 structure.
4308
617a4cba
JB
43092004-05-21 Jim Blandy <jimb@redhat.com>
4310
0397dee1
JB
4311 * ppc-linux-nat.c (fetch_register): Move code back to be next
4312 to the comment that describes it. (Moved code, instead of
4313 comment, for symmetry with store_register.)
4314
617a4cba
JB
4315 Allocate regset structures in the gdbarch's obstack, not using
4316 xmalloc.
4317 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4318 Add 'arch' argument. Allocate the regset on arch's obstack, not
4319 using xmalloc.
4320 * regset.h (regset_alloc): Update declaration.
4321 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4322 gdbarch argument.
4323 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4324 * i386-tdep.c (i386_regset_from_core_section): Same.
4325 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4326 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4327 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4328 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4329 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4330 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4331
9aa3914d
JB
43322004-05-21 Joel Brobecker <brobecker@gnat.com>
4333
4334 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4335
99c87dab
JB
43362004-05-21 Jim Blandy <jimb@redhat.com>
4337
4338 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4339 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4340
c2b6b4aa
JB
43412004-05-20 Jim Blandy <jimb@redhat.com>
4342
4343 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4344
144529d0
MK
43452004-05-20 Mark Kettenis <kettenis@gnu.org>
4346
4347 * regset.h: Make prototype const-correct.
4348 * regset.c (regset_xmalloc): Make const-correct.
4349
4725b721
PH
43502004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4351
4352 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4353 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4354 (symbol_search_name): Declare.
4355
4356 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4357 (iter_name_next_hashed): Ditto.
4358 (iter_name_next_linear): Ditto.
4359 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4360
4361 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4362 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4363 (symbol_search_name): New function.
4364
4365 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4366
4367 * minsyms.c (build_minimal_symbol_hash_tables): Change
4368 test for adding to demangled hash table to check for difference
4369 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4370
be07a590
JB
43712004-05-19 Jim Blandy <jimb@redhat.com>
4372
4373 Use a constructor function to create regset structures.
4374 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4375 (struct regset): Use supply_regset_ftype. Add new
4376 'collect_regset' member.
4377 (regset_xmalloc): New declaration.
4378 * regset.c: New file.
4379 * am64-tdep.c (amd64_regset_from_core_section): Use
4380 regset_xmalloc to construct regset structures.
4381 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4382 * i386-tdep.c (i386_regset_from_core_section): Same.
4383 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4384 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4385 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4386 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4387 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4388 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4389 * Makefile.in (COMMON_OBS): Add regset.o.
4390 (regset.o): New rule.
4391
604368f5
JB
43922004-05-19 Joel Brobecker <brobecker@gnat.com>
4393
4394 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4395 and pthread_cond_wait.c.
4396
82d69f8b
JB
43972004-05-18 Jim Blandy <jimb@redhat.com>
4398
4399 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4400 before the mach-specific switch, and then let the individual cases
4401 override the defaults, rather than leaving them uninitialized
4402 until the switch and then setting them in each case.
4403
5859efe5
RC
44042004-05-18 Randolph Chung <tausq@debian.org>
4405
4406 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4407 millicode functions.
4408
9ca80cf8
RC
44092004-05-18 Randolph Chung <tausq@debian.org>
4410
4411 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4412 references to dld_flags_buffer consistent.
4413
ed70ba00
RC
44142004-05-18 Randolph Chung <tausq@debian.org>
4415
4416 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4417 it for unwinding the stack.
4418
63100632
RC
44192004-05-18 Randolph Chung <tausq@debian.org>
4420
4421 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4422 Undefine these so we can overide them using gdbarch.
4423
090ccbb7
RC
44242004-05-18 Randolph Chung <tausq@debian.org>
4425
4426 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4427 handling for 64-bit HPUX (elf).
4428
594706e6
DJ
44292004-05-18 Daniel Jacobowitz <dan@debian.org>
4430
4431 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4432 constants.
4433 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4434 * ia64-tdep.c (examine_prologue): Likewise.
4435 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4436 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4437
e5483145
MK
44382004-05-18 Mark Kettenis <kettenis@gnu.org>
4439
4440 * vax-tdep.c (vax_return_value): Implement
4441 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4442
caed1a45
MK
44432004-05-17 Mark Kettenis <kettenis@gnu.org>
4444
4445 * vax-tdep.c (vax_return_value): Fix typo.
4446
3c0b7db2
AC
44472004-05-17 Andrew Cagney <cagney@redhat.com>
4448
5aae53e5
AC
4449 * MAINTAINERS: Mark Salter was also responsible for
4450 testsuite/config/
4451
3c0b7db2
AC
4452 * NEWS: Mention signal fixes.
4453
22b0923d
RC
44542004-05-17 Randolph Chung <tausq@debian.org>
4455
4456 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4457 check to see if we are unwinding an export stub. Export stubs clobber
4458 the %rp in the call path and stores the original rp in a stack slot.
4459
22f2b2f3
JB
44602004-05-17 Jim Blandy <jimb@redhat.com>
4461
4462 * MAINTAINERS: Update address for J.T. Conklin.
4463
cea96d64
RC
44642004-05-17 Randolph Chung <tausq@debian.org>
4465
4466 * hppa-tdep.c: Remove superfluous #include's.
4467 * Makefile.in (hppa-tdep.o): Update dependencies.
4468
f08f6a4a
RC
44692004-05-17 Randolph Chung <tausq@debian.org>
4470
4471 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4472 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4473 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4474 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4475 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4476 Remove static function declarations.
4477
51da707a
MK
44782004-05-17 Mark Kettenis <kettenis@gnu.org>
4479
caed1a45
MK
4480 * alphabsd-nat.c: Update copyright year.
4481 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4482
c0c2b0db
MK
4483 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4484 and M68K_A2_REGNUM.
4485
51da707a
MK
4486 * m68k-tdep.c (m68k_svr4_return_value): Implement
4487 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4488
8d027a04
MK
44892004-05-16 Mark Kettenis <kettenis@gnu.org>
4490
4491 * sol-thread.c Update copyright year. Fix various coding
4492 standards violations. Tweak a few comments.
4493 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4494 Delete prototypes.
4495
0d99fdb9
RC
44962004-05-15 Randolph Chung <tausq@debian.org>
4497
4498 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4499 as pointer instead of array reference since HPUX compiler does
4500 not accept unsized array arguments.
4501 * somsolib.c (dld_flags_buffer): Use constant array size.
4502
f7e3843a
MK
45032004-05-15 Mark Kettenis <kettenis@gnu.org>
4504
0fe85704
MK
4505 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4506 offset with decimal offset.
4507 (amd64obsd_sigcontext_addr): Return correct address for entire
4508 signal trampoline.
4509
a54f9a00
MK
4510 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4511 instead of get_frame_base.
4512
feae6502
MK
4513 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4514 (fill_gregset): Use regcache_raw_collect.
4515
0382d099
MK
4516 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4517 ppcobsd-tdep.c.
4518
f7e3843a
MK
4519 * config/sparc/tm-nbsd64.h: Remove file.
4520 * config/tm-sunos.h: Remove file.
4521
773df3e5
JB
45222004-05-15 Joel Brobecker <brobecker@gnat.com>
4523
4524 * rs6000-tdep.c (store_param_on_stack_p): New function,
4525 an improved version of some code extracted from skip_prologue().
4526 (skip_prologue): Use store_param_on_stack_p() to detect
4527 instructions saving a parameter on the stack. Detect when r0
4528 is used to save a parameter.
4529 Do not mark "li rx, SIMM" instructions as part of the prologue,
4530 unless the following instruction is also part of the prologue.
4531
95918acb
AC
45322004-05-14 Andrew Cagney <cagney@redhat.com>
4533
06f32659
AC
4534 * infrun.c (handle_inferior_event): Simplify
4535 STEP_OVER_UNDEBUGGABLE.
4536
95918acb
AC
4537 * infrun.c (handle_step_into_function): Delete function.
4538 (handle_inferior_event): Inline calls to
4539 handle_step_into_function.
4540
40711ff1 45412004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
4542
4543 * rs6000-nat.c: Fix a comment.
4544
02f60eae
JB
45452004-05-12 David Anderson <davea@sgi.com>
4546
4547 Committed by Jim Blandy <jimb@redhat.com>:
4548 * regcache.c (struct regcache_descr): fix comment spelling.
4549
552e377b
JB
45502004-05-13 J. Brobecker <brobecker@gnat.com>
4551
4552 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4553 Fixes a link link failure.
4554
349766b2
JB
45552004-05-13 J. Brobecker <brobecker@gnat.com>
4556
4557 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4558 error that was causing the build to fail.
4559
0d4d5484
JB
45602004-05-13 J. Brobecker <brobecker@gnat.com>
4561
4562 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4563 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4564
0b30808c
AC
45652004-05-13 Andrew Cagney <cagney@redhat.com>
4566
4567 * infrun.c (handle_inferior_event): Check for
4568 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4569 calls. Update comments.
4570
cdf2c5f5
JB
45712004-05-13 Jim Blandy <jimb@redhat.com>
4572
063715bf
JB
4573 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4574 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4575 (store_regs_user_thread, store_regs_kernel_thread): Use
4576 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4577 * ppc-linux-nat.c (fill_gregset): Same.
4578 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4579 (ppc_linux_sigtramp_cache): Same.
4580 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4581 (ppcnbsd_sigtramp_cache_init): Same.
4582 * rs6000-nat.c (fetch_core_registers): Same.
4583 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4584 (rs6000_frame_cache): Same.
4585
cdf2c5f5
JB
4586 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4587 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4588 of assuming that the gprs are numbered starting with zero.
4589 * ppc-linux-nat.c (fill_gregset): Same.
4590 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4591 * ppcnbsd-nat.c (getregs_supplies): Same.
4592 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4593 * rs6000-nat.c (fetch_core_registers): Same.
4594 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4595
450bd37b
MS
45962004-05-07 Michael Snyder <msnyder@redhat.com>
4597
4598 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4599 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4600
4a72a2a6
AC
46012004-05-13 Andrew Cagney <cagney@redhat.com>
4602
4603 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4604
8edfa926
BM
46052004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4606
4607 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4608 base_address for shared libraries.
4609
723e0e3d
BM
46102004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4611
4612 * MAINTAINERS (write after approval): Add myself.
4613
00d4360e
UW
46142004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4615
4616 * breakpoint.c (bpstat_stop_status): Add new argument
4617 STOPPED_BY_WATCHPOINT. Use it instead of testing
4618 target_stopped_data_address agaist 0 to check whether
4619 or not we stopped due to a hardware watchpoint.
4620 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4621 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4622 with new argument.
4623
ec76baa5
JB
46242004-05-12 Jim Blandy <jimb@redhat.com>
4625
4626 * configure.in: When checking whether we should use the -bbigtoc
4627 option, don't forget to restore the original value of LDFLAGS.
4628 * configure: Regenerated.
4629
f2c9ca08
AC
46302004-05-12 Andrew Cagney <cagney@redhat.com>
4631
4632 * thread.c (load_infrun_state): Delete step_sp.
4633 * infrun.c (context_switch): Ditto.
4634 * inferior.h (step_sp): Ditto.
4635 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4636 * gdbthread.h (struct thread_info, save_infrun_state)
4637 (restore_infrun_state): Ditto.
4638
090ddb2a
UW
46392004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4640
4641 * MAINTAINERS (write after approval): Add myself.
4642
8aad930b
AC
46432004-05-12 Andrew Cagney <cagney@redhat.com>
4644
4645 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4646 eliminate reference to step_sp.
4647 (struct execution_control_state, init_execution_control_state)
4648 (handle_inferior_event, keep_going): Delete update_step_sp and
4649 step_sp.
4650 * infcmd.c (step_sp): Note that variable is unused.
4651
922d5ae0
AC
46522004-05-11 Andrew Cagney <cagney@redhat.com>
4653
4654 * infrun.c (step_over_function): Delete function.
4655 (handle_step_into_function): Use insert_step_resume_breakpoint.
4656 (insert_step_resume_breakpoint): Fix assertion.
4657
017c5ca5
NR
46582004-05-11 Nick Roberts <nickrob@gnu.org>
4659
4660 * utils.c (defaulted_query): Just use the normal query input type
4661 when printing the annotations.
4662
42edda50
AC
46632004-05-11 Andrew Cagney <cagney@redhat.com>
4664
4665 * infrun.c (handle_inferior_event): Simplify code handling
4666 step-into or return-from a signal trampoline.
4667
d28b44a7
AC
46682004-05-11 Andrew Cagney <cagney@redhat.com>
4669
4670 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4671 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4672
383f0f5b
JB
46732004-05-10 Jim Blandy <jimb@redhat.com>
4674
d0b57c3a
JB
4675 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4676 with a call to internal_error.
4677
383f0f5b
JB
4678 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4679 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4680 processor variant lacks those registers.
4681 (ppc_floating_point_unit_p): Change description to make it clear
4682 that this returns info about the ISA, not the ABI.
4683 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4684 return true or false by checking tdep->ppc_fp0_regnum and
4685 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4686 arch/mach switching done in rs6000_gdbarch_init; it's better to
4687 keep that logic there, and just check the results here.
4688 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4689 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4690 floating-point registers.
4691 (ppc_supply_fpregset, ppc_collect_fpregset)
4692 (rs6000_push_dummy_call, rs6000_extract_return_value)
4693 (rs6000_store_return_value): Assert that we have floating-point
4694 registers.
4695 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4696 (rs6000_frame_cache): Don't note the locations at which
4697 floating-point registers were saved if we have no fprs.
4698 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4699 registers.
4700 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4701 (store_regs_user_thread, store_regs_kernel_thread): Only call
4702 supply_fprs / fill_fprs if we actually have floating-point
4703 registers.
4704 (special_register_p): Check ppc_fpscr_regnum before matching
4705 against it.
4706 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4707 supply / collect fpscr if we don't have it.
4708 * ppc-bdm.c: #include "gdb_assert.h".
4709 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4710 have floating-point registers, since I can't test this code on
4711 FP-free systems to adapt it.
4712 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4713 fpscr and floating point register numbers if they don't exist.
4714 (fetch_register): Assert that we have floating-point registers
4715 before we reach the code that handles them.
4716 (store_register): Same. And use tdep instead of calling
4717 gdbarch_tdep again.
4718 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4719 don't have them.
4720 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4721 fprs and fpscr if we don't have them.
4722 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4723 don't have them.
4724 * ppcnbsd-nat.c: #include "gdb_assert.h".
4725 (getfpregs_supplies): Assert that we have floating-point registers.
4726 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4727 * ppcobsd-tdep.c: #include "gdb_assert.h".
4728 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4729 have floating-point registers.
4730 * rs6000-nat.c (regmap): Don't match against the fpscr and
4731 floating point register numbers if they don't exist.
4732 (fetch_inferior_registers, store_inferior_registers,
4733 fetch_core_registers): Only fetch / store / supply the
4734 floating-point registers and the fpscr if we have them.
4735 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4736 (ppcobsd-tdep.o): Update dependencies.
4737
15960608
AC
47382004-05-10 Andrew Cagney <cagney@redhat.com>
4739
4740 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4741 (context_switch): Do not switch through_sigtramp_breakpoint.
4742 * gdbthread.h (save_infrun_state, load_infrun_state)
4743 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4744 and structure member.
4745 * thread.c (load_infrun_state, save_infrun_state): Update.
4746
5ab5aa0f
MK
47472004-05-10 Mark Kettenis <kettenis@gnu.org>
4748
4749 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4750
da78b0e7
DJ
47512004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4752
4753 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4754 throughout.
4755 * aclocal.m4: Regenerate.
4756
cca0d3b0
NW
47572004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4758
4759 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4760
d303a6c7
AC
47612004-05-10 Andrew Cagney <cagney@redhat.com>
4762
4763 * infrun.c (check_sigtramp2): Delete function.
4764 (handle_inferior_event): When single stepping, and taking a
4765 signal, set a breakpoint at the signal return address. Delete
4766 redundant calls to check_sigtramp2.
4767 (insert_step_resume_breakpoint): New function.
4768 (through_sigtramp_breakpoint, handle_inferior_event)
4769 (follow_exec, wait_for_inferior, fetch_inferior_event)
4770 (currently_stepping, keep_going): Delete most uses of
4771 through_sigtramp_breakpoint, not that it should be deleted.
4772 (delete_breakpoint_current_contents): Delete function.
4773
03f4cc20
RC
47742004-05-10 Randolph Chung <tausq@debian.org>
4775
4776 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4777 target.
4778 * config/pa/tm-linux.h: New file.
4779
37fc812e
DJ
47802004-05-10 Daniel Jacobowitz <drow@mvista.com>
4781
4782 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4783 of prefixes. Don't print the prefix twice in the CLI.
4784
26c0b942
JB
47852004-05-10 Jim Blandy <jimb@redhat.com>
4786
2e56e9c1
JB
4787 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4788 collect all the gprs.
4789
26c0b942
JB
4790 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4791 loop collecting gprs.
4792
dc497459
AC
47932004-05-09 Andrew Cagney <cagney@redhat.com>
4794
4795 * remote-vx.c (net_step): Delete step-range code.
4796 * remote.c (remote_resume, init_all_packet_configs)
4797 (set_remote_protocol_E_packet_cmd)
4798 (show_remote_protocol_E_packet_cmd)
4799 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4800 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4801 (show_remote_protocol_e_packet_cmd): Ditto.
4802
0543f387
MK
48032004-05-09 Mark Kettenis <kettenis@gnu.org>
4804
c481d1ca
MK
4805 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4806
f626a069
MK
4807 * hppa-tdep.h: Update copyright year.
4808 (struct trad_frame_saved_reg): Add opaque declaration.
4809
6fa57a7d
MK
4810 * amd64-tdep.c (amd64_return_value): Implement
4811 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4812
e47577ab
MK
4813 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4814 (m68k_value_to_register): New functions.
4815 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4816 value_to_register.
4817
31db7b6c
MK
4818 * defs.h (enum return_value_convention): Add
4819 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4820 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4821 * infcmd.c (legacy_return_value): New function.
4822 (print_return_value): Rwerite to implement
4823 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4824 * values.c (using_struct_return): Check for inequality to
4825 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4826 RETURN_VALUE_STRUCT_CONVENTION.
4827 * i386-tdep.c (i386_return_value): Implement
4828 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4829
0543f387
MK
4830 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4831 include "symtab.h", "opcode/vax.h" and "inferior.h".
4832 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4833 to read_memory_unsigned_integer.
4834 (vax_gdbarch_init): Reorder.
4835 (_initialize_vax_tdep): Spell out prototype.
4836 * Makefile.in (vax-tdep.o): Update dependencies.
4837
0c93b7b6
AC
48382004-05-08 Andrew Cagney <cagney@redhat.com>
4839
e6b55ae2
AC
4840 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4841 * target.c (target_detach, target_disconnect): Ditto.
4842
1ac839b8
AC
4843 * infcall.c (call_function_by_hand): When no
4844 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4845 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4846 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4847 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4848 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4849
28954179
AC
4850 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4851 * gdbarch.h, gdbarch.c: Re-generate.
4852 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4853 deprecated_fix_call_dummy.
4854 * v850-tdep.c (v850_gdbarch_init): Ditto.
4855 * infcall.c (call_function_by_hand): Do not call
4856 DEPRECATED_FIX_CALL_DUMMY.
4857
434b87dd
AC
4858 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4859 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4860 * gdbarch.h, gdbarch.c: Re-generate.
4861 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4862 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4863 deprecated_sizeof_call_dummy_words.
4864 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4865 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4866 * v850-tdep.c (v850_gdbarch_init): Ditto.
4867 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4868 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4869 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4870 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4871 * arch-utils.h (legacy_call_dummy_words)
4872 (legacy_sizeof_call_dummy_words): Delete declarations.
4873 * arch-utils.c (legacy_call_dummy_words)
4874 (legacy_sizeof_call_dummy_words): Delete variables.
4875
58d28df8
AC
4876 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4877 * gdbarch.h, gdbarch.c: Re-generate.
4878 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4879 * infcall.c (call_function_by_hand): Eliminate call to
4880 DEPRECATED_PUSH_DUMMY_FRAME.
4881 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4882 push_dummy_frame.
4883 (ns32k_push_dummy_frame): Delete function.
4884
e4a2df64
AC
4885 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4886 deprecated_call_dummy_breakpoint_offset or
4887 deprecated_call_dummy_start_offset.
4888 * dummy-frame.c, arm-tdep.c: Update comments.
4889 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4890 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4891 * gdbarch.h, gdbarch.c: Re-generate.
4892
d3712828
AC
4893 * infcall.c (legacy_push_dummy_code): Delete function.
4894 (push_dummy_code): Delete call.
4895
7a882905
AC
4896 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4897 * gdbarch.h, gdbarch.c: Re-generate.
4898 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4899 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4900 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4901 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4902
0ec5872b
AC
4903 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4904 (struct frame_info): Delete opaque declaration.
4905 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4906 * frame.c (get_frame_type): Delete call.
4907
0c93b7b6
AC
4908 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4909 pc_in_call_dummy.
4910 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4911 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4912
75536971
MK
49132004-05-08 Mark Kettenis <kettenis@gnu.org>
4914
527ca6bb
MK
4915 * alphanbsd-tdep.c: Include "gdb_string.h".
4916 * armnbsd-tdep.c: Update copyright year.
4917 Include "gdb_string.h".
4918 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4919 dependencies.
4920
d39fdc61
MK
4921 * delta68-nat.c: Remove file.
4922 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4923 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4924 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4925 (delta68-nat.o): Remove dependency.
4926
75536971
MK
4927 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4928 function.
4929 (m68k_gdbarch_init): Don't set
4930 deprecated_frameless_function_invocation.
4931
f4ca1d1f
RC
49322004-05-07 Randolph Chung <tausq@debian.org>
4933
4934 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4935 read_memory_nobpt for code reading when doing frame unwinding.
4936 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4937
2f0e8c7a
RC
49382004-05-07 Randolph Chung <tausq@debian.org>
4939
4940 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4941 instead of sp, handle sigaltstack case.
4942 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4943 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4944 signal handler and not that of the caller.
4945 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4946 hppa_linux_sigtramp_find_sigcontext.
4947
959464ff
RC
49482004-05-07 Randolph Chung <tausq@debian.org>
4949
4950 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4951 hppa-linux-nat.c.
4952 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4953 * hppa-linux-nat.c (fetch_register, store_register): Define.
4954 (fetch_inferior_registers, store_inferior_registers): Define.
4955 (supply_gregset): Add comment and clean up some unneeded code.
4956 (fill_gregset): Add comment and fix so that it saves registers in
4957 the right place in the gregset.
4958 (fill_fpregset): Fix buffer overrun problem.
4959 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4960
0da28f8a
RC
49612004-05-07 Randolph Chung <tausq@debian.org>
4962
4963 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4964 do common handling of the pcoqt register.
4965 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4966 to use helper function.
4967 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4968 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4969 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4970 generic fallback unwinder when all else fails.
4971 (hppa_gdbarch_init): Add fallback sniffer.
4972 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4973 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4974 to use helper function.
4975
b9ec757a
JB
49762004-05-08 Joel Brobecker <brobecker@gnat.com>
4977
4978 * config/djgpp/fnchange.lst: Add translation rules for
4979 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4980
756e95f1
MK
49812004-05-08 Mark Kettenis <kettenis@gnu.org>
4982
4983 * frame.c (get_prev_frame_1): Work around GCC bug.
4984 * frame.h: Add comment about GCC bug.
4985
2b4855ab
AC
49862004-05-07 Andrew Cagney <cagney@redhat.com>
4987
4988 * observer.c: Include "commands.h" and "gdbcmd.h".
4989 (observer_debug, _initialize_observer): Add the
4990 command "set/show debug observer".
4991 * observer.sh: When observer debugging, log notify calls.
4992 * Makefile.in (observer.o): Update dependencies.
4993
ba3e8e46
JM
49942004-05-07 Jason Molenda (jmolenda@apple.com)
4995
4996 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4997
16796152
JB
49982004-05-07 Jim Blandy <jimb@redhat.com>
4999
daf6dc85
JB
5000 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5001 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5002 to recognize gpr regnums, instead of assuming that
5003 tdep->ppc_fp0_regnum marks the end of the general-purpose
5004 registers.
5005
16796152
JB
5006 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5007 the given architecture has floating-point registers.
5008
c69b8bfc
AC
50092004-05-07 Andrew Cagney <cagney@redhat.com>
5010
5011 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5012 macro defined to 1.
5013 * gdbarch.h, gdbarch.c: Re-generate.
5014 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5015 deprecated_use_generic_dummy_frames.
5016
7243600a
BF
50172004-05-07 Brian Ford <ford@vss.fsi.com>
5018
5019 * NEWS: Mention Cygwin DWARF 2 support.
5020
73c1e0a1
AC
50212004-05-07 Andrew Cagney <cagney@redhat.com>
5022
5023 * objfiles.h (struct entry_info): Delete unused fields
5024 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
5025 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
5026 * mipsread.c (mipscoff_symfile_read): Update.
5027 * mdebugread.c (parse_partial_symbols): Update.
5028 * dwarfread.c (read_file_scope): Update.
5029 * dwarf2read.c (read_file_scope): Update.
5030 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5031 * coffread.c (complete_symtab): Update.
5032
1d3056ac
MK
50332004-05-07 Mark Kettenis <kettenis@gnu.org>
5034
5035 * infcall.c (_initialize_infcall): Fix typo.
5036
15170568
AC
50372004-05-07 Andrew Cagney <cagney@redhat.com>
5038
5039 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5040 * command.h (add_setshow_zinteger_cmd): Declare.
5041
34f75cc1
RC
50422004-05-06 Randolph Chung <tausq@debian.org>
5043
5044 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5045 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5046 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5047 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5048 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5049 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5050 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5051 definitions ...
5052 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5053 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5054 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5055 (hppa64_hpux_frame_find_saved_regs_in_sig)
5056 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5057 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5058 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5059 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5060 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5061 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5062 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5063 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5064 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5065 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5066 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5067 (hppa32_register_type, hppa_cannot_store_register)
5068 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5069 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5070 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5071 * pa64solib.c (pa64_solib_have_load_event)
5072 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5073 (pa64_solib_unloaded_library_pathname): Likewise.
5074 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5075 (som_solib_library_pathname): Likewise.
5076
0a5e7efe
JI
50772004-05-05 Jim Ingham <jingham@apple.com>
5078
5079 * breakpoint.c (create_breakpoints): Copy the ignore count and
5080 thread id over from the pended breakpoint to the actual
5081 breakpoint.
5082
10a4b113
AC
50832004-05-05 Andrew Cagney <cagney@redhat.com>
5084
5085 * gdbarch.sh (PARM_BOUNDARY): Delete.
5086 gdbarch.h, gdbarch.c: Re-generate.
5087 * valops.c (PARM_BOUNDARY): Delete macro.
5088 (value_push): Delete PARM_BOUNDARY code.
5089 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5090
366f009f
JB
50912004-05-04 Jim Blandy <jimb@redhat.com>
5092
32b99774
JB
5093 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5094 Don't assume that the gprs, fprs, and UISA sprs are
5095 contiguous, start at register number zero, and end with fpscr.
5096 Instead, use the numbers from the tdep structure.
5097
366f009f
JB
5098 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5099 should no longer be used in code specific to the RS6000 and its
5100 derivatives.
5101 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5102 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5103 tdep->ppc_fp0_regnum.
5104 (ppc_supply_fpregset, ppc_collect_fpregset)
5105 (rs6000_push_dummy_call, rs6000_extract_return_value)
5106 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5107 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5108 FP0_REGNUM.
5109 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5110 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5111 Same.
5112 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5113 bdm_ppc_store_registers): Same.
5114 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5115 (store_register, fill_fpregset): Same.
5116 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5117 (ppc_linux_supply_fpregset): Same.
5118 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5119 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5120 Same.
5121 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5122 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5123 ppc64_sysv_abi_return_value): Same.
5124 * rs6000-nat.c (regmap, fetch_inferior_registers)
5125 (store_inferior_registers, fetch_core_registers): Same.
5126
827f338d
MK
51272004-05-01 Mark Kettenis <kettenis@gnu.org>
5128
5129 * m68knbsd-nat.c: Remove file.
5130 * m68knbsd-tdep.c: Remove file.
5131 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5132 dependencies.
5133 * configure.host: Add m68k-*-netbsdelf*.
5134 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5135 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5136 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5137 (XM_FILE): Remove.
5138 * config/m68k/nbsdelf.mh: New file.
5139 * config/m68k/nbsd.mt: New file.
5140 * config/m68k/nbsdaout.mt: Remove file.
5141 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5142 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5143 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5144 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5145 (use_struct_convention): Remove prototype.
5146 (USE_STRUCT_CONVENTION): Remove define.
5147 * config/m68k/xm-nbsd.h: Remove file.
5148
66894781
MS
51492004-05-04 Michael Snyder <msnyder@redhat.com>
5150
5151 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5152 reg_struct_return method (as gcc usually does for cross targets).
5153
f0f63663
AC
51542004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5155
5156 Committed by Andrew Cagney.
5157 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5158 alignment padding when accessing ucontext struct members.
5159
edf61169
JB
51602004-05-04 Jim Blandy <jimb@redhat.com>
5161
8bf659e8
JB
5162 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5163 'ppc_gplast_regnum' member.
5164 (ppc_num_gprs): New enum constant.
5165 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5166 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5167 * rs6000-nat.c (regmap, fetch_inferior_registers,
5168 store_inferior_registers): Same.
5169 * rs6000-tdep.c (e500_pseudo_register_read)
5170 (e500_pseudo_register_write): Same.
5171 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5172
b967e06f
JB
5173 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5174 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5175 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5176 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5177 FPLAST_REGNUM.
5178 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5179 Same.
5180 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5181 * rs6000-nat.c (regmap, fetch_inferior_registers)
5182 (store_inferior_registers): Same.
5183
edf61169
JB
5184 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5185 with FPLAST_REGNUM.
5186
58a9656e
JB
51872004-05-03 Joel Brobecker <brobecker@gnat.com>
5188
5189 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5190 failure detected by recent versions of GCC.
5191 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5192 to be consistent with the usage in dwarf2_create_include_psymtab.
5193
dc305454
MS
51942004-05-03 Michael Snyder <msnyder@redhat.com>
5195
5196 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5197 (heuristic_proc_start): Whitespace cleanup.
5198
29972665
MK
51992004-05-04 Mark Kettenis <kettenis@gnu.org>
5200
6b57680d
MK
5201 * sun3-nat.c: Remove file.
5202 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5203 dependencies.
5204 (ALLDEPFILES): Remove sun3-nat.c.
5205 (sun3-nat.o): Remove dependencies.
5206
29972665
MK
5207 * i386-interix-nat.c, i386-interix-tdep.c,
5208 config/i386/nm-interix.h, config/i386/interix.mh,
5209 config/i386/interix.mt: Remove files.
5210 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5211 dependencies.
5212
f595cb19
MK
52132004-05-03 Mark Kettenis <kettenis@gnu.org>
5214
5215 * m68k-tdep.h (struct gdbarch_tdep): Add member
5216 struct_value_regnum.
5217 (m68k_svr4_init_abi): New prototype.
5218 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5219 different calling conventions.
5220 (m68k_extract_return_value): Remove code dealing with single-field
5221 structs.
5222 (m68k_store_return_value): Remove code dealing with single-field
5223 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5224 (m68k_extract_struct_value_address): Remove function.
5225 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5226 (m68k_reg_struct_return_p, m68k_return_value)
5227 (m68k_svr4_return_value): New functions.
5228 (m68k_use_struct_convention): Remove function.
5229 (m68k_push_dummy_call): Use new struct_value_regnum member of
5230 `struct gdbarch_tdep' instead of hardcoded register number to
5231 store STRUCT_ADDR.
5232 (m68k_svr4_init_abi): New function.
5233 (m68k_gdbarch_init): Don't set extract_return_value,
5234 store_return_values, deprecated_extract_struct_value_address and
5235 use_struct_convention. Set return_value instead. Initialize new
5236 struct_value_regnum member of `struct gdbarch_tdep'.
5237 * m68klinux-tdep.c: Update copyright year.
5238 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5239 (m68k_linux_extract_struct_value_address): Remove function.
5240 (m68k_linux_init_abi): Don't set extract_return_value,
5241 store_return_values, deprecated_extract_struct_value_address and
5242 use_struct_convention. Call m68k_svr4_init_abi but override the
5243 new struct_value_regnum member of `struct gdbarch_tdep'.
5244 * Makefile.in (m68k-tdep.o): Update dependencies.
5245
aaa75496
JB
52462004-05-03 J. Brobecker <brobecker@gnat.com>
5247
5248 * dwarf2read.c (line_header): Add new included_p field in
5249 field file_names.
5250 (partial_die_info): New field has_stmt_list. New field line_offset.
5251 (dwarf2_create_include_psymtab): New function.
5252 (dwarf2_build_include_psymtabs): New function.
5253 (add_file_name): Add forward declaration. Initialize new field.
5254 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5255 to be able to determine the list of files included by the
5256 given unit, and build their associated psymtabs.
5257 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5258 files as well.
5259 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5260 (read_file_scope): Update call to dwarf_decode_lines.
5261 (read_partial_die): Handle DW_AT_stmt_list attributes.
5262
c848556f
MC
52632004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5264
5265 Unfix PR gdb/1626.
5266 * configure.in: Revert special case for osf5.*.
5267 * configure: Regenerate.
5268
eb4556d7
JB
52692004-05-02 Jim Blandy <jimb@redhat.com>
5270
5271 Move the symbol-file-from-memory functions into their own file.
5272 * symfile-mem.c, symfile-mem.h: New files.
5273 * symfile.c (symbol_file_add_from_bfd): New function.
5274 (symbol_file_add): Call symbol_file_add_from_bfd.
5275 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5276 Moved to symfile-mem.c.
5277 (_initialize_symfile): Move definition of
5278 add-symbol-file-from-memory command to symfile-mem.c.
5279 * symfile.h (symbol_file_add_from_bfd): New declaration.
5280 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5281 * config/powerpc/linux.mt (TDEPFILES): Same.
5282 * Makefile.in (SFILES): Add symfile-mem.c.
5283 (symfile_mem_h): New variable.
5284 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5285 (symfile-mem.o): New rule.
5286
80bb239e
AC
52872004-05-01 Andrew Cagney <cagney@redhat.com>
5288
7789d0fa
AC
5289 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5290 frame_find_by_id instead of frame_relative_level.
5291 (do_enable_breakpoint): Ditto.
5292 * thread.c: Update copyright.
5293 (info_threads_command): Ditto, simplify.
5294
80bb239e
AC
5295 * frame.c (deprecated_generic_get_saved_register): Delete
5296 function, moved to "xstormy16-tdep.c".
5297 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5298 deprecated_generic_get_saved_register from "frame.c".
5299 (xstormy16_frame_saved_register): Call
5300 xstormy16_get_saved_register.
5301 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5302 static.
5303 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5304 * frame.h (deprecated_generic_get_saved_register): Delete.
5305
b2a871dd
MC
53062004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5307
5308 * dwarfread.c: Update documentation on the state of dwarf-1.
5309
0e100dab
AC
53102004-05-01 Andrew Cagney <cagney@redhat.com>
5311
acd8056e
AC
5312 * stack.c (select_frame_command): Delete call to
5313 frame_relative_level.
5314 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5315 Delete #if0 code.
5316 (frame_info): Do not print FRAMELESS.
5317 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5318 (catch_info): Delete #if0 code.
5319
0e100dab
AC
5320 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5321 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5322 of frame_relative_level.
5323 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5324 to SENTINEL_FRAME.
5325 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5326 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5327 frame_relative_level.
5328
55699d59
AC
5329 * frame.h (deprecated_set_frame_type): Delete declaration.
5330 * frame.c (deprecated_set_frame_type): Delete function, update
5331 comments.
5332
fcf70625
AC
5333 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5334 * gdbarch.h, gdbarch.c: Re-generate.
5335 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5336 (shnbsd_pc_in_sigtramp): Delete.
5337 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5338 pc_in_sigtramp.
5339 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5340 pc_in_sigtramp.
5341 * frame.h: Update comments.
5342 * ppc-linux-tdep.c: Update comments.
5343 * breakpoint.c (bpstat_what): Update comments.
5344
ac5eccb7
AC
5345 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5346 m68klinux-tdep.o's dependencies, were previously added to
5347 m68klinux-nat.o.
5348
f2524b93
AC
5349 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5350 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5351 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5352 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5353 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5354
17e20bce
AC
5355 * Makefile.in (m68klinux-nat.o): Update dependencies.
5356 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5357 (m68k_linux_sigtramp_frame_cache)
5358 (m68k_linux_sigtramp_frame_this_id)
5359 (m68k_linux_sigtramp_frame_prev_register)
5360 (m68k_linux_sigtramp_frame_unwind)
5361 (m68k_linux_sigtramp_frame_sniffer)
5362 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5363 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5364 names, use trad-frame.h.
5365 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5366 (struct m68k_sigtramp_info): Delete.
5367 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5368 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5369 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5370 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5371 "m68klinux-tdep.c".
5372
c8864fa2
AC
5373 * infrun.c (check_sigtramp2): Delete check for
5374 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5375
511dd2cd
MK
53762004-05-01 Mark Kettenis <kettenis@gnu.org>
5377
5378 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5379
8c6b0e06
AC
53802004-05-01 Andrew Cagney <cagney@redhat.com>
5381
9df0bb3f
AC
5382 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5383 (frv_linux_sigtramp_frame_cache)
5384 (frv_linux_sigtramp_frame_this_id)
5385 (frv_linux_sigtramp_frame_prev_register)
5386 (frv_linux_sigtramp_frame_unwind)
5387 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5388 include "linux" in function and variable names, directly call
5389 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5390 the latest trad-frame code.
5391 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5392 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5393 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5394 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5395 * frv-tdep.c (frv_sigtramp_frame_cache)
5396 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5397 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5398 frv-linux-tdep.c.
5399 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5400 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5401 (frv_set_sigcontext_reg_addr): Delete function.
5402
8c6b0e06
AC
5403 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5404 (DEPRECATED_SIGTRAMP_END): Delete.
5405 * gdbarch.h, gdbarch.c: Re-generate.
5406 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5407 * config/vax/tm-vaxbsd.h: Update copyright.
5408 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5409 (DEPRECATED_IN_SIGTRAMP): Define.
5410 * config/m68k/tm-nbsd.h: Update copyright.
5411 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5412 (DEPRECATED_IN_SIGTRAMP): Define.
5413
50ea7769
MK
54142004-05-01 Mark Kettenis <kettenis@gnu.org>
5415
03ac2a74
MK
5416 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5417 encondings. Fixes PR gdb/1628.
5418
50ea7769
MK
5419 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5420 DW_CFA_restore state without a matching DW_CFA_remember_state
5421 instead of aborting. Fixes PR backtrace/1589.
5422
9a5d7be1
JB
54232004-04-30 Joel Brobecker <brobecker@gnat.com>
5424
5425 * MAINTAINERS: Add self as AIX maintainer.
5426 Update my e-mail address in write-after-approval section.
5427
2593d1cd
AC
54282004-04-30 Andrew Cagney <cagney@redhat.com>
5429
ce12bbf9
AC
5430 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5431 (legacy_get_prev_frame): Ditto.
5432
36710c63
AC
5433 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5434 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5435 * mipsread.c (sigtramp_address): Delete extern variable.
5436 (mipscoff_new_init): Delete reference.
5437 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5438 (fixup_sigtramp): Delete function.
5439 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5440 (fixup_sigtramp): Delete declarations.
5441
2593d1cd
AC
5442 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5443 deprecated_pc_in_sigtramp.
5444 (ppcnbsd_pc_in_sigtramp): Delete function.
5445
2a25f91c
MK
54462004-05-01 Mark Kettenis <kettenis@gnu.org>
5447
5448 * config/m68k/nm-nbsd.h: Tweak comments.
5449 * config/m68k/nm-nbsdaout.h: Likewise.
5450
0b281939
AC
54512004-04-30 Andrew Cagney <cagney@redhat.com>
5452
5453 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5454 legacy_pc_in_sigtramp.
5455 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5456
8f2d3ea0
MK
54572004-05-01 Mark Kettenis <kettenis@gnu.org>
5458
5459 Add OpenBSD/m68k support.
5460 * NEWS (New native configurations): Mention OpenBSD/m68k.
5461 * m68kbsd-tdep.c: New file.
5462 * m68kbsd-nat.c: New file.
5463 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5464 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5465 * configure.host: Add m68k-*-openbsd.
5466 * configure.tgt: Add m68k-*-openbsd.
5467 * config/m68k/tm-obsd.h: New file.
5468 * config/m68k/obsd.mt: New file.
5469 * config/m68k/obsd.mh: New file.
5470 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5471 m68kbsd-tdep.c.
5472
c40f49a4
AC
54732004-04-30 Andrew Cagney <cagney@redhat.com>
5474
5475 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5476 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5477
e81554cd
MK
54782004-04-30 Mark Kettenis <kettenis@gnu.org>
5479
5480 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5481 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5482
d4dc1a91
BF
54832004-04-30 Brian Ford <ford@vss.fsi.com>
5484
5485 Revert 2004-04-16 change.
5486 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5487 (i386_coff_init_abi): Remove.
5488 * i386-tdep.h (i386_coff_init_abi): Remove.
5489 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5490
2f72f850
AC
54912004-04-30 Andrew Cagney <cagney@redhat.com>
5492
e492f9d6
AC
5493 * blockframe.c (find_pc_partial_function): Delete use of
5494 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5495 DEPRECATED_SIGTRAMP_END.
5496
7b7adad0
AC
5497 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5498 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5499 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5500 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5501 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5502
2f72f850
AC
5503 * defs.h (deprecated_inside_entry_file): Delete declaration.
5504 * blockframe.c (deprecated_inside_entry_file): Delete function.
5505 (legacy_frame_chain_valid): Delete call.
5506 * sh64-tdep.c (sh64_frame_chain): Delete call.
5507 * objfiles.h: Update comments.
5508 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5509 call.
5510 * frame.c (get_prev_frame): Delete call, update comments.
5511
283f90a7
BF
55122004-04-30 Brian Ford <ford@vss.fsi.com>
5513
5514 * MAINTAINERS (Write After Approval): Add myself.
5515
8ee56bcf
AC
55162004-04-30 Andrew Cagney <cagney@redhat.com>
5517
5518 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5519 * gdbarch.h, gdbarch.c: Re-generate.
5520 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5521 code.
5522
ee27e1b6
AC
55232004-04-30 Andrew Cagney <cagney@redhat.com>
5524
5525 * gdb-events.sh (selected_thread_changed)
5526 (selected_frame_level_changed, target_changed): Delete.
5527 * gdb-events.h, gdb-events.c: Re-generate.
5528 * valops.c (value_assign): Update.
5529 * stack.c (select_frame_command, up_silently_base)
5530 (down_silently_base): Update.
5531
d5ac5a39
AC
55322004-04-29 Andrew Cagney <cagney@redhat.com>
5533
5534 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5535 registers correctly.
5536 (print_gp_register_row, mips32_heuristic_proc_desc)
5537 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5538 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5539 references to mips_isa_regsize.
5540
ceae6e75
AC
55412004-04-29 Andrew Cagney <cagney@redhat.com>
5542
5543 * mips-tdep.c (struct gdbarch_tdep): Delete
5544 mips_fp_register_double.
5545 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5546 mips_abi_regsize.
5547 (mips_gdbarch_init): Do not set mips_fp_register_double.
5548 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5549
a587af0b
AC
55502004-04-29 Joel Brobecker <brobecker@gnat.com>
5551
5552 Committed by Andrew Cagney.
5553 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5554 function calls.
5555
13326b4e
AC
55562004-04-29 Andrew Cagney <cagney@redhat.com>
5557
5558 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5559 gdbarch, use mips_abi, update callers.
5560 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5561 mips_abi_regsize, update callers.
5562 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5563 mips_default_abi_regsize.
5564 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5565 mips_default_abi_regsize.
5566
711cc5cd
AC
55672004-04-29 Andrew Cagney <cagney@redhat.com>
5568
1b13c4f6
AC
5569 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5570 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5571 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5572 mips_default_abi_regsize.
5573 (mips_isa_regsize): Rename mips_regisze.
5574 * mipsnbsd-tdep.c: Update.
5575 * mips-linux-tdep.c: Update.
5576 * irix5-nat.c: Update.
5577 * mips-tdep.h (mips_isa_regsize): Update.
5578
711cc5cd
AC
5579 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5580 Delete all disabled code.
5581 * gdb-events.h, gdb-events.c: Re-generate.
5582
e63bbc88
MK
55832004-04-19 Jerome Guitton <guitton@gnat.com>
5584 Mark Kettenis <kettenis@gnu.org>
5585
5586 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5587 the function begins with a branch instruction.
5588
fd35795f
MK
55892004-04-29 Mark Kettenis <kettenis@gnu.org>
5590
5591 * i386-tdep.c: Fix spelling mistakes.
5592
c960c18f
AC
55932004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5594 Andrew Cagney <cagney@redhat.com>
5595
5596 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5597 <sys/proc.h>.
5598 * acconfig.h: Provide default _KMEMUSER value.
5599 * config.in, configure: Re-generate.
5600 * NEWS: Mention fix.
5601
50306a9d
RC
56022004-04-24 Randolph Chung <tausq@debian.org>
5603
5604 * configure.host (hppa*-*-linux*): New target.
5605 * configure.tgt (hppa*-*-linux*): Likewise.
5606 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5607 gdbarch_init_osabi() call earlier so that osabi-specific frame
5608 unwinders can be registered first.
5609 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5610 hppa-linux-nat.c.
5611 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5612 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5613 * config/pa/linux.mh: New file.
5614 * config/pa/linux.mt: New file.
5615 * config/pa/nm-linux.h: New file.
5616 * config/pa/xm-linux.h: New file.
5617 * hppa-linux-nat.c: New file.
5618 * hppa-linux-tdep.c: New file.
5619
2a6228ef
RC
56202004-04-28 Randolph Chung <tausq@debian.org>
5621
5622 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5623 return values.
5624 (hppa32_push_dummy_call): Fix small struct and floating point argument
5625 passing, and make sure the stack frame is properly aligned.
5626
82c10df6
AC
56272004-04-28 Andrew Cagney <cagney@redhat.com>
5628
d762c46a
AC
5629 * stack.c (print_stack_frame): Fix description.
5630
82c10df6
AC
5631 * NEWS: Mention gdb/gdbserver/configure execute permission
5632 changed. PR server/519.
5633
0faf0076
AC
56342004-04-28 Andrew Cagney <cagney@redhat.com>
5635
5636 * stack.c (print_stack_frame_stub): Delete declaration.
5637 (struct print_stack_frame_args, print_stack_frame)
5638 (print_frame_info, print_frame): Replace "source" with print what.
5639 Replace "print" with "print_level". Replace "args" with
5640 "print_args".
5641 * frame.h (show_and_print_stack_frame, print_stack_frame)
5642 (print_frame_info): Update declarations.
5643 * stack.c (select_and_print_frame, frame_command)
5644 (current_frame_command, up_command, down_command): Update calls -
5645 use get_selected_frame, pass "enum print_what" for source, do not
5646 call frame_relative_level.
5647 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5648 * remote-rdp.c (remote_rdp_open): Ditto.
5649 * remote-mips.c (common_open): Ditto.
5650 * remote-e7000.c (e7000_start_remote): Ditto.
5651 * ocd.c (ocd_start_remote): Ditto.
5652 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5653 * infrun.c (normal_stop): Ditto.
5654 * inflow.c (kill_command): Ditto.
5655 * infcmd.c (finish_command): Ditto.
5656 * corelow.c (core_open): Ditto.
5657 * tracepoint.c (finish_tfind_command): Ditto.
5658 * thread.c (info_threads_command, info_threads_command)
5659 (restore_current_thread, do_captured_thread_select): Ditto.
5660 * ada-tasks.c (task_command): Ditto.
5661
f4c5303c
OF
56622004-04-26 Orjan Friberg <orjanf@axis.com>
5663
5664 * frame.c: Include "observer.h".
5665 (frame_observer_target_changed): New function.
5666 (_initialize_frame): Attach target_changed observer.
5667 * regcache.c: Include "observer.h".
5668 (regcache_observer_target_changed): New function.
5669 (_initialize_regcache): Attach target_changed observer.
5670 * valops.c: Include "observer.h".
5671 (value_assign): Notify target_changed event when modifying register.
5672 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5673
7270d8f2
OF
56742004-04-26 Orjan Friberg <orjanf@axis.com>
5675
5676 From Paul Koning <pkoning@equallogic.com>:
5677 * breakpoint.c (free_valchain): New function.
5678 (insert_bp_location, delete_breakpoint): Use free_valchain.
5679 (remove_breakpoint): Do not remove the valchain.
5680 (bpstat_stop_status): If not stopped by watchpoint, skip
5681 watchpoints when generating stop status list.
5682 * infrun.c (handle_inferior_event): Make
5683 stepped_after_stopped_by_watchpoint a global variable.
5684 * remote.c (remote_stopped_data_address): Return watch data
5685 address rather than zero if stepped_after_stopped_by_watchpoint is
5686 set.
5687
02d62932
MC
56882004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5689
5690 Fix PR gdb/1626.
5691 * configure.in: Check for curses after termcap.
5692 On osf5.*, do not check for ncurses.
5693 * configure: Regenerate.
5694
3e9a183c
MK
56952004-04-25 Mark Kettenis <kettenis@gnu.org>
5696
c79ac407
MK
5697 * ppcobsd-nat.c: Include "ppc-tdep.h".
5698 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5699
3e9a183c
MK
5700 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5701 Fixes PR tdep/1623 and PR tdep/1624.
5702
38cc9c28
MC
57032004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5704
5705 * xmodem.h, xmodem.c: Remove files.
5706 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5707
7f07c5b6
RC
57082004-04-23 Randolph Chung <tausq@debian.org>
5709
5710 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5711 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5712 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5713 for handling stackless frames.
5714 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5715
9f7194c3
RC
57162004-04-23 Randolph Chung <tausq@debian.org>
5717
5718 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5719 starts at a pc before the frame is created.
5720
dcff6009
JB
57212004-04-23 Joel Brobecker <brobecker@gnat.com>
5722
5723 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5724
40711ff1 57252004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
5726
5727 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5728 use convert_typed_floating to get the appropriate format.
5729
abc485a1
RC
57302004-04-22 Randolph Chung <tausq@debian.org>
5731
5732 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5733 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5734 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5735 (hppa_sign_extend): Add prototype.
5736 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5737 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5738 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5739 hppa targets will also use these functions.
5740 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5741 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5742 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5743 (hppa_gdbarch_init): Remove gdbarch setting of
5744 skip_trampoline_code, in_solib_call_trampoline and
5745 in_solib_return_trampoline.
5746 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5747 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5748 hppa_in_solib_call_trampoline.
5749 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5750 Moved from hppa-tdep.c.
5751 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5752 in_solib_call_trampoline and in_solib_return_trampoline.
5753
369aa520
RC
57542004-04-22 Randolph Chung <tausq@debian.org>
5755
5756 * hppa-tdep.c (hppa_debug): New variable.
5757 (find_unwind_entry, hppa_frame_cache): Add debug output.
5758 (_initialize_hppa_tdep): Add command to set debug flag.
5759
476be15e
AC
57602004-04-22 Andrew Cagney <cagney@redhat.com>
5761
5762 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5763 "trad-frame.h".
5764 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5765 signal trampoline unwinder.
5766 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5767
d195bc9f
MK
57682004-04-22 Mark Kettenis <kettenis@gnu.org>
5769
5770 Add OpenBSD/powerpc support.
5771 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5772 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5773 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5774 (ppc_collect_fpregset): New prototypes.
5775 * ppcobsd-nat.c: New file.
5776 * ppcobsd-tdep.c: New file.
5777 * ppcobsd-tdep.h: New file.
5778 * rs6000-tdep.c: Include "regset.h".
5779 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5780 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5781 New functions.
5782 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5783 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5784 (rs6000-tdep.o): Update dependencies.
5785 * configure.host: Add powerpc-*-openbsd.
5786 * configure.tgt: Add powerpc-*-openbsd.
5787 * config/powerpc/obsd.mh: New file.
5788 * config/powerpc/nm-obsd.h: New file.
5789 * config/powerpc/obsd.mt: New file.
5790
6f14cc33
AC
57912004-04-22 Andrew Cagney <cagney@redhat.com>
5792
fcf29e5f
AC
5793 * frame.h (show_frame_info): Delete declaration.
5794
6f14cc33
AC
5795 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5796 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5797 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5798 * frv-tdep.c (frv_frame_this_id): Ditto.
5799 * avr-tdep.c (avr_frame_this_id): Ditto.
5800
e5786a5c
EZ
58012004-04-22 Elena Zannoni <ezannoni@redhat.com>
5802
5803 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5804
26e75e5c
JB
58052004-04-22 Jim Blandy <jimb@redhat.com>
5806
5807 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5808 register number zero.
5809
d8d65dd3
MS
58102004-04-21 Michael Snyder <msnyder@redhat.com>
5811
5812 * mips-tdep.c (heuristic_proc_start):
5813 Warning() already prefixes "Warning: ".
5814
9a4105ab
AC
58152004-04-21 Andrew Cagney <cagney@redhat.com>
5816
5817 * annotate.h (deprecated_annotate_starting_hook)
5818 (deprecated_annotate_stopped_hook)
5819 (deprecated_annotate_exited_hook)
5820 (deprecated_annotate_signal_hook)
5821 (deprecated_annotate_signalled_hook): Deprecate.
5822 * tracepoint.h (deprecated_create_tracepoint_hook)
5823 (deprecated_delete_tracepoint_hook)
5824 (deprecated_modify_tracepoint_hook)
5825 (deprecated_trace_find_hook)
5826 (deprecated_trace_start_stop_hook): Deprecate.
5827 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5828 * remote.h (deprecated_target_resume_hook)
5829 (deprecated_target_wait_loop_hook): Deprecate.
5830 * gdbcore.h (deprecated_exec_file_display_hook)
5831 (deprecated_file_changed_hook): Deprecate.
5832 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5833 * defs.h (deprecated_modify_breakpoint_hook)
5834 (deprecated_command_loop_hook, deprecated_show_load_progress)
5835 (deprecated_print_frame_info_listing_hook)
5836 (deprecated_query_hook, deprecated_warning_hook)
5837 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5838 (deprecated_delete_breakpoint_hook)
5839 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5840 (deprecated_readline_begin_hook, deprecated_readline_hook)
5841 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5842 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5843 (deprecated_context_hook, deprecated_target_wait_hook)
5844 (deprecated_attach_hook, deprecated_detach_hook)
5845 (deprecated_call_command_hook, deprecated_set_hook)
5846 (deprecated_error_hook, deprecated_error_begin_hook)
5847 (deprecated_ui_load_progress_hook): Deprecate.
5848 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5849 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5850 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5851 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5852 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5853 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5854 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5855 * annotate.c, aix-thread.c: Update.
5856
62cf13cc
AC
58572004-04-21 Andrew Cagney <cagney@redhat.com>
5858
b2e31a62
AC
5859 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5860 * vaxnbsd-tdep.c: Include "gdb_string.h".
5861
62cf13cc
AC
5862 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5863 (add_symbol_file_from_memory_command): #if 0 function body, call
5864 error instead.
5865
00e32a35
AC
58662004-04-21 Andrew Cagney <cagney@redhat.com>
5867
5868 * gdbcore.h: Update copyright.
5869 (deprecated_add_core_fns): Rename add_core_fns.
5870 * win32-nat.c (_initialize_core_win32): Update.
5871 * sun3-nat.c (_initialize_core_sun3): Update.
5872 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5873 * rs6000-nat.c (_initialize_core_rs6000): Update.
5874 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5875 * nto-tdep.c (_initialize_nto_tdep): Update.
5876 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5877 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5878 * mips-nat.c (_initialize_core_mips): Update.
5879 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5880 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5881 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5882 * lynx-nat.c (_initialize_core_lynx): Update.
5883 * irix5-nat.c (_initialize_core_irix5): Update.
5884 * i386-interix-nat.c (_initialize_core_interix): Update.
5885 * cris-tdep.c (_initialize_cris_tdep): Update.
5886 * corelow.c (deprecated_add_core_fns): Update.
5887 * core-regset.c (_initialize_core_regset): Update.
5888 * core-aout.c (_initialize_core_aout): Update.
5889 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5890 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5891 * alpha-nat.c (_initialize_core_alpha): Update.
5892
13c7b1ca
JB
58932004-04-21 Jim Blandy <jimb@redhat.com>
5894
5895 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5896
7b5a2f43
DJ
58972004-04-19 Daniel Jacobowitz <drow@mvista.com>
5898
5899 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5900 Delete.
5901 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5902 (read_attribute_value): Update calls to dwarf_alloc_block.
5903 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5904 dwarf2_tmp_obstack.
5905 (psymtab_to_symtab_1): Likewise. Clean up using
5906 free_stack_comp_unit.
5907 (add_to_cu_func_list): Use the comp_unit_obstack.
5908
05cf31d1
JB
59092004-04-19 Joel Brobecker <brobecker@gnat.com>
5910
5911 * dwarf2read.c (dwarf2_flag_true_p): New function.
5912 (die_is_declaration): Use the function above. Add some comments.
5913
adf93a2f
MK
59142004-04-19 Mark Kettenis <kettenis@gnu.org>
5915
5916 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5917 architecture when registering sparcnbsd_core_osabi_sniffer.
5918 Adjust comment.
5919
748894bf
MK
59202004-04-18 Mark Kettenis <kettenis@gnu.org>
5921
f622ad42
MK
5922 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5923 return value.
5924
c4fc7f1b
MK
5925 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5926 * i386-tdep.c: Correct register numbering scheme comments
5927 throughout.
5928 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5929 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5930 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5931 (i386_gdb_arch_init): Likewise.
5932
b4ead1bd
MK
5933 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5934 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5935 ppcnbsd-tdep.o.
5936
748894bf
MK
5937 * m68k-tdep.h: Tweak comments.
5938 * m68k-tdep.c: Tweak comment.
5939
fdd72f95
RC
59402004-04-17 Randolph Chung <tausq@debian.org>
5941
5942 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5943 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5944 (hppa_hpux_som_init_abi): Set is_elf to 0.
5945 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5946 * hppa-tdep.c (low_text_segment_address): Remove global.
5947 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5948 section offset to calculate segment address.
5949 (internalize_unwinds): Define low_text_segment_address as local and
5950 pass to record_text_segment_lowaddr for ELF targets.
5951 (hppa_gdbarch_init): Zero fill tdep structure.
5952 (hppa_dump_tdep): Print tdep structure.
5953 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5954
0f8d9d59
RC
59552004-04-17 Randolph Chung <tausq@debian.org>
5956
5957 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5958 (hppa_gdbarch_init): Set pseudo_register_read.
5959 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5960 * regcache.c (supply_register): Remove check for
5961 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5962
7c46b9fb
RC
59632004-04-17 Randolph Chung <tausq@debian.org>
5964
5965 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5966 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5967 (hpread_adjust_stack_address): Move to hpread.c.
5968 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5969 obj_private_struct): Move from tm-hppa.h.
5970 * hpread.c (hppa-tdep.h): Include.
5971 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5972 (hpread_read_function_type, hpread_read_doc_function_type)
5973 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5974 directly.
5975 * pa64solib.c (hppa-tdep.h): Include.
5976 * somsolib.c (hppa-tdep.h): Include.
5977 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5978 inferior_status): Remove unused forward declarations.
5979 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5980 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5981 obj_private_struct): Move to hppa-tdep.h.
5982 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5983
8d153463
RC
59842004-04-17 Randolph Chung <tausq@debian.org>
5985
5986 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5987 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5988 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5989 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5990 Remove forward declaration and make static.
5991 (hppa_reg_struct_has_addr): Remove.
5992
350c2e5b
JB
59932004-04-16 Joel Brobecker <brobecker@gnat.com>
5994
5995 * observer.sh: Move comments in sed command to first column.
5996
bbde78fa
JM
59972004-04-16 Jason Molenda (jmolenda@apple.com)
5998
5999 * frame.c: Minor typeo corrections in comments.
6000
e0270fd9
JB
60012004-04-16 Joel Brobecker <brobecker@gnat.com>
6002
6003 * observer.c (observer_test_first_notification_function): Update
6004 function profile.
6005 (observer_test_second_notification_function): Likewise.
6006 (observer_test_third_notification_function): Likewise.
6007
3d049254
MK
60082004-04-16 Mark Kettenis <kettenis@gnu.org>
6009
6010 From Brian Ford <ford@vss.fsi.com>:
6011 * i386-tdep.c (i386_coff_init_abi): New function.
6012 * i386-tdep.h (i386_coff_init_abi): New prototype.
6013 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6014 register number translation functions for DWARF and DWARF 2.
6015
7867684d
JB
60162004-04-16 Joel Brobecker <brobecker@gnat.com>
6017
6018 * dwarf2read.c: Back out my previous change, it was incorrect.
6019
72bf9492
DJ
60202004-04-16 Daniel Jacobowitz <drow@mvista.com>
6021
6022 * dwarf2read.c: Include "hashtab.h".
6023 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
6024 has_namespace_info.
6025 (struct partial_die_info): Add comments. Use bitfields to reduce
6026 memory footprint. Add scope, scope_set, has_specification,
6027 spec_offset, die_parent, die_child, and die_sibling.
6028 (peek_die_abbrev): Add prototype.
6029 (partial_read_comp_unit_head): New function, broken out from
6030 dwarf2_build_psymtabs_hard.
6031 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6032 Use partial_read_comp_unit_head. Initialize the CU and
6033 comp_unit_obstack. Update calls to read_partial_die and
6034 scan_partial_symbols. Use free_stack_comp_unit and
6035 load_partial_dies.
6036 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6037 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6038 Update calls to helper functions. Remove NAMESPACE argument.
6039 Update comments.
6040 (partial_die_parent_scope, partial_die_full_name): New functions.
6041 (add_partial_symbol): Remove namespace argument. Update call to
6042 pdi_needs_namespace. Use partial_die_full_name. Handle
6043 DW_TAG_namespace. Check has_namespace_info flag.
6044 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6045 tag. Handle namespaces.
6046 (add_partial_namespace, add_partial_enumeration): Simplify.
6047 (guess_structure_name): New function, derived from
6048 add_partial_structure.
6049 (add_partial_structure): Remove.
6050 (determine_class_name): Update comment.
6051 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6052 (is_type_tag_for_partial, load_partial_dies): New functions.
6053 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6054 Record specifications instead of following them immediately.
6055 (find_partial_die_in_comp_unit, find_partial_die)
6056 (fixup_partial_die, free_stack_comp_unit)
6057 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6058 (partial_die_hash, partial_die_eq): New functions.
6059 * Makefile.in (hashtab_h): Define.
6060 (dwarf2read.o): Update dependencies.
6061 (observer_inc, observer_h): Move to the correct section.
6062
fdc860a3
JB
60632004-04-15 Joel Brobecker <brobecker@gnat.com>
6064
6065 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6066 (die_is_declaration): Use the function above. Add comment.
6067
dc718098
JB
60682004-04-15 Joel Brobecker <brobecker@gnat.com>
6069
6070 * dwarf2read.c (read_structure_scope): Identify stub types
6071 using die_is_declaration() only.
6072
8718a420
RM
60732004-04-15 Roland McGrath <roland@redhat.com>
6074
6075 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6076 argument instead of NAME.
6077 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6078 in call to symbol_file_add_with_addrs_or_offsets.
6079 (build_addr_info): New function, helper for ...
6080 (symbol_file_add_from_memory): New function.
6081 (add_symbol_file_from_memory_command): New function using that.
6082 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6083 (pre_add_symbol_hook): Add const to argument type.
6084 * symfile.h (symbol_file_add_from_memory): Declare it.
6085
8b910bab
MK
60862004-04-15 Mark Kettenis <kettenis@gnu.org>
6087
9f076e7a
MK
6088 * NEWS (New native configurations): Mention OpenBSD/vax.
6089 * configure.host: Add vax-*-openbsd*.
6090 * config/vax/obsd.mh: New file.
6091 * config/vax/nm-obsd.h: New file.
6092
8b910bab
MK
6093 * vax-tdep.c: Include "regset.h".
6094 (vax_supply_gregset): New function.
6095 (vax_gregset): New variable.
6096 (vax_regset_from_core_section): New function.
6097 (vax_gdbarch_init): Set regset_from_core_section.
6098 * Makefile.in (vax-tdep.o): Update dependencies.
6099
7a464420
AC
61002004-04-15 Andrew Cagney <cagney@redhat.com>
6101
6102 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6103 (observer_normal_stop_notification_stub)
6104 (observer_attach_normal_stop, observer_detach_normal_stop):
6105 Delete, replaced by #include "observer.inc".
6106 * infrun.c (normal_stop): Pass "stop_bpstat" to
6107 observer_notify_normal_stop.
6108 * Makefile.in (observer_inc): Define.
6109 (observer.o): Update dependencies.
6110 (observer.h, observer.inc): New rules.
6111 * observer.h: Delete file.
6112 * observer.sh: New file.
6113
e36ad527
MK
61142004-04-15 Mark Kettenis <kettenis@gnu.org>
6115
6116 * vax-tdep.c (vax_frame_cache): Fix typo.
6117
67b441e1
MK
61182004-04-14 Mark Kettenis <kettenis@gnu.org>
6119
6f606e1c
MK
6120 * NEWS (New native configurations): Mention NetBSD/vax.
6121 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6122 * config/vax/nbsdelf.mh: New file.
6123 * config/vax/nbsdaout.mh: New file.
6124 * config/vax/nm-nbsd.h: New file.
6125 * config/vax/nm-nbsdaout.h: New file.
6126
9c5519a5
MK
6127 * vaxnbsd-tdep.c: New file.
6128 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6129 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6130 * config/vax/nbsd.mt: New file.
6131 * config/vax/tm-nbsd.h: New file.
6132
4844a614
MK
6133 * Makefile.in (vaxbsd-nat.o): New dependency.
6134
67b441e1
MK
6135 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6136 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6137 struct_addr arguments. Don't push return value address.
6138 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6139 arguments to vax_store_arguments. Store return value address in
6140 R1.
6141 (vax_store_struct_return, vax_extract_return_value)
6142 (vax_store_return_value): Remove functions.
6143 (vax_return_value): New function.
6144 (vax_gdbarch_init): Set return value. Don't set
6145 deprecated_store_struct_return, deprecated_extract_struct_return
6146 and deprecated_store_return_value.
6147
6672f2ae
AS
61482004-04-14 Andreas Schwab <schwab@suse.de>
6149
6150 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6151 value buffer.
6152 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6153
7346c184
MK
61542004-04-14 Mark Kettenis <kettenis@gnu.org>
6155
6156 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6157 (vax_unwind_dummy_id): New functions.
6158 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6159 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6160 variables.
6161 (vax_fix_call_dummy): Remove function.
6162 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6163 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6164 call_dummy_location, deprecated_call_dummy_words,
6165 deprecated_sizeof_call_dummy_words,
6166 deprecated_call_dummy_breakpoint_offset,
6167 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6168 and deprecated_dummy_write_sp.
6169
58e23df4
DC
61702004-04-13 David Carlton <carlton@kealia.com>
6171
6172 * MAINTAINERS: Move myself to "paper trail" section.
6173
5e6b39ff
MK
61742004-04-12 Mark Kettenis <kettenis@gnu.org>
6175
7def7fef
MK
6176 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6177 "trad-frame.h".
6178 (vax_frame_init_saved_regs): Remove function.
6179 (vax_sigtramp_saved_pc): Remove function.
6180 (vax_frame_saved_pc): Remove function.
6181 (vax_frame_args_address): Remove function.
6182 (vax_frame_num_args): Rewrite.
6183 (vax_frame_chain): Remove function.
6184 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6185 VAX_FP_REGNUM.
6186 (vax_pop_frame): Likewise.
6187 (vax_saved_pc_after_call): Remove function.
6188 (struct vax_frame_cache): New structure.
6189 (vax_frame_cache): New function.
6190 (vax_frame_this_id): New function.
6191 (vax_frame_prev_register): New function.
6192 (vax_frame_unwind): New variable.
6193 (vax_frame_sniffer): New function.
6194 (vax_frame_base_address): New function.
6195 (vax_frame_args_address): New function.
6196 (vax_frame_base): New variable.
6197 (vax_unwind_pc): New function.
6198 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6199 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6200 deprecated_frame_chain, deprecated_frame_saved_pc,
6201 deprecated_frame_args_address and
6202 deprecated_frame_init_saved_regs.
6203 * Makefile.in (vax-tdep.o): Update dependencies.
6204
53284fc1
MK
6205 * vaxbsd-nat.c: New file.
6206
5e6b39ff
MK
6207 * vax-tdep.h: Update copyright year. Adjust comments.
6208 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6209 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6210 (vax_regnum): New enum. Replacing...
6211 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6212 (VAX_PS_REGNUM): ... these removed macros.
6213 * vax-tdep.c (vax_register_name): Remove prototype.
6214 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6215 (vax_register_byte, vax_register_raw_size,
6216 vax_register_virtual_size, vax_register_virtual_type): Remove
6217 functions.
6218 (vax_register_type): New function.
6219 (vax_breakpoint_from_pc): Reorganize.
6220 (vax_gdbarch_init): Set register_type. Don't set
6221 deprecated_register_size, deprecated_register_bytes,
6222 deprecated_register_byte, deprecated_register_raw_size,
6223 deprecated_max_register_raw_size,
6224 deprecated_register_virtual_size,
6225 deprecated_max_register_virtual_size and
6226 deprecated_register_virtual_type. Add comment on stack direction.
6227
e9c71e9f
MK
62282004-04-11 Mark Kettenis <kettenis@gnu.org>
6229
6230 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6231 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 6232 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 6233
d46f1176 62342004-04-10 Randolph Chung <tausq@debian.org>
8718a420 6235
d46f1176
RC
6236 * MAINTAINERS (write after approval): Add myself.
6237
a2a84a72
RC
62382004-04-07 Randolph Chung <tausq@debian.org>
6239
6240 * hppa-tdep.c (hppa_inner_than): Remove.
6241 (is_pa_2): Remove unused static variable.
8718a420 6242 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 6243
e85c3284
PH
62442004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6245
6246 * language.h (language_defn): Add new la_post_parser field.
6247 * parser-defs.h (null_post_parser): New declaration (default for
6248 la_post_parser).
8718a420 6249
e85c3284
PH
6250 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6251 insert call to that function.
6252 (parse_exp_in_context): New function, including code formerly in
8718a420 6253 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
6254 prefixification.
6255 (parse_expression_in_context): New exported function.
6256 (null_post_parser): New definition.
6257 * expression.h (parse_expression_in_context): Add declaration.
8718a420 6258
e85c3284
PH
6259 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6260 * c-lang.c (c_language_defn): Ditto.
6261 (cplus_language_defn): Ditto.
6262 (asm_language_defn): Ditto.
6263 (minimal_language_defn): Ditto.
6264 * f-lang.c (f_language_defn): Ditto.
6265 * jv-lang.c (java_language_defn): Ditto.
6266 * language.c (unknown_language_defn): Ditto.
6267 (auto_language_defn): Ditto.
6268 (local_language_defn): Ditto.
6269 * m2-lang.c (m2_language_defn): Ditto.
6270 * scm-lang.c (scm_language_defn): Ditto.
6271 * obj-lang.c (objc_language_defn): Ditto.
8718a420 6272
d9f8c85b
MK
62732004-04-10 Mark Kettenis <kettenis@gnu.org>
6274
fa34704a
MK
6275 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6276 (amd64nbsd_mcontext_addr): New function.
6277 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6278 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6279 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6280
403e1656
MK
6281 * corelow.c (core_xfer_partial): Fix coding standards violation.
6282 Add support for TARGET_OBJECT_WCOOKIE.
6283
a57e5a95
MK
6284 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6285 deprecated_pc_in_sigtramp.
6286 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6287 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6288 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6289 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6290 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6291 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6292 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6293
377d9ebd
MK
6294 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6295 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6296 Fix typo.
6297
f0ef85a5
MK
6298 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6299 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6300 (amd64_collect_fxsave): Likewise.
6301
d9f8c85b
MK
6302 * i386-sol2-tdep.c: Include "gdb_string.h".
6303 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6304 name.
6305 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6306
75f501b5
MK
63072004-04-10 Mark Kettenis <kettenis@gnu.org>
6308
6309 * i386-sol2-tdep.c: Include "solib-svr4.h".
6310 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6311 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6312 * config/i386/tm-i386sol2.h: Include :solib.h".
6313 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6314 solib-svr4.o and solib-legacy.o.
6315 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6316 solib-svr4.o.
6317
b31bc724
MK
63182004-04-09 Mark Kettenis <kettenis@gnu.org>
6319
18bbbd9e
MK
6320 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6321 whether a register is supplied by PTRACE_GETFPREGS.
6322 (store_inferior_registers): Likewise.
6323 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6324 whether a register is supplied by PT_GETFPREGS.
6325 (store_inferior_registers): Likewise.
6326
3c30bf1b
MK
6327 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6328 * config/i386/linux64.mt (TDEPFILES): Likewise.
6329
a4194092
MK
6330 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6331
911bc6ee
MK
6332 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6333 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6334 the program counter is in the range specified by `struct
6335 gdbarch_tdep'.
6336 * amd64-linux-tdep.c: Include "symtab.h".
6337 (amd64_linux_pc_in_sigtramp): Remove function.
6338 (amd64_linux_sigtramp_p): New function.
6339 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6340 deprecated_pc_in_sigtramp.
6341 * amd64nbsd-tdep.c: Include "symtab.h".
6342 (amd64nbsd_sigtramp_p): New function.
6343 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6344 deprecated_pc_in_sigtramp.
6345 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6346 few comments.
6347 (amd64obsd_pc_in_sigtramp): Remove function.
6348 (amd64obsd_sigtramp_p): New function.
6349 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6350 deprecated_pc_in_sigtramp.
6351 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6352 (i386bsd_pc_ins_sigtramp): Remove prototype.
6353 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6354 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6355 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6356 the program counter is in the range specified by `struct
6357 gdbarch_tdep'.
6358 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6359 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6360 (i386_go32_pc_in_sigtramp): Remove function.
6361 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6362 Initialize TDEP->sigtramp_p.
6363 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6364 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6365 deprecated_pc_in_sigtramp.
6366 * i386-linux-tdep.c: Adjust comments.
6367 (i386_linux_pc_in_sigtramp): Remove function.
6368 (i386_linux_sigtramp_p): New function.
6369 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6370 deprecated_pc_in_sigtramp.
6371 * i386-nto-tdep.c: Update copyright year.
6372 (i386nto_pc_in_sigtramp): Remove function.
6373 (i386nto_sigtramp_p): New function.
6374 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6375 SP_REGNUM.
6376 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6377 deprecated_pc_in_sigtramp.
6378 * i386-sol2-tdep.c: Update copyright year.
6379 (i386_sol2_pc_in_sigtramp): Remove function.
6380 (i386_sol2_sigtramp_p): New function.
6381 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6382 deprecated_pc_in_sigtramp.
6383 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6384 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6385 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6386 deprecated_sigtramp_start and deprecated_sigtramp_end.
6387 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6388 (i386nbsd_pc_in_sigtramp): Remove function.
6389 (i386nbsd_sigtramp_p): New function.
6390 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6391 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6392 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6393 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6394 (i386obsd_pc_in_sigtramp): Remove function.
6395 (i386obsd_sigtramp_p): New function.
6396 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6397 functions.
6398 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6399 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6400 TDEP->sigtramp_p.
6401 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6402 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6403 dependencies.
6404
e083e6ec
MK
6405 * config/i386/i386aout.mt: Remove file.
6406
bd153b94
MK
6407 * configure.tgt: Remove i[34567]86-*-go32*,
6408 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6409 and i[34567]86-*-isc*. Set gdb_target to i386 for
6410 i[34567]86-*-netware* and i[34567]86-*-*.
6411 * config/i386/i386.mt: New file.
6412 * config/i386/embed.mt: Remove file.
6413 * config/i386/go32.mt: Remove file.
6414 * config/i386/i386nw.mt: Remove file.
6415 * config/i386/i386v.mt: Remove file.
6416 * config/i386/tm-go32.h: Remove file.
6417
4a1bcc8c
MK
6418 * tui/tui-hooks.c: Include "readline/readline.h" after
6419 "gdb_curses.h" instead of before.
6420 * tui/tui-io.c: Likewise.
6421
f9a79064
MK
6422 * tui/tui.c: Fix typo in comment.
6423
b31bc724
MK
6424 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6425
f83f82bc
AC
64262004-04-08 Andrew Cagney <cagney@redhat.com>
6427
6428 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6429 (deprecated_exception_support_initialized): Declare.
8718a420 6430 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
6431 (initialize_hp_cxx_exception_support)
6432 (child_enable_exception_callback): Update.
6433 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6434 (deprecated_exception_support_initialized): Rename
6435 deprecated_exception_catchpoints_are_fragile and
6436 deprecated_exception_support_initialized.
6437 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6438
6439 * symtab.c (deprecated_hp_som_som_object_present): Rename
6440 hp_som_som_object_present.
6441 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6442 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6443 Update. Delete extern declaration.
6444 * valops.c (hp_som_som_object_present): Ditto.
8718a420 6445 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
6446 (parse_nested_classes_for_hpacc): Ditto.
6447 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 6448 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
6449 (initialize_hp_cxx_exception_support): Ditto.
6450 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 6451 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 6452 (cp_print_class_method): Ditto.
8718a420 6453 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
6454 (c_type_print_base): Ditto.
6455 * c-exp.y (hp_som_som_object_present): Ditto.
6456
fb2be677
AC
64572004-04-08 Andrew Cagney <cagney@redhat.com>
6458
6459 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6460 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6461 (frame_unwind_find_by_frame): Re-implement the unwind code so
6462 that it can both prepend and append sniffers. Replace
6463 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6464 * tramp-frame.c (tramp_frame_append): Use
6465 frame_unwind_prepend_unwinder.
6466 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6467 frame_unwind_register_unwinder.
6468 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6469 tramp_frame_append.
6470 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 6471 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
6472 (mips_linux_init_abi): Update.
6473
67faf007
KB
64742004-04-08 Kevin Buettner <kevinb@redhat.com>
6475
6476 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6477 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6478 file support.
6479
8973ff21
KB
64802004-04-07 Kevin Buettner <kevinb@redhat.com>
6481
6482 * ia64-tdep.c (elf.h): Don't include.
6483 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6484
4a0e2f88
JM
64852004-04-07 Jason Molenda (jmolenda@apple.com)
6486
6487 * frame.h: Typeo corrections in comments.
6488
9872ad24
JB
64892004-04-07 Jim Blandy <jimb@redhat.com>
6490
6491 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6492 %esp and %ebp
6493
70b216c8
MK
64942004-04-07 Mark Kettenis <kettenis@gnu.org>
6495
11d5789c
MK
6496 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6497 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6498 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6499 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6500 and solib-legacy.o.
6501 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6502 solib-svr4.o.
6503 * config/sparc/tm-sol2.h: Update copyright year. Include
6504 "solib.h".
6505
70b216c8
MK
6506 * sparc-sol2-tdep.c: Update copyright year. Include
6507 "solib-svr4.h".
6508 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6509 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6510 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 6511 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
6512 dependencies.
6513
6339dc9e
AC
65142004-04-06 Andrew Cagney <cagney@redhat.com>
6515
6516 * infttrace.c: Include "infttrace.h".
6517 * infttrace.h: Include "target.h".
6518 * Makefile.in (infttrace_h): Update.
6519 (infttrace.o): Update.
8718a420 6520
93449403
AC
65212004-04-06 Andrew Cagney <cagney@redhat.com>
6522
6d518969
AC
6523 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6524 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6525 move extern declarations from here ...
6526 * infttrace.h: ... to here.
6527 * Makefile.in (hppah-nat.o): Update dependencies.
6528
85f4f2d8
AC
6529 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6530 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 6531 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
6532 (hppa_breakpoint_from_pc): Delete.
6533
93449403
AC
6534 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6535
71456ec6
AC
65362004-04-05 Andrew Cagney <cagney@redhat.com>
6537
6538 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6539 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6540 <sys/file.h>.
8718a420 6541
4c02c60c
AC
65422004-04-06 Randolph Chung <tausq@debian.org>
6543
6544 Committed by Andrew Cagney (mechanical change).
6545 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6546 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6547 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6548 child_enable_exception_callback, current_ex_event,
6549 null_symtab_and_line, child_get_current_exception_event,
6550 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6551 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6552 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6553 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6554 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6555 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6556 Move hpux-specific definitions ...
6557 * hppa-hpux-tdep.c: ... to here.
6558
3a515653
AC
65592004-04-05 Andrew Cagney <cagney@redhat.com>
6560
6561 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6562 skip_prologue_using_sal.
6563
c1730d02
AC
65642004-04-05 Andrew Cagney <cagney@redhat.com>
6565
6566 * config/i386/tm-i386.h: Delete file.
6567 * config/i386/tm-vxworks.h: Update copyright, do not include
6568 "tm-i386.h".
6569 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6570 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6571 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6572 * config/i386/ncr3000.mt (TM_FILE): Delete.
6573 * config/i386/interix.mt (TM_FILE): Delete.
6574 * config/i386/i386v.mt (TM_FILE): Delete.
6575 * config/i386/i386nw.mt (TM_FILE): Delete.
6576 * config/i386/i386gnu.mt (TM_FILE): Delete.
6577 * config/i386/i386aout.mt (TM_FILE): Delete.
6578 * config/i386/embed.mt (TM_FILE): Delete.
6579
8b67aa36
KB
65802004-04-05 Kevin Buettner <kevinb@redhat.com>
6581
6582 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6583 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6584 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6585 (accg7_regnum): New constants.
6586 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
6587 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6588 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
6589 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6590 for accg registers.
6591 (frv_register_sim_regno): Update spr_map[].
6592
3c7012f5
AC
65932004-04-04 Andrew Cagney <cagney@redhat.com>
6594
6595 * config/mips/xm-riscos.h: Delete.
6596 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6597 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6598 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6599 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6600 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6601 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6602 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6603 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6604 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6605 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6606 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6607 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6608 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6609 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6610 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6611 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6612 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6613 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6614 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6615 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6616 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6617 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6618 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6619 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6620 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6621 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 6622
3c7012f5
AC
6623 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6624 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6625 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6626 * configure.host: Remove m680[01]0-sun-sunos3*,
6627 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6628 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6629 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6630 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6631 mips-*-riscos*.
6632 * NEWS: Mention removed systems.
6633
99d16a21
AC
66342004-04-04 Andrew Cagney <cagney@redhat.com>
6635
6636 GDB 6.1 release created from 6.1 branch.
6637
6cdf9d98
AC
66382004-04-04 Andrew Cagney <cagney@redhat.com>
6639
98d346c3
AC
6640 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6641 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6642 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6643
6cdf9d98
AC
6644 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6645 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6646 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6647
859a326d
JB
66482004-04-03 Jim Blandy <jimb@redhat.com>
6649
6650 * MAINTAINERS: Chris Faylor has changed employers; add him to
6651 "paper trail" section, and update his E-mail address.
6652
b87178c3
AC
66532004-04-03 Andrew Cagney <cagney@redhat.com>
6654
4ea2acf0
AC
6655 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6656 generic dummy frames.
6657 * dummy-frame.c: Update copyright.
6658 (dummy_frame_sniffer): Delete check for generic dummy frames.
6659
d0bd2d18 6660 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 6661 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
6662 (REG_PARM_STACK_SPACE): Delete.
6663 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6664 Inline reference to REG_PARM_STACK_SPACE.
6665
b87178c3
AC
6666 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6667 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6668 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6669 (FRAME_BASE_BEFORE_SIGTRAMP)
6670 (hppa32_hpux_frame_base_before_sigtramp)
6671 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6672 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6673 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6674 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6675 (FRAME_BASE_BEFORE_SIGTRAMP)
6676 (hppa64_hpux_frame_base_before_sigtramp)
6677 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6678
43e2e1a0
AC
66792004-04-03 Andrew Cagney <cagney@redhat.com>
6680
6681 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6682
ddc135a4
AC
66832004-04-02 Andrew Cagney <cagney@redhat.com>
6684
6685 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6686 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6687 * dummy-frame.h: Delete out-of-date comments.
6688 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6689 * gdbarch.h, gdbarch.c: Re-generate.
6690
d15bfd3a 66912004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 6692
d15bfd3a
AC
6693 Committed by Andrew Cagney <cagney@redhat.com>.
6694 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6695 into account an instruction saving a register if we have already
6696 seen an earlier instruction saving that same register.
6697
f04ceafa
AC
66982004-04-02 Andrew Cagney <cagney@redhat.com>
6699
08be3abd
AC
6700 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6701 * gdbarch.h, gdbarch.c: Re-generate.
6702 * frame.c (legacy_get_prev_frame): Delete references to
6703 DEPRECATED_INIT_FRAME_PC_FIRST.
6704
f04ceafa
AC
6705 * infrun.c (pc_in_sigtramp): Delete function.
6706 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6707 get_frame_type.
6708
08e69816
AC
67092004-04-02 Andrew Cagney <cagney@redhat.com>
6710
6711 * infrun.c (handle_step_into_function): Delete code conditional on
6712 legacy_frame_p.
6713 (handle_inferior_event, step_over_function): Ditto.
6714
adb54772
AC
67152004-04-02 Andrew Cagney <cagney@redhat.com>
6716
6717 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6718 "previous frame inner to this frame" test.
6719
304396fb
AC
67202004-04-02 Andrew Cagney <cagney@redhat.com>
6721
6722 * frame.c (safe_frame_unwind_memory): New function.
6723 * frame.h (safe_frame_unwind_memory): Declare. Update description
6724 of /safe_/ methods.
6725 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6726 "next_frame". Use safe_frame_unwind_memory.
6727 (tramp_frame_sniffer): Update call to tramp_frame_start.
6728
6502dd73
DJ
67292004-04-01 Daniel Jacobowitz <drow@mvista.com>
6730
6731 * dwarf2read.c (dwarf2_objfile_data_key): New.
6732 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6733 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6734 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6735 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6736 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6737 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6738 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6739 Remove variables.
6740 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6741 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6742 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6743 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6744 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6745 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6746 Remove macros.
6747 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6748 data.
6749 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6750 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6751 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6752 (read_partial_die, read_full_die, read_indirect_string)
6753 (dwarf_decode_line_header, dwarf_decode_macros)
6754 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6755 Update uses of removed variables.
6756 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6757 of removed macros.
6758 (_initialize_dwarf2_read): New function.
6759 * symfile.h (dwarf2_has_info): Update prototype.
6760 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6761 * elfread.c (elf_symfile_read): Likewise.
6762
408752b0
JB
67632004-04-01 Jim Blandy <jimb@redhat.com>
6764
9f744501
JB
6765 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6766 function for register numbers on all the rs6000-derived targets.
6767 (rs6000_gdbarch_init): Don't register a separate
6768 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6769 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6770 variants.
6771
408752b0
JB
6772 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6773 numbering.
6774
2de41bce
PH
67752004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6776
6777 * valarith.c: Update copyright notice.
6778 (value_add): Handle range types.
6779 (value_sub): Ditto.
6780 (value_equal): Ditto.
6781 (value_less): Ditto.
6782 (value_neg): Ditto.
6783 (value_complement): Ditto.
8718a420 6784 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 6785 eliminiating unnecessary COERCE_ENUMs.
8718a420 6786
5613d8d3
AC
67872004-03-31 Andrew Cagney <cagney@redhat.com>
6788
6789 * frame.h (frame_unwind_id): Declare.
6790 * frame.c (frame_unwind_id): New function.
6791 (get_prev_frame_1): New function.
6792 (frame_debug_got_null_frame): New function.
6793 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6794 code proper to prev_frame, update description.
6795 * infrun.c (step_over_function): Use frame_unwind_id.
6796
c4557624
JB
67972004-04-31 J. Brobecker <brobecker@gnat.com>
6798
6799 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6800 (hppa64_push_dummy_call): Likewise.
6801
3e6bb910
JB
68022004-03-30 Jim Blandy <jimb@redhat.com>
6803
6804 From Ulrich Weigand:
6805 * utils.c (query): Do not use a va_list variable multiple times.
6806
a2f23071
DJ
68072004-03-29 Daniel Jacobowitz <drow@mvista.com>
6808
6809 * Makefile.in (linux_nat_h): Update dependencies.
6810 * configure.in: Check for <gnu/libc-version.h>.
6811 * configure: Regenerate.
6812 * config.in: Regenerate.
6813 * linux-nat.h: Include "target.h". Add waitstatus field to
6814 struct lwp_info.
6815 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6816 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6817 to.
6818 (lin_lwp_handle_extended): New function. Handle clone events.
6819 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6820 thread exit events.
6821 (child_wait): Handle clone events.
6822 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6823 * linux-nat.c (linux_enable_event_reporting): Turn on
6824 PTRACE_O_TRACECLONE.
6825 (linux_handle_extended_wait): Handle clone events.
6826 * thread-db.c: Include <gnu/libc-version.h>.
6827 (struct private_thread_info): Add dying flag.
6828 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6829 higher.
6830 (attach_thread): Update comments. Handle dying threads.
6831 (detach_thread): Set the dying flag.
6832 (check_event): Always call attach_thread.
6833
8d5f9dcb
DJ
68342004-03-29 Daniel Jacobowitz <drow@mvista.com>
6835
6836 * mips-tdep.c (mips_pdr_data): New.
6837 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6838 (_initialize_mips_tdep): Initialize mips_pdr_data.
6839
66337bb1
CV
68402004-03-29 Corinna Vinschen <vinschen@redhat.com>
6841
6842 * minsyms.c (install_minimal_symbols): Move dropping leading
6843 char from linkage name from here...
6844 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6845 test for "__gnu_compiled*" symbols.
6846
e802b915
JB
68472004-03-28 Jim Blandy <jimb@redhat.com>
6848
6849 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6850 registers to temp register r0 and byte stores as prologue
6851 instructions.
6852
72b56458
AC
68532004-03-28 Andrew Cagney <cagney@redhat.com>
6854
6855 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6856 arm*-*-*.
6857
0bfbda3b
SC
68582004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6859
6860 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6861 and switch the layout to force a display of register window.
6862
5a7225ed
JB
68632004-02-26 J. Brobecker <brobecker@gnat.com>
6864
6865 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6866 of the INTEGER class.
6867
81a07a45
JB
68682004-03-26 Jim Blandy <jimb@redhat.com>
6869
6870 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6871 bytes long on PPC GNU/Linux.
6872
8c691c7a
DC
68732004-03-26 David Carlton <carlton@kealia.com>
6874
6875 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6876
103a0089
AC
68772004-03-25 Andrew Cagney <cagney@redhat.com>
6878
6879 * PROBLEMS: Add general section titles, remove references to
6880 specific releases.
6881
7a5ea0d4
DJ
68822004-03-25 Daniel Jacobowitz <drow@mvista.com>
6883
6884 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6885 INT_REGISTER_SIZE.
6886 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6887 FP_REGISTER_VIRTUAL_SIZE.
6888 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6889 of DEPRECATED_REGISTER_RAW_SIZE.
6890 (arm_register_type): Add gdbarch argument.
6891 (arm_register_raw_size, arm_register_virtual_size): Delete.
6892 (arm_register_byte, arm_extract_return_value)
6893 (arm_store_return_value, arm_get_longjmp_target): Update references
6894 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6895 (arm_gdbarch_init): Likewise. Don't set
6896 deprecated_register_raw_size, deprecated_register_virtual_size,
6897 deprecated_max_register_raw_size,
6898 deprecated_max_register_virtual_size, or
6899 deprecated_max_register_virtual_type. Do set register_type.
6900 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6901 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6902 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6903 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6904 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6905 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6906 INT_REGISTER_SIZE.
6907 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6908 (remote_rdp_store_register): Likewise.
6909
5792a79b
DJ
69102004-03-24 Daniel Jacobowitz <drow@mvista.com>
6911
6912 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6913 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6914 to after osabi initialization.
6915 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6916 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6917 functions.
6918 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6919 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6920 variables.
6921 (mips_linux_init_abi): Append signal trampoline unwinders.
6922
1196bfda
AC
69232004-03-24 Andrew Cagney <cagney@redhat.com>
6924
6925 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6926 * tramp-frame.c: Include "gdb_assert.h".
6927 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6928 correct sizeof.
6929 (tramp_frame_append): Validate the tramp frame's instructions.
6930 * Makefile.in (tramp-frame.o): Update dependencies.
6931
4be282b4
AC
69322004-03-23 Andrew Cagney <cagney@redhat.com>
6933
6934 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6935
69aec09b
AC
69362004-03-23 Andrew Cagney <cagney@redhat.com>
6937
6938 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6939 Nasser as past testsuite/lib/ (and other) maintainers.
6940
63ed89b4
DJ
69412004-03-23 Daniel Jacobowitz <drow@mvista.com>
6942
6943 * infcmd.c (attach_command): Reread symbols if we already have
6944 an exec file.
6945
f3b36427
AC
69462004-03-23 Andrew Cagney <cagney@redhat.com>
6947
6948 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6949
aa2a3f87
AC
69502004-03-23 Andrew Cagney <cagney@redhat.com>
6951
6952 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6953 * gdbarch.h, gdbarch.c: Re-generate.
6954 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6955 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6956 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 6957 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 6958 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 6959 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
6960 (DEPRECATED_SIGTRAMP_START): Update.
6961 * blockframe.c (find_pc_sect_partial_function): Update.
6962 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6963
00cac895
DJ
69642004-03-23 Daniel Jacobowitz <drow@mvista.com>
6965
6966 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6967 if necessary.
6968
f561f026
AC
69692004-03-23 Andrew Cagney <cagney@redhat.com>
6970
6971 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6972 predicate, deprecate.
6973 * gdbarch.h, gdbarch.c: Re-generate.
6974 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6975 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6976 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6977 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6978 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6979 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6980 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6981 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6982 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6983 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6984 * blockframe.c (find_pc_partial_function): Update.
6985 * breakpoint.c (bpstat_what): Update.
6986 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6987 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6988 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6989 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6990 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6991 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6992 * i386-nto-tdep.c (i386nto_init_abi): Update.
6993 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6994 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6995 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6996 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6997 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6998 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6999 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7000 * infrun.c (pc_in_sigtramp): Update.
7001 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7002 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7003 * mips-tdep.c (mips_gdbarch_init): Update.
7004 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7005 * ppc-linux-tdep.c: Update comment.
7006 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7007 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7008 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7009 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7010 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7011 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7012 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7013 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7014 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7015 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 7016
8050c72f
AC
70172004-03-23 Andrew Cagney <cagney@redhat.com>
7018
d2259dd3
AC
7019 * tramp-frame.h, tramp-frame.h: New files.
7020 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
7021 Update rules to include "tramp-frame.h" and "tramp-frame.c".
7022
8050c72f
AC
7023 * Makefile.in: Update all dependencies.
7024
0db9b4b7
AC
70252004-03-23 Andrew Cagney <cagney@redhat.com>
7026
7027 * Makefile.in (trad_frame_h): Add $(frame_h).
7028 * trad-frame.h: Update copyright. Include "frame.h".
7029 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7030 (trad_frame_set_id, trad_frame_get_id): Declare.
7031 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7032 * trad-frame.c: Update copyright.
7033 (struct trad_frame_cache): Define.
7034 (trad_frame_cache_zalloc): New function.
7035 (trad_frame_set_id, trad_frame_get_id): New functions.
7036 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 7037
8e645ae7
AC
70382004-03-22 Andrew Cagney <cagney@redhat.com>
7039
7040 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7041 s390_pltstub_unwind_cache.
7042 (s390_stub_frame_unwind_cache): Rename
7043 s390_pltstub_frame_unwind_cache.
7044 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7045 (s390_stub_frame_prev_register): Rename
7046 s390_pltstub_frame_prev_register.
7047 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7048 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7049
7050 From Ulrich Weigand:
7051 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7052 pointer calls like PLT calls.
7053
34fcf120
DJ
70542004-03-22 Daniel Jacobowitz <drow@mvista.com>
7055
7056 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7057 PC rather than the partial function start address. Use the start
7058 address to sanity check the found PDR.
7059
5b917078
DJ
70602004-03-22 Daniel Jacobowitz <drow@mvista.com>
7061
7062 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7063 linux_handle_extended_wait.
7064
8adf9e78
AC
70652004-03-22 Andrew Cagney <cagney@redhat.com>
7066
c3122434
AC
7067 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7068 function.
7069
8adf9e78
AC
7070 * frame.h (generic_pop_current_frame): Delete declaration.
7071 (deprecate_pop_dummy_frame): Deprecate
7072 generic_pop_dummy_frame.
7073 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7074 (generic_pop_current_frame): Delete function.
7075 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7076 generic_pop_current_frame.
7077 * v850-tdep.c (v850_pop_frame): Update.
7078 * mcore-tdep.c (mcore_pop_frame): Update.
7079 * sh64-tdep.c (sh64_pop_frame): Update.
7080 * h8300-tdep.c (h8300_pop_frame): Update.
7081
90ba813f
AC
70822004-03-22 Andrew Cagney <cagney@redhat.com>
7083
7084 * frame.h (deprecated_pc_in_call_dummy): Rename
7085 generic_pc_in_call_dummy.
7086 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7087 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7088 generic_pc_in_call_dummy.
7089 (pc_in_dummy_frame): Make static.
7090 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7091 * gdbarch.h, gdbarch.c: Re-generate.
7092 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7093 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7094 (legacy_get_prev_frame): Ditto.
7095 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7096 comment.
8718a420 7097
ca4bb888
AC
70982004-03-21 Andrew Cagney <cagney@redhat.com>
7099
244675f9
AC
7100 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7101 declaration and out-of-date comment.
7102 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7103 Delete function.
7104 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7105 deprecated_pc_in_call_dummy.
7106
ca4bb888
AC
7107 * infrun.c (handle_inferior_event): For non legacy frames, use the
7108 frame ID and frame type to identify a signal trampoline. Update
7109 comments.
7110
1777c7b4
NW
71112004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7112
7113 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7114 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7115
82417da5
AC
71162004-03-21 Andrew Cagney <cagney@redhat.com>
7117
7118 * frame-unwind.h: Update copyright.
7119 (struct frame_data): Add opaque declaration.
7120 (frame_sniffer_ftype): Declare.
7121 (struct frame_unwind): Add "unwind_data" and "sniffer".
7122 (frame_unwind_register_unwinder): Declare.
7123 (frame_unwind_find_by_frame): Add parameter "this_cache".
7124 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7125 (legacy_get_prev_frame, legacy_get_prev_frame)
7126 (get_frame_type): Pass the prologue_cache to
7127 frame_unwind_find_by_frame.
7128 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7129 "unwinder".
7130 (frame_unwind_register_unwinder): New function.
7131 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7132
b2ba182e
PH
71332004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7134
7135 * bcache.c (print_percentage): Use floating point to avoid
7136 incorrect results when portion*100 overflows.
7137
81332287
KB
71382004-03-19 Kevin Buettner <kevinb@redhat.com>
7139
7140 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7141 (ppc_linux_init_extra_frame_info)
7142 (ppc_linux_frameless_function_invocation)
7143 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7144 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7145 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7146 (rs6000_frame_chain): Delete declarations.
7147 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7148 (ppc_linux_init_extra_frame_info)
7149 (ppc_linux_frameless_function_invocation)
7150 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7151 (ppc_linux_init_abi): Remove registration of above deleted functions.
7152 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7153 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7154 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7155 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7156 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7157 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7158 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7159 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7160 frame management for all OSABIs.
7161
61a65099
KB
71622004-03-19 Andrew Cagney <cagney@redhat.com>
7163
7164 Committed by Kevin Buettner <kevinb@redhat.com>.
7165
7166 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7167 Update copyright.
7168 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7169 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7170 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7171 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7172 unwinders. #ifdef legacy frame code.
7173 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7174 "frame-base.h".
7175 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7176 (struct rs6000_frame_cache, rs6000_frame_cache)
7177 (rs6000_frame_this_id, rs6000_frame_prev_register)
7178 (rs6000_frame_sniffer, rs6000_frame_unwind)
7179 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7180 (rs6000_frame_base): Implement a traditional frame unwinder.
7181 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7182 frame unwinder.
7183
88f7da05
KB
71842004-03-19 Kevin Buettner <kevinb@redhat.com>
7185
7186 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7187 breakpoint address for watchpoints or the catch eventpoints.
7188 Add new paramter ``bptype''. Adjust all callers.
7189
f826dce1
AC
71902004-03-19 Andrew Cagney <cagney@redhat.com>
7191
33cb8b0f
AC
7192 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7193
f826dce1
AC
7194 * PROBLEMS: Delete note that ARM does not use frame code, problem
7195 fixed.
7196
43b1ab88
AC
71972004-03-18 Andrew Cagney <cagney@redhat.com>
7198
292ab034
AC
7199 * stack.c (return_command): Delete code wrapped in #ifdef
7200 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7201
43b1ab88
AC
7202 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7203
dbfe4626
AC
72042004-03-18 Andrew Cagney <cagney@redhat.com>
7205
7206 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7207 DEPRECATED_IN_SIGTRAMP.
7208 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7209 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7210 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7211 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7212 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7213 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7214 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7215 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7216 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7217 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7218
0cad6aec
AC
72192004-03-18 Andrew Cagney <cagney@redhat.com>
7220
7221 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7222 (struct frame_base_table_entry): Define.
7223 (struct frame_base_table): Re-implement as a linked list.
7224 (frame_base_init): Re-implement.
7225 (frame_base_table): Delete function.
7226 (append_predicate): Delete function.
7227 (frame_base_append_sniffer): Update.
7228 (frame_base_set_default): Update.
7229 (frame_base_find_by_frame): Update.
7230 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7231 * Makefile.in (frame-base.o): Update dependencies.
7232
9982c2e7
AC
72332004-03-17 Andrew Cagney <cagney@redhat.com>
7234
7235 * frame.c (legacy_get_prev_frame): Pass correct frame to
7236 frame_unwind_find_by_frame.
7237
8dfe8985
DC
72382004-03-17 David Carlton <carlton@kealia.com>
7239
7240 * NEWS: Mention C++ nested types and namespaces
7241
ed47347a
MC
72422004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7243
7244 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7245 and "Regressions since gdb 5.3.". Add known regressions since
7246 gdb 6.0.
7247
90aeadfc
DC
72482004-03-16 David Carlton <carlton@kealia.com>
7249
7250 * dwarf2read.c (process_structure_scope): Process children even
7251 when we're a declaration.
7252
73912b9b
AC
72532004-03-16 Andrew Cagney <cagney@redhat.com>
7254
7255 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7256 * blockframe.c (find_pc_partial_function)
7257 (find_pc_sect_partial_function): Merge into a single
7258 find_pc_partial_function.
7259
283accbc
MK
72602004-03-16 Mark Kettenis <kettenis@gnu.org>
7261
7262 * i386bsd-nat.c: s/regno/regnum/g.
7263 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7264 FP0_REGNUM.
7265 (store_inferior_registers): Likewise.
7266
f5b1afdf
MK
72672004-03-16 Mark Kettenis <kettenis@gnu.org>
7268
7269 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7270 of i387_fill_fsave.
7271 (store_inferior_registers): Call i387_collect_fsave and
7272 i387_collect_fxsave instead of i387_fill_fsave and
7273 i387_fill_fxsave.
7274
41fe5eb3
AC
72752004-03-15 Andrew Cagney <cagney@redhat.com>
7276
7277 * Makefile.in (frame-unwind.o): Update dependencies.
7278 * frame-unwind.c: Include "gdb_obstack.h".
7279 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7280 parameter.
7281 (append_predicate): Delete function.
7282 (struct frame_unwind_table_entry): New structure.
7283 (struct frame_unwind_table): Replace "sniffer" with "head" and
7284 "tail".
7285 (frame_unwind_append_sniffer): Update.
7286 (frame_unwind_find_by_frame): Update.
7287 (_initialize_frame_unwind): Registe frame_unwind_init using
7288 gdbarch_data_register_pre_init.
7289
3f63813d
MK
72902004-03-15 Mark Kettenis <kettenis@gnu.org>
7291
7292 * i386bsd-nat.c: Update copyright year.
7293 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7294 define unconditionally.
7295
3248c325 72962004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
7297
7298 * i387-tdep.h (i387_collect_fsave): New prototype.
7299 * i387-tdep.c (i387_collect_fsave): New function containing most
7300 of the code from i387_fill_fsave.
3248c325 7301 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 7302
871fbe6a
MK
73032004-03-15 Mark Kettenis <kettenis@gnu.org>
7304
7305 * i386-linux-tdep.c: Update copyright year.
7306 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7307 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7308 svr4_ilp32_link_map_offsets instead of
7309 i386_linux_svr4_fetch_link_map_offsets.
7310
8176b9b8
DC
73112004-03-15 David Carlton <carlton@kealia.com>
7312
7313 Fix for PR c++/1553:
7314 * dwarf2read.c (read_structure_type): Determine type name by
7315 calling determine_class_name.
7316 (determine_class_name): New.
7317 (determine_prefix): Look at TYPE_TAG_NAME and call
7318 determine_class_name when appropriate.
7319 (determine_prefix_aux, class_name): Delete.
9d58e29d 7320 (read_namespace): Set die->type.
8176b9b8 7321
fe8bf7d7
KB
73222004-03-15 Kevin Buettner <kevinb@redhat.com>
7323
7324 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7325 unused macro definition. The definition in target.h (or perhaps
7326 elsewhere) takes precedence.
7327
ed6edd9b
AC
73282004-03-15 Andrew Cagney <cagney@redhat.com>
7329
f9be684a
AC
7330 * ppc-tdep.h: Update copyright.
7331 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7332 function signatures to match "regsets.h".
7333 * ppc-linux-tdep.c: Include "regset.h".
7334 (ELF_GREGSET_SIZE): Delete.
7335 (right_supply_register): New function.
7336 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7337 using right_supply_register.
7338 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7339 functions.
7340 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7341 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7342 (_initialize_ppc_linux_tdep): Do not register
7343 ppc_linux_regset_core_fns.
7344 (ppc_linux_regset_from_core_section): Replace
7345 fetch_core_registers.
7346 (ppc_linux_regset_core_fns): Delete.
7347 * ppc-linux-nat.c: (right_fill_reg): New function.
7348 (supply_gregset): Update call to ppc_linux_supply_gregset.
7349 (fill_gregset): Clear the register set, use right_fill_reg.
7350 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7351 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7352
ed6edd9b
AC
7353 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7354 unsigned.
7355
030f20e1
AC
73562004-03-15 Andrew Cagney <cagney@redhat.com>
7357
7358 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7359 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7360 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7361 and register_gdbarch_data.
7362 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7363 (struct gdbarch_data): Replace "init" by "pre_init" and
7364 "post_init".
7365 * gdbarch.h, gdbarch.c: Re-generate.
7366 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7367 with"obstack", use OBSTACK_ZALLOC.
7368 (dwarf2_frame_ops): Delete.
7369 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7370 (dwarf2_frame_init_reg): Use gdbarch_data.
7371 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 7372 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
7373 (_initialize_svr4_solib): Update.
7374 * user-regs.c (_initialize_user_regs): Update.
7375 * reggroups.c (_initialize_reggroup): Update.
7376 * regcache.c (_initialize_regcache): Update.
7377 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7378 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7379 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7380 * frame-unwind.c (_initialize_frame_unwind): Update.
7381 * frame-base.c (_initialize_frame_base): Update.
7382 * user-regs.c (user_reg_add): Update.
7383 * reggroups.c (reggroup_add): Update.
7384 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7385 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7386 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7387 * frame-base.c (frame_base_table): Update.
7388 * remote.c (_initialize_remote): Update.
7389 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 7390
3111a3fc
AC
73912004-03-15 Andrew Cagney <cagney@redhat.com>
7392
7393 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7394
5ecb7103
KB
73952004-03-15 Kevin Buettner <kevinb@redhat.com>
7396
7397 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7398 * frv-linux-tdep.c: New file.
7399 * frv-tdep.c (struct gdbarch_tdep): Add new field
7400 ``sigcontext_reg_addr''.
7401 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7402 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7403 (frv_sigramp_frame_sniffer): New functions.
7404 (frv_sigtramp_frame_unwind): New static global.
7405 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7406 sniffers.
7407 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7408 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7409
1ccda5e9
KB
74102004-03-15 Kevin Buettner <kevinb@redhat.com>
7411
7412 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7413 but not via a call to error(), when unable to read memory.
7414
b375a0a5
KB
74152004-03-15 Kevin Buettner <kevinb@redhat.com>
7416
7417 * frv-tdep.c (frv_call_dummy_words): Delete.
7418 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7419
4fdf6121
AC
74202004-03-15 Andrew Cagney <cagney@redhat.com>
7421
7422 * infrun.c (handle_step_into_function, step_over_function): Only
7423 update and use STEP_FRAME_ID when the system is using legacy
7424 frames. Update comments.
7425
34021503
MK
74262004-03-14 Mark Kettenis <kettenis@gnu.org>
7427
187e21d1
MK
7428 * amd64-linux-tdep.h: Remove file.
7429 * amd64-linux-tdep.c: Don't include "inferior.h" and
7430 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7431 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7432 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7433 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7434 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7435 macros.
7436 (user_to_gdb_regmap): Remove variable.
7437 (amd64_linux_gregset_reg_offset): New variable.
7438 (amd64_core_fns): Remove variable.
7439 (fetch_core_registers): Remove function.
7440 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7441 functions.
7442 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7443 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7444 * Makefile.in (amd64_linux_tdep_h): Remove.
7445 (amd64-linux-nat.o): Update dependencies.
7446 (amd64-linux-tdep.o): Update dependencies.
7447
99679982
MK
7448 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7449 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7450 functions.
7451 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7452
34021503
MK
7453 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7454 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7455
134d01f1
DJ
74562004-03-14 Daniel Jacobowitz <drow@mvista.com>
7457
7458 * dwarf2read.c (read_structure_type): Rename from
8718a420 7459 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
7460 Return immediately if die->type is set. Call read_type_die before
7461 dwarf2_add_member_fn.
7462 (process_structure_scope): New function.
7463 (read_enumeration_type, process_enumeration_scope): New functions,
7464 broken out from read_enumeration. Don't create the enumeration
7465 type if it has already been created.
7466 (read_enumeration): Removed.
7467 (process_die): Call read_structure_type, process_structure_scope,
7468 read_enumeration_type, and process_enumeration_scope. Just call
7469 new_symbol for base and subrange types. Add a comment about other
7470 type dies.
7471 (read_type_die): Call read_enumeration_type.
7472 (add_partial_structure, new_symbol): Update comments.
7473
65760afb
SC
74742004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7475
7476 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7477
10f59415
SC
74782004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7479
7480 * tui/tui-win.h (tui_get_cmd_list): Declare.
7481 * tui/tui-win.c (tui_command): New function.
7482 (tui_get_cmd_list): New function.
7483 (_initialize_tui_win): Moved initialization of tui command in
7484 tui_get_cmd_list.
7485
7486 * tui/tui-data.c (init_content_element): Setup new data members.
7487 (init_win_info): Likewise.
7488 (free_content_elements): Free it.
7489 * tui/tui-data.h (struct tui_data_element): Store the register
7490 content to print.
7491 (struct tui_data_info): Keep the current register group.
7492
7493 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7494
7495 * tui/tui-regs.h (tui_show_registers): Update prototype.
7496 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7497 (tui_resize_all): No need to calculate anything for register window.
7498 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7499 (tui_set_register_element, tui_set_general_regs_content): Remove.
7500 (tui_set_special_regs_content): Remove.
7501 (tui_set_general_and_special_regs_content): Remove.
7502 (tui_set_float_regs_content): Remove.
7503 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7504 (tui_set_regs_content): Remove.
7505 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7506 (tui_v_show_registers_command_support): Remove.
7507 (tui_show_registers): Use a reggroup to specify the registers to show.
7508 (tui_show_register_group): New function.
7509 (tui_display_registers_from): Compute the layout of register window
7510 and refresh with new API; be sure to delete old register windows.
7511 (tui_check_register_values): Update to use tui_get_register and
7512 tui_display_data.
7513 (tui_display_register): Just refresh the register window part.
7514 (tui_register_format): Format registers and save in tui_data_element.
7515 (tui_get_register): New to combine tui_reg_value_has_changed and
7516 tui_get_register_raw_value; fix to use the new gdb API.
7517 (tui_show_float_command): Renamed tui_reg_float_command.
7518 (tui_show_general_command): Renamed tui_reg_general_command.
7519 (tui_show_special_command): Renamed tui_reg_system_command.
7520 (_initialize_tui_regs): Remove unused commands.
7521
c3364ea4
MK
75222004-03-13 Mark Kettenis <kettenis@gnu.org>
7523
27d1e716
MK
7524 * NEWS (New native configurations): Mention OpenBSD/amd64.
7525
c3364ea4
MK
7526 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7527 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7528 Remove defines.
7529 * config/i386/nm-fbsd64.h: Likewise.
7530 * config/i386/nm-obsd.h: Likewise.
7531 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7532 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7533
b2d6d697
KB
75342004-03-12 Kevin Buettner <kevinb@redhat.com>
7535
7536 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
7537 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7538 New constants.
7539
76e43199
KB
7540 From Richard Sandiford <rsandifo@redhat.com>:
7541 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7542
34ce532e
KB
75432004-03-12 Kevin Buettner <kevinb@redhat.com>
7544
7545 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7546 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7547 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7548 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7549 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7550 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7551 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7552 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7553 definitions from frv-tdep.c to frv-tdep.h.
7554
c4d10515
KB
75552004-03-12 Kevin Buettner <kevinb@redhat.com>
7556
7557 Add shared library support for FR-V FDPIC ABI:
7558 * Makefile.in (solib-frv.o): Add dependencies.
7559 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7560 New functions.
7561 (frv_push_dummy_call): Add support for FDPIC ABI.
7562 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7563 for FDPIC ABI.
7564 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7565 (frv_fdpic_find_canonical_descriptor): Declare.
7566 * solib-frv.c: New file.
7567 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7568 * config/frv/tm-frv.h (solib.h): Include.
7569
ed1bd989
KB
75702004-03-12 Kevin Buettner <kevinb@redhat.com>
7571
7572 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7573 (frv-tdep.o): Update dependencies.
7574 * frv-tdep.h: New file.
7575 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7576 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7577 constants.
7578 (struct gdbarch_tdep): Add new member ``frv_abi''.
7579 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7580 functions.
7581 (new_variant): Set ``frv_abi'' field.
7582 (gdb_arch_init): Detect FDPIC executables.
7583
82b38f72
MK
75842004-03-12 Mark Kettenis <kettenis@gnu.org>
7585
7586 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7587 wrapper.
7588
db1ea9ba
AC
75892004-03-11 Andrew Cagney <cagney@redhat.com>
7590
7591 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7592
f8766ec1
KB
75932004-03-11 Kevin Buettner <kevinb@redhat.com>
7594
7595 * solist.h (master_so_list): New function.
7596 * solib.c (master_so_list): Likewise.
7597 * solib-svr4.c (enable_break): Iterate over so_list entries
7598 obtained from master list instead of entries obtained directly
7599 via svr4_current_sos().
7600
523f6a27
BE
76012004-03-10 Ben Elliston <bje@gnu.org>
7602
7603 * MAINTAINERS: Update my mail address.
7604
37814c18
KI
76052004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7606
7607 * remote-m32r-sdi.c: Support hardware watchpoint.
7608
8b9740d8
DJ
76092004-03-09 Daniel Jacobowitz <drow@mvista.com>
7610
7611 * user-regs.c: Update copyright years.
7612 (struct user_regs): Rename to gdb_user_regs.
7613 (append_user_reg, builtin_user_regs, user_regs_init)
7614 (user_reg_add, user_reg_map_name_to_regnum)
7615 (usernum_to_user_reg): Update.
7616
4bb7a0a7
DJ
76172004-03-09 Daniel Jacobowitz <drow@mvista.com>
7618
7619 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7620 (skip_children): New functions.
7621 (locate_pdi_sibling): Call skip_children.
7622
44e1a9eb
DJ
76232004-03-09 Daniel Jacobowitz <drow@mvista.com>
7624
7625 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7626 * gdbtypes.c (check_typedef): Update comments.
7627
f3dd6933
DJ
76282004-03-09 Daniel Jacobowitz <drow@mvista.com>
7629
7630 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7631 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7632 pointer. Update comment about comp_unit_head.
7633 (struct abbrev_info): Shorten two int flags.
7634 (dwarf_alloc_abbrev): Take a CU argument.
7635 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7636 each time through the loop. Update cleanup argument.
7637 (psymtab_to_symtab_1): Update cleanup call.
7638 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7639 abbrev_obstack.
7640 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7641 Just call obstack_free and clear the pointer.
7642
b40c7d58
DJ
76432004-03-09 Daniel Jacobowitz <drow@mvista.com>
7644
7645 * infrun.c (handle_inferior_event): Remove short-circuit code for
7646 events in a different thread.
7647
333dabeb
DJ
76482004-03-09 Daniel Jacobowitz <drow@mvista.com>
7649
7650 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7651 print the whole transfer.
7652 (initialize_targets): Update description of "set debug target".
7653
aa17d93e
DJ
76542004-03-09 Daniel Jacobowitz <drow@mvista.com>
7655
7656 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7657
0b71f08f
NW
76582004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7659
7660 * MAINTAINERS (write after approval): Add myself.
7661
3930f270
CV
76622004-03-08 Corinna Vinschen <vinschen@redhat.com>
7663
7664 * sh-tdep.c (sh_print_registers_info): Use for loop.
7665 Don't skip multiple registers when a float register is encountered.
7666
a2b4a96c
CV
76672004-03-08 Corinna Vinschen <vinschen@redhat.com>
7668
7669 Fix PR tdep/1291.
7670 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7671 to official SH documentation.
7672
f15a4bc0
AC
76732004-03-07 Andrew Cagney <cagney@redhat.com>
7674
7675 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7676 unused function.
7677
9498281f
DJ
76782004-03-07 Daniel Jacobowitz <drow@mvista.com>
7679
7680 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7681 (arm_get_next_pc): Handle BX and BLX.
7682
449e1137
AC
76832004-03-07 Andrew Cagney <cagney@redhat.com>
7684
eded0a31
AC
7685 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7686 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7687 HPPA_SP_REGNUM.
7688 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7689 (hppa_target_read_fp): Delete.
7690 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7691 register_virtual_size, max_register_raw_size,
7692 max_register_virtual_size, register_byte, register_size,
7693 target_read_fp, fp_regnum, and register_bytes. Set register_type
7694 instead of register_virtual_type.
7695 (hppa32_register_type, hppa64_register_type): Replace
7696 hppa32_register_virtual_type and hppa64_register_virtual_type.
7697 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7698 (HPPA_FP_REGNUM): Define.
7699
f5f907e2
AC
7700 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7701
69b4bbe4
AC
7702 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7703 (pa_do_registers_info): Delete.
7704 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 7705 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 7706 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 7707
78161e48
AC
7708 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7709 GDB_TARGET_IS_HPPA code.
7710 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 7711 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
7712 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7713 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
7714 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7715 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7716 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 7717 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
7718 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7719 (hppa_frameless_function_invocation, hppa64_store_return_value)
7720 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 7721 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 7722 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 7723 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
7724 (find_proc_framesize, deposit_21, restore_pc_queue)
7725 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 7726 (rp_saved, pc_in_linker_stub): Delete.
78161e48 7727
782eae8b
AC
7728 Unconditionally enable 64-bit frame and ABI code.
7729 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7730 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7731 push_dummy_frame, fix_call_dummy, push_arguments,
7732 call_dummy_location, extract_return_value, use_struct_convention,
7733 store_return_value, store_struct_return, saved_pc_after_call,
7734 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7735 frame_chain, frame_chain_valid, frameless_function_invocation,
7736 frame_saved_pc, and pop_frame.
78161e48 7737
449e1137
AC
7738 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7739 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7740 (hppa_gdbarch_init): Do not set PC_REGNUM.
7741
12507572
MK
77422004-03-06 Mark Kettenis <kettenis@gnu.org>
7743
7744 * config/alpha/tm-fbsd.h: Remove file.
7745 * config/alpha/fbsd.mt: Tweak comment.
7746 (TM_FILE): Set to tm-alpha.h.
7747
c107cc1b
AC
77482004-03-05 Andrew Cagney <cagney@redhat.com>
7749
7750 * infrun.c (step_over_function): When non-legacy code, and no
7751 step_frame_id, use the unwinder to get the caller's frame ID.
7752
f2e7c15d
MK
77532004-03-05 Mark Kettenis <kettenis@gnu.org>
7754
8b0c3633
MK
7755 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7756 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7757 bfd_arch_unknown. Adjust comment.
7758
f2e7c15d
MK
7759 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7760 * i386obsd-tdep.c: Correct spelling in comment.
7761 * i386nbsd-tdep.c: Correct spelling in comment.
7762 * sparc-tdep.c: Correct spelling in comments.
7763
1198ecbe
DC
77642004-03-05 David Carlton <carlton@kealia.com>
7765
7766 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7767 bug.
7768
9eb42ed1
MK
77692004-03-05 Mark Kettenis <kettenis@gnu.org>
7770
7771 * sparc-tdep.c: Fix typo in comment.
7772
52b5e991
JB
77732004-03-04 J. Brobecker <brobecker@gnat.com>
7774
7775 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7776
d8151005
DJ
77772004-03-04 Daniel Jacobowitz <drow@mvista.com>
7778
7779 * dwarf2read.c: Add comment describing memory lifetimes.
7780 (struct dwarf2_pinfo): Update comment.
7781 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7782 (read_enumeration, new_symbol): Don't use obsavestring.
7783
cbeae229
MK
77842004-03-04 Mark Kettenis <kettenis@gnu.org>
7785
722d18c2
MK
7786 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7787 instead of amd64_fill_fxsave.
7788 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7789 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7790
cbeae229
MK
7791 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7792 Reorganize code a bit.
7793
b4206d25
OF
77942004-03-04 Orjan Friberg <orjanf@axis.com>
7795
7796 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
7797 when the frame pointer is pushed. Don't set the frame pointer's
7798 address on the stack unless it's actually located there.
b4206d25
OF
7799 Set the SRP's address on the stack correctly when the PC is still in
7800 the prologue.
7801 (cris_return_value): New function.
7802 (cris_gdbarch_init): Clear deprecated store_return_value,
7803 extract_return_value.
7804
49b0b195
JB
78052004-03-02 Jim Blandy <jimb@redhat.com>
7806
7807 * stabsread.c (reg_value_complaint): The maximum register number
7808 is one less than the number of registers.
7809
e9ff708b
AC
78102004-03-02 Andrew Cagney <cagney@redhat.com>
7811
7812 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7813 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7814 trailing comma and redundant assignment of I386_ST0_REGNUM.
7815 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7816 32-bit segment registers.
7817
d4715e41
AC
78182004-03-01 Andrew Cagney <cagney@redhat.com>
7819
7820 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7821 use frame_relative_level and get_next_frame.
7822
3ce2bf18
AC
78232004-02-29 Andrew Cagney <cagney@redhat.com>
7824
7825 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7826 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7827 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7828 Delete macro.
7829
2da6aac3
DJ
78302004-02-29 Daniel Jacobowitz <drow@mvista.com>
7831
7832 * inflow.c (terminal_inferior): Don't give up the terminal if we
7833 previously couldn't get the inferior's terminal state.
7834
6ba34a8d
DJ
78352004-02-29 Daniel Jacobowitz <drow@mvista.com>
7836
7837 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7838 PC_REGNUM.
7839
faae5abe
AC
78402004-02-28 Andrew Cagney <cagney@redhat.com>
7841
7842 * NEWS: Refer to GDB 6.1.
7843 * README: Refer to GDB 6.1.
7844 * PROBLEMS: Refer to GDB 6.1.
7845
2227a3c5
DJ
78462004-02-28 Daniel Jacobowitz <drow@mvista.com>
7847
7848 * thread-db.c (disable_thread_signals): Remove unused function.
7849
80571bff
MK
78502004-02-28 Mark Kettenis <kettenis@gnu.org>
7851
041bd74b
MK
7852 * amd64-nat.c: Include "gdb_string.h".
7853 (amd64_collect_native_gregset): Zero-extend the 32-bit
7854 general-purpose registers and %eip.
7855
3c017e40
MK
7856 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7857 * amd64-tdep.c (amd64_collect_fxsave): New function.
7858 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7859
80571bff
MK
7860 * i387-tdep.h: Update copyright year.
7861 (i387_collect_fxsave): New prototype.
7862 * i387-tdep.c: Update copyright year.
7863 (i387_collect_fxsave): New function containing most of the code
7864 from i387_fill_fxsave.
7865 (i387_fill_fxsave): Call i387_collect_fxsave.
7866
50d71875
AC
78672004-02-28 Andrew Cagney <cagney@redhat.com>
7868
7869 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7870 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7871
4a28816e
MK
78722004-02-28 Mark Kettenis <kettenis@gnu.org>
7873
7874 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7875
dbda9972
AC
78762004-02-28 Andrew Cagney <cagney@redhat.com>
7877
7878 * utils.c: Use "", instead of <>, to include readline.
7879 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7880 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7881 * source.c, solib.c, exec.c, event-top.c: Ditto.
7882 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7883 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7884 * Makefile.in: Update all dependencies.
7885 (readline_tilde_h, readline_history_h): Define.
7886 (readline_headers): Delete.
7887
83277a99
MK
78882004-02-28 Mark Kettenis <kettenis@gnu.org>
7889
91ae4303
MK
7890 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7891 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7892 "config/i386/tm-lx64.h".
7893
83277a99
MK
7894 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7895 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7896 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7897
6e1d7d6c
AC
78982004-02-28 Andrew Cagney <cagney@redhat.com>
7899
ecc9ac84
AC
7900 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7901
6e1d7d6c
AC
7902 * breakpoint.c (_initialize_breakpoint): Use
7903 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7904 Add help to show command.
7905
9671aeef
MK
79062004-02-28 Mark Kettenis <kettenis@gnu.org>
7907
7fa2737c
MK
7908 * i386-nat.c: Reformat to be closer to coding standards.
7909 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7910 `retval'. Make variables `align' and `size' local to while-loop.
7911 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7912 (_initialize_i386_nat): New prototype.
7913
9671aeef
MK
7914 * tui/tui.c: Include <readline/readline.h> instead of
7915 "readline/readline.h". Include it after <term.h> and
7916 "gdb_curses.h".
7917
fca7aa43
AC
79182004-02-27 Andrew Cagney <cagney@redhat.com>
7919
412275d5
AC
7920 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7921 the new frame unwind code.
7922 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7923 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7924 PCOQ_HEAD_REGNUM.
7925
fca7aa43
AC
7926 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7927 "return_value" and "push_dummy_call".
7928 (hppa32_use_struct_convention): Delete unused function.
7929 (hppa32_store_return_value): Delete unused function.
7930 (hppa32_extract_return_value): Delete unused function.
7931 (hppa32_stack_align): Delete function.
7932
e6a8a7d2
EZ
79332004-02-27 Eli Zaretskii <eliz@elta.co.il>
7934
7935 * coffread.c (enter_linenos): Don't let rawptr reference memory
7936 outside linetab[]'s limits.
7937
1797a8f6
AC
79382004-02-27 Andrew Cagney <cagney@redhat.com>
7939
7940 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7941 inferior stack space - the stack needs to grow upwards.
7942 (hppa32_frame_align): New function.
7943 (hppa64_frame_align): Replace hppa_frame_align.
7944 (hppa_gdbarch_init): Update.
7945
2e4b5889
OF
79462004-02-26 Orjan Friberg <orjanf@axis.com>
7947
7948 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7949 (dwarf2-frame.h): Include.
7950 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7951 Remove static variables related to ABI setting.
7952 (struct gdbarch_tdep): Remove cris_abi member.
7953 (struct frame_extra_info): Remove.
7954 (cris_unwind_cache, stack_item): New structs.
7955 (cris_frame_unwind, cris_frame_base): New variables.
7956 (push_stack_item, pop_stack_item)
7957 (cris_frame_unwind_cache, cris_frame_this_id)
7958 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7959 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7960 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7961 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7962 (cris_reg_struct_has_addr): New functions.
7963 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 7964 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
7965 (cris_store_struct_return, cris_frameless_function_invocation)
7966 (cris_pop_frame, cris_skip_prologue_main)
7967 (cris_abi_original_store_return_value)
7968 (cris_abi_v2_store_return_value)
7969 (cris_abi_original_extract_return_value)
7970 (cris_abi_v2_extract_return_value)
7971 (cris_abi_original_reg_struct_has_addr)
7972 (cris_abi_v2_reg_struct_has_addr)
7973 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7974 (cris_push_return_address, cris_abi_update): Remove.
7975 (_initialize_cris_tdep): Remove ABI command.
7976 (cris_dump_tdep): Ditto.
8718a420 7977 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
7978 Set store_return_value, extract_return_value, push_dummy_code,
7979 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7980 frame_unwind_append_sniffer, frame_base_set_default.
7981 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7982 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7983 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 7984 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
7985 init_extra_frame_info, frameless_function_invocation, frame_chain,
7986 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7987 dummy_write_sp.
8718a420 7988
6b9acc27
JJ
79892004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7990
7991 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7992 * valprint.c (print_hex_chars): Change from static to external.
7993 (print_char_chars): New function.
7994 * printcmd.c (print_scalar_formatted): For integer and enum types
7995 that are longer than LONGEST, perform processing via appropriate
7996 print_*_chars routines.
7997
a431654a
AC
79982004-02-26 Andrew Cagney <cagney@redhat.com>
7999
8000 * Makefile.in: Update dependencies.
8001 Changes from Ulrich Weigand,
8002 * s390-tdep.c: Include "dwarf2-frame.h".
8003 (s390_dwarf2_frame_init_reg): New function.
8004 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8005 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8006
fa8d40ab
JJ
80072004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8008
8009 * breakpoint.c (pending_break_support): New setting variable.
8010 (break_command_1): Account for pending_break_support setting
8011 when creating pending breakpoints.
8012 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8013 (_initialize_breakpoint): Add "set breakpoint pending" and
8014 "show breakpoint pending" commands.
8015
0dcd613f
AC
80162004-02-26 Andrew Cagney <cagney@redhat.com>
8017
8018 Fix PR i18n/1570.
8019 * charset.c (backslashable, backslashed, represented): Remove 'e'
8020 from list of escaped characters, not part of ISO-C.
8021
479272a3
JB
80222004-02-25 J. Brobecker <brobecker@gnat.com>
8023
8024 From Peter Schauer <schauer@pdf.de>:
8025 * tui/tui.c: Move system header includes after local includes.
8026 Fixes a build failure on solaris systems.
8027
7613d933
JB
80282004-02-25 J. Brobecker <brobecker@gnat.com>
8029
8030 * configure.in: Refine the previous change.
8031 * configure: Regenerate.
8032
9c1488cb
MK
80332004-02-25 Mark Kettenis <kettenis@gnu.org>
8034
8035 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8036 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8037 "amd64-tdep.h" instead of "x86-64-tdep.h".
8038 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8039 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8040 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8041 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8042 and "x86-64-tdep.c".
8043 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8044 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8045 and "x86-64-tdep.c".
8046 * amd64bsd-nat.c: Update copyright year.
8047 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8048 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8049 "x86-64-tdep.h".
8050 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8051 "x86-64-tdep.h".
8052 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8053 "x86-64-tdep.h".
8054 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8055 "x86-64-tdep.h".
8056 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8057 "x86-64-tdep.h".
8058 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8059 "x86-64-tdep.h".
8718a420 8060 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
8061 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8062 * Makefile.in (amd64_linux_tdep_h): Renamed from
8063 x86_64_linux_tdep_h.
8064 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8065 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8066 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8067 (amd64obsd-tdep.o): Update dependencies.
8068 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8069 dependencies.
8070 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8071 dependencies.
8072 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8073 amd64-linux-nat.c amd64-linux-tdep.c.
8074 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8075 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8076 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8077 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8078 amd64-tdep.o and amd64-linux-tdep.o.
8079 (TM_FILE): Set to tm-linux64.h.
8080 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8081 (NAT_FILE): Set to nm-linux64.h.
8082 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8083 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8084 amd64-tdep.o.
8085 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8086 amd64-tdep.o.
8087 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8088 amd64-tdep.o.
8089
4b8dad4a
RM
80902004-02-25 Roland McGrath <roland@redhat.com>
8091
8092 * remote.c (remote_protocol_qPart_auxv): New variable.
8093 (init_all_packet_configs): Initialize it.
8094 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8095 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8096 (show_remote_cmd): Call it.
8097 (_initialize_remote): Initialize commands.
8098 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8099 service TARGET_OBJECT_AUXV requests.
8100
66745969
JB
81012004-02-25 J. Brobecker <brobecker@gnat.com>
8102
8103 * configure.in: Make sure that the wborder function is available.
8104 Otherwise, search for it in the cur_colr library.
8105 * configure: Regenerate.
8106
79508e1e
AC
81072004-02-25 Andrew Cagney <cagney@redhat.com>
8108
8109 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8110
571ee600
MK
81112004-02-25 Mark Kettenis <kettenis@gnu.org>
8112
8113 * config/i386/tm-x86-64linux.h: Tweak comments.
8114
2b1b322f 81152004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
8116
8117 * MAINTAINERS: Add self to write-after-approval list.
8118
4d2acc65
AC
81192004-02-25 Andrew Cagney <cagney@redhat.com>
8120
4b8dad4a 8121 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
8122 * cli/cli-script.c (execute_control_command): Unconditionally
8123 install a cleanup. Default "ret" to "invalid_control". Use
8124 "break" instead of "return" to escape from the switch.
8125
4cfcaf21
JB
81262004-02-24 J. Brobecker <brobecker@gnat.com>
8127
8128 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8129 with the lines macro defined in term.h on AiX.
8130 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8131 a collision with the label_width macro defined in term.h on AiX.
8132
54a5c8d8
KB
81332004-02-23 David Mosberger <davidm@hpl.hp.com>
8134
8135 Committed by Kevin Buettner <kevinb@redhat.com>.
8136
8137 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8138 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8139 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8140 instead of ia64_write_pc().
8141 * ia64-linux-tdep.c (regcache.h): Include.
8142 (ia64_linux_write_pc): New function.
4b8dad4a 8143
8a1dac83
RM
81442004-02-23 Roland McGrath <roland@redhat.com>
8145
8146 * auxv.c (info_auxv_command): Fix typos in error messages.
8147
90f90721
MK
81482004-02-23 Mark Kettenis <kettenis@gnu.org>
8149
8a1dac83 8150 * x86-64-tdep.h: Tweak comment.
90f90721
MK
8151 (enum amd64_regnum): New.
8152 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8153 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8154 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8155 (X86_64_XMM1_REGNUM): Removed.
8156 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8157 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8158 prototypes for renamed functions.
8159 * x86-64-tdep.c: Fix typo.
8160 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8161 register numbers.
8162 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8163 Use constants from `enum amd64_regnum' for register numbers.
8164 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8165 (amd64_analyze_prologue, amd64_frame_cache,
8166 amd64_sigtramp_frame_cache): Use constants from `enum
8167 amd64_regnum' for register numbers.
8168 (amd64_supply_fpregset): Adjust for renamed functions.
8169 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8170 `enum amd64_regnum' for register numbers.
8171 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8172 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8173 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8174 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8175 (amd64_linux_fill_gregset): Adjust for renamed macros.
8176 (fetch_core_registers): Adjust for renamed functions.
8177 (amd64_linux_init_abi): Adjust for renamed functions.
8178 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8179 renamed functions.
8180 * amd64-nat.c: Adjust for renamed macros.
8181 * amd64bsd-nat.c (fetch_inferior_registers)
8182 (store_inferior_registers): Use constants from `enum amd64_regnum'
8183 for register numbers. Adjust for renamed variables.
8184 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8185 renamed variables.
8186 (_initialize_amd64fbsd_nat): Use constants from `enum
8187 amd64_regnum' for register numbers.
8188 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8189 `enum amd64_regnum' for register numbers.
8190 (amd64fbsd_init_abi): Adjust for renamed functions.
8191 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8192 `enum amd64_regnum' for register numbers.
8193 (amd64nbsd_init_abi): Adjust for renamed functions.
8194 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8195 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8196 `enum amd64_regnum' for register numbers.
8197 (amd64obsd_init_abi): Adjust for renamed functions.
8198 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8199
d5479188
JJ
82002004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8201
8202 * breakpoint.c (print_one_breakpoint): Do not output spaces
8203 after printing <PENDING> for a pending breakpoint.
8204
81cb7cc9
JJ
82052004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8206
8207 * printcmd.c (print_scalar_formatted): Initialize val_long
8208 to remove compiler warning message.
8209
cbdeadca
JJ
82102004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8211
8212 * defs.h (nquery, yquery): New prototypes.
8213 * breakpoint.c (break_command_1): Use new nquery interface.
8214 * utils.c (defaulted_query, nquery, yquery): New functions.
8215
da6bab63
AC
82162004-02-23 Andrew Cagney <cagney@redhat.com>
8217
2f690297
AC
8218 * hppa-tdep.c (hppa_frame_align): New function.
8219 (hppa32_push_dummy_call): New function.
8220 (hppa64_push_dummy_call): New function.
8221 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8222 disabled.
8a1dac83 8223
da6bab63
AC
8224 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8225 FIX_CALL_DUMMY when push_dummy_call is available.
8226 (call_function_by_hand, push_dummy_code): Ditto.
8227
abf9b42d
AC
82282004-02-22 Andrew Cagney <cagney@redhat.com>
8229
8230 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8231 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8232 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8233 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8234 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8235 call_dummy_location to ON_STACK.
8236
10fc94a4
MK
82372004-02-22 Mark Kettenis <kettenis@gnu.org>
8238
51433e4b
MK
8239 * x86-64-linux-tdep.c: Tweak comment.
8240 (amd64_linux_supply_gregset): Renamed from
8241 x86_64_linux_supply_gresget.
8242 (amd64_linux_fill_gregset): Renamed from
8243 x86_64_linux_fill_gregset.
8244 (fetch_core_registers): Adjust for renamed functions.
8245 (amd64_core_fns): Renamed from x86_64_core_fns.
8246 (amd64_linux_sigtramp_start): Renamed from
8247 x86_64_linux_sigtramp_start.
8248 (amd64_linux_pc_in_sigtramp): Renamed from
8249 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8250 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8251 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8252 (amd64_linux_sigcontext_addr): Renamed from
8253 x86_64_linux_sigcontext_addr.
8254 (amd64_linux_sc_reg_offset): Renamed from
8255 x86_64_linux_sc_reg_offset.
8256 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8257 Adjust for renamed functions and variables.
8258 (_initialize_amd64_linux_tdep): Renamed from
8259 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8260 variables.
8261 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8262 Adjust for renamed functions.
8263
430eaf2e
MK
8264 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8265 from x86_64_linux_gregset64_reg_offset.
8266 (amd64_linux_gregset32_reg_offset): Rename from
8267 x86_64_linux_gregset64_reg_offset.
8268 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8269 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8270 (amd64_linux_dr_set_control): Renamed from
8271 x86_64_linux_dr_set_control. Adjust for renamed functions.
8272 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8273 Adjust for renamed functions.
8274 (amd64_linux_dr_reset_addr): Renamed from
8275 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8276 (amd64_linux_dr_get_status): Renamed from
8277 x86_64_linux_dr_get_status. Adjust for renamed functions.
8278 (_initialize_amd64_linux_nat): Renamed from
8279 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8280 functions.
8281 * config/i386/nm-x86-64linux.h: Update copyright year.
8282 Adjust for renamed functions.
8283
10fc94a4
MK
8284 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8285 amd64fbsd_sigtramp_start.
8286 (amd64fbsd_sigtramp_end_addr): Renamed from
8287 amd64fbsd_sigtramp_end.
8288 (amd64fbsd_init_abi): Adjust for renamed variables.
8289 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8290 variables.
8291 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8292 amd64fbsd_sigtramp_start.
8293 (amd64fbsd_sigtramp_end_addr): Renamed from
8294 amd64fbsd_sigtramp_end.
8295
343af405
AC
82962004-02-22 Andrew Cagney <cagney@redhat.com>
8297
537987fc
AC
8298 * hppa-tdep.c (hppa32_return_value): New function.
8299 (hppa64_return_value): New function.
8300 (hppa_gdbarch_init): Set return_value; keep disabled.
8301
fad850b2
AC
8302 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8303 struct-return and inferior function call methods.
8304
26d08f08
AC
8305 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8306 "frame-base.h".
8307 (struct hppa_frame_cache): Define.
8308 (hppa_frame_cache, hppa_frame_this_id): New functions.
8309 (hppa_frame_prev_register): New function.
8310 (hppa_frame_unwind, hppa_frame_base): New variables.
8311 (hppa_frame_unwind_sniffer): New function.
8312 (hppa_frame_base_address, hppa_unwind_pc): New function.
8313 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8314 sniffer, and frame base sniffer; keep disabled.
8315 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8316 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8317
e7d7bd65
AC
8318 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8319 to predicates for "seriously old code".
8320
e963316f
AC
8321 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8322 runtime if(0).
8323
56132691
AC
8324 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8325 unsigned.
8326 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 8327
343af405
AC
8328 * config/pa/tm-hppa.h: Update copyright.
8329 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8330 (deprecated_init_frame_pc_default): Delete declaration.
8331 (hppa_frame_init_saved_regs): Delete declaration.
8332 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8333 * hppa-tdep.c: Include "arch-utils.h".
8334 (hppa_gdbarch_init): Set deprecated init_frame_pc
8335 and deprecated frame_init_saved_regs.
8336 (hppa_frame_init_saved_regs): Make static.
8337
f5859b4d
MK
83382004-02-22 Mark Kettenis <kettenis@gnu.org>
8339
86f6f8e7 8340 Remove old 386BSD support.
cf7c5c23 8341 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
8342 * configure.host: Remove i[34567]86-*-bsd*.
8343 * configure.tgt: Remove i[34567]86-*-bsd*.
8344 * i386b-nat.c: Removed.
8345 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
8346 (i386b-nat.o): Remove dependencies.
8347
86f6f8e7
MK
8348 * config/i386/i386bsd.mh: Removed.
8349 * config/i386/i386bsd.mt: Removed.
8350 * config/i386/nm-i386bsd.h: Removed.
8351 * config/i386/tm-i386bsd.h: Removed.
8352 * config/i386/xm-i386bsd.h: Removed.
8353
971218cd
MK
8354 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8355
7e654c37
MK
8356 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8357 (amd64fbsd_init_abi): Set link map offsets.
8358 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8359 (amd64nbsd_init_abi): Set link map offsets.
8360 * amd64obsd-tdep.c: Include "solib-svr4.h".
8361 (amd64obsd_init_abi): Set link map offsets.
8362 * i386fbsd-tdep.c: Include "solib-svr4.h".
8363 (i386fbsd_init_abi): Set link map offsets.
8364 * i386nbsd-tdep.c: Include "solib-svr4.h".
8365 (i386nbsdelf_init_abi): Set link map offsets.
8366 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8367 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8368 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8369 solib-legacy.o and core-aout.o. Reformat.
8370 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8371 solib-svr4.o, solib-legacy.o. Reformat.
8372 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8373 * config/i386/nbsdelf.mh: Reformat.
8374 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8375 solib-svr4.o, solib-legacy.o and corelow.o.
8376 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8377 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8378 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8379 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8380 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8381 (TM_FILE): Set to tm-fbsd.h.
8382 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8383 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8384 solib-svr4.o.
8385 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8386 solib-svr4.o.
8387 (TM_FILE): Set to nm-nbsd.h.
8388 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8389 Simplify shared library support. Don't include "elf/common.h".
8390 (SVR4_SHARED_LIBS): Don't define.
8391 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8392 "solib.h".
8393 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8394 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8395 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8396 Don't include "i386/tm-i386.h". Include "solib.h".
8397 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8398 Don't include "i386/tm-i386.h".
8399 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8400 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8401 Include "i386/xm-i386.h".
8402 (HOST_LONG_DOUBLE_FORMAT): Remove.
8403
5d93ae8c
MK
8404 Fix OpenBSD/i386 sigtramp recognition.
8405 * i386-tdep.h: Update copyright year.
8406 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8407 (i386bsd_sigtramp_end): New prototypes.
8408 (i386fbsd_sigtramp_start_addr): Renamed from
8409 i386fbsd_sigtramp_start.
8410 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8411 (i386obsd_sigtramp_start_addr): Renamed from
8412 i386obsd_sigtramp_start.
8413 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8414 * i386bsd-tdep.c: Update copyright year.
8415 (i386bsd_pc_in_sigtramp): Make public.
8416 * i386fbsd-nat.c: Update copyright year.
8417 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8418 * i386fbsd-tdep.c: Update copyright year.
8419 (i386fbsd_sigtramp_start_addr): Renamed from
8420 i386fbsd_sigtramp_start.
8421 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8422 (i386fbsdaout_init_abi): Adjust for renamed variables.
8423 * i386obsd-nat.c: Update copyright year.
8424 (_initialize_i386obsd_nat): Adjust for renamed variables.
8425 * i386obsd-tdep.c: Include "target.h".
8426 (i386obsd_page_size): New variable.
8427 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8428 (i386obsd_sigtramp_end): New functions.
8429 (i386obsd_sigtramp_start_addr): Renamed from
8430 i386obsd_sigtramp_start.
8431 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8432 (i386obsd_init_abi): Adjust for renamed variables. Set
8433 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8434 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8435
84d04465
MK
8436 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8437 trampoline change in OpenBSD kernel.
8438
b053aceb
MK
8439 * amd64-nat.c: Update copyright year.
8440 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8441 architecture from REGCACHE.
8442
f5859b4d
MK
8443 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8444 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8445
e4bbbda8
MK
84462004-02-21 Mark Kettenis <kettenis@gnu.org>
8447
ba361932
MK
8448 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8449 i[34567]86-*-openbsd3.[0-3].
8450 * config/i386/obsdaout.mh: New file.
8451
d3e48264
MK
8452 * config/i386/obsd.mh (MH_FLAGS): Remove.
8453
60a6eeb6
MK
8454 Fix PR build/1549.
8455 * i386obsd-tdep.c: Update copyright years. Include
8456 "solib-svr4.h".
8457 (i386obsd_init_abi): Don't set regset_from_core_section here.
8458 (i386obsd_aout_init_abi): New function. Set
8459 regset_from_core_section here.
8460 (i386obsd_elf_init_abi): New function.
8461 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8462 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8463 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8464 (TM_FILE): Set to tm-nbsd.h.
8465
8466 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8467 solib-sunos.o.
8468
e4bbbda8
MK
8469 * solib-svr4.h: Update copyright year.
8470 (svr4_ilp32_fetch_link_map_offsets)
8471 (svr4_lp64_fetch_link_map_offsets): New prototype.
8472 * solib-svr4.c: Update copyright year.
8473 (svr4_ilp32_fetch_link_map_offsets)
8474 (svr4_lp64_fetch_link_map_offsets): New function.
8475
f6fe98ef
DJ
84762004-02-20 Daniel Jacobowitz <drow@mvista.com>
8477
8478 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8479 to the partial symbol table.
8480
589ca796
JB
84812004-02-20 J. brobecker <brobecker@gnat.com>
8482
8483 * PROBLEMS: Add description of problem documented under gdb/1560.
8484
2031c21a
MK
84852004-02-20 Mark Kettenis <kettenis@gnu.org>
8486
30b344b1
MK
8487 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8488 comments.
8489 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8490 functions.
8491 (amd64obsd_init_abi): Reorder initializations. Use
8492 amd64obsd_r_reg_offset to initialize the general-purpose register
8493 set details. Set regset_from_core_section.
8494 (_initialize_amd64obsd_tdep): Rename from
8495 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8496 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8497 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8498
2031c21a
MK
8499 * NEWS (New native configurations): Mention OpenBSD/alpha.
8500 * configure.tgt: Add alpha*-*-openbsd*.
8501 * configure.host: Add alpha*-*-openbsd*.
8502 * alphanbsd-tdep.c: Update copyright year.
8503 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8504
42471775
AC
85052004-02-20 Andrew Cagney <cagney@redhat.com>
8506
8507 Fix PR tdep/1372.
8508 * configure.tgt: Delete target "none-*-*".
8509 * configure.host: Delete host "none-*-*".
8510 * config/none/none.mh: Delete file.
8511 * config/none/none.mt: Delete file.
8512 * config/none/xm-none.h: Delete file.
8513 * config/none/tm-none.h: Delete file.
8514 * config/none/nm-none.h: Delete file.
8515
960ccd7d
FF
85162004-02-19 Fred Fish <fnf@redhat.com>
8517
8518 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8519 cache->uses_fp prior to setting it.
8520
5f883edd
FF
85212004-02-19 Fred Fish <fnf@redhat.com>
8522
8523 Fix for PR breakpoint/1558.
8524 * sh-tdep.c (IS_JSR): New macro.
8525 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8526
f98c22d5
JB
85272004-02-19 Jim Blandy <jimb@redhat.com>
8528
8529 * findvar.c (value_from_register): Doc fix.
8530
95051d27
JJ
85312004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8532
8533 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8534 type being greater than sizeof of host's LONGEST. Always use
8535 unpack_long() unless format 'f' chosen.
8536
ccefbec3
EZ
85372004-02-19 Joel Brobecker <brobecker@gnat.com>
8538
8539 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 8540
ccefbec3
EZ
8541 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8542 contains a symbol wich is the best, non-exact match for the given
8543 pc. Update comments.
8544
85452004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8546
2ede629f
EZ
8547 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8548 macro, which was part of the now removed Mach 3 port.
8549 * utils.c (request_quit): Ditto.
8550
567ee972
MK
85512004-02-18 Mark Kettenis <kettenis@gnu.org>
8552
8553 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8554 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8555
50cca7bb
MK
85562004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8557
8558 Committed by Mark Kettenis <kettenis@gnu.org>.
8559
8560 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8561 Define.
8562
226361c4
AC
85632004-02-18 Andrew Cagney <cagney@redhat.com>
8564
8565 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8566 CONFIG_INSTALL and CONFIG_UNINSTALL.
8567 * configure: Re-generate.
8568 * interps.h (INTERP_TUI): Define.
8569 * Makefile.in: Update dependencies.
8570 (TUI): New macro.
8571 (tui-main.o): Specify dependencies.
8572 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8573 * tui/tui-main.c: New file.
8574
49cfa46f
MK
85752004-02-18 Mark Kettenis <kettenis@gnu.org>
8576
e2879ccb
MK
8577 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8578 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8579 dependencies.
8580 * configure.host: Add x86_64-*-openbsd*.
8581 * configure.tgt: Add x86_64-*-openbsd*.
8582 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8583
c43f4bec
MK
8584 * tui/tui.c: Don't include <malloc.h>.
8585
09ae75b6
MK
8586 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8587 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8588 amd64nbsd-tdep.c.
8589
49cfa46f 8590 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 8591 static. Remove extraneous whitespace.
49cfa46f
MK
8592 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8593 static.
8594
05957fdb
JB
85952004-02-17 Jim Blandy <jimb@redhat.com>
8596
8597 * findvar.c (value_from_register): Doc fix.
8598
d0f54f9d
JB
85992004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8600
8601 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 8602
8a1dac83 8603 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
8604 CORE_ADDR as type for selectors. Correct types for GNU run time
8605 message lookup function to use double indirection.
8606 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8607 * objc-lang.h (lookup_child_selector): Adapt prototype.
8608
9cbd5950
JB
8609 * s390-nat.c (SUBOFF): New macro.
8610 (supply_gregset, fill_gregset): Use it to handle debugging
8611 of 32-bit exectuables running under a 64-bit kernel.
8612 * s390-tdep.c: Include "solib-svr4.h".
8613 (s390_svr4_fetch_link_map_offset): New function.
8614 (s390x_svr_fetch_link_map_offset): Likewise.
8615 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8616 * Makefile.in (s390-tdep.o): Update dependencies.
8617
a8c99f38
JB
8618 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8619 "frame-unwind.h".
8620 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8621 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8622 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8623 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8624 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8625 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 8626 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
8627 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8628 (struct frame_extra_info): Remove.
8629 (s390_memset_extra_info): Remove.
f73b1eff
JB
8630 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8631 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8632 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
8633 (is_rse): Renamed to ...
8634 (is_rsy): ... this. Support long displacements.
8635 (is_rxe): Renamed to ...
8636 (is_rxy): ... this. Support long displacements.
8637 (compute_x_addr): Support long displacements.
8638 (struct s390_prologue_data): New data type.
8639 (s390_on_stack): Change API to use struct s390_prologue_data.
8640 (s390_store): Reimplement.
8641 (s390_load): New function.
8642 (s390_get_signal_frame_info): Remove.
8643 (s390_get_frame_info): Remove, replace by ...
8644 (s390_analyze_prolog): ... this new function.
8645 (s390_check_function_end): Remove.
8646 (s390_function_start): Remove.
8647 (s390_frameless_function_invokation): Remove.
8648 (s390_is_sigreturn): Remove.
8649 (s390_init_frame_pc_first): Remove.
8650 (s390_init_frame_extra_info): Remove.
8651 (s390_frame_init_saved_regs): Remove.
8652 (s390_frame_saved_pc_nofix): Remove.
8653 (s390_frame_saved_pc): Remove.
8654 (s390_frame_chain): Remove.
8655 (s390_fp_regnum, s390_read_fp): Remove.
8656 (s390_pop_frame_regular, s390_pop_frame): Remove.
8657 (s390_saved_pc_after_call): Remove.
8658 (s390_skip_prologue): Reimplement.
8659 (s390_in_function_epilogue_p): Support long displacements.
8660 (struct s390_unwind_cache): New data structure.
8661 (s390_frame_unwind_cache): New function.
8662 (s390_prologue_frame_unwind_cache): Likewise.
8663 (s390_backchain_frame_unwind_cache): Likewise.
8664 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8665 (s390_frame_unwind): Define.
8666 (s390_frame_sniffer): New function.
8667 (struct s390_pltstub_unwind_cache): New data structure.
8668 (s390_pltstub_frame_unwind_cache): New function.
8669 (s390_pltstub_frame_this_id): Likewise.
8670 (s390_pltstub_frame_prev_register): Likewise.
8671 (s390_pltstub_frame_unwind): Define.
8672 (s390_pltstub_frame_sniffer): New function.
8673 (struct s390_sigtramp_unwind_cache): New data structure.
8674 (s390_sigtramp_frame_unwind_cache): New function.
8675 (s390_sigtramp_frame_this_id): Likewise.
8676 (s390_sigtramp_frame_prev_register): Likewise.
8677 (s390_sigtramp_frame_unwind): Define.
8678 (s390_sigtramp_frame_sniffer): New function.
8679 (s390_frame_base_address, s390_local_base_address): New functions.
8680 (s390_frame_base): Define.
8681 (s390_unwind_pc, s390_unwind_sp): New function.
8682 (s390_push_dummy_call): Use new frame base location.
8683 (s390_unwind_dummy_id): Likewise.
8684 (s390_gdbarch_init): Remove calls to:
8685 set_gdbarch_frameless_function_invocation,
8686 set_gdbarch_deprecated_init_frame_pc,
8687 set_gdbarch_deprecated_frame_chain,
8688 set_gdbarch_deprecated_frame_init_saved_regs,
8689 set_gdbarch_deprecated_pop_frame,
8690 set_gdbarch_deprecated_init_extra_frame_info,
8691 set_gdbarch_deprecated_init_frame_pc_first,
8692 set_gdbarch_deprecated_target_read_fp,
8693 set_gdbarch_deprecated_frame_saved_pc,
8694 set_gdbarch_deprecated_saved_pc_after_call,
8695 set_gdbarch_deprecated_fp_regnum.
8696 Add calls to:
8697 set_gdbarch_in_solib_call_trampoline,
8698 frame_unwind_append_sniffer,
8699 frame_base_set_default,
8700 set_gdbarch_unwind_pc,
8701 set_gdbarch_unwind_sp.
8702 * Makefile.in (s390-tdep.o): Update dependencies.
8703
b0cf273e
JB
8704 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8705 (S390_STACK_FRAME_OVERHEAD): Remove.
8706 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8707 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8708 (s390_promote_integer_argument): Remove.
8709 (s390_cannot_extract_struct_value_address): Remove.
8710 (s390_use_struct_convention, s390_store_struct_return): Remove.
8711 (s390_extract_return_value, s390_store_return_value): Remove.
8712 (s390_return_value_convention, s390_return_value): New functions.
8713 (is_float_singleton): Handle typedefs.
8a1dac83 8714 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
8715 Remove, replace by ...
8716 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8717 s390_function_arg_integer): ... these new functions.
8718 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8719 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8720 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8721 Fill in tdep->abi.
8722 Remove calls to:
8723 set_gdbarch_deprecated_store_struct_return,
8724 set_gdbarch_deprecated_extract_return_value,
8725 set_gdbarch_deprecated_store_return_value,
8726 set_gdbarch_use_struct_convention,
8727 set_gdbarch_extract_struct_value_address,
8728 set_gdbarch_deprecated_pc_in_call_dummy,
8729 set_gdbarch_deprecated_push_arguments,
8730 set_gdbarch_deprecated_save_dummy_frame_tos,
8731 set_gdbarch_deprecated_push_return_address,
8732 set_gdbarch_deprecated_sizeof_call_dummy_words,
8733 set_gdbarch_deprecated_call_dummy_words,
8734 set_gdbarch_deprecated_dummy_write_sp.
8735 Add calls to:
8736 set_gdbarch_push_dummy_call,
8737 set_gdbarch_unwind_dummy_id,
8738 set_gdbarch_return_value.
8a1dac83 8739
e1457d83
JB
8740 * config/s390/nm-linux.h: Update comments.
8741 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8742 (STOPPED_BY_WATCHPOINT): Redefine.
8743 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8744 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8745 (s390_stopped_by_watchpoint): Likewise.
8746 (watch_area_cnt): Remove.
8747 * s390-nat.c: Update comments.
8748 (watch_area): Remove typedef.
8749 Global replace watch_area by struct watch_area.
8750 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 8751 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
8752 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8753 (s390_fix_watch_points): Remove pid argument,
8754 use s390_inferior_tid. Recompute area spanned by watchpoints.
8755 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8756 argument. Reimplement.
8757
d0f54f9d
JB
8758 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8759 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8760 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 8761 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
8762 core-regset.o.
8763 * config/s390/s390x.mt: Remove.
8764 * config/s390/tm-s390.h: Remove.
8765 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8766 (TARGET_ELF64): Remove.
8767 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8768 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8769 s390*-*-* case; always set gdb_target to s390.
8770 * regformats/reg-s390.dat: Remove control registers.
8771 * regformats/reg-s390x.dat: Likewise.
8772 * s390-tdep.h: New file.
8a1dac83 8773 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
8774 Include "inferior.h" and "s390-tdep.h".
8775 Remove private definition of offsetof.
8776 (s390_register_u_addr): Remove.
8777 (regmap_gregset, regmap_fpregset): Define.
8778 (supply_gregset, fill_gregset): Reimplement.
8779 (supply_fpregset, fill_fpregset): Likewise.
8780 (s390_inferior_tid): New function.
8781 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8782 (fetch_inferior_registers, store_inferior_registers): Likewise.
8783 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8784 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8785 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8786 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8787 (struct gdbarch_tdep): Define.
8788 (struct s390_register_info): Define.
8789 (s390_register_info): New variable.
8790 (s390_register_name): Reimplement.
8791 (s390_register_type): New function.
8792 (s390_register_raw_size, s390x_register_raw_size): Remove.
8793 (s390_cannot_fetch_register): Remove.
8794 (s390_register_byte): Remove.
8795 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8796 (s390_dwarf_regmap): New variable.
8797 (s390_dwarf_reg_to_regnum): New function.
8798 (s390_stab_reg_to_regnum): Remove.
8799 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8800 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8801 (s390_convert_register_p): Likewise.
8802 (s390_register_to_value, s390_value_to_register): Likewise.
8803 (s390_register_reggroup_p): Likewise.
8804 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8805 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8806 (s390_supply_regset, s390_regset_from_core_section): New functions.
8807 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8808 (S390_FPR_SIZE): Likewise.
8809 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8810 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8811 (S390_NUM_GPRS): Move here from tm-s390.h.
8812 (S390_NUM_FPRS): Likewise.
8813 (s390_in_function_epilogue_p): New function.
8814 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8815 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8816 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8817 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8818 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8819 Remove calls to:
8820 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
8821 set_gdbarch_deprecated_max_register_virtual_size,
8822 set_gdbarch_deprecated_register_byte,
d0f54f9d 8823 set_gdbarch_cannot_fetch_register,
8a1dac83 8824 set_gdbarch_cannot_store_register,
d0f54f9d
JB
8825 set_gdbarch_deprecated_register_size,
8826 set_gdbarch_deprecated_register_raw_size,
8827 set_gdbarch_deprecated_register_virtual_size,
8828 set_gdbarch_deprecated_register_virtual_type,
8829 set_gdbarch_deprecated_register_bytes.
8830 Add calls to:
8831 set_gdbarch_num_pseudo_regs,
8832 set_gdbarch_register_type,
8833 set_gdbarch_convert_register_p,
8834 set_gdbarch_register_to_value,
8835 set_gdbarch_value_to_register,
8836 set_gdbarch_register_reggroup_p,
8837 set_gdbarch_regset_from_core_section,
8838 set_gdbarch_pseudo_register_read,
8839 set_gdbarch_pseudo_register_write,
8840 set_gdbarch_in_function_epilogue_p.
8841 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8842 (s390_tdep_h): New variable.
8843
8cfe231d
JB
88442004-02-17 Jim Blandy <jimb@redhat.com>
8845
4589a601
JB
8846 * findvar.c (value_from_register): If the type has no length, just
8847 return an acceptable value --- don't report an internal error.
8848
8cfe231d
JB
8849 * stabsread.c (read_type): If we find any type numbers that are
8850 forward references, complain if the references aren't resolved by
8851 the time we're finished reading.
8852 (cleanup_undefined_types): Make error message more appropriate for
8853 a complaint.
8854
5bf0017e
EZ
88552004-02-17 Elena Zannoni <ezannoni@redhat.com>
8856
9d62932d
EZ
8857 * Makefile.in (defs_h): Remove dependency on progress_h.
8858 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8859 progress.h.
8860 * main.c (captured_main): Delete use of START_PROGRESS and
8861 END_PROGRESS.
8862
88632004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8864
5bf0017e
EZ
8865 * objfiles.c (terminate_minimal_symbol_table): Add back
8866 initialization of MSYMBOL_TYPE.
8867
9fc9f5e2
AC
88682004-02-17 David Mosberger <davidm@hpl.hp.com>
8869
8870 Committed by Andrew Cagney.
8871 * Makefile.in (ia64_tdep_h): New macro.
8872 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8873 (ia64-tdep.o): Likewise.
8874 * ia64-tdep.h: New file.
8875 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8876 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8877 (ia64_aix_sigcontext_register_address): Likewise.
8878 (ia64_linux_getunwind_table): Delete declaration.
8879 * ia64-linux-tdep.c: Likewise.
8880
76cd2bd9
CV
88812004-02-17 Corinna Vinschen <vinschen@redhat.com>
8882
8883 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8884 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8885 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8886
634aa483
AC
88872004-02-17 Andrew Cagney <cagney@redhat.com>
8888
8889 * symtab.c (skip_prologue_using_sal): New function.
8890 * symtab.h (skip_prologue_using_sal): Declare.
8891 * frv-tdep.c: Include "symtab.h".
8892 (skip_prologue_using_sal): Delete function.
8893 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8894 * rs6000-tdep.c (refine_prologue_limit): Mention
8895 skip_prologue_using_sal.
8896 * ia64-tdep.c (refine_prologue_limit): Ditto.
8897 * Makefile.in: Update dependencies.
8898
88992004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 8900
39ce7b3f
AC
8901 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8902 START_INFERIOR_TRAPS_EXPECTED.
8903 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8904 START_INFERIOR_TRAPS_EXPECTED.
8905 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8906 Delete macro.
8907 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8908 macro, moved to "nm-osf.h". Update copyright.
8909 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8910 update copyright.
8911
19772a2c
AC
8912 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8913 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8914 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8915 frameless_look_for_prologue.
8916 * frame.h (legacy_frameless_look_for_prologue): Rename
8917 frameless_look_for_prologue.
8918 * gdbarch.h, gdbarch.c: Re-generate.
8919 * sh64-tdep.c (sh64_gdbarch_init): Update.
8920 * sh-tdep.c (sh_gdbarch_init): Update.
8921 * s390-tdep.c (s390_gdbarch_init): Update.
8922 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8923 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8924 * m68k-tdep.c (m68k_gdbarch_init): Update.
8925 (delta68_frame_args_address): Update.
8926 * m32r-tdep.c (m32r_gdbarch_init): Update.
8927 * hppa-tdep.c (hppa_gdbarch_init): Update.
8928 * h8300-tdep.c (h8300_gdbarch_init): Update.
8929 * frv-tdep.c (frv_gdbarch_init): Update.
8930 (frv_frameless_function_invocation): Update.
8931 * cris-tdep.c (cris_gdbarch_init): Update.
8932 (cris_frameless_function_invocation): Update.
8933 * avr-tdep.c (avr_gdbarch_init): Update.
8934 * arm-tdep.c (arm_gdbarch_init): Update.
8935 * stack.c (frame_info): Update, call predicate.
8936 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8937 * frame.c (legacy_get_prev_frame): Update, call predicate..
8938 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8939 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8940 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8941 invocation.
8942 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8943 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8944 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
8945
8946 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8947 function.
8948
7dcaac91
DJ
89492004-02-16 Daniel Jacobowitz <drow@mvista.com>
8950
8951 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8952 initializations.
8953
88289b6e
AC
89542004-02-16 Andrew Cagney <cagney@redhat.com>
8955
8956 * tui/tui-windata.c: Include "gdb_string.h".
8957 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8958 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8959 * Makefile.in: Update dependencies.
8960
9f976b41
DJ
89612004-02-16 Daniel Jacobowitz <drow@mvista.com>
8962
8963 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8964 * infrun.c: Include "gdb_assert.h".
8965 (singlestep_ptid, saved_singlestep_ptid)
8966 (stepping_past_singlestep_breakpoint): New variables.
8967 (resume): Set singlestep_ptid. Check for singlestep thread
8968 hop.
8969 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8970 (handle_inferior_event): Handle singlestep thread hop.
8971
c324d747
AC
89722004-02-16 Andrew Cagney <cagney@redhat.com>
8973
f090b9b1
AC
8974 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8975 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8976 (dwarf2_frame_init_reg): Ditto.
8977
fd33e6cb
AC
8978 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8979 suggested by Joshua Neuheisel
8980
c324d747
AC
8981 * configure.in: Always check for curses, including pdcurses.
8982 Warn, instead of error, when no curses are found. Enable TUI when
8983 curses is available.
8984 * configure: Re-generate.
8985
b66ba949
CV
89862004-02-16 Corinna Vinschen <vinschen@redhat.com>
8987
8988 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8989 sh_sh4_register_convert_to_virtual.
8990 (sh_register_convert_to_raw): Rename from
8991 sh_sh4_register_convert_to_raw.
8992 (sh_pseudo_register_read): Accomodate above name change.
8993 (sh_pseudo_register_write): Ditto.
8994
b58cbbf2
CV
89952004-02-16 Corinna Vinschen <vinschen@redhat.com>
8996
8997 * sh-tdep.c (sh_generic_register_name): Remove.
8998 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8999
5929a910
AC
90002004-02-15 Andrew Cagney <cagney@redhat.com>
9001
4566dfcf
AC
9002 * configure.in (build_warnings): Add -Wunused-function.
9003 * configure: Re-generate.
9004
db11ed55
AC
9005 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9006 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9007
46ac7a5d
AC
9008 * procfs.c (procfs_init_inferior): Assume that
9009 START_INFERIOR_TRAPS_EXPECTED is defined.
9010 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9011 * config/ns32k/tm-nbsd.h: Delete file,
9012 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9013
ba801595
AC
9014 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9015 * config/vax/tm-vax.h: Delete file.
9016
5929a910
AC
9017 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9018 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9019 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9020 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9021 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
9022 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9023 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
9024
8f22cb90
MK
90252004-02-15 Mark Kettenis <kettenis@gnu.org>
9026
9027 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9028 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9029 (struct dwarf2_frame_ops): New.
9030 (dwarf2_frame_default_init_reg): New function, based on
9031 dwarf2_frame_init_reg.
9032 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9033 (dwarf2_frame_init_reg): Call architecture-specific function.
9034 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9035 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9036 instead of dwarf2_frame_data.
9037 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9038 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9039
8132723e
AC
90402004-02-15 Andrew Cagney <cagney@redhat.com>
9041
046a4708
AC
9042 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9043 register_gdbarch_swap.
9044 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9045 * f-lang.c (_initialize_f_language): Update, use
9046 DEPRECATED_REGISTER_GDBARCH_SWAP.
9047 * remote.c (_initialize_remote): Ditto.
9048 * regcache.c (_initialize_regcache): Ditto.
9049 * parse.c (_initialize_parse): Ditto.
9050 * infrun.c (_initialize_infrun): Ditto.
9051 * mi/mi-main.c (_initialize_mi_main): Ditto.
9052 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 9053
549c1eea
AC
9054 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9055 poking .cacheable directly.
9056 * symfile.c (symfile_bfd_open): Ditto.
9057
0c0b39de
AC
9058 * Makefile.in: Update all dependencies.
9059
8132723e
AC
9060 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9061 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9062 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9063 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9064 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 9065
b9d26eb9
AC
90662004-02-14 Andrew Cagney <cagney@redhat.com>
9067
8e1f669a
AC
9068 * arch-utils.c (legacy_convert_register_p): Check
9069 DEPRECATED_REGISTER_CONVERTIBLE_P.
9070 * findvar.c (value_of_register): Ditto.
9071
cd0bfa36
AC
9072 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9073 * gdbarch.h, gdbarch.c: Re-generate.
9074 * arch-utils.c (deprecated_register_convertible_not): Delete.
9075 * arch-utils.h (deprecated_register_convertible_not): Delete.
9076 * mi/mi-main.c (get_register): Update. Update copyright.
9077 * infcmd.c (default_print_registers_info): Update.
9078
b9d26eb9
AC
9079 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9080 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9081 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 9082 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
9083 * frame.c (deprecated_get_next_frame_hack): Delete function.
9084 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9085 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9086 Update.
9087 * infcall.c (call_function_by_hand): Update.
9088
9ab9195f
EZ
90892004-02-14 Elena Zannoni <ezannoni@redhat.com>
9090
9091 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 9092 from here...
9ab9195f
EZ
9093 * objfiles.c (init_entry_point_info, entry_point_address):..to
9094 here.
9095 * symfile.h (init_entry_point_info, entry_point_address): Remove
9096 prototypes.
9097 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 9098 prototypes.
9ab9195f
EZ
9099 * cris-tdep.c: Remove include of symfile.h. Add include of
9100 objfiles.h.
9101 * infcall.c: Ditto.
9102 * mcore-tdep.c: Ditto.
9103 * mn10300-tdep.c: Ditto.
9104 * sh64-tdep.c: Ditto.
9105 * v850-tdep.c: Ditto.
9106 * arm-tdep.c: Remove include of symfile.h.
9107 * blockframe.c: Ditto.
9108 * coffread.c: Ditto.
9109 * dbxread.c: Ditto.
9110 * dwarf2read.c: Ditto.
9111 * dwarfread.c: Ditto.
8a1dac83 9112 * frv-tdep.c: Ditto.
9ab9195f
EZ
9113 * ia64-tdep.c: Ditto.
9114 * mdebugread.c: Ditto.
9115 * mipsread.c: Ditto.
8a1dac83 9116 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
9117 * s390-tdep.c: Ditto.
9118 * sh-tdep.c: Ditto.
8a1dac83 9119 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
9120 * gdbarch.sh: Remove include of symfile.h.
9121 * gdbarch.c: Regenerate.
9122 * solib-irix.c (enable_break): Use entry_point_address().
9123 Add comment about include file.
9124 * xcoffread.c: Add comment about include file.
8a1dac83
RM
9125 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9126 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9127 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9128 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
9129 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9130
c4c5b7ba
AC
91312004-02-13 Andrew Cagney <cagney@redhat.com>
9132
9133 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9134 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9135 copyright.
9136 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9137
3e7879de
FF
91382004-02-12 Fred Fish <fnf@redhat.com>
9139
9140 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9141 set_gdbarch_store_return_value.
9142
6a7760b6
AC
91432004-02-12 Andrew Cagney <cagney@redhat.com>
9144
9145 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9146 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9147 (interrupt_query): Ditto.
9148 (ofunc): Delete unused variable.
9149 * cris-tdep.c (cris_abi): Delete unused function.
9150 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9151 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9152 (cris_get_asr_quick_shift_steps): Ditto.
9153 (cris_skip_prologue_frameless_p): Ditto.
9154 * arm-tdep.c (arm_push_return_address): Delete unused function.
9155 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9156 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9157 * s390-tdep.c (s390_function_start): Delete unused function.
9158
31687c3c
AC
91592004-02-12 Andrew Cagney <cagney@redhat.com>
9160
9161 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9162 gdbarch.h, gdbarch.c: Re-generate.
9163 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9164 to generic_prologue_frameless_p.
9165 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9166 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9167
6de918a6
DJ
91682004-02-11 Daniel Jacobowitz <drow@mvista.com>
9169
9170 * mips-linux-tdep.c: Include "frame.h".
9171 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9172 (mips_linux_skip_resolver): New functions.
9173 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9174 and set_gdbarch_in_solib_call_trampoline.
9175 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9176 to after set_gdbarch_in_solib_return_trampoline. Only set the
9177 solib hooks to mips16 functions if the OS ABI is unknown.
9178 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9179 including "config/tm-linux.h".
9180 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9181 * Makefile.in (mips-linux-tdep.o): Update.
9182
87b3ede8
DC
91832004-02-11 David Carlton <carlton@kealia.com>
9184
9185 * linespec.c (decode_compound): Only look for a class symbol when
9186 considering all but the rightmost component.
9187
5979bc46
AC
91882004-02-11 Andrew Cagney <cagney@redhat.com>
9189
9190 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9191 abi code are are separatly grouped.
9192
5867a2fb
AC
91932004-02-11 Andrew Cagney <cagney@redhat.com>
9194
9195 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9196 * gdbarch.h, gdbarch.c: Re-generate.
9197 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9198 * v850-tdep.c (v850_gdbarch_init): Update.
9199 * sh64-tdep.c (sh64_gdbarch_init): Update.
9200 * sh-tdep.c (sh_gdbarch_init): Update.
9201 * s390-tdep.c (s390_gdbarch_init): Update.
9202 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9203 * mips-tdep.c (mips_gdbarch_init): Update.
9204 * mcore-tdep.c (mcore_gdbarch_init): Update.
9205 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9206 * m32r-tdep.c (m32r_gdbarch_init): Update.
9207 * ia64-tdep.c (ia64_gdbarch_init): Update.
9208 * hppa-tdep.c (hppa_gdbarch_init): Update.
9209 * h8300-tdep.c (h8300_gdbarch_init): Update.
9210 * frv-tdep.c (frv_gdbarch_init): Update.
9211 * d10v-tdep.c (d10v_gdbarch_init): Update.
9212 * cris-tdep.c (cris_gdbarch_init): Update.
9213 * avr-tdep.c (avr_gdbarch_init): Update.
9214 * arm-tdep.c (arm_gdbarch_init): Update.
9215 * alpha-tdep.c (alpha_gdbarch_init): Update.
9216
026a72f8
CV
92172004-02-11 Corinna Vinschen <vinschen@redhat.com>
9218
9219 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9220 comma.
9221 (sh_sh4al_dsp_register_name): Ditto.
9222
3903d437
AC
92232004-02-10 Andrew Cagney <cagney@redhat.com>
9224
9225 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9226 (mips_init_frame_pc_first): Delete function.
9227 (mips_frame_saved_pc): Delete function.
9228 (mips_frame_chain): Delete function.
9229 (mips_init_extra_frame_info): Delete function.
9230 (mips_xfer_register): Delete unused variable "reg".
9231 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9232 (mips_n32n64_return_value): Delete unused variable "reg".
9233 (mips_n32n64_return_value): Delete unused variable "pos".
9234 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9235 (mips_o32_return_value): Delete unused variable "pos".
9236 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9237 (mips_print_fp_register): Delete unused variable "namelen"
9238 (mips_print_fp_register): Delete unused variable "flt2"
9239 (get_frame_pointer): Delete function.
9240 (cached_proc_desc): Delete static variable.
9241 (mips_pop_frame): Delete function.
9242 (mips_find_saved_regs): Delete function.
9243 (mips_get_saved_register): Delete function.
9244 (mips_saved_pc_after_call): Delete function.
9245 (SIGFRAME_BASE): Delete macro.
9246 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9247 (SIGFRAME_PC_OFF): Delete macro.
9248 (SIGFRAME_REGSAVE_OFF): Delete macro.
9249 (mips_dump_tdep): Do not print deleted macro definitions.
9250
b9fb98bd
AC
92512004-02-10 Andrew Cagney <cagney@redhat.com>
9252
9253 * Makefile.in (SFILES): Remove explictly listed tui files.
9254 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9255
78ced177 92562004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 9257
78ced177
JJ
9258 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9259 to use paddr functions to format ia64 addresses and long values.
9260 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9261 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9262 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9263 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9264 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9265
6a83354a
AC
92662004-02-10 Andrew Cagney <cagney@redhat.com>
9267
9268 * defs.h: Do not include "tui.h".
9269 * gdb_curses.h: New file.
9270 * tui/tui-hooks.h: New file.
9271 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9272 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9273 (tui_initialize_io): Delete declaration.
9274 (tui_initialize_readline: Delete redundant declaration.
9275 (struct tui_point): Delete definition.
9276 * tui/tui-data.h (struct tui_point): Define.
9277 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9278 * utils.c: Include "tui/tui.h".
9279 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9280 * printcmd.c [TUI]: Include "tui/tui.h".
9281 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9282 * tui/tui-command.c: Include "gdb_curses.h".
9283 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9284 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9285 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9286 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9287 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9288 * Makefile.in: Update all dependencies.
9289 (tui_hooks_h, gdb_curses_h): Define.
9290 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9291
997470ef
EZ
92922004-02-10 Elena Zannoni <ezannoni@redhat.com>
9293
9294 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9295 auxf2. Add comments about some other rarely used fields.
9296
4ff2cc4d
AC
92972004-02-10 Andrew Cagney <cagney@redhat.com>
9298
9299 * Makefile.in (init.c): Fix script removing duplicates. Problem
9300 reported by Peter Schauer.
9301
1ab21617
EZ
93022004-02-09 Elena Zannoni <ezannoni@redhat.com>
9303
9304 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9305 obstack_specify_allocation.
9306 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 9307 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
9308 (allocate_rt_common_objfile): Ditto.
9309 * symfile.c (reread_symbols): Ditto.
9310 * gdb_obstack.h: Add comment.
9311
17763fd9
EZ
93122004-02-09 Elena Zannoni <ezannoni@redhat.com>
9313
9314 * linespec.c (decode_line_1, locate_first_half)
9315 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9316 commented out code.
9317
ec5cdd75
DJ
93182004-02-09 Daniel Jacobowitz <drow@mvista.com>
9319
9320 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9321 obstack_free.
9322
43b54b88
AC
93232004-02-09 Andrew Cagney <cagney@redhat.com>
9324
9325 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9326 fails, try find_pc_section. Fix PR c++/1267.
9327 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9328 instead of find_pc_mapped_section.
9329 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9330 not default to the section containing PC. Fix PR symtab/1519.
9331
edfae063
AC
93322004-02-09 Andrew Cagney <cagney@redhat.com>
9333
9334 * Makefile.in (mips-tdep.o): Update dependencies.
9335 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9336 "trad-frame.h".
9337 (mips_unwind_pc): Return the pseudo PC register.
9338 (mips_unwind_dummy_id): New function.
9339 (mips16_fetch_instruction): New function.
9340 (mips32_fetch_instruction): New function.
9341 (struct mips_frame_cache): Define.
9342 (mips_mdebug_frame_cache): New function.
9343 (mips_mdebug_frame_this_id): New function.
9344 (mips_mdebug_frame_prev_register): New function.
9345 (mips_mdebug_frame_unwind): Define.
9346 (mips_mdebug_frame_sniffer): New function.
9347 (mips_mdebug_frame_base_address): New function.
9348 (mips_mdebug_frame_base): Define.
9349 (mips_mdebug_frame_base_sniffer): New function.
9350 (mips_gdbarch_init): Append unwind and base sniffers. Set
9351 unwind_dummy_id.
9352
defc864c
AC
93532004-02-08 Andrew Cagney <cagney@redhat.com>
9354
6764ddad
AC
9355 * frame.c: Print both the register number and name.
9356
defc864c
AC
9357 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9358 and a sed into a single sed. Make .c and .o patterns more robust.
9359 (OBS): Delete.
9360 (INIT_FILES): Replace OBS with COMMON_OBS.
9361 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9362
645d6d10
MK
93632004-02-08 Mark Kettenis <kettenis@gnu.org>
9364
9365 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9366 the PT_WCOOKIE request.
9367
23e3c3fc
AC
93682004-02-08 Andrew Cagney <cagney@redhat.com>
9369
58dfe9ff
AC
9370 * mips-tdep.c (mips_unwind_pc): New function.
9371 (mips_gdbarch_init): Set mips_unwind_pc.
9372
1152e35e
AC
9373 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9374 (get_frame_id): Allow the UNKNOWN_FRAME.
9375 (frame_register_unwind, get_frame_type): Ditto.
9376
31b75dbf
AC
9377 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9378 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9379 unwind_dummy_id indicates a legacy frame.
9380
3483b318
AC
9381 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9382 * configure: Re-generate.
9383
23e3c3fc
AC
9384 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9385 methods.
9386
33f8ca73
AC
93872004-02-08 Andrew Cagney <cagney@redhat.com>
9388
9389 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9390 makefile macro.
9391 * configure: Re-generate.
9392 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9393 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9394 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9395 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9396 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9397 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9398 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9399 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9400 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9401 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9402
6ba8e26f 94032004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 9404
20d286a5
AC
9405 * Makefile.in: Update all dependencies.
9406
d836ee13
AC
9407 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9408 * configure: Re-generate.
9409 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9410 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9411 (COMMON_OBS): Add "main.o" and "annotate.o".
9412 (ANNOTATE_OBS): Delete.
9413 (OBS): Remove ANNOTATE_OBS.
9414 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9415 CONFIG_INITS.
9416 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9417 against CONFIG_OBS and "main.o".
9418 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9419 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9420
d02c80cd
AC
9421 * tui/tui-command.c: Include "gdb_string.h", delete register
9422 attribute, use ISO-C function signatures.
9423 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9424 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9425 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9426 * tui/tui.c: Ditto.
6ba8e26f
AC
9427
9428 * tui/tui-command.c: Change variable and function names to lower
9429 case.
9430 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9431 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9432 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9433 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9434 * tui/tui-winsource.c, tui/tui.c: Ditto.
9435
4a146b47
EZ
94362004-02-07 Elena Zannoni <ezannoni@redhat.com>
9437
9438 * buildsym.c (free_pending_blocks, finish_block)
9439 (record_pending_block, make_blockvector, end_symtab): Replace
9440 symbol_obstack with objfile_obstack.
8a1dac83 9441 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 9442 (coff_read_enum_type): Ditto.
8a1dac83 9443 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 9444 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 9445 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
9446 (dwarf2_symbol_mark_computed): Ditto.
9447 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9448 * elfread.c (elf_symtab_read): Ditto.
9449 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9450 (hpread_read_enum_type, hpread_read_function_type)
9451 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9452 Ditto.
8a1dac83 9453 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 9454 (java_link_class_type): Ditto.
8a1dac83 9455 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
9456 (new_symbol): Ditto.
9457 * minsyms.c (install_minimal_symbols): Ditto.
9458 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9459 (terminate_minimal_symbol_table): Replace symbol_obstack with
9460 objfile_obstack.
9461 (free_objfile): Remove freeing of symbol_obstack.
9462 * objfiles.h: Remove symbol_obstack field.
9463 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9464 objfile_obstack.
9465 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9466 symbol_obstack.
9467 (solib_add_common_symbols): Replace symbol_obstack with
9468 objfile_obstack.
9469 * somsolib.c (som_solib_add): Ditto.
9470 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9471 (common_block_start, common_block_end): Ditto.
9472 * symfile.c (reread_symbols): Remove freeing and init of
9473 symbol_obstack.
9474 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9475 * symfile.h: Update comment.
9476 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9477 stats printing.
9478 * symtab.c (symbol_set_names): Replace symbol_obstack with
9479 objfile_obstack.
9480 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9481 Update comments.
9482 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9483 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9484 objfile_obstack.
9485
6d012f14
AC
94862004-02-07 Andrew Cagney <cagney@redhat.com>
9487
9488 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9489 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9490 fields and variables.
9491 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9492 (m_beInvisible): Delete macro.
9493 * tui/tui-data.h: Fix case case fields and variables.
9494 (m_genWinPtrIsNull): Delete macro.
9495 (tui_win_list): Rename winList.
9496 (TUI_SRC_WIN): Rename srcWin.
9497 (TUI_DISASM_WIN): Rename disassemWin.
9498 (TUI_DATA_WIN): Rename dataWin.
9499 (TUI_CMD_WIN): Rename cmdWin.
9500 (m_genWinPtrNotNull): Delete macro.
9501 (m_winPtrIsNull): Delete macro.
9502 (m_winPtrNotNull): Delete macro.
9503 (tui_win_is_source_type): Replace m_winIsSourceType
9504 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9505 (tui_win_has_locator): Replace m_hasLocator.
9506 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9507 m_setWinHighlightOff.
9508 * tui/tui-data.c: Update references.
9509 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9510 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9511 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9512 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9513 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9514 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9515 * tui/tui-winsource.c, tui/tui.c: Ditto.
9516
7d34766b
MK
95172004-02-07 Mark Kettenis <kettenis@gnu.org>
9518
1c800673
MK
9519 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9520 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9521 StackGhost.
9522
7d34766b
MK
9523 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9524 variable `i6' to `i7'.
9525 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9526
22940a24
AC
95272004-02-07 Andrew Cagney <cagney@redhat.com>
9528
9529 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9530 (TuiPoint, TuiPointPtr): Ditto.
9531 (TuiStatus, TuiStatusPtr): Ditto.
9532 (TuiWinType, TuiWinTypePtr): Ditto.
9533 (struct tui_point): Rename _TuiPoint.
9534 (tui_get_low_disassembly_address): Rename
9535 tuiGetLowDisassemblyAddress.
9536 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9537 (tuiFree): Delete declaration.
9538 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9539 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9540 * tui/tui.c (tuiFree): Delete function.
9541 * cli/cli-cmds.c (disassemble_command): Update references.
9542 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9543 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9544 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9545 * tui/tui-winsource.c: Ditto.
9546
8b92e4d5
EZ
95472004-02-07 Elena Zannoni <ezannoni@redhat.com>
9548
9549 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9550 coffstab_build_psymtabs, elfstab_build_psymtabs)
9551 (stabsect_build_psymtabs): Replace psymbol_obstack with
9552 objfile_obstack.
9553 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9554 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9555 Ditto.
9556 * dwarfread.c (scan_compilation_units): Ditto.
9557 * elfread.c (elfstab_offset_sections): Ditto.
9558 * hppa-tdep.c (read_unwind_info): Ditto.
9559 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9560 (hpread_end_psymtab): Ditto.
9561 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9562 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9563 Ditto.
9564 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 9565 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
9566 (build_objfile_section_table): Ditto.
9567 (allocate_objfile): Remove init of psymbol_obstack.
9568 (free_objfile): Remove freeing of psymbol_obstack.
9569 * objfiles.h (struct objfile): Remove field
9570 psymbol_obstack. Update comments.
9571 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9572 psymbol_obstack with objfile_obstack.
9573 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9574 psymbol_obstack.
9575 * somread.c (som_symfile_offsets, init_import_symbols)
9576 (init_export_symbols): Replace psymbol_obstack with
9577 objfile_obstack.
9578 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9579 * symfile.c (default_symfile_offsets, syms_from_objfile)
9580 (reread_symbols): Remove freeing and init of psymbol_obstack.
9581 (cashier_psymtab): Update comment.
9582 * symmisc.c (print_objfile_statistics): Don't report stats for
9583 psymbol obstack.
9584 * symtab.h (struct general_symbol_info, struct partial_symtab):
9585 Update comments.
9586 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9587 (xcoff_symfile_offsets): Replace psymbol_obstack with
9588 objfile_obstack.
9589
b99607ea
EZ
95902004-02-07 Elena Zannoni <ezannoni@redhat.com>
9591
9592 * objfiles.h (struct objfile): Add objfile_obstack field.
9593 Remove type_obstack field.
9594
9595 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9596 read_structure_scope read_enumeration, new_symbol): Replace
9597 type_obstack with objfile_obstack.
9598 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 9599 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
9600 (lookup_fundamental_type): Ditto.
9601 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
9602 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9603 (hpread_read_doc_function_type, hpread_read_struct_type)
9604 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 9605 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 9606 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
9607 (java_link_class_type): Ditto.
9608 * mdebugread.c (parse_type): Ditto.
9609 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9610 * solib-sunos.c (solib_add_common_symbols): Ditto.
9611 * stabsread.c (define_symbol, read_type, read_member_functions,
9612 read_cpp_abbrev, read_one_struct_field): Ditto.
9613 * symfile.c (reread_symbols): Ditto.
9614 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 9615
2a8854a7
AC
96162004-02-07 Andrew Cagney <cagney@redhat.com>
9617
9618 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9619 (tui_exec_info_content): Rename TuiExecInfoContent.
9620 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9621 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9622 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9623 (TuiList, TuiListPtr): Ditto.
9624 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9625 (TuiDataType, TuiDataTypePtr): Ditto.
9626 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9627 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9628 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9629 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9630 (TuiDataElement, TuiDataElementPtr): Ditto.
9631 (TuiWinElement, TuiWinElementPtr): Ditto.
9632 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9633 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9634 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9635 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9636 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9637 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9638 * tui/tui-command.c, tui/tui-data.c: Update references.
9639 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9640 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9641 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9642 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 9643
05cbe71a
MK
96442004-02-07 Mark Kettenis <kettenis@gnu.org>
9645
9646 * dwarf2-frame.h: Update copyright.
9647 (enum dwarf2_frame_reg_rule): New.
9648 (struct dwarf2_frame_state_reg): New.
9649 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9650 * dwarf2-frame.c: Update copyright.
9651 (enum dwarf2_reg_rule): Remove.
9652 (struct dwarf2_frame_state): Remove defenition of `struct
9653 dwarf2_frame_state_reg'.
9654 (read_reg): Call get_frame_arch to get the architecture instead of
9655 using CURRENT_GDBARCH.
9656 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9657 DWARF2_FRAME_.
9658 (dwarf2_frame_init_reg): New function.
9659 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9660 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9661 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9662 tags with DWARF2_FRAME_.
9663 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9664 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9665 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9666
ec7d9e56
AC
96672004-02-06 Andrew Cagney <cagney@redhat.com>
9668
dd1abb8c
AC
9669 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9670 (enum tui_data_type): Rename _TuiDataType.
9671 (struct tui_layout_def): Rename _TuiLayoutDef.
9672 (struct tui_source_element): Rename _TuiSourceElement.
9673 (struct tui_data_element): Rename _TuiDataElement.
9674 (struct tui_command_element): Rename _TuiCommandElement.
9675 (struct tui_locator_element): Rename _TuiLocatorElement.
9676 (union tui_which_element): Define.
9677 (struct tui_win_element): Rename _TuiWinElement.
9678 (struct tui_data_info): Rename _TuiDataInfo.
9679 (struct tui_source_info): Rename _TuiSourceInfo.
9680 (struct tui_command_info): Rename _TuiCommandInfo.
9681 (tui_initialize_static_data): Rename initializeStaticData.
9682 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9683 (tui_alloc_win_info): Rename allocWinInfo.
9684 (tui_init_generic_part): Rename initGenericPart.
9685 (tui_init_win_info): Rename initWinInfo.
9686 (tui_alloc_content): Rename allocContent.
9687 (tui_add_content_elements): Rename addContentElements.
9688 (tui_init_content_element): Rename initContentElement.
9689 (tui_free_window): Rename freeWindow.
9690 (tui_free_win_content): Rename freeWinContent.
9691 (tui_free_data_content): Rename freeDataContent.
9692 (tui_free_all_source_wins_content): Rename
9693 freeAllSourceWinsContent.
9694 (tui_del_window): Rename tuiDelWindow.
9695 (tui_del_data_windows): Rename tuiDelDataWindows.
9696 (tui_partial_win_by_name): Rename partialWinByName.
9697 (tui_win_name): Rename winName.
9698 (tui_current_layout): Rename currentLayout.
9699 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9700 (tui_term_height): Rename termHeight.
9701 (tui_set_term_height_to): Rename setTermHeightTo.
9702 (tui_term_width): Rename termWidth.
9703 (tui_set_term_width_to): Rename setTermWidthTo.
9704 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9705 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9706 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9707 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9708 (tui_source_windows): Rename sourceWindows.
9709 (tui_clear_source_windows): Rename clearSourceWindows.
9710 (tui_clear_source_windows_detail): Rename
9711 clearSourceWindowsDetail.
9712 (tui_clear_win_detail): Rename clearWinDetail.
9713 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9714 (tui_default_tab_len): Rename tuiDefaultTabLen.
9715 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9716 (tui_win_with_focus): Rename tuiWinWithFocus.
9717 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9718 (tui_layout_def): Rename tuiLayoutDef.
9719 (tui_win_resized): Rename tuiWinResized.
9720 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9721 (tui_next_win): Rename tuiNextWin.
9722 (tui_prev_win): Rename tuiPrevWin.
9723 (tui_add_to_source_windows): Rename addToSourceWindows.
9724 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9725 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9726 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9727 * tui/tui.c, tui/tui-data.c: Ditto.
9728 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9729 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9730
a358af15
AC
9731 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9732 (struct symtab): Declare.
9733 (tui_set_source_content): Rename tuiSetSourceContent.
9734 (tui_show_symtab_source): Rename tuiShowSource.
9735 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9736 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9737 * tui/tui-source.c: Update copyright. Update references.
9738 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9739 * tui/tui-stack.c: Update references.
9740
a21fcd8f
AC
9741 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9742 (struct tui_win_info): Declare.
9743 (tui_scroll_forward): Rename tuiScrollForward.
9744 (tui_scroll_backward): Rename tuiScrollBackward.
9745 (tui_scroll_left): Rename tuiScrollLeft.
9746 (tui_scroll_right): Rename tuiScrollRight.
9747 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9748 (tui_resize_all): Rename tuiResizeAll.
9749 (tui_refresh_all_win): Rename tuiRefreshAll.
9750 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9751 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9752 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9753 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9754
edae1ccf
AC
9755 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9756 (tui_erase_data_content): Rename tuiEraseDataContent.
9757 (tui_display_all_data): Rename tuiDisplayAllData.
9758 (tui_check_data_values): Rename tuiCheckDataValues.
9759 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9760 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9761 (tui_first_data_element_no_in_line): Rename
9762 tuiFirstDataElementNoInLine.
9763 (tui_delete_data_content_windows): Rename
9764 tuiDeleteDataContentWindows.
9765 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9766 (tui_display_data_from): Rename tuiDisplayDataFrom.
9767 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9768 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9769 * tui/tui-win.c, tui/tui-regs.c: Update references.
9770 * tui/tui-layout.c, tui/tui.c: Update references.
9771
ec7d9e56
AC
9772 * tui/tui-wingeneral.h: Update copyright.
9773 (m_allBeVisible): Delete macro.
8a1dac83 9774 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
9775 (struct tui_gen_win_info): Declare.
9776 (struct tui_win_info): Declare.
9777 (tui_unhighlight_win): Rename unhighlightWin.
9778 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9779 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9780 (tui_make_window): Rename makeWindow.
9781 (tui_copy_win): Rename copyWin.
9782 (tui_box_win): Rename boxWin.
9783 (tui_highlight_win): Rename highlightWin.
9784 (tui_check_and_display_highlight_if_needed): Rename
9785 checkAndDisplayHighlightIfNeeded.
9786 (tui_refresh_all): Rename refreshAll.
9787 (tui_delete_win): Rename tuiDelwin.
9788 (tui_refresh_win): Rename tuiRefreshWin.
9789 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9790 (tui_make_visible, tui_make_invisible): New functions.
9791 (tui_make_all_visible, tui_make_all_invisible): New functions.
9792 (make_all_visible): Rename makeAllVisible.
9793 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9794 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9795 * tui/tui-windata.c, tui/tui-win.c: Update references.
9796 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9797 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9798
1e52e2eb
MK
97992004-02-06 Mark Kettenis <kettenis@gnu.org>
9800
9801 * proc-api.c (write_with_trace): Initialize local variable to
9802 silence compiler warning.
9803
f80bda8e
AC
98042004-02-06 Andrew Cagney <cagney@redhat.com>
9805
9806 * tui/tui-source.h: Do not include "defs.h".
9807 (struct tui_win_info): Declare.
9808 (tui_set_source_content_nil): Declare.
9809 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9810 (union tui_line_or_address): Rename _TuiLineOrAddress.
9811 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9812 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9813 (tui_update_source_window_as_is): Rename
9814 tuiUpdateSourceWindowAsIs.
9815 (tui_update_source_windows_with_addr): Rename
9816 tuiUpdateSourceWindowsWithAddr.
9817 (tui_update_source_windows_with_line): Rename
9818 tuiUpdateSourceWindowsWithLine.
9819 (tui_clear_source_content): Rename tuiClearSourceContent.
9820 (tui_erase_source_content): Rename tuiEraseSourceContent.
9821 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9822 (tui_show_source_content): Rename tuiShowSourceContent.
9823 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9824 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9825 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9826 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9827 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9828 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9829 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9830 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9831 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9832 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9833 (struct tui_win_info): Declare.
9834 * tui/tui-stack.c: Update references.
9835 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9836 * tui/tui-win.c, tui/tui-source.c: Ditto.
9837 * tui/tui.c, tui/tui-disasm.c: Ditto.
9838
9fbfb822
MK
98392004-02-06 Mark Kettenis <kettenis@gnu.org>
9840
9841 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9842 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9843
03cebad2
MK
98442004-02-05 Mark Kettenis <kettenis@gnu.org>
9845
9846 * infrun.c (handle_inferior_event): Allow for breakpoint
9847 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9848 and SIGEMT. Update comments.
9849 * NEWS (Revised SPARC target): Mention support for non-executable
9850 stack.
9851
290281b1
MK
98522004-02-04 Mark Kettenis <kettenis@gnu.org>
9853
9854 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9855 * inftarg.c: Update copyright year.
9856 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9857 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9858 (sparc_xfer_wcookie): New function.
9859 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9860 * Makefile.in (sparc-nat.o): Update dependencies.
9861 * config/sparc/nm-nbsd.h: Include "target.h".
9862 (NATIVE_XFER_WCOOKIE): New define.
9863 (sparc_xfer_wcookie): New prototype.
9864
212161df
AC
98652004-02-04 Andrew Cagney <cagney@redhat.com>
9866
9867 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9868 SYSCALL_TRAP function.
9869 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9870
6e4c6c91
DJ
98712004-02-04 Andrew Cagney <cagney@redhat.com>
9872 Daniel Jacobowitz <drow@mvista.com>
9873
9874 * objfiles.h: Delete comments refering to inside_entry_func and
9875 DEPRECATED_FRAME_CHAIN_VALID.
9876 * defs.h (inside_entry_func): Update prototype..
9877 * blockframe.c (inside_entry_func): Rename to
9878 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9879 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9880
cae688ec
JJ
98812004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9882
9883 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9884 outside of #ifdef SOLIB_ADD region.
9885 (do_restore_lang_radix_cleanup): Ditto.
9886 (resolve_pending_breakpoint): Ditto.
9887
19217676
AC
98882004-02-03 Andrew Cagney <cagney@redhat.com>
9889
9890 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9891 (process_note_abi_tag_sections): Delete unused function.
9892 (ia64_read_fp): Delete unused function.
9893 (gdbarch_extract_struct_value_address): Delete declaration.
9894
876753be
AC
98952004-02-02 Andrew Cagney <cagney@redhat.com>
9896
9897 * vax-tdep.c (vax_frame_chain): Delete call to
9898 deprecated_inside_entry_file.
9899 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9900
d4f10bf2
MK
99012004-02-02 Mark Kettenis <kettenis@gnu.org>
9902
9903 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9904 column that's "empty" or "same value" when eliminating REG_RA
9905 rules.
9906
cae688ec
JJ
99072004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9908
9909 * NEWS: Add information about new pending breakpoint support.
9910
0101ce28
JJ
99112004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9912
9913 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9914 and pending fields for pending breakpoint support.
9915 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9916 (condition_command): Only parse condition if not a pending
9917 breakpoint.
9918 (print_one_breakpoint): Add support for pending breakpoints.
9919 (describe_other_breakpoints): Add checks to verify we are not
9920 dealing with pending breakpoints.
9921 (check_duplicates): Don't check pending breakpoints.
9922 (set_raw_breakpoint): Initialize pending flag.
9923 (do_restore_lang_radix_cleanup): New cleanup routine.
9924 (resolve_pending_breakpoint): New function.
9925 (re_enable_breakpoints_in_shlibs): Try and resolve any
9926 pending breakpoints via resolve_pending_breakpoint.
9927 (mention): Add pending breakpoint support.
9928 (parse_breakpoint_sals): Add new parameter to pass to
9929 decode_line_1 to indicate silent errors when files or functions
9930 are not found. Change all callers.
9931 (do_captured_parse_breakpoint): New function.
9932 (break_command_1): Change prototype to return an rc value and to
9933 take an optional pending breakpoint pointer. Support creating
9934 a pending breakpoint if a "not found" form of error occurs when
9935 parsing the breakpoint. Also support resolving an existing pending
9936 breakpoint and be silent if the resolution fails.
9937 (create_breakpoints): Change prototype to take pending breakpoint
9938 pointer. When resolving a pending breakpoint, use the new pointer
9939 to provide a conditional or commands added by the end-user.
9940 (delete_breakpoint): Add appropriate check for pending.
9941 (breakpoint_re_set_one): Ditto.
9942 (do_enable_breakpoint): Ditto.
9943
8d577d32
DC
99442004-02-02 David Carlton <carlton@kealia.com>
9945
9946 * valops.c (enum oload_classification): New.
9947 (find_overload_match): Break implementation into separate
9948 functions; delete #if 0'd code; look for symbols within
9949 namespaces.
9950 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9951 (find_oload_champ,oload_method_static,classify_oload_match): New.
9952 * cp-support.h: Add declaration for cp_func_name; update
9953 declaration for make_symbol_overload_list.
9954 * cp-support.c (cp_func_name): New.
9955 (overload_list_add_symbol): Fix comment, use
9956 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9957 (make_symbol_overload_list): Take a function name and a namespace
9958 instead of a symbol; change implementation.
9959 (make_symbol_overload_list_using): New.
9960 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9961
22e8e3c7
FF
99622004-02-02 Fred Fish <fnf@redhat.com>
9963
9964 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 9965 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
9966 * remote-sim.c (gdb_os_write_stderr): Write output to
9967 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9968 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 9969 gdb_stderr stream and update copyright years.
22e8e3c7 9970
6b753f60
DJ
99712004-02-01 Daniel Jacobowitz <drow@mvista.com>
9972
9973 * Makefile.in (mips-linux-nat.o): Update dependencies.
9974 * mips-linux-nat.c: Include mips-tdep.h.
9975
99762004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
9977
9978 * sol-thread.c (sol_thread_xfer_partial): New function.
9979 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9980 (init_sol_core_ops): Likewise.
9981
9982 * procfs.c (procfs_xfer_partial): New function.
9983 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9984 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9985
9986 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9987 procfs_xfer_auxv function.
9988
9989 * procfs.c (procfs_make_note_section): If we can read
9990 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9991 * linux-proc.c (linux_make_note_section): Likewise.
9992
9993 * auxv.h: New file.
9994 * auxv.c: New file.
9995 * Makefile.in (auxv_h): New variable.
9996 (COMMON_OBS): Add auxv.o here.
9997 (auxv.o): New target.
9998
9999 * corelow.c (core_xfer_partial): New function.
10000 (init_core_ops): Use it for core_ops.to_xfer_partial.
10001
10002 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10003 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10004 macro if that is defined.
10005
fa5281d0
DJ
100062004-02-01 Daniel Jacobowitz <drow@mvista.com>
10007
10008 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10009 and check the specified thread for each breakpoint.
10010 * breakpoint.h (bpstat_stop_status): Update prototype.
10011 * infrun.c (handle_inferior_event): Update calls to
10012 bpstat_stop_status.
10013
26ee262d
DJ
100142004-02-01 Daniel Jacobowitz <drow@mvista.com>
10015
10016 * Makefile.in (cli-cmds.o): Add $(readline_h).
10017
d9b52655
DJ
100182004-02-01 Daniel Jacobowitz <drow@mvista.com>
10019
10020 * cli/cli-cmds.c: Include readline.h.
10021 (complete_command): Pass the start of the last word to
10022 complete_line.
10023
9709f61c
DJ
100242004-01-31 Daniel Jacobowitz <drow@mvista.com>
10025
10026 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10027 argument, and change first argument to a CORE_ADDR.
10028 * breakpoint.h (bpstat_stop_status): Update prototype.
10029 * infrun.c (adjust_pc_after_break): Add a new comment.
10030 (handle_inferior_event): Update calls to bpstat_stop_status.
10031
4f1280bb
DJ
100322004-01-31 Daniel Jacobowitz <drow@mvista.com>
10033
10034 * breakpoint.h: Update copyright years.
10035
4fa8626c
DJ
100362004-01-31 Daniel Jacobowitz <drow@mvista.com>
10037
10038 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10039 (bpstat_stop_status): Don't decrement PC.
10040 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10041 prototype.
10042 * infrun.c (adjust_pc_after_break): New function.
10043 (handle_inferior_event): Call it, early. Remove later references
10044 to DECR_PC_AFTER_BREAK.
10045 (normal_stop): Add commentary.
10046
fad0733a
DJ
100472004-01-31 Daniel Jacobowitz <drow@mvista.com>
10048
10049 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10050 2004-01-27 double-free fix.
10051
42cdca6c
MK
100522004-01-31 Mark Kettenis <kettenis@gnu.org>
10053
10054 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10055 (sparc32_frame_prev_register): Handle StackGhost.
10056 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10057
932d5416
RM
100582004-01-29 Roland McGrath <roland@redhat.com>
10059
10060 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10061 * configure: Regenerated.
10062
10063 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10064 * Makefile.in (procfs.o): Add dep.
10065
47d3492a
AC
100662004-01-28 Andrew Cagney <cagney@redhat.com>
10067
10068 * tui/tui-stack.h: Update copyright.
10069 (struct frame_info): Add opaque declaration.
10070 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10071 (tui_show_locator_content): Rename tuiShowLocatorContent.
10072 (tui_show_frame_info): Rename tuiShowFrameInfo.
10073 * tui/tui-stack.c: Update copyright. Update references.
10074 * tui/tui-winsource.c: Update references.
10075 * tui/tui-win.c: Update references.
10076 * tui/tui-layout.c: Update references.
10077 * tui/tui-hooks.c: Update copyright, update references.
10078 * tui/tui.c: Update copyright, update references.
10079 * tui/tui-disasm.c: Update references.
10080
5d51ca54
DC
100812004-01-28 David Carlton <carlton@kealia.com>
10082
10083 * dwarf2read.c (add_partial_structure): Use demangled name if
10084 namespace equals "".
10085
086ed43d
JB
100862004-01-27 Jim Blandy <jimb@redhat.com>
10087
10088 Clean up misapplied patch:
10089 * dwarf2read.c (determine_prefix): Change one of the two forward
10090 declarations for 'determine_prefix_aux' to a declaration for this.
10091 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10092 argument to 'die_specification'.
10093
2a35147e
JB
10094 * dwarf2read.c (read_func_scope): Re-indent comment.
10095
a355c7de 100962004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 10097
a355c7de
AC
10098 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10099 b->exp to NULL after freeing so that error during re-parsing or
10100 evaluation of expressions associated with breakpoint don't
10101 eventually lead to re-freeing of storage.
10102 Committed by Andrew Cagney.
10103
63ff5125
AC
101042004-01-27 Andrew Cagney <cagney@redhat.com>
10105
10106 * source.c (ambiguous_line_spec): Delete undefined declaration.
10107 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10108 (m32r_set_server_address, m32r_set_download_path): Ditto.
10109 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10110
e142c38c
DJ
101112004-01-27 Daniel Jacobowitz <drow@mvista.com>
10112
10113 * dwarf2read.c: Update calls to changed and renamed functions, and
10114 references to moved variables.
10115
10116 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10117 language, language_defn, list_in_scope, and ftypes members.
10118 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10119 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10120 (baseaddr): Remove globals.
10121
10122 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10123 (set_cu_language, die_is_declaration, die_specification)
10124 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10125 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10126 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10127 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10128
10129 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10130 cu.list_in_scope. Don't initialize cu_header_offset.
10131 (add_partial_symbol): Add local baseaddr.
10132 (psymtab_to_symtab_1): Add local baseaddr. Use
10133 objfile->section_offsets for consistency. Don't initialize
10134 cu_header_offset; do initialize cu.header.offset and
10135 cu.list_in_scope.
10136 (read_file_scope, read_func_scope, read_lexical_block_scope)
10137 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10138
c6e06ede
MC
101392004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10140
fb328ecc 10141 * PROBLEMS: Add gdb/1516.
c6e06ede 10142
48184fd4
AC
101432003-12-29 Robert Millan <robertmh@gnu.org>
10144
10145 Patch committed by Andrw Cagney.
10146 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10147 * configure.tgt: Match knetbsd*-gnu.
10148
c1321b30
AC
101492004-01-26 Andrew Cagney <cagney@redhat.com>
10150
f3699be3
AC
10151 * breakpoint.c (catch_command_1): Delete #ifdef code.
10152 (catch_fork_command_1): Delete #ifdef wrapper.
10153 (catch_exec_command_1): Ditto.
10154 (catch_load_command_1): Ditto.
10155 (catch_unload_command_1): Ditto.
10156
c1321b30
AC
10157 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10158 (catch_breakpoint): Delete #if0ed function.
10159 (disable_catch_breakpoint): Ditto.
10160 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10161 (disable_catch, enable_catch, delete_catch): Ditto.
10162
b4501125
AC
101632004-01-26 Andrew Cagney <cagney@redhat.com>
10164
10165 * remote.c (echo_check, quit_flag): Delete variables.
10166 (cisco_kernel_mode): Delete variable.
10167 (minitelnet_return, tty_input, escape_count): Delete variables.
10168 (remote_cisco_mode): Delete variable.
10169 (remote_cisco_open, remote_cisco_close): Delete function.
10170 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10171 (init_remote_cisco_ops): Delete function.
10172 (_initialize_remote): Do not install "remote cisco" code.
10173 (read_frame): Delete cisco specific code.
10174 (remote_info_process): Delete function.
10175 (remote_wait): Delete cisco specific code.
10176 (remote_cisco_section_offsets): Delete function.
10177 (remote_cisco_objfile_relocate): Delete function.
10178 (remote_async_wait): Delete cisco specific code.
10179 (minitelnet, readtty, readsocket): Delete function.
10180
74055713
AC
101812004-01-26 Andrew Cagney <cagney@redhat.com>
10182
10183 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10184 comments mentioning extract_returned_value_address.
10185 * infcmd.c (print_return_value): Update. Add comments on
10186 extract_returned_value_address.
10187 * stack.c (return_command): Add comments on
10188 extract_returned_value_address.
10189 * values.c: Update comment.
10190 * m32r-tdep.c: Update comment.
10191 * sparc-tdep.c: Update comment.
10192 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10193 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10194 * sh64-tdep.c (sh64_gdbarch_init): Update.
10195 * sh-tdep.c (sh_gdbarch_init): Update.
10196 * s390-tdep.c (s390_gdbarch_init): Update.
10197 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10198 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10199 * m68k-tdep.c (m68k_gdbarch_init): Update.
10200 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10201 * m32r-tdep.c (m32r_gdbarch_init): Update.
10202 * ia64-tdep.c (ia64_gdbarch_init): Update.
10203 * h8300-tdep.c (h8300_gdbarch_init): Update.
10204 * frv-tdep.c (frv_gdbarch_init): Update.
10205 * arm-tdep.c (arm_gdbarch_init): Update.
10206 * alpha-tdep.c (alpha_gdbarch_init): Update.
10207
a67af2b9
AC
102082004-01-26 Andrew Cagney <cagney@redhat.com>
10209
10210 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10211 SYMBOL_LOCATION_FUNCS
10212 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10213 "struct symbol_ops".
10214 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10215 type to "struct symbol_ops".
10216 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10217 (struct symbol): Replace ".aux_value.loc.funcs" and
10218 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10219 (SYMBOL_OBJFILE): Delete macro.
10220 (SYMBOL_LOCATION_FUNCS): Delete macro.
10221 (SYMBOL_LOCATION_BATON): Update.
10222 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10223 intead of SYMBOL_LOCATION_FUNCS.
10224 * ax-gdb.c (gen_var_ref): Ditto.
10225 * printcmd.c (address_info): Ditto.
10226 * findvar.c (read_var_value): Ditto.
10227 (symbol_read_needs_frame): Ditto.
10228
c034e007
AC
102292004-01-26 Andrew Cagney <cagney@redhat.com>
10230
10231 * dwarf2read.c (read_func_scope): Document frame-base hack.
10232
bb472c1e
MK
102332004-01-25 Mark Kettenis <kettenis@gnu.org>
10234
10235 * infcmd.c (print_return_value): Plug memory leak; delete
10236 ui_stream object. Rename argument `structure_return' to
10237 `struct_return'.
10238
c8e737d5
MK
102392004-01-25 Mark Kettenis <kettenis@gnu.org>
10240
f941662f
MK
10241 * infcmd.c (print_return_value): Wrap long lines.
10242 (finish_command_continuation, finish_command): Remove unused
10243 variable `funcaddr'. Fix some coding-standards problems.
10244
c558d81a 10245 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 10246 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
10247 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10248 TDEP->fpregset to zero.
10249
bf1e5861 10250 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
10251 floating-point registers for traditional NetBSD core files.
10252 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10253 TDEP->sizeof_fpregset here.
10254
4c72d57a
MK
102552004-01-25 Mark Kettenis <kettenis@gnu.org>
10256
566626fa
MK
10257 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10258 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10259 function with code split out from
10260 sparc32nbsd_sigcontext_frame_cache.
10261 (sparc32nbsd_sigcontext_frame_cache): Use
10262 sparc32nbsd_sigcontext_saved_regs.
10263 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10264 OpenBSD.
10265 * sparcobsd-tdep.c: New file.
10266 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10267 (sparcobsd-tdep.o): New dependency.
10268 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10269 * config/sparc/obsd.mt: New file.
10270
4c72d57a
MK
10271 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10272 TDEP->fpregset to be initialized to enable core file register
10273 sets.
10274
7e5e9f88
MK
102752004-01-24 Mark Kettenis <kettenis@gnu.org>
10276
f0f207fd 10277 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
10278 Add opaque declarations.
10279 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10280 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10281 function with code split out from
10282 sparc64nbsd_sigcontext_frame_cache.
10283 (sparc64nbsd_sigcontext_frame_cache): Use
10284 sparc64nbsd_sigcontext_saved_regs.
10285 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10286 OpenBSD.
10287 * sparc64obsd-tdep.c: New file.
10288 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10289 (sparc64obsd-tdep.o): New dependency.
10290 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10291 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10292 * config/sparc/obsd64.mt: New file.
10293
690668cc
MK
10294 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10295 read the instruction at PC.
10296
7e5e9f88
MK
10297 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10298 value of GDB_OSABI_DEFAULT.
10299 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10300 instead of GDB_OSABI_NETBSD_AOUT.
10301
68b6dce9
NR
103022004-01-24 Nick Roberts <nick@nick.uklinux.net>
10303
10304 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10305 copyright.
10306
080ce8c0
AC
103072004-01-23 Andrew Cagney <cagney@redhat.com>
10308
10309 * printcmd.c (display_command): Replace tui_set_display call with
10310 tui_set_layout_for_display_command.
10311 * tui/tui.h (enum tui_win_type): Define.
10312 (tui_set_layout): Delete declaration.
10313 (tui_set_layout_for_display_command): Rename set_tui_layout.
10314 * tui/tui-data.h (enum tui_layout_type): Define.
10315 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10316 "tui.h".
10317 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10318 (tui_default_win_height): Rename tuiDefaultWinHeight.
10319 (tui_default_win_viewport_height): Rename
10320 tuiDefaultWinViewportHeight.
10321 (tui_set_layout): RenametuiSetLayout.
10322 * tui/tui-layout.c: Update references.
10323 * tui/tui.c: Update references.
10324 * tui/tui-disasm.c: Update references.
10325
b368761e
DC
103262004-01-23 David Carlton <carlton@kealia.com>
10327
10328 Partial workaround for PR c++/1511:
10329 * cp-namespace.c: Include frame.h.
10330 (cp_lookup_transparent_type): New
10331 (cp_lookup_transparent_type_loop): New.
10332 * cp-support.h: Declare cp_lookup_transparent_type.
10333 * symtab.c (basic_lookup_transparent_type): Renamed from
10334 lookup_transparent_type.
10335 (lookup_transparent_type): Replace old body by a call to
10336 current_language->la_lookup_transparent_type.
10337 * symtab.h: Update copyright. Declare
10338 basic_lookup_transparent_type.
10339 * language.h: Update copyright.
10340 (struct language_defn): Add la_lookup_transparent_type.
10341 * language.c: Update copyright.
10342 (unknown_language_defn): Add basic_lookup_transparent_type.
10343 (auto_language_defn): Add basic_lookup_transparent_type.
10344 (local_language_defn): Add basic_lookup_transparent_type.
10345 * ada-lang.c: Update copyright.
10346 (ada_language_defn): Add basic_lookup_transparent_type.
10347 * c-lang.c: Update copyright.
10348 (c_language_defn): Add basic_lookup_transparent_type.
10349 (cplus_language_defn): Add basic_lookup_transparent_type.
10350 (asm_language_defn): Add basic_lookup_transparent_type.
10351 (minimal_language_defn): Add basic_lookup_transparent_type.
10352 * f-lang.c: Update copyright.
10353 (f_language_defn): Add basic_lookup_transparent_type.
10354 * jv-lang.c: Update copyright.
10355 (java_language_defn): Add basic_lookup_transparent_type.
10356 * m2-lang.c: Update copyright.
10357 (m2_language_defn): Add basic_lookup_transparent_type.
10358 * objc-lang.c: Update copyright.
10359 (objc_language_defn): Add basic_lookup_transparent_type.
10360 * p-lang.c: Update copyright.
10361 (p_language_defn): Add basic_lookup_transparent_type.
10362 * scm-lang.c: Update copyright.
10363 (scm_language_defn): Add basic_lookup_transparent_type.
10364 * Makefile.in (cp-namespace.o): Depend on frame.h.
10365
fdde2d81
DC
103662004-01-23 David Carlton <carlton@kealia.com>
10367
10368 Patch for PR c++/1520:
10369 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10370 properly if we have a specification die.
10371 (determine_prefix_aux): Rename from determine_prefix.
10372 (determine_prefix): Like the old determine_prefix, but never
10373 returns NULL.
10374
5b828b6b
TR
103752004-01-23 Theodore A. Roth <troth@openavr.org>
10376
10377 * avr-tdep.c: Update copyright.
10378 (avr_iaddr_p): Delete unused function.
10379 (avr_saddr_p): Delete unused function.
10380
a1b8c067
DC
103812004-01-23 David Carlton <carlton@kealia.com>
10382
10383 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10384 Fix for PR symtab/1534.
10385
f2cab569
MK
103862004-01-23 Mark Kettenis <kettenis@gnu.org>
10387
10388 * NEWS (New native configurations): Mention OpenBSD/sparc and
10389 OpenBSD/sparc64.
10390 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10391 * configure.host: Likewise.
10392 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10393 handler for OpenBSD.
10394 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10395
642d8300
MK
103962004-01-22 Mark Kettenis <kettenis@gnu.org>
10397
89aac506
MK
10398 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10399 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10400
36662fde
MK
10401 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10402 * cli/cli-cmds.c (shell_escape): Likewise.
10403
642d8300
MK
10404 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10405 OpenBSD .note.openbsd.ident sections.
10406
fae299cd
DC
104072004-01-22 David Carlton <carlton@kealia.com>
10408
10409 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10410 get_scope_pc_bounds.
10411 (read_file_scope): Ditto.
10412 (get_scope_pc_bounds): New function, produced by extracting code
10413 from the above two functions, consolidating it, and adding support
10414 for DW_TAG_namespace.
10415
a49d618c
MK
104162004-01-22 Mark Kettenis <kettenis@gnu.org>
10417
10418 * osabi.c (MAX_NOTESZ): New define.
10419 (check_note): New function.
10420 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10421 check_note.
10422
fe61caab
RM
104232004-01-21 Roland McGrath <roland@redhat.com>
10424
10425 * MAINTAINERS (write after approval): Add myself.
10426
ec145965
EZ
104272004-01-21 Eli Zaretskii <eliz@gnu.org>
10428
10429 * utils.c (init_page_info): Move declarations of `rows' and
10430 `cols' before the __GO32__-specific code. Move the closing brace
10431 outside the #ifdef __GO32__..#endif block.
10432 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10433
877522db
PB
104342004-01-21 Paul Brook <paul@codesourcery.com>
10435
10436 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10437 BPSTAT_WHAT_CHECK_SHLIBS.
10438
dbf5be1c
PB
104392004-01-21 Paul Brook <paul@codesourcery.com>
10440
10441 * MAINTAINERS: Add myself to write-after-approval.
10442
81f08b92
AC
104432004-01-20 Andrew Cagney <cagney@redhat.com>
10444
5a1efed7
AC
10445 * ax-gdb.c (print_axs_value): Delete unused function.
10446 * jv-lang.c (java_lookup_type): Delete unused function.
10447 * cli/cli-dump.c (dump_filetype): Delete unused function.
10448 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10449 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10450 (mips_getstring): Delete unused function.
10451 (pmon_insert_breakpoint): Delete #if0ed function.
10452 (PMON_MAX_BP): Delete #if0ed MACRO.
10453 (mips_pmon_bp_info): Delete #if0ed variable.
10454 (pmon_remove_breakpoint): Delete #if0ed function.
10455 * monitor.c (monitor_write_even_block): Delete unused function.
10456 (monitor_write_memory_block): Delete #if0ed code.
10457 * dink32-rom.c (dink32_load): Delete unused function.
10458 (_initialize_dink32_rom): Delete #if0ed code.
10459 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10460
b0a30fce
AC
10461 * tui/tui-command.c: Update references.
10462 * tui/tui-io.c: Update references.
10463 * tui/tui-command.h: Update copyright.
10464 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10465
81f08b92
AC
10466 * source.c (ambiguous_line_spec): Delete never-defined function.
10467 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10468 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10469 * cli/cli-cmds.c (validate_comname): Ditto.
10470
65f05602
AC
10471 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10472 "tui-data.h".
10473 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10474 (tui_show_disassem): Rename tuiShowDisassem.
10475 (tui_show_disassem_and_update_source): Rename
10476 tuiVerticalDisassemScroll.
10477 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10478 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10479 * tui/tui.h: Update copyright.
10480 (enum tui_status): Define.
10481 * tui/tui-data.h (enum tui_scroll_direction): Define.
10482 * tui/tui-disasm.c: Update copyright. Update references.
10483 * tui/tui-winsource.c: Update copyright. Update references.
10484 * tui/tui-win.c: Update references.
10485 * tui/tui-layout.c: Update references.
10486
6bb0384f
AC
104872004-01-20 Andrew Cagney <cagney@redhat.com>
10488
10489 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10490 sym2 to start of block.
10491
9175c9a3
MC
104922004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10493
10494 * MAINTAINERS: Delete mmalloc.
10495 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10496 * NEWS: Mention removal of --with-malloc.
10497 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10498 * config.in: Regenerate.
10499 * configure: Regenerate.
6bb0384f
AC
10500 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10501 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
10502 * gdbinit.in: Remove mmalloc.
10503 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10504 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10505 * config/i386/go32.mh: Likewise.
10506 * config/i386/interix.mh: Likewise.
10507 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10508
4fcef00a
JJ
105092004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10510
10511 * linespec.c (decode_variable, symtab_from_filename): Call
10512 error_silent with error message instead of throwing an exception
10513 directly.
10514 * defs.h (error_silent, error_output_message): Add prototypes.
10515 (catch_exceptions_with_msg): Ditto.
10516 * utils.c (error_silent, error_output_message): New functions.
10517 * top.c (catch_exceptions_with_msg): New function.
10518
8e94b928
NR
105192004-01-20 Nick Roberts <nick@nick.uklinux.net>
10520
10521 * mi/mi-cmds.h (enum print_values): Add definition.
10522
10523 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10524 type and value for simple data types and just the name and type
10525 for complex ones, if required.
10526
10527 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10528 children, if required.
10529
a02d6af8
KB
105302004-01-19 Kevin Buettner <kevinb@redhat.com>
10531
10532 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10533 unused declarations.
10534
78a4a9b9
AC
105352004-01-19 Andrew Cagney <cagney@redhat.com>
10536
10537 * top.h (mapped_symbol_files): Delete declaration.
10538 * main.c (captured_main): Delete option "m" and "mapped".
10539 * objfiles.c (mapped_symbol_files): Delete variable.
10540 * symfile.c (symbol_file_command): Delete mmap code.
10541 (symbol_file_add_with_addrs_or_offsets): Ditto.
10542 (add_symbol_file_command, reread_separate_symbols): Ditto.
10543 * objfiles.h (OBJF_MAPPED): Delete.
10544 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10545 (free_objfile) [USE_MMALLOC]: Ditto.
10546 (open_existing_mapped_file): Delete function.
10547 (open_mapped_file): Delete function.
10548 (map_to_file): Delete function.
10549
2dbd5e30
KB
105502004-01-19 Kevin Buettner <kevinb@redhat.com>
10551
10552 * infrun.c (step_into_function): Account for possible breakpoint
10553 adjustment when computing ``stop_func_start''.
10554
437b434f
KB
105552004-01-19 Kevin Buettner <kevinb@redhat.com>
10556
10557 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10558 the region size against the size of a pointer, not the size of
10559 a register as given by DEPRECATED_REGISTER_SIZE.
10560
55fb0713
AC
105612004-01-19 Andrew Cagney <cagney@redhat.com>
10562
10563 * tui/tui-regs.h: Include "tui-data.h".
10564 (tuiFirstRegElementNoInLine): Delete declaration.
10565 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10566 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10567 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10568 (tui_calculate_regs_column_count): Rename
10569 tuiCalculateRegsColumnCount.
10570 (tui_check_register_values): Rename tuiCheckRegisterValues.
10571 (tui_show_registers): Rename tuiShowRegisters.
10572 (tui_display_registers_from_line): Rename
10573 tuiDisplayRegistersFromLine.
10574 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10575 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10576 (tui_first_reg_element_no_inline): Rename
10577 tuiFirstRegElementNoInLine.
10578 * tui/tui-data.h: Update copyright.
10579 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10580 * tui/tui-windata.c: Update copyright, update references.
10581 * tui/tui-regs.c: Update copyright, update references.
10582 * tui/tui-win.c: Update copyright, update references.
10583 * tui/tui-layout.c: Update copyright, update references.
fe61caab 10584
cebe9500
AC
105852004-01-18 Andrew Cagney <cagney@redhat.com>
10586
bcdf1568
AC
10587 * tui/tui-io.c: Update copyright.
10588 (key_is_end_sequence, key_is_backspace): New functions.
10589 (key_is_command_char, key_is_start_sequence): New function.
10590 (tui_getc): Update references.
10591 * tui/tui-io.h: Update copyright.
10592 (m_tuiStartNewLine): Delete macro.
10593 (m_isBackspace, m_isDeleteChar): Delete macros.
10594 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10595 (m_isNextPage, m_isPrevPage): Delete macros.
10596 (m_isLeftArrow, m_isRightArrow): Delete macros.
10597 (m_isXdbStyleCommandChar): Delete macro.
10598 (key_is_start_sequence): Declare, replace m_isStartSequence.
10599 (key_is_end_sequence): Declare, replace m_isEndSequence.
10600 (key_is_backspace): Declare ,replace m_isBackspace.
10601 (key_is_command_char): Declare, replace m_isCommandChar.
10602 * tui/tui-command.c: Update copyright.
10603 (tuiDispatchCtrlChar): Update references.
10604
130d87e6
AC
10605 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10606 tuiSourceWin.h.
10607
d7b2e967
AC
10608 * tui/tui-command.c: Rename tui/tuiCommand.c.
10609 * tui/tui-command.h: Rename tui/tuiCommand.h.
10610 * tui/tui-data.c: Rename tui/tuiData.c.
10611 * tui/tui-data.h: Rename tui/tuiData.h.
10612 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10613 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10614 * tui/tui-io.c: Rename tui/tuiIO.c.
10615 * tui/tui-io.h: Rename tui/tuiIO.h.
10616 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10617 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10618 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10619 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10620 * tui/tui-source.c: Rename tui/tuiSource.c.
10621 * tui/tui-source.h: Rename tui/tuiSource.h.
10622 * tui/tui-stack.c: Rename tui/tuiStack.c.
10623 * tui/tui-stack.h: Rename tui/tuiStack.h.
10624 * tui/tui-win.c: Rename tui/tuiWin.c.
10625 * tui/tui-win.h: Rename tui/tuiWin.h.
10626 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10627 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10628 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10629 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10630 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10631 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10632 * tui/tui-file.c: Update includes.
10633 * tui/tui-hooks.c: Update includes.
10634 * tui/tui-interp.c: Update includes.
10635 * tui/tui.c: Update includes.
10636 * Makefile.in: Update all tui/ dependencies.
10637 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10638
b2100910
AC
10639 * Makefile.in: Update copyright. Update dependencies.
10640
cebe9500
AC
10641 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10642 problem.
10643
c6f0559b
AC
106442004-01-18 Andrew Cagney <cagney@redhat.com>
10645
43e9390b
AC
10646 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10647 instead of register_gdbarch_init.
10648
c6f0559b
AC
10649 * remote-sds.c (tohex): Delete unused function. Update copyright.
10650 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10651 * v850-tdep.c (v850_register_virtual_size): Ditto.
10652 * target.c (normal_target_post_startup_inferior): Ditto.
10653 * source.c (ambiguous_line_spec): Ditto.
10654 * remote.c (adapt_remote_get_threadinfo): Ditto.
10655 * mi/mi-out.c (out_field_fmt): Ditto.
10656 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10657 (output_control_change_notification): Ditto.
10658 * m68k-tdep.c (m68k_register_byte): Ditto.
10659 (m68k_remote_breakpoint_from_pc): Ditto.
10660 * ui-out.c (init_ui_out_state): Delete unused declaration.
10661 * stabsread.c (search_value): Ditto.
10662 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10663 * maint.c (print_section_table): Ditto.
10664 * infrun.c (set_follow_fork_mode_command): Ditto.
10665
a8504492
MK
106662004-01-18 Mark Kettenis <kettenis@gnu.org>
10667
10668 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10669 DW_CFA_def_cfa_exporession. Add support for
10670 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10671 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10672
0bd8997e
AC
106732004-01-18 Andrew Cagney <cagney@redhat.com>
10674
10675 * ocd.c: Update copyright.
10676 (bdm_read_register_command): Delete unused function.
10677 (_initialize_remote_ocd): Delete commented out reference.
10678 (get_quoted_char, reset_packet): Delete #if0ed function.
10679 (output_packet, put_quoted_char): Delete #if0ed function.
10680 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10681 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10682 (BDM_BREAKPOINT): Delete #if0ed macro.
10683 (remote_timeout): Delete #if0ed variable.
10684
31bb40e4
MK
106852004-01-18 Mark Kettenis <kettenis@gnu.org>
10686
10687 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10688 (core-sol2.o): Remove dependency.
10689 * core-sol2.c: Remove file.
10690
887432a5
AC
106912004-01-17 Andrew Cagney <cagney@redhat.com>
10692
10693 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10694 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10695 enums.
10696
29182b13
DJ
106972004-01-17 Daniel Jacobowitz <drow@mvista.com>
10698
10699 * remote.c: Update copyright years.
10700
2963ee1d
DJ
107012004-01-17 Daniel Jacobowitz <drow@mvista.com>
10702
10703 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10704
79d45cd4
AC
107052004-01-17 Andrew Cagney <cagney@redhat.com>
10706
ee300cd4
AC
10707 * mdebugread.c: Update copyright.
10708 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10709 (parse_type, parse_procedure): Ditto.
10710 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10711
fcacc9c2
AC
10712 * cris-tdep.c (cris_store_struct_return): Put back accidently
10713 deleted function.
10714
79d45cd4
AC
10715 * gdbarch.sh: Update copyright year.
10716 * gdbarch.h, gdbarch.c: Re-generate.
10717
b263358a
DJ
107182004-01-17 Daniel Jacobowitz <drow@mvista.com>
10719
10720 Suggested by George Anzinger.
10721 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10722 correct stack offset. Include unknown opcode numbers in the error
10723 message.
10724
931aecf5
AC
107252004-01-17 Andrew Cagney <cagney@redhat.com>
10726
10727 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10728 extract_struct_value_address, i386 does not set it.
10729 * sparc64-tdep.c (sparc64_init_abi): Do not set
10730 extract_struct_value_address, never called.
10731 (sparc64_extract_struct_value_address): Delete function.
10732 * m68hc11-tdep.c: Update copyright.
10733 (m68hc11_gdbarch_init): Delete redundant assignment of
10734 extract_struct_value_address.
10735 * i386-tdep.c: Update copyright.
10736 (i386_gdbarch_init): Do not set extract_struct_value_address,
10737 never called.
10738 (i386_extract_struct_value_address): Delete function.
10739 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10740 extract_struct_value_address, never called.
10741 (sparc32_extract_struct_value_address): #if 0 function. Add
10742 comments explaining its future.
10743
756fe439
DJ
107442004-01-17 Daniel Jacobowitz <drow@mvista.com>
10745
10746 * arm-tdep.c (arm_write_pc): New function.
10747 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10748
e74f0f02
DJ
107492004-01-17 Daniel Jacobowitz <drow@mvista.com>
10750
10751 * breakpoint.c (must_shift_inst_regs): Delete.
10752 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10753 and SHIFT_INST_REGS.
10754 * infcmd.c (step_1, step_1_continuation): Delete references to
10755 SHIFT_INST_REGS.
10756 * infrun.c (keep_going): Likewise.
10757 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10758 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10759
b6cb9035
AC
107602004-01-17 Andrew Cagney <cagney@redhat.com>
10761
444a1e2e
AC
10762 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10763 * gdbarch.h, gdbarch.c: Re-generate.
10764 * infcmd.c (print_return_value): Delete reference to
10765 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10766
def7e6ed
AC
10767 * cris-tdep.c (cris_gdbarch_init): Do not set
10768 deprecated_extract_struct_value_address.
10769
07be497a
AC
10770 * xstormy16-tdep.c: Update copyright.
10771 (xstormy16_extract_struct_value_address): Update to current
10772 extract struct value address interface.
10773 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10774 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10775 current extract struct value address interface.
10776 (sh64_gdbarch_init): Set extract_struct_value_address.
10777
6b4d5c91
AC
10778 * cris-tdep.c: Update copyright.
10779 (cris_extract_struct_value_address): Delete function.
10780 (struct_return_address): Delete variable.
10781 (cris_store_struct_return): Do not set struct_return_address.
10782
464e0365
AC
10783 * mcore-tdep.c: Update copyright.
10784 (mcore_extract_struct_value_address): Delete function. Update
10785 comments.
10786 (mcore_gdbarch_init): Update.
10787 * mn10300-tdep.c: Update copyright.
10788 (mn10300_extract_struct_value_address): Delete function.
10789 (mn10300_gdbarch_init): Update.
10790 * v850-tdep.c: Update copyright.
10791 (v850_extract_struct_value_address): Delete.
10792 (v850_gdbarch_init): Update.
10793 * ns32k-tdep.c: Update copyright.
10794 (ns32k_extract_struct_value_address): Delete.
10795 (ns32k_gdbarch_init): Update.
10796 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10797 (hppa_gdbarch_init): Update.
10798 * vax-tdep.c: Update copyright.
10799 (vax_extract_struct_value_address): Delete.
10800 (vax_gdbarch_init): Update.
10801
afb18d0f
AC
10802 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10803 * gdbarch.h, gdbarch.c: Re-generate.
10804 * procfs.c (procfs_fetch_registers): Delete reference to
10805 DEPRECATED_NPC_REGNUM.
10806 (procfs_store_registers): Ditto.
10807 * regcache.c (generic_target_write_pc): Simplify.
10808 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10809
a698f53e
AC
10810 * core-sol2.c (fetch_core_registers): Replace
10811 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10812
adc11376
AC
10813 * hppa-tdep.c: Update copyright year.
10814 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10815 NPC_REGNUM.
10816 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10817
b6cb9035
AC
10818 * mips-tdep.c (mips_write_pc): New function.
10819 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10820 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10821 (mips_find_saved_regs, mips_software_single_step: Ditto.
10822 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10823 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10824
6d82d43b
AC
108252004-01-17 Andrew Cagney <cagney@redhat.com>
10826
10827 * mips-tdep.c: Re-indent. Group functions by ABI.
10828
71bd6bd4
AC
108292004-01-17 Andrew Cagney <cagney@redhat.com>
10830
10831 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10832 * gdbarch.c: Re-generate.
10833 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10834 DECR_PC_AFTER_BREAK to zero.
10835 * vax-tdep.c (vax_gdbarch_init): Ditto.
10836 * v850-tdep.c (v850_gdbarch_init): Ditto.
10837 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10838 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10839 * sh-tdep.c (sh_gdbarch_init): Ditto.
10840 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10841 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10842 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10843 * mips-tdep.c (mips_gdbarch_init): Ditto.
10844 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10845 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10846 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10847 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10848 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10849 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10850 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10851 * frv-tdep.c (frv_gdbarch_init): Ditto.
10852 * cris-tdep.c (cris_gdbarch_init): Ditto.
10853 * avr-tdep.c (avr_gdbarch_init): Ditto.
10854 * arm-tdep.c (arm_gdbarch_init): Ditto.
10855 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10856
a02abb62
JB
108572004-01-17 J. Brobecker <brobecker@gnat.com>
10858
10859 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10860 Delete, no longer used.
10861 (read_subrange_type): New function, mostly extracted from
10862 read_array_type().
10863 (read_array_type): Replace extracted code by call to
10864 read_subrange_type().
10865 (dwarf2_get_attr_constant_value): New function.
10866 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10867 (add_partial_symbol): Likewise.
10868 (process_die): Likewise.
10869 (new_symbol): Likewise.
10870 (read_type_die): Likewise.
10871
cf5b2f1b
AC
108722004-01-16 Andrew Cagney <cagney@redhat.com>
10873
10874 * symfile.c: Update copyright year.
10875 (compare_symbols): Delete unused function.
10876 * stabsread.c: Update copyright year.
10877 (lrs_general_complaint): Delete unused function.
10878 (ref_search_value): Ditto.
10879 (get_substring): Delete declaration.
10880 * sh64-tdep.c: Update copyright year.
10881 (sh64_get_gdb_regnum): Delete unused function.
10882 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10883 Delete unused function.
10884
d33b9831
MK
108852004-01-17 Mark Kettenis <kettenis@gnu.org>
10886
10887 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10888 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10889
7aea86e6
AC
108902004-01-16 Andrew Cagney <cagney@redhat.com>
10891
10892 Changes from Peter Schauer.
10893 * rs6000-tdep.c: Update copyright year.
10894 (rs6000_push_dummy_call): Update the stack pointer before
10895 accessing the corresponding stack region.
10896 * rs6000-nat.c: Update copyright year.
10897 (set_host_arch): Set "info.abfd" to "exec_bfd".
10898
26b0da32
MK
108992004-01-15 Mark Kettenis <kettenis@gnu.org>
10900
10901 * blockframe.c: Update copyright year.
10902 (inside_entry_func): Don't treat a zero PC specially.
10903
86fbe6cc
EZ
109042004-01-14 Elena Zannoni <ezannoni@redhat.com>
10905
10906 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10907 variable.
10908 (gcore_create_callback): Ditto. Skip any memory segment that has
10909 no permissions set.
10910
63d06c5c
DC
109112004-01-14 David Carlton <carlton@kealia.com>
10912
10913 Change symbols for C++ nested types to contain the fully qualified
10914 name, if possible. (At least in the DWARF-2 case.) Partial fix
10915 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10916 c++/895.
10917 * c-exp.y (qualified_type): Handle types nested within classes.
10918 * cp-namespace.c: Update comments.
10919 (cp_set_block_scope): Delete #if 0.
10920 (cp_lookup_nested_type): Handle types nested within classes.
10921 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10922 when appropriate.
10923 (add_partial_symbol): Add the name of the enclosing namespace to
10924 types.
10925 (pdi_needs_namespace): New.
10926 (add_partial_namespace): Tweak comment.
10927 (add_partial_structure): New.
10928 (psymtab_to_symtab_1): Initialize processing_current_prefix
10929 here...
10930 (process_die): instead of here.
10931 (read_structure_scope): Try to figure out the name of the class or
10932 namespace that the structure might be defined within.
10933 (read_enumeration): Generate fully-qualified names, if possible.
10934 (read_namespace): Don't set name to NULL.
10935 (die_specification): New.
10936 (new_symbol): Generate fully-qualified names for types.
10937 (read_type_die): Determine appropriate prefix.
10938 (determine_prefix): New.
10939 (typename_concat): New.
10940 (class_name): New.
10941 * valops.c (value_aggregate_elt): Pass NOSIDE to
10942 value_struct_elt_for_reference.
10943 (value_struct_elt_for_reference): Make static, add NOSIDE
10944 parameter, call value_maybe_namespace_elt as a last resort.
10945 (value_namespace_elt): Break out code into
10946 value_maybe_namespace_elt.
10947 (value_maybe_namespace_elt): New.
10948
87783b8b
AC
109492004-01-12 Andrew Cagney <cagney@redhat.com>
10950
10951 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10952 cooked floating-point registers.
10953 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10954 and value_to_register.
10955
6503b91e
AC
109562004-01-13 Andrew Cagney <cagney@redhat.com>
10957
10958 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10959 * gdbarch.c: Re-generate.
10960 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10961 FUNCTION_START_OFFSET.
10962 * v850-tdep.c (v850_gdbarch_init): Ditto.
10963 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10964 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10965 * sh-tdep.c (sh_gdbarch_init): Ditto.
10966 * s390-tdep.c (s390_gdbarch_init): Ditto.
10967 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10968 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10969 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10970 * mips-tdep.c (mips_gdbarch_init): Ditto.
10971 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10972 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10973 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10974 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10975 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10976 * i386-tdep.c (i386_gdbarch_init): Ditto.
10977 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10978 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10979 * frv-tdep.c (frv_gdbarch_init): Ditto.
10980 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10981 * cris-tdep.c (cris_gdbarch_init): Ditto.
10982 * avr-tdep.c (avr_gdbarch_init): Ditto.
10983 * arm-tdep.c (arm_gdbarch_init): Ditto.
10984 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10985
ea1dd7bc
DJ
109862004-01-13 Daniel Jacobowitz <drow@mvista.com>
10987
10988 * infrun.c (follow_fork_mode_ask): Remove.
10989 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10990 (follow_fork): Simplify and remove internal error for
10991 follow_fork_mode_ask.
10992 (_initialize_infrun): Update "set follow-fork-mode" help text.
10993
0f0cffd2
AC
109942004-01-13 Andrew Cagney <cagney@redhat.com>
10995
10996 * configure.in: Update copyright year.
10997 (build_warnings): Add -Wunused-label.
10998 * configure: Re-generate.
10999
de38af99
AC
110002004-01-12 Andrew Cagney <cagney@redhat.com>
11001
954a7fba
AC
11002 * exec.h (exec_ops): Make "extern".
11003
de38af99
AC
11004 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11005 the function is void.
11006 (mips_pseudo_register_write): Ditto.
11007
1a111ce3
AC
110082004-01-12 Andrew Cagney <cagney@redhat.com>
11009
11010 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11011 call. Never defined.
11012 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11013 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11014 (struct sparc_gregset, struct regcache): Ditto.
11015 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11016
48efe704
AC
110172004-01-12 Andrew Cagney <cagney@redhat.com>
11018
11019 * mi/ChangeLog: Delete file. Renamed to ...
11020 * mi/ChangeLog-1999-2003: New file.
11021 * tui/ChangeLog: Delete file. Renamed to ...
11022 * tui/ChangeLog-1998-2003: New file.
fe61caab 11023
a54124c5
MK
110242004-01-11 Mark Kettenis <kettenis@gnu.org>
11025
2ca62865
MK
11026 * sparc64nbsd-tdep.c: Include "regset.h".
11027 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11028 Remove variables.
11029 (fetch_core_registers): Remove function.
11030 (sparc64nbsd_core_fns): Remove variable.
11031 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11032 functions.
11033 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11034 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11035 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11036
ca9d58e9
MK
11037 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11038 sparc_extract_struct_value_address.
11039 (sparc32_gdbarch_init): Set extract_struct_value_address.
11040 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11041 function.
11042 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11043 return_value_on_stack.
11044
3cc87ec0
MK
11045 * NEWS: Mention that %cs and %ss have been added to the AMD64
11046 configurations
11047
5bf00f29
MK
11048 * frame.c: Update copyright year.
11049 (get_prev_frame): Improve comment.
11050
4f7ec84e
MK
11051 * sparc64fbsd-tdep.c: Include "regset.h".
11052 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11053 Remove variables.
11054 (fetch_core_registers): Remove function.
11055 (sparc64fbsd_core_fns): Remove variable.
11056 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11057 functions.
11058 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11059 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 11060 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 11061
4e7b0cd3
MK
11062 * sparcnbsd-tdep.c: Include "regset.h".
11063 (fetch_core_registers): Remove function.
11064 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11065 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11066 functions.
11067 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11068 TDEP->fpregset.
46b58ce9 11069 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 11070
a54124c5
MK
11071 * sparc-tdep.h (struct regset): Provide opaque declaration.
11072 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11073 fpregset and sizeof_fpregset members.
11074 * sparc-tdep.c (struct regset): Provide opaque declaration.
11075 (sparc_regset_from_core_section): New function.
11076 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11077 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11078 Set regset_from_core_section when appropriate.
11079
29ff87c5
MK
110802004-01-10 Mark Kettenis <kettenis@gnu.org>
11081
79b1ab3d
MK
11082 * x86-64-tdep.c (amd64_non_pod_p): New function.
11083 (amd64_classify_aggregate): Return class memory for non-POD
11084 C++ structure types.
11085
6470d250
MK
11086 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11087 argument. Use it to reserve a register if necessary.
11088 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11089 amd64_push_arguments.
11090
562c50c2
MK
11091 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11092
af233647
MK
11093 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11094 register numbers in comments.
11095 * x86-64-tdep.h: Update copyright year.
11096 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11097 Adjust for addition of %cs and %ss.
11098 * amd64fbsd-nat.c: Update copyright year.
11099 (reg_offset): Add register offsets for %cs and %ss.
11100 * amd64fbsd-tdep.c: Update copyright year.
11101 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11102 (amd64fbsd_sc_reg_offset): Likewise.
11103 * x86-64-linux-nat.c: Update copyright year.
11104 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11105 and %ss.
11106 * amd64nbsd-nat.c: Update copyright year.
11107 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11108 * amd64nbsd-tdep.c: Update copyright year.
11109 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11110 * x86-64-linux-tdep.c: Update copyright year.
11111 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11112 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11113 * regformats/reg-x86-64.dat: Add %cs and %ss.
11114
29ff87c5
MK
11115 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11116 variables to prevent long lines. Update comments to reflect
11117 reality.
11118
38d518c9
EZ
111192004-01-09 David Carlton <carlton@kealia.com>
11120
11121 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11122 * dwarf2read.c (read_namespace): Pull out name-generating code
11123 into namespace_name. Rename previous_namespace to previous_prefix
11124 and processing_current_namespace to processing_current_prefix..
11125 (namespace_name): New function.
11126 (add_partial_symbol): Substitute uses of pdi->name with
11127 actual_name.
11128 * cp-support.h: Rename processing_current_namespace to
11129 processing_current_prefix.
11130 Update copyright year.
11131 * cp-namespace.c: Rename processing_current_namespace to
11132 processing_current_prefix.
11133 Update copyright year.
fe61caab 11134
1e4728e7
AC
111352004-01-09 Andrew Cagney <cagney@redhat.com>
11136
11137 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11138
c77c642a
MK
111392004-01-09 Mark Kettenis <kettenis@gnu.org>
11140
11141 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11142 complaining.
11143 (process_one_symbol): Deal with N_PATCH stabs.
11144
b44e9041
EZ
111452004-01-09 Elena Zannoni <ezannoni@redhat.com>
11146
11147 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11148 ifdeffed code.
11149 Update copyright year.
38d518c9 11150
eccfb640
MC
111512004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11152
11153 * config/pa/tm-hppa.h: Update extern declarations for
11154 hppa32_hpux_frame_saved_pc_in_sigtramp,
11155 hppa32_hpux_frame_base_before_sigtramp, and
11156 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11157
848c5feb
MC
111582004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11159
11160 * config/pa/tm-hppah.h: Update copyright years.
11161
3cc5d663
AC
111622004-01-08 Andrew Cagney <cagney@redhat.com>
11163
11164 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11165 (mips_o32_reg_struct_has_addr): Delete function.
11166 (mips_gdbarch_init): Update.
11167 (mips_extract_struct_value_address): Delete function.
11168
bfec0b41
JJ
111692004-01-08 David Mosberger <davidm@hpl.hp.com>
11170
11171 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11172 reality.
11173
16e109ca
AC
111742004-01-07 Andrew Cagney <cagney@redhat.com>
11175
6214a8a1
AC
11176 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11177 architecture's elf flags (when available).
11178
8d5838b5
AC
11179 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11180 FPU to the start, check the MIPS FPU when looking for an old
11181 architecture.
11182 (set_mipsfpu_single_command): Update the architecture.
11183 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11184
480d3dd2
AC
11185 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11186 (mips_mask_address_p): Add "tdep" parameter.
11187 (show_mask_address, mips_addr_bits_remove): Update.
11188 (mips_dump_tdep): Update.
11189 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11190 (MIPS_STACK_ARGSIZE): Delete macro.
11191 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11192 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11193 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11194 (mips_dump_tdep): Update.
11195 (MIPS_SAVED_REGSIZE): Delete macro.
11196 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11197 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11198 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11199 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11200 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11201 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11202 (mips_pop_frame, return_value_location): Update.
11203 (mips_n32n64_return_value, mips_dump_tdep): Update.
11204
ec03c1ac
AC
11205 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11206 MIPS ABI.
11207
16e109ca
AC
11208 * mips-tdep.c: Update copyright.
11209 (mips_gdbarch_init): Merge two code blocks handling the register
11210 name and number layout.
11211
15255275
MS
112122004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11213
11214 * tracepoint.c (validate_actionline): Fix segv at EOF
11215
9f9057da
MC
112162004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11217
11218 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11219 properly for static fields.
11220
0127c0d3 112212004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 11222 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
11223
11224 * disasm.c: Update copyright to include 2004.
11225 (do_mixed_source_and_assembly): For uiout asm list
11226 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 11227 NULL and do so prior to loop. Only reset when we close off
0127c0d3 11228 the tuple/list. Move check for whether to close off the
fe61caab 11229 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
11230 on each loop iteration.
11231
5269965e
AC
112322004-01-05 Andrew Cagney <cagney@redhat.com>
11233
54f1137d
AC
11234 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11235 should be a switch case and not a label.
11236 * mips-tdep.c (mips32_next_pc): Delete unused labels
11237 "greater_equal_branch" and "less_zero_branch".
11238 * jv-valprint.c (java_print_value_fields): Delete unused label
11239 "flush_it".
11240
5269965e
AC
11241 * target.c (unpush_target): Only close a target that is in the
11242 target stack.
11243
dbc22fa1
MK
112442004-01-05 Mark Kettenis <kettenis@gnu.org>
11245
9515395e
MK
11246 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11247 address from [sp + 64] instead of %o2.
11248
dbc22fa1
MK
11249 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11250 fixes PR backtrace/1476.
11251
5439edaa
AC
112522004-01-05 Andrew Cagney <cagney@redhat.com>
11253
11254 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11255 move to start of file.
11256 * i386-tdep.h (struct regcache): Add opaque declaration.
11257 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11258 declaration.
11259 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11260 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11261 * win32-nat.c (fake_create_process): Use ISO C style definition.
11262 * stabsread.c (define_symbol): Delete #ifndef
11263 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11264 stabs_argument_has_addr call, macro never defined.
11265
19061abe
MC
112662004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11267
11268 * op50-rom.c: Delete.
11269 * w89k-rom.c: Delete.
11270 * Makefile.in: Remove references.
11271
e53bef9f
MK
112722004-01-04 Mark Kettenis <kettenis@gnu.org>
11273
11274 * x86-64-tdep.c: Update copyright year.
11275 (struct amd64_register_info): Rename from x86_64_register_info.
11276 (amd64_register_info): Rename from x86_64_register_info.
11277 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11278 (amd64_register_name): Rename from x86_64_register_name.
11279 (amd64_register_type): Rename from x86_64_register_type.
11280 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11281 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11282 (amd64_dwarf_reg_to_regnum): Rename from
11283 x86_64_dwarf_reg_to_regnum.
11284 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11285 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11286 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11287 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11288 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11289 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11290 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11291 (amd64_frame_cache): Rename from x86_64_frame_cache.
11292 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11293 (amd64_frame_prev_register): Rename from
11294 x86_64_frame_prev_register.
11295 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11296 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11297 (amd64_sigtramp_frame_cache): Rename from
11298 x86_64_sigtramp_frame_cache.
11299 (amd64_sigtramp_frame_prev_register): Rename from
11300 x86_64_sigtramp_frame_prev_register.
11301 (amd64_sigtramp_frame_unwind): Rename from
11302 x86_64_sigtramp_frame_unwind.
11303 (amd64_sigtramp_frame_sniffer): Rename from
11304 x86_64_sigtramp_frame_sniffer.
11305 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11306 (amd64_frame_base): Rename from x86_64_frame_base.
11307 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11308 (amd64_frame_align): Rename from x86_64_frame_align.
11309 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11310 (amd64_regset_from_core_section): Rename from
11311 x86_64_regset_from_core_section.
11312 (x86_64_init_abi): Update comments.
11313
fca6aa58
NR
113142004-01-04 Nick Roberts <nick@nick.uklinux.net>
11315
11316 * MAINTAINERS (write after approval): Add myself.
11317
8ada74e3
MK
113182004-01-04 Mark Kettenis <kettenis@gnu.org>
11319
11320 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11321 `float' arguments.
11322
5154b0cd
MK
113232004-01-04 Mark Kettenis <kettenis@gnu.org>
11324
11325 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11326 such that it mentions a specific version of GCC that exhibits this
11327 bug.
11328
fb316966
MK
113292004-01-03 Mark Kettenis <kettenis@gnu.org>
11330
200cc553
MK
11331 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11332 structure that has a single `float' member, store it in %f1 in
11333 addition to %f0.
11334
e226a4a0
MK
11335 * sparc-sol2-nat.c: Add missing '\'.
11336
b9d4c5ed
MK
11337 * sparc-tdep.c (sparc32_return_value): New function.
11338 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11339 Remove functions.
11340 (sparc32_gdbarch_init): Set return_value, don't set
11341 extract_return_value, store_return_value, use_struct_convention
11342 and return_value_on_stack.
11343
fb316966
MK
11344 * sparc-sol2-nat.c: Add missing ')'.
11345
1af510a8
JB
113462004-01-03 J. Brobecker <brobecker@gnat.com>
11347
11348 * infrun.c (handle_step_into_function): New function.
11349 (handle_inferior_event): Extract out some code into the new
11350 function above.
11351
5cf4d23a
JB
113522004-01-03 J. Brobecker <brobecker@gnat.com>
11353
11354 * infrun.c (handle_inferior_event): Move the declaration of
11355 real_stop_pc inside the if blocks where it is used.
11356
60af1db2
MK
113572004-01-03 Mark Kettenis <kettenis@gnu.org>
11358
11359 * sparc64-tdep.c (sparc64_16_byte_align_p)
11360 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11361 Use check_typedef to get subtypes of structures and unions.
11362 (sparc64_store_return_value): Fix calculation of the appropriate
11363 offset into VALBUF when storing a structure or union.
11364 (sparc64_return_value): New function.
11365 (sparc64_use_struct_convention): Remove function.
11366 (sparc64_init_abi): Set return_value, don't set
11367 extract_return_value, store_return_value and
11368 use_struct_convention.
11369
1a901d3f
EZ
113702004-01-03 Eli Zaretskii <eliz@elta.co.il>
11371
11372 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11373 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11374 gdb/config/alpha/xm-alphaosf.h,
11375 gdb/config/powerpc/tm-ppcle-eabi.h,
11376 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11377 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11378 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11379 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11380 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11381 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11382 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11383 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11384 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11385 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11386 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11387 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11388 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11389 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11390 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11391 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11392 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11393 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11394 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11395 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11396 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11397 Remove lines for .cvsignore files.
11398
ef52e463
JB
113992004-01-03 J. Brobecker <brobecker@gnat.com>
11400
11401 * infrun.c: Back out the previous change.
11402
cb1bf9dc
MK
114032004-01-03 Mark Kettenis <kettenis@gnu.org>
11404
f0424ef6
MK
11405 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11406 sparc-*-sunos4* to the list of REMOVED configurations.
11407
cb1bf9dc
MK
11408 * configure.tgt: Add back sparc-*-vxworks*.
11409 * remote-vxsparc.c: Remove all includes except for "defs.h",
11410 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11411 Include "sparc-tdep.h".
11412 (SPARC_R_G1): New define.
11413 (vxsparc_gregset): New variable.
11414 (ext_format_sparc): Remove extern declaration.
11415 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11416 sparc32_supply_fpregset.
11417 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11418 sparc_collect_rwindow and sparc32_collect_fpregset.
11419 * config/sparc/tm-vxworks.h: New file, based on recently removed
11420 tm-vxsparc.h.
11421 * config/sparc/vxworks.mt: New file, based on recently removed
11422 vxworks.mt.
fe61caab 11423
5e938f9f
JB
114242004-01-03 J. Brobecker <brobecker@gnat.com>
11425
11426 * infrun.c (handle_step_into_function): New function.
11427 (handle_inferior_event): Extract out some code into the new
11428 function above.
11429
386c036b
MK
114302004-01-02 Mark Kettenis <kettenis@gnu.org>
11431
11432 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11433 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11434 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11435 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11436 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11437 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11438 (sparc_nat_h): New variable.
11439 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11440 (tm-sun4os4.h): Remove dependency.
11441 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11442 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11443 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11444 sparc-tdep.o): Update dependencies.
11445 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11446 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11447 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11448 dependencies.
11449 * configure.host: Remove existing sparc-*-lynxos*,
11450 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11451 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11452 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11453 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11454 triplets.
11455 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11456 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11457 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11458 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11459 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11460 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11461 sparc64-*-solaris2* and sparc64-*-* triplets.
11462 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11463 "symtab.h" and "objfiles.h".
11464 (BIAS): Remove define.
11465 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11466 (X_DISP19): Remove macros.
11467 (sparc_fetch_instruction): Remove function.
11468 (struct gdbarch_tdep): Remove definition.
11469 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11470 (sparc_breakpoint_from_pc): Remove function.
11471 (struct sparc64_frame_cache): Remove definition.
11472 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11473 sparc64_unwind_pc): Remove functions.
11474 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11475 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11476 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11477 (sparc64_frame_cache): Change return type to `struct
11478 sparc_frame_cache *'. Simply call sparc_frame_cache.
11479 (sparc64_frame_this_id, sparc64_frame_prev_register,
11480 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11481 instead of `struct sparc64_frame_cache.
11482 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11483 sparc_analyze_control_transfer, sparc_software_single_step,
11484 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11485 _initialize_sparc64_tdep): Remove functions.
11486 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11487 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11488 macros.
11489 (sparc64_supply_gregset, sparc64_collect_gregset,
11490 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11491 (sparc64_init_abi): New function.
11492 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11493 inclusion guard. Include "sparc-tdep.h".
11494 (BIAS): Define.
11495 (r_tstate_offset, r_fprs_offset): New defines.
11496 (enum sparc_regnum): Remove defenition.
11497 (enum sparc64_regnum): Reformat.
11498 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11499 (sparc64_init_abi, sparc64_supply_gregset,
11500 sparc64_collect_gregset, sparc64_supply_fpregset,
11501 sparc64_collect_fpregset): New prototypes.
11502 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11503 Add extern declarations.
11504 (sparc64_sol2_init_abi): New prototype.
11505 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11506 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11507 prototypes.
11508 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11509 "sparnbsd-nat.h".
11510 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11511 functions.
11512 (_initialize_sparc64fbsd_nat): Remove initialization of
11513 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11514 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 11515 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
11516 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11517 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11518 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11519 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11520 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11521 (sparc64fbsd_r_y_offset): Remove variables.
11522 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11523 Make static and const.
11524 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11525 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11526 functions.
11527 (sparc64fbsd_gregset): New variable.
11528 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11529 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11530 and sparc64_supply_fpregset.
11531 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11532 (sparc64fbsd_sigtramp_frame_this_id)
11533 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11534 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11535 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11536 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11537 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11538 * sparcnbsd-tdep.c: Update copyright year. Include
11539 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11540 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11541 "value.h" and "sparcnbsd-tdep.h".
11542 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11543 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11544 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11545 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11546 defines.
11547 (sparcnbsd_gregset): New variable.
11548 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11549 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11550 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11551 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11552 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11553 variables.
11554 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11555 (sparc32nbsd_sigcontext_frame_this_id)
11556 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11557 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11558 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11559 (sparcnbsd_get_longjmp_target_32,
11560 sparcnbsd_get_longjmp_target_64): Remove functions.
11561 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11562 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11563 sparcnbsd_init_elf): Remove.
11564 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11565 (sparcnbsd_elf_init_abi): New functions.
11566 (_initialize_sparcnbsd_tdep): New prototype.
11567 (_initialize_sparnbsd_tdep): Update.
11568 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11569 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11570 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11571 * config/sparc/linux.mh: Update comment.
11572 (XM_FILE, HOST_IPC): Remove variables.
11573 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11574 sparc-linux-nat.o.
11575 * config/sparc/linux.mt: Update comment.
11576 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11577 * config/sparc/nbsd.mt: Reformat.
11578 * config/sparc/nbsd64.mh: Update comment.
11579 (NATDEPFILES): Add sparc-nat.o.
11580 * config/sparc/nbsd64.mt: Update comment.
11581 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11582 (TM_FILE): Set to tm-nbsd.h.
11583 * config/sparc/nbsdelf.mh: Update comment.
11584 (NATDEPFILES): Add sparc-nat.o.
11585 (XM_FILE): Delete.
11586 * config/sparc/nbsdaout.mh: Update comment.
11587 (NATDEPFILES): Add sparc-nat.o
11588 (XM_FILE): Delete.
11589 * config/sparc/nm-linux.h: Update copyright year. Don't include
11590 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11591 inclusion.
11592 (KERNEL_U_SIZE): Remove define.
11593 (kernel_u_size): Remove prototype.
11594 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11595 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11596 "regcache.h".
11597 (CHILD_PREPARE_TO_STORE): Remove define.
11598 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11599 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11600 sparcnbsd-nat.c: Rewrite files.
11601 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11602 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11603 sparcnbsd-tdep.h: Remove files.
11604 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11605 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11606 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11607 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11608 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11609 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11610 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11611 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11612 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11613 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11614 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11615 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11616 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11617 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11618 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11619 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11620 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11621 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11622 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11623
ee84457a
AC
116242004-01-02 Andrew Cagney <cagney@redhat.com>
11625
11626 From 2003-12-18 Kazuhiro Inaoka:
11627 * configure.host: Add m32r-linux target.
11628
0bc2134e
MC
116292004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11630
11631 * top.c (print_gdb_version): Update year to 2004.
11632
89a72f9c
MM
116332004-01-02 Mark Mitchell <mark@codesourcery.com>
11634
11635 * MAINTAINERS: Add myself to the write-after-approval category.
11636
86b013ed
DJ
116372004-01-02 Daniel Jacobowitz <drow@mvista.com>
11638
11639 From Bernardo Innocenti <bernie@develer.com>:
11640 * configure.tgt: Add uClinux target.
11641
e42c9534
AC
116422004-01-02 Andrew Cagney <cagney@redhat.com>
11643
11644 * utils.c (do_my_cleanups): Make static, add forward declaration.
11645 * defs.h (do_my_cleanups): Delete declaration.
11646
162467d3
EZ
116472004-01-02 Eli Zaretskii <eliz@elta.co.il>
11648
11649 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11650 bfd/ChangeLog-0203.
11651
78434e59
MK
116522004-01-02 Mark Kettenis <kettenis@gnu.org>
11653
11654 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11655 in <machine/reg.h>.
11656 * configure, config.in: Regenerate.
11657
48efe704
AC
11658For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11659tui/ChangeLog-1998-2003.
c906108c
SS
11660\f
11661Local Variables:
11662mode: change-log
11663left-margin: 8
11664fill-column: 74
11665version-control: never
11666End:
This page took 1.117162 seconds and 4 git commands to generate.