2004-09-02 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c185a355
AC
12004-09-02 Andrew Cagney <cagney@gnu.org>
2
458ed000
AC
3 * config/powerpc/tm-ppcle-sim.h: Delete.
4 * config/powerpc/tm-ppcle-eabi.h: Delete.
5 * config/powerpc/tm-nbsd.h: Delete.
6 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
7 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
8 tm-ppcle-eabi.h.
9
f14375f3
AC
10 * config/i386/nto.mh (NAT_FILE): Delete.
11 * config/i386/nm-nto.h: Delete.
12
c34d127c
AC
13 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
14 * config/m68k/tm-os68k.h: Ditto.
15 * config/m68k/tm-monitor.h: Ditto.
16 * config/m68k/tm-cisco.h: Ditto.
17 * config/m68k/st2000.mt (TM_FILE): Delete.
18 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
19 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
20 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
21 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
22
f7f0fe03
AC
23 * config/m68k/tm-st2000.h: Delete.
24 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
25 * config/sparc/fbsd.mt (TM_FILE): Delete.
26 * config/sparc/tm-fbsd.h: Delete.
27
a2558533
AC
28 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
29 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
30 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
31
b78960be
AC
32 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
33 GDB_TM_FILE and GDB_XM_FILE.
34 * gdbarch.c: Re-generate.
35 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
36 quotes in macro definition.
37 * configure.in: Re-generate.
38
4d60522e
AC
39 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
40 validating architecture methods.
41 * gdbarch.c: Re-generate.
42
5010d38b
AC
43 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
44 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
45 GDB_MULTI_ARCH_PARTIAL.
46 * gdbarch.h: Re-generate.
47
c185a355
AC
48 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
49 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
50 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
51 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
52 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
53 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
54 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
55 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
56 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
57 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
58 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
59 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
60
14aaa6ab
AC
612004-09-01 Andrew Cagney <cagney@gnu.org>
62
63 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
64 and main_func_highpc.
65 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
66 * objfiles.c (init_entry_point_info, objfile_relocate): Update
67 * nlmread.c (nlm_symfile_read): Update.
68
a343eb3c
JB
692004-09-01 Joel Brobecker <brobecker@gnat.com>
70
71 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
72 (mips_insn32_frame_cache): Inline call to find_proc_desc.
73 (find_proc_desc): Remove dead code.
74
4fbbbd07
JB
752004-09-01 Joel Brobecker <brobecker@gnat.com>
76
77 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
78
84acb35a
JJ
792004-09-01 Jeff Johnston <jjohnstn@redhat.com>
80
81 * observer.sh: Add struct so_list declaration.
82 * Makefile.in: Add dependencies on observer.h for solib.c and
83 breakpoint.c.
84 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
85 function.
86 (_initialize_breakpoint): Register
87 disable_breakpoints_in_unloaded_shlib as an observer of the
88 "solib unloaded" observation event.
89 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
90 call decode_line_1 so unfound breakpoint errors are silent.
91 * solib.c (update_solib_list): When a solib is discovered to have
92 been unloaded by the program, notify all observers of the
93 "solib unloaded" observation event.
94
c8cd9f6c
AC
952004-09-01 Andrew Cagney <cagney@gnu.org>
96
97 * frame.c: Include "objfiles.h".
98 (inside_main_func): New function.
99 (get_prev_frame): Use new inside_main_func.
100 * Makefile.in (frame.o): Update dependencies.
101 * defs.h (inside_main_func): Delete declaration.
102 * blockframe.c (inside_main_func): Delete function.
103
1168df01
JB
1042004-08-31 Jim Blandy <jimb@redhat.com>
105
106 * dwarf2read.c (is_vtable_name): New function, based on logic from
107 read_structure_type, but passing the correct length to strncmp,
108 and using 'sizeof' instead of 'strlen'.
109 (read_structure_type): Call it.
110
f14f9744
JB
1112004-08-31 Joel Brobecker <brobecker@gnat.com>
112
113 * config/powerpc/aix.mh: Add comment.
114
386d4518
PG
1152004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
116
117 * MAINTAINERS: Add self to Write-After-Approval.
118
7d97d5e2
MI
1192004-08-30 Manoj Iyer <manjo@austin.ibm.com>
120
121 * MAINTAINERS: Add self to Write-After-Approval.
122
68f53502
AC
1232004-08-30 Andrew Cagney <cagney@gnu.org>
124
125 Fix PR breakpoints/1757.
126 * infrun.c (struct execution_control_state): Replace
127 remove_breakpoints_on_following_step with
128 step_after_step_resume_breakpoint.
129 (init_execution_control_state): Update.
130 (handle_inferior_event): For signals, when stepping off a
131 breakpoint, set step_after_step_resume_breakpoint. When
132 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
133 (keep_going): Delete code handling
134 remove_breakpoints_on_following_step.
135
7ca2d3a3
DL
1362004-08-29 David Lecomber <david@streamline-computing.com>
137
138 Fix PR gdb/648
139 * language.h (enum array_ordering): New enum.
140 * language.h (struct language_defn): New la_array_ordering
141 attribute.
142 * language.c (unknown_language_defn, auto_language_defn)
143 (local_language_defn): Ditto.
144 * ada-lang.c (ada_language_defn): Ditto.
145 * c-lang.c (c_language_defn, cplus_language_defn)
146 (asm_language_defn, minimal_language_defn): Ditto.
147 * f-lang.c (f_language_defn): Ditto.
148 * jv-lang.c (java_language_defn): Ditto.
149 * m2-lang.c (f_language_defn): Ditto.
150 * objc-lang.c (objc_language_defn): Ditto.
151 * p-lang.c (pascal_language_defn): Ditto.
152 * scm-lang.c (scm_language_defn): Ditto.
153 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
154 oriented large to small in type structure.
155 * dwarf2read.c (read_array_order): New function.
156 (read_array_type): Use read_array_order to check row/column
157 major ordering.
158
e354df01
NW
1592004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
160
161 * target.c (target_resize_to_sections): Check
162 current_target.to_sections for an old value when updating.
163
9185ddce
JB
1642004-08-27 Joel Brobecker <brobecker@gnat.com>
165
166 * procfs.c (dbx_link_bpt_addr): New static global variable.
167 (dbx_link_shadow_contents): New static global variable.
168 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
169 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
170 if we just hit it.
171 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
172 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
173 from run to run.
174 (procfs_create_inferior): Remove syssgi syscall-exit notifications
175 after the inferior has been forked.
176 (remove_dbx_link_breakpoint): New function.
177 (dbx_link_addr): New function.
178 (insert_dbx_link_bpt_in_file): New function.
179 (insert_dbx_link_bpt_in_region): New function.
180 (insert_dbx_link_breakpoint): New function.
181 (proc_trace_syscalls_1): New function, extracted from
182 proc_trace_syscalls.
183 (proc_trace_syscalls): Replace extract code by call to
184 proc_trace_syscalls_1.
185 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
186 is no longer valid.
187
e6742ace
JB
1882004-08-25 Jim Blandy <jimb@redhat.com>
189
190 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
191
8fb3e588
AC
1922004-08-25 Andrew Cagney <cagney@gnu.org>
193
629a41ee
AC
194 * infrun.c (struct execution_control_state): Delete field
195 "stepping_through_sigtramp".
196 (init_execution_control_state): Do not set same.
197 (context_switch): Do not pass same to save_infrun_state and
198 load_infrun_state.
199 * gdbthread.h (struct thread_info): Delete field
200 stepping_through_sigtramp.
201 (save_infrun_state, load_infrun_state): Delete parameter
202 stepping_through_sigtramp.
203 * thread.c (load_infrun_state, save_infrun_state): Update.
204
8fb3e588
AC
205 * infrun.c: Re-indent. Move expression operators to the beginning
206 of the line. Remove long disabled #if 0 code.
207
49c54768
AC
2082004-08-24 Andrew Cagney <cagney@gnu.org>
209
210 * doublest.h (floatformat_ieee_quad): Rename
211 floatformat_ia64_quad.
212 * doublest.c (floatformat_ieee_quad): Rename
213 floatformat_ia64_quad.
214 (_initialize_doublest): Update.
215
5ca2e327
JB
2162004-08-24 Jim Blandy <jimb@redhat.com>
217
87808bd6
JB
218 * dwarf2expr.h (struct dwarf_expr_context): New members
219 'num_pieces' and 'pieces', for returning the result of an
220 expression that uses DW_OP_piece.
221 (struct dwarf_expr_piece): New struct type.
222 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
223 pieces.
224 (free_dwarf_expr_context): Free pieces, if any.
225 (add_piece): New function.
226 (execute_stack_op): Implement DW_OP_piece.
227 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
228 expression is a list of pieces, print an error message.
229 (dwarf2_loc_desc_needs_frame): If the expression yields
230 pieces, and any piece is in a register, then we need a frame.
231
5ca2e327
JB
232 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
233 the stack until we've decided what sort of result the evaluation
234 has produced. Use separate variables, with more specific names.
235
2afeb6b8
RE
2362004-08-23 Richard Earnshaw <rearnsha@arm.com>
237
238 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
239 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
240 (arm_netbsd_init_abi_common): Register them.
241
5885ab49
MK
2422004-08-22 Mark Kettenis <kettenis@gnu.org>
243
fda820a6
MK
244 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
245
1c5bf419
MK
246 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
247 safe_frame_unwind_memory instead of target_read_memory.
248
8cbba7c8
MK
249 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
250 Reorder includes.
251 (fetch_register, store_register): Remove prototypes.
252 (child_resume): Reorganize code and comments such that it is
253 grouped a bit more logically.
254 (attach): Explicitly compare errno against 0.
255 (detach): Likewise. Use perror_with_name instead of
256 print_sys_errmsg.
257 * Makefile.in (infptrace.o): Update dependencies.
258
c5fa4245
MK
259 * ia64-linux-nat.c: Update copyright year.
260 (fetch_debug_register, store_debug_register)
261 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
262 PTRACE_TYPE_ARG3.
263 * config/ia64/nm-linux.h: Update copyright year.
264 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
265
387c058c
MK
266 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
267 from CORE_ADDR to struct frame_info *. Use
268 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
269 (amd64_linux_sigtramp_p): Adjust for changed signature of
270 and64_linux_sigtramp_start
271
277215a6
MK
272 * gdb_ptrace.h: GNU/Linux.
273
25f6178e
MK
274 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
275 Remove defines.
276
652fc137
MK
277 * infptrace.c: Include "gdb_assert.h".
278 (PTRACE_XFER_TYPE): Remove define.
279 (offsetof): Only define if U_REGS_OFFSET isn't defined.
280 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
281 Tweak comment.
282 (fetch_inferior_registers, store_inferior_registers): Remove
283 redundant culry braces. Tweak comment. s/regno/regnum.
284 * Makefile.in (infptrace.o): Update dependencies.
285
5885ab49
MK
286 * configure.in: Change test for return type of ptrace to default
287 to `long' instead of `int'.
288 * configure: Regenerate.
289
11003ae3
MK
2902004-08-21 Mark Kettenis <kettenis@gnu.org>
291
6b95110c
MK
292 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
293
bcb3dc3d
MK
294 * configure.in: Check for ttrace function.
295 * configure, config.in: Regenerate.
296
11003ae3
MK
297 * gdb_ptrace.h: New file.
298 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
299 <sys/ptrace.h>.
300 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
301 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
302 (attach): Don't define PT_ATTACH.
303 (detach): Don't define PT_DETACH.
304 * Makefile.in (gdb_ptrace_h): New variable.
305 (infptrace.o): Update dependencies.
306
f8707cac
MK
3072004-08-16 Mark Kettenis <kettenis@gnu.org>
308
309 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
310 instead of `int' if not already defined.
311 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
312 PTRACE_TYPE_ARG3.
313 * infptrace.c (call_ptrace): Revert change that replaced
314 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
315
655c5466
MK
3162004-08-15 Mark Kettenis <kettenis@gnu.org>
317
156e5ba7
MK
318 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
319 Remove defines.
320
de9a9e51
MK
321 * linux-nat.c (kill_inferior): Add missing third and fourth
322 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
323
88800403
MK
324 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
325 PTRACE_TYPE_RET.
326
849a1d7c
MK
327 * proc-why.c (proc_prettyfprint_why): Fix format string.
328
61ad16d1
MK
329 * solib-osf.c (osf_current_sos): Remove unsused label.
330
a6ed5501
MK
331 * configure.in: Add <ncurses/ncurses.h> to the list of possible
332 curses headers.
333 * configure, config.in: Regenerate.
334 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
335 <ncurses/ncurses.h>.
336
016ddeca
MK
337 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
338 * config/nm-nbsd.h: Update copyright year.
339 (PTRACE_ARG3_TYPE): Remove define.
340
49ec097f
MK
341 * sparc-nat.c (fetch_inferior_registers)
342 (store_inferior_registers, sparc_xfer_wcookie):
343 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
344
9f8e0089
MK
345 * alphabsd-nat.c (fetch_inferior_registers):
346 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
347 PTRACE_TYPE_ARG3.
348 * amd64bsd-nat.c (fetch_inferior_registers)
349 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
350 PTRACE_TYPE_ARG3.
351 * armnbsd-nat.c: Update copyright year.
352 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
353 (store_register, store_regs, store_fp_register, store_fp_regs):
354 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
355 * hppabsd-nat.c (fetch_inferior_registers)
356 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
357 PTRACE_TYPE_ARG3.
358 * i386bsd-nat.c (fetch_inferior_registers)
359 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
360 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
361 * m68kbsd-nat.c (fetch_inferior_registers)
362 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
363 PTRACE_TYPE_ARG3.
364 * m88kbsd-nat.c (fetch_inferior_registers)
365 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
366 PTRACE_TYPE_ARG3.
367 * mipsnbsd-nat.c: Update copyright year.
368 (fetch_inferior_registers, store_inferior_registers):
369 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
370 * ns32knbsd-nat.c: Update copyright year.
371 (fetch_inferior_registers, store_inferior_registers):
372 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
373 * ppcnbsd-nat.c (fetch_inferior_registers):
374 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
375 PTRACE_TYPE_ARG3.
376 * ppcobsd-nat.c (fetch_inferior_registers):
377 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
378 PTRACE_TYPE_ARG3.
379 * shnbsd-nat.c: Update copyright year.
380 (fetch_inferior_registers, store_inferior_registers):
381 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
382 * vaxbsd-nat.c (fetch_inferior_registers)
383 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
384 PTRACE_TYPE_ARG3.
385
655c5466
MK
386 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
387 PTRACE_TYPE_ARG3.
388 * infptrace.c (call_ptrace, child_resume, attach, detach)
389 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
390 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
391 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
392 PTRACE_TYPE_ARG3.
393
c40d0d10
MK
3942004-08-14 Mark Kettenis <kettenis@gnu.org>
395
5cb0ff31
MK
396 * defs.h: Remove out-of-date comment.
397 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
398 [!GETENV_PROVIDED] (getenv): Remove prototype.
399
5f0f34cb
MK
400 * standalone.c: Remove file.
401 * Makefile.in (standalone.o): Remove dependency.
402
7532965f
MK
403 * i386-linux-nat.c (dummy_sse_values): Remove function and
404 prototype.
405 (i386_linux_dr_get): Fix typo in comment.
406 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
407
1bdc6c53
MK
408 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
409
c40d0d10
MK
410 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
411 from declaration.
412 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
413 from definition.
414
64218d3e
MK
4152004-08-13 Mark Kettenis <kettenis@gnu.org>
416
417 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
418 parenthesis in definition.
419 * configure: Regenerated.
420
926c94e7
MC
4212004-08-12 Michael Chastain <mec.gnu@mindspring.com>
422
423 * PROBLEMS: Mention build/1411.
424
69489883
NN
4252004-08-09 Robert Millan <robertmh@gnu.org>
426
427 Committed by Nathanael Nerode.
428 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
429 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
430
ebb7c577
AC
4312004-08-12 Andrew Cagney <cagney@gnu.org>
432
433 * NEWS: Mention fixes in GDB 6.2.1.
434 * PROBLEMS: Remove mention of mips-irix.
435
232d697c
JB
4362004-08-11 Joel Brobecker <brobecker@gnat.com>
437
438 * config/powerpc/xm-aix.h: Delete.
439 * config/powerpc/aix.mh (MH_FILE): Remove.
440 * config/powerpc/aix432.mh (MH_FILE): Remove.
441
72f4e82b
JB
4422004-08-11 Joel Brobecker <brobecker@gnat.com>
443
444 * config/powerpc/aix.mh: Remove obsolete comment.
445 * config/powerpc/aix432.mh: Likewise.
446
0687ccb2
JB
4472004-08-11 Joel Brobecker <brobecker@gnat.com>
448
449 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
450
dbf3ada7
JB
4512004-08-11 Joel Brobecker <brobecker@gnat.com>
452
e08e1886
JB
453 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
454 this file is now empty.
455 * config/xm-aix4.h: Remove, this file is no longer included
456 anywhere.
457
4582004-08-11 Joel Brobecker <brobecker@gnat.com>
459
460 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
461 that file is now empty.
dbf3ada7
JB
462 (termdef): Remove prototype, function no longer used.
463
4c525ef6
JB
4642004-08-11 Joel Brobecker <brobecker@gnat.com>
465
466 * doc/gdbint.texinfo (Host Definition): Remove documentation
467 for USE_O_NOCTTY, no longer used.
468 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
469 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
470
82e0b968
JB
4712004-08-11 Joel Brobecker <brobecker@gnat.com>
472
473 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
474 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
475 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
476
f2acbe1c
MK
4772004-08-11 Mark Kettenis <kettenis@gnu.org>
478
daa98270
MK
479 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
480 instead of FIVE_ARG_PTRACE.
481
f2acbe1c
MK
482 * inflow.c (O_NOCTTY): Define to zero if not already defined.
483 (new_tty): Use O_NOCTTY unconditionally.
484
cc377e6b
MK
4852004-08-10 Mark Kettenis <kettenis@gnu.org>
486
487 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
488 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
489 fflush on stdout.
490
3bcc18fa
JB
4912004-08-10 Joel Brobecker <brobecker@gnat.com>
492
493 * xcoff_symfile_finish: Replace last call to xmfree by call
494 to xfree.
495
7936743b
AC
4962004-08-10 Andrew Cagney <cagney@gnu.org>
497
cc503c8a
AC
498 * main.c (captured_main): Delete call to init_malloc.
499 * defs.h (init_malloc): Delete declaration.
500 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
501 (init_malloc): Delete functions.
502
2dc74dc1
AC
503 * defs.h (xmfree): Delete.
504 * utils.c (xmfree): Delete function.
505 (xfree): Inline calls to xmfree and mfree.
506 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
507 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
508 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
509 * somread.c (som_symfile_finish): Ditto.
510 * objfiles.c (allocate_objfile, free_objfile):
511 * nlmread.c (nlm_symfile_finish): Ditto.
512 * hpread.c (hpread_symfile_finish): Ditto.
513 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
514 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
515 * coffread.c (coff_symfile_finish): Ditto.
516
aa2ee5f6
AC
517 * defs.h (xmcalloc): Delete declaration.
518 * utils.c (xmcalloc): Delete.
519 (xcalloc): Inline calls to xmcalloc and mcalloc.
520 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
521 xcalloc and xfree.
522 * symtab.c (create_demangled_names_hash): Ditto.
523
0efffb96
AC
524 * defs.h (xmrealloc): Delete.
525 * utils.c (xmrealloc): Delete.
526 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
527 * symmisc.c (extend_psymbol_list): Use xrealloc.
528 * source.c (find_source_lines): Ditto.
529 * hpread.c (hpread_lookup_type): Ditto.
530 * dbxread.c (add_bincl_to_list): Ditto.
531
7936743b
AC
532 * utils.c (xmmalloc): Delete.
533 (xmalloc): Inline xmmalloc and mmalloc calls.
534 (msavestring): Use xmalloc.
535 * defs.h (xmmalloc): Delete declaration.
536 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
537 xmmalloc.
538 * symmisc.c (extend_psymbol_list): Ditto.
539 * symfile.c (init_psymbol_list): Ditto.
540 * source.c (find_source_lines): Ditto.
541 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
542 * elfread.c (elf_symtab_read): Ditto.
543 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
544 * coffread.c (coff_symfile_init): Ditto.
545
252ab814
DC
5462004-08-10 David Carlton <carlton@bactrian.org>
547
548 * MAINTAINERS: Remove David Carlton from c++ testsuite
549 maintainers.
550
8f5ba92b
JG
5512004-08-10 Jerome Guitton <guitton@gnat.com>
552
553 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
554 print a line feed before the prompt.
555
21749010
MK
5562004-08-10 Mark Kettenis <kettenis@gnu.org>
557
558 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
559
1f011ce2
JB
5602004-08-09 Joel Brobecker <brobecker@gnat.com>
561
562 General cleanup of the AIX xm include file:
563 * config/xm-aix4.h (fd_set): Remove undefine.
564 Remove include of <sys/select.h>.
565 (HAVE_TERMIO): Remove define.
566 (USG): Likewise.
567 (NULL): Remove redefine.
568 (alloca): Remove #pragma.
569 (vfork): Remove define.
570 (termdef): Remove.
571 (SIGWINCH_HANDLER): Remove.
572 (SIGWINCH_HANDLER_BODY): Remove.
573
cf4e7692
MK
5742004-08-09 Mark Kettenis <kettenis@gnu.org>
575
576 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
577 GDB_OSABI_OPENBSD_ELF.
578
ac5754fa
MK
5792004-08-07 Robert Millan <robertmh@gnu.org>
580
581 * bsd-kvm.c: Check for nlist.h before including it.
582
086ec9eb
MK
5832004-08-09 Mark Kettenis <kettenis@gnu.org>
584
bbe06c74
MK
585 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
586 sigcontext' offset consistency checks for ancient BSD.
587
3aa7b3b3
MK
588 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
589
086ec9eb
MK
590 * configure.in: Check for <sys/types.h>. Check return and
591 argument types of ptrace.
592 * configure, config.in: Regenerate.
593
09991fa0
JB
5942004-08-09 Jim Blandy <jimb@redhat.com>
595
596 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
597 rs6000_register_sim_regno): Doc fixes.
598
fed7ba43
JB
5992004-08-08 Joel Brobecker <brobecker@gnat.com>
600
601 * mips-tdep.c: Include "floatformat.h".
602 (n32n64_floatformat_always_valid): New function.
603 (floatformat_n32n64_long_double_big): New constant.
604 (mips_gdbarch_init): Set size and format of long double
605 for N32 and N64 ABIs.
606 * Makefile.in (mips-tdep.o): Update dependencies.
607
456fcf94
AC
6082004-08-08 Andrew Cagney <cagney@gnu.org>
609
2f9b146e
AC
610 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
611 print. Improve script's error messages.
612 * gdbarch.h: Re-generate.
613
456fcf94
AC
614 * gdbarch.sh (pformat): New function.
615 (float_format, double_format, long_double_format): List with bit
616 members. Use pformat when printing.
617 * gdbarch.c, gdbarch.h: Re-generate.
618
69e9e646
NW
6192004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
620
621 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
622 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
623 (ppcnbsd_supply_pcb): New function.
624 (_initialize_ppcnbsd_nat): New prototype and function.
625 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
626 (LOADLIBES): New variable.
627 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
628
5ef2d0aa
AC
6292004-08-08 Andrew Cagney <cagney@gnu.org>
630
631 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
632 (builtin_type_ieee_double, builtin_type_ia64_quad)
633 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
634 BE/LE floating-point types.
635 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
636 (builtin_type_ieee_double, builtin_type_ia64_quad)
637 (builtin_type_ia64_spill): Declare.
638 * doublest.c (_initialize_doublest, floatformat_ieee_single)
639 (floatformat_ieee_double, floatformat_arm_ext)
640 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
641 of LE/BE floatformats.
642 * doublest.h: (struct floatformat, floatformat_ieee_single)
643 (floatformat_ieee_double, floatformat_arm_ext)
644 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
645
5c7f2947
MK
6462004-08-08 Mark Kettenis <kettenis@gnu.org>
647
ecac404d
MK
648 * i386gnu-nat.c (gnu_store_registers): Fix typo.
649
9b8607ce
MK
650 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
651 instead of regcache_raw_supply when storing the registers.
652
f6052080
MK
653 * i386gnu-nat.c: Update copyright year.
654 (gnu_store_registers): Don't use deprecated_registers and
655 deprecated_registers_valid. Use regcache_valid_p and
656 regcache_raw_supply instead.
657
17777823
MK
658 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
659 frame_pc_unwind.
660
5240ceac
MK
661 * procfs.c (procfs_pid_to_str): Remove redundant and unused
662 variables. Incapitalized "process".
663
5c7f2947
MK
664 * configure.in: Add cursesX to the list of possible curses libs.
665 Add cursesX.h to the list of possible curses headers.
666 * configure, config.in: Regenerate.
667
da7d81e3
NW
6682004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
669
670 * configure.in: Test for struct lwp in <sys/lwp.h>.
671 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
672 the offset of l_addr in struct lwp.
673
7f245d65
NW
6742004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
675
676 * bsd-kvm.c: Include "gdbcore.h"
677 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
678
47b3f456
AC
6792004-08-07 Andrew Cagney <cagney@gnu.org>
680
70bd8e24
AC
681 * gdbtypes.c (build_flt, build_complex): New functions.
682 (gdbtypes_post_init): Use.
683
9b0dea39
AC
684 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
685
5cf7abac
AC
686 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
687 through to builtin_type_uint128.
688
64d2b26d
AC
689 * c-exp.y: Use builtin_type function to obtain builtin types.
690
7ad6570d
AC
691 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
692 builtin_uint128.
693 * gdbtypes.c (gdbtypes_post_init): Update.
694 (build_gdbtypes): Move initialization of builtin_type_int0
695 through to builtin_type_uint128 from here ...
696 (_initialize_gdbtypes): ... to here.
697 * d10v-tdep.c (d10v_register_type): Update.
698
47b3f456
AC
699 * doublest.c: Update copyright.
700 (floatformat_from_length): Call error when floatformat is NULL.
701 (extract_floating_by_length): Remove NULL fmt check.
702 (store_floating_by_length): Ditto.
703
0a8146bf
AC
7042004-08-07 Andrew Cagney <cagney@gnu.org>
705
706 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
707 that the register is valid.
708
c0ccb908
MK
7092004-08-05 Mark Kettenis <kettenis@chello.nl>
710
8e6bed05
MK
711 * i386-linux-tdep.c (i386_linux_sigtramp_start)
712 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
713 struct frame_info *. Use safe_frame_unwind_memory instead of
714 deprecated_read_memory_nobpt.
715 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
716 changed signature of i386_linux_sigtramp_start and
717 i386_linux_rt_sigtramp_start.
718
24f9f5e3
MK
719 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
720 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
721 instead of deprecated_read_memory_nobpt.
722 (i386nbsd_sigtramp_p): Adjust for changed signature of
723 i386nbsd_sigtramp_offset.
724
c822af0c
MK
725 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
726 safe_frame_unwind_memory instead of target_read_memory.
727
c0ccb908
MK
728 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
729 !NO_SYS_FILE.
730 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
731 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
732 (_initialize_kernel_u_addr): Remove prototype and function.
733 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
734 !NO_SYS_FILE.
735 * xcoffread.c: Likewise.
736
b9e1c0d6
MK
7372004-08-06 Mark Kettenis <kettenis@gnu.org>
738
739 * vax-nat.c: New file.
740 * vaxbsd-nat.c: Tweak comment.
741 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
742 vaxnbsd-tdep.c.
743 (vax-nat.o): New dependency.
744 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
745 (vax-*-ultrix2*): Remove.
746 * config/vax/vax.mh: New file.
747 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
748 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
749 (vax_register_u_addr): New prototype.
750 (REGISTER_U_ADDR): Define using vax_register_u_addr.
751 * config/vax/vaxult2.mh: Remove file.
752 * config/vax/vaxult.mh: Remove file.
753 * config/vax/vaxbsd.mh: Remove file.
754 * config/vax/vax.mt (TM_FILE): Remove.
755 * config/vax/tm-vaxbsd.h: Remove file.
756
9ad7bec7
JB
7572004-08-06 Joel Brobecker <brobecker@gnat.com>
758
759 * aix-thread.c (get_signaled_thread): New function.
760 (iter_trap): Delete, no longer used.
761 (iter_tid): New function.
762 (pd_update): Find the thread that received the SIGTRAP signal
763 by first locating the kernel thread, and then finding its
764 associated thread.
765
bf0d233d
UW
7662004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
767
768 * lin-lwp.c (child_wait): Continue inferior after processing
769 PTRACE_EVENT_CLONE event.
770
d0f853e1
NN
7712004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
772
773 * MAINTAINERS: Add self to Write-After-Approval.
774
ab14aeb0
JJ
7752004-08-05 Jeff Johnston <jjohnstn@redhat.com>
776
777 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
778 libunwind-xxxx.so" where xxxx is UNW_TARGET.
779
9c8dbfa9
AC
7802004-08-05 Andrew Cagney <cagney@gnu.org>
781
c8f3ca46
AC
782 * config/xm-sysv4.h: Delete file.
783 * config/mips/xm-irix5.h: Delete file.
784 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
785 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
786 * config/ia64/xm-aix.h: Delete file.
787 * config/ia64/aix.mh (XM_FILE): Delete.
788 * config/pa/xm-hppah.h: Delete file.
789 * config/pa/hpux11w.mh (XM_FILE): Delete.
790 * config/pa/hpux11.mh (XM_FILE): Delete.
791 * config/pa/hpux1020.mh (XM_FILE): Delete.
792 * config/pa/hppahpux.mh (XM_FILE): Delete.
793
5f7daaff
AC
794 * config/alpha/xm-alphalinux.h: Delete file.
795 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
796 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
797 * config/alpha/xm-alphaosf.h: Delete file.
798 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
799 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
800 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
801 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
802
69babf95
AC
803 * config/i386/xm-i386v.h: Delete file.
804 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
805 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
806 * config/i386/xm-i386sco.h: Delete file.
807 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
808 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
809 * config/i386/xm-i386v4.h: Delete file.
810 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
811 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
812 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
813 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
814
6f009c8a
AC
815 * config/vax/xm-vax.h: Delete file.
816 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
817 * config/vax/xm-vaxult2.h: Delete file.
818 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
819 * config/vax/vaxult2.mh (XM_FILE): Delete.
820 * config/vax/xm-vaxult.h: Delete file.
821 * config/vax/vaxult.mh (XM_FILE): Delete.
822 * config/vax/xm-vaxbsd.h: Delete file.
823 * config/vax/vaxbsd.mh (XM_FILE): Delete.
824
9c8dbfa9
AC
825 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
826 * gdbarch.h, gdbarch.c: Re-generate.
827 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
828 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
829 * frame.h: Delete deprecated_read_fp from comments.
830 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
831 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
832
84367a3e
MK
8332004-08-04 Mark Kettenis <kettenis@gnu.org>
834
9c8e3411
MK
835 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
836 trampoline in OpenBSD 3.5-current.
837
b87bc0d8
MK
838 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
839 SSE registers.
840
84367a3e
MK
841 * Makefile.in: Remove embedded page breaks.
842
a44bddec
JB
8432004-08-04 Jim Blandy <jimb@redhat.com>
844
7ab3286f
JB
845 * regcache.c (regcache_raw_read): Assert that, after calling
846 target_fetch_registers, the register we're reading is cached.
847
a44bddec
JB
848 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
849 a call to 'internal_error', with a more helpful error message.
850 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 851 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 852
35124113
AC
8532004-08-04 Andrew Cagney <cagney@gnu.org>
854
855 * Makefile.in: Update dependencies.
856
9f643768
JB
8572004-08-04 Jim Blandy <jimb@redhat.com>
858
6ced10dd
JB
859 Change the layout of the PowerPC E500 raw register cache to allow
860 the lower 32-bit halves of the GPRS to be their own raw registers,
861 not pseudoregisters.
862 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
863 add ppc_ev0_upper_regnum flag.
864 * rs6000-tdep.c: #include "reggroups.h".
865 (spe_register_p): Recognize the ev upper half registers as SPE
866 registers.
867 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
868 registers.
869 (e500_move_ev_register): New function.
870 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
871 vector registers are the pseudo-registers now, formed by splicing
872 together the gprs and the upper-half registers.
873 (e500_register_reggroup_p): New function.
874 (P): Macro deleted.
875 (P8, A4): New macro.
876 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
877 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
878 macros.
879 (registers_e500): Rearrange register set so that the raw register
880 set contains 32-bit GPRs and upper-half registers, and the SPE
881 vector registers become pseudo-registers.
882 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
883 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
884 register numbers are now the same for the E500 as they are for
885 other PowerPC variants. Register e500_register_reggroup_p as the
886 register group function for the E500.
887 * Makefile.in (rs6000-tdep.o): Update dependencies.
888
889 Adapt PPC E500 native support to the new raw regcache layout.
890 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
891 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
892 (fetch_spe_register, store_spe_register): Handle fetching/storing
893 all the SPE registers at once, if regno == -1. These now take
894 over the job of fetch_spe_registers and store_spe_registers.
895 (fetch_spe_registers, store_spe_registers): Deleted.
896 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
897 unconditionally; they're always raw. Fetch/store SPE upper half
898 registers, if present, instead of ev registers.
899 (fetch_register, store_register): Remove sanity checks: gprs are
900 never pseudo-registers now, so we never need to even mention any
901 registers that are ever pseudoregisters.
902
9f643768
JB
903 Use a fixed register numbering when communicating with the PowerPC
904 simulator.
905 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
906 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
907 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
908 New functions.
909 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
910 init_sim_regno_table.
911 * Makefile.in (gdb_sim_ppc_h): New variable.
912 (rs6000-tdep.o): Update dependencies.
913
1e2279c8
AC
9142004-08-02 Andrew Cagney <cagney@gnu.org>
915
1d94326f
AC
916 * cris-tdep.c (cris_register_size): Restore function, still used
917 locally.
918
331ae7ed
AC
919 * gdbarch.sh (deprecated_target_read_fp)
920 (deprecated_frame_locals_address, deprecated_frame_args_address)
921 (deprecated_frame_chain_valid, deprecated_frame_chain)
922 (deprecated_init_extra_frame_info, deprecated_pop_frame)
923 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
924 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
925 * gdbarch.h, gdbarch.c: Re-generate.
926 * regcache.c (deprecated_read_fp): Do not call
927 DEPRECATED_TARGET_READ_FP_P.
928 * infcmd.c (default_print_registers_info): Do not call
929 DEPRECATED_DO_REGISTERS_INFO.
930 * frame-base.c (default_frame_locals_address): Do not call
931 DEPRECATED_FRAME_LOCALS_ADDRESS.
932 (default_frame_args_address): Do not call
933 DEPRECATED_FRAME_ARGS_ADDRESS.
934
1e2279c8
AC
935 * gdbarch.sh (deprecated_register_raw_size)
936 (deprecated_register_virtual_size:int): Delete.
937 * gdbarch.h, gdbarch.c: Re-generate.
938 * cris-tdep.c (cris_register_size): Delete.
939 (cris_gdbarch_init): Update.
940 * alpha-tdep.c (alpha_register_raw_size)
941 (alpha_register_virtual_size): Delete.
942 (alpha_gdbarch_init): Update.
943
a90c06b4
AC
944 * gdbarch.sh (deprecated_register_virtual_type)
945 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
946 (deprecated_dummy_write_sp): Delete.
947 * gdbarch.h, gdbarch.c: Re-generate.
948
f42accbe
AC
949 * gdbarch.sh (deprecated_register_bytes): Delete.
950 * gdbarch.h, gdbarch.c: Re-generate.
951 * regcache.c (deprecated_register_bytes): New function.
952 * regcache.h (deprecated_register_bytes): Declare.
953 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
954 * v850-tdep.c (v850_gdbarch_init): Update.
955 * sh64-tdep.c (sh64_gdbarch_init): Update.
956 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
957 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
958 * mcore-tdep.c (mcore_gdbarch_init): Update.
959 * cris-tdep.c (cris_gdbarch_init): Update.
960 * arm-tdep.c (arm_gdbarch_init): Update.
961 * remote.c (init_remote_state): Update.
962 * remote-vx.c (vx_prepare_to_store): Update.
963 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
964 * irix5-nat.c (fetch_core_registers): Update.
965 * cris-tdep.c (cris_register_bytes_ok): Update.
966 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
967
45c9dd44
AC
968 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
969 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
970 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
971 (mips_insn16_frame_base_address, mips_insn16_frame_base)
972 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
973 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
974 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
975 (mips_insn32_frame_base_address, mips_insn32_frame_base)
976 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
977 with mips_insn16 and mips_insn32.
978
3acba339
AC
979 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
980 * rs6000-tdep.c (rs6000_push_dummy_call)
981 (rs6000_extract_return_value): Use register_size.
982 * xstormy16-tdep.c (xstormy16_get_saved_register)
983 (xstormy16_extract_return_value): Ditto.
984 * valops.c (value_assign): Ditto.
985 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
986 * v850-tdep.c (v850_extract_return_value): Ditto.
987 * tracepoint.c (collect_symbol): Ditto.
988 * target.c (debug_print_register): Ditto.
989 * stack.c (frame_info): Ditto.
990 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
991 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
992 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
993 (store_register_using_P): Ditto.
994 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
995 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
996 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
997 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
998 * regcache.c (deprecated_read_register_bytes)
999 (deprecated_write_register_bytes, read_register)
1000 (write_register): Ditto.
1001 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1002 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1003 * monitor.c (monitor_supply_register, monitor_fetch_register)
1004 (monitor_store_register): Ditto.
1005 * mn10300-tdep.c (mn10300_pop_frame_regular)
1006 (mn10300_print_register): Ditto.
1007 * mipsv4-nat.c (fill_fpregset): Ditto.
1008 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1009 (mips64_fill_fpregset): Ditto.
1010 * mi/mi-main.c (register_changed_p, get_register)
1011 (mi_cmd_data_write_register_values): Ditto.
1012 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1013 * irix5-nat.c (fill_gregset, fetch_core_registers):
1014 * infrun.c (write_inferior_status_register): Ditto.
1015 * infptrace.c (fetch_register, store_register): Ditto.
1016 * infcmd.c (default_print_registers_info): Ditto.
1017 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1018 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1019 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1020 * hpux-thread.c (hpux_thread_fetch_registers)
1021 (hpux_thread_store_registers): Ditto.
1022 * hppah-nat.c (store_inferior_registers, fetch_register):
1023 * findvar.c (value_from_register): Ditto.
1024 * dve3900-rom.c (fetch_bitmapped_register):
1025 * cris-tdep.c (cris_gdbarch_init): Ditto.
1026 * alpha-tdep.h: Ditto.
1027 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1028
01e1877c
AC
1029 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1030 DEPRECATED_REGISTER_RAW_SIZE from comments.
1031 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1032 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1033 DEPRECATED_REGISTER_RAW_SIZE.
1034 * findvar.c (value_of_register): Simplify by assuming that the
1035 registers raw and virtual sizes are identical.
1036 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1037 comment.
1038 * arch-utils.c (generic_register_size): Simplify by assuming
1039 register_type.
1040
73f458fb
AC
1041 * regcache.c (legacy_read_register_gen, real_register)
1042 (legacy_write_register_gen): Delete, not used.
1043
336a3131
AC
1044 * regcache.c (struct regcache_descr): Delete legacy_p.
1045 (init_legacy_regcache_descr): Delete function.
1046 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1047 Do not use deprecated register functions.
1048 (regcache_raw_read, deprecated_write_register_gen):
1049 (deprecated_read_register_gen, regcache_raw_write): Delete code
1050 predicated on legacy_p.
1051 (register_size): Delete check against register raw size.
1052
c1d546cd
AC
1053 * cris-tdep.c (cris_register_type): Replace
1054 cris_register_virtual_type.
1055 (cris_gdbarch_init): Update, set register_type.
1056
48c2c0a6
AC
1057 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1058 * gdbarch.h, gdbarch.c: Re-generate.
1059 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1060 (arm_gdbarch_init) Do not set frameless function invocation.
1061 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1062 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1063 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1064 (frv_gdbarch_init): Do not set frameless function invocation.
1065 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1066 * sh-tdep.c (sh_gdbarch_init): Ditto.
1067 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1068 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1069 * avr-tdep.c (avr_gdbarch_init): Ditto.
1070
474093a6
AC
1071 * blockframe.c (legacy_frame_chain_valid): Delete function.
1072
3c109c8b
AC
1073 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1074 and pc. Update comments.
1075 (pc_in_dummy_frame): Delete function.
1076 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1077 use the "id".
1078 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1079 call_hi, top and pc, use the id.
1080 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1081
96860204
AC
1082 * dummy-frame.c: Include "gdb_string.h".
1083 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1084 (generic_save_dummy_frame_tos): Delete.
1085 (dummy_frame_push): New function, replaces above.
1086 * dummy-frame.h: Update copyright.
1087 (dummy_frame_push): Declare.
1088 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1089 (generic_save_call_dummy_addr): Delete declarations.
1090 * infcall.c: Include "dummy-frame.h".
1091 (call_function_by_hand): Add locals caller_regcache,
1092 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1093 with call to frame_save_as_regcache plus cleanup. Delete calls to
1094 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1095 Move clear_proceed_status to just before the resume, add call to
1096 dummy_frame_push (discard cleanup).
1097 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1098 (dummy-frame.o): Add $(gdb_string_h).
1099
d67ec5db
AC
11002004-08-01 Andrew Cagney <cagney@gnu.org>
1101
1102 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1103 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1104 * dummy-frame.c (find_dummy_frame): Delete.
1105 (struct dummy_frame_cache, dummy_frame_sniffer)
1106 (dummy_frame_prev_register, dummy_frame_this_id)
1107 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1108 frame unwinder using a dummy_frame_cache.
1109
a81dcb05
AC
11102004-08-01 Andrew Cagney <cagney@gnu.org>
1111
1112 * frame.h (frame_save_as_regcache): Declare.
1113 * frame.c (frame_save_as_regcache): New function.
1114 (do_frame_read_register): Replace do_frame_unwind_register.
1115 (frame_pop): Use frame_save_as_regcache.
1116 * dummy-frame.c (generic_push_dummy_frame): Use
1117 frame_save_as_regcache.
1118
aa495d11
JB
11192004-08-01 Joel Brobecker <brobecker@gnat.com>
1120
1121 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1122 file as included until we record the first line in the linetable.
1123
ff65ac78
AC
11242004-08-01 Andrew Cagney <cagney@gnu.org>
1125
1126 * frame.h (deprecated_pop_dummy_frame)
1127 (deprecated_read_register_dummy)
1128 (deprecated_generic_find_dummy_frame): Delete.
1129 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1130 (deprecated_read_register_dummy)
1131 (deprecated_find_dummy_frame_regcache)
1132 (discard_innermost_dummy)
1133 (deprecated_pop_dummy_frame): Delete.
1134 (dummy_frame_this_id): Simplify.
1135 (struct dummy_frame): Delete "fp" and "sp".
1136 (find_dummy_frame): Simplify.
1137 (generic_push_dummy_frame): Do not set "fp" or "sp".
1138 (fprint_dummy_frames): Do not print "fp" and "sp"
1139
37bdc87e
MK
11402004-08-01 Mark Kettenis <kettenis@gnu.org>
1141
1142 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1143 (struct i386_insn): New structure.
1144 (i386_match_insn): New function.
1145 (i386_frame_setup_skip_insns): New variable.
1146 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1147 array i386_frame_setup_insns of instructions that should be
1148 skipped inside the frame setup sequence.
1149
8241eaa6
AC
11502004-08-01 Andrew Cagney <cagney@gnu.org>
1151
5bc602c7
AC
1152 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1153 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1154 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1155 * stack.c (frame_info): Delete references to
1156 DEPRECATED_FRAME_INIT_SAVED_REGS and
1157 deprecated_get_frame_saved_regs.
1158 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1159 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1160 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1161 (frame_unwind_register_signed)
1162 (frame_unwind_register_unsigned)
1163 (frame_unwind_unsigned_register): Use register_size.
1164 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1165 (deprecated_frame_xmalloc_with_cleanup)
1166 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1167 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1168
03d363a1
AC
1169 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1170 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1171 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1172 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1173
8241eaa6
AC
1174 * infcall.c (call_function_by_hand): Do not use
1175 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1176 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1177 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1178 DEPRECATED_STACK_ALIGN.
1179
f00df8b7
AC
11802004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1181
1182 Committed by Andrew Cagney.
1183 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1184
eec63939
AC
11852004-08-01 Andrew Cagney <cagney@gnu.org>
1186
1187 * mips-tdep.c (mips16_frame_cache)
1188 (mips16_frame_this_id, mips16_frame_prev_register)
1189 (mips16_frame_unwind, mips16_frame_sniffer)
1190 (mips16_frame_base_address, mips16_frame_base)
1191 (mips16_frame_base_sniffer, mips32_frame_cache)
1192 (mips32_frame_this_id, mips32_frame_prev_register)
1193 (mips32_frame_unwind, mips32_frame_sniffer)
1194 (mips32_frame_base_address, mips32_frame_base)
1195 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1196 separate heuristic mips16 and mips32 unwinders.
1197 (mips_stub_frame_cache, mips_stub_frame_this_id)
1198 (mips_stub_frame_prev_register)
1199 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1200 (mips_stub_frame_base_address, mips_stub_frame_base)
1201 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1202 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1203 match true mdebug frames.
1204 (non_heuristic_proc_desc): Add forward declaration.
1205
e66299b3
AC
12062004-08-01 Andrew Cagney <cagney@gnu.org>
1207
83cbbf3e
AC
1208 * config/mips/tm-irix6.h: Delete file.
1209 * config/mips/tm-irix5.h: Delete file.
1210 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1211 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1212
22d41b37
AC
1213 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1214 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1215 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1216 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1217 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1218 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1219 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1220 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1221 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1222 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1223 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1224 (TARGET_SIGNAL_RAW_VALUES): Delete.
1225 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1226 Delete.
1227 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1228 (TARGET_HW_WATCH_LIMIT): Delete.
1229 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1230 * minimon.h: Delete file.
1231
e66299b3
AC
1232 * trad-frame.c (trad_frame_get_this_base)
1233 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1234 functions.
1235 * trad-frame.h (trad_frame_set_this_base)
1236 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1237
1f67027d
AC
12382004-07-31 Andrew Cagney <cagney@gnu.org>
1239
1240 * trad-frame.c (trad_frame_get_prev_register): Rename
1241 trad_frame_get_prev_register.
1242 * vax-tdep.c (vax_frame_prev_register): Update.
1243 * trad-frame.h: Update.
1244 * trad-frame.c (trad_frame_get_register): Update.
1245 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1246 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1247 Update.
1248 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1249 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1250 Update.
1251 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1252 Update.
1253 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1254 Update.
1255 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1256 Update.
1257 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1258 Update.
1259 * s390-tdep.c (s390_frame_prev_register)
1260 (s390_stub_frame_prev_register)
1261 (s390_sigtramp_frame_prev_register): Update.
1262 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1263 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1264 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1265 * m88k-tdep.c (m88k_frame_prev_register)
1266 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1267 * m32r-tdep.c (m32r_frame_prev_register): Update.
1268 * hppa-tdep.c (hppa_frame_prev_register_helper)
1269 * frv-tdep.c (frv_frame_prev_register): Update.
1270 * d10v-tdep.c (d10v_frame_prev_register): Update.
1271 * cris-tdep.c (cris_frame_prev_register): Update.
1272 * avr-tdep.c (avr_frame_prev_register): Update.
1273 * arm-tdep.c (arm_prologue_prev_register)
1274 (arm_sigtramp_prev_register): Update.
1275
c1bf6f65
AC
12762004-07-31 Andrew Cagney <cagney@gnu.org>
1277
1278 * frame.h (legacy_saved_regs_unwind)
1279 (legacy_frame_chain_valid, legacy_frame_p)
1280 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
1281 * dummy-frame.c (dummy_frame_this_id): Simplify.
1282 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
1283 * frame.c (struct frame_info): Delete the field "type".
1284 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1285 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1286 (legacy_saved_regs_unwind, legacy_frame_p)
1287 (frame_type_from_pc): Delete.
1288 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1289 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1290
dc856692
MK
12912004-07-31 Mark Kettenis <kettenis@gnu.org>
1292
5a5effe1
MK
1293 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1294 indentation.
1295
d4fd50a6
MK
1296 * mips-nat.c: Remove file.
1297 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1298 (mips-nat.o): Remove dependency.
1299
2689df5a
MK
1300 * infptrace.c: Update copyright year.
1301 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1302 explicitly setting the buffer to all zeroes.
1303
dc856692
MK
1304 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1305 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1306
763910e0
AC
13072004-07-30 Andrew Cagney <cagney@gnu.org>
1308
1309 * GDB 6.2 released from gdb_6_2-branch.
1310
0b66e38c
EZ
13112004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1312
1313 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1314
1315 * exec.c (exec_file_attach):
1316 * nto-tdep.c (nto_find_and_open_solib):
1317 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1318 * solib.c (solib_open):
1319 * somsolib.c (som_solib_sizeof_symbol_table):
1320 * source.c (is_regular_file, openp, open_source_file):
1321 * symfile.c (symfile_bfd_open):
1322 * wince.c (upload_to_device): Differentiate between the search for
1323 binary and source files.
1324
be7d7357
AC
13252004-07-30 Andrew Cagney <cagney@gnu.org>
1326
1327 * complaints.c (_initialize_complaints): Pass NULL to
1328 add_setshow_zinteger_cmd for help_doc.
1329 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1330
ddc9cd0f
AC
13312004-07-30 Andrew Cagney <cagney@gnu.org>
1332
1333 Fix PR i18n/761.
1334 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1335 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1336 $(PACKAGE).pot and update-po.
1337 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1338 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1339 (update-po): New rules.
1340 (localedir): Define using autoconf.
1341 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1342 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1343 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1344 * configure.in: Generate CATALOGS and LINGUAS from contents of
1345 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1346 * configure: Re-generate.
1347 * po/gdbtext: New file
1348
e92f3704
JG
13492004-07-30 Jerome Guitton <guitton@gnat.com>
1350
1351 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1352 order.
1353
b0f35d58
DL
13542004-07-30 David Lecomber <dsl@sources.redhat.com>
1355
1356 * dwarf2read.c (read_file_scope): Set producer if attribute
1357 present.
1358 (struct dwarf2_cu): Added new member producer.
1359
ce7d4522
JG
13602004-07-30 Jerome Guitton <guitton@gnat.com>
1361
1362 * inflow.c (kill_command): release file handles in BFD.
1363 * exec.c (exec_file_attach): Ditto.
1364 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1365
05ee07c7
AC
13662004-07-29 Andrew Cagney <cagney@gnu.org>
1367
1368 * PROBLEMS (mips-irix): Note that it is broken.
1369
62eceb47
AC
13702004-07-29 Andrew Cagney <cagney@gnu.org>
1371
e57b8d41
AC
1372 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1373 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1374
d334389b
AC
1375 * config/xm-nbsd.h: Delete file.
1376 * config/arm/xm-nbsd.h: Delete file.
1377 * config/i386/xm-nbsd.h: Delete file.
1378 * config/ns32k/xm-nbsd.h: Delete file.
1379 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1380 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1381 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1382 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1383 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1384
e910f676
AC
1385 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1386 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1387 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1388 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1389 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1390 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1391
6fa856b9
AC
1392 * config/powerpc/xm-linux.h: Delete empty file.
1393 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1394 * config/powerpc/linux.mh (XM_FILE): Delete.
1395 * config/m68k/xm-linux.h: Delete empty file.
1396 * config/m68k/linux.mh (XM_FILE): Delete.
1397 * config/ia64/xm-linux.h: Delete empty file.
1398 * config/ia64/linux.mh (XM_FILE): Delete.
1399 * config/arm/xm-linux.h: Delete empty file.
1400 * config/arm/linux.mh (XM_FILE): Delete.
1401
471ae5ae
AC
1402 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1403 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1404 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1405 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1406 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1407 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1408 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1409 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1410
62eceb47
AC
1411 * config/m68k/xm-m68k.h: Delete file.
1412 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1413 copyright.
1414 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1415 * config/pa/xm-linux.h: Delete empty file.
1416 * config/pa/linux.mh (XM_FILE): Delete.
1417 * config/i386/xm-i386.h: Delete empty file.
1418 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1419 "i386/xm-i386.h".
1420 * config/i386/obsdaout.mh (XM_FILE): Delete.
1421 * config/i386/obsd64.mh (XM_FILE): Delete.
1422 * config/i386/fbsd64.mh (XM_FILE): Delete.
1423 * config/i386/nto.mh (XM_FILE): Delete.
1424 * config/i386/obsd.mh (XM_FILE): Delete.
1425 * config/i386/linux64.mh (XM_FILE): Delete.
1426 * config/i386/linux.mh (XM_FILE): Delete.
1427 * config/i386/i386sol2.mh (XM_FILE): Delete.
1428 * config/i386/i386gnu.mh (XM_FILE): Delete.
1429 * config/i386/fbsd.mh (XM_FILE): Delete.
1430 * config/i386/nbsd64.mh (XM_FILE): Delete.
1431
c35f4ffc
AC
14322004-07-29 Andrew Cagney <cagney@gnu.org>
1433
1434 * config/pa/xm-linux.h: Do not include "floatformat.h".
1435 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1436 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1437 * config/i386/xm-i386.h: Do not include "floatformat.h".
1438 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1439 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1440 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1441 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1442 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1443 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1444 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1445 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1446 * configure, config.in: Regenerate.
1447 * configure.host (gdb_host_float_format, gdb_host_double_format)
1448 (gdb_host_long_double_format): Set according to the host.
1449
624a44a3
AC
14502004-07-29 Andrew Cagney <cagney@gnu.org>
1451
1452 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1453
0dea2468
AC
14542004-07-28 Andrew Cagney <cagney@gnu.org>
1455
1456 * PROBLEMS: Mention threads/1650.
1457 * NEWS: Mention the NPTL fix.
1458
b3f42336
AC
14592004-07-28 Andrew Cagney <cagney@gnu.org>
1460
1461 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1462 (add_setshow_cmd_full): Make static.
1463 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1464 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1465 * cli/cli-decode.c (add_setshow_filename_cmd)
1466 (add_setshow_string_cmd): New functions.
1467 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1468 * mips-tdep.c (_initialize_mips_tdep): Update.
1469 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1470 * cli/cli-logging.c (_initialize_cli_logging): Update.
1471 * complaints.c (_initialize_complaints): Update.
1472 * remote.c (_initialize_remote): Update.
1473
3b64bf98
AC
14742004-07-28 Andrew Cagney <cagney@gnu.org>
1475
1476 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1477 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1478 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1479 print parameters. Make string parameters constant.
1480 * command.h: Update. Update copyright.
1481 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1482 * observer.c (_initialize_observer): Ditto.
1483 * frame.c (_initialize_frame): Ditto.
1484 * complaints.c (_initialize_complaints): Ditto.
1485 * maint.c (_initialize_maint_cmds): Ditto.
1486 * target.c (initialize_targets): Ditto.
1487 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1488 * infcall.c (_initialize_infcall): Ditto.
1489 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1490 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1491 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1492 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1493 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1494
e9667a65
AC
14952004-07-28 Andrew Cagney <cagney@gnu.org>
1496
54a5b07d
AC
1497 * gdbtypes.c (lookup_primitive_typename): Delete function.
1498 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1499 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1500 * gdbtypes.c (lookup_typename): Ditto.
1501 * f-exp.y (yylex): Ditto.
1502 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1503
e9667a65
AC
1504 * scm-lang.c (c_builtin_types): Delete extern declaration.
1505 (scm_language_defn): Replace
1506 string_char_type and primitive_type_vector with
1507 la_language_arch_info.
1508 * jv-lang.c (java_language_defn): Replace
1509 string_char_type and primitive_type_vector with
1510 la_language_arch_info.
1511 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1512 c_builtin_types in comment.
1513 * c-lang.h (struct language_arch_info): Declare opaque.
1514 (c_language_arch_info): Declare.
1515 (c_builtin_types): Delete declaration.
1516 * c-lang.c (c_language_arch_info): Set string_char_type to
1517 builtin_char, not builtin_true_char. Make global.
1518 (c_builtin_types): Delete array.
1519 (asm_language_defn, minimal_language_defn): Replace
1520 string_char_type and primitive_type_vector with
1521 la_language_arch_info.
1522
685419e2
AC
15232004-07-28 Andrew Cagney <cagney@gnu.org>
1524
1525 * gdbtypes.h (struct builtin_type): Rename true_char to
1526 builtin_true_char.
1527 * gdbtypes.c (gdbtypes_post_init): Update.
1528 * c-lang.c (arch_info): New function.
1529 (enum c_primitive_types): New enum.
1530 (c_language_defn): Instead of string_char_type and
1531 primitive_type_vector set la_language_arch_info.
1532
5a44ea29
AC
15332004-07-28 Andrew Cagney <cagney@gnu.org>
1534
1535 * language.h (struct language_arch_info): Fix typo
1536 s/primative/primitive/.
1537 * gdbtypes.c (lookup_primitive_typename): Ditto.
1538 * language.c (language_lookup_primitive_type_by_name)
1539 (unknown_language_arch_info): Ditto.
1540
f290d38e
AC
15412004-07-27 Andrew Cagney <cagney@gnu.org>
1542
1543 * defs.h (enum language): Add nr_languages.
1544 * language.h (struct language_arch_info): Define.
1545 (struct language_defn): Add la_language_arch_info.
1546 (language_lookup_primative_type_by_name): Declare.
1547 (language_string_char_type): Declare.
1548 * language.c (_initialize_language, language_gdbarch_post_init)
1549 (struct language_gdbarch, language_gdbarch_data): Implement
1550 per-architecture language information.
1551 (unknown_language_arch_info, language_string_char_type)
1552 (language_lookup_primative_type_by_name): New functions.
1553 (unknown_language_defn, auto_language_defn)
1554 (local_language_defn): Set la_language_arch_info to
1555 unknown_language_arch_info.
1556 (unknown_builtin_types): Delete.
1557 * gdbtypes.c (lookup_primitive_typename): Use
1558 language_lookup_primative_type_by_name.
1559 (create_string_type): Use language_string_char_type.
1560 * values.c (value_from_string): Use language_string_char_type.
1561 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1562 * p-lang.c (pascal_language_defn): Ditto.
1563 * m2-lang.c (m2_language_defn): Ditto.
1564 * jv-lang.c (java_language_defn): Ditto.
1565 * objc-lang.c (objc_language_defn): Ditto.
1566 * f-lang.c (f_language_defn): Ditto.
1567 * c-lang.c (c_language_defn, cplus_language_defn)
1568 (asm_language_defn, minimal_language_defn): Ditto.
1569
000177f0
AC
15702004-07-27 Andrew Cagney <cagney@gnu.org>
1571
1572 * gdbtypes.h (struct builtin_type): Declare.
1573 (builtin_type): Declare.
1574 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1575 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1576 (gdbtypes_post_init): New function.
1577 (builtin_type): New function.
1578
e22f895c
KI
15792004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1580
1581 * remote-m32r-sdi.c: Fix breakpoint bug.
1582 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1583 recv_char_data, recv_long_data): New functions to replace communication
1584 sequences.
1585
536517dd
MC
15862004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1587
1588 Document PR threads/1650.
1589 * PROBLEMS (Threads): Document problem with many threads
1590
a0a44d18
AC
15912004-07-26 Andrew Cagney <cagney@gnu.org>
1592
1593 * gdb-mi.el: Move from here ...
1594 * mi/gdb-mi.el: ... to here.
1595
7ac4ac06
AC
15962004-07-26 Andrew Cagney <cagney@gnu.org>
1597
1598 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1599 * main.c (captured_main): When in batch mode always detach.
1600
a1b461bf
AC
16012004-07-26 Andrew Cagney <cagney@gnu.org>
1602
1603 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1604 and h8300 as broken.
1605 * NEWS: END-OF-LIFE frame compatibility module.
1606 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1607 specific comments.
1608
cb1a6d5f
AC
16092004-07-26 Andrew Cagney <cagney@gnu.org>
1610
1611 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1612 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1613 * wince.c (_initialize_wince): Update.
1614 * win32-nat.c (_initialize_win32_nat): Update.
1615 * varobj.c (_initialize_varobj): Update.
1616 * valops.c (_initialize_valops): Update.
1617 * utils.c (initialize_utils, initialize_utils): Update.
1618 * tui/tui-win.c (_initialize_tui_win): Update.
1619 * top.c (init_main): Update.
1620 * symfile.c (_initialize_symfile): Update.
1621 * source.c (_initialize_source): Update.
1622 * somsolib.c (_initialize_som_solib): Update.
1623 * solib.c (_initialize_solib): Update.
1624 * solib-frv.c (_initialize_frv_solib): Update.
1625 * serial.c (_initialize_serial): Update.
1626 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1627 * remote.c (_initialize_remote, _initialize_remote): Update.
1628 * remote-vx.c (_initialize_vx): Update.
1629 * remote-utils.c (_initialize_sr_support): Update.
1630 * remote-sds.c (_initialize_remote_sds): Update.
1631 * remote-mips.c (_initialize_remote_mips): Update.
1632 * remote-e7000.c (_initialize_remote_e7000): Update.
1633 * proc-api.c (_initialize_proc_api): Update.
1634 * printcmd.c: Update.
1635 * parse.c (_initialize_parse): Update.
1636 * pa64solib.c (_initialize_pa64_solib): Update.
1637 * p-valprint.c (_initialize_pascal_valprint): Update.
1638 * monitor.c (_initialize_remote_monitors): Update.
1639 * mips-tdep.c (_initialize_mips_tdep): Update.
1640 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1641 * maint.c (_initialize_maint_cmds): Update.
1642 * lin-lwp.c (_initialize_lin_lwp): Update.
1643 * language.c (_initialize_language): Update.
1644 * kod.c (_initialize_kod): Update.
1645 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1646 * i386-tdep.c (_initialize_i386_tdep): Update.
1647 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1648 * gdbarch.sh: Update.
1649 * gdbarch.c: Re-generate.
1650 * gdb-events.sh: Update.
1651 * gdb-events.c: Re-generate.
1652 * frame.c (_initialize_frame): Update.
1653 * exec.c: Update.
1654 * demangle.c (_initialize_demangler): Update.
1655 * dcache.c (_initialize_dcache): Update.
1656 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1657 * cp-valprint.c (_initialize_cp_valprint): Update.
1658 * corefile.c (_initialize_core): Update.
1659 * command.h: Update.
1660 * cli/cli-decode.h: Update.
1661 * cli/cli-cmds.c (init_cli_cmds): Update.
1662 * charset.c (_initialize_charset): Update.
1663 * breakpoint.c (_initialize_breakpoint): Update.
1664 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1665 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1666 * aix-thread.c (_initialize_aix_thread): Update.
1667
b4632131
MK
16682004-07-24 Mark Kettenis <kettenis@gnu.org>
1669
1670 Partial fix for PR backtrace/1718.
1671 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1672 that GCC migrates into the prolugue. Don't handle any
1673 instructions that clobber %ebx.
1674
822c9732
AC
16752004-07-23 Andrew Cagney <cagney@gnu.org>
1676
1677 Use regcache_raw_collect instead of regcache_collect.
1678 * regcache.h (regcache_collect): Delete declaration.
1679 * regcache.c (regcache_colect): Delete function.
1680 * win32-nat.c (do_child_store_inferior_registers): Update.
1681 * sol-thread.c (sol_thread_store_registers): Update.
1682 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1683 * rs6000-nat.c (store_register): Update.
1684 * remote.c (store_register_using_P, remote_store_registers): Update.
1685 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1686 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1687 (fill_vrregset, store_spe_registers, fill_gregset)
1688 (fill_gregset): Update.
1689 * nto-procfs.c (procfs_store_registers): Update.
1690 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1691 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1692 * m68klinux-nat.c (store_register, fill_gregset): Update.
1693 * m68k-tdep.c (fill_gregset): Update.
1694 * infptrace.c (store_register): Update.
1695 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1696 * i386-linux-nat.c (store_register, fill_gregset): Update.
1697 * hppa-linux-nat.c (fill_gregset): Update.
1698 * go32-nat.c (store_register): Update.
1699 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1700 (store_fp_regs): Update.
1701 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1702 (store_nwfpe_extended, store_fpregister, store_fpregs)
1703 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1704 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1705 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1706 (store_regs_user_thread, store_regs_kernel_thread): Update.
1707
32b05c07
MK
17082004-07-24 Mark Kettenis <kettenis@gnu.org>
1709
1710 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1711 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1712 encoding.
1713 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1714 member of `struct comp_unit'.
1715
8567c30f
AC
17162004-07-23 Andrew Cagney <cagney@gnu.org>
1717
1718 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1719 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1720
f6da8dd8
MH
17212004-07-23 Martin Hunt <hunt@redhat.com>
1722 Kevin Buettner <kevinb@redhat.com>
1723
1724 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1725 alignment was being added to the offset instead of multiplied.
1726
bd921882
MK
17272004-07-23 Mark Kettenis <kettenis@gnu.org>
1728
24f033e8
MK
1729 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1730 changed signal trampoline in OpenBSD 3.5-current.
1731
90f3cecd
MK
1732 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1733 <machine/pcb.h> and "bsd-kvm.h".
1734 (sparc64nbsd_supply_pcb): New function.
1735 (_initialize_sparc64nbsd_nat): Renamed from
1736 _initialize_sparcnbsd_nat. Enable libkvm interface.
1737 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1738 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1739 (LOADLIBES): New variable.
1740
a4954a62
MK
1741 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1742
bd921882
MK
1743 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1744
23a6d369
AC
17452004-07-21 Andrew Cagney <cagney@gnu.org>
1746
1747 Use regcache_raw_supply instead of supply_register.
1748 * regcache.h (supply_register): Delete declaration.
1749 * regcache.c (supply_register): Delete function.
1750 * wince.c (do_child_fetch_inferior_registers): Update.
1751 * win32-nat.c (do_child_fetch_inferior_registers)
1752 (fetch_elf_core_registers): Update.
1753 * v850ice.c (v850ice_fetch_registers): Update.
1754 * thread-db.c (thread_db_store_registers): Update.
1755 * sol-thread.c (sol_thread_store_registers): Update.
1756 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1757 * rs6000-nat.c (fetch_register): Update.
1758 * rom68k-rom.c (rom68k_supply_one_register): Update.
1759 * remote.c (remote_wait, remote_async_wait): Update.
1760 * remote-st.c (get_hex_regs): Update.
1761 * remote-sim.c (gdbsim_fetch_register): Update.
1762 * remote-sds.c (sds_fetch_registers): Update.
1763 * remote-rdp.c (remote_rdp_fetch_register): Update.
1764 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1765 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1766 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1767 * remote-hms.c (init_hms_cmds): Update.
1768 * remote-est.c (init_est_cmds): Update.
1769 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1770 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1771 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1772 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1773 (fetch_register, supply_vrregset, supply_vrregset)
1774 (fetch_spe_registers): Update.
1775 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1776 * monitor.c (monitor_supply_register): Update.
1777 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1778 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1779 (mipsnbsd_supply_fpreg): Update.
1780 * mips-nat.c (fetch_inferior_registers)
1781 (fetch_core_registers): Update.
1782 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1783 (supply_fpregset, mips64_supply_gregset)
1784 (mips64_supply_fpregset): Update.
1785 * m68klinux-nat.c (fetch_register, supply_gregset)
1786 (supply_fpregset): Update.
1787 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1788 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1789 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1790 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1791 * infptrace.c (fetch_register): Update.
1792 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1793 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1794 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1795 (gnu_fetch_registers, gnu_store_registers): Update.
1796 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1797 * i386-linux-nat.c (fetch_register, supply_gregset)
1798 (dummy_sse_values): Update.
1799 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1800 * hppah-nat.c (fetch_register): Update.
1801 * hppa-linux-nat.c (fetch_register, supply_gregset)
1802 (supply_fpregset): Update.
1803 * go32-nat.c (fetch_register): Update.
1804 * dve3900-rom.c (fetch_bitmapped_register)
1805 (_initialize_r3900_rom): Update.
1806 * cris-tdep.c (supply_gregset): Update.
1807 * abug-rom.c (init_abug_cmds): Update.
1808 * core-aout.c (fetch_core_registers): Update.
1809 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1810 (fetch_register, fetch_fp_register): Update.
1811 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1812 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1813 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1814 * alphanbsd-tdep.c (fetch_core_registers): Update.
1815 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1816 * alpha-nat.c (fetch_osf_core_registers)
1817 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1818 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1819 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1820
73cc75f3
AC
18212004-07-21 Andrew Cagney <cagney@gnu.org>
1822
1823 * PROBLEMS: Mention breakpoints/1702.
1824 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1825 that is known to work.
1826
a53c66de
AC
18272004-07-21 Andrew Cagney <cagney@gnu.org>
1828
1829 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1830 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1831 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1832 (handle_inferior_event): Wrap call to deprecated
1833 IGNORE_HELPER_CALL in #ifdef.
1834 * config/mips/tm-nbsd.h: Update.
1835
708ff411
JB
18362004-07-20 Jim Blandy <jimb@redhat.com>
1837
412b3060
JB
1838 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1839 bfd_mach_ppc has no segment registers.
1840
13ac140c
JB
1841 Include PowerPC SPR numbers for special-purpose registers.
1842 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1843 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1844 new member in initializer.
1845 (S, S4, SN4, S64): New macros for defining special-purpose
1846 registers.
1847 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1848 registers_403, registers_403GC, registers_505, registers_860,
1849 registers_601, registers_602, registers_603, registers_604,
1850 registers_750, registers_e500): Use them.
1851
708ff411
JB
1852 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1853 replace references with expression used to initialize variable.
1854
1f602b35
AC
18552004-07-20 Andrew Cagney <cagney@gnu.org>
1856
1857 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1858 read_memory_nobpt.
1859 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1860 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1861 (s390_sigtramp_frame_sniffer): Update.
1862 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1863 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1864 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1865 (mips32_fetch_instruction): Update.
1866 * mcore-tdep.c (get_insn): Update.
1867 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1868 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1869 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1870 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1871 (i386_linux_rt_sigtramp_start): Update.
1872 * i386-linux-nat.c (child_resume): Update.
1873 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1874 * hppa-linux-tdep.c (insns_match_pattern): Update.
1875 * gdbcore.h: Update.
1876 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
1877 * frame.c (safe_frame_unwind_memory): Update.
1878 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
1879 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
1880 * alpha-tdep.c (alpha_read_insn): Update.
1881
2cd8546d
AC
18822004-07-20 Andrew Cagney <cagney@gnu.org>
1883
1884 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
1885 containing both bytes and mask. Add "frame_type".
1886 * tramp-frame.c (tramp_frame_start): Update.
1887 (tramp_frame_prepend_unwinder): Update.
1888 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1889 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1890 (mips_linux_n64_rt_sigframe): Update. Make "static const".
1891 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
1892
f928dd62
EZ
18932004-07-19 Eli Zaretskii <eliz@gnu.org>
1894
1895 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
1896 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
1897 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
1898 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
1899
d5c560f7
AC
19002004-07-17 Andrew Cagney <cagney@gnu.org>
1901
860660cb
AC
1902 * NEWS, PROBLEMS: Update for 6.2.
1903
8c266f54
AC
1904 * README: Update to 6.2.
1905
a552edd9
AC
1906 * utils.c (xvasprintf): Call xstrvprintf.
1907
c4a172b5
AC
1908 * parse.c: Update copyright.
1909 (null_post_parser): Eliminate ARGSUSED.
1910
da745b36
AC
1911 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
1912 * tui/tui-win.c (tui_get_cmd_list): Ditto.
1913 * symfile-mem.c (_initialize_symfile_mem): Ditto.
1914
9cbc6ef0
AC
1915 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
1916 * ppc-linux-nat.c: Use "Linux kernel".
1917 * hppa-linux-tdep.c: Use GNU/Linux.
1918 * hppa-linux-nat.c: Use GNU/Linux.
1919 * dwarfread.c: Add [sic] to use of Linux.
1920
1b89295f
AC
1921 * hppa-linux-nat.c: Do not include <string.h>.
1922 (supply_fpregset): Remove "register" attribute.
1923
d5c560f7
AC
1924 * solib-frv.c (fetch_loadmap): Use xfree, not free.
1925
7ddd7709
MK
19262004-07-17 Mark Kettenis <kettenis@gnu.org>
1927
b1d19a62
MK
1928 * configure.in: Define _MSE_INT_H on Solaris 9 too.
1929 * configure, config.in: Regenerated.
1930
7ddd7709
MK
1931 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1932 "bsd-kvm.h".
1933 (vaxbsd_supply_pcb): New function.
1934 (_initialize_vaxbsd_nat): New prototype and function.
1935 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
1936 solib-sunos.o.
1937 (LOADLIBES): New variable.
1938 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1939 (LOADLIBES): New variable.
1940 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1941 (LOADLIBES): New variable.
1942 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1943
2c07db7a
AC
19442004-07-16 Andrew Cagney <cagney@gnu.org>
1945
1946 * defs.h (event_loop_p): Replace variable declaration with macro,
1947 always 1.
1948 * main.c (captured_main): Delete options "-async" and "-noasync".
1949 (event_loop_p): Delete variable.
1950 * NEWS: Mention that "-async" and "-noasync" were removed.
1951
717eb1cf
AC
19522004-07-16 Andrew Cagney <cagney@gnu.org>
1953
1954 * remote-m32r-sdi.c: Re-indent.
1955
c101bc14
JB
19562004-07-16 Jim Blandy <jimb@redhat.com>
1957
5109a438
JB
1958 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
1959 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
1960 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
1961 missing MPC823 SPRs.
1962 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
1963 incorrect. (This was corrected in GDB's register name tables on
1964 2004-07-14.)
1965
c101bc14
JB
1966 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
1967 should be "esasrr" ("ESA Save and Restore Register").
1968
7ce450bd
AC
19692004-07-16 Andrew Cagney <cagney@gnu.org>
1970
1971 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
1972 calls, no longer applicable. Update comments and rename parameter
1973 "step_frame" to "return_frame".
1974
ca73dd9d
AC
19752004-07-16 Andrew Cagney <cagney@gnu.org>
1976
1977 * frame.c (fprint_field): New function.
1978 (fprint_frame_id): Use fprint_field.
1979
31941f6d
JB
19802004-07-15 Joel Brobecker <brobecker@gnat.com>
1981
1982 * ada-lang.c (ada_language_defn): Remove commented out code.
1983
f86a7158
JB
19842004-07-15 Jim Blandy <jimb@redhat.com>
1985
1986 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
1987 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
1988
c24791ec
JB
19892004-07-14 Jim Blandy <jimb@redhat.com>
1990
29bb1356
JB
1991 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
1992
cc98b5cc
JB
1993 * ppc-tdep.h (ppc_num_vrs): New enum constant.
1994
8f088af7
JB
1995 * ppc-tdep.h (ppc_num_srs): New enum constant.
1996
0ea0ec5f
JB
1997 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
1998 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
1999 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2000 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2001 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2002 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2003 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2004 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2005 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2006 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2007 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2008 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2009 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2010 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2011 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2012 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2013 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2014 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2015 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2016 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2017 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2018 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2019 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2020 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2021 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2022 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2023 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2024 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2025 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2026 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2027 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2028 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2029 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2030 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2031 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2032 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2033 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2034 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2035 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2036 special-purpose register numbers.
2037
c24791ec
JB
2038 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2039 manual mentions 'md_twb', but many mention 'm_twb', and at that
2040 point in the register list.)
2041
d833db3b
AC
20422004-07-14 Andrew Cagney <cagney@gnu.org>
2043
2044 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2045 instead of "internal-error".
2046
080228b2
JB
20472004-07-10 Joel Brobecker <brobecker@gnat.com>
2048
2049 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2050 that was inserted inside a comment.
2051
c268433a
RC
20522004-07-10 Randolph Chung <tausq@debian.org>
2053
2054 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2055 function.
2056 (hppa_hpux_push_dummy_code): New function.
2057 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2058 Set find_global_pointer method.
2059
71009278
MK
20602004-07-10 Mark Kettenis <kettenis@gnu.org>
2061
2062 * NEWS: Mention BSD libkvm interface.
2063
b2fa5097
MS
20642004-07-10 Michael Snyder <msnyder@redhat.com>
2065
2066 * symfile.c (generic_load): Comment typo.
2067 * stack.c (get_selected_block): Ditto.
2068 * regcache.c (regcache_cooked_read): Ditto.
2069 * monitor.c (monitor_debug): Ditto.
2070 * mips-tdep.c (mips_read_pc): Ditto.
2071 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2072 * gdb_mbuild.sh: Ditto.
2073 * gdbarch.sh: Ditto.
2074 * gdbarch.h: Ditto.
2075
c3e5cd34
PH
20762004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2077
8a2225b2
PH
2078 * ada-tasks.c: Remove file.
2079
c3e5cd34
PH
2080 Remove ARI problems:
2081
2082 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2083 beginning of line.
2084
2085 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2086 Add comment.
2087 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2088 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2089 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2090 (UMIN_OF_SIZE): Remove.
2091 (max_of_type): New function to replace orphan macro in gdbtypes.h
2092 (min_of_type): Ditto.
2093 (discrete_type_high_bound): Use max_of_type.
2094 (discrete_type_low_bound): Use min_of_type.
2095 (possible_user_operator_p): Move operator to beginning of line.
2096 (ada_is_variant_part): Ditto.
2097 (ensure_lval): Rewrite to avoid deprecated operations.
2098 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2099 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2100 (ada_enum_name): Remove assignments in 'if' statements.
2101 (build_ada_types): Add gdbarch parameter.
2102 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2103 with gdbarch_data_register_post_init.
2104 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2105 add_show_from_set.
2106
2107 * ada-valprint.c (inspect_it): Remove declaration.
2108 (repeat_count_threshold): Remove declaration.
2109 (ada_print_floating): Remove assignments in 'if' statements.
2110 (print_str): Move operator to beginning of line.
2111
61ce229a
JB
21122004-07-08 Jim Blandy <jimb@redhat.com>
2113
2114 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2115
09bcec80
BR
21162004-07-08 Bob Rossi <bob@brasko.net>
2117
2118 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2119
31c27f77
JJ
21202004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2121
2122 * language.h (struct_language_defn): Add new function pointer:
2123 la_class_name_from_physname. Also add new prototype for
2124 language_class_name_from_physname.
2125 * language.c (language_class_name_from_physname): New function.
2126 (unk_lang_class_name): Ditto.
2127 (unknown_language_defn, auto_language_defn): Change
2128 to add unk_lang_class_name function pointer for
2129 la_class_name_from_physname.
2130 (local_language_defn): Ditto.
2131 * dwarf2read.c (guess_structure_name): Change to call
2132 language_class_name_from_physname.
2133 (determine_class_name): Ditto.
2134 * cp-support.c (class_name_from_physname): Renamed.
2135 (cp_class_name_from_physname): New name of function.
2136 * cp-support.h: Ditto.
2137 * c-lang.c (c_language_defn): Change to add NULL
2138 for class_name_from_physname function pointer.
2139 (cplus_language_defn): Change to add cp_class_name_from_physname.
2140 * jv-lang.c (java_class_name_physname): New function.
2141 (java_find_last_component): New static routine.
2142 (java_language_defn): Add java_class_name_from_physname pointer.
2143 * ada-lang.c (ada_language_defn): Change to add NULL
2144 for class_name_from_physname function pointer.
2145 * f-lang.c (f_language_defn): Ditto.
2146 * m2-lang.c (m2_language_defn): Ditto.
2147 * objc-lang.c (objc_language_defn): Ditto.
2148 * p-lang.c (pascal_language_defn): Ditto.
2149 * scm-lang.c (scm_language_defn): Ditto.
2150
ee28ca0f
AC
21512004-07-06 Andrew Cagney <cagney@gnu.org>
2152
2153 Patch from Bart Robinson.
2154 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2155 (O_LARGEFILE): Define to 0, if not defined.
2156
fdb1bf9d
MK
21572004-07-03 Mark Kettenis <kettenis@gnu.org>
2158
cb162ff6
MK
2159 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2160 <machine/pcb.h> and "bsd-kvm.h".
2161 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2162 (m68kbsd_supply_pcb): New function.
2163 (_initialize_m68kbsd_nat): New prototype and function.
2164 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2165 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2166 (LOADLIBES): New variable.
2167 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2168 (LOADLIBES): New variable.
2169
fdb1bf9d
MK
2170 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2171
963c4174
MK
21722004-07-03 Mark Kettenis <kettenis@gnu.org>
2173
2174 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2175 <sys/proc.h>.
2176 (bsd_kvm_cmdlist): New variable.
2177 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2178 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2179 command and "kvm proc" command.
2180 * Makefile.in (bsd-kvm.o): Update dependencies.
2181
533f1d8f
MK
21822004-07-02 Mark Kettenis <kettenis@gnu.org>
2183
2184 * osabi.c: Update copyright year.
2185 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2186 notes if EI_OSABI is set to ELFOSABI_HPUX.
2187
6780dcde
MS
21882004-07-01 Michael Snyder <msnyder@redhat.com>
2189
2190 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2191 that seems to have gotten whacked out of line.
2192
67bebe79
MK
21932004-07-01 Mark Kettenis <kettenis@gnu.org>
2194
2195 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2196 code.
2197
0b5d8877
PH
21982004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2199
2200 * ada-lang.c (decode_packed_array): Minor change to comment.
2201 (ada_value_slice_ptr): New function.
2202 (ada_value_slice): New function.
2203 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2204 test. Don't know why it is there.
2205 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2206 to avoid dereferencing huge arrays from which one is slicing.
2207 (empty_array): Correct to return an array rather than
2208 a subrange value.
2209 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2210 on empty arrays (let'em use 'FIRST instead).
2211
19c1ef65
PH
22122004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2213
2214 Address complaints from gdb_ari.sh:
2215
2216 * ada-exp.y: Include gdb_string.h rather than string.h.
2217 (convert_char_literal): Reformat declaration.
2218 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2219 * ada-lex.l: Change use of free to xfree (the macro would do so
2220 anyway, but this is harmless).
2221 Include gdb_string.h rather than string.h.
2222 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2223
2224 * ada-lang.c (parse): Remove K&Rism in parameter list.
2225 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2226
d81cbc94
MK
22272004-06-30 Mark Kettenis <kettenis@gnu.org>
2228
2229 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2230 dead code.
2231
07681759
MK
22322004-06-30 Mark Kettenis <kettenis@gnu.org>
2233
2234 * alphabsd-nat.c: Update copyright year.
2235 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2236
f7948b5f
JB
22372004-06-29 Joel Brobecker <brobecker@gnat.com>
2238
6e0cdd28 2239 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
2240 (i386_cygwin_in_solib_call_trampoline): New function.
2241 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2242 and skip_trampoline_code gdbarch methods.
2243
8f113c9a
JB
22442004-06-29 Jim Blandy <jimb@redhat.com>
2245
2246 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2247 name actually used in the dependency lists.
2248
97dc871c
RC
22492004-06-29 Randolph Chung <tausq@debian.org>
2250
2251 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2252
47216e51
CV
22532004-06-29 Corinna Vinschen <vinschen@redhat.com>
2254
2255 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 2256 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
2257 functionality.
2258
e623b504
AC
22592004-06-28 Andrew Cagney <cagney@gnu.org>
2260
2261 * defs.h (xstrvprintf): Declare.
2262 * utils.c (xstrvprintf): New function.
2263 (internal_vproblem, xstrprintf, xasprintf)
2264 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2265 * serial.c (serial_printf): Ditto.
2266 * complaints.c (vcomplaint): Ditto.
2267
79acc9b3
CV
22682004-06-29 Corinna Vinschen <vinschen@redhat.com>
2269
2270 * infcmd.c (attach_command): Move call to target_terminal_inferior
2271 behind loading symbol table.
2272
1daf35d9
AC
22732004-06-28 Andrew Cagney <cagney@gnu.org>
2274
2275 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2276 change - add back extern deprecated_ui_loop_hook declaration.
2277
b435e160
AC
22782004-06-28 Andrew Cagney <cagney@gnu.org>
2279
2280 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2281 xstrprintf.
2282 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2283 (c_value_of_variable): Ditto.
2284 * utils.c (internal_vproblem): Ditto.
2285 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2286 * remote.c (add_packet_config_cmd): Ditto.
2287 * remote-rdp.c (rdp_set_command_line): Ditto.
2288 * regcache.c (regcache_dump): Ditto.
2289 * frv-tdep.c (new_variant, new_variant): Ditto.
2290 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2291 (fbsd_find_memory_regions): Ditto.
2292 * breakpoint.c (create_thread_event_breakpoint)
2293 (create_breakpoints): Ditto.
2294 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2295 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2296
06d5cf63
JB
22972004-06-28 Joel Brobecker <brobecker@gnat.com>
2298
2299 * ada-lang.c: Re-indent file, with some massaging to help indent
2300 a bit when the result is otherwise really too ugly.
2301
35809fad
UW
23022004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2303
2304 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2305 code_addr_p and special_addr_p to 'unsigned int'.
2306
40e20472
MK
23072004-06-27 Mark Kettenis <kettenis@gnu.org>
2308
2309 * i386v4-nat.c: Update copyright year and tweak comment.
2310 (regmap): Remove trailing comma.
2311 (supply_gregset): Rename local variable i to regnum. Call
2312 regcache_raw_supply instead of supply_register.
2313 (fill_gregset): Rename argument regno to regnum. Call
2314 regcache_raw_collect instead of regcache_collect.
2315
12b0b6de
UW
23162004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2317
2318 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2319 and special_addr_p.
2320 (frame_id_build, frame_id_build_special): Update comments.
2321 (frame_id_build_wild): New prototype.
2322 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2323 struct frame_id fields.
2324 (frame_id_build_wild): New function.
2325 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2326
47b42a3e
MK
23272004-06-27 Mark Kettenis <kettenis@gnu.org>
2328
2329 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2330 hppabsd-tdep.c.
2331
1265e4aa
JB
23322004-06-27 Joel Brobecker <brobecker@gnat.com>
2333
2334 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2335
76a01679
JB
23362004-06-27 Joel Brobecker <brobecker@gnat.com>
2337
2338 * ada-lang.c: Re-indent file.
2339
7aca490a
JB
23402004-06-27 Joel Brobecker <brobecker@gnat.com>
2341
2342 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2343 (no_symtab_msg): Likewise.
2344
5e987968
AS
23452004-06-27 Andreas Schwab <schwab@suse.de>
2346
2347 * source.c: Fix whitespace.
2348
315c4276
MK
23492004-06-27 Mark Kettenis <kettenis@gnu.org>
2350
d15be926
MK
2351 * configure.in: Include <sys/param.h> for td_pcb test.
2352 * configure: Regenerated.
2353
9062529b
MK
2354 * i386nbsd-nat.c: New file.
2355 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2356 i386obsd-nat.c and i386obsd-tdep.c.
2357 (i386nbsd-nat.o): New dependency.
2358 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2359 bsd-kvm.o.
2360 (LOADLIBES): New variable.
2361 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2362 bsd-kvm.o.
2363 (LOADLIBES): New variable.
2364
8010310e
MK
2365 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2366 (LOADLIBES): New variable.
2367
efe1d7b9
MK
2368 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2369 fetching from BSD_KVM_PADDR. Correctly lookup address for
2370 "_thread0".
2371
315c4276
MK
2372 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2373 "bsd-kvm.h".
2374 (amd64fbsd_supply_pcb): New funcion.
2375 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2376
399cfac6
DL
23772004-06-27 <david@streamline-computing.com>
2378
2379 Partial fix for PR cli/1056.
2380 * valarith.c: Check for zero in division and remainder
2381 evaluation.
2382
6235f9c8
MK
23832004-06-27 Mark Kettenis <kettenis@gnu.org>
2384
2385 * i387-tdep.c: Remove excessive whitespace.
2386
2726dafc
AC
23872004-06-26 Andrew Cagney <cagney@gnu.org>
2388
2389 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2390 * gdb-events.h, gdb-events.c: Re-generate.
2391 * tui/tui-hooks.c (tui_install_hooks): Update.
2392 (tui_remove_hooks): Update.
2393 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2394
0e56aeaf
MK
23952004-06-26 Mark Kettenis <kettenis@gnu.org>
2396
cb461069
MK
2397 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2398 (gregset_t, fpregset_t): Remove typedefs.
2399 (REG_OFFSET): Rename argument.
2400 (amd64bsd_r_reg_offset): Rename from reg_offset.
2401 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2402 Remove functions.
2403 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2404 of reg_offset.
2405 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2406
ecba89de
MK
2407 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2408
4cd80476
MK
2409 * vax-tdep.c: Tweak comment.
2410
0e56aeaf
MK
2411 Add OpenBSD/hppa support.
2412 * NEWS (New native configurations): Mention OpenBSD/hppa.
2413 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2414 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2415 files.
2416 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2417 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2418 * configure.host: Add hppa*-*-openbsd*.
2419 * configure.tgt: Add hppa*-*-openbsd*.
2420
98bbd631
AC
24212004-06-25 Andrew Cagney <cagney@gnu.org>
2422
2423 * defs.h (deprecated_ui_loop_hook): Deprecated.
2424 * wince.c (child_wait): Update.
2425 * win32-nat.c (child_wait): Update.
2426 * v850ice.c (v850ice_wait): Update.
2427 * top.c (deprecated_ui_loop_hook): Update.
2428 * serial.h: Update.
2429 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2430 (do_unix_readchar): Update.
2431 * ser-tcp.c (net_open): Update.
2432 * remote-sim.c (gdb_os_poll_quit): Update.
2433 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2434
769d7dc4
AC
24352004-06-24 Andrew Cagney <cagney@gnu.org>
2436
2437 * defs.h (deprecated_pre_add_symbol_hook)
2438 (deprecated_post_add_symbol_hook): Deprecated.
2439 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2440 (symbol_file_add_with_addrs_or_offsets): Update references.
2441
11c949aa
AC
24422004-06-24 Andrew Cagney <cagney@gnu.org>
2443
2444 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2445 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2446 * wince.c (ui_loop_hook): Delete extern declaration.
2447 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2448 * v850ice.c (ui_loop_hook): Delete extern declaration..
2449 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2450 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2451 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2452 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2453 ui_loop_hook declaration.
2454
eedc19af
AC
24552004-06-24 Andrew Cagney <cagney@gnu.org>
2456
2457 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2458 entry_func_highpc fields.
2459 * objfiles.c (init_entry_point_info): Do not clear
2460 entry_func_lowpc and entry_func_highpc.
2461 (objfile_relocate): Do not relocate entry_func_lowpc and
2462 entry_func_highpc.
2463 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2464 entry_func_highpc.
2465 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2466 entry_func_highpc.
2467 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2468 entry_func_lowpc and entry_func_highpc with call to
2469 inside_entry_func.
2470
d47079be
MK
24712004-06-24 Mark Kettenis <kettenis@gnu.org>
2472
2473 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2474 quad-precision floating point arguments in registers.
2475
2107e348
MK
24762004-06-24 Mark Kettenis <kettenis@gnu.org>
2477
2478 From Michael Mueller <m.mueller99@kay-mueller.de>:
2479 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2480 account.
2481
46587c42
JJ
24822004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2483
2484 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2485 to -1.
2486 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2487 untriggered watchpoints to a separate if clause. Update function
2488 comment regarding STOPPED_BY_WATCHPOINT argument.
2489
226f5cf4
JB
24902004-06-22 Jim Blandy <jimb@redhat.com>
2491
2492 * gdbarch.sh: Doc fix.
2493
f10683bb
MH
24942004-06-21 Martin Hunt <hunt@redhat.com>
2495 Kevin Buettner <kevinb@redhat.com>
2496
2497 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2498 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2499 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2500 to set_gdbarch_sp_regnum(). Use cooked register number.
2501 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2502
412d5987
AC
25032004-06-21 Andrew Cagney <cagney@gnu.org>
2504
2505 * gdbarch.sh: When the macro field is empty, do not generate a
2506 macro definition. When the macro field is "=", generate the macro
2507 name from the upper-case function name.
2508 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2509 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2510 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2511 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2512 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2513 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2514 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2515 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2516 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2517 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2518 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2519 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2520 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2521 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2522 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2523 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2524 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2525 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2526 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2527 (DEPRECATED_USE_STRUCT_CONVENTION)
2528 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2529 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2530 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2531 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2532 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2533 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2534 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2535 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2536 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2537 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2538 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2539 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2540 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2541 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2542 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2543 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2544 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2545 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2546
68908a3e
AC
25472004-06-21 Andrew Cagney <cagney@gnu.org>
2548
48f7351b
AC
2549 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2550 macro name, and the function rather than macro value. Only wrap
2551 macro print statements in #ifdef. Move format logic to where it
2552 is needed.
2553 * gdbarch.c: Re-generate.
2554
283354d8
AC
2555 * gdbarch.sh (read): Delete "print_p" and "description", add
2556 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2557 Delete references to print_p.
2558 (TARGET_ARCHITECTURE): Delete print predicate.
2559 * gdbarch.c: Re-generate.
2560
68908a3e
AC
2561 * gdbarch.sh: Check that multi-arch methods do not provide a
2562 macro.
2563 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2564 (print_registers_info, print_float_info, print_vector_info)
2565 (adjust_breakpoint_address, remote_translate_xfer_address)
2566 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2567 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2568 name from the multi-arch definition.
2569
a2428dbe
AC
25702004-06-20 Andrew Cagney <cagney@gnu.org>
2571
2572 * gdbarch.sh: Sort by the function, instead of macro name.
2573 * gdbarch.c: Re-generate.
2574
750eb019
AC
25752004-06-20 Andrew Cagney <cagney@gnu.org>
2576
66d659b1
AC
2577 * gdbarch.sh: Use the function, instead of macro name in
2578 errors and the log file.
2579 (return_value): Remove stray ":" in spec.
2580
750eb019
AC
2581 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2582 * gdbarch.h, gdbarch.c: Re-generate.
2583 * Makefile.in (arch-utils.o): Update dependencies.
2584 * values.c (using_struct_return): Move code calling
2585 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2586 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2587 to legacy_return_value, simplify.
2588 * infcmd.c (print_return_value): Move code calling
2589 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2590 to legacy_return_value, simplify.
2591 * infcall.c (call_function_by_hand): Move code calling
2592 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2593 * arch-utils.c: Update copyright. Include "gdbcore.h".
2594 (legacy_return_value): New function.
2595 * arch-utils.h: Update copyright.
2596 (legacy_return_value): Declare.
2597
b5622e8d
AC
25982004-06-20 Andrew Cagney <cagney@gnu.org>
2599
2600 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2601 * gdbarch.h, gdbarch.c: Re-generate.
2602 * values.c (using_struct_return): Update call.
2603 * mcore-tdep.c: Update comment.
2604 * infcall.c (call_function_by_hand): Update comment.
2605 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2606 * arch-utils.h (always_use_struct_convention): Update.
2607 * v850-tdep.c (v850_gdbarch_init): Update.
2608 * sh64-tdep.c (sh64_gdbarch_init): Update.
2609 * sh-tdep.c (sh_gdbarch_init): Update.
2610 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2611 * mips-tdep.c (mips_gdbarch_init): Update.
2612 * mcore-tdep.c (mcore_gdbarch_init): Update.
2613 * m32r-tdep.c (m32r_gdbarch_init): Update.
2614 * ia64-tdep.c (ia64_gdbarch_init): Update.
2615 * h8300-tdep.c (h8300_gdbarch_init): Update.
2616 * frv-tdep.c (frv_gdbarch_init): Update.
2617 * cris-tdep.c (cris_gdbarch_init): Update.
2618 * arm-tdep.c (arm_gdbarch_init): Update.
2619 * alpha-tdep.c (alpha_gdbarch_init): Update.
2620
5191de37
MC
26212004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2622
2623 * PROBLEMS: Add more specific information, and a work-around,
2624 for PR gdb/1458.
2625
782263ab
AC
26262004-06-18 Andrew Cagney <cagney@gnu.org>
2627
2628 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2629 * gdbarch.h, gdbarch.c: Re-generate.
2630 * ada-lang.c (ada_finish_decode_line_1): Update.
2631 * infrun.c (handle_inferior_event): Update.
2632 * infcall.c (find_function_addr): Update.
2633 * linespec.c (minsym_found): Update.
2634 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2635 Update.
2636 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2637 * cli/cli-cmds.c (disassemble_command): Update.
2638 * vax-tdep.c (vax_gdbarch_init): Update.
2639
2f305df1
MK
26402004-06-18 Mark Kettenis <kettenis@gnu.org>
2641
2642 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2643
e5fe55f7
AC
26442004-06-17 Andrew Cagney <cagney@gnu.org>
2645
2646 GDB 6.1.1 released from the GDB 6.1 branch.
2647 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2648 * PROBLEMS: Ditto.
2649
473b7be6
DJ
26502004-06-16 Daniel Jacobowitz <dan@debian.org>
2651
2652 PR gdb/1658
2653 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2654 operation as a uleb128. Found by Michael Coulter.
2655
96d887e8
PH
26562004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2657
2658 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2659 make it non-static.
2660 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2661 to ada-lang.h; this is needed to be able to implement the kill command
2662 in multi-task mode.
2663 (task_ptid): Ditto.
2664 (task_entry): Ditto.
2665 (task_list): Ditto.
2666 (ada_build_task_list): Ditto.
2667
2668 * ada-lang.c: Conditionalize routines and data structures related
2669 to breakpoints, exceptions, completion, and symbol caching on
2670 GNAT_GDB, since these are not yet used in the submitted public sources.
2671 (ada_main_name): Editorial: Move definition out of exception-related
2672 code.
2673
31eef181
AC
26742004-06-15 Andrew Cagney <cagney@gnu.org>
2675
2676 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2677 deprecated_pc_in_call_dummy.
2678
2c500098
AM
26792004-06-15 Alan Modra <amodra@bigpond.net.au>
2680
2681 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2682 bfd_get_section_size_before_reloc or _raw_size.
2683 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2684 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2685 (dwarf2_read_section): Likewise.
2686 * elfread.c (elf_locate_sections): Likewise.
2687 * gcore.c (derive_heap_segment): Likewise.
2688 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2689 * remote-e7000.c (e7000_load): Likewise.
2690 * remote-m32r-sdi.c (m32r_load): Likewise.
2691 * remote-mips.c (mips_load_srec): Likewise.
2692 (pmon_load_fast): Likewise.
2693 * remote.c (compare_sections_command): Likewise.
2694 * symfile.c (add_section_size_callback): Likewise.
2695 (load_section_callback): Likewise.
2696 (pc_in_unmapped_range): Likewise.
2697 (pc_in_mapped_range): Likewise.
2698 (sections_overlap): Likewise.
2699 (list_overlays_command): Likewise.
2700 (simple_overlay_update_1): Likewise.
2701 (simple_overlay_update): Likewise.
2702 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2703 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2704
90f943f1
RC
27052004-06-14 Randolph Chung <tausq@debian.org>
2706
2707 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2708 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2709 static.
2710 (hppa_hpux_inferior_created): New function.
2711 (hppa_hpux_init_abi): Register observer.
2712 * symfile.c (hp_cxx_exception_support_initialized)
2713 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2714 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2715
700c15aa
RC
27162004-06-14 Randolph Chung <tausq@debian.org>
2717
3973a7d3
AC
2718 * MAINTAINERS (Write After Approval): Alphabetize my entry
2719 correctly.
700c15aa 2720
cea4838c
AC
27212004-06-14 Andrew Cagney <cagney@gnu.org>
2722
2723 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2724 testsuite maintainer.
2725
97092415
AC
27262004-06-13 Andrew Cagney <cagney@gnu.org>
2727
e8c3165b
AC
2728 * infcmd.c (print_return_value): Fix logic, allow
2729 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2730
bceabdd8
AC
2731 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2732 defining any macros.
2733 * gdbarch.h: Re-generate.
2734
57010b1c
AC
2735 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2736 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2737 * gdbarch.h: Re-generate.
2738
bc87dfa0
AC
2739 * values.c (generic_use_struct_convention): Don't check gcc_p.
2740
15ac804d
AC
2741 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2742 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2743 * gdbarch.h, gdbarch.c: Regenerate.
2744 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2745 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2746 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2747 deprecated_max_register_raw_size and
2748 deprecated_max_register_virtual_size.
2749 * v850-tdep.c (v850_gdbarch_init): Ditto.
2750 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2751 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2752 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2753 * cris-tdep.c (cris_gdbarch_init): Ditto.
2754
97092415
AC
2755 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2756 * gdbarch.h, gdbarch.c: Re-generate.
2757 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2758 (m68hc11_use_struct_convention): Delete function.
2759 (m68hc11_extract_struct_value_address): Delete function.
2760 (m68hc11_return_value): New function.
2761 (m68hc11_gdbarch_init): Instead of store_return_value,
2762 extract_return_value, return_value_on_stack,
2763 deprecated_extract_struct_value_address and use_struct_convention,
2764 set return_value.
2765 * values.c (using_struct_return): Do not call
2766 RETURN_VALUE_ON_STACK.
2767 * arch-utils.h (generic_return_value_on_stack_not): Delete
2768 declaration.
2769 * arch-utils.c (generic_return_value_on_stack_not): Delete
2770 function.
2771
44e5158b
AC
27722004-06-12 Andrew Cagney <cagney@gnu.org>
2773
2774 * values.c (register_value_being_returned): Delete function.
2775 * infcmd.c (legacy_return_value): Delete function.
2776 * infcall.c (call_function_by_hand): Inline
2777 "register_value_being_returned", simplify.
2778 * values.c (using_struct_return): Update comment, refer to
2779 print_return_value instead of register_value_being_returned.
2780 * infcmd.c (print_return_value): Inline calls to
2781 register_value_being_returned and legacy_return_value. Simplify.
2782
b887c273
RC
27832004-06-11 Randolph Chung <tausq@debian.org>
2784
2785 * somread.c (som_symtab_read): Exclude gcc local symbols.
2786
1b2bfbb9
RC
27872004-06-11 Randolph Chung <tausq@debian.org>
2788
3973a7d3
AC
2789 * infrun.c (handle_inferior_event): Handle the case when a
2790 trampoline ends up in the runtime resolver, and if the trampoline
2791 has no name. Rearrange the code so that all the trampoline
2792 processing happens before other step-out-of-range handling.
1b2bfbb9 2793
a9d61c86
MH
27942004-06-11 Martin Hunt <hunt@redhat.com>
2795
2796 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2797 has no fpu.
2798
2c87cf5a
AC
27992004-06-10 Andrew Cagney <cagney@gnu.org>
2800
2801 * blockframe.c (legacy_inside_entry_func): Delete.
2802 (legacy_frame_chain_valid): Inline call to
2803 legacy_inside_entry_func, simplify.
2804
0b67b468 28052004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
2806
2807 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
2808 * dwarf2read.c (partial_die_info): Add dirname field.
2809 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2810 (read_partial_die): Save away DW_AT_comp_dir.
2811 * defs.h (symtab_to_filename): Removed.
2812 * source.c (find_and_open_source): Added.
57c22c6c 2813 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
2814 (symtab_to_filename): Removed.
2815 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
2816 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2817 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2818 symtab_to_filename.
2819 * symtab.h (partial_symtab): Add dirname field.
2820 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
2821 (mi_cmd_file_list_exec_source_file): Call new function
2822 symtab_to_fullname to find fullname.
57c22c6c 2823 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 2824 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
2825 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2826
9a1dd1ad
AC
28272004-06-10 Andrew Cagney <cagney@gnu.org>
2828
239ae8c7
AC
2829 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2830 to generic_use_struct_convention, the default value.
2831
fc720350
AC
2832 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2833 of abort.
2834
9a1dd1ad
AC
2835 * ns32k-tdep.c (ns32k_push_arguments): New function.
2836 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2837 * infcall.c (call_function_by_hand): Call error instead of
2838 legacy_push_arguments.
2839 * value.h (legacy_push_arguments): Delete declaration.
2840 * valops.c (legacy_push_arguments): Delete function.
2841 (value_push): Delete function.
2842
fea25152
BF
28432004-06-10 Brian Ford <ford@vss.fsi.com>
2844
2845 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2846 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2847 info.
2848 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2849
30a4a8e0
AC
28502004-06-10 Andrew Cagney <cagney@gnu.org>
2851
2852 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2853 * gdbarch.h, gdbarch.c: Re-generate.
2854 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2855 parameters.
2856 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2857 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2858 deprecated_pc_in_call_dummy instead of
2859 DEPRECATED_PC_IN_CALL_DUMMY.
2860 (arm_skip_prologue): Ditto.
2861 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2862 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2863 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2864 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2865 Ditto.
2866 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2867 (sh64_init_extra_frame_info, sh64_get_saved_register)
2868 (sh64_pop_frame): Ditto.
2869 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2870 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2871 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2872 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2873 (h8300_pop_frame): Ditto.
2874 * blockframe.c (legacy_inside_entry_func)
2875 (legacy_frame_chain_valid): Ditto.
2876 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
2877 to deprecated_pc_in_call_dummy.
2878
81cfbe54
AC
28792004-06-09 Andrew Cagney <cagney@gnu.org>
2880
a1f4a1b6
AC
2881 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
2882 provide a default value.
2883 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
2884 * gdbarch.h, gdbarch.c: Re-generate.
2885 * arch-utils.c (generic_convert_register_p): Rename
2886 legacy_convert_register_p
2887 (legacy_register_to_value, legacy_value_to_register): Delete
2888 functions.
2889 * arch-utils.h (generic_convert_register_p): Rename
2890 legacy_convert_register_p.
2891 (legacy_register_to_value, legacy_value_to_register): Delete
2892 declarations.
2893
9730f241
AC
2894 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
2895 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
2896 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
2897 * gdbarch.h, gdbarch.c: Re-generate.
2898 * infcmd.c (default_print_registers_info): Simplify.
2899 * findvar.c (value_of_register): Simplify.
2900 * mi/mi-main.c (get_register): Simplify.
2901 * arch-utils.c (legacy_convert_register_p): Always return 0.
2902 (legacy_register_to_value, legacy_value_to_register): Always call
2903 internal_error.
2904
8a1bf479
AC
2905 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
2906 #ifdef CLEAR_INSN_CACHE code.
2907 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
2908 Delete #ifdef CLEAR_DEFERRED_STORES code.
2909
4b38d6f1
AC
2910 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
2911
2d62ecc7
AC
2912 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
2913 copyright.
2914 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
2915
be4f7469
AC
2916 * config/mips/mipsv4.mh: Delete file.
2917
81cfbe54
AC
2918 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
2919 unreferenced macro.
2920 (hpread_adjust_stack_address): Delete declaration.
2921
d966f0cb
AC
29222004-06-08 Andrew Cagney <cagney@gnu.org>
2923
2924 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2925 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
2926 PTRACE_ATTACH / PTRACE_DETACH available call error.
2927 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
2928 * infttrace.c (update_thread_state_after_attach, attach, detach):
2929 Remove #ifdef wrappers.
2930 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
2931 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2932 * config/nm-bsd.h (ATTACH_DETACH): Delete.
2933 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
2934 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
2935 * config/nm-linux.h (ATTACH_DETACH): Delete.
2936 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
2937 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
2938 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
2939 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
2940 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
2941
d91670b9
CV
29422004-06-08 Corinna Vinschen <vinschen@redhat.com>
2943
2944 * configure.in: Set $configdir to the right OS specific value.
2945 Use value when setting $tcldir and $tkdir.
2946 * configure: Regenerate.
2947
28ba0b33
PB
29482004-06-06 Paul Brook <paul@codesourcery.com>
2949
2950 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
2951 records.
2952
f26caa11
PH
29532004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
2954
2955 * ada-lang.c (lookup_symbol_in_language): New function to allow
2956 re-use of another language's symbol lookup code. (Placed here
2957 temporarily while Ada support is being integrated into the public
2958 tree).
2959 (restore_language): New auxiliary function for
2960 lookup_symbol_in_language.
2961 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
2962 temporarily while Ada support is being integrated into the public
2963 tree).
2964
d560a54b
AO
29652004-06-08 Alexandre Oliva <aoliva@redhat.com>
2966
e75d110c
AO
2967 * Makefile.in (check//%): New.
2968
d560a54b
AO
2969 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
2970 (mn10300_store_return_value): Rewrite.
2971 (mn10300_type_align): New.
2972 (mn10300_use_struct_convention): Rewrite.
2973 (mn10300_return_value): New, using all of the above.
2974 (mn10300_pop_frame_regular): Add saved_regs_size.
2975 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
2976
a72fbdb7
AO
2977 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
2978 regs if PC is on movm.
2979
01904826
JB
29802004-06-07 Jim Blandy <jimb@redhat.com>
2981
2982 Add native Linux support for the PowerPC E500.
2983 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
2984 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
2985 all architectures except the E500.
2986 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
2987 #definitions.
2988 (struct gdb_evrregset_t): New type.
2989 (have_ptrace_getsetevrregs): New variable.
2990 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
2991 fetch_spe_registers): New functions.
2992 (fetch_register): Call fetch_spe_register as appropriate.
2993 Assert that we're only passed raw register numbers.
2994 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
2995 Don't fetch gprs if they're pseudoregisters.
2996 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
2997 store_spe_registers): New functions.
2998 (store_register): Call store_spe_register as appropriate.
2999 Assert that we're only passed raw register numbers.
3000 (store_ppc_registers): Call store_spe_registers as appropriate.
3001 Don't store gprs if they're pseudoregisters.
3002
f90ef764
JJ
30032004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3004
3005 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3006 struct if one exists, even if we are dealing with a zombie thread.
3007
45b75230
AC
30082004-06-07 Andrew Cagney <cagney@gnu.org>
3009
3010 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3011 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3012 Rename PC_REQUIRES_RUN_BEFORE_USE.
3013 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3014 #ifdef.
3015
1658da49
RC
30162004-06-07 Randolph Chung <tausq@debian.org>
3017
3018 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3019 unwinding after sp has been saved to the stack but before the end
3020 of the prologue, and after the fp has been modified but before it has
3021 been saved to the stack.
3022 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3023 Remove superfluous definitions.
3024 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3025
9a727a3c
RC
30262004-06-07 Guy Martin <gmsoft@gentoo.org>
3027
3028 Committed by Randolph Chung.
3029 * hppa-linux-nat.c: Include the correct version of the header file
3030 depending on the kernel version.
3031
9e500012
RC
30322004-06-06 Randolph Chung <tausq@debian.org>
3033
3034 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3035 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3036
3388d7ff
RC
30372004-06-06 Randolph Chung <tausq@debian.org>
3038
3039 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3040 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3041 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3042 * hppa-tdep.c (hppa_symbol_address): New function definition.
3043 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3044
d49771ef
RC
30452004-06-06 Randolph Chung <tausq@debian.org>
3046
3047 * hppa-tdep.h (struct value): Forward declaration.
3048 (gdbarch_tdep): Define tdep find_global_pointer method.
3049 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3050 associated with the function we are trying to call, and write it
3051 to the gp register.
3052 (hppa32_convert_from_funct_ptr_addr): New function.
3053 (hppa_find_global_pointer): New function.
3054 (hppa_gdbarch_init): Set default find_global_pointer method; set
3055 convert_from_func_ptr_addr method.
3056 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3057 (hppa_linux_init_abi): Set find_global_pointer method.
3058 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3059
7d9b040b
RC
30602004-06-06 Randolph Chung <tausq@debian.org>
3061
3062 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3063 to struct value *function.
3064 * gdbarch.c: Regenerate.
3065 * gdbarch.h: Likewise.
3066 * infcall.c (call_function_by_hand): Pass entire function value
3067 to push_dummy_call.
3068
3069 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3070 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3071 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3072 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3073 * arm-tdep.c (arm_push_dummy_call): Likewise.
3074 * avr-tdep.c (avr_push_dummy_call): Likewise.
3075 * cris-tdep.c (cris_push_dummy_call): Likewise.
3076 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3077 * frv-tdep.c (frv_push_dummy_call): Likewise.
3078 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3079 * hppa-tdep.c (hppa32_push_dummy_call)
3080 (hppa64_push_dummy_call): Likewise.
3081 * i386-tdep.c (i386_push_dummy_call): Likewise.
3082 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3083 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3084 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3085 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3086 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3087 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3088 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3089 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3090 (ppc64_sysv_abi_push_dummy_call): Likewise.
3091 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3092 (ppc64_sysv_abi_push_dummy_call): Likewise.
3093 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3094 * s390-tdep.c (s390_push_dummy_call): Likewise.
3095 * sh-tdep.c (sh_push_dummy_call_fpu)
3096 (sh_push_dummy_call_nofpu): Likewise.
3097 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3098 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3099 * vax-tdep.c (vax_push_dummy_call): Likewise.
3100
4a19ea35
JB
31012004-06-04 Jim Blandy <jimb@redhat.com>
3102
8327ccee
JB
3103 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3104 gdbarch argument to register_size.
3105
a3c001ce
JB
3106 * rs6000-tdep.c (rs6000_store_return_value): Use
3107 regcache_cooked_write_part instead of
3108 deprecated_write_register_bytes.
3109 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3110 not gdbarch_deprecated_store_return_value.
3111
4a19ea35
JB
3112 * ppc-linux-nat.c (store_register, fetch_register): Remove
3113 incorrect assertions. Simplify and generalize handling of
3114 transfers whose sizes are not multiples of, or less than, sizeof
3115 (PTRACE_XFER_TYPE).
3116
b9b5d7ea
JJ
31172004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3118
3119 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3120 as a new thread event.
720c7d64 3121 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 3122 zombie, return TD_THR_ZOMBIE.
720c7d64 3123 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
3124 TD_THR_ZOMBIE, check if the thread is still on the thread list
3125 and return a -1 ptid if not found.
3126 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3127 change the status to TARGET_WAITKIND_SPURIOUS.
3128
c8a3b559
CV
31292004-06-03 Corinna Vinschen <vinschen@redhat.com>
3130
3131 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3132 double values in little endian mode.
3133
20605361
AC
31342004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3135
3136 Committed by Andrew Cagney.
3137 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3138 after last enum constant to avoid error from IBM C
3139 compiler.
3140
bc97b3ba
JB
31412004-06-02 Jim Blandy <jimb@redhat.com>
3142
3143 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3144 to 'message', and make it local to the lone block that uses it.
3145
1da28ab0
JB
3146 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3147
4c4b4cd2
PH
31482004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3149
8a2225b2
PH
3150 * ada-exp.y: Update copyright notice.
3151 Include block.h.
3152
3153 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3154 SPECIAL_VARIABLE and unify the treatment of these cases.
3155
3156 (write_attribute_call0): Remove.
3157 (write_attribute_call1): Remove.
3158 (write_attribute_calln): Remove.
3159 (save_qualifier): Add missing semicolon.
3160
3161 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3162 temporarily disabled to allow compilation with FSF head version.
3163
3164 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3165 use individual operators (OP_*) for all attributes.
3166 (exp syntax): Use write_int.
3167 Handle STRING literals with OP_STRING.
3168 (variable syntax): Add limit parameter to calls to
3169 write_object_renaming.
3170
3171 (temp_parse_space): New definition to hold entities that need
3172 only live until the next call to ada_parse.
3173 (string_to_operator): Rename fields of ada_opname_table entries.
3174
3175 (write_var_from_sym): Record block.
3176 (write_var_from_name): Minor reformatting.
3177 Make sure saved name is properly encoded in the case of multiple
3178 matches, and set its language to Ada.
3179 Update comment.
3180 Modify to indicate unresolved name as symbol in the UNRESOLVED
3181 namespace, allocated in temp_parse_space.
3182 (write_int): New function.
3183
3184 (write_object_renaming): Add max_depth parameter to limit
3185 chains of object renamings.
3186 Handle case where root of renaming expression is itself a renaming.
3187 Use temp_parse_space for temporary name buffer.
3188 Handle renamings to dereferenced pointers (___XEXA suffices).
3189
3190 (ada_parse, yyerror, string_to_operator,
3191 write_var_from_sym, write_var_from_name, write_attribute_call0,
3192 write_attribute_call1, write_attribute_calln,
3193 write_object_renaming): Protoize.
3194
3195 (_initialize_ada_exp): New function.
3196
3197 * ada-lang.c: Update copyright notice.
3198 General terminology change to conform to GNAT compiler usage:
3199 mangle => encode, demangle => decode
3200 Include gdb_obstack.h.
3201 Include gdb_regex.h
3202 Include frame.h
3203 Include hashtab.h
3204 Include completer.h
3205 Include gdb_stat.h
3206 Include block.h
3207 Include infcall.h
3208
3209 (ADA_RETAIN_DOTS): Make sure this is defined.
3210 (TRUNCATION_TOWARDS_ZERO): Define.
3211 (struct string_vector): Define.
3212 (unresolved_names): Remove definition.
3213 (xnew_string_vector): New function.
3214 (string_vector_append): New function.
3215 (extract_string): Make static.
3216 (ada_unqualified_name): New function.
3217 (add_angle_brackets): New function.
3218 (function_name_from_pc): New function.
3219 (place_on_stack): Rename to ensure_lval.
3220
3221 (ensure_lval): Renamed from place_on_stack.
3222 Make identity on lvals.
3223 Update comment.
3224 (is_nonfunction): New interface.
3225 Only symbols in LOC_CONST class can be enumerals.
3226 (fill_in_ada_prototype): Remove; now independent of language.
3227 (add_defn_to_vec): Add obstack and symtab arguments.
3228 Use obstack to hold collected definitions.
3229 (num_defns_collected): New function.
3230 (defns_collected): New function.
3231 (ada_resolve_subexp): Rename to resolve_subexp.
3232 (resolve_subexp): Renamed from ada_resolve_subexp.
3233 (ada_op_name): Return non-const result.
3234 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3235 other purposes.
3236
3237 (to_fixed_array_type): Add declaration.
3238 (coerce_unspec_val_to_type): Remove offset parameter.
3239 (find_sal_from_funcs_and_line): New interface.
3240 (find_line_in_linetable): Ditto.
3241
3242 (all_sals_for_line): Rename to ada_sals_for_line and make
3243 global.
3244 Add new parameter. When set, do not ask the user to choose the
3245 instance, but use the first one found instead.
3246 Use given line number in returned sals.
3247 Fix comment.
3248 Skip the prologue if funfirstline is set.
3249 Correct for memory leak when 0 lines found.
3250
3251 (value_pos_atr): Use pos_atr.
3252 (pos_atr): New function.
3253 (standard_lookup): Add block parameter.
3254
3255 (makeTimeStart): Remove declaration and uses.
3256 (makeTimeStop): Remove declaration and uses.
3257
3258 (ada_completer_word_break_characters): Allow for VMS.
3259 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3260 (raise_sym_name): New constant.
3261 (raise_unhandled_sym_name): New constant.
3262 (raise_assert_sym_name): New constant.
3263 (process_raise_exception_name): New constant.
3264 (longest_exception_template): New constant.
3265 (warning_limit): New variable to limit warnings during expression
3266 evaluation.
3267 (warnings_issued): New variable to keep track of warnings issued.
3268 (known_runtime_file_name_patterns): New constant.
3269 (known_auxiliary_function_name_patterns): New constant.
3270 (symbol_list_obstack): New variable.
3271
3272 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3273 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3274 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3275 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3276 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3277 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3278 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3279 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3280 and strcmp.
3281
3282 (ada_get_field_index): New function.
3283 (lim_warning): New function.
3284 (ada_translate_error_message): New function.
3285 (MAX_OF_SIZE): New function.
3286 (MIN_OF_SIZE): New function.
3287 (UMAX_OF_SIZE): New function.
3288 (UMIN_OF_SIZE): New function.
3289 (discrete_type_high_bound): New function.
3290 (discrete_type_low_bound): New function.
3291 (base_type): New function.
3292 (do_command): Remove.
3293
3294 (ada_update_initial_language): Use language_ada, not language_unknown.
3295 (ada_encode): Renamed from ada_mangle.
3296 Obey ADA_RETAIN_DOTS.
3297 (ada_decode): Renamed from ada_demangle.
3298 Update coding conventions.
3299 (decoded_names_store): New hash table.
3300 (ada_decode_symbol): New function.
3301 (ada_la_decode): New function.
3302
3303 (modify_general_field): Correct computations of offset and bit
3304 position.
3305 (desc_base_type): Handle ref types, too.
3306 (ada_is_direct_array_type): New function.
3307
3308 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3309 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3310 (ada_is_bogus_array_descriptor,ada_type_of_array,
3311 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3312 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3313 ada_is_array_descriptor_type.
3314
3315 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3316 (ada_is_packed_array_type): Handle pointers or
3317 references to packed arrays as well.
3318 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3319 (decode_packed_array_type): Search for the packed array type
3320 symbol in the currently selected block and associated
3321 superblocks too.
3322 Use lookup_symbol again.
3323
3324 (decode_packed_array): Handle pointers and references.
3325 Update call to coerce_unspec_val_to_type.
3326 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3327 (ada_value_primitive_packed_val): Improve comment.
3328
3329 (ada_index_type): Substitute int type for "undefined".
3330 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3331 ada_array_langth, ada_is_string_type): Use renamed
3332 ada_is_simple_array_type.
3333 (empty_array): New function.
3334
3335 (ada_resolve): Rename to resolve.
3336 (resolve): Make static.
3337 Call renamed resolve_subexp.
3338 Update comment.
3339 (ada_resolve_subexp): Rename to resolve_subexp.
3340 (resolve_subexp): Update comment.
3341 Decomment disabled code.
3342 Add LOC_COMPUTED* cases.
3343 Modify to use temporary struct symbols (marked as being in
3344 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3345 OP_UNRESOLVED_VALUE.
3346 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3347 Add OP_STRING case.
3348 Remove OP_ARRAY.
3349 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3350 Use new ada_lookup_symbol_list interface.
3351 Use new ada_resolve_function interface.
3352 Remove OP_TYPE case.
3353
3354 (ada_args_match): Idiot proof against null actuals.
3355 Use intermediate variables to clarify.
3356 (ada_resolve_function): Update comment and interface.
3357 (mangled_ordered_before): Rename to encoded_ordered_before and
3358 update comment.
3359 (sort_choices): Update comment and interface.
3360 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3361 (user_select_syms): New interface.
3362 Use new sort_choices interface.
3363 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3364 (possible_user_operator_p): Idiot-proof against null values.
3365 (ada_simple_renamed_entity): Don't make cleanup; rely on
3366 caller to free result string.
3367 Remove const from return type.
3368 (make_array_descriptor): Rename uses of place_on_stack to
3369 ensure_lval.
3370 Make sure that arrays are on stack.
3371
3372 (HASH_SIZE): Define.
3373 (struct cache_entry): Define.
3374 (cache_space): Define.
3375 (cache): Define.
3376 (clear_ada_sym_cache): New function.
3377 (find_entry): New function.
3378 (lookup_cached_symbol): New function.
3379 (defn_vector_size): Define.
3380 (cache_symbol): New function.
3381 (defn_symbols): Remove.
3382
3383 (standard_lookup): Use lookup_symbol_in_language to get effect of
3384 C lookup.
3385 Cache results.
3386
3387 (symbol_completion_match): New function.
3388 (symbol_completion_add): New function.
3389 (ada_make_symbol_completion_list): New function.
3390
3391 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3392 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3393 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3394 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3395
3396 (ada_lookup_simple_minsym): New function.
3397 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3398
3399 (add_symbols_from_enclosing_procs): New interface.
3400 Conditionalize more helpfully.
3401 Don't bother if program isn't running.
3402 Use new interface to get_frame_block.
3403 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3404
3405 (remove_extra_symbols): New interface.
3406 (xget_renaming_scope): New function.
3407 (is_package_name): New function.
3408 (renaming_is_visible): New function.
3409 (remove_out_of_scope_renamings): New function.
3410
3411 (ada_lookup_symbol_list): New interface.
3412 Properly reinitialize the symbol list obstack.
3413 Don't call add_symbols_from_enclosing_procs if we start from a
3414 static or global block.
3415 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3416 add_symbols_from_enclosing_procs.
3417 Add symtab data to cached entries.
3418 Handle symbols prefixed with
3419 "standard__" specially; strip prefix and don't look in local symbols.
3420 Do not include out of scope renaming symbols in list of
3421 symbols returned.
3422 Add const to block parameter.
3423 Move check for non-local, non-global symbols earlier.
3424 Remove timing stuff.
3425 (ada_lookup_symbol): New interface.
3426 Find symtab as well.
3427 (ada_lookup_symbol_nonlocal): New function.
3428
3429 (is_name_suffix): Enhance suffix detection to recognize
3430 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3431 (is_dot_digits_suffix): New function.
3432 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3433
3434 (ada_add_block_symbols): New interface. Use obstack to return results
3435 in a vector of struct ada_symbol_infos. Add symtab argument.
3436 Use new interface to add_defn_to_vec.
3437 Remove calls to fill_in_ada_prototype.
3438 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3439
3440 (ada_finish_decode_line_1): Add const qualification to local to fix
3441 warning.
3442 Start looking in static block for functions to avoid attempts
3443 to search frame chain for up-level variables.
3444 Adapt to new ada_sals_for_line interface.
3445 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3446 Handle quoting of the function name inside the spec string.
3447 Skip prologue when funfirstline is set and update the
3448 function documentation to that effect.
3449
3450 (debug_print_lines, debug_print_block, debug_print_blocks,
3451 debug_print_symtab): Remove.
3452
3453 (ada_main_name): New function.
3454 (ada_exception_breakpoint_type): New function.
3455 (is_known_support_routine): New function.
3456 (ada_find_printable_frame): Renamed from find_printable_frame and made
3457 global.
3458 Remove level parameter.
3459 Use new interface to select_frame.
3460
3461 (begin_command): Remove.
3462 (ada_adjust_exception_stop): New function.
3463 (ada_print_exception_stop): New function.
3464 (exception_name_from_cond): New function.
3465 (ada_report_exception_break): Replace disabled code with
3466 conditionalization on GNAT_GDB.
3467 Get the exception name from the condition string.
3468 Remove and move functionality into new functions
3469 ada_print_exception_breakpoint_task and
3470 ada_print_exception_breakpoint_nontask.
3471 (error_breakpoint_runtime_sym_not_found): New function.
3472 (is_runtime_sym_defined): New function.
3473 (ada_breakpoint_rewrite): Uncomment suppressed code.
3474 Use symbolic error-message and runtime-symbol names.
3475 Surround runtime symbol names in quotes.
3476 Allow non-specific breakpoints on exceptions and assertions before
3477 program starts.
3478
3479 (ada_is_tagged_type): Add parameter.
3480 (ada_is_tag_type): New function.
3481 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3482 (ada_variant_discrim_type): Ditto.
3483 (value_tag_from_contents_and_address): New function.
3484 (type_from_tag): New function.
3485 (struct tag_args): New structure used to communicate with
3486 ada_tag_name_1.
3487 (ada_tag_name_1): New function.
3488 (ada_tag_name): New function.
3489
3490 (ada_scan_number): Update comment.
3491 (find_struct_field): New function.
3492 (ada_search_struct_field): Make static.
3493 (ada_value_struct_elt): New version that returns references when
3494 given pointers or references to structs.
3495 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3496 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3497 interface.
3498 (ada_value_ind): Use new ada_to_fixed_value interface.
3499 (ada_coerce_ref): Ditto.
3500 (field_offset): Remove.
3501
3502 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3503 (ada_find_renaming_symbol): New function.
3504 (ada_prefer_type): Prefer named types over unnamed ones.
3505 (variant_field_index): New function.
3506 (contains_variant_part): Removed: subsumed by variant_field_index.
3507 (ada_template_to_fixed_record_type): New function, mostly from
3508 template_to_fixed_record_type.
3509 (template_to_fixed_record_type):
3510 Do not scan the type fields beyond the last one; prevents a
3511 potential SEGV.
3512 Handle case where variant field is listed BEFORE discriminant it
3513 depends on.
3514 Fix calculation of record length when bit length is
3515 not evenly divisible by char length.
3516 Move code to ada_template_to_fixed_record_type and call it.
3517
3518 (template_to_static_fixed_type): Revise comment.
3519 Modify to work on ordinary record types as well as templates,
3520 so as to handle fields that use ___XVE or ___XVU encodings.
3521 (to_record_with_fixed_variant_part): Fill out comment.
3522 Initialize C++ stuff in right type.
3523 Allow case where DVAL is null.
3524 Handle case where variant field is not last.
3525 Fix typo concerning record length.
3526 (to_fixed_record_type): Decomment disabled code.
3527 (to_fixed_record_type): Use variant_field_index instead of
3528 contains_variant_part.
3529 (to_fixed_variant_branch_type): Ditto.
3530 (to_fixed_array_type): Decomment disabled code.
3531 (ada_to_fixed_type): Convert tagged types to the specific type.
3532 Deactivate the size-check for array types in order to avoid
3533 some false size alarms.
3534 (to_static_fixed_type): Decomment disabled code.
3535 Modify to call template_to_static_fixed_type
3536 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3537 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3538 Remove valaddr argument, as it is never really used.
3539 (ada_to_fixed_value): Change interface to act on single struct value*
3540 operand.
3541 (adjust_pc_past_prologue): New function.
3542 (ada_attribute_name): Modify to take enum exp_opcode argument.
3543
3544 (ada_enum_name): Recognize new homonym-distinguishing convention.
3545 Adjust local variable's type to remove compiler warning.
3546 Fix a small problem in the part that unqualifies the enumeration name.
3547 (ada_value_binop): New function.
3548 (ada_value_equal): New function.
3549
3550 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3551 Don't give error message when not doing normal evaluation
3552 and a tagged type doesn't seem to contain a structure member.
3553 Give error message for packed arrays.
3554 For indexing arrays, handle pointers to packed arrays correctly.
3555 Handle case of 'first and 'last attributes of bare integral type
3556 without encoded subtype info.
3557 Remove some unnecessary casts.
3558 Fix uninitialized value of type in computing 'first, 'last, or 'length
3559 of array object.
3560 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3561 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3562 calls.
3563 Attributes are now exp_opcode values.
3564 Correct treatment of 'modulus.
3565 Better error message for taking 'length of wrong kind of type;
3566 improve comment.
3567 Change EVAL_NORMAL to noside for consistency.
3568 Use ada_value_binop for DIV, MOD, REM.
3569 Make special case out of array of length 0, since an argument
3570 of 0 upsets some platforms' malloc.
3571 Use OP_STRING instead of OP_ARRAY.
3572 For slice, add check that we have an array type before extracting
3573 a slice out of it. Avoids a SEGV.
3574 When evaluating an array slice, if the array type is a reference to
3575 an aligner type, then replace the aligner type by the actual type.
3576 Decomment disabled code.
3577 Remove some dead code.
3578 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3579 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3580 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3581 and UNOP_MBR to UNOP_IN_RANGE.
3582 If an array type has a parallel ___XVE type, then use it.
3583 Turn arrays into pointers for lvalue arrays.
3584 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3585 bounds error and handle 0-length slices.
3586 Use lim_warning.
3587 When selecting fields, apply ada_to_fixed_value (because the fields
3588 might have ___XVU or ___XVE encodings even if not dynamic.)
3589 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3590 (ada_is_system_address_type): New function.
3591
3592 (get_var_value): Use new interface to ada_lookup_symbol_list.
3593 (get_int_var_value): New interface.
3594 (to_fixed_range_type): Allow unknown bound, with warning.
3595 (ada_is_modular_type): Decomment disabled code.
3596 (ADA_OPERATORS): New definition.
3597 (ada_operator_length): New function.
3598 (ada_expr_op_name): New function.
3599 (ada_forward_operator_length): New function.
3600 (ada_dump_subexp_body): New function.
3601 (ada_print_subexp): New function.
3602 (ada_exp_descriptor): New constant.
3603 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3604 (ada_language_defn): Add ada_exp_descriptor entry.
3605 Change ada_parse => parse.
3606 Add post-parser entry.
3607 Use ada-specific non-local symbol lookup.
3608 Don't use C-style arrays.
3609 String lower-bound is 1.
3610 Decomment disabled code.
3611 (parse): New function.
3612 New fields ada_translate_error_message, ada_lookup_symbol,
3613 ada_lookup_minimal_symbol.
3614
3615 * ada-lang.h: Update copyright dates.
3616 Replace the mangle/demangle terminology throughout by the
3617 more appropriate encode/decode one.
3618 Include breakpoint.h.
3619 Forward declare struct partial_symbol, struct block.
3620 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3621 (EXTRACT_ADDRESS): Remove.
3622 (EXTRACT_INT): Remove.
3623 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3624 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3625 (MAX_RENAMING_CHAIN_LENGTH): Define.
3626 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3627
3628 (enum task_states): Remove.
3629 ada_task_states: Remove.
3630 (fat_string): Remove.
3631 (struct entry_call): Remove.
3632 (struct task_fields): Remove.
3633 (struct task_entry): Remove.
3634
3635 (struct ada_symbol_info): Define.
3636 (enum ada_attribute): Remove.
3637 (enum ada_operator): Define.
3638
3639 (ada_get_field_index): Declare.
3640 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3641 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3642 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3643 (ada_lookup_symbol_list): New interface.
3644 (ada_decode_symbol): Declare.
3645 (ada_decode): Declare.
3646 (ada_lookup_symbol): New interface.
3647 (ada_update_initial_language): Declare.
3648 (ada_lookup_simple_minsym): Declare.
3649 (user_select_syms): New interface.
3650 (ada_sals_for_line): Declare.
3651 (ada_is_tagged_type): New interface.
3652 (ada_tag_name): Declare.
3653 (ada_lookup_struct_elt_type): Remove declaration.
3654 (ada_search_struct_field): Remove declaration.
3655 (ada_attribute_name): New interface.
3656 (ada_is_system_address_type): Declare.
3657 (ada_to_fixed_value): Remove declaration.
3658 (ada_template_to_fixed_record_type_1): Declare.
3659 (get_int_var_value): New interface.
3660 (ada_find_any_symbol): Declare.
3661 (ada_find_renaming_symbol): Declare.
3662 (ada_mangle): Rename to ada_encode.
3663 (ada_simple_renamed_entity): Remove const.
3664 (ada_main_name): Declare.
3665 (get_current_task): Rename to ada_get_current_task.
3666 (get_entry_number): Remove declaration.
3667 (ada_report_exception_break): Remove declaration.
3668 (ada_print_exception_breakpoint_nontask): Declare.
3669 (ada_print_exception_breakpoint_task): Declare.
3670 (ada_find_printable_frame): Declare.
3671
3672 * ada-lex.l: Update copyright notices.
3673 Use xmalloc and xfree instead of malloc and free.
3674 Use new interface to name_lookup.
3675 Use new interface to
3676 ada_mangle=>ada_encode.
3677 Redo handling of '$...' variable to parallel current treatment
3678 in c-exp.y.
3679 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3680 digit_to_int, strtoulst, processInt, processReal, processId,
3681 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3682 yywrap): Protoize.
3683
3684 (processInt): Use cast to remove harmless warning.
3685 (processReal): Modify to get rid of compiler warning on scan formats.
3686
3687 (processId): Replace xmalloc with obstack_alloc for name and remove
3688 call to ada_name_string_cleanup.
3689 Remove obsolete disabled code.
3690 (name_lookup): Ditto.
3691 New interface.
3692 Use obsavestring on temp_parse_space instead of savestring
3693 on name, and remove call to ada_name_string_cleanup.
3694 Free string returned from ada_simple_renamed_entity.
3695 Use new interface to ada_lookup_symbol_list.
3696 Decomment disabled code.
3697 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3698 not types.
3699 When a type name lookup succeeds as a result of
3700 lookup_primitive_typename, check for regular type entry that has not
3701 yet been read in.
3702 Limit length of chain of renamed symbols we are willing to follow.
3703 Do not break names beginning with "standard__" into segments.
3704 (block_lookup): Use new interface to ada_lookup_symbol_list.
3705
3706 * ada-typeprint.c: Update copyright notice.
3707 (demangled_type_name): Rename to decoded_type_name.
3708 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3709 (print_range_bound): Correct handling of negative
3710 bounds that make the index type looked unsigned under STABS.
3711 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3712 (print_range_type_named): Use the builtin int type if no type
3713 corresponding to the given type name could be found.
3714 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3715 Add some bullet-proofing.
3716 (print_variant_clauses): Allow for variant branches with ___XVU
3717 encodings that are not dynamic fields.
3718 Use new interface to ada_is_tagged_type.
3719 (print_record_type): Allow for fields with ___XVE encodings that
3720 are not dynamic fields.
3721 Use new interface to ada_is_tagged_type.
3722 (ada_print_type): ada_is_array_descriptor =>
3723 ada_is_array_descriptor_type.
3724
3725 * ada-valprint.c: Update copyright notice.
3726 Include gdb_string.h
3727 Include infcall.h
3728 (ui_memcpy): New function.
3729 (ada_print_floating): New function.
3730 (ada_print_str): Order arguments correctly.
3731 Correct handling of empty arrays and arrays of 0-length items.
3732 ada_is_array_descriptor => ada_is_array_descriptor_type
3733 Print values of type System.Address in hexadecimal format.
3734 Use ada_print_floating to print floating-point numbers in Ada format.
3735 Print class tag values with type names.
3736 No longer print the address of reference values. Avoids
3737 a potential confusion.
3738 (ada_value_print): Stop printing the object type for reference
3739 values, but preserve that behavior for access types. Avoids
3740 a potential confusion.
3741 Simplify one conditional expression, as the first part is now
3742 necessarily true.
3743 ada_is_array_descriptor => ada_is_array_descriptor_type
3744 Add check for arrays for null records, and print them by hand.
4c4b4cd2 3745
f65f91b5
JB
37462004-06-01 Jim Blandy <jimb@redhat.com>
3747
3748 * ppc-tdep.h: Delete unused 'regoff' member.
3749 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3750
d4687fa0
MC
37512004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3752
3753 Fix PR symtab/1661.
3754 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3755 (hpread_read_struct_type): Likewise.
3756
de169ec9
AC
37572004-06-01 Andrew Cagney <cagney@gnu.org>
3758
c6902d46
AC
3759 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3760 instead of xasprintf.
3761 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3762 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3763 (mi_cmd_data_list_register_names)
3764 (mi_cmd_data_list_changed_registers)
3765 (mi_cmd_data_list_register_values)
3766 (get_register, mi_cmd_data_write_register_values)
3767 (mi_cmd_data_write_register_values)
3768 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3769 (mi_cmd_target_download, mi_cmd_target_select)
3770 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3771 (mi_execute_cli_command, mi_execute_async_cli_command)
3772 (mi_execute_async_cli_command): Ditto.
3773 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3774 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3775
6085fc2d
AC
3776 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3777 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3778 error_last_message instead of mi_error_last_message.
3779 * mi/mi-main.c (mi_error_last_message): Delete function.
3780
de169ec9
AC
3781 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3782 "invalid number of columns" error. Delete redundant "out of
3783 memory" check.
3784
1fc7d519
MK
37852004-05-31 Mark Kettenis <kettenis@gnu.org>
3786
6cfb2041
MK
3787 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3788 (gregset_t, fpregset_t): Remove typedefs.
3789 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3790 (REG_OFFSET): Rename argument.
3791 (i386bsd_r_reg_offset): Rename from reg_offset.
3792 (REG_ADDR): Remove macro.
3793 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3794 functions.
3795 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3796 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3797 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3798 instead of supply_gregset.
3799 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3800 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3801 instead of fill_gregset.
3802 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3803
1fc7d519
MK
3804 * i386bsd-nat.c: Don't include "gregset.h".
3805 (supply_gregset, fill_gregset): Make static.
3806 (supply_fpregset, fill_fpregset): Remove.
3807 * Makefile.in (i386bsd-nat.o): Update dependencies.
3808
2c34abbe
MK
38092004-05-30 Mark Kettenis <kettenis@gnu.org>
3810
448724fb
MK
3811 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3812 "gdb_assert.h". Con't include "gregset.h".
3813 (fbsd_make_corefile_notes): Use regset-based core file support
3814 instead off fill_gregset and fill_fpregset.
3815 * Makefile.in (fbsd-proc.o): Update dependencies.
3816
5ca8ca7c
MK
3817 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3818 instructions.
3819 (m88k_frame_prev_register): Simplify code a bit.
3820
593adc23
MK
3821 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3822 (amd64_collect_fpregset): New function.
3823 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3824
8d1b517b
MK
3825 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3826
7fdafb5a
MK
3827 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3828 (i386_collect_gregset): New function.
3829 (i386_supply_fpregset): Adjust comment.
3830 (i386_collect_fpregset): New function.
3831 (i386_regset_from_core_section): Use i386_collect_gregset and
3832 i386_collect_fpregset.
3833
8693c419
MK
3834 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3835 handle VALUEP being null.
3836
2c34abbe
MK
3837 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3838
45d134d8
MK
38392004-05-29 Mark Kettenis <kettenis@gnu.org>
3840
1698f4e7
MK
3841 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3842
45d134d8
MK
3843 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3844 assembler in OpenBSD 3.5-current.
3845 (amd64obsd_sigcontext_addr): Likewise.
3846
691d145a
JB
38472004-05-28 Jim Blandy <jimb@redhat.com>
3848
3849 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3850 register set, so our regcache isn't declared "legacy" and our E500
3851 pseudoregister read and write functions aren't ignored.
3852 (rs6000_register_byte, rs6000_register_raw_size,
3853 rs6000_register_virtual_type, rs6000_register_convertible,
3854 rs6000_register_convert_to_virtual,
3855 rs6000_register_convert_to_raw): Deleted.
3856 (rs6000_register_type, rs6000_convert_register_p,
3857 rs6000_register_to_value, rs6000_value_to_register): New
3858 functions.
3859 (rs6000_gdbarch_init): Don't register
3860 gdbarch_deprecated_register_size,
3861 gdbarch_deprecated_register_bytes,
3862 gdbarch_deprecated_register_byte,
3863 gdbarch_deprecated_register_raw_size,
3864 gdbarch_deprecated_register_virtual_type,
3865 gdbarch_deprecated_register_convertible,
3866 gdbarch_deprecated_register_convert_to_virtual, or
3867 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3868 register gdbarch_register_type, gdbarch_convert_register_p,
3869 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3870
18ed0c4e
JB
38712004-05-26 Jim Blandy <jimb@redhat.com>
3872
3873 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3874 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3875 functions, updated to match the register numberings used in GCC.
3876 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
3877 rs6000_dwarf2_reg_to_regnum as register number conversions
3878 functions for STABS and Dwarf2.
3879
779af9e3
RC
38802004-05-26 Randolph Chung <tausq@debian.org>
3881
3882 * infttrace.h (target_waitkind): Forward declare type instead of pulling
3883 in header file.
3884
c23968a2
JB
38852004-05-25 Joel Brobecker <brobecker@gnat.com>
3886
3887 * NEWS: Document new "start" command.
3888
3a7d1c27
RC
38892004-05-25 Randolph Chung <tausq@debian.org>
3890
3891 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
3892 hppa-linux.
3893
43613416
RC
38942004-05-25 Randolph Chung <tausq@debian.org>
3895
3896 * hppa-hpux-tdep.c (offsetof): Define.
3897 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
3898 (hppa32_hpux_frame_base_before_sigtramp)
3899 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3900 (hppa64_hpux_frame_saved_pc_in_sigtramp)
3901 (hppa64_hpux_frame_base_before_sigtramp)
3902 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
3903 functions.
3904 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
3905 (hppa_hpux_sigtramp_frame_unwind_cache)
3906 (hppa_hpux_sigtramp_frame_this_id)
3907 (hppa_hpux_sigtramp_frame_prev_register)
3908 (hppa_hpux_sigtramp_frame_unwind)
3909 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
3910 (hppa_hpux_init_abi): Register sigtramp unwinder.
3911 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
3912
6d1be3f1
RC
39132004-05-25 Randolph Chung <tausq@debian.org>
3914
3915 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
3916 and multiple stack unwinds.
3917 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
3918
97c34f65
AC
39192004-05-25 Andrew Cagney <cagney@gnu.org>
3920
3921 * symfile.h (symbol_file_add_from_memory): Delete declaration.
3922 * symfile-mem.h: Delete file.
3923 * symfile-mem.c: Do not include "symfile-mem.h".
3924 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
3925 "struct bfd_section". When an error do not bother returning NULL.
3926 (add_symbol_file_from_memory_command): Use "struct bfd" and
3927 "struct bfd_section".
3928 * Makefile.in (symfile_mem_h): Delete.
3929 (symfile-mem.o): Update dependencies.
3930
e23cbd82
NR
39312004-05-25 Nick Roberts <nickrob@gnu.org>
3932
3933 * gdb-mi.el: New file.
3934
20d2ca3e
AC
39352004-05-25 Andrew Cagney <cagney@gnu.org>
3936
3937 * inftarg.c: Include "observer.h".
3938 (child_attach, child_create_inferior): Notify inferior_created.
3939 * corelow.c: Include "observer.h".
3940 (core_open): Notify inferior_created.
3941 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
3942
c27cda74
AC
39432004-05-25 Andrew Cagney <cagney@gnu.org>
3944
3945 * target.h (struct target_ops): Add from_tty to
3946 to_create_inferior.
3947 (target_create_inferior, find_default_create_inferior): Update.
3948 * infcmd.c (run_command): Update.
3949 * wince.c (child_create_inferior): Update.
3950 * win32-nat.c (child_create_inferior): Update.
3951 * uw-thread.c (uw_thread_create_inferior): Update.
3952 * thread-db.c (thread_db_create_inferior): Update.
3953 * target.c (debug_to_create_inferior)
3954 (find_default_create_inferior): Update.
3955 (maybe_kill_then_create_inferior): Update.
3956 * sol-thread.c (sol_thread_create_inferior): Update.
3957 * remote.c (extended_remote_async_create_inferior)
3958 (extended_remote_create_inferior): Update.
3959 * remote-vx.c (vx_create_inferior): Update.
3960 * remote-st.c (st2000_create_inferior): Update.
3961 * remote-sim.c (gdbsim_create_inferior): Update.
3962 * remote-sds.c (sds_create_inferior): Update.
3963 * remote-rdp.c (remote_rdp_create_inferior): Update.
3964 * remote-rdi.c (arm_rdi_create_inferior): Update.
3965 * remote-m32r-sdi.c (m32r_create_inferior): Update.
3966 * remote-e7000.c (e7000_create_inferior): Update.
3967 * procfs.c (procfs_create_inferior): Update.
3968 * ocd.c (ocd_create_inferior): Update.
3969 * ocd.h (ocd_create_inferior): Update.
3970 * nto-procfs.c (procfs_create_inferior): Update.
3971 * monitor.c (monitor_create_inferior): Update.
3972 * lin-lwp.c (lin_lwp_create_inferior): Update.
3973 * inftarg.c (child_create_inferior): Update.
3974 * hpux-thread.c (hpux_thread_create_inferior): Update.
3975 * gnu-nat.c (gnu_create_inferior): Update.
3976
1db2a798
AC
39772004-05-25 Andrew Cagney <cagney@gnu.com>
3978
3979 * MAINTAINERS: Update e-mail address.
3980
007d08bb
RC
39812004-05-24 Randolph Chung <tausq@debian.org>
3982
3983 * thread.c (info_threads_command, thread_apply_all_command)
3984 (thread_apply_command, thread_command, do_captured_thread_select):
3985 Remove HPUXHPPA-specific code.
3986
69e7b95e
RC
39872004-05-24 Randolph Chung <tausq@debian.org>
3988
3989 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
3990 unused symbols.
3991 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
3992 references.
3993
a4d5f2e0
JB
39942004-05-24 Joel Brobecker <brobecker@gnat.com>
3995
3996 * infcmd.c (kill_if_already_running): New function, extracted
3997 from run_command().
3998 (run_command): Replace extracted code by call to
3999 kill_if_already_running().
4000 (start_command): New function.
4001 (_initialize_infcmd): Add "start" command.
4002
bf2ca189
MK
40032004-05-24 Mark Kettenis <kettenis@gnu.org>
4004
4005 Add OpenBSD/m88k support.
4006 * NEWS (New native configurations): Mention OpenBSD/m88k.
4007 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4008 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4009 * Makefile.in (m88k_tdep_h): New variable.
4010 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4011 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4012 * configure.host: Add m88*-*-openbsd*.
4013 * configure.tgt: Add m88*-*-openbsd*.
4014
80fadb11
JB
40152004-05-24 Jim Blandy <jimb@redhat.com>
4016
4017 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4018 to approve changes.
4019
19e2d14b
KB
40202004-05-24 Kevin Buettner <kevinb@redhat.com>
4021
4022 * symtab.c (fixup_section): Search section table when lookup by
4023 name fails.
4024
1b07b470
RC
40252004-05-24 Randolph Chung <tausq@debian.org>
4026
4027 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4028 be "small_struct".
4029
368702b1
MK
40302004-05-24 Mark Kettenis <kettenis@gnu.org>
4031
5df97fde
MK
4032 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4033 register number in regcache_raw_collect call.
4034 (m68kbsd_collect_fpregset): Likewise.
4035 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4036
368702b1
MK
4037 * regset.h (struct regset): Add back `regset' member.
4038
a770d4ec
MK
40392004-05-23 Mark Kettenis <kettenis@gnu.org>
4040
70f9f479
MK
4041 * configure.in: Check for td_pcb in `struct thread'.
4042 * configure, config.in: Regenerated.
4043
2e16d79e
MK
4044 * dpx2-nat.c: Remove file.
4045 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4046 (dpx2-nat.o): Remove dependencies.
4047
492cf391
MK
4048 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4049 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4050 (amd64obsd_supply_pcb): New function.
4051 (_initialize_amd64obsd_nat): Enable libkvm interface.
4052 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4053 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4054 (LOADLIBES): New variable.
4055
a770d4ec
MK
4056 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4057 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4058 (sparc32nbsd_supply_pcb): New function.
4059 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4060 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4061 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4062 (LOADLIBES): New variable.
4063
9ea75c57
MK
40642004-05-22 Mark Kettenis <kettenis@gnu.org>
4065
2e0c3539
MK
4066 * bsd-kvm.c, bsd-kvm.h: New files.
4067 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4068 "bsd-kvm.h".
4069 (i386fbsd_supply_pcb): New function.
4070 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4071 (i386fbsd-nat.o): Update dependencies.
4072 (bsd_kvm_h): New variable.
4073 (bsd-kvm.o): New dependency.
4074 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4075 (LOADLIBES): New variable.
4076
9ea75c57
MK
4077 * regset.c: Tweak comment.
4078 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4079 macro.
4080 * regset.h: Update copyright year.
4081 (struct regset): Remove `descr' member, add `gdbarch' member.
4082 (regset_alloc): Adjust prototype and comment.
4083 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4084 (i386_supply_fpregset): Likewise.
4085 (i386_regset_from_core_section): Update call to regset_alloc.
4086 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4087 REGSET->arch.
4088 (i386obsd_aout_regset_from_core_section): Update call to
4089 regset_alloc.
4090 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4091 REGSET->arch.
4092 (i386nbsd_aout_regset_from_core_section): Update call to
4093 regset_alloc.
4094 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4095 REGSET->arch.
4096 (amd64_regset_from_core_section): Update call to regset_alloc.
4097 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4098 REGSET->arch.
4099 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4100 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4101 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4102 (sparc32nbsd_init_abi): Update call to regset_alloc.
4103 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4104 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4105 (sparc64obsd_init_abi): Update call to regset_alloc.
4106 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4107 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4108 (sparc64nbsd_init_abi): Update call to regset_alloc.
4109 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4110 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4111 (sparc64fbsd_init_abi): Update call to regset_alloc.
4112
867e2dc5
JB
41132004-05-22 Jim Blandy <jimb@redhat.com>
4114
4115 * ppc-tdep.h (spe_register_p): New declaration.
4116 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4117 ppc_spefscr_regnum.
4118 * rs6000-tdep.c (spe_register_p): New function.
4119 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4120 spefscr.
4121 (rs6000_gdbarch_init): Initialize the new members of the tdep
4122 structure.
4123
617a4cba
JB
41242004-05-21 Jim Blandy <jimb@redhat.com>
4125
0397dee1
JB
4126 * ppc-linux-nat.c (fetch_register): Move code back to be next
4127 to the comment that describes it. (Moved code, instead of
4128 comment, for symmetry with store_register.)
4129
617a4cba
JB
4130 Allocate regset structures in the gdbarch's obstack, not using
4131 xmalloc.
4132 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4133 Add 'arch' argument. Allocate the regset on arch's obstack, not
4134 using xmalloc.
4135 * regset.h (regset_alloc): Update declaration.
4136 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4137 gdbarch argument.
4138 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4139 * i386-tdep.c (i386_regset_from_core_section): Same.
4140 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4141 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4142 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4143 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4144 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4145 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4146
9aa3914d
JB
41472004-05-21 Joel Brobecker <brobecker@gnat.com>
4148
4149 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4150
99c87dab
JB
41512004-05-21 Jim Blandy <jimb@redhat.com>
4152
4153 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4154 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4155
c2b6b4aa
JB
41562004-05-20 Jim Blandy <jimb@redhat.com>
4157
4158 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4159
144529d0
MK
41602004-05-20 Mark Kettenis <kettenis@gnu.org>
4161
4162 * regset.h: Make prototype const-correct.
4163 * regset.c (regset_xmalloc): Make const-correct.
4164
4725b721
PH
41652004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4166
4167 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4168 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4169 (symbol_search_name): Declare.
4170
4171 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4172 (iter_name_next_hashed): Ditto.
4173 (iter_name_next_linear): Ditto.
4174 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4175
4176 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4177 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4178 (symbol_search_name): New function.
4179
4180 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4181
4182 * minsyms.c (build_minimal_symbol_hash_tables): Change
4183 test for adding to demangled hash table to check for difference
4184 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4185
be07a590
JB
41862004-05-19 Jim Blandy <jimb@redhat.com>
4187
4188 Use a constructor function to create regset structures.
4189 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4190 (struct regset): Use supply_regset_ftype. Add new
4191 'collect_regset' member.
4192 (regset_xmalloc): New declaration.
4193 * regset.c: New file.
4194 * am64-tdep.c (amd64_regset_from_core_section): Use
4195 regset_xmalloc to construct regset structures.
4196 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4197 * i386-tdep.c (i386_regset_from_core_section): Same.
4198 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4199 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4200 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4201 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4202 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4203 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4204 * Makefile.in (COMMON_OBS): Add regset.o.
4205 (regset.o): New rule.
4206
604368f5
JB
42072004-05-19 Joel Brobecker <brobecker@gnat.com>
4208
4209 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4210 and pthread_cond_wait.c.
4211
82d69f8b
JB
42122004-05-18 Jim Blandy <jimb@redhat.com>
4213
4214 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4215 before the mach-specific switch, and then let the individual cases
4216 override the defaults, rather than leaving them uninitialized
4217 until the switch and then setting them in each case.
4218
5859efe5
RC
42192004-05-18 Randolph Chung <tausq@debian.org>
4220
4221 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4222 millicode functions.
4223
9ca80cf8
RC
42242004-05-18 Randolph Chung <tausq@debian.org>
4225
4226 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4227 references to dld_flags_buffer consistent.
4228
ed70ba00
RC
42292004-05-18 Randolph Chung <tausq@debian.org>
4230
4231 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4232 it for unwinding the stack.
4233
63100632
RC
42342004-05-18 Randolph Chung <tausq@debian.org>
4235
4236 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4237 Undefine these so we can overide them using gdbarch.
4238
090ccbb7
RC
42392004-05-18 Randolph Chung <tausq@debian.org>
4240
4241 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4242 handling for 64-bit HPUX (elf).
4243
594706e6
DJ
42442004-05-18 Daniel Jacobowitz <dan@debian.org>
4245
4246 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4247 constants.
4248 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4249 * ia64-tdep.c (examine_prologue): Likewise.
4250 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4251 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4252
e5483145
MK
42532004-05-18 Mark Kettenis <kettenis@gnu.org>
4254
4255 * vax-tdep.c (vax_return_value): Implement
4256 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4257
caed1a45
MK
42582004-05-17 Mark Kettenis <kettenis@gnu.org>
4259
4260 * vax-tdep.c (vax_return_value): Fix typo.
4261
3c0b7db2
AC
42622004-05-17 Andrew Cagney <cagney@redhat.com>
4263
5aae53e5
AC
4264 * MAINTAINERS: Mark Salter was also responsible for
4265 testsuite/config/
4266
3c0b7db2
AC
4267 * NEWS: Mention signal fixes.
4268
22b0923d
RC
42692004-05-17 Randolph Chung <tausq@debian.org>
4270
4271 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4272 check to see if we are unwinding an export stub. Export stubs clobber
4273 the %rp in the call path and stores the original rp in a stack slot.
4274
22f2b2f3
JB
42752004-05-17 Jim Blandy <jimb@redhat.com>
4276
4277 * MAINTAINERS: Update address for J.T. Conklin.
4278
cea96d64
RC
42792004-05-17 Randolph Chung <tausq@debian.org>
4280
4281 * hppa-tdep.c: Remove superfluous #include's.
4282 * Makefile.in (hppa-tdep.o): Update dependencies.
4283
f08f6a4a
RC
42842004-05-17 Randolph Chung <tausq@debian.org>
4285
4286 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4287 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4288 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4289 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4290 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4291 Remove static function declarations.
4292
51da707a
MK
42932004-05-17 Mark Kettenis <kettenis@gnu.org>
4294
caed1a45
MK
4295 * alphabsd-nat.c: Update copyright year.
4296 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4297
c0c2b0db
MK
4298 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4299 and M68K_A2_REGNUM.
4300
51da707a
MK
4301 * m68k-tdep.c (m68k_svr4_return_value): Implement
4302 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4303
8d027a04
MK
43042004-05-16 Mark Kettenis <kettenis@gnu.org>
4305
4306 * sol-thread.c Update copyright year. Fix various coding
4307 standards violations. Tweak a few comments.
4308 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4309 Delete prototypes.
4310
0d99fdb9
RC
43112004-05-15 Randolph Chung <tausq@debian.org>
4312
4313 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4314 as pointer instead of array reference since HPUX compiler does
4315 not accept unsized array arguments.
4316 * somsolib.c (dld_flags_buffer): Use constant array size.
4317
f7e3843a
MK
43182004-05-15 Mark Kettenis <kettenis@gnu.org>
4319
0fe85704
MK
4320 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4321 offset with decimal offset.
4322 (amd64obsd_sigcontext_addr): Return correct address for entire
4323 signal trampoline.
4324
a54f9a00
MK
4325 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4326 instead of get_frame_base.
4327
feae6502
MK
4328 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4329 (fill_gregset): Use regcache_raw_collect.
4330
0382d099
MK
4331 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4332 ppcobsd-tdep.c.
4333
f7e3843a
MK
4334 * config/sparc/tm-nbsd64.h: Remove file.
4335 * config/tm-sunos.h: Remove file.
4336
773df3e5
JB
43372004-05-15 Joel Brobecker <brobecker@gnat.com>
4338
4339 * rs6000-tdep.c (store_param_on_stack_p): New function,
4340 an improved version of some code extracted from skip_prologue().
4341 (skip_prologue): Use store_param_on_stack_p() to detect
4342 instructions saving a parameter on the stack. Detect when r0
4343 is used to save a parameter.
4344 Do not mark "li rx, SIMM" instructions as part of the prologue,
4345 unless the following instruction is also part of the prologue.
4346
95918acb
AC
43472004-05-14 Andrew Cagney <cagney@redhat.com>
4348
06f32659
AC
4349 * infrun.c (handle_inferior_event): Simplify
4350 STEP_OVER_UNDEBUGGABLE.
4351
95918acb
AC
4352 * infrun.c (handle_step_into_function): Delete function.
4353 (handle_inferior_event): Inline calls to
4354 handle_step_into_function.
4355
40711ff1 43562004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
4357
4358 * rs6000-nat.c: Fix a comment.
4359
02f60eae
JB
43602004-05-12 David Anderson <davea@sgi.com>
4361
4362 Committed by Jim Blandy <jimb@redhat.com>:
4363 * regcache.c (struct regcache_descr): fix comment spelling.
4364
552e377b
JB
43652004-05-13 J. Brobecker <brobecker@gnat.com>
4366
4367 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4368 Fixes a link link failure.
4369
349766b2
JB
43702004-05-13 J. Brobecker <brobecker@gnat.com>
4371
4372 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4373 error that was causing the build to fail.
4374
0d4d5484
JB
43752004-05-13 J. Brobecker <brobecker@gnat.com>
4376
4377 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4378 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4379
0b30808c
AC
43802004-05-13 Andrew Cagney <cagney@redhat.com>
4381
4382 * infrun.c (handle_inferior_event): Check for
4383 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4384 calls. Update comments.
4385
cdf2c5f5
JB
43862004-05-13 Jim Blandy <jimb@redhat.com>
4387
063715bf
JB
4388 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4389 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4390 (store_regs_user_thread, store_regs_kernel_thread): Use
4391 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4392 * ppc-linux-nat.c (fill_gregset): Same.
4393 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4394 (ppc_linux_sigtramp_cache): Same.
4395 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4396 (ppcnbsd_sigtramp_cache_init): Same.
4397 * rs6000-nat.c (fetch_core_registers): Same.
4398 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4399 (rs6000_frame_cache): Same.
4400
cdf2c5f5
JB
4401 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4402 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4403 of assuming that the gprs are numbered starting with zero.
4404 * ppc-linux-nat.c (fill_gregset): Same.
4405 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4406 * ppcnbsd-nat.c (getregs_supplies): Same.
4407 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4408 * rs6000-nat.c (fetch_core_registers): Same.
4409 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4410
450bd37b
MS
44112004-05-07 Michael Snyder <msnyder@redhat.com>
4412
4413 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4414 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4415
4a72a2a6
AC
44162004-05-13 Andrew Cagney <cagney@redhat.com>
4417
4418 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4419
8edfa926
BM
44202004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4421
4422 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4423 base_address for shared libraries.
4424
723e0e3d
BM
44252004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4426
4427 * MAINTAINERS (write after approval): Add myself.
4428
00d4360e
UW
44292004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4430
4431 * breakpoint.c (bpstat_stop_status): Add new argument
4432 STOPPED_BY_WATCHPOINT. Use it instead of testing
4433 target_stopped_data_address agaist 0 to check whether
4434 or not we stopped due to a hardware watchpoint.
4435 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4436 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4437 with new argument.
4438
ec76baa5
JB
44392004-05-12 Jim Blandy <jimb@redhat.com>
4440
4441 * configure.in: When checking whether we should use the -bbigtoc
4442 option, don't forget to restore the original value of LDFLAGS.
4443 * configure: Regenerated.
4444
f2c9ca08
AC
44452004-05-12 Andrew Cagney <cagney@redhat.com>
4446
4447 * thread.c (load_infrun_state): Delete step_sp.
4448 * infrun.c (context_switch): Ditto.
4449 * inferior.h (step_sp): Ditto.
4450 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4451 * gdbthread.h (struct thread_info, save_infrun_state)
4452 (restore_infrun_state): Ditto.
4453
090ddb2a
UW
44542004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4455
4456 * MAINTAINERS (write after approval): Add myself.
4457
8aad930b
AC
44582004-05-12 Andrew Cagney <cagney@redhat.com>
4459
4460 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4461 eliminate reference to step_sp.
4462 (struct execution_control_state, init_execution_control_state)
4463 (handle_inferior_event, keep_going): Delete update_step_sp and
4464 step_sp.
4465 * infcmd.c (step_sp): Note that variable is unused.
4466
922d5ae0
AC
44672004-05-11 Andrew Cagney <cagney@redhat.com>
4468
4469 * infrun.c (step_over_function): Delete function.
4470 (handle_step_into_function): Use insert_step_resume_breakpoint.
4471 (insert_step_resume_breakpoint): Fix assertion.
4472
017c5ca5
NR
44732004-05-11 Nick Roberts <nickrob@gnu.org>
4474
4475 * utils.c (defaulted_query): Just use the normal query input type
4476 when printing the annotations.
4477
42edda50
AC
44782004-05-11 Andrew Cagney <cagney@redhat.com>
4479
4480 * infrun.c (handle_inferior_event): Simplify code handling
4481 step-into or return-from a signal trampoline.
4482
d28b44a7
AC
44832004-05-11 Andrew Cagney <cagney@redhat.com>
4484
4485 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4486 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4487
383f0f5b
JB
44882004-05-10 Jim Blandy <jimb@redhat.com>
4489
d0b57c3a
JB
4490 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4491 with a call to internal_error.
4492
383f0f5b
JB
4493 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4494 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4495 processor variant lacks those registers.
4496 (ppc_floating_point_unit_p): Change description to make it clear
4497 that this returns info about the ISA, not the ABI.
4498 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4499 return true or false by checking tdep->ppc_fp0_regnum and
4500 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4501 arch/mach switching done in rs6000_gdbarch_init; it's better to
4502 keep that logic there, and just check the results here.
4503 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4504 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4505 floating-point registers.
4506 (ppc_supply_fpregset, ppc_collect_fpregset)
4507 (rs6000_push_dummy_call, rs6000_extract_return_value)
4508 (rs6000_store_return_value): Assert that we have floating-point
4509 registers.
4510 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4511 (rs6000_frame_cache): Don't note the locations at which
4512 floating-point registers were saved if we have no fprs.
4513 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4514 registers.
4515 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4516 (store_regs_user_thread, store_regs_kernel_thread): Only call
4517 supply_fprs / fill_fprs if we actually have floating-point
4518 registers.
4519 (special_register_p): Check ppc_fpscr_regnum before matching
4520 against it.
4521 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4522 supply / collect fpscr if we don't have it.
4523 * ppc-bdm.c: #include "gdb_assert.h".
4524 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4525 have floating-point registers, since I can't test this code on
4526 FP-free systems to adapt it.
4527 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4528 fpscr and floating point register numbers if they don't exist.
4529 (fetch_register): Assert that we have floating-point registers
4530 before we reach the code that handles them.
4531 (store_register): Same. And use tdep instead of calling
4532 gdbarch_tdep again.
4533 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4534 don't have them.
4535 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4536 fprs and fpscr if we don't have them.
4537 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4538 don't have them.
4539 * ppcnbsd-nat.c: #include "gdb_assert.h".
4540 (getfpregs_supplies): Assert that we have floating-point registers.
4541 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4542 * ppcobsd-tdep.c: #include "gdb_assert.h".
4543 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4544 have floating-point registers.
4545 * rs6000-nat.c (regmap): Don't match against the fpscr and
4546 floating point register numbers if they don't exist.
4547 (fetch_inferior_registers, store_inferior_registers,
4548 fetch_core_registers): Only fetch / store / supply the
4549 floating-point registers and the fpscr if we have them.
4550 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4551 (ppcobsd-tdep.o): Update dependencies.
4552
15960608
AC
45532004-05-10 Andrew Cagney <cagney@redhat.com>
4554
4555 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4556 (context_switch): Do not switch through_sigtramp_breakpoint.
4557 * gdbthread.h (save_infrun_state, load_infrun_state)
4558 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4559 and structure member.
4560 * thread.c (load_infrun_state, save_infrun_state): Update.
4561
5ab5aa0f
MK
45622004-05-10 Mark Kettenis <kettenis@gnu.org>
4563
4564 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4565
da78b0e7
DJ
45662004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4567
4568 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4569 throughout.
4570 * aclocal.m4: Regenerate.
4571
cca0d3b0
NW
45722004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4573
4574 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4575
d303a6c7
AC
45762004-05-10 Andrew Cagney <cagney@redhat.com>
4577
4578 * infrun.c (check_sigtramp2): Delete function.
4579 (handle_inferior_event): When single stepping, and taking a
4580 signal, set a breakpoint at the signal return address. Delete
4581 redundant calls to check_sigtramp2.
4582 (insert_step_resume_breakpoint): New function.
4583 (through_sigtramp_breakpoint, handle_inferior_event)
4584 (follow_exec, wait_for_inferior, fetch_inferior_event)
4585 (currently_stepping, keep_going): Delete most uses of
4586 through_sigtramp_breakpoint, not that it should be deleted.
4587 (delete_breakpoint_current_contents): Delete function.
4588
03f4cc20
RC
45892004-05-10 Randolph Chung <tausq@debian.org>
4590
4591 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4592 target.
4593 * config/pa/tm-linux.h: New file.
4594
37fc812e
DJ
45952004-05-10 Daniel Jacobowitz <drow@mvista.com>
4596
4597 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4598 of prefixes. Don't print the prefix twice in the CLI.
4599
26c0b942
JB
46002004-05-10 Jim Blandy <jimb@redhat.com>
4601
2e56e9c1
JB
4602 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4603 collect all the gprs.
4604
26c0b942
JB
4605 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4606 loop collecting gprs.
4607
dc497459
AC
46082004-05-09 Andrew Cagney <cagney@redhat.com>
4609
4610 * remote-vx.c (net_step): Delete step-range code.
4611 * remote.c (remote_resume, init_all_packet_configs)
4612 (set_remote_protocol_E_packet_cmd)
4613 (show_remote_protocol_E_packet_cmd)
4614 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4615 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4616 (show_remote_protocol_e_packet_cmd): Ditto.
4617
0543f387
MK
46182004-05-09 Mark Kettenis <kettenis@gnu.org>
4619
c481d1ca
MK
4620 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4621
f626a069
MK
4622 * hppa-tdep.h: Update copyright year.
4623 (struct trad_frame_saved_reg): Add opaque declaration.
4624
6fa57a7d
MK
4625 * amd64-tdep.c (amd64_return_value): Implement
4626 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4627
e47577ab
MK
4628 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4629 (m68k_value_to_register): New functions.
4630 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4631 value_to_register.
4632
31db7b6c
MK
4633 * defs.h (enum return_value_convention): Add
4634 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4635 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4636 * infcmd.c (legacy_return_value): New function.
4637 (print_return_value): Rwerite to implement
4638 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4639 * values.c (using_struct_return): Check for inequality to
4640 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4641 RETURN_VALUE_STRUCT_CONVENTION.
4642 * i386-tdep.c (i386_return_value): Implement
4643 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4644
0543f387
MK
4645 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4646 include "symtab.h", "opcode/vax.h" and "inferior.h".
4647 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4648 to read_memory_unsigned_integer.
4649 (vax_gdbarch_init): Reorder.
4650 (_initialize_vax_tdep): Spell out prototype.
4651 * Makefile.in (vax-tdep.o): Update dependencies.
4652
0c93b7b6
AC
46532004-05-08 Andrew Cagney <cagney@redhat.com>
4654
e6b55ae2
AC
4655 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4656 * target.c (target_detach, target_disconnect): Ditto.
4657
1ac839b8
AC
4658 * infcall.c (call_function_by_hand): When no
4659 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4660 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4661 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4662 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4663 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4664
28954179
AC
4665 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4666 * gdbarch.h, gdbarch.c: Re-generate.
4667 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4668 deprecated_fix_call_dummy.
4669 * v850-tdep.c (v850_gdbarch_init): Ditto.
4670 * infcall.c (call_function_by_hand): Do not call
4671 DEPRECATED_FIX_CALL_DUMMY.
4672
434b87dd
AC
4673 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4674 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4675 * gdbarch.h, gdbarch.c: Re-generate.
4676 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4677 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4678 deprecated_sizeof_call_dummy_words.
4679 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4680 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4681 * v850-tdep.c (v850_gdbarch_init): Ditto.
4682 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4683 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4684 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4685 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4686 * arch-utils.h (legacy_call_dummy_words)
4687 (legacy_sizeof_call_dummy_words): Delete declarations.
4688 * arch-utils.c (legacy_call_dummy_words)
4689 (legacy_sizeof_call_dummy_words): Delete variables.
4690
58d28df8
AC
4691 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4692 * gdbarch.h, gdbarch.c: Re-generate.
4693 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4694 * infcall.c (call_function_by_hand): Eliminate call to
4695 DEPRECATED_PUSH_DUMMY_FRAME.
4696 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4697 push_dummy_frame.
4698 (ns32k_push_dummy_frame): Delete function.
4699
e4a2df64
AC
4700 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4701 deprecated_call_dummy_breakpoint_offset or
4702 deprecated_call_dummy_start_offset.
4703 * dummy-frame.c, arm-tdep.c: Update comments.
4704 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4705 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4706 * gdbarch.h, gdbarch.c: Re-generate.
4707
d3712828
AC
4708 * infcall.c (legacy_push_dummy_code): Delete function.
4709 (push_dummy_code): Delete call.
4710
7a882905
AC
4711 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4712 * gdbarch.h, gdbarch.c: Re-generate.
4713 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4714 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4715 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4716 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4717
0ec5872b
AC
4718 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4719 (struct frame_info): Delete opaque declaration.
4720 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4721 * frame.c (get_frame_type): Delete call.
4722
0c93b7b6
AC
4723 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4724 pc_in_call_dummy.
4725 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4726 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4727
75536971
MK
47282004-05-08 Mark Kettenis <kettenis@gnu.org>
4729
527ca6bb
MK
4730 * alphanbsd-tdep.c: Include "gdb_string.h".
4731 * armnbsd-tdep.c: Update copyright year.
4732 Include "gdb_string.h".
4733 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4734 dependencies.
4735
d39fdc61
MK
4736 * delta68-nat.c: Remove file.
4737 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4738 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4739 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4740 (delta68-nat.o): Remove dependency.
4741
75536971
MK
4742 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4743 function.
4744 (m68k_gdbarch_init): Don't set
4745 deprecated_frameless_function_invocation.
4746
f4ca1d1f
RC
47472004-05-07 Randolph Chung <tausq@debian.org>
4748
4749 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4750 read_memory_nobpt for code reading when doing frame unwinding.
4751 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4752
2f0e8c7a
RC
47532004-05-07 Randolph Chung <tausq@debian.org>
4754
4755 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4756 instead of sp, handle sigaltstack case.
4757 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4758 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4759 signal handler and not that of the caller.
4760 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4761 hppa_linux_sigtramp_find_sigcontext.
4762
959464ff
RC
47632004-05-07 Randolph Chung <tausq@debian.org>
4764
4765 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4766 hppa-linux-nat.c.
4767 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4768 * hppa-linux-nat.c (fetch_register, store_register): Define.
4769 (fetch_inferior_registers, store_inferior_registers): Define.
4770 (supply_gregset): Add comment and clean up some unneeded code.
4771 (fill_gregset): Add comment and fix so that it saves registers in
4772 the right place in the gregset.
4773 (fill_fpregset): Fix buffer overrun problem.
4774 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4775
0da28f8a
RC
47762004-05-07 Randolph Chung <tausq@debian.org>
4777
4778 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4779 do common handling of the pcoqt register.
4780 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4781 to use helper function.
4782 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4783 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4784 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4785 generic fallback unwinder when all else fails.
4786 (hppa_gdbarch_init): Add fallback sniffer.
4787 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4788 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4789 to use helper function.
4790
b9ec757a
JB
47912004-05-08 Joel Brobecker <brobecker@gnat.com>
4792
4793 * config/djgpp/fnchange.lst: Add translation rules for
4794 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4795
756e95f1
MK
47962004-05-08 Mark Kettenis <kettenis@gnu.org>
4797
4798 * frame.c (get_prev_frame_1): Work around GCC bug.
4799 * frame.h: Add comment about GCC bug.
4800
2b4855ab
AC
48012004-05-07 Andrew Cagney <cagney@redhat.com>
4802
4803 * observer.c: Include "commands.h" and "gdbcmd.h".
4804 (observer_debug, _initialize_observer): Add the
4805 command "set/show debug observer".
4806 * observer.sh: When observer debugging, log notify calls.
4807 * Makefile.in (observer.o): Update dependencies.
4808
ba3e8e46
JM
48092004-05-07 Jason Molenda (jmolenda@apple.com)
4810
4811 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4812
16796152
JB
48132004-05-07 Jim Blandy <jimb@redhat.com>
4814
daf6dc85
JB
4815 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4816 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4817 to recognize gpr regnums, instead of assuming that
4818 tdep->ppc_fp0_regnum marks the end of the general-purpose
4819 registers.
4820
16796152
JB
4821 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4822 the given architecture has floating-point registers.
4823
c69b8bfc
AC
48242004-05-07 Andrew Cagney <cagney@redhat.com>
4825
4826 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4827 macro defined to 1.
4828 * gdbarch.h, gdbarch.c: Re-generate.
4829 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4830 deprecated_use_generic_dummy_frames.
4831
7243600a
BF
48322004-05-07 Brian Ford <ford@vss.fsi.com>
4833
4834 * NEWS: Mention Cygwin DWARF 2 support.
4835
73c1e0a1
AC
48362004-05-07 Andrew Cagney <cagney@redhat.com>
4837
4838 * objfiles.h (struct entry_info): Delete unused fields
4839 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4840 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4841 * mipsread.c (mipscoff_symfile_read): Update.
4842 * mdebugread.c (parse_partial_symbols): Update.
4843 * dwarfread.c (read_file_scope): Update.
4844 * dwarf2read.c (read_file_scope): Update.
4845 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4846 * coffread.c (complete_symtab): Update.
4847
1d3056ac
MK
48482004-05-07 Mark Kettenis <kettenis@gnu.org>
4849
4850 * infcall.c (_initialize_infcall): Fix typo.
4851
15170568
AC
48522004-05-07 Andrew Cagney <cagney@redhat.com>
4853
4854 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4855 * command.h (add_setshow_zinteger_cmd): Declare.
4856
34f75cc1
RC
48572004-05-06 Randolph Chung <tausq@debian.org>
4858
4859 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4860 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4861 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4862 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4863 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4864 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4865 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4866 definitions ...
4867 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4868 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4869 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4870 (hppa64_hpux_frame_find_saved_regs_in_sig)
4871 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4872 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4873 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4874 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4875 (hppa_linux_sigtramp_frame_prev_register): Likewise.
4876 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
4877 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
4878 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
4879 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
4880 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
4881 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
4882 (hppa32_register_type, hppa_cannot_store_register)
4883 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
4884 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
4885 * hpread.c (hpread_process_one_debug_symbol): Likewise.
4886 * pa64solib.c (pa64_solib_have_load_event)
4887 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
4888 (pa64_solib_unloaded_library_pathname): Likewise.
4889 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
4890 (som_solib_library_pathname): Likewise.
4891
0a5e7efe
JI
48922004-05-05 Jim Ingham <jingham@apple.com>
4893
4894 * breakpoint.c (create_breakpoints): Copy the ignore count and
4895 thread id over from the pended breakpoint to the actual
4896 breakpoint.
4897
10a4b113
AC
48982004-05-05 Andrew Cagney <cagney@redhat.com>
4899
4900 * gdbarch.sh (PARM_BOUNDARY): Delete.
4901 gdbarch.h, gdbarch.c: Re-generate.
4902 * valops.c (PARM_BOUNDARY): Delete macro.
4903 (value_push): Delete PARM_BOUNDARY code.
4904 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
4905
366f009f
JB
49062004-05-04 Jim Blandy <jimb@redhat.com>
4907
32b99774
JB
4908 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
4909 Don't assume that the gprs, fprs, and UISA sprs are
4910 contiguous, start at register number zero, and end with fpscr.
4911 Instead, use the numbers from the tdep structure.
4912
366f009f
JB
4913 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
4914 should no longer be used in code specific to the RS6000 and its
4915 derivatives.
4916 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
4917 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
4918 tdep->ppc_fp0_regnum.
4919 (ppc_supply_fpregset, ppc_collect_fpregset)
4920 (rs6000_push_dummy_call, rs6000_extract_return_value)
4921 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
4922 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
4923 FP0_REGNUM.
4924 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
4925 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
4926 Same.
4927 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
4928 bdm_ppc_store_registers): Same.
4929 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
4930 (store_register, fill_fpregset): Same.
4931 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
4932 (ppc_linux_supply_fpregset): Same.
4933 * ppcnbsd-nat.c (getfpregs_supplies): Same.
4934 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
4935 Same.
4936 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
4937 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
4938 ppc64_sysv_abi_return_value): Same.
4939 * rs6000-nat.c (regmap, fetch_inferior_registers)
4940 (store_inferior_registers, fetch_core_registers): Same.
4941
827f338d
MK
49422004-05-01 Mark Kettenis <kettenis@gnu.org>
4943
4944 * m68knbsd-nat.c: Remove file.
4945 * m68knbsd-tdep.c: Remove file.
4946 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
4947 dependencies.
4948 * configure.host: Add m68k-*-netbsdelf*.
4949 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
4950 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
4951 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
4952 (XM_FILE): Remove.
4953 * config/m68k/nbsdelf.mh: New file.
4954 * config/m68k/nbsd.mt: New file.
4955 * config/m68k/nbsdaout.mt: Remove file.
4956 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
4957 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
4958 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
4959 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
4960 (use_struct_convention): Remove prototype.
4961 (USE_STRUCT_CONVENTION): Remove define.
4962 * config/m68k/xm-nbsd.h: Remove file.
4963
66894781
MS
49642004-05-04 Michael Snyder <msnyder@redhat.com>
4965
4966 * m68k-tdep.c (m68k_gdbarch_init): Default to using
4967 reg_struct_return method (as gcc usually does for cross targets).
4968
f0f63663
AC
49692004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4970
4971 Committed by Andrew Cagney.
4972 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
4973 alignment padding when accessing ucontext struct members.
4974
edf61169
JB
49752004-05-04 Jim Blandy <jimb@redhat.com>
4976
8bf659e8
JB
4977 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
4978 'ppc_gplast_regnum' member.
4979 (ppc_num_gprs): New enum constant.
4980 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
4981 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
4982 * rs6000-nat.c (regmap, fetch_inferior_registers,
4983 store_inferior_registers): Same.
4984 * rs6000-tdep.c (e500_pseudo_register_read)
4985 (e500_pseudo_register_write): Same.
4986 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
4987
b967e06f
JB
4988 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
4989 * ppc-tdep.h (ppc_num_fprs): New enum constant.
4990 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
4991 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
4992 FPLAST_REGNUM.
4993 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4994 Same.
4995 * ppc-linux-nat.c (ppc_register_u_addr): Same.
4996 * rs6000-nat.c (regmap, fetch_inferior_registers)
4997 (store_inferior_registers): Same.
4998
edf61169
JB
4999 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5000 with FPLAST_REGNUM.
5001
58a9656e
JB
50022004-05-03 Joel Brobecker <brobecker@gnat.com>
5003
5004 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5005 failure detected by recent versions of GCC.
5006 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5007 to be consistent with the usage in dwarf2_create_include_psymtab.
5008
dc305454
MS
50092004-05-03 Michael Snyder <msnyder@redhat.com>
5010
5011 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5012 (heuristic_proc_start): Whitespace cleanup.
5013
29972665
MK
50142004-05-04 Mark Kettenis <kettenis@gnu.org>
5015
6b57680d
MK
5016 * sun3-nat.c: Remove file.
5017 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5018 dependencies.
5019 (ALLDEPFILES): Remove sun3-nat.c.
5020 (sun3-nat.o): Remove dependencies.
5021
29972665
MK
5022 * i386-interix-nat.c, i386-interix-tdep.c,
5023 config/i386/nm-interix.h, config/i386/interix.mh,
5024 config/i386/interix.mt: Remove files.
5025 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5026 dependencies.
5027
f595cb19
MK
50282004-05-03 Mark Kettenis <kettenis@gnu.org>
5029
5030 * m68k-tdep.h (struct gdbarch_tdep): Add member
5031 struct_value_regnum.
5032 (m68k_svr4_init_abi): New prototype.
5033 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5034 different calling conventions.
5035 (m68k_extract_return_value): Remove code dealing with single-field
5036 structs.
5037 (m68k_store_return_value): Remove code dealing with single-field
5038 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5039 (m68k_extract_struct_value_address): Remove function.
5040 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5041 (m68k_reg_struct_return_p, m68k_return_value)
5042 (m68k_svr4_return_value): New functions.
5043 (m68k_use_struct_convention): Remove function.
5044 (m68k_push_dummy_call): Use new struct_value_regnum member of
5045 `struct gdbarch_tdep' instead of hardcoded register number to
5046 store STRUCT_ADDR.
5047 (m68k_svr4_init_abi): New function.
5048 (m68k_gdbarch_init): Don't set extract_return_value,
5049 store_return_values, deprecated_extract_struct_value_address and
5050 use_struct_convention. Set return_value instead. Initialize new
5051 struct_value_regnum member of `struct gdbarch_tdep'.
5052 * m68klinux-tdep.c: Update copyright year.
5053 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5054 (m68k_linux_extract_struct_value_address): Remove function.
5055 (m68k_linux_init_abi): Don't set extract_return_value,
5056 store_return_values, deprecated_extract_struct_value_address and
5057 use_struct_convention. Call m68k_svr4_init_abi but override the
5058 new struct_value_regnum member of `struct gdbarch_tdep'.
5059 * Makefile.in (m68k-tdep.o): Update dependencies.
5060
aaa75496
JB
50612004-05-03 J. Brobecker <brobecker@gnat.com>
5062
5063 * dwarf2read.c (line_header): Add new included_p field in
5064 field file_names.
5065 (partial_die_info): New field has_stmt_list. New field line_offset.
5066 (dwarf2_create_include_psymtab): New function.
5067 (dwarf2_build_include_psymtabs): New function.
5068 (add_file_name): Add forward declaration. Initialize new field.
5069 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5070 to be able to determine the list of files included by the
5071 given unit, and build their associated psymtabs.
5072 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5073 files as well.
5074 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5075 (read_file_scope): Update call to dwarf_decode_lines.
5076 (read_partial_die): Handle DW_AT_stmt_list attributes.
5077
c848556f
MC
50782004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5079
5080 Unfix PR gdb/1626.
5081 * configure.in: Revert special case for osf5.*.
5082 * configure: Regenerate.
5083
eb4556d7
JB
50842004-05-02 Jim Blandy <jimb@redhat.com>
5085
5086 Move the symbol-file-from-memory functions into their own file.
5087 * symfile-mem.c, symfile-mem.h: New files.
5088 * symfile.c (symbol_file_add_from_bfd): New function.
5089 (symbol_file_add): Call symbol_file_add_from_bfd.
5090 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5091 Moved to symfile-mem.c.
5092 (_initialize_symfile): Move definition of
5093 add-symbol-file-from-memory command to symfile-mem.c.
5094 * symfile.h (symbol_file_add_from_bfd): New declaration.
5095 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5096 * config/powerpc/linux.mt (TDEPFILES): Same.
5097 * Makefile.in (SFILES): Add symfile-mem.c.
5098 (symfile_mem_h): New variable.
5099 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5100 (symfile-mem.o): New rule.
5101
80bb239e
AC
51022004-05-01 Andrew Cagney <cagney@redhat.com>
5103
7789d0fa
AC
5104 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5105 frame_find_by_id instead of frame_relative_level.
5106 (do_enable_breakpoint): Ditto.
5107 * thread.c: Update copyright.
5108 (info_threads_command): Ditto, simplify.
5109
80bb239e
AC
5110 * frame.c (deprecated_generic_get_saved_register): Delete
5111 function, moved to "xstormy16-tdep.c".
5112 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5113 deprecated_generic_get_saved_register from "frame.c".
5114 (xstormy16_frame_saved_register): Call
5115 xstormy16_get_saved_register.
5116 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5117 static.
5118 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5119 * frame.h (deprecated_generic_get_saved_register): Delete.
5120
b2a871dd
MC
51212004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5122
5123 * dwarfread.c: Update documentation on the state of dwarf-1.
5124
0e100dab
AC
51252004-05-01 Andrew Cagney <cagney@redhat.com>
5126
acd8056e
AC
5127 * stack.c (select_frame_command): Delete call to
5128 frame_relative_level.
5129 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5130 Delete #if0 code.
5131 (frame_info): Do not print FRAMELESS.
5132 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5133 (catch_info): Delete #if0 code.
5134
0e100dab
AC
5135 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5136 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5137 of frame_relative_level.
5138 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5139 to SENTINEL_FRAME.
5140 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5141 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5142 frame_relative_level.
5143
55699d59
AC
5144 * frame.h (deprecated_set_frame_type): Delete declaration.
5145 * frame.c (deprecated_set_frame_type): Delete function, update
5146 comments.
5147
fcf70625
AC
5148 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5149 * gdbarch.h, gdbarch.c: Re-generate.
5150 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5151 (shnbsd_pc_in_sigtramp): Delete.
5152 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5153 pc_in_sigtramp.
5154 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5155 pc_in_sigtramp.
5156 * frame.h: Update comments.
5157 * ppc-linux-tdep.c: Update comments.
5158 * breakpoint.c (bpstat_what): Update comments.
5159
ac5eccb7
AC
5160 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5161 m68klinux-tdep.o's dependencies, were previously added to
5162 m68klinux-nat.o.
5163
f2524b93
AC
5164 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5165 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5166 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5167 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5168 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5169
17e20bce
AC
5170 * Makefile.in (m68klinux-nat.o): Update dependencies.
5171 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5172 (m68k_linux_sigtramp_frame_cache)
5173 (m68k_linux_sigtramp_frame_this_id)
5174 (m68k_linux_sigtramp_frame_prev_register)
5175 (m68k_linux_sigtramp_frame_unwind)
5176 (m68k_linux_sigtramp_frame_sniffer)
5177 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5178 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5179 names, use trad-frame.h.
5180 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5181 (struct m68k_sigtramp_info): Delete.
5182 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5183 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5184 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5185 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5186 "m68klinux-tdep.c".
5187
c8864fa2
AC
5188 * infrun.c (check_sigtramp2): Delete check for
5189 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5190
511dd2cd
MK
51912004-05-01 Mark Kettenis <kettenis@gnu.org>
5192
5193 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5194
8c6b0e06
AC
51952004-05-01 Andrew Cagney <cagney@redhat.com>
5196
9df0bb3f
AC
5197 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5198 (frv_linux_sigtramp_frame_cache)
5199 (frv_linux_sigtramp_frame_this_id)
5200 (frv_linux_sigtramp_frame_prev_register)
5201 (frv_linux_sigtramp_frame_unwind)
5202 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5203 include "linux" in function and variable names, directly call
5204 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5205 the latest trad-frame code.
5206 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5207 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5208 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5209 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5210 * frv-tdep.c (frv_sigtramp_frame_cache)
5211 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5212 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5213 frv-linux-tdep.c.
5214 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5215 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5216 (frv_set_sigcontext_reg_addr): Delete function.
5217
8c6b0e06
AC
5218 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5219 (DEPRECATED_SIGTRAMP_END): Delete.
5220 * gdbarch.h, gdbarch.c: Re-generate.
5221 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5222 * config/vax/tm-vaxbsd.h: Update copyright.
5223 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5224 (DEPRECATED_IN_SIGTRAMP): Define.
5225 * config/m68k/tm-nbsd.h: Update copyright.
5226 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5227 (DEPRECATED_IN_SIGTRAMP): Define.
5228
50ea7769
MK
52292004-05-01 Mark Kettenis <kettenis@gnu.org>
5230
03ac2a74
MK
5231 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5232 encondings. Fixes PR gdb/1628.
5233
50ea7769
MK
5234 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5235 DW_CFA_restore state without a matching DW_CFA_remember_state
5236 instead of aborting. Fixes PR backtrace/1589.
5237
9a5d7be1
JB
52382004-04-30 Joel Brobecker <brobecker@gnat.com>
5239
5240 * MAINTAINERS: Add self as AIX maintainer.
5241 Update my e-mail address in write-after-approval section.
5242
2593d1cd
AC
52432004-04-30 Andrew Cagney <cagney@redhat.com>
5244
ce12bbf9
AC
5245 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5246 (legacy_get_prev_frame): Ditto.
5247
36710c63
AC
5248 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5249 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5250 * mipsread.c (sigtramp_address): Delete extern variable.
5251 (mipscoff_new_init): Delete reference.
5252 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5253 (fixup_sigtramp): Delete function.
5254 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5255 (fixup_sigtramp): Delete declarations.
5256
2593d1cd
AC
5257 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5258 deprecated_pc_in_sigtramp.
5259 (ppcnbsd_pc_in_sigtramp): Delete function.
5260
2a25f91c
MK
52612004-05-01 Mark Kettenis <kettenis@gnu.org>
5262
5263 * config/m68k/nm-nbsd.h: Tweak comments.
5264 * config/m68k/nm-nbsdaout.h: Likewise.
5265
0b281939
AC
52662004-04-30 Andrew Cagney <cagney@redhat.com>
5267
5268 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5269 legacy_pc_in_sigtramp.
5270 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5271
8f2d3ea0
MK
52722004-05-01 Mark Kettenis <kettenis@gnu.org>
5273
5274 Add OpenBSD/m68k support.
5275 * NEWS (New native configurations): Mention OpenBSD/m68k.
5276 * m68kbsd-tdep.c: New file.
5277 * m68kbsd-nat.c: New file.
5278 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5279 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5280 * configure.host: Add m68k-*-openbsd.
5281 * configure.tgt: Add m68k-*-openbsd.
5282 * config/m68k/tm-obsd.h: New file.
5283 * config/m68k/obsd.mt: New file.
5284 * config/m68k/obsd.mh: New file.
5285 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5286 m68kbsd-tdep.c.
5287
c40f49a4
AC
52882004-04-30 Andrew Cagney <cagney@redhat.com>
5289
5290 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5291 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5292
e81554cd
MK
52932004-04-30 Mark Kettenis <kettenis@gnu.org>
5294
5295 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5296 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5297
d4dc1a91
BF
52982004-04-30 Brian Ford <ford@vss.fsi.com>
5299
5300 Revert 2004-04-16 change.
5301 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5302 (i386_coff_init_abi): Remove.
5303 * i386-tdep.h (i386_coff_init_abi): Remove.
5304 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5305
2f72f850
AC
53062004-04-30 Andrew Cagney <cagney@redhat.com>
5307
e492f9d6
AC
5308 * blockframe.c (find_pc_partial_function): Delete use of
5309 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5310 DEPRECATED_SIGTRAMP_END.
5311
7b7adad0
AC
5312 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5313 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5314 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5315 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5316 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5317
2f72f850
AC
5318 * defs.h (deprecated_inside_entry_file): Delete declaration.
5319 * blockframe.c (deprecated_inside_entry_file): Delete function.
5320 (legacy_frame_chain_valid): Delete call.
5321 * sh64-tdep.c (sh64_frame_chain): Delete call.
5322 * objfiles.h: Update comments.
5323 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5324 call.
5325 * frame.c (get_prev_frame): Delete call, update comments.
5326
283f90a7
BF
53272004-04-30 Brian Ford <ford@vss.fsi.com>
5328
5329 * MAINTAINERS (Write After Approval): Add myself.
5330
8ee56bcf
AC
53312004-04-30 Andrew Cagney <cagney@redhat.com>
5332
5333 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5334 * gdbarch.h, gdbarch.c: Re-generate.
5335 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5336 code.
5337
ee27e1b6
AC
53382004-04-30 Andrew Cagney <cagney@redhat.com>
5339
5340 * gdb-events.sh (selected_thread_changed)
5341 (selected_frame_level_changed, target_changed): Delete.
5342 * gdb-events.h, gdb-events.c: Re-generate.
5343 * valops.c (value_assign): Update.
5344 * stack.c (select_frame_command, up_silently_base)
5345 (down_silently_base): Update.
5346
d5ac5a39
AC
53472004-04-29 Andrew Cagney <cagney@redhat.com>
5348
5349 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5350 registers correctly.
5351 (print_gp_register_row, mips32_heuristic_proc_desc)
5352 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5353 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5354 references to mips_isa_regsize.
5355
ceae6e75
AC
53562004-04-29 Andrew Cagney <cagney@redhat.com>
5357
5358 * mips-tdep.c (struct gdbarch_tdep): Delete
5359 mips_fp_register_double.
5360 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5361 mips_abi_regsize.
5362 (mips_gdbarch_init): Do not set mips_fp_register_double.
5363 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5364
a587af0b
AC
53652004-04-29 Joel Brobecker <brobecker@gnat.com>
5366
5367 Committed by Andrew Cagney.
5368 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5369 function calls.
5370
13326b4e
AC
53712004-04-29 Andrew Cagney <cagney@redhat.com>
5372
5373 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5374 gdbarch, use mips_abi, update callers.
5375 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5376 mips_abi_regsize, update callers.
5377 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5378 mips_default_abi_regsize.
5379 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5380 mips_default_abi_regsize.
5381
711cc5cd
AC
53822004-04-29 Andrew Cagney <cagney@redhat.com>
5383
1b13c4f6
AC
5384 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5385 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5386 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5387 mips_default_abi_regsize.
5388 (mips_isa_regsize): Rename mips_regisze.
5389 * mipsnbsd-tdep.c: Update.
5390 * mips-linux-tdep.c: Update.
5391 * irix5-nat.c: Update.
5392 * mips-tdep.h (mips_isa_regsize): Update.
5393
711cc5cd
AC
5394 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5395 Delete all disabled code.
5396 * gdb-events.h, gdb-events.c: Re-generate.
5397
e63bbc88
MK
53982004-04-19 Jerome Guitton <guitton@gnat.com>
5399 Mark Kettenis <kettenis@gnu.org>
5400
5401 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5402 the function begins with a branch instruction.
5403
fd35795f
MK
54042004-04-29 Mark Kettenis <kettenis@gnu.org>
5405
5406 * i386-tdep.c: Fix spelling mistakes.
5407
c960c18f
AC
54082004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5409 Andrew Cagney <cagney@redhat.com>
5410
5411 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5412 <sys/proc.h>.
5413 * acconfig.h: Provide default _KMEMUSER value.
5414 * config.in, configure: Re-generate.
5415 * NEWS: Mention fix.
5416
50306a9d
RC
54172004-04-24 Randolph Chung <tausq@debian.org>
5418
5419 * configure.host (hppa*-*-linux*): New target.
5420 * configure.tgt (hppa*-*-linux*): Likewise.
5421 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5422 gdbarch_init_osabi() call earlier so that osabi-specific frame
5423 unwinders can be registered first.
5424 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5425 hppa-linux-nat.c.
5426 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5427 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5428 * config/pa/linux.mh: New file.
5429 * config/pa/linux.mt: New file.
5430 * config/pa/nm-linux.h: New file.
5431 * config/pa/xm-linux.h: New file.
5432 * hppa-linux-nat.c: New file.
5433 * hppa-linux-tdep.c: New file.
5434
2a6228ef
RC
54352004-04-28 Randolph Chung <tausq@debian.org>
5436
5437 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5438 return values.
5439 (hppa32_push_dummy_call): Fix small struct and floating point argument
5440 passing, and make sure the stack frame is properly aligned.
5441
82c10df6
AC
54422004-04-28 Andrew Cagney <cagney@redhat.com>
5443
d762c46a
AC
5444 * stack.c (print_stack_frame): Fix description.
5445
82c10df6
AC
5446 * NEWS: Mention gdb/gdbserver/configure execute permission
5447 changed. PR server/519.
5448
0faf0076
AC
54492004-04-28 Andrew Cagney <cagney@redhat.com>
5450
5451 * stack.c (print_stack_frame_stub): Delete declaration.
5452 (struct print_stack_frame_args, print_stack_frame)
5453 (print_frame_info, print_frame): Replace "source" with print what.
5454 Replace "print" with "print_level". Replace "args" with
5455 "print_args".
5456 * frame.h (show_and_print_stack_frame, print_stack_frame)
5457 (print_frame_info): Update declarations.
5458 * stack.c (select_and_print_frame, frame_command)
5459 (current_frame_command, up_command, down_command): Update calls -
5460 use get_selected_frame, pass "enum print_what" for source, do not
5461 call frame_relative_level.
5462 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5463 * remote-rdp.c (remote_rdp_open): Ditto.
5464 * remote-mips.c (common_open): Ditto.
5465 * remote-e7000.c (e7000_start_remote): Ditto.
5466 * ocd.c (ocd_start_remote): Ditto.
5467 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5468 * infrun.c (normal_stop): Ditto.
5469 * inflow.c (kill_command): Ditto.
5470 * infcmd.c (finish_command): Ditto.
5471 * corelow.c (core_open): Ditto.
5472 * tracepoint.c (finish_tfind_command): Ditto.
5473 * thread.c (info_threads_command, info_threads_command)
5474 (restore_current_thread, do_captured_thread_select): Ditto.
5475 * ada-tasks.c (task_command): Ditto.
5476
f4c5303c
OF
54772004-04-26 Orjan Friberg <orjanf@axis.com>
5478
5479 * frame.c: Include "observer.h".
5480 (frame_observer_target_changed): New function.
5481 (_initialize_frame): Attach target_changed observer.
5482 * regcache.c: Include "observer.h".
5483 (regcache_observer_target_changed): New function.
5484 (_initialize_regcache): Attach target_changed observer.
5485 * valops.c: Include "observer.h".
5486 (value_assign): Notify target_changed event when modifying register.
5487 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5488
7270d8f2
OF
54892004-04-26 Orjan Friberg <orjanf@axis.com>
5490
5491 From Paul Koning <pkoning@equallogic.com>:
5492 * breakpoint.c (free_valchain): New function.
5493 (insert_bp_location, delete_breakpoint): Use free_valchain.
5494 (remove_breakpoint): Do not remove the valchain.
5495 (bpstat_stop_status): If not stopped by watchpoint, skip
5496 watchpoints when generating stop status list.
5497 * infrun.c (handle_inferior_event): Make
5498 stepped_after_stopped_by_watchpoint a global variable.
5499 * remote.c (remote_stopped_data_address): Return watch data
5500 address rather than zero if stepped_after_stopped_by_watchpoint is
5501 set.
5502
02d62932
MC
55032004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5504
5505 Fix PR gdb/1626.
5506 * configure.in: Check for curses after termcap.
5507 On osf5.*, do not check for ncurses.
5508 * configure: Regenerate.
5509
3e9a183c
MK
55102004-04-25 Mark Kettenis <kettenis@gnu.org>
5511
c79ac407
MK
5512 * ppcobsd-nat.c: Include "ppc-tdep.h".
5513 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5514
3e9a183c
MK
5515 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5516 Fixes PR tdep/1623 and PR tdep/1624.
5517
38cc9c28
MC
55182004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5519
5520 * xmodem.h, xmodem.c: Remove files.
5521 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5522
7f07c5b6
RC
55232004-04-23 Randolph Chung <tausq@debian.org>
5524
5525 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5526 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5527 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5528 for handling stackless frames.
5529 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5530
9f7194c3
RC
55312004-04-23 Randolph Chung <tausq@debian.org>
5532
5533 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5534 starts at a pc before the frame is created.
5535
dcff6009
JB
55362004-04-23 Joel Brobecker <brobecker@gnat.com>
5537
5538 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5539
40711ff1 55402004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
5541
5542 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5543 use convert_typed_floating to get the appropriate format.
5544
abc485a1
RC
55452004-04-22 Randolph Chung <tausq@debian.org>
5546
5547 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5548 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5549 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5550 (hppa_sign_extend): Add prototype.
5551 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5552 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5553 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5554 hppa targets will also use these functions.
5555 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5556 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5557 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5558 (hppa_gdbarch_init): Remove gdbarch setting of
5559 skip_trampoline_code, in_solib_call_trampoline and
5560 in_solib_return_trampoline.
5561 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5562 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5563 hppa_in_solib_call_trampoline.
5564 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5565 Moved from hppa-tdep.c.
5566 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5567 in_solib_call_trampoline and in_solib_return_trampoline.
5568
369aa520
RC
55692004-04-22 Randolph Chung <tausq@debian.org>
5570
5571 * hppa-tdep.c (hppa_debug): New variable.
5572 (find_unwind_entry, hppa_frame_cache): Add debug output.
5573 (_initialize_hppa_tdep): Add command to set debug flag.
5574
476be15e
AC
55752004-04-22 Andrew Cagney <cagney@redhat.com>
5576
5577 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5578 "trad-frame.h".
5579 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5580 signal trampoline unwinder.
5581 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5582
d195bc9f
MK
55832004-04-22 Mark Kettenis <kettenis@gnu.org>
5584
5585 Add OpenBSD/powerpc support.
5586 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5587 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5588 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5589 (ppc_collect_fpregset): New prototypes.
5590 * ppcobsd-nat.c: New file.
5591 * ppcobsd-tdep.c: New file.
5592 * ppcobsd-tdep.h: New file.
5593 * rs6000-tdep.c: Include "regset.h".
5594 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5595 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5596 New functions.
5597 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5598 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5599 (rs6000-tdep.o): Update dependencies.
5600 * configure.host: Add powerpc-*-openbsd.
5601 * configure.tgt: Add powerpc-*-openbsd.
5602 * config/powerpc/obsd.mh: New file.
5603 * config/powerpc/nm-obsd.h: New file.
5604 * config/powerpc/obsd.mt: New file.
5605
6f14cc33
AC
56062004-04-22 Andrew Cagney <cagney@redhat.com>
5607
fcf29e5f
AC
5608 * frame.h (show_frame_info): Delete declaration.
5609
6f14cc33
AC
5610 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5611 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5612 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5613 * frv-tdep.c (frv_frame_this_id): Ditto.
5614 * avr-tdep.c (avr_frame_this_id): Ditto.
5615
e5786a5c
EZ
56162004-04-22 Elena Zannoni <ezannoni@redhat.com>
5617
5618 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5619
26e75e5c
JB
56202004-04-22 Jim Blandy <jimb@redhat.com>
5621
5622 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5623 register number zero.
5624
d8d65dd3
MS
56252004-04-21 Michael Snyder <msnyder@redhat.com>
5626
5627 * mips-tdep.c (heuristic_proc_start):
5628 Warning() already prefixes "Warning: ".
5629
9a4105ab
AC
56302004-04-21 Andrew Cagney <cagney@redhat.com>
5631
5632 * annotate.h (deprecated_annotate_starting_hook)
5633 (deprecated_annotate_stopped_hook)
5634 (deprecated_annotate_exited_hook)
5635 (deprecated_annotate_signal_hook)
5636 (deprecated_annotate_signalled_hook): Deprecate.
5637 * tracepoint.h (deprecated_create_tracepoint_hook)
5638 (deprecated_delete_tracepoint_hook)
5639 (deprecated_modify_tracepoint_hook)
5640 (deprecated_trace_find_hook)
5641 (deprecated_trace_start_stop_hook): Deprecate.
5642 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5643 * remote.h (deprecated_target_resume_hook)
5644 (deprecated_target_wait_loop_hook): Deprecate.
5645 * gdbcore.h (deprecated_exec_file_display_hook)
5646 (deprecated_file_changed_hook): Deprecate.
5647 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5648 * defs.h (deprecated_modify_breakpoint_hook)
5649 (deprecated_command_loop_hook, deprecated_show_load_progress)
5650 (deprecated_print_frame_info_listing_hook)
5651 (deprecated_query_hook, deprecated_warning_hook)
5652 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5653 (deprecated_delete_breakpoint_hook)
5654 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5655 (deprecated_readline_begin_hook, deprecated_readline_hook)
5656 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5657 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5658 (deprecated_context_hook, deprecated_target_wait_hook)
5659 (deprecated_attach_hook, deprecated_detach_hook)
5660 (deprecated_call_command_hook, deprecated_set_hook)
5661 (deprecated_error_hook, deprecated_error_begin_hook)
5662 (deprecated_ui_load_progress_hook): Deprecate.
5663 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5664 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5665 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5666 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5667 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5668 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5669 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5670 * annotate.c, aix-thread.c: Update.
5671
62cf13cc
AC
56722004-04-21 Andrew Cagney <cagney@redhat.com>
5673
b2e31a62
AC
5674 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5675 * vaxnbsd-tdep.c: Include "gdb_string.h".
5676
62cf13cc
AC
5677 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5678 (add_symbol_file_from_memory_command): #if 0 function body, call
5679 error instead.
5680
00e32a35
AC
56812004-04-21 Andrew Cagney <cagney@redhat.com>
5682
5683 * gdbcore.h: Update copyright.
5684 (deprecated_add_core_fns): Rename add_core_fns.
5685 * win32-nat.c (_initialize_core_win32): Update.
5686 * sun3-nat.c (_initialize_core_sun3): Update.
5687 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5688 * rs6000-nat.c (_initialize_core_rs6000): Update.
5689 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5690 * nto-tdep.c (_initialize_nto_tdep): Update.
5691 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5692 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5693 * mips-nat.c (_initialize_core_mips): Update.
5694 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5695 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5696 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5697 * lynx-nat.c (_initialize_core_lynx): Update.
5698 * irix5-nat.c (_initialize_core_irix5): Update.
5699 * i386-interix-nat.c (_initialize_core_interix): Update.
5700 * cris-tdep.c (_initialize_cris_tdep): Update.
5701 * corelow.c (deprecated_add_core_fns): Update.
5702 * core-regset.c (_initialize_core_regset): Update.
5703 * core-aout.c (_initialize_core_aout): Update.
5704 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5705 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5706 * alpha-nat.c (_initialize_core_alpha): Update.
5707
13c7b1ca
JB
57082004-04-21 Jim Blandy <jimb@redhat.com>
5709
5710 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5711
7b5a2f43
DJ
57122004-04-19 Daniel Jacobowitz <drow@mvista.com>
5713
5714 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5715 Delete.
5716 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5717 (read_attribute_value): Update calls to dwarf_alloc_block.
5718 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5719 dwarf2_tmp_obstack.
5720 (psymtab_to_symtab_1): Likewise. Clean up using
5721 free_stack_comp_unit.
5722 (add_to_cu_func_list): Use the comp_unit_obstack.
5723
05cf31d1
JB
57242004-04-19 Joel Brobecker <brobecker@gnat.com>
5725
5726 * dwarf2read.c (dwarf2_flag_true_p): New function.
5727 (die_is_declaration): Use the function above. Add some comments.
5728
adf93a2f
MK
57292004-04-19 Mark Kettenis <kettenis@gnu.org>
5730
5731 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5732 architecture when registering sparcnbsd_core_osabi_sniffer.
5733 Adjust comment.
5734
748894bf
MK
57352004-04-18 Mark Kettenis <kettenis@gnu.org>
5736
f622ad42
MK
5737 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5738 return value.
5739
c4fc7f1b
MK
5740 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5741 * i386-tdep.c: Correct register numbering scheme comments
5742 throughout.
5743 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5744 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5745 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5746 (i386_gdb_arch_init): Likewise.
5747
b4ead1bd
MK
5748 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5749 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5750 ppcnbsd-tdep.o.
5751
748894bf
MK
5752 * m68k-tdep.h: Tweak comments.
5753 * m68k-tdep.c: Tweak comment.
5754
fdd72f95
RC
57552004-04-17 Randolph Chung <tausq@debian.org>
5756
5757 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5758 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5759 (hppa_hpux_som_init_abi): Set is_elf to 0.
5760 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5761 * hppa-tdep.c (low_text_segment_address): Remove global.
5762 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5763 section offset to calculate segment address.
5764 (internalize_unwinds): Define low_text_segment_address as local and
5765 pass to record_text_segment_lowaddr for ELF targets.
5766 (hppa_gdbarch_init): Zero fill tdep structure.
5767 (hppa_dump_tdep): Print tdep structure.
5768 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5769
0f8d9d59
RC
57702004-04-17 Randolph Chung <tausq@debian.org>
5771
5772 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5773 (hppa_gdbarch_init): Set pseudo_register_read.
5774 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5775 * regcache.c (supply_register): Remove check for
5776 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5777
7c46b9fb
RC
57782004-04-17 Randolph Chung <tausq@debian.org>
5779
5780 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5781 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5782 (hpread_adjust_stack_address): Move to hpread.c.
5783 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5784 obj_private_struct): Move from tm-hppa.h.
5785 * hpread.c (hppa-tdep.h): Include.
5786 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5787 (hpread_read_function_type, hpread_read_doc_function_type)
5788 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5789 directly.
5790 * pa64solib.c (hppa-tdep.h): Include.
5791 * somsolib.c (hppa-tdep.h): Include.
5792 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5793 inferior_status): Remove unused forward declarations.
5794 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5795 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5796 obj_private_struct): Move to hppa-tdep.h.
5797 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5798
8d153463
RC
57992004-04-17 Randolph Chung <tausq@debian.org>
5800
5801 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5802 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5803 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5804 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5805 Remove forward declaration and make static.
5806 (hppa_reg_struct_has_addr): Remove.
5807
350c2e5b
JB
58082004-04-16 Joel Brobecker <brobecker@gnat.com>
5809
5810 * observer.sh: Move comments in sed command to first column.
5811
bbde78fa
JM
58122004-04-16 Jason Molenda (jmolenda@apple.com)
5813
5814 * frame.c: Minor typeo corrections in comments.
5815
e0270fd9
JB
58162004-04-16 Joel Brobecker <brobecker@gnat.com>
5817
5818 * observer.c (observer_test_first_notification_function): Update
5819 function profile.
5820 (observer_test_second_notification_function): Likewise.
5821 (observer_test_third_notification_function): Likewise.
5822
3d049254
MK
58232004-04-16 Mark Kettenis <kettenis@gnu.org>
5824
5825 From Brian Ford <ford@vss.fsi.com>:
5826 * i386-tdep.c (i386_coff_init_abi): New function.
5827 * i386-tdep.h (i386_coff_init_abi): New prototype.
5828 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5829 register number translation functions for DWARF and DWARF 2.
5830
7867684d
JB
58312004-04-16 Joel Brobecker <brobecker@gnat.com>
5832
5833 * dwarf2read.c: Back out my previous change, it was incorrect.
5834
72bf9492
DJ
58352004-04-16 Daniel Jacobowitz <drow@mvista.com>
5836
5837 * dwarf2read.c: Include "hashtab.h".
5838 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5839 has_namespace_info.
5840 (struct partial_die_info): Add comments. Use bitfields to reduce
5841 memory footprint. Add scope, scope_set, has_specification,
5842 spec_offset, die_parent, die_child, and die_sibling.
5843 (peek_die_abbrev): Add prototype.
5844 (partial_read_comp_unit_head): New function, broken out from
5845 dwarf2_build_psymtabs_hard.
5846 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5847 Use partial_read_comp_unit_head. Initialize the CU and
5848 comp_unit_obstack. Update calls to read_partial_die and
5849 scan_partial_symbols. Use free_stack_comp_unit and
5850 load_partial_dies.
5851 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5852 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5853 Update calls to helper functions. Remove NAMESPACE argument.
5854 Update comments.
5855 (partial_die_parent_scope, partial_die_full_name): New functions.
5856 (add_partial_symbol): Remove namespace argument. Update call to
5857 pdi_needs_namespace. Use partial_die_full_name. Handle
5858 DW_TAG_namespace. Check has_namespace_info flag.
5859 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5860 tag. Handle namespaces.
5861 (add_partial_namespace, add_partial_enumeration): Simplify.
5862 (guess_structure_name): New function, derived from
5863 add_partial_structure.
5864 (add_partial_structure): Remove.
5865 (determine_class_name): Update comment.
5866 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5867 (is_type_tag_for_partial, load_partial_dies): New functions.
5868 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5869 Record specifications instead of following them immediately.
5870 (find_partial_die_in_comp_unit, find_partial_die)
5871 (fixup_partial_die, free_stack_comp_unit)
5872 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5873 (partial_die_hash, partial_die_eq): New functions.
5874 * Makefile.in (hashtab_h): Define.
5875 (dwarf2read.o): Update dependencies.
5876 (observer_inc, observer_h): Move to the correct section.
5877
fdc860a3
JB
58782004-04-15 Joel Brobecker <brobecker@gnat.com>
5879
5880 * dwarf2read.c (dwarf2_attribute_true_p): New function.
5881 (die_is_declaration): Use the function above. Add comment.
5882
dc718098
JB
58832004-04-15 Joel Brobecker <brobecker@gnat.com>
5884
5885 * dwarf2read.c (read_structure_scope): Identify stub types
5886 using die_is_declaration() only.
5887
8718a420
RM
58882004-04-15 Roland McGrath <roland@redhat.com>
5889
5890 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
5891 argument instead of NAME.
5892 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
5893 in call to symbol_file_add_with_addrs_or_offsets.
5894 (build_addr_info): New function, helper for ...
5895 (symbol_file_add_from_memory): New function.
5896 (add_symbol_file_from_memory_command): New function using that.
5897 (_initialize_symfile): Register it for add-symbol-file-from-memory.
5898 (pre_add_symbol_hook): Add const to argument type.
5899 * symfile.h (symbol_file_add_from_memory): Declare it.
5900
8b910bab
MK
59012004-04-15 Mark Kettenis <kettenis@gnu.org>
5902
9f076e7a
MK
5903 * NEWS (New native configurations): Mention OpenBSD/vax.
5904 * configure.host: Add vax-*-openbsd*.
5905 * config/vax/obsd.mh: New file.
5906 * config/vax/nm-obsd.h: New file.
5907
8b910bab
MK
5908 * vax-tdep.c: Include "regset.h".
5909 (vax_supply_gregset): New function.
5910 (vax_gregset): New variable.
5911 (vax_regset_from_core_section): New function.
5912 (vax_gdbarch_init): Set regset_from_core_section.
5913 * Makefile.in (vax-tdep.o): Update dependencies.
5914
7a464420
AC
59152004-04-15 Andrew Cagney <cagney@redhat.com>
5916
5917 * observer.c (normal_stop_subject, observer_notify_normal_stop)
5918 (observer_normal_stop_notification_stub)
5919 (observer_attach_normal_stop, observer_detach_normal_stop):
5920 Delete, replaced by #include "observer.inc".
5921 * infrun.c (normal_stop): Pass "stop_bpstat" to
5922 observer_notify_normal_stop.
5923 * Makefile.in (observer_inc): Define.
5924 (observer.o): Update dependencies.
5925 (observer.h, observer.inc): New rules.
5926 * observer.h: Delete file.
5927 * observer.sh: New file.
5928
e36ad527
MK
59292004-04-15 Mark Kettenis <kettenis@gnu.org>
5930
5931 * vax-tdep.c (vax_frame_cache): Fix typo.
5932
67b441e1
MK
59332004-04-14 Mark Kettenis <kettenis@gnu.org>
5934
6f606e1c
MK
5935 * NEWS (New native configurations): Mention NetBSD/vax.
5936 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
5937 * config/vax/nbsdelf.mh: New file.
5938 * config/vax/nbsdaout.mh: New file.
5939 * config/vax/nm-nbsd.h: New file.
5940 * config/vax/nm-nbsdaout.h: New file.
5941
9c5519a5
MK
5942 * vaxnbsd-tdep.c: New file.
5943 * Makefile.in (vaxnbsd-tdep.o): New dependency.
5944 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
5945 * config/vax/nbsd.mt: New file.
5946 * config/vax/tm-nbsd.h: New file.
5947
4844a614
MK
5948 * Makefile.in (vaxbsd-nat.o): New dependency.
5949
67b441e1
MK
5950 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
5951 * vax-tdep.c (vax_store_arguments): Remove struct_return and
5952 struct_addr arguments. Don't push return value address.
5953 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
5954 arguments to vax_store_arguments. Store return value address in
5955 R1.
5956 (vax_store_struct_return, vax_extract_return_value)
5957 (vax_store_return_value): Remove functions.
5958 (vax_return_value): New function.
5959 (vax_gdbarch_init): Set return value. Don't set
5960 deprecated_store_struct_return, deprecated_extract_struct_return
5961 and deprecated_store_return_value.
5962
6672f2ae
AS
59632004-04-14 Andreas Schwab <schwab@suse.de>
5964
5965 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
5966 value buffer.
5967 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
5968
7346c184
MK
59692004-04-14 Mark Kettenis <kettenis@gnu.org>
5970
5971 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
5972 (vax_unwind_dummy_id): New functions.
5973 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
5974 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
5975 variables.
5976 (vax_fix_call_dummy): Remove function.
5977 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
5978 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
5979 call_dummy_location, deprecated_call_dummy_words,
5980 deprecated_sizeof_call_dummy_words,
5981 deprecated_call_dummy_breakpoint_offset,
5982 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
5983 and deprecated_dummy_write_sp.
5984
58e23df4
DC
59852004-04-13 David Carlton <carlton@kealia.com>
5986
5987 * MAINTAINERS: Move myself to "paper trail" section.
5988
5e6b39ff
MK
59892004-04-12 Mark Kettenis <kettenis@gnu.org>
5990
7def7fef
MK
5991 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
5992 "trad-frame.h".
5993 (vax_frame_init_saved_regs): Remove function.
5994 (vax_sigtramp_saved_pc): Remove function.
5995 (vax_frame_saved_pc): Remove function.
5996 (vax_frame_args_address): Remove function.
5997 (vax_frame_num_args): Rewrite.
5998 (vax_frame_chain): Remove function.
5999 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6000 VAX_FP_REGNUM.
6001 (vax_pop_frame): Likewise.
6002 (vax_saved_pc_after_call): Remove function.
6003 (struct vax_frame_cache): New structure.
6004 (vax_frame_cache): New function.
6005 (vax_frame_this_id): New function.
6006 (vax_frame_prev_register): New function.
6007 (vax_frame_unwind): New variable.
6008 (vax_frame_sniffer): New function.
6009 (vax_frame_base_address): New function.
6010 (vax_frame_args_address): New function.
6011 (vax_frame_base): New variable.
6012 (vax_unwind_pc): New function.
6013 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6014 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6015 deprecated_frame_chain, deprecated_frame_saved_pc,
6016 deprecated_frame_args_address and
6017 deprecated_frame_init_saved_regs.
6018 * Makefile.in (vax-tdep.o): Update dependencies.
6019
53284fc1
MK
6020 * vaxbsd-nat.c: New file.
6021
5e6b39ff
MK
6022 * vax-tdep.h: Update copyright year. Adjust comments.
6023 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6024 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6025 (vax_regnum): New enum. Replacing...
6026 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6027 (VAX_PS_REGNUM): ... these removed macros.
6028 * vax-tdep.c (vax_register_name): Remove prototype.
6029 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6030 (vax_register_byte, vax_register_raw_size,
6031 vax_register_virtual_size, vax_register_virtual_type): Remove
6032 functions.
6033 (vax_register_type): New function.
6034 (vax_breakpoint_from_pc): Reorganize.
6035 (vax_gdbarch_init): Set register_type. Don't set
6036 deprecated_register_size, deprecated_register_bytes,
6037 deprecated_register_byte, deprecated_register_raw_size,
6038 deprecated_max_register_raw_size,
6039 deprecated_register_virtual_size,
6040 deprecated_max_register_virtual_size and
6041 deprecated_register_virtual_type. Add comment on stack direction.
6042
e9c71e9f
MK
60432004-04-11 Mark Kettenis <kettenis@gnu.org>
6044
6045 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6046 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 6047 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 6048
d46f1176 60492004-04-10 Randolph Chung <tausq@debian.org>
8718a420 6050
d46f1176
RC
6051 * MAINTAINERS (write after approval): Add myself.
6052
a2a84a72
RC
60532004-04-07 Randolph Chung <tausq@debian.org>
6054
6055 * hppa-tdep.c (hppa_inner_than): Remove.
6056 (is_pa_2): Remove unused static variable.
8718a420 6057 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 6058
e85c3284
PH
60592004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6060
6061 * language.h (language_defn): Add new la_post_parser field.
6062 * parser-defs.h (null_post_parser): New declaration (default for
6063 la_post_parser).
8718a420 6064
e85c3284
PH
6065 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6066 insert call to that function.
6067 (parse_exp_in_context): New function, including code formerly in
8718a420 6068 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
6069 prefixification.
6070 (parse_expression_in_context): New exported function.
6071 (null_post_parser): New definition.
6072 * expression.h (parse_expression_in_context): Add declaration.
8718a420 6073
e85c3284
PH
6074 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6075 * c-lang.c (c_language_defn): Ditto.
6076 (cplus_language_defn): Ditto.
6077 (asm_language_defn): Ditto.
6078 (minimal_language_defn): Ditto.
6079 * f-lang.c (f_language_defn): Ditto.
6080 * jv-lang.c (java_language_defn): Ditto.
6081 * language.c (unknown_language_defn): Ditto.
6082 (auto_language_defn): Ditto.
6083 (local_language_defn): Ditto.
6084 * m2-lang.c (m2_language_defn): Ditto.
6085 * scm-lang.c (scm_language_defn): Ditto.
6086 * obj-lang.c (objc_language_defn): Ditto.
8718a420 6087
d9f8c85b
MK
60882004-04-10 Mark Kettenis <kettenis@gnu.org>
6089
fa34704a
MK
6090 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6091 (amd64nbsd_mcontext_addr): New function.
6092 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6093 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6094 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6095
403e1656
MK
6096 * corelow.c (core_xfer_partial): Fix coding standards violation.
6097 Add support for TARGET_OBJECT_WCOOKIE.
6098
a57e5a95
MK
6099 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6100 deprecated_pc_in_sigtramp.
6101 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6102 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6103 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6104 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6105 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6106 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6107 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6108
377d9ebd
MK
6109 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6110 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6111 Fix typo.
6112
f0ef85a5
MK
6113 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6114 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6115 (amd64_collect_fxsave): Likewise.
6116
d9f8c85b
MK
6117 * i386-sol2-tdep.c: Include "gdb_string.h".
6118 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6119 name.
6120 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6121
75f501b5
MK
61222004-04-10 Mark Kettenis <kettenis@gnu.org>
6123
6124 * i386-sol2-tdep.c: Include "solib-svr4.h".
6125 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6126 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6127 * config/i386/tm-i386sol2.h: Include :solib.h".
6128 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6129 solib-svr4.o and solib-legacy.o.
6130 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6131 solib-svr4.o.
6132
b31bc724
MK
61332004-04-09 Mark Kettenis <kettenis@gnu.org>
6134
18bbbd9e
MK
6135 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6136 whether a register is supplied by PTRACE_GETFPREGS.
6137 (store_inferior_registers): Likewise.
6138 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6139 whether a register is supplied by PT_GETFPREGS.
6140 (store_inferior_registers): Likewise.
6141
3c30bf1b
MK
6142 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6143 * config/i386/linux64.mt (TDEPFILES): Likewise.
6144
a4194092
MK
6145 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6146
911bc6ee
MK
6147 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6148 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6149 the program counter is in the range specified by `struct
6150 gdbarch_tdep'.
6151 * amd64-linux-tdep.c: Include "symtab.h".
6152 (amd64_linux_pc_in_sigtramp): Remove function.
6153 (amd64_linux_sigtramp_p): New function.
6154 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6155 deprecated_pc_in_sigtramp.
6156 * amd64nbsd-tdep.c: Include "symtab.h".
6157 (amd64nbsd_sigtramp_p): New function.
6158 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6159 deprecated_pc_in_sigtramp.
6160 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6161 few comments.
6162 (amd64obsd_pc_in_sigtramp): Remove function.
6163 (amd64obsd_sigtramp_p): New function.
6164 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6165 deprecated_pc_in_sigtramp.
6166 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6167 (i386bsd_pc_ins_sigtramp): Remove prototype.
6168 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6169 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6170 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6171 the program counter is in the range specified by `struct
6172 gdbarch_tdep'.
6173 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6174 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6175 (i386_go32_pc_in_sigtramp): Remove function.
6176 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6177 Initialize TDEP->sigtramp_p.
6178 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6179 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6180 deprecated_pc_in_sigtramp.
6181 * i386-linux-tdep.c: Adjust comments.
6182 (i386_linux_pc_in_sigtramp): Remove function.
6183 (i386_linux_sigtramp_p): New function.
6184 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6185 deprecated_pc_in_sigtramp.
6186 * i386-nto-tdep.c: Update copyright year.
6187 (i386nto_pc_in_sigtramp): Remove function.
6188 (i386nto_sigtramp_p): New function.
6189 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6190 SP_REGNUM.
6191 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6192 deprecated_pc_in_sigtramp.
6193 * i386-sol2-tdep.c: Update copyright year.
6194 (i386_sol2_pc_in_sigtramp): Remove function.
6195 (i386_sol2_sigtramp_p): New function.
6196 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6197 deprecated_pc_in_sigtramp.
6198 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6199 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6200 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6201 deprecated_sigtramp_start and deprecated_sigtramp_end.
6202 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6203 (i386nbsd_pc_in_sigtramp): Remove function.
6204 (i386nbsd_sigtramp_p): New function.
6205 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6206 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6207 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6208 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6209 (i386obsd_pc_in_sigtramp): Remove function.
6210 (i386obsd_sigtramp_p): New function.
6211 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6212 functions.
6213 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6214 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6215 TDEP->sigtramp_p.
6216 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6217 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6218 dependencies.
6219
e083e6ec
MK
6220 * config/i386/i386aout.mt: Remove file.
6221
bd153b94
MK
6222 * configure.tgt: Remove i[34567]86-*-go32*,
6223 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6224 and i[34567]86-*-isc*. Set gdb_target to i386 for
6225 i[34567]86-*-netware* and i[34567]86-*-*.
6226 * config/i386/i386.mt: New file.
6227 * config/i386/embed.mt: Remove file.
6228 * config/i386/go32.mt: Remove file.
6229 * config/i386/i386nw.mt: Remove file.
6230 * config/i386/i386v.mt: Remove file.
6231 * config/i386/tm-go32.h: Remove file.
6232
4a1bcc8c
MK
6233 * tui/tui-hooks.c: Include "readline/readline.h" after
6234 "gdb_curses.h" instead of before.
6235 * tui/tui-io.c: Likewise.
6236
f9a79064
MK
6237 * tui/tui.c: Fix typo in comment.
6238
b31bc724
MK
6239 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6240
f83f82bc
AC
62412004-04-08 Andrew Cagney <cagney@redhat.com>
6242
6243 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6244 (deprecated_exception_support_initialized): Declare.
8718a420 6245 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
6246 (initialize_hp_cxx_exception_support)
6247 (child_enable_exception_callback): Update.
6248 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6249 (deprecated_exception_support_initialized): Rename
6250 deprecated_exception_catchpoints_are_fragile and
6251 deprecated_exception_support_initialized.
6252 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6253
6254 * symtab.c (deprecated_hp_som_som_object_present): Rename
6255 hp_som_som_object_present.
6256 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6257 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6258 Update. Delete extern declaration.
6259 * valops.c (hp_som_som_object_present): Ditto.
8718a420 6260 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
6261 (parse_nested_classes_for_hpacc): Ditto.
6262 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 6263 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
6264 (initialize_hp_cxx_exception_support): Ditto.
6265 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 6266 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 6267 (cp_print_class_method): Ditto.
8718a420 6268 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
6269 (c_type_print_base): Ditto.
6270 * c-exp.y (hp_som_som_object_present): Ditto.
6271
fb2be677
AC
62722004-04-08 Andrew Cagney <cagney@redhat.com>
6273
6274 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6275 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6276 (frame_unwind_find_by_frame): Re-implement the unwind code so
6277 that it can both prepend and append sniffers. Replace
6278 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6279 * tramp-frame.c (tramp_frame_append): Use
6280 frame_unwind_prepend_unwinder.
6281 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6282 frame_unwind_register_unwinder.
6283 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6284 tramp_frame_append.
6285 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 6286 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
6287 (mips_linux_init_abi): Update.
6288
67faf007
KB
62892004-04-08 Kevin Buettner <kevinb@redhat.com>
6290
6291 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6292 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6293 file support.
6294
8973ff21
KB
62952004-04-07 Kevin Buettner <kevinb@redhat.com>
6296
6297 * ia64-tdep.c (elf.h): Don't include.
6298 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6299
4a0e2f88
JM
63002004-04-07 Jason Molenda (jmolenda@apple.com)
6301
6302 * frame.h: Typeo corrections in comments.
6303
9872ad24
JB
63042004-04-07 Jim Blandy <jimb@redhat.com>
6305
6306 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6307 %esp and %ebp
6308
70b216c8
MK
63092004-04-07 Mark Kettenis <kettenis@gnu.org>
6310
11d5789c
MK
6311 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6312 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6313 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6314 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6315 and solib-legacy.o.
6316 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6317 solib-svr4.o.
6318 * config/sparc/tm-sol2.h: Update copyright year. Include
6319 "solib.h".
6320
70b216c8
MK
6321 * sparc-sol2-tdep.c: Update copyright year. Include
6322 "solib-svr4.h".
6323 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6324 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6325 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 6326 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
6327 dependencies.
6328
6339dc9e
AC
63292004-04-06 Andrew Cagney <cagney@redhat.com>
6330
6331 * infttrace.c: Include "infttrace.h".
6332 * infttrace.h: Include "target.h".
6333 * Makefile.in (infttrace_h): Update.
6334 (infttrace.o): Update.
8718a420 6335
93449403
AC
63362004-04-06 Andrew Cagney <cagney@redhat.com>
6337
6d518969
AC
6338 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6339 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6340 move extern declarations from here ...
6341 * infttrace.h: ... to here.
6342 * Makefile.in (hppah-nat.o): Update dependencies.
6343
85f4f2d8
AC
6344 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6345 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 6346 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
6347 (hppa_breakpoint_from_pc): Delete.
6348
93449403
AC
6349 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6350
71456ec6
AC
63512004-04-05 Andrew Cagney <cagney@redhat.com>
6352
6353 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6354 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6355 <sys/file.h>.
8718a420 6356
4c02c60c
AC
63572004-04-06 Randolph Chung <tausq@debian.org>
6358
6359 Committed by Andrew Cagney (mechanical change).
6360 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6361 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6362 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6363 child_enable_exception_callback, current_ex_event,
6364 null_symtab_and_line, child_get_current_exception_event,
6365 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6366 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6367 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6368 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6369 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6370 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6371 Move hpux-specific definitions ...
6372 * hppa-hpux-tdep.c: ... to here.
6373
3a515653
AC
63742004-04-05 Andrew Cagney <cagney@redhat.com>
6375
6376 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6377 skip_prologue_using_sal.
6378
c1730d02
AC
63792004-04-05 Andrew Cagney <cagney@redhat.com>
6380
6381 * config/i386/tm-i386.h: Delete file.
6382 * config/i386/tm-vxworks.h: Update copyright, do not include
6383 "tm-i386.h".
6384 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6385 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6386 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6387 * config/i386/ncr3000.mt (TM_FILE): Delete.
6388 * config/i386/interix.mt (TM_FILE): Delete.
6389 * config/i386/i386v.mt (TM_FILE): Delete.
6390 * config/i386/i386nw.mt (TM_FILE): Delete.
6391 * config/i386/i386gnu.mt (TM_FILE): Delete.
6392 * config/i386/i386aout.mt (TM_FILE): Delete.
6393 * config/i386/embed.mt (TM_FILE): Delete.
6394
8b67aa36
KB
63952004-04-05 Kevin Buettner <kevinb@redhat.com>
6396
6397 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6398 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6399 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6400 (accg7_regnum): New constants.
6401 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
6402 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6403 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
6404 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6405 for accg registers.
6406 (frv_register_sim_regno): Update spr_map[].
6407
3c7012f5
AC
64082004-04-04 Andrew Cagney <cagney@redhat.com>
6409
6410 * config/mips/xm-riscos.h: Delete.
6411 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6412 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6413 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6414 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6415 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6416 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6417 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6418 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6419 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6420 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6421 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6422 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6423 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6424 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6425 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6426 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6427 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6428 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6429 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6430 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6431 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6432 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6433 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6434 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6435 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6436 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 6437
3c7012f5
AC
6438 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6439 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6440 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6441 * configure.host: Remove m680[01]0-sun-sunos3*,
6442 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6443 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6444 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6445 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6446 mips-*-riscos*.
6447 * NEWS: Mention removed systems.
6448
99d16a21
AC
64492004-04-04 Andrew Cagney <cagney@redhat.com>
6450
6451 GDB 6.1 release created from 6.1 branch.
6452
6cdf9d98
AC
64532004-04-04 Andrew Cagney <cagney@redhat.com>
6454
98d346c3
AC
6455 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6456 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6457 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6458
6cdf9d98
AC
6459 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6460 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6461 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6462
859a326d
JB
64632004-04-03 Jim Blandy <jimb@redhat.com>
6464
6465 * MAINTAINERS: Chris Faylor has changed employers; add him to
6466 "paper trail" section, and update his E-mail address.
6467
b87178c3
AC
64682004-04-03 Andrew Cagney <cagney@redhat.com>
6469
4ea2acf0
AC
6470 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6471 generic dummy frames.
6472 * dummy-frame.c: Update copyright.
6473 (dummy_frame_sniffer): Delete check for generic dummy frames.
6474
d0bd2d18 6475 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 6476 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
6477 (REG_PARM_STACK_SPACE): Delete.
6478 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6479 Inline reference to REG_PARM_STACK_SPACE.
6480
b87178c3
AC
6481 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6482 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6483 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6484 (FRAME_BASE_BEFORE_SIGTRAMP)
6485 (hppa32_hpux_frame_base_before_sigtramp)
6486 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6487 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6488 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6489 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6490 (FRAME_BASE_BEFORE_SIGTRAMP)
6491 (hppa64_hpux_frame_base_before_sigtramp)
6492 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6493
43e2e1a0
AC
64942004-04-03 Andrew Cagney <cagney@redhat.com>
6495
6496 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6497
ddc135a4
AC
64982004-04-02 Andrew Cagney <cagney@redhat.com>
6499
6500 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6501 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6502 * dummy-frame.h: Delete out-of-date comments.
6503 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6504 * gdbarch.h, gdbarch.c: Re-generate.
6505
d15bfd3a 65062004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 6507
d15bfd3a
AC
6508 Committed by Andrew Cagney <cagney@redhat.com>.
6509 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6510 into account an instruction saving a register if we have already
6511 seen an earlier instruction saving that same register.
6512
f04ceafa
AC
65132004-04-02 Andrew Cagney <cagney@redhat.com>
6514
08be3abd
AC
6515 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6516 * gdbarch.h, gdbarch.c: Re-generate.
6517 * frame.c (legacy_get_prev_frame): Delete references to
6518 DEPRECATED_INIT_FRAME_PC_FIRST.
6519
f04ceafa
AC
6520 * infrun.c (pc_in_sigtramp): Delete function.
6521 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6522 get_frame_type.
6523
08e69816
AC
65242004-04-02 Andrew Cagney <cagney@redhat.com>
6525
6526 * infrun.c (handle_step_into_function): Delete code conditional on
6527 legacy_frame_p.
6528 (handle_inferior_event, step_over_function): Ditto.
6529
adb54772
AC
65302004-04-02 Andrew Cagney <cagney@redhat.com>
6531
6532 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6533 "previous frame inner to this frame" test.
6534
304396fb
AC
65352004-04-02 Andrew Cagney <cagney@redhat.com>
6536
6537 * frame.c (safe_frame_unwind_memory): New function.
6538 * frame.h (safe_frame_unwind_memory): Declare. Update description
6539 of /safe_/ methods.
6540 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6541 "next_frame". Use safe_frame_unwind_memory.
6542 (tramp_frame_sniffer): Update call to tramp_frame_start.
6543
6502dd73
DJ
65442004-04-01 Daniel Jacobowitz <drow@mvista.com>
6545
6546 * dwarf2read.c (dwarf2_objfile_data_key): New.
6547 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6548 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6549 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6550 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6551 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6552 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6553 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6554 Remove variables.
6555 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6556 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6557 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6558 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6559 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6560 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6561 Remove macros.
6562 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6563 data.
6564 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6565 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6566 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6567 (read_partial_die, read_full_die, read_indirect_string)
6568 (dwarf_decode_line_header, dwarf_decode_macros)
6569 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6570 Update uses of removed variables.
6571 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6572 of removed macros.
6573 (_initialize_dwarf2_read): New function.
6574 * symfile.h (dwarf2_has_info): Update prototype.
6575 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6576 * elfread.c (elf_symfile_read): Likewise.
6577
408752b0
JB
65782004-04-01 Jim Blandy <jimb@redhat.com>
6579
9f744501
JB
6580 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6581 function for register numbers on all the rs6000-derived targets.
6582 (rs6000_gdbarch_init): Don't register a separate
6583 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6584 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6585 variants.
6586
408752b0
JB
6587 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6588 numbering.
6589
2de41bce
PH
65902004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6591
6592 * valarith.c: Update copyright notice.
6593 (value_add): Handle range types.
6594 (value_sub): Ditto.
6595 (value_equal): Ditto.
6596 (value_less): Ditto.
6597 (value_neg): Ditto.
6598 (value_complement): Ditto.
8718a420 6599 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 6600 eliminiating unnecessary COERCE_ENUMs.
8718a420 6601
5613d8d3
AC
66022004-03-31 Andrew Cagney <cagney@redhat.com>
6603
6604 * frame.h (frame_unwind_id): Declare.
6605 * frame.c (frame_unwind_id): New function.
6606 (get_prev_frame_1): New function.
6607 (frame_debug_got_null_frame): New function.
6608 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6609 code proper to prev_frame, update description.
6610 * infrun.c (step_over_function): Use frame_unwind_id.
6611
c4557624
JB
66122004-04-31 J. Brobecker <brobecker@gnat.com>
6613
6614 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6615 (hppa64_push_dummy_call): Likewise.
6616
3e6bb910
JB
66172004-03-30 Jim Blandy <jimb@redhat.com>
6618
6619 From Ulrich Weigand:
6620 * utils.c (query): Do not use a va_list variable multiple times.
6621
a2f23071
DJ
66222004-03-29 Daniel Jacobowitz <drow@mvista.com>
6623
6624 * Makefile.in (linux_nat_h): Update dependencies.
6625 * configure.in: Check for <gnu/libc-version.h>.
6626 * configure: Regenerate.
6627 * config.in: Regenerate.
6628 * linux-nat.h: Include "target.h". Add waitstatus field to
6629 struct lwp_info.
6630 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6631 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6632 to.
6633 (lin_lwp_handle_extended): New function. Handle clone events.
6634 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6635 thread exit events.
6636 (child_wait): Handle clone events.
6637 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6638 * linux-nat.c (linux_enable_event_reporting): Turn on
6639 PTRACE_O_TRACECLONE.
6640 (linux_handle_extended_wait): Handle clone events.
6641 * thread-db.c: Include <gnu/libc-version.h>.
6642 (struct private_thread_info): Add dying flag.
6643 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6644 higher.
6645 (attach_thread): Update comments. Handle dying threads.
6646 (detach_thread): Set the dying flag.
6647 (check_event): Always call attach_thread.
6648
8d5f9dcb
DJ
66492004-03-29 Daniel Jacobowitz <drow@mvista.com>
6650
6651 * mips-tdep.c (mips_pdr_data): New.
6652 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6653 (_initialize_mips_tdep): Initialize mips_pdr_data.
6654
66337bb1
CV
66552004-03-29 Corinna Vinschen <vinschen@redhat.com>
6656
6657 * minsyms.c (install_minimal_symbols): Move dropping leading
6658 char from linkage name from here...
6659 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6660 test for "__gnu_compiled*" symbols.
6661
e802b915
JB
66622004-03-28 Jim Blandy <jimb@redhat.com>
6663
6664 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6665 registers to temp register r0 and byte stores as prologue
6666 instructions.
6667
72b56458
AC
66682004-03-28 Andrew Cagney <cagney@redhat.com>
6669
6670 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6671 arm*-*-*.
6672
0bfbda3b
SC
66732004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6674
6675 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6676 and switch the layout to force a display of register window.
6677
5a7225ed
JB
66782004-02-26 J. Brobecker <brobecker@gnat.com>
6679
6680 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6681 of the INTEGER class.
6682
81a07a45
JB
66832004-03-26 Jim Blandy <jimb@redhat.com>
6684
6685 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6686 bytes long on PPC GNU/Linux.
6687
8c691c7a
DC
66882004-03-26 David Carlton <carlton@kealia.com>
6689
6690 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6691
103a0089
AC
66922004-03-25 Andrew Cagney <cagney@redhat.com>
6693
6694 * PROBLEMS: Add general section titles, remove references to
6695 specific releases.
6696
7a5ea0d4
DJ
66972004-03-25 Daniel Jacobowitz <drow@mvista.com>
6698
6699 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6700 INT_REGISTER_SIZE.
6701 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6702 FP_REGISTER_VIRTUAL_SIZE.
6703 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6704 of DEPRECATED_REGISTER_RAW_SIZE.
6705 (arm_register_type): Add gdbarch argument.
6706 (arm_register_raw_size, arm_register_virtual_size): Delete.
6707 (arm_register_byte, arm_extract_return_value)
6708 (arm_store_return_value, arm_get_longjmp_target): Update references
6709 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6710 (arm_gdbarch_init): Likewise. Don't set
6711 deprecated_register_raw_size, deprecated_register_virtual_size,
6712 deprecated_max_register_raw_size,
6713 deprecated_max_register_virtual_size, or
6714 deprecated_max_register_virtual_type. Do set register_type.
6715 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6716 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6717 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6718 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6719 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6720 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6721 INT_REGISTER_SIZE.
6722 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6723 (remote_rdp_store_register): Likewise.
6724
5792a79b
DJ
67252004-03-24 Daniel Jacobowitz <drow@mvista.com>
6726
6727 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6728 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6729 to after osabi initialization.
6730 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6731 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6732 functions.
6733 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6734 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6735 variables.
6736 (mips_linux_init_abi): Append signal trampoline unwinders.
6737
1196bfda
AC
67382004-03-24 Andrew Cagney <cagney@redhat.com>
6739
6740 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6741 * tramp-frame.c: Include "gdb_assert.h".
6742 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6743 correct sizeof.
6744 (tramp_frame_append): Validate the tramp frame's instructions.
6745 * Makefile.in (tramp-frame.o): Update dependencies.
6746
4be282b4
AC
67472004-03-23 Andrew Cagney <cagney@redhat.com>
6748
6749 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6750
69aec09b
AC
67512004-03-23 Andrew Cagney <cagney@redhat.com>
6752
6753 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6754 Nasser as past testsuite/lib/ (and other) maintainers.
6755
63ed89b4
DJ
67562004-03-23 Daniel Jacobowitz <drow@mvista.com>
6757
6758 * infcmd.c (attach_command): Reread symbols if we already have
6759 an exec file.
6760
f3b36427
AC
67612004-03-23 Andrew Cagney <cagney@redhat.com>
6762
6763 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6764
aa2a3f87
AC
67652004-03-23 Andrew Cagney <cagney@redhat.com>
6766
6767 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6768 * gdbarch.h, gdbarch.c: Re-generate.
6769 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6770 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6771 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 6772 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 6773 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 6774 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
6775 (DEPRECATED_SIGTRAMP_START): Update.
6776 * blockframe.c (find_pc_sect_partial_function): Update.
6777 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6778
00cac895
DJ
67792004-03-23 Daniel Jacobowitz <drow@mvista.com>
6780
6781 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6782 if necessary.
6783
f561f026
AC
67842004-03-23 Andrew Cagney <cagney@redhat.com>
6785
6786 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6787 predicate, deprecate.
6788 * gdbarch.h, gdbarch.c: Re-generate.
6789 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6790 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6791 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6792 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6793 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6794 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6795 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6796 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6797 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6798 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6799 * blockframe.c (find_pc_partial_function): Update.
6800 * breakpoint.c (bpstat_what): Update.
6801 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6802 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6803 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6804 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6805 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6806 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6807 * i386-nto-tdep.c (i386nto_init_abi): Update.
6808 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6809 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6810 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6811 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6812 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6813 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6814 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6815 * infrun.c (pc_in_sigtramp): Update.
6816 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6817 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6818 * mips-tdep.c (mips_gdbarch_init): Update.
6819 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6820 * ppc-linux-tdep.c: Update comment.
6821 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6822 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6823 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6824 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6825 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6826 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6827 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6828 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6829 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6830 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 6831
8050c72f
AC
68322004-03-23 Andrew Cagney <cagney@redhat.com>
6833
d2259dd3
AC
6834 * tramp-frame.h, tramp-frame.h: New files.
6835 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6836 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6837
8050c72f
AC
6838 * Makefile.in: Update all dependencies.
6839
0db9b4b7
AC
68402004-03-23 Andrew Cagney <cagney@redhat.com>
6841
6842 * Makefile.in (trad_frame_h): Add $(frame_h).
6843 * trad-frame.h: Update copyright. Include "frame.h".
6844 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6845 (trad_frame_set_id, trad_frame_get_id): Declare.
6846 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6847 * trad-frame.c: Update copyright.
6848 (struct trad_frame_cache): Define.
6849 (trad_frame_cache_zalloc): New function.
6850 (trad_frame_set_id, trad_frame_get_id): New functions.
6851 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 6852
8e645ae7
AC
68532004-03-22 Andrew Cagney <cagney@redhat.com>
6854
6855 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6856 s390_pltstub_unwind_cache.
6857 (s390_stub_frame_unwind_cache): Rename
6858 s390_pltstub_frame_unwind_cache.
6859 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6860 (s390_stub_frame_prev_register): Rename
6861 s390_pltstub_frame_prev_register.
6862 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6863 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6864
6865 From Ulrich Weigand:
6866 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6867 pointer calls like PLT calls.
6868
34fcf120
DJ
68692004-03-22 Daniel Jacobowitz <drow@mvista.com>
6870
6871 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6872 PC rather than the partial function start address. Use the start
6873 address to sanity check the found PDR.
6874
5b917078
DJ
68752004-03-22 Daniel Jacobowitz <drow@mvista.com>
6876
6877 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
6878 linux_handle_extended_wait.
6879
8adf9e78
AC
68802004-03-22 Andrew Cagney <cagney@redhat.com>
6881
c3122434
AC
6882 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
6883 function.
6884
8adf9e78
AC
6885 * frame.h (generic_pop_current_frame): Delete declaration.
6886 (deprecate_pop_dummy_frame): Deprecate
6887 generic_pop_dummy_frame.
6888 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
6889 (generic_pop_current_frame): Delete function.
6890 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
6891 generic_pop_current_frame.
6892 * v850-tdep.c (v850_pop_frame): Update.
6893 * mcore-tdep.c (mcore_pop_frame): Update.
6894 * sh64-tdep.c (sh64_pop_frame): Update.
6895 * h8300-tdep.c (h8300_pop_frame): Update.
6896
90ba813f
AC
68972004-03-22 Andrew Cagney <cagney@redhat.com>
6898
6899 * frame.h (deprecated_pc_in_call_dummy): Rename
6900 generic_pc_in_call_dummy.
6901 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
6902 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
6903 generic_pc_in_call_dummy.
6904 (pc_in_dummy_frame): Make static.
6905 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
6906 * gdbarch.h, gdbarch.c: Re-generate.
6907 * dummy-frame.c (dummy_frame_sniffer): Simplify.
6908 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
6909 (legacy_get_prev_frame): Ditto.
6910 * inferior.h: Delete reference to generic_pc_in_call_dummy in
6911 comment.
8718a420 6912
ca4bb888
AC
69132004-03-21 Andrew Cagney <cagney@redhat.com>
6914
244675f9
AC
6915 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
6916 declaration and out-of-date comment.
6917 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6918 Delete function.
6919 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
6920 deprecated_pc_in_call_dummy.
6921
ca4bb888
AC
6922 * infrun.c (handle_inferior_event): For non legacy frames, use the
6923 frame ID and frame type to identify a signal trampoline. Update
6924 comments.
6925
1777c7b4
NW
69262004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
6927
6928 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
6929 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
6930
82417da5
AC
69312004-03-21 Andrew Cagney <cagney@redhat.com>
6932
6933 * frame-unwind.h: Update copyright.
6934 (struct frame_data): Add opaque declaration.
6935 (frame_sniffer_ftype): Declare.
6936 (struct frame_unwind): Add "unwind_data" and "sniffer".
6937 (frame_unwind_register_unwinder): Declare.
6938 (frame_unwind_find_by_frame): Add parameter "this_cache".
6939 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
6940 (legacy_get_prev_frame, legacy_get_prev_frame)
6941 (get_frame_type): Pass the prologue_cache to
6942 frame_unwind_find_by_frame.
6943 * frame-unwind.c (struct frame_unwind_table_entry): Add field
6944 "unwinder".
6945 (frame_unwind_register_unwinder): New function.
6946 (frame_unwind_find_by_frame): Handle an unwind sniffer.
6947
b2ba182e
PH
69482004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
6949
6950 * bcache.c (print_percentage): Use floating point to avoid
6951 incorrect results when portion*100 overflows.
6952
81332287
KB
69532004-03-19 Kevin Buettner <kevinb@redhat.com>
6954
6955 * ppc_tdep.h (ppc_linux_frame_saved_pc)
6956 (ppc_linux_init_extra_frame_info)
6957 (ppc_linux_frameless_function_invocation)
6958 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
6959 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
6960 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
6961 (rs6000_frame_chain): Delete declarations.
6962 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
6963 (ppc_linux_init_extra_frame_info)
6964 (ppc_linux_frameless_function_invocation)
6965 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
6966 (ppc_linux_init_abi): Remove registration of above deleted functions.
6967 * rs6000-tdep.c (rs6000_init_extra_frame_info)
6968 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
6969 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
6970 (rs6000_pop_frame, rs6000_frameless_function_invocation)
6971 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
6972 (rs6000_gdbarch_init): Remove registration of above deleted functions.
6973 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
6974 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
6975 frame management for all OSABIs.
6976
61a65099
KB
69772004-03-19 Andrew Cagney <cagney@redhat.com>
6978
6979 Committed by Kevin Buettner <kevinb@redhat.com>.
6980
6981 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
6982 Update copyright.
6983 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
6984 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
6985 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
6986 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
6987 unwinders. #ifdef legacy frame code.
6988 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6989 "frame-base.h".
6990 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
6991 (struct rs6000_frame_cache, rs6000_frame_cache)
6992 (rs6000_frame_this_id, rs6000_frame_prev_register)
6993 (rs6000_frame_sniffer, rs6000_frame_unwind)
6994 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
6995 (rs6000_frame_base): Implement a traditional frame unwinder.
6996 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
6997 frame unwinder.
6998
88f7da05
KB
69992004-03-19 Kevin Buettner <kevinb@redhat.com>
7000
7001 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7002 breakpoint address for watchpoints or the catch eventpoints.
7003 Add new paramter ``bptype''. Adjust all callers.
7004
f826dce1
AC
70052004-03-19 Andrew Cagney <cagney@redhat.com>
7006
33cb8b0f
AC
7007 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7008
f826dce1
AC
7009 * PROBLEMS: Delete note that ARM does not use frame code, problem
7010 fixed.
7011
43b1ab88
AC
70122004-03-18 Andrew Cagney <cagney@redhat.com>
7013
292ab034
AC
7014 * stack.c (return_command): Delete code wrapped in #ifdef
7015 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7016
43b1ab88
AC
7017 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7018
dbfe4626
AC
70192004-03-18 Andrew Cagney <cagney@redhat.com>
7020
7021 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7022 DEPRECATED_IN_SIGTRAMP.
7023 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7024 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7025 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7026 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7027 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7028 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7029 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7030 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7031 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7032 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7033
0cad6aec
AC
70342004-03-18 Andrew Cagney <cagney@redhat.com>
7035
7036 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7037 (struct frame_base_table_entry): Define.
7038 (struct frame_base_table): Re-implement as a linked list.
7039 (frame_base_init): Re-implement.
7040 (frame_base_table): Delete function.
7041 (append_predicate): Delete function.
7042 (frame_base_append_sniffer): Update.
7043 (frame_base_set_default): Update.
7044 (frame_base_find_by_frame): Update.
7045 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7046 * Makefile.in (frame-base.o): Update dependencies.
7047
9982c2e7
AC
70482004-03-17 Andrew Cagney <cagney@redhat.com>
7049
7050 * frame.c (legacy_get_prev_frame): Pass correct frame to
7051 frame_unwind_find_by_frame.
7052
8dfe8985
DC
70532004-03-17 David Carlton <carlton@kealia.com>
7054
7055 * NEWS: Mention C++ nested types and namespaces
7056
ed47347a
MC
70572004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7058
7059 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7060 and "Regressions since gdb 5.3.". Add known regressions since
7061 gdb 6.0.
7062
90aeadfc
DC
70632004-03-16 David Carlton <carlton@kealia.com>
7064
7065 * dwarf2read.c (process_structure_scope): Process children even
7066 when we're a declaration.
7067
73912b9b
AC
70682004-03-16 Andrew Cagney <cagney@redhat.com>
7069
7070 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7071 * blockframe.c (find_pc_partial_function)
7072 (find_pc_sect_partial_function): Merge into a single
7073 find_pc_partial_function.
7074
283accbc
MK
70752004-03-16 Mark Kettenis <kettenis@gnu.org>
7076
7077 * i386bsd-nat.c: s/regno/regnum/g.
7078 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7079 FP0_REGNUM.
7080 (store_inferior_registers): Likewise.
7081
f5b1afdf
MK
70822004-03-16 Mark Kettenis <kettenis@gnu.org>
7083
7084 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7085 of i387_fill_fsave.
7086 (store_inferior_registers): Call i387_collect_fsave and
7087 i387_collect_fxsave instead of i387_fill_fsave and
7088 i387_fill_fxsave.
7089
41fe5eb3
AC
70902004-03-15 Andrew Cagney <cagney@redhat.com>
7091
7092 * Makefile.in (frame-unwind.o): Update dependencies.
7093 * frame-unwind.c: Include "gdb_obstack.h".
7094 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7095 parameter.
7096 (append_predicate): Delete function.
7097 (struct frame_unwind_table_entry): New structure.
7098 (struct frame_unwind_table): Replace "sniffer" with "head" and
7099 "tail".
7100 (frame_unwind_append_sniffer): Update.
7101 (frame_unwind_find_by_frame): Update.
7102 (_initialize_frame_unwind): Registe frame_unwind_init using
7103 gdbarch_data_register_pre_init.
7104
3f63813d
MK
71052004-03-15 Mark Kettenis <kettenis@gnu.org>
7106
7107 * i386bsd-nat.c: Update copyright year.
7108 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7109 define unconditionally.
7110
3248c325 71112004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
7112
7113 * i387-tdep.h (i387_collect_fsave): New prototype.
7114 * i387-tdep.c (i387_collect_fsave): New function containing most
7115 of the code from i387_fill_fsave.
3248c325 7116 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 7117
871fbe6a
MK
71182004-03-15 Mark Kettenis <kettenis@gnu.org>
7119
7120 * i386-linux-tdep.c: Update copyright year.
7121 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7122 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7123 svr4_ilp32_link_map_offsets instead of
7124 i386_linux_svr4_fetch_link_map_offsets.
7125
8176b9b8
DC
71262004-03-15 David Carlton <carlton@kealia.com>
7127
7128 Fix for PR c++/1553:
7129 * dwarf2read.c (read_structure_type): Determine type name by
7130 calling determine_class_name.
7131 (determine_class_name): New.
7132 (determine_prefix): Look at TYPE_TAG_NAME and call
7133 determine_class_name when appropriate.
7134 (determine_prefix_aux, class_name): Delete.
9d58e29d 7135 (read_namespace): Set die->type.
8176b9b8 7136
fe8bf7d7
KB
71372004-03-15 Kevin Buettner <kevinb@redhat.com>
7138
7139 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7140 unused macro definition. The definition in target.h (or perhaps
7141 elsewhere) takes precedence.
7142
ed6edd9b
AC
71432004-03-15 Andrew Cagney <cagney@redhat.com>
7144
f9be684a
AC
7145 * ppc-tdep.h: Update copyright.
7146 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7147 function signatures to match "regsets.h".
7148 * ppc-linux-tdep.c: Include "regset.h".
7149 (ELF_GREGSET_SIZE): Delete.
7150 (right_supply_register): New function.
7151 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7152 using right_supply_register.
7153 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7154 functions.
7155 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7156 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7157 (_initialize_ppc_linux_tdep): Do not register
7158 ppc_linux_regset_core_fns.
7159 (ppc_linux_regset_from_core_section): Replace
7160 fetch_core_registers.
7161 (ppc_linux_regset_core_fns): Delete.
7162 * ppc-linux-nat.c: (right_fill_reg): New function.
7163 (supply_gregset): Update call to ppc_linux_supply_gregset.
7164 (fill_gregset): Clear the register set, use right_fill_reg.
7165 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7166 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7167
ed6edd9b
AC
7168 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7169 unsigned.
7170
030f20e1
AC
71712004-03-15 Andrew Cagney <cagney@redhat.com>
7172
7173 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7174 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7175 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7176 and register_gdbarch_data.
7177 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7178 (struct gdbarch_data): Replace "init" by "pre_init" and
7179 "post_init".
7180 * gdbarch.h, gdbarch.c: Re-generate.
7181 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7182 with"obstack", use OBSTACK_ZALLOC.
7183 (dwarf2_frame_ops): Delete.
7184 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7185 (dwarf2_frame_init_reg): Use gdbarch_data.
7186 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 7187 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
7188 (_initialize_svr4_solib): Update.
7189 * user-regs.c (_initialize_user_regs): Update.
7190 * reggroups.c (_initialize_reggroup): Update.
7191 * regcache.c (_initialize_regcache): Update.
7192 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7193 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7194 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7195 * frame-unwind.c (_initialize_frame_unwind): Update.
7196 * frame-base.c (_initialize_frame_base): Update.
7197 * user-regs.c (user_reg_add): Update.
7198 * reggroups.c (reggroup_add): Update.
7199 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7200 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7201 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7202 * frame-base.c (frame_base_table): Update.
7203 * remote.c (_initialize_remote): Update.
7204 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 7205
3111a3fc
AC
72062004-03-15 Andrew Cagney <cagney@redhat.com>
7207
7208 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7209
5ecb7103
KB
72102004-03-15 Kevin Buettner <kevinb@redhat.com>
7211
7212 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7213 * frv-linux-tdep.c: New file.
7214 * frv-tdep.c (struct gdbarch_tdep): Add new field
7215 ``sigcontext_reg_addr''.
7216 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7217 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7218 (frv_sigramp_frame_sniffer): New functions.
7219 (frv_sigtramp_frame_unwind): New static global.
7220 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7221 sniffers.
7222 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7223 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7224
1ccda5e9
KB
72252004-03-15 Kevin Buettner <kevinb@redhat.com>
7226
7227 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7228 but not via a call to error(), when unable to read memory.
7229
b375a0a5
KB
72302004-03-15 Kevin Buettner <kevinb@redhat.com>
7231
7232 * frv-tdep.c (frv_call_dummy_words): Delete.
7233 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7234
4fdf6121
AC
72352004-03-15 Andrew Cagney <cagney@redhat.com>
7236
7237 * infrun.c (handle_step_into_function, step_over_function): Only
7238 update and use STEP_FRAME_ID when the system is using legacy
7239 frames. Update comments.
7240
34021503
MK
72412004-03-14 Mark Kettenis <kettenis@gnu.org>
7242
187e21d1
MK
7243 * amd64-linux-tdep.h: Remove file.
7244 * amd64-linux-tdep.c: Don't include "inferior.h" and
7245 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7246 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7247 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7248 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7249 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7250 macros.
7251 (user_to_gdb_regmap): Remove variable.
7252 (amd64_linux_gregset_reg_offset): New variable.
7253 (amd64_core_fns): Remove variable.
7254 (fetch_core_registers): Remove function.
7255 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7256 functions.
7257 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7258 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7259 * Makefile.in (amd64_linux_tdep_h): Remove.
7260 (amd64-linux-nat.o): Update dependencies.
7261 (amd64-linux-tdep.o): Update dependencies.
7262
99679982
MK
7263 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7264 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7265 functions.
7266 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7267
34021503
MK
7268 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7269 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7270
134d01f1
DJ
72712004-03-14 Daniel Jacobowitz <drow@mvista.com>
7272
7273 * dwarf2read.c (read_structure_type): Rename from
8718a420 7274 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
7275 Return immediately if die->type is set. Call read_type_die before
7276 dwarf2_add_member_fn.
7277 (process_structure_scope): New function.
7278 (read_enumeration_type, process_enumeration_scope): New functions,
7279 broken out from read_enumeration. Don't create the enumeration
7280 type if it has already been created.
7281 (read_enumeration): Removed.
7282 (process_die): Call read_structure_type, process_structure_scope,
7283 read_enumeration_type, and process_enumeration_scope. Just call
7284 new_symbol for base and subrange types. Add a comment about other
7285 type dies.
7286 (read_type_die): Call read_enumeration_type.
7287 (add_partial_structure, new_symbol): Update comments.
7288
65760afb
SC
72892004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7290
7291 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7292
10f59415
SC
72932004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7294
7295 * tui/tui-win.h (tui_get_cmd_list): Declare.
7296 * tui/tui-win.c (tui_command): New function.
7297 (tui_get_cmd_list): New function.
7298 (_initialize_tui_win): Moved initialization of tui command in
7299 tui_get_cmd_list.
7300
7301 * tui/tui-data.c (init_content_element): Setup new data members.
7302 (init_win_info): Likewise.
7303 (free_content_elements): Free it.
7304 * tui/tui-data.h (struct tui_data_element): Store the register
7305 content to print.
7306 (struct tui_data_info): Keep the current register group.
7307
7308 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7309
7310 * tui/tui-regs.h (tui_show_registers): Update prototype.
7311 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7312 (tui_resize_all): No need to calculate anything for register window.
7313 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7314 (tui_set_register_element, tui_set_general_regs_content): Remove.
7315 (tui_set_special_regs_content): Remove.
7316 (tui_set_general_and_special_regs_content): Remove.
7317 (tui_set_float_regs_content): Remove.
7318 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7319 (tui_set_regs_content): Remove.
7320 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7321 (tui_v_show_registers_command_support): Remove.
7322 (tui_show_registers): Use a reggroup to specify the registers to show.
7323 (tui_show_register_group): New function.
7324 (tui_display_registers_from): Compute the layout of register window
7325 and refresh with new API; be sure to delete old register windows.
7326 (tui_check_register_values): Update to use tui_get_register and
7327 tui_display_data.
7328 (tui_display_register): Just refresh the register window part.
7329 (tui_register_format): Format registers and save in tui_data_element.
7330 (tui_get_register): New to combine tui_reg_value_has_changed and
7331 tui_get_register_raw_value; fix to use the new gdb API.
7332 (tui_show_float_command): Renamed tui_reg_float_command.
7333 (tui_show_general_command): Renamed tui_reg_general_command.
7334 (tui_show_special_command): Renamed tui_reg_system_command.
7335 (_initialize_tui_regs): Remove unused commands.
7336
c3364ea4
MK
73372004-03-13 Mark Kettenis <kettenis@gnu.org>
7338
27d1e716
MK
7339 * NEWS (New native configurations): Mention OpenBSD/amd64.
7340
c3364ea4
MK
7341 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7342 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7343 Remove defines.
7344 * config/i386/nm-fbsd64.h: Likewise.
7345 * config/i386/nm-obsd.h: Likewise.
7346 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7347 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7348
b2d6d697
KB
73492004-03-12 Kevin Buettner <kevinb@redhat.com>
7350
7351 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
7352 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7353 New constants.
7354
76e43199
KB
7355 From Richard Sandiford <rsandifo@redhat.com>:
7356 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7357
34ce532e
KB
73582004-03-12 Kevin Buettner <kevinb@redhat.com>
7359
7360 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7361 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7362 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7363 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7364 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7365 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7366 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7367 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7368 definitions from frv-tdep.c to frv-tdep.h.
7369
c4d10515
KB
73702004-03-12 Kevin Buettner <kevinb@redhat.com>
7371
7372 Add shared library support for FR-V FDPIC ABI:
7373 * Makefile.in (solib-frv.o): Add dependencies.
7374 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7375 New functions.
7376 (frv_push_dummy_call): Add support for FDPIC ABI.
7377 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7378 for FDPIC ABI.
7379 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7380 (frv_fdpic_find_canonical_descriptor): Declare.
7381 * solib-frv.c: New file.
7382 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7383 * config/frv/tm-frv.h (solib.h): Include.
7384
ed1bd989
KB
73852004-03-12 Kevin Buettner <kevinb@redhat.com>
7386
7387 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7388 (frv-tdep.o): Update dependencies.
7389 * frv-tdep.h: New file.
7390 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7391 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7392 constants.
7393 (struct gdbarch_tdep): Add new member ``frv_abi''.
7394 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7395 functions.
7396 (new_variant): Set ``frv_abi'' field.
7397 (gdb_arch_init): Detect FDPIC executables.
7398
82b38f72
MK
73992004-03-12 Mark Kettenis <kettenis@gnu.org>
7400
7401 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7402 wrapper.
7403
db1ea9ba
AC
74042004-03-11 Andrew Cagney <cagney@redhat.com>
7405
7406 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7407
f8766ec1
KB
74082004-03-11 Kevin Buettner <kevinb@redhat.com>
7409
7410 * solist.h (master_so_list): New function.
7411 * solib.c (master_so_list): Likewise.
7412 * solib-svr4.c (enable_break): Iterate over so_list entries
7413 obtained from master list instead of entries obtained directly
7414 via svr4_current_sos().
7415
523f6a27
BE
74162004-03-10 Ben Elliston <bje@gnu.org>
7417
7418 * MAINTAINERS: Update my mail address.
7419
37814c18
KI
74202004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7421
7422 * remote-m32r-sdi.c: Support hardware watchpoint.
7423
8b9740d8
DJ
74242004-03-09 Daniel Jacobowitz <drow@mvista.com>
7425
7426 * user-regs.c: Update copyright years.
7427 (struct user_regs): Rename to gdb_user_regs.
7428 (append_user_reg, builtin_user_regs, user_regs_init)
7429 (user_reg_add, user_reg_map_name_to_regnum)
7430 (usernum_to_user_reg): Update.
7431
4bb7a0a7
DJ
74322004-03-09 Daniel Jacobowitz <drow@mvista.com>
7433
7434 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7435 (skip_children): New functions.
7436 (locate_pdi_sibling): Call skip_children.
7437
44e1a9eb
DJ
74382004-03-09 Daniel Jacobowitz <drow@mvista.com>
7439
7440 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7441 * gdbtypes.c (check_typedef): Update comments.
7442
f3dd6933
DJ
74432004-03-09 Daniel Jacobowitz <drow@mvista.com>
7444
7445 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7446 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7447 pointer. Update comment about comp_unit_head.
7448 (struct abbrev_info): Shorten two int flags.
7449 (dwarf_alloc_abbrev): Take a CU argument.
7450 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7451 each time through the loop. Update cleanup argument.
7452 (psymtab_to_symtab_1): Update cleanup call.
7453 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7454 abbrev_obstack.
7455 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7456 Just call obstack_free and clear the pointer.
7457
b40c7d58
DJ
74582004-03-09 Daniel Jacobowitz <drow@mvista.com>
7459
7460 * infrun.c (handle_inferior_event): Remove short-circuit code for
7461 events in a different thread.
7462
333dabeb
DJ
74632004-03-09 Daniel Jacobowitz <drow@mvista.com>
7464
7465 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7466 print the whole transfer.
7467 (initialize_targets): Update description of "set debug target".
7468
aa17d93e
DJ
74692004-03-09 Daniel Jacobowitz <drow@mvista.com>
7470
7471 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7472
0b71f08f
NW
74732004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7474
7475 * MAINTAINERS (write after approval): Add myself.
7476
3930f270
CV
74772004-03-08 Corinna Vinschen <vinschen@redhat.com>
7478
7479 * sh-tdep.c (sh_print_registers_info): Use for loop.
7480 Don't skip multiple registers when a float register is encountered.
7481
a2b4a96c
CV
74822004-03-08 Corinna Vinschen <vinschen@redhat.com>
7483
7484 Fix PR tdep/1291.
7485 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7486 to official SH documentation.
7487
f15a4bc0
AC
74882004-03-07 Andrew Cagney <cagney@redhat.com>
7489
7490 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7491 unused function.
7492
9498281f
DJ
74932004-03-07 Daniel Jacobowitz <drow@mvista.com>
7494
7495 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7496 (arm_get_next_pc): Handle BX and BLX.
7497
449e1137
AC
74982004-03-07 Andrew Cagney <cagney@redhat.com>
7499
eded0a31
AC
7500 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7501 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7502 HPPA_SP_REGNUM.
7503 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7504 (hppa_target_read_fp): Delete.
7505 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7506 register_virtual_size, max_register_raw_size,
7507 max_register_virtual_size, register_byte, register_size,
7508 target_read_fp, fp_regnum, and register_bytes. Set register_type
7509 instead of register_virtual_type.
7510 (hppa32_register_type, hppa64_register_type): Replace
7511 hppa32_register_virtual_type and hppa64_register_virtual_type.
7512 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7513 (HPPA_FP_REGNUM): Define.
7514
f5f907e2
AC
7515 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7516
69b4bbe4
AC
7517 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7518 (pa_do_registers_info): Delete.
7519 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 7520 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 7521 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 7522
78161e48
AC
7523 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7524 GDB_TARGET_IS_HPPA code.
7525 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 7526 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
7527 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7528 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
7529 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7530 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7531 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 7532 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
7533 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7534 (hppa_frameless_function_invocation, hppa64_store_return_value)
7535 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 7536 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 7537 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 7538 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
7539 (find_proc_framesize, deposit_21, restore_pc_queue)
7540 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 7541 (rp_saved, pc_in_linker_stub): Delete.
78161e48 7542
782eae8b
AC
7543 Unconditionally enable 64-bit frame and ABI code.
7544 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7545 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7546 push_dummy_frame, fix_call_dummy, push_arguments,
7547 call_dummy_location, extract_return_value, use_struct_convention,
7548 store_return_value, store_struct_return, saved_pc_after_call,
7549 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7550 frame_chain, frame_chain_valid, frameless_function_invocation,
7551 frame_saved_pc, and pop_frame.
78161e48 7552
449e1137
AC
7553 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7554 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7555 (hppa_gdbarch_init): Do not set PC_REGNUM.
7556
12507572
MK
75572004-03-06 Mark Kettenis <kettenis@gnu.org>
7558
7559 * config/alpha/tm-fbsd.h: Remove file.
7560 * config/alpha/fbsd.mt: Tweak comment.
7561 (TM_FILE): Set to tm-alpha.h.
7562
c107cc1b
AC
75632004-03-05 Andrew Cagney <cagney@redhat.com>
7564
7565 * infrun.c (step_over_function): When non-legacy code, and no
7566 step_frame_id, use the unwinder to get the caller's frame ID.
7567
f2e7c15d
MK
75682004-03-05 Mark Kettenis <kettenis@gnu.org>
7569
8b0c3633
MK
7570 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7571 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7572 bfd_arch_unknown. Adjust comment.
7573
f2e7c15d
MK
7574 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7575 * i386obsd-tdep.c: Correct spelling in comment.
7576 * i386nbsd-tdep.c: Correct spelling in comment.
7577 * sparc-tdep.c: Correct spelling in comments.
7578
1198ecbe
DC
75792004-03-05 David Carlton <carlton@kealia.com>
7580
7581 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7582 bug.
7583
9eb42ed1
MK
75842004-03-05 Mark Kettenis <kettenis@gnu.org>
7585
7586 * sparc-tdep.c: Fix typo in comment.
7587
52b5e991
JB
75882004-03-04 J. Brobecker <brobecker@gnat.com>
7589
7590 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7591
d8151005
DJ
75922004-03-04 Daniel Jacobowitz <drow@mvista.com>
7593
7594 * dwarf2read.c: Add comment describing memory lifetimes.
7595 (struct dwarf2_pinfo): Update comment.
7596 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7597 (read_enumeration, new_symbol): Don't use obsavestring.
7598
cbeae229
MK
75992004-03-04 Mark Kettenis <kettenis@gnu.org>
7600
722d18c2
MK
7601 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7602 instead of amd64_fill_fxsave.
7603 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7604 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7605
cbeae229
MK
7606 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7607 Reorganize code a bit.
7608
b4206d25
OF
76092004-03-04 Orjan Friberg <orjanf@axis.com>
7610
7611 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
7612 when the frame pointer is pushed. Don't set the frame pointer's
7613 address on the stack unless it's actually located there.
b4206d25
OF
7614 Set the SRP's address on the stack correctly when the PC is still in
7615 the prologue.
7616 (cris_return_value): New function.
7617 (cris_gdbarch_init): Clear deprecated store_return_value,
7618 extract_return_value.
7619
49b0b195
JB
76202004-03-02 Jim Blandy <jimb@redhat.com>
7621
7622 * stabsread.c (reg_value_complaint): The maximum register number
7623 is one less than the number of registers.
7624
e9ff708b
AC
76252004-03-02 Andrew Cagney <cagney@redhat.com>
7626
7627 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7628 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7629 trailing comma and redundant assignment of I386_ST0_REGNUM.
7630 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7631 32-bit segment registers.
7632
d4715e41
AC
76332004-03-01 Andrew Cagney <cagney@redhat.com>
7634
7635 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7636 use frame_relative_level and get_next_frame.
7637
3ce2bf18
AC
76382004-02-29 Andrew Cagney <cagney@redhat.com>
7639
7640 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7641 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7642 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7643 Delete macro.
7644
2da6aac3
DJ
76452004-02-29 Daniel Jacobowitz <drow@mvista.com>
7646
7647 * inflow.c (terminal_inferior): Don't give up the terminal if we
7648 previously couldn't get the inferior's terminal state.
7649
6ba34a8d
DJ
76502004-02-29 Daniel Jacobowitz <drow@mvista.com>
7651
7652 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7653 PC_REGNUM.
7654
faae5abe
AC
76552004-02-28 Andrew Cagney <cagney@redhat.com>
7656
7657 * NEWS: Refer to GDB 6.1.
7658 * README: Refer to GDB 6.1.
7659 * PROBLEMS: Refer to GDB 6.1.
7660
2227a3c5
DJ
76612004-02-28 Daniel Jacobowitz <drow@mvista.com>
7662
7663 * thread-db.c (disable_thread_signals): Remove unused function.
7664
80571bff
MK
76652004-02-28 Mark Kettenis <kettenis@gnu.org>
7666
041bd74b
MK
7667 * amd64-nat.c: Include "gdb_string.h".
7668 (amd64_collect_native_gregset): Zero-extend the 32-bit
7669 general-purpose registers and %eip.
7670
3c017e40
MK
7671 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7672 * amd64-tdep.c (amd64_collect_fxsave): New function.
7673 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7674
80571bff
MK
7675 * i387-tdep.h: Update copyright year.
7676 (i387_collect_fxsave): New prototype.
7677 * i387-tdep.c: Update copyright year.
7678 (i387_collect_fxsave): New function containing most of the code
7679 from i387_fill_fxsave.
7680 (i387_fill_fxsave): Call i387_collect_fxsave.
7681
50d71875
AC
76822004-02-28 Andrew Cagney <cagney@redhat.com>
7683
7684 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7685 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7686
4a28816e
MK
76872004-02-28 Mark Kettenis <kettenis@gnu.org>
7688
7689 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7690
dbda9972
AC
76912004-02-28 Andrew Cagney <cagney@redhat.com>
7692
7693 * utils.c: Use "", instead of <>, to include readline.
7694 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7695 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7696 * source.c, solib.c, exec.c, event-top.c: Ditto.
7697 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7698 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7699 * Makefile.in: Update all dependencies.
7700 (readline_tilde_h, readline_history_h): Define.
7701 (readline_headers): Delete.
7702
83277a99
MK
77032004-02-28 Mark Kettenis <kettenis@gnu.org>
7704
91ae4303
MK
7705 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7706 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7707 "config/i386/tm-lx64.h".
7708
83277a99
MK
7709 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7710 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7711 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7712
6e1d7d6c
AC
77132004-02-28 Andrew Cagney <cagney@redhat.com>
7714
ecc9ac84
AC
7715 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7716
6e1d7d6c
AC
7717 * breakpoint.c (_initialize_breakpoint): Use
7718 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7719 Add help to show command.
7720
9671aeef
MK
77212004-02-28 Mark Kettenis <kettenis@gnu.org>
7722
7fa2737c
MK
7723 * i386-nat.c: Reformat to be closer to coding standards.
7724 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7725 `retval'. Make variables `align' and `size' local to while-loop.
7726 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7727 (_initialize_i386_nat): New prototype.
7728
9671aeef
MK
7729 * tui/tui.c: Include <readline/readline.h> instead of
7730 "readline/readline.h". Include it after <term.h> and
7731 "gdb_curses.h".
7732
fca7aa43
AC
77332004-02-27 Andrew Cagney <cagney@redhat.com>
7734
412275d5
AC
7735 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7736 the new frame unwind code.
7737 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7738 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7739 PCOQ_HEAD_REGNUM.
7740
fca7aa43
AC
7741 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7742 "return_value" and "push_dummy_call".
7743 (hppa32_use_struct_convention): Delete unused function.
7744 (hppa32_store_return_value): Delete unused function.
7745 (hppa32_extract_return_value): Delete unused function.
7746 (hppa32_stack_align): Delete function.
7747
e6a8a7d2
EZ
77482004-02-27 Eli Zaretskii <eliz@elta.co.il>
7749
7750 * coffread.c (enter_linenos): Don't let rawptr reference memory
7751 outside linetab[]'s limits.
7752
1797a8f6
AC
77532004-02-27 Andrew Cagney <cagney@redhat.com>
7754
7755 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7756 inferior stack space - the stack needs to grow upwards.
7757 (hppa32_frame_align): New function.
7758 (hppa64_frame_align): Replace hppa_frame_align.
7759 (hppa_gdbarch_init): Update.
7760
2e4b5889
OF
77612004-02-26 Orjan Friberg <orjanf@axis.com>
7762
7763 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7764 (dwarf2-frame.h): Include.
7765 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7766 Remove static variables related to ABI setting.
7767 (struct gdbarch_tdep): Remove cris_abi member.
7768 (struct frame_extra_info): Remove.
7769 (cris_unwind_cache, stack_item): New structs.
7770 (cris_frame_unwind, cris_frame_base): New variables.
7771 (push_stack_item, pop_stack_item)
7772 (cris_frame_unwind_cache, cris_frame_this_id)
7773 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7774 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7775 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7776 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7777 (cris_reg_struct_has_addr): New functions.
7778 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 7779 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
7780 (cris_store_struct_return, cris_frameless_function_invocation)
7781 (cris_pop_frame, cris_skip_prologue_main)
7782 (cris_abi_original_store_return_value)
7783 (cris_abi_v2_store_return_value)
7784 (cris_abi_original_extract_return_value)
7785 (cris_abi_v2_extract_return_value)
7786 (cris_abi_original_reg_struct_has_addr)
7787 (cris_abi_v2_reg_struct_has_addr)
7788 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7789 (cris_push_return_address, cris_abi_update): Remove.
7790 (_initialize_cris_tdep): Remove ABI command.
7791 (cris_dump_tdep): Ditto.
8718a420 7792 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
7793 Set store_return_value, extract_return_value, push_dummy_code,
7794 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7795 frame_unwind_append_sniffer, frame_base_set_default.
7796 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7797 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7798 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 7799 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
7800 init_extra_frame_info, frameless_function_invocation, frame_chain,
7801 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7802 dummy_write_sp.
8718a420 7803
6b9acc27
JJ
78042004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7805
7806 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7807 * valprint.c (print_hex_chars): Change from static to external.
7808 (print_char_chars): New function.
7809 * printcmd.c (print_scalar_formatted): For integer and enum types
7810 that are longer than LONGEST, perform processing via appropriate
7811 print_*_chars routines.
7812
a431654a
AC
78132004-02-26 Andrew Cagney <cagney@redhat.com>
7814
7815 * Makefile.in: Update dependencies.
7816 Changes from Ulrich Weigand,
7817 * s390-tdep.c: Include "dwarf2-frame.h".
7818 (s390_dwarf2_frame_init_reg): New function.
7819 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7820 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7821
fa8d40ab
JJ
78222004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7823
7824 * breakpoint.c (pending_break_support): New setting variable.
7825 (break_command_1): Account for pending_break_support setting
7826 when creating pending breakpoints.
7827 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7828 (_initialize_breakpoint): Add "set breakpoint pending" and
7829 "show breakpoint pending" commands.
7830
0dcd613f
AC
78312004-02-26 Andrew Cagney <cagney@redhat.com>
7832
7833 Fix PR i18n/1570.
7834 * charset.c (backslashable, backslashed, represented): Remove 'e'
7835 from list of escaped characters, not part of ISO-C.
7836
479272a3
JB
78372004-02-25 J. Brobecker <brobecker@gnat.com>
7838
7839 From Peter Schauer <schauer@pdf.de>:
7840 * tui/tui.c: Move system header includes after local includes.
7841 Fixes a build failure on solaris systems.
7842
7613d933
JB
78432004-02-25 J. Brobecker <brobecker@gnat.com>
7844
7845 * configure.in: Refine the previous change.
7846 * configure: Regenerate.
7847
9c1488cb
MK
78482004-02-25 Mark Kettenis <kettenis@gnu.org>
7849
7850 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7851 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7852 "amd64-tdep.h" instead of "x86-64-tdep.h".
7853 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7854 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7855 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7856 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7857 and "x86-64-tdep.c".
7858 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7859 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7860 and "x86-64-tdep.c".
7861 * amd64bsd-nat.c: Update copyright year.
7862 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7863 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7864 "x86-64-tdep.h".
7865 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7866 "x86-64-tdep.h".
7867 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7868 "x86-64-tdep.h".
7869 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7870 "x86-64-tdep.h".
7871 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7872 "x86-64-tdep.h".
7873 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7874 "x86-64-tdep.h".
8718a420 7875 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
7876 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
7877 * Makefile.in (amd64_linux_tdep_h): Renamed from
7878 x86_64_linux_tdep_h.
7879 (amd64_tdep_h): Renamed from x86_64_tdep_h.
7880 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
7881 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
7882 (amd64obsd-tdep.o): Update dependencies.
7883 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
7884 dependencies.
7885 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
7886 dependencies.
7887 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
7888 amd64-linux-nat.c amd64-linux-tdep.c.
7889 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
7890 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
7891 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
7892 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
7893 amd64-tdep.o and amd64-linux-tdep.o.
7894 (TM_FILE): Set to tm-linux64.h.
7895 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
7896 (NAT_FILE): Set to nm-linux64.h.
7897 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
7898 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7899 amd64-tdep.o.
7900 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7901 amd64-tdep.o.
7902 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7903 amd64-tdep.o.
7904
4b8dad4a
RM
79052004-02-25 Roland McGrath <roland@redhat.com>
7906
7907 * remote.c (remote_protocol_qPart_auxv): New variable.
7908 (init_all_packet_configs): Initialize it.
7909 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
7910 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
7911 (show_remote_cmd): Call it.
7912 (_initialize_remote): Initialize commands.
7913 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
7914 service TARGET_OBJECT_AUXV requests.
7915
66745969
JB
79162004-02-25 J. Brobecker <brobecker@gnat.com>
7917
7918 * configure.in: Make sure that the wborder function is available.
7919 Otherwise, search for it in the cur_colr library.
7920 * configure: Regenerate.
7921
79508e1e
AC
79222004-02-25 Andrew Cagney <cagney@redhat.com>
7923
7924 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
7925
571ee600
MK
79262004-02-25 Mark Kettenis <kettenis@gnu.org>
7927
7928 * config/i386/tm-x86-64linux.h: Tweak comments.
7929
2b1b322f 79302004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
7931
7932 * MAINTAINERS: Add self to write-after-approval list.
7933
4d2acc65
AC
79342004-02-25 Andrew Cagney <cagney@redhat.com>
7935
4b8dad4a 7936 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
7937 * cli/cli-script.c (execute_control_command): Unconditionally
7938 install a cleanup. Default "ret" to "invalid_control". Use
7939 "break" instead of "return" to escape from the switch.
7940
4cfcaf21
JB
79412004-02-24 J. Brobecker <brobecker@gnat.com>
7942
7943 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
7944 with the lines macro defined in term.h on AiX.
7945 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
7946 a collision with the label_width macro defined in term.h on AiX.
7947
54a5c8d8
KB
79482004-02-23 David Mosberger <davidm@hpl.hp.com>
7949
7950 Committed by Kevin Buettner <kevinb@redhat.com>.
7951
7952 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
7953 * ia64-tdep.c (ia64_write_pc): Make it a global function.
7954 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
7955 instead of ia64_write_pc().
7956 * ia64-linux-tdep.c (regcache.h): Include.
7957 (ia64_linux_write_pc): New function.
4b8dad4a 7958
8a1dac83
RM
79592004-02-23 Roland McGrath <roland@redhat.com>
7960
7961 * auxv.c (info_auxv_command): Fix typos in error messages.
7962
90f90721
MK
79632004-02-23 Mark Kettenis <kettenis@gnu.org>
7964
8a1dac83 7965 * x86-64-tdep.h: Tweak comment.
90f90721
MK
7966 (enum amd64_regnum): New.
7967 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
7968 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
7969 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
7970 (X86_64_XMM1_REGNUM): Removed.
7971 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
7972 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
7973 prototypes for renamed functions.
7974 * x86-64-tdep.c: Fix typo.
7975 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
7976 register numbers.
7977 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
7978 Use constants from `enum amd64_regnum' for register numbers.
7979 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
7980 (amd64_analyze_prologue, amd64_frame_cache,
7981 amd64_sigtramp_frame_cache): Use constants from `enum
7982 amd64_regnum' for register numbers.
7983 (amd64_supply_fpregset): Adjust for renamed functions.
7984 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
7985 `enum amd64_regnum' for register numbers.
7986 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
7987 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
7988 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
7989 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
7990 (amd64_linux_fill_gregset): Adjust for renamed macros.
7991 (fetch_core_registers): Adjust for renamed functions.
7992 (amd64_linux_init_abi): Adjust for renamed functions.
7993 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
7994 renamed functions.
7995 * amd64-nat.c: Adjust for renamed macros.
7996 * amd64bsd-nat.c (fetch_inferior_registers)
7997 (store_inferior_registers): Use constants from `enum amd64_regnum'
7998 for register numbers. Adjust for renamed variables.
7999 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8000 renamed variables.
8001 (_initialize_amd64fbsd_nat): Use constants from `enum
8002 amd64_regnum' for register numbers.
8003 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8004 `enum amd64_regnum' for register numbers.
8005 (amd64fbsd_init_abi): Adjust for renamed functions.
8006 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8007 `enum amd64_regnum' for register numbers.
8008 (amd64nbsd_init_abi): Adjust for renamed functions.
8009 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8010 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8011 `enum amd64_regnum' for register numbers.
8012 (amd64obsd_init_abi): Adjust for renamed functions.
8013 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8014
d5479188
JJ
80152004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8016
8017 * breakpoint.c (print_one_breakpoint): Do not output spaces
8018 after printing <PENDING> for a pending breakpoint.
8019
81cb7cc9
JJ
80202004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8021
8022 * printcmd.c (print_scalar_formatted): Initialize val_long
8023 to remove compiler warning message.
8024
cbdeadca
JJ
80252004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8026
8027 * defs.h (nquery, yquery): New prototypes.
8028 * breakpoint.c (break_command_1): Use new nquery interface.
8029 * utils.c (defaulted_query, nquery, yquery): New functions.
8030
da6bab63
AC
80312004-02-23 Andrew Cagney <cagney@redhat.com>
8032
2f690297
AC
8033 * hppa-tdep.c (hppa_frame_align): New function.
8034 (hppa32_push_dummy_call): New function.
8035 (hppa64_push_dummy_call): New function.
8036 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8037 disabled.
8a1dac83 8038
da6bab63
AC
8039 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8040 FIX_CALL_DUMMY when push_dummy_call is available.
8041 (call_function_by_hand, push_dummy_code): Ditto.
8042
abf9b42d
AC
80432004-02-22 Andrew Cagney <cagney@redhat.com>
8044
8045 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8046 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8047 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8048 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8049 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8050 call_dummy_location to ON_STACK.
8051
10fc94a4
MK
80522004-02-22 Mark Kettenis <kettenis@gnu.org>
8053
51433e4b
MK
8054 * x86-64-linux-tdep.c: Tweak comment.
8055 (amd64_linux_supply_gregset): Renamed from
8056 x86_64_linux_supply_gresget.
8057 (amd64_linux_fill_gregset): Renamed from
8058 x86_64_linux_fill_gregset.
8059 (fetch_core_registers): Adjust for renamed functions.
8060 (amd64_core_fns): Renamed from x86_64_core_fns.
8061 (amd64_linux_sigtramp_start): Renamed from
8062 x86_64_linux_sigtramp_start.
8063 (amd64_linux_pc_in_sigtramp): Renamed from
8064 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8065 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8066 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8067 (amd64_linux_sigcontext_addr): Renamed from
8068 x86_64_linux_sigcontext_addr.
8069 (amd64_linux_sc_reg_offset): Renamed from
8070 x86_64_linux_sc_reg_offset.
8071 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8072 Adjust for renamed functions and variables.
8073 (_initialize_amd64_linux_tdep): Renamed from
8074 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8075 variables.
8076 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8077 Adjust for renamed functions.
8078
430eaf2e
MK
8079 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8080 from x86_64_linux_gregset64_reg_offset.
8081 (amd64_linux_gregset32_reg_offset): Rename from
8082 x86_64_linux_gregset64_reg_offset.
8083 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8084 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8085 (amd64_linux_dr_set_control): Renamed from
8086 x86_64_linux_dr_set_control. Adjust for renamed functions.
8087 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8088 Adjust for renamed functions.
8089 (amd64_linux_dr_reset_addr): Renamed from
8090 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8091 (amd64_linux_dr_get_status): Renamed from
8092 x86_64_linux_dr_get_status. Adjust for renamed functions.
8093 (_initialize_amd64_linux_nat): Renamed from
8094 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8095 functions.
8096 * config/i386/nm-x86-64linux.h: Update copyright year.
8097 Adjust for renamed functions.
8098
10fc94a4
MK
8099 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8100 amd64fbsd_sigtramp_start.
8101 (amd64fbsd_sigtramp_end_addr): Renamed from
8102 amd64fbsd_sigtramp_end.
8103 (amd64fbsd_init_abi): Adjust for renamed variables.
8104 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8105 variables.
8106 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8107 amd64fbsd_sigtramp_start.
8108 (amd64fbsd_sigtramp_end_addr): Renamed from
8109 amd64fbsd_sigtramp_end.
8110
343af405
AC
81112004-02-22 Andrew Cagney <cagney@redhat.com>
8112
537987fc
AC
8113 * hppa-tdep.c (hppa32_return_value): New function.
8114 (hppa64_return_value): New function.
8115 (hppa_gdbarch_init): Set return_value; keep disabled.
8116
fad850b2
AC
8117 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8118 struct-return and inferior function call methods.
8119
26d08f08
AC
8120 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8121 "frame-base.h".
8122 (struct hppa_frame_cache): Define.
8123 (hppa_frame_cache, hppa_frame_this_id): New functions.
8124 (hppa_frame_prev_register): New function.
8125 (hppa_frame_unwind, hppa_frame_base): New variables.
8126 (hppa_frame_unwind_sniffer): New function.
8127 (hppa_frame_base_address, hppa_unwind_pc): New function.
8128 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8129 sniffer, and frame base sniffer; keep disabled.
8130 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8131 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8132
e7d7bd65
AC
8133 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8134 to predicates for "seriously old code".
8135
e963316f
AC
8136 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8137 runtime if(0).
8138
56132691
AC
8139 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8140 unsigned.
8141 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 8142
343af405
AC
8143 * config/pa/tm-hppa.h: Update copyright.
8144 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8145 (deprecated_init_frame_pc_default): Delete declaration.
8146 (hppa_frame_init_saved_regs): Delete declaration.
8147 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8148 * hppa-tdep.c: Include "arch-utils.h".
8149 (hppa_gdbarch_init): Set deprecated init_frame_pc
8150 and deprecated frame_init_saved_regs.
8151 (hppa_frame_init_saved_regs): Make static.
8152
f5859b4d
MK
81532004-02-22 Mark Kettenis <kettenis@gnu.org>
8154
86f6f8e7 8155 Remove old 386BSD support.
cf7c5c23 8156 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
8157 * configure.host: Remove i[34567]86-*-bsd*.
8158 * configure.tgt: Remove i[34567]86-*-bsd*.
8159 * i386b-nat.c: Removed.
8160 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
8161 (i386b-nat.o): Remove dependencies.
8162
86f6f8e7
MK
8163 * config/i386/i386bsd.mh: Removed.
8164 * config/i386/i386bsd.mt: Removed.
8165 * config/i386/nm-i386bsd.h: Removed.
8166 * config/i386/tm-i386bsd.h: Removed.
8167 * config/i386/xm-i386bsd.h: Removed.
8168
971218cd
MK
8169 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8170
7e654c37
MK
8171 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8172 (amd64fbsd_init_abi): Set link map offsets.
8173 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8174 (amd64nbsd_init_abi): Set link map offsets.
8175 * amd64obsd-tdep.c: Include "solib-svr4.h".
8176 (amd64obsd_init_abi): Set link map offsets.
8177 * i386fbsd-tdep.c: Include "solib-svr4.h".
8178 (i386fbsd_init_abi): Set link map offsets.
8179 * i386nbsd-tdep.c: Include "solib-svr4.h".
8180 (i386nbsdelf_init_abi): Set link map offsets.
8181 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8182 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8183 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8184 solib-legacy.o and core-aout.o. Reformat.
8185 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8186 solib-svr4.o, solib-legacy.o. Reformat.
8187 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8188 * config/i386/nbsdelf.mh: Reformat.
8189 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8190 solib-svr4.o, solib-legacy.o and corelow.o.
8191 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8192 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8193 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8194 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8195 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8196 (TM_FILE): Set to tm-fbsd.h.
8197 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8198 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8199 solib-svr4.o.
8200 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8201 solib-svr4.o.
8202 (TM_FILE): Set to nm-nbsd.h.
8203 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8204 Simplify shared library support. Don't include "elf/common.h".
8205 (SVR4_SHARED_LIBS): Don't define.
8206 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8207 "solib.h".
8208 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8209 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8210 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8211 Don't include "i386/tm-i386.h". Include "solib.h".
8212 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8213 Don't include "i386/tm-i386.h".
8214 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8215 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8216 Include "i386/xm-i386.h".
8217 (HOST_LONG_DOUBLE_FORMAT): Remove.
8218
5d93ae8c
MK
8219 Fix OpenBSD/i386 sigtramp recognition.
8220 * i386-tdep.h: Update copyright year.
8221 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8222 (i386bsd_sigtramp_end): New prototypes.
8223 (i386fbsd_sigtramp_start_addr): Renamed from
8224 i386fbsd_sigtramp_start.
8225 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8226 (i386obsd_sigtramp_start_addr): Renamed from
8227 i386obsd_sigtramp_start.
8228 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8229 * i386bsd-tdep.c: Update copyright year.
8230 (i386bsd_pc_in_sigtramp): Make public.
8231 * i386fbsd-nat.c: Update copyright year.
8232 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8233 * i386fbsd-tdep.c: Update copyright year.
8234 (i386fbsd_sigtramp_start_addr): Renamed from
8235 i386fbsd_sigtramp_start.
8236 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8237 (i386fbsdaout_init_abi): Adjust for renamed variables.
8238 * i386obsd-nat.c: Update copyright year.
8239 (_initialize_i386obsd_nat): Adjust for renamed variables.
8240 * i386obsd-tdep.c: Include "target.h".
8241 (i386obsd_page_size): New variable.
8242 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8243 (i386obsd_sigtramp_end): New functions.
8244 (i386obsd_sigtramp_start_addr): Renamed from
8245 i386obsd_sigtramp_start.
8246 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8247 (i386obsd_init_abi): Adjust for renamed variables. Set
8248 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8249 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8250
84d04465
MK
8251 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8252 trampoline change in OpenBSD kernel.
8253
b053aceb
MK
8254 * amd64-nat.c: Update copyright year.
8255 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8256 architecture from REGCACHE.
8257
f5859b4d
MK
8258 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8259 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8260
e4bbbda8
MK
82612004-02-21 Mark Kettenis <kettenis@gnu.org>
8262
ba361932
MK
8263 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8264 i[34567]86-*-openbsd3.[0-3].
8265 * config/i386/obsdaout.mh: New file.
8266
d3e48264
MK
8267 * config/i386/obsd.mh (MH_FLAGS): Remove.
8268
60a6eeb6
MK
8269 Fix PR build/1549.
8270 * i386obsd-tdep.c: Update copyright years. Include
8271 "solib-svr4.h".
8272 (i386obsd_init_abi): Don't set regset_from_core_section here.
8273 (i386obsd_aout_init_abi): New function. Set
8274 regset_from_core_section here.
8275 (i386obsd_elf_init_abi): New function.
8276 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8277 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8278 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8279 (TM_FILE): Set to tm-nbsd.h.
8280
8281 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8282 solib-sunos.o.
8283
e4bbbda8
MK
8284 * solib-svr4.h: Update copyright year.
8285 (svr4_ilp32_fetch_link_map_offsets)
8286 (svr4_lp64_fetch_link_map_offsets): New prototype.
8287 * solib-svr4.c: Update copyright year.
8288 (svr4_ilp32_fetch_link_map_offsets)
8289 (svr4_lp64_fetch_link_map_offsets): New function.
8290
f6fe98ef
DJ
82912004-02-20 Daniel Jacobowitz <drow@mvista.com>
8292
8293 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8294 to the partial symbol table.
8295
589ca796
JB
82962004-02-20 J. brobecker <brobecker@gnat.com>
8297
8298 * PROBLEMS: Add description of problem documented under gdb/1560.
8299
2031c21a
MK
83002004-02-20 Mark Kettenis <kettenis@gnu.org>
8301
30b344b1
MK
8302 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8303 comments.
8304 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8305 functions.
8306 (amd64obsd_init_abi): Reorder initializations. Use
8307 amd64obsd_r_reg_offset to initialize the general-purpose register
8308 set details. Set regset_from_core_section.
8309 (_initialize_amd64obsd_tdep): Rename from
8310 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8311 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8312 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8313
2031c21a
MK
8314 * NEWS (New native configurations): Mention OpenBSD/alpha.
8315 * configure.tgt: Add alpha*-*-openbsd*.
8316 * configure.host: Add alpha*-*-openbsd*.
8317 * alphanbsd-tdep.c: Update copyright year.
8318 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8319
42471775
AC
83202004-02-20 Andrew Cagney <cagney@redhat.com>
8321
8322 Fix PR tdep/1372.
8323 * configure.tgt: Delete target "none-*-*".
8324 * configure.host: Delete host "none-*-*".
8325 * config/none/none.mh: Delete file.
8326 * config/none/none.mt: Delete file.
8327 * config/none/xm-none.h: Delete file.
8328 * config/none/tm-none.h: Delete file.
8329 * config/none/nm-none.h: Delete file.
8330
960ccd7d
FF
83312004-02-19 Fred Fish <fnf@redhat.com>
8332
8333 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8334 cache->uses_fp prior to setting it.
8335
5f883edd
FF
83362004-02-19 Fred Fish <fnf@redhat.com>
8337
8338 Fix for PR breakpoint/1558.
8339 * sh-tdep.c (IS_JSR): New macro.
8340 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8341
f98c22d5
JB
83422004-02-19 Jim Blandy <jimb@redhat.com>
8343
8344 * findvar.c (value_from_register): Doc fix.
8345
95051d27
JJ
83462004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8347
8348 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8349 type being greater than sizeof of host's LONGEST. Always use
8350 unpack_long() unless format 'f' chosen.
8351
ccefbec3
EZ
83522004-02-19 Joel Brobecker <brobecker@gnat.com>
8353
8354 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 8355
ccefbec3
EZ
8356 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8357 contains a symbol wich is the best, non-exact match for the given
8358 pc. Update comments.
8359
83602004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8361
2ede629f
EZ
8362 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8363 macro, which was part of the now removed Mach 3 port.
8364 * utils.c (request_quit): Ditto.
8365
567ee972
MK
83662004-02-18 Mark Kettenis <kettenis@gnu.org>
8367
8368 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8369 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8370
50cca7bb
MK
83712004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8372
8373 Committed by Mark Kettenis <kettenis@gnu.org>.
8374
8375 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8376 Define.
8377
226361c4
AC
83782004-02-18 Andrew Cagney <cagney@redhat.com>
8379
8380 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8381 CONFIG_INSTALL and CONFIG_UNINSTALL.
8382 * configure: Re-generate.
8383 * interps.h (INTERP_TUI): Define.
8384 * Makefile.in: Update dependencies.
8385 (TUI): New macro.
8386 (tui-main.o): Specify dependencies.
8387 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8388 * tui/tui-main.c: New file.
8389
49cfa46f
MK
83902004-02-18 Mark Kettenis <kettenis@gnu.org>
8391
e2879ccb
MK
8392 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8393 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8394 dependencies.
8395 * configure.host: Add x86_64-*-openbsd*.
8396 * configure.tgt: Add x86_64-*-openbsd*.
8397 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8398
c43f4bec
MK
8399 * tui/tui.c: Don't include <malloc.h>.
8400
09ae75b6
MK
8401 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8402 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8403 amd64nbsd-tdep.c.
8404
49cfa46f 8405 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 8406 static. Remove extraneous whitespace.
49cfa46f
MK
8407 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8408 static.
8409
05957fdb
JB
84102004-02-17 Jim Blandy <jimb@redhat.com>
8411
8412 * findvar.c (value_from_register): Doc fix.
8413
d0f54f9d
JB
84142004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8415
8416 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 8417
8a1dac83 8418 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
8419 CORE_ADDR as type for selectors. Correct types for GNU run time
8420 message lookup function to use double indirection.
8421 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8422 * objc-lang.h (lookup_child_selector): Adapt prototype.
8423
9cbd5950
JB
8424 * s390-nat.c (SUBOFF): New macro.
8425 (supply_gregset, fill_gregset): Use it to handle debugging
8426 of 32-bit exectuables running under a 64-bit kernel.
8427 * s390-tdep.c: Include "solib-svr4.h".
8428 (s390_svr4_fetch_link_map_offset): New function.
8429 (s390x_svr_fetch_link_map_offset): Likewise.
8430 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8431 * Makefile.in (s390-tdep.o): Update dependencies.
8432
a8c99f38
JB
8433 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8434 "frame-unwind.h".
8435 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8436 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8437 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8438 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8439 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8440 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 8441 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
8442 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8443 (struct frame_extra_info): Remove.
8444 (s390_memset_extra_info): Remove.
f73b1eff
JB
8445 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8446 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8447 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
8448 (is_rse): Renamed to ...
8449 (is_rsy): ... this. Support long displacements.
8450 (is_rxe): Renamed to ...
8451 (is_rxy): ... this. Support long displacements.
8452 (compute_x_addr): Support long displacements.
8453 (struct s390_prologue_data): New data type.
8454 (s390_on_stack): Change API to use struct s390_prologue_data.
8455 (s390_store): Reimplement.
8456 (s390_load): New function.
8457 (s390_get_signal_frame_info): Remove.
8458 (s390_get_frame_info): Remove, replace by ...
8459 (s390_analyze_prolog): ... this new function.
8460 (s390_check_function_end): Remove.
8461 (s390_function_start): Remove.
8462 (s390_frameless_function_invokation): Remove.
8463 (s390_is_sigreturn): Remove.
8464 (s390_init_frame_pc_first): Remove.
8465 (s390_init_frame_extra_info): Remove.
8466 (s390_frame_init_saved_regs): Remove.
8467 (s390_frame_saved_pc_nofix): Remove.
8468 (s390_frame_saved_pc): Remove.
8469 (s390_frame_chain): Remove.
8470 (s390_fp_regnum, s390_read_fp): Remove.
8471 (s390_pop_frame_regular, s390_pop_frame): Remove.
8472 (s390_saved_pc_after_call): Remove.
8473 (s390_skip_prologue): Reimplement.
8474 (s390_in_function_epilogue_p): Support long displacements.
8475 (struct s390_unwind_cache): New data structure.
8476 (s390_frame_unwind_cache): New function.
8477 (s390_prologue_frame_unwind_cache): Likewise.
8478 (s390_backchain_frame_unwind_cache): Likewise.
8479 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8480 (s390_frame_unwind): Define.
8481 (s390_frame_sniffer): New function.
8482 (struct s390_pltstub_unwind_cache): New data structure.
8483 (s390_pltstub_frame_unwind_cache): New function.
8484 (s390_pltstub_frame_this_id): Likewise.
8485 (s390_pltstub_frame_prev_register): Likewise.
8486 (s390_pltstub_frame_unwind): Define.
8487 (s390_pltstub_frame_sniffer): New function.
8488 (struct s390_sigtramp_unwind_cache): New data structure.
8489 (s390_sigtramp_frame_unwind_cache): New function.
8490 (s390_sigtramp_frame_this_id): Likewise.
8491 (s390_sigtramp_frame_prev_register): Likewise.
8492 (s390_sigtramp_frame_unwind): Define.
8493 (s390_sigtramp_frame_sniffer): New function.
8494 (s390_frame_base_address, s390_local_base_address): New functions.
8495 (s390_frame_base): Define.
8496 (s390_unwind_pc, s390_unwind_sp): New function.
8497 (s390_push_dummy_call): Use new frame base location.
8498 (s390_unwind_dummy_id): Likewise.
8499 (s390_gdbarch_init): Remove calls to:
8500 set_gdbarch_frameless_function_invocation,
8501 set_gdbarch_deprecated_init_frame_pc,
8502 set_gdbarch_deprecated_frame_chain,
8503 set_gdbarch_deprecated_frame_init_saved_regs,
8504 set_gdbarch_deprecated_pop_frame,
8505 set_gdbarch_deprecated_init_extra_frame_info,
8506 set_gdbarch_deprecated_init_frame_pc_first,
8507 set_gdbarch_deprecated_target_read_fp,
8508 set_gdbarch_deprecated_frame_saved_pc,
8509 set_gdbarch_deprecated_saved_pc_after_call,
8510 set_gdbarch_deprecated_fp_regnum.
8511 Add calls to:
8512 set_gdbarch_in_solib_call_trampoline,
8513 frame_unwind_append_sniffer,
8514 frame_base_set_default,
8515 set_gdbarch_unwind_pc,
8516 set_gdbarch_unwind_sp.
8517 * Makefile.in (s390-tdep.o): Update dependencies.
8518
b0cf273e
JB
8519 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8520 (S390_STACK_FRAME_OVERHEAD): Remove.
8521 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8522 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8523 (s390_promote_integer_argument): Remove.
8524 (s390_cannot_extract_struct_value_address): Remove.
8525 (s390_use_struct_convention, s390_store_struct_return): Remove.
8526 (s390_extract_return_value, s390_store_return_value): Remove.
8527 (s390_return_value_convention, s390_return_value): New functions.
8528 (is_float_singleton): Handle typedefs.
8a1dac83 8529 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
8530 Remove, replace by ...
8531 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8532 s390_function_arg_integer): ... these new functions.
8533 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8534 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8535 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8536 Fill in tdep->abi.
8537 Remove calls to:
8538 set_gdbarch_deprecated_store_struct_return,
8539 set_gdbarch_deprecated_extract_return_value,
8540 set_gdbarch_deprecated_store_return_value,
8541 set_gdbarch_use_struct_convention,
8542 set_gdbarch_extract_struct_value_address,
8543 set_gdbarch_deprecated_pc_in_call_dummy,
8544 set_gdbarch_deprecated_push_arguments,
8545 set_gdbarch_deprecated_save_dummy_frame_tos,
8546 set_gdbarch_deprecated_push_return_address,
8547 set_gdbarch_deprecated_sizeof_call_dummy_words,
8548 set_gdbarch_deprecated_call_dummy_words,
8549 set_gdbarch_deprecated_dummy_write_sp.
8550 Add calls to:
8551 set_gdbarch_push_dummy_call,
8552 set_gdbarch_unwind_dummy_id,
8553 set_gdbarch_return_value.
8a1dac83 8554
e1457d83
JB
8555 * config/s390/nm-linux.h: Update comments.
8556 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8557 (STOPPED_BY_WATCHPOINT): Redefine.
8558 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8559 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8560 (s390_stopped_by_watchpoint): Likewise.
8561 (watch_area_cnt): Remove.
8562 * s390-nat.c: Update comments.
8563 (watch_area): Remove typedef.
8564 Global replace watch_area by struct watch_area.
8565 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 8566 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
8567 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8568 (s390_fix_watch_points): Remove pid argument,
8569 use s390_inferior_tid. Recompute area spanned by watchpoints.
8570 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8571 argument. Reimplement.
8572
d0f54f9d
JB
8573 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8574 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8575 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 8576 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
8577 core-regset.o.
8578 * config/s390/s390x.mt: Remove.
8579 * config/s390/tm-s390.h: Remove.
8580 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8581 (TARGET_ELF64): Remove.
8582 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8583 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8584 s390*-*-* case; always set gdb_target to s390.
8585 * regformats/reg-s390.dat: Remove control registers.
8586 * regformats/reg-s390x.dat: Likewise.
8587 * s390-tdep.h: New file.
8a1dac83 8588 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
8589 Include "inferior.h" and "s390-tdep.h".
8590 Remove private definition of offsetof.
8591 (s390_register_u_addr): Remove.
8592 (regmap_gregset, regmap_fpregset): Define.
8593 (supply_gregset, fill_gregset): Reimplement.
8594 (supply_fpregset, fill_fpregset): Likewise.
8595 (s390_inferior_tid): New function.
8596 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8597 (fetch_inferior_registers, store_inferior_registers): Likewise.
8598 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8599 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8600 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8601 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8602 (struct gdbarch_tdep): Define.
8603 (struct s390_register_info): Define.
8604 (s390_register_info): New variable.
8605 (s390_register_name): Reimplement.
8606 (s390_register_type): New function.
8607 (s390_register_raw_size, s390x_register_raw_size): Remove.
8608 (s390_cannot_fetch_register): Remove.
8609 (s390_register_byte): Remove.
8610 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8611 (s390_dwarf_regmap): New variable.
8612 (s390_dwarf_reg_to_regnum): New function.
8613 (s390_stab_reg_to_regnum): Remove.
8614 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8615 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8616 (s390_convert_register_p): Likewise.
8617 (s390_register_to_value, s390_value_to_register): Likewise.
8618 (s390_register_reggroup_p): Likewise.
8619 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8620 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8621 (s390_supply_regset, s390_regset_from_core_section): New functions.
8622 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8623 (S390_FPR_SIZE): Likewise.
8624 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8625 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8626 (S390_NUM_GPRS): Move here from tm-s390.h.
8627 (S390_NUM_FPRS): Likewise.
8628 (s390_in_function_epilogue_p): New function.
8629 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8630 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8631 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8632 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8633 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8634 Remove calls to:
8635 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
8636 set_gdbarch_deprecated_max_register_virtual_size,
8637 set_gdbarch_deprecated_register_byte,
d0f54f9d 8638 set_gdbarch_cannot_fetch_register,
8a1dac83 8639 set_gdbarch_cannot_store_register,
d0f54f9d
JB
8640 set_gdbarch_deprecated_register_size,
8641 set_gdbarch_deprecated_register_raw_size,
8642 set_gdbarch_deprecated_register_virtual_size,
8643 set_gdbarch_deprecated_register_virtual_type,
8644 set_gdbarch_deprecated_register_bytes.
8645 Add calls to:
8646 set_gdbarch_num_pseudo_regs,
8647 set_gdbarch_register_type,
8648 set_gdbarch_convert_register_p,
8649 set_gdbarch_register_to_value,
8650 set_gdbarch_value_to_register,
8651 set_gdbarch_register_reggroup_p,
8652 set_gdbarch_regset_from_core_section,
8653 set_gdbarch_pseudo_register_read,
8654 set_gdbarch_pseudo_register_write,
8655 set_gdbarch_in_function_epilogue_p.
8656 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8657 (s390_tdep_h): New variable.
8658
8cfe231d
JB
86592004-02-17 Jim Blandy <jimb@redhat.com>
8660
4589a601
JB
8661 * findvar.c (value_from_register): If the type has no length, just
8662 return an acceptable value --- don't report an internal error.
8663
8cfe231d
JB
8664 * stabsread.c (read_type): If we find any type numbers that are
8665 forward references, complain if the references aren't resolved by
8666 the time we're finished reading.
8667 (cleanup_undefined_types): Make error message more appropriate for
8668 a complaint.
8669
5bf0017e
EZ
86702004-02-17 Elena Zannoni <ezannoni@redhat.com>
8671
9d62932d
EZ
8672 * Makefile.in (defs_h): Remove dependency on progress_h.
8673 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8674 progress.h.
8675 * main.c (captured_main): Delete use of START_PROGRESS and
8676 END_PROGRESS.
8677
86782004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8679
5bf0017e
EZ
8680 * objfiles.c (terminate_minimal_symbol_table): Add back
8681 initialization of MSYMBOL_TYPE.
8682
9fc9f5e2
AC
86832004-02-17 David Mosberger <davidm@hpl.hp.com>
8684
8685 Committed by Andrew Cagney.
8686 * Makefile.in (ia64_tdep_h): New macro.
8687 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8688 (ia64-tdep.o): Likewise.
8689 * ia64-tdep.h: New file.
8690 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8691 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8692 (ia64_aix_sigcontext_register_address): Likewise.
8693 (ia64_linux_getunwind_table): Delete declaration.
8694 * ia64-linux-tdep.c: Likewise.
8695
76cd2bd9
CV
86962004-02-17 Corinna Vinschen <vinschen@redhat.com>
8697
8698 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8699 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8700 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8701
634aa483
AC
87022004-02-17 Andrew Cagney <cagney@redhat.com>
8703
8704 * symtab.c (skip_prologue_using_sal): New function.
8705 * symtab.h (skip_prologue_using_sal): Declare.
8706 * frv-tdep.c: Include "symtab.h".
8707 (skip_prologue_using_sal): Delete function.
8708 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8709 * rs6000-tdep.c (refine_prologue_limit): Mention
8710 skip_prologue_using_sal.
8711 * ia64-tdep.c (refine_prologue_limit): Ditto.
8712 * Makefile.in: Update dependencies.
8713
87142004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 8715
39ce7b3f
AC
8716 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8717 START_INFERIOR_TRAPS_EXPECTED.
8718 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8719 START_INFERIOR_TRAPS_EXPECTED.
8720 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8721 Delete macro.
8722 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8723 macro, moved to "nm-osf.h". Update copyright.
8724 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8725 update copyright.
8726
19772a2c
AC
8727 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8728 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8729 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8730 frameless_look_for_prologue.
8731 * frame.h (legacy_frameless_look_for_prologue): Rename
8732 frameless_look_for_prologue.
8733 * gdbarch.h, gdbarch.c: Re-generate.
8734 * sh64-tdep.c (sh64_gdbarch_init): Update.
8735 * sh-tdep.c (sh_gdbarch_init): Update.
8736 * s390-tdep.c (s390_gdbarch_init): Update.
8737 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8738 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8739 * m68k-tdep.c (m68k_gdbarch_init): Update.
8740 (delta68_frame_args_address): Update.
8741 * m32r-tdep.c (m32r_gdbarch_init): Update.
8742 * hppa-tdep.c (hppa_gdbarch_init): Update.
8743 * h8300-tdep.c (h8300_gdbarch_init): Update.
8744 * frv-tdep.c (frv_gdbarch_init): Update.
8745 (frv_frameless_function_invocation): Update.
8746 * cris-tdep.c (cris_gdbarch_init): Update.
8747 (cris_frameless_function_invocation): Update.
8748 * avr-tdep.c (avr_gdbarch_init): Update.
8749 * arm-tdep.c (arm_gdbarch_init): Update.
8750 * stack.c (frame_info): Update, call predicate.
8751 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8752 * frame.c (legacy_get_prev_frame): Update, call predicate..
8753 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8754 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8755 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8756 invocation.
8757 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8758 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8759 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
8760
8761 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8762 function.
8763
7dcaac91
DJ
87642004-02-16 Daniel Jacobowitz <drow@mvista.com>
8765
8766 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8767 initializations.
8768
88289b6e
AC
87692004-02-16 Andrew Cagney <cagney@redhat.com>
8770
8771 * tui/tui-windata.c: Include "gdb_string.h".
8772 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8773 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8774 * Makefile.in: Update dependencies.
8775
9f976b41
DJ
87762004-02-16 Daniel Jacobowitz <drow@mvista.com>
8777
8778 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8779 * infrun.c: Include "gdb_assert.h".
8780 (singlestep_ptid, saved_singlestep_ptid)
8781 (stepping_past_singlestep_breakpoint): New variables.
8782 (resume): Set singlestep_ptid. Check for singlestep thread
8783 hop.
8784 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8785 (handle_inferior_event): Handle singlestep thread hop.
8786
c324d747
AC
87872004-02-16 Andrew Cagney <cagney@redhat.com>
8788
f090b9b1
AC
8789 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8790 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8791 (dwarf2_frame_init_reg): Ditto.
8792
fd33e6cb
AC
8793 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8794 suggested by Joshua Neuheisel
8795
c324d747
AC
8796 * configure.in: Always check for curses, including pdcurses.
8797 Warn, instead of error, when no curses are found. Enable TUI when
8798 curses is available.
8799 * configure: Re-generate.
8800
b66ba949
CV
88012004-02-16 Corinna Vinschen <vinschen@redhat.com>
8802
8803 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8804 sh_sh4_register_convert_to_virtual.
8805 (sh_register_convert_to_raw): Rename from
8806 sh_sh4_register_convert_to_raw.
8807 (sh_pseudo_register_read): Accomodate above name change.
8808 (sh_pseudo_register_write): Ditto.
8809
b58cbbf2
CV
88102004-02-16 Corinna Vinschen <vinschen@redhat.com>
8811
8812 * sh-tdep.c (sh_generic_register_name): Remove.
8813 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8814
5929a910
AC
88152004-02-15 Andrew Cagney <cagney@redhat.com>
8816
4566dfcf
AC
8817 * configure.in (build_warnings): Add -Wunused-function.
8818 * configure: Re-generate.
8819
db11ed55
AC
8820 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8821 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8822
46ac7a5d
AC
8823 * procfs.c (procfs_init_inferior): Assume that
8824 START_INFERIOR_TRAPS_EXPECTED is defined.
8825 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8826 * config/ns32k/tm-nbsd.h: Delete file,
8827 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8828
ba801595
AC
8829 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8830 * config/vax/tm-vax.h: Delete file.
8831
5929a910
AC
8832 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8833 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8834 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8835 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8836 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8837 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8838 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8839
8f22cb90
MK
88402004-02-15 Mark Kettenis <kettenis@gnu.org>
8841
8842 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8843 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8844 (struct dwarf2_frame_ops): New.
8845 (dwarf2_frame_default_init_reg): New function, based on
8846 dwarf2_frame_init_reg.
8847 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8848 (dwarf2_frame_init_reg): Call architecture-specific function.
8849 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8850 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8851 instead of dwarf2_frame_data.
8852 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8853 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8854
8132723e
AC
88552004-02-15 Andrew Cagney <cagney@redhat.com>
8856
046a4708
AC
8857 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8858 register_gdbarch_swap.
8859 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8860 * f-lang.c (_initialize_f_language): Update, use
8861 DEPRECATED_REGISTER_GDBARCH_SWAP.
8862 * remote.c (_initialize_remote): Ditto.
8863 * regcache.c (_initialize_regcache): Ditto.
8864 * parse.c (_initialize_parse): Ditto.
8865 * infrun.c (_initialize_infrun): Ditto.
8866 * mi/mi-main.c (_initialize_mi_main): Ditto.
8867 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 8868
549c1eea
AC
8869 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8870 poking .cacheable directly.
8871 * symfile.c (symfile_bfd_open): Ditto.
8872
0c0b39de
AC
8873 * Makefile.in: Update all dependencies.
8874
8132723e
AC
8875 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
8876 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
8877 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
8878 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
8879 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 8880
b9d26eb9
AC
88812004-02-14 Andrew Cagney <cagney@redhat.com>
8882
8e1f669a
AC
8883 * arch-utils.c (legacy_convert_register_p): Check
8884 DEPRECATED_REGISTER_CONVERTIBLE_P.
8885 * findvar.c (value_of_register): Ditto.
8886
cd0bfa36
AC
8887 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
8888 * gdbarch.h, gdbarch.c: Re-generate.
8889 * arch-utils.c (deprecated_register_convertible_not): Delete.
8890 * arch-utils.h (deprecated_register_convertible_not): Delete.
8891 * mi/mi-main.c (get_register): Update. Update copyright.
8892 * infcmd.c (default_print_registers_info): Update.
8893
b9d26eb9
AC
8894 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8895 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
8896 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 8897 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
8898 * frame.c (deprecated_get_next_frame_hack): Delete function.
8899 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
8900 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8901 Update.
8902 * infcall.c (call_function_by_hand): Update.
8903
9ab9195f
EZ
89042004-02-14 Elena Zannoni <ezannoni@redhat.com>
8905
8906 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 8907 from here...
9ab9195f
EZ
8908 * objfiles.c (init_entry_point_info, entry_point_address):..to
8909 here.
8910 * symfile.h (init_entry_point_info, entry_point_address): Remove
8911 prototypes.
8912 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 8913 prototypes.
9ab9195f
EZ
8914 * cris-tdep.c: Remove include of symfile.h. Add include of
8915 objfiles.h.
8916 * infcall.c: Ditto.
8917 * mcore-tdep.c: Ditto.
8918 * mn10300-tdep.c: Ditto.
8919 * sh64-tdep.c: Ditto.
8920 * v850-tdep.c: Ditto.
8921 * arm-tdep.c: Remove include of symfile.h.
8922 * blockframe.c: Ditto.
8923 * coffread.c: Ditto.
8924 * dbxread.c: Ditto.
8925 * dwarf2read.c: Ditto.
8926 * dwarfread.c: Ditto.
8a1dac83 8927 * frv-tdep.c: Ditto.
9ab9195f
EZ
8928 * ia64-tdep.c: Ditto.
8929 * mdebugread.c: Ditto.
8930 * mipsread.c: Ditto.
8a1dac83 8931 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
8932 * s390-tdep.c: Ditto.
8933 * sh-tdep.c: Ditto.
8a1dac83 8934 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
8935 * gdbarch.sh: Remove include of symfile.h.
8936 * gdbarch.c: Regenerate.
8937 * solib-irix.c (enable_break): Use entry_point_address().
8938 Add comment about include file.
8939 * xcoffread.c: Add comment about include file.
8a1dac83
RM
8940 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
8941 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
8942 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
8943 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
8944 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
8945
c4c5b7ba
AC
89462004-02-13 Andrew Cagney <cagney@redhat.com>
8947
8948 * corelow.c (core_xfer_partial): Use "struct bfd_section".
8949 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
8950 copyright.
8951 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
8952
3e7879de
FF
89532004-02-12 Fred Fish <fnf@redhat.com>
8954
8955 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
8956 set_gdbarch_store_return_value.
8957
6a7760b6
AC
89582004-02-12 Andrew Cagney <cagney@redhat.com>
8959
8960 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
8961 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
8962 (interrupt_query): Ditto.
8963 (ofunc): Delete unused variable.
8964 * cris-tdep.c (cris_abi): Delete unused function.
8965 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
8966 (cris_get_wide_opcode, cris_get_short_size): Ditto.
8967 (cris_get_asr_quick_shift_steps): Ditto.
8968 (cris_skip_prologue_frameless_p): Ditto.
8969 * arm-tdep.c (arm_push_return_address): Delete unused function.
8970 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
8971 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
8972 * s390-tdep.c (s390_function_start): Delete unused function.
8973
31687c3c
AC
89742004-02-12 Andrew Cagney <cagney@redhat.com>
8975
8976 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
8977 gdbarch.h, gdbarch.c: Re-generate.
8978 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
8979 to generic_prologue_frameless_p.
8980 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
8981 * arch-utils.c (generic_prologue_frameless_p): Delete function.
8982
6de918a6
DJ
89832004-02-11 Daniel Jacobowitz <drow@mvista.com>
8984
8985 * mips-linux-tdep.c: Include "frame.h".
8986 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
8987 (mips_linux_skip_resolver): New functions.
8988 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
8989 and set_gdbarch_in_solib_call_trampoline.
8990 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
8991 to after set_gdbarch_in_solib_return_trampoline. Only set the
8992 solib hooks to mips16 functions if the OS ABI is unknown.
8993 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
8994 including "config/tm-linux.h".
8995 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
8996 * Makefile.in (mips-linux-tdep.o): Update.
8997
87b3ede8
DC
89982004-02-11 David Carlton <carlton@kealia.com>
8999
9000 * linespec.c (decode_compound): Only look for a class symbol when
9001 considering all but the rightmost component.
9002
5979bc46
AC
90032004-02-11 Andrew Cagney <cagney@redhat.com>
9004
9005 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9006 abi code are are separatly grouped.
9007
5867a2fb
AC
90082004-02-11 Andrew Cagney <cagney@redhat.com>
9009
9010 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9011 * gdbarch.h, gdbarch.c: Re-generate.
9012 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9013 * v850-tdep.c (v850_gdbarch_init): Update.
9014 * sh64-tdep.c (sh64_gdbarch_init): Update.
9015 * sh-tdep.c (sh_gdbarch_init): Update.
9016 * s390-tdep.c (s390_gdbarch_init): Update.
9017 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9018 * mips-tdep.c (mips_gdbarch_init): Update.
9019 * mcore-tdep.c (mcore_gdbarch_init): Update.
9020 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9021 * m32r-tdep.c (m32r_gdbarch_init): Update.
9022 * ia64-tdep.c (ia64_gdbarch_init): Update.
9023 * hppa-tdep.c (hppa_gdbarch_init): Update.
9024 * h8300-tdep.c (h8300_gdbarch_init): Update.
9025 * frv-tdep.c (frv_gdbarch_init): Update.
9026 * d10v-tdep.c (d10v_gdbarch_init): Update.
9027 * cris-tdep.c (cris_gdbarch_init): Update.
9028 * avr-tdep.c (avr_gdbarch_init): Update.
9029 * arm-tdep.c (arm_gdbarch_init): Update.
9030 * alpha-tdep.c (alpha_gdbarch_init): Update.
9031
026a72f8
CV
90322004-02-11 Corinna Vinschen <vinschen@redhat.com>
9033
9034 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9035 comma.
9036 (sh_sh4al_dsp_register_name): Ditto.
9037
3903d437
AC
90382004-02-10 Andrew Cagney <cagney@redhat.com>
9039
9040 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9041 (mips_init_frame_pc_first): Delete function.
9042 (mips_frame_saved_pc): Delete function.
9043 (mips_frame_chain): Delete function.
9044 (mips_init_extra_frame_info): Delete function.
9045 (mips_xfer_register): Delete unused variable "reg".
9046 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9047 (mips_n32n64_return_value): Delete unused variable "reg".
9048 (mips_n32n64_return_value): Delete unused variable "pos".
9049 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9050 (mips_o32_return_value): Delete unused variable "pos".
9051 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9052 (mips_print_fp_register): Delete unused variable "namelen"
9053 (mips_print_fp_register): Delete unused variable "flt2"
9054 (get_frame_pointer): Delete function.
9055 (cached_proc_desc): Delete static variable.
9056 (mips_pop_frame): Delete function.
9057 (mips_find_saved_regs): Delete function.
9058 (mips_get_saved_register): Delete function.
9059 (mips_saved_pc_after_call): Delete function.
9060 (SIGFRAME_BASE): Delete macro.
9061 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9062 (SIGFRAME_PC_OFF): Delete macro.
9063 (SIGFRAME_REGSAVE_OFF): Delete macro.
9064 (mips_dump_tdep): Do not print deleted macro definitions.
9065
b9fb98bd
AC
90662004-02-10 Andrew Cagney <cagney@redhat.com>
9067
9068 * Makefile.in (SFILES): Remove explictly listed tui files.
9069 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9070
78ced177 90712004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 9072
78ced177
JJ
9073 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9074 to use paddr functions to format ia64 addresses and long values.
9075 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9076 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9077 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9078 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9079 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9080
6a83354a
AC
90812004-02-10 Andrew Cagney <cagney@redhat.com>
9082
9083 * defs.h: Do not include "tui.h".
9084 * gdb_curses.h: New file.
9085 * tui/tui-hooks.h: New file.
9086 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9087 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9088 (tui_initialize_io): Delete declaration.
9089 (tui_initialize_readline: Delete redundant declaration.
9090 (struct tui_point): Delete definition.
9091 * tui/tui-data.h (struct tui_point): Define.
9092 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9093 * utils.c: Include "tui/tui.h".
9094 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9095 * printcmd.c [TUI]: Include "tui/tui.h".
9096 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9097 * tui/tui-command.c: Include "gdb_curses.h".
9098 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9099 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9100 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9101 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9102 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9103 * Makefile.in: Update all dependencies.
9104 (tui_hooks_h, gdb_curses_h): Define.
9105 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9106
997470ef
EZ
91072004-02-10 Elena Zannoni <ezannoni@redhat.com>
9108
9109 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9110 auxf2. Add comments about some other rarely used fields.
9111
4ff2cc4d
AC
91122004-02-10 Andrew Cagney <cagney@redhat.com>
9113
9114 * Makefile.in (init.c): Fix script removing duplicates. Problem
9115 reported by Peter Schauer.
9116
1ab21617
EZ
91172004-02-09 Elena Zannoni <ezannoni@redhat.com>
9118
9119 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9120 obstack_specify_allocation.
9121 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 9122 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
9123 (allocate_rt_common_objfile): Ditto.
9124 * symfile.c (reread_symbols): Ditto.
9125 * gdb_obstack.h: Add comment.
9126
17763fd9
EZ
91272004-02-09 Elena Zannoni <ezannoni@redhat.com>
9128
9129 * linespec.c (decode_line_1, locate_first_half)
9130 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9131 commented out code.
9132
ec5cdd75
DJ
91332004-02-09 Daniel Jacobowitz <drow@mvista.com>
9134
9135 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9136 obstack_free.
9137
43b54b88
AC
91382004-02-09 Andrew Cagney <cagney@redhat.com>
9139
9140 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9141 fails, try find_pc_section. Fix PR c++/1267.
9142 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9143 instead of find_pc_mapped_section.
9144 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9145 not default to the section containing PC. Fix PR symtab/1519.
9146
edfae063
AC
91472004-02-09 Andrew Cagney <cagney@redhat.com>
9148
9149 * Makefile.in (mips-tdep.o): Update dependencies.
9150 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9151 "trad-frame.h".
9152 (mips_unwind_pc): Return the pseudo PC register.
9153 (mips_unwind_dummy_id): New function.
9154 (mips16_fetch_instruction): New function.
9155 (mips32_fetch_instruction): New function.
9156 (struct mips_frame_cache): Define.
9157 (mips_mdebug_frame_cache): New function.
9158 (mips_mdebug_frame_this_id): New function.
9159 (mips_mdebug_frame_prev_register): New function.
9160 (mips_mdebug_frame_unwind): Define.
9161 (mips_mdebug_frame_sniffer): New function.
9162 (mips_mdebug_frame_base_address): New function.
9163 (mips_mdebug_frame_base): Define.
9164 (mips_mdebug_frame_base_sniffer): New function.
9165 (mips_gdbarch_init): Append unwind and base sniffers. Set
9166 unwind_dummy_id.
9167
defc864c
AC
91682004-02-08 Andrew Cagney <cagney@redhat.com>
9169
6764ddad
AC
9170 * frame.c: Print both the register number and name.
9171
defc864c
AC
9172 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9173 and a sed into a single sed. Make .c and .o patterns more robust.
9174 (OBS): Delete.
9175 (INIT_FILES): Replace OBS with COMMON_OBS.
9176 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9177
645d6d10
MK
91782004-02-08 Mark Kettenis <kettenis@gnu.org>
9179
9180 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9181 the PT_WCOOKIE request.
9182
23e3c3fc
AC
91832004-02-08 Andrew Cagney <cagney@redhat.com>
9184
58dfe9ff
AC
9185 * mips-tdep.c (mips_unwind_pc): New function.
9186 (mips_gdbarch_init): Set mips_unwind_pc.
9187
1152e35e
AC
9188 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9189 (get_frame_id): Allow the UNKNOWN_FRAME.
9190 (frame_register_unwind, get_frame_type): Ditto.
9191
31b75dbf
AC
9192 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9193 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9194 unwind_dummy_id indicates a legacy frame.
9195
3483b318
AC
9196 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9197 * configure: Re-generate.
9198
23e3c3fc
AC
9199 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9200 methods.
9201
33f8ca73
AC
92022004-02-08 Andrew Cagney <cagney@redhat.com>
9203
9204 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9205 makefile macro.
9206 * configure: Re-generate.
9207 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9208 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9209 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9210 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9211 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9212 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9213 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9214 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9215 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9216 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9217
6ba8e26f 92182004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 9219
20d286a5
AC
9220 * Makefile.in: Update all dependencies.
9221
d836ee13
AC
9222 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9223 * configure: Re-generate.
9224 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9225 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9226 (COMMON_OBS): Add "main.o" and "annotate.o".
9227 (ANNOTATE_OBS): Delete.
9228 (OBS): Remove ANNOTATE_OBS.
9229 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9230 CONFIG_INITS.
9231 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9232 against CONFIG_OBS and "main.o".
9233 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9234 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9235
d02c80cd
AC
9236 * tui/tui-command.c: Include "gdb_string.h", delete register
9237 attribute, use ISO-C function signatures.
9238 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9239 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9240 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9241 * tui/tui.c: Ditto.
6ba8e26f
AC
9242
9243 * tui/tui-command.c: Change variable and function names to lower
9244 case.
9245 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9246 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9247 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9248 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9249 * tui/tui-winsource.c, tui/tui.c: Ditto.
9250
4a146b47
EZ
92512004-02-07 Elena Zannoni <ezannoni@redhat.com>
9252
9253 * buildsym.c (free_pending_blocks, finish_block)
9254 (record_pending_block, make_blockvector, end_symtab): Replace
9255 symbol_obstack with objfile_obstack.
8a1dac83 9256 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 9257 (coff_read_enum_type): Ditto.
8a1dac83 9258 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 9259 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 9260 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
9261 (dwarf2_symbol_mark_computed): Ditto.
9262 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9263 * elfread.c (elf_symtab_read): Ditto.
9264 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9265 (hpread_read_enum_type, hpread_read_function_type)
9266 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9267 Ditto.
8a1dac83 9268 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 9269 (java_link_class_type): Ditto.
8a1dac83 9270 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
9271 (new_symbol): Ditto.
9272 * minsyms.c (install_minimal_symbols): Ditto.
9273 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9274 (terminate_minimal_symbol_table): Replace symbol_obstack with
9275 objfile_obstack.
9276 (free_objfile): Remove freeing of symbol_obstack.
9277 * objfiles.h: Remove symbol_obstack field.
9278 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9279 objfile_obstack.
9280 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9281 symbol_obstack.
9282 (solib_add_common_symbols): Replace symbol_obstack with
9283 objfile_obstack.
9284 * somsolib.c (som_solib_add): Ditto.
9285 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9286 (common_block_start, common_block_end): Ditto.
9287 * symfile.c (reread_symbols): Remove freeing and init of
9288 symbol_obstack.
9289 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9290 * symfile.h: Update comment.
9291 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9292 stats printing.
9293 * symtab.c (symbol_set_names): Replace symbol_obstack with
9294 objfile_obstack.
9295 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9296 Update comments.
9297 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9298 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9299 objfile_obstack.
9300
6d012f14
AC
93012004-02-07 Andrew Cagney <cagney@redhat.com>
9302
9303 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9304 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9305 fields and variables.
9306 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9307 (m_beInvisible): Delete macro.
9308 * tui/tui-data.h: Fix case case fields and variables.
9309 (m_genWinPtrIsNull): Delete macro.
9310 (tui_win_list): Rename winList.
9311 (TUI_SRC_WIN): Rename srcWin.
9312 (TUI_DISASM_WIN): Rename disassemWin.
9313 (TUI_DATA_WIN): Rename dataWin.
9314 (TUI_CMD_WIN): Rename cmdWin.
9315 (m_genWinPtrNotNull): Delete macro.
9316 (m_winPtrIsNull): Delete macro.
9317 (m_winPtrNotNull): Delete macro.
9318 (tui_win_is_source_type): Replace m_winIsSourceType
9319 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9320 (tui_win_has_locator): Replace m_hasLocator.
9321 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9322 m_setWinHighlightOff.
9323 * tui/tui-data.c: Update references.
9324 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9325 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9326 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9327 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9328 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9329 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9330 * tui/tui-winsource.c, tui/tui.c: Ditto.
9331
7d34766b
MK
93322004-02-07 Mark Kettenis <kettenis@gnu.org>
9333
1c800673
MK
9334 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9335 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9336 StackGhost.
9337
7d34766b
MK
9338 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9339 variable `i6' to `i7'.
9340 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9341
22940a24
AC
93422004-02-07 Andrew Cagney <cagney@redhat.com>
9343
9344 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9345 (TuiPoint, TuiPointPtr): Ditto.
9346 (TuiStatus, TuiStatusPtr): Ditto.
9347 (TuiWinType, TuiWinTypePtr): Ditto.
9348 (struct tui_point): Rename _TuiPoint.
9349 (tui_get_low_disassembly_address): Rename
9350 tuiGetLowDisassemblyAddress.
9351 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9352 (tuiFree): Delete declaration.
9353 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9354 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9355 * tui/tui.c (tuiFree): Delete function.
9356 * cli/cli-cmds.c (disassemble_command): Update references.
9357 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9358 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9359 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9360 * tui/tui-winsource.c: Ditto.
9361
8b92e4d5
EZ
93622004-02-07 Elena Zannoni <ezannoni@redhat.com>
9363
9364 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9365 coffstab_build_psymtabs, elfstab_build_psymtabs)
9366 (stabsect_build_psymtabs): Replace psymbol_obstack with
9367 objfile_obstack.
9368 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9369 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9370 Ditto.
9371 * dwarfread.c (scan_compilation_units): Ditto.
9372 * elfread.c (elfstab_offset_sections): Ditto.
9373 * hppa-tdep.c (read_unwind_info): Ditto.
9374 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9375 (hpread_end_psymtab): Ditto.
9376 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9377 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9378 Ditto.
9379 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 9380 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
9381 (build_objfile_section_table): Ditto.
9382 (allocate_objfile): Remove init of psymbol_obstack.
9383 (free_objfile): Remove freeing of psymbol_obstack.
9384 * objfiles.h (struct objfile): Remove field
9385 psymbol_obstack. Update comments.
9386 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9387 psymbol_obstack with objfile_obstack.
9388 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9389 psymbol_obstack.
9390 * somread.c (som_symfile_offsets, init_import_symbols)
9391 (init_export_symbols): Replace psymbol_obstack with
9392 objfile_obstack.
9393 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9394 * symfile.c (default_symfile_offsets, syms_from_objfile)
9395 (reread_symbols): Remove freeing and init of psymbol_obstack.
9396 (cashier_psymtab): Update comment.
9397 * symmisc.c (print_objfile_statistics): Don't report stats for
9398 psymbol obstack.
9399 * symtab.h (struct general_symbol_info, struct partial_symtab):
9400 Update comments.
9401 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9402 (xcoff_symfile_offsets): Replace psymbol_obstack with
9403 objfile_obstack.
9404
b99607ea
EZ
94052004-02-07 Elena Zannoni <ezannoni@redhat.com>
9406
9407 * objfiles.h (struct objfile): Add objfile_obstack field.
9408 Remove type_obstack field.
9409
9410 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9411 read_structure_scope read_enumeration, new_symbol): Replace
9412 type_obstack with objfile_obstack.
9413 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 9414 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
9415 (lookup_fundamental_type): Ditto.
9416 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
9417 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9418 (hpread_read_doc_function_type, hpread_read_struct_type)
9419 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 9420 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 9421 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
9422 (java_link_class_type): Ditto.
9423 * mdebugread.c (parse_type): Ditto.
9424 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9425 * solib-sunos.c (solib_add_common_symbols): Ditto.
9426 * stabsread.c (define_symbol, read_type, read_member_functions,
9427 read_cpp_abbrev, read_one_struct_field): Ditto.
9428 * symfile.c (reread_symbols): Ditto.
9429 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 9430
2a8854a7
AC
94312004-02-07 Andrew Cagney <cagney@redhat.com>
9432
9433 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9434 (tui_exec_info_content): Rename TuiExecInfoContent.
9435 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9436 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9437 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9438 (TuiList, TuiListPtr): Ditto.
9439 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9440 (TuiDataType, TuiDataTypePtr): Ditto.
9441 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9442 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9443 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9444 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9445 (TuiDataElement, TuiDataElementPtr): Ditto.
9446 (TuiWinElement, TuiWinElementPtr): Ditto.
9447 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9448 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9449 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9450 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9451 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9452 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9453 * tui/tui-command.c, tui/tui-data.c: Update references.
9454 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9455 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9456 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9457 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 9458
05cbe71a
MK
94592004-02-07 Mark Kettenis <kettenis@gnu.org>
9460
9461 * dwarf2-frame.h: Update copyright.
9462 (enum dwarf2_frame_reg_rule): New.
9463 (struct dwarf2_frame_state_reg): New.
9464 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9465 * dwarf2-frame.c: Update copyright.
9466 (enum dwarf2_reg_rule): Remove.
9467 (struct dwarf2_frame_state): Remove defenition of `struct
9468 dwarf2_frame_state_reg'.
9469 (read_reg): Call get_frame_arch to get the architecture instead of
9470 using CURRENT_GDBARCH.
9471 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9472 DWARF2_FRAME_.
9473 (dwarf2_frame_init_reg): New function.
9474 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9475 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9476 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9477 tags with DWARF2_FRAME_.
9478 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9479 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9480 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9481
ec7d9e56
AC
94822004-02-06 Andrew Cagney <cagney@redhat.com>
9483
dd1abb8c
AC
9484 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9485 (enum tui_data_type): Rename _TuiDataType.
9486 (struct tui_layout_def): Rename _TuiLayoutDef.
9487 (struct tui_source_element): Rename _TuiSourceElement.
9488 (struct tui_data_element): Rename _TuiDataElement.
9489 (struct tui_command_element): Rename _TuiCommandElement.
9490 (struct tui_locator_element): Rename _TuiLocatorElement.
9491 (union tui_which_element): Define.
9492 (struct tui_win_element): Rename _TuiWinElement.
9493 (struct tui_data_info): Rename _TuiDataInfo.
9494 (struct tui_source_info): Rename _TuiSourceInfo.
9495 (struct tui_command_info): Rename _TuiCommandInfo.
9496 (tui_initialize_static_data): Rename initializeStaticData.
9497 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9498 (tui_alloc_win_info): Rename allocWinInfo.
9499 (tui_init_generic_part): Rename initGenericPart.
9500 (tui_init_win_info): Rename initWinInfo.
9501 (tui_alloc_content): Rename allocContent.
9502 (tui_add_content_elements): Rename addContentElements.
9503 (tui_init_content_element): Rename initContentElement.
9504 (tui_free_window): Rename freeWindow.
9505 (tui_free_win_content): Rename freeWinContent.
9506 (tui_free_data_content): Rename freeDataContent.
9507 (tui_free_all_source_wins_content): Rename
9508 freeAllSourceWinsContent.
9509 (tui_del_window): Rename tuiDelWindow.
9510 (tui_del_data_windows): Rename tuiDelDataWindows.
9511 (tui_partial_win_by_name): Rename partialWinByName.
9512 (tui_win_name): Rename winName.
9513 (tui_current_layout): Rename currentLayout.
9514 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9515 (tui_term_height): Rename termHeight.
9516 (tui_set_term_height_to): Rename setTermHeightTo.
9517 (tui_term_width): Rename termWidth.
9518 (tui_set_term_width_to): Rename setTermWidthTo.
9519 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9520 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9521 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9522 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9523 (tui_source_windows): Rename sourceWindows.
9524 (tui_clear_source_windows): Rename clearSourceWindows.
9525 (tui_clear_source_windows_detail): Rename
9526 clearSourceWindowsDetail.
9527 (tui_clear_win_detail): Rename clearWinDetail.
9528 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9529 (tui_default_tab_len): Rename tuiDefaultTabLen.
9530 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9531 (tui_win_with_focus): Rename tuiWinWithFocus.
9532 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9533 (tui_layout_def): Rename tuiLayoutDef.
9534 (tui_win_resized): Rename tuiWinResized.
9535 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9536 (tui_next_win): Rename tuiNextWin.
9537 (tui_prev_win): Rename tuiPrevWin.
9538 (tui_add_to_source_windows): Rename addToSourceWindows.
9539 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9540 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9541 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9542 * tui/tui.c, tui/tui-data.c: Ditto.
9543 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9544 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9545
a358af15
AC
9546 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9547 (struct symtab): Declare.
9548 (tui_set_source_content): Rename tuiSetSourceContent.
9549 (tui_show_symtab_source): Rename tuiShowSource.
9550 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9551 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9552 * tui/tui-source.c: Update copyright. Update references.
9553 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9554 * tui/tui-stack.c: Update references.
9555
a21fcd8f
AC
9556 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9557 (struct tui_win_info): Declare.
9558 (tui_scroll_forward): Rename tuiScrollForward.
9559 (tui_scroll_backward): Rename tuiScrollBackward.
9560 (tui_scroll_left): Rename tuiScrollLeft.
9561 (tui_scroll_right): Rename tuiScrollRight.
9562 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9563 (tui_resize_all): Rename tuiResizeAll.
9564 (tui_refresh_all_win): Rename tuiRefreshAll.
9565 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9566 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9567 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9568 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9569
edae1ccf
AC
9570 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9571 (tui_erase_data_content): Rename tuiEraseDataContent.
9572 (tui_display_all_data): Rename tuiDisplayAllData.
9573 (tui_check_data_values): Rename tuiCheckDataValues.
9574 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9575 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9576 (tui_first_data_element_no_in_line): Rename
9577 tuiFirstDataElementNoInLine.
9578 (tui_delete_data_content_windows): Rename
9579 tuiDeleteDataContentWindows.
9580 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9581 (tui_display_data_from): Rename tuiDisplayDataFrom.
9582 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9583 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9584 * tui/tui-win.c, tui/tui-regs.c: Update references.
9585 * tui/tui-layout.c, tui/tui.c: Update references.
9586
ec7d9e56
AC
9587 * tui/tui-wingeneral.h: Update copyright.
9588 (m_allBeVisible): Delete macro.
8a1dac83 9589 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
9590 (struct tui_gen_win_info): Declare.
9591 (struct tui_win_info): Declare.
9592 (tui_unhighlight_win): Rename unhighlightWin.
9593 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9594 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9595 (tui_make_window): Rename makeWindow.
9596 (tui_copy_win): Rename copyWin.
9597 (tui_box_win): Rename boxWin.
9598 (tui_highlight_win): Rename highlightWin.
9599 (tui_check_and_display_highlight_if_needed): Rename
9600 checkAndDisplayHighlightIfNeeded.
9601 (tui_refresh_all): Rename refreshAll.
9602 (tui_delete_win): Rename tuiDelwin.
9603 (tui_refresh_win): Rename tuiRefreshWin.
9604 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9605 (tui_make_visible, tui_make_invisible): New functions.
9606 (tui_make_all_visible, tui_make_all_invisible): New functions.
9607 (make_all_visible): Rename makeAllVisible.
9608 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9609 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9610 * tui/tui-windata.c, tui/tui-win.c: Update references.
9611 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9612 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9613
1e52e2eb
MK
96142004-02-06 Mark Kettenis <kettenis@gnu.org>
9615
9616 * proc-api.c (write_with_trace): Initialize local variable to
9617 silence compiler warning.
9618
f80bda8e
AC
96192004-02-06 Andrew Cagney <cagney@redhat.com>
9620
9621 * tui/tui-source.h: Do not include "defs.h".
9622 (struct tui_win_info): Declare.
9623 (tui_set_source_content_nil): Declare.
9624 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9625 (union tui_line_or_address): Rename _TuiLineOrAddress.
9626 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9627 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9628 (tui_update_source_window_as_is): Rename
9629 tuiUpdateSourceWindowAsIs.
9630 (tui_update_source_windows_with_addr): Rename
9631 tuiUpdateSourceWindowsWithAddr.
9632 (tui_update_source_windows_with_line): Rename
9633 tuiUpdateSourceWindowsWithLine.
9634 (tui_clear_source_content): Rename tuiClearSourceContent.
9635 (tui_erase_source_content): Rename tuiEraseSourceContent.
9636 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9637 (tui_show_source_content): Rename tuiShowSourceContent.
9638 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9639 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9640 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9641 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9642 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9643 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9644 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9645 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9646 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9647 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9648 (struct tui_win_info): Declare.
9649 * tui/tui-stack.c: Update references.
9650 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9651 * tui/tui-win.c, tui/tui-source.c: Ditto.
9652 * tui/tui.c, tui/tui-disasm.c: Ditto.
9653
9fbfb822
MK
96542004-02-06 Mark Kettenis <kettenis@gnu.org>
9655
9656 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9657 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9658
03cebad2
MK
96592004-02-05 Mark Kettenis <kettenis@gnu.org>
9660
9661 * infrun.c (handle_inferior_event): Allow for breakpoint
9662 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9663 and SIGEMT. Update comments.
9664 * NEWS (Revised SPARC target): Mention support for non-executable
9665 stack.
9666
290281b1
MK
96672004-02-04 Mark Kettenis <kettenis@gnu.org>
9668
9669 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9670 * inftarg.c: Update copyright year.
9671 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9672 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9673 (sparc_xfer_wcookie): New function.
9674 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9675 * Makefile.in (sparc-nat.o): Update dependencies.
9676 * config/sparc/nm-nbsd.h: Include "target.h".
9677 (NATIVE_XFER_WCOOKIE): New define.
9678 (sparc_xfer_wcookie): New prototype.
9679
212161df
AC
96802004-02-04 Andrew Cagney <cagney@redhat.com>
9681
9682 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9683 SYSCALL_TRAP function.
9684 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9685
6e4c6c91
DJ
96862004-02-04 Andrew Cagney <cagney@redhat.com>
9687 Daniel Jacobowitz <drow@mvista.com>
9688
9689 * objfiles.h: Delete comments refering to inside_entry_func and
9690 DEPRECATED_FRAME_CHAIN_VALID.
9691 * defs.h (inside_entry_func): Update prototype..
9692 * blockframe.c (inside_entry_func): Rename to
9693 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9694 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9695
cae688ec
JJ
96962004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9697
9698 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9699 outside of #ifdef SOLIB_ADD region.
9700 (do_restore_lang_radix_cleanup): Ditto.
9701 (resolve_pending_breakpoint): Ditto.
9702
19217676
AC
97032004-02-03 Andrew Cagney <cagney@redhat.com>
9704
9705 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9706 (process_note_abi_tag_sections): Delete unused function.
9707 (ia64_read_fp): Delete unused function.
9708 (gdbarch_extract_struct_value_address): Delete declaration.
9709
876753be
AC
97102004-02-02 Andrew Cagney <cagney@redhat.com>
9711
9712 * vax-tdep.c (vax_frame_chain): Delete call to
9713 deprecated_inside_entry_file.
9714 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9715
d4f10bf2
MK
97162004-02-02 Mark Kettenis <kettenis@gnu.org>
9717
9718 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9719 column that's "empty" or "same value" when eliminating REG_RA
9720 rules.
9721
cae688ec
JJ
97222004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9723
9724 * NEWS: Add information about new pending breakpoint support.
9725
0101ce28
JJ
97262004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9727
9728 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9729 and pending fields for pending breakpoint support.
9730 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9731 (condition_command): Only parse condition if not a pending
9732 breakpoint.
9733 (print_one_breakpoint): Add support for pending breakpoints.
9734 (describe_other_breakpoints): Add checks to verify we are not
9735 dealing with pending breakpoints.
9736 (check_duplicates): Don't check pending breakpoints.
9737 (set_raw_breakpoint): Initialize pending flag.
9738 (do_restore_lang_radix_cleanup): New cleanup routine.
9739 (resolve_pending_breakpoint): New function.
9740 (re_enable_breakpoints_in_shlibs): Try and resolve any
9741 pending breakpoints via resolve_pending_breakpoint.
9742 (mention): Add pending breakpoint support.
9743 (parse_breakpoint_sals): Add new parameter to pass to
9744 decode_line_1 to indicate silent errors when files or functions
9745 are not found. Change all callers.
9746 (do_captured_parse_breakpoint): New function.
9747 (break_command_1): Change prototype to return an rc value and to
9748 take an optional pending breakpoint pointer. Support creating
9749 a pending breakpoint if a "not found" form of error occurs when
9750 parsing the breakpoint. Also support resolving an existing pending
9751 breakpoint and be silent if the resolution fails.
9752 (create_breakpoints): Change prototype to take pending breakpoint
9753 pointer. When resolving a pending breakpoint, use the new pointer
9754 to provide a conditional or commands added by the end-user.
9755 (delete_breakpoint): Add appropriate check for pending.
9756 (breakpoint_re_set_one): Ditto.
9757 (do_enable_breakpoint): Ditto.
9758
8d577d32
DC
97592004-02-02 David Carlton <carlton@kealia.com>
9760
9761 * valops.c (enum oload_classification): New.
9762 (find_overload_match): Break implementation into separate
9763 functions; delete #if 0'd code; look for symbols within
9764 namespaces.
9765 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9766 (find_oload_champ,oload_method_static,classify_oload_match): New.
9767 * cp-support.h: Add declaration for cp_func_name; update
9768 declaration for make_symbol_overload_list.
9769 * cp-support.c (cp_func_name): New.
9770 (overload_list_add_symbol): Fix comment, use
9771 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9772 (make_symbol_overload_list): Take a function name and a namespace
9773 instead of a symbol; change implementation.
9774 (make_symbol_overload_list_using): New.
9775 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9776
22e8e3c7
FF
97772004-02-02 Fred Fish <fnf@redhat.com>
9778
9779 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 9780 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
9781 * remote-sim.c (gdb_os_write_stderr): Write output to
9782 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9783 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 9784 gdb_stderr stream and update copyright years.
22e8e3c7 9785
6b753f60
DJ
97862004-02-01 Daniel Jacobowitz <drow@mvista.com>
9787
9788 * Makefile.in (mips-linux-nat.o): Update dependencies.
9789 * mips-linux-nat.c: Include mips-tdep.h.
9790
97912004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
9792
9793 * sol-thread.c (sol_thread_xfer_partial): New function.
9794 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9795 (init_sol_core_ops): Likewise.
9796
9797 * procfs.c (procfs_xfer_partial): New function.
9798 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9799 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9800
9801 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9802 procfs_xfer_auxv function.
9803
9804 * procfs.c (procfs_make_note_section): If we can read
9805 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9806 * linux-proc.c (linux_make_note_section): Likewise.
9807
9808 * auxv.h: New file.
9809 * auxv.c: New file.
9810 * Makefile.in (auxv_h): New variable.
9811 (COMMON_OBS): Add auxv.o here.
9812 (auxv.o): New target.
9813
9814 * corelow.c (core_xfer_partial): New function.
9815 (init_core_ops): Use it for core_ops.to_xfer_partial.
9816
9817 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9818 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9819 macro if that is defined.
9820
fa5281d0
DJ
98212004-02-01 Daniel Jacobowitz <drow@mvista.com>
9822
9823 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9824 and check the specified thread for each breakpoint.
9825 * breakpoint.h (bpstat_stop_status): Update prototype.
9826 * infrun.c (handle_inferior_event): Update calls to
9827 bpstat_stop_status.
9828
26ee262d
DJ
98292004-02-01 Daniel Jacobowitz <drow@mvista.com>
9830
9831 * Makefile.in (cli-cmds.o): Add $(readline_h).
9832
d9b52655
DJ
98332004-02-01 Daniel Jacobowitz <drow@mvista.com>
9834
9835 * cli/cli-cmds.c: Include readline.h.
9836 (complete_command): Pass the start of the last word to
9837 complete_line.
9838
9709f61c
DJ
98392004-01-31 Daniel Jacobowitz <drow@mvista.com>
9840
9841 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9842 argument, and change first argument to a CORE_ADDR.
9843 * breakpoint.h (bpstat_stop_status): Update prototype.
9844 * infrun.c (adjust_pc_after_break): Add a new comment.
9845 (handle_inferior_event): Update calls to bpstat_stop_status.
9846
4f1280bb
DJ
98472004-01-31 Daniel Jacobowitz <drow@mvista.com>
9848
9849 * breakpoint.h: Update copyright years.
9850
4fa8626c
DJ
98512004-01-31 Daniel Jacobowitz <drow@mvista.com>
9852
9853 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9854 (bpstat_stop_status): Don't decrement PC.
9855 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9856 prototype.
9857 * infrun.c (adjust_pc_after_break): New function.
9858 (handle_inferior_event): Call it, early. Remove later references
9859 to DECR_PC_AFTER_BREAK.
9860 (normal_stop): Add commentary.
9861
fad0733a
DJ
98622004-01-31 Daniel Jacobowitz <drow@mvista.com>
9863
9864 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9865 2004-01-27 double-free fix.
9866
42cdca6c
MK
98672004-01-31 Mark Kettenis <kettenis@gnu.org>
9868
9869 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9870 (sparc32_frame_prev_register): Handle StackGhost.
9871 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9872
932d5416
RM
98732004-01-29 Roland McGrath <roland@redhat.com>
9874
9875 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
9876 * configure: Regenerated.
9877
9878 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
9879 * Makefile.in (procfs.o): Add dep.
9880
47d3492a
AC
98812004-01-28 Andrew Cagney <cagney@redhat.com>
9882
9883 * tui/tui-stack.h: Update copyright.
9884 (struct frame_info): Add opaque declaration.
9885 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
9886 (tui_show_locator_content): Rename tuiShowLocatorContent.
9887 (tui_show_frame_info): Rename tuiShowFrameInfo.
9888 * tui/tui-stack.c: Update copyright. Update references.
9889 * tui/tui-winsource.c: Update references.
9890 * tui/tui-win.c: Update references.
9891 * tui/tui-layout.c: Update references.
9892 * tui/tui-hooks.c: Update copyright, update references.
9893 * tui/tui.c: Update copyright, update references.
9894 * tui/tui-disasm.c: Update references.
9895
5d51ca54
DC
98962004-01-28 David Carlton <carlton@kealia.com>
9897
9898 * dwarf2read.c (add_partial_structure): Use demangled name if
9899 namespace equals "".
9900
086ed43d
JB
99012004-01-27 Jim Blandy <jimb@redhat.com>
9902
9903 Clean up misapplied patch:
9904 * dwarf2read.c (determine_prefix): Change one of the two forward
9905 declarations for 'determine_prefix_aux' to a declaration for this.
9906 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
9907 argument to 'die_specification'.
9908
2a35147e
JB
9909 * dwarf2read.c (read_func_scope): Re-indent comment.
9910
a355c7de 99112004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 9912
a355c7de
AC
9913 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
9914 b->exp to NULL after freeing so that error during re-parsing or
9915 evaluation of expressions associated with breakpoint don't
9916 eventually lead to re-freeing of storage.
9917 Committed by Andrew Cagney.
9918
63ff5125
AC
99192004-01-27 Andrew Cagney <cagney@redhat.com>
9920
9921 * source.c (ambiguous_line_spec): Delete undefined declaration.
9922 * m32r-rom.c (m32r_set_board_address): Delete unused function.
9923 (m32r_set_server_address, m32r_set_download_path): Ditto.
9924 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
9925
e142c38c
DJ
99262004-01-27 Daniel Jacobowitz <drow@mvista.com>
9927
9928 * dwarf2read.c: Update calls to changed and renamed functions, and
9929 references to moved variables.
9930
9931 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
9932 language, language_defn, list_in_scope, and ftypes members.
9933 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
9934 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
9935 (baseaddr): Remove globals.
9936
9937 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
9938 (set_cu_language, die_is_declaration, die_specification)
9939 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
9940 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
9941 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
9942 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
9943
9944 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
9945 cu.list_in_scope. Don't initialize cu_header_offset.
9946 (add_partial_symbol): Add local baseaddr.
9947 (psymtab_to_symtab_1): Add local baseaddr. Use
9948 objfile->section_offsets for consistency. Don't initialize
9949 cu_header_offset; do initialize cu.header.offset and
9950 cu.list_in_scope.
9951 (read_file_scope, read_func_scope, read_lexical_block_scope)
9952 (dwarf_decode_lines, new_symbol): Add local baseaddr.
9953
c6e06ede
MC
99542004-01-27 Michael Chastain <mec.gnu@mindspring.com>
9955
fb328ecc 9956 * PROBLEMS: Add gdb/1516.
c6e06ede 9957
48184fd4
AC
99582003-12-29 Robert Millan <robertmh@gnu.org>
9959
9960 Patch committed by Andrw Cagney.
9961 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
9962 * configure.tgt: Match knetbsd*-gnu.
9963
c1321b30
AC
99642004-01-26 Andrew Cagney <cagney@redhat.com>
9965
f3699be3
AC
9966 * breakpoint.c (catch_command_1): Delete #ifdef code.
9967 (catch_fork_command_1): Delete #ifdef wrapper.
9968 (catch_exec_command_1): Ditto.
9969 (catch_load_command_1): Ditto.
9970 (catch_unload_command_1): Ditto.
9971
c1321b30
AC
9972 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
9973 (catch_breakpoint): Delete #if0ed function.
9974 (disable_catch_breakpoint): Ditto.
9975 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
9976 (disable_catch, enable_catch, delete_catch): Ditto.
9977
b4501125
AC
99782004-01-26 Andrew Cagney <cagney@redhat.com>
9979
9980 * remote.c (echo_check, quit_flag): Delete variables.
9981 (cisco_kernel_mode): Delete variable.
9982 (minitelnet_return, tty_input, escape_count): Delete variables.
9983 (remote_cisco_mode): Delete variable.
9984 (remote_cisco_open, remote_cisco_close): Delete function.
9985 (remote_cisco_mourn, remote_cisco_wait): Delete function.
9986 (init_remote_cisco_ops): Delete function.
9987 (_initialize_remote): Do not install "remote cisco" code.
9988 (read_frame): Delete cisco specific code.
9989 (remote_info_process): Delete function.
9990 (remote_wait): Delete cisco specific code.
9991 (remote_cisco_section_offsets): Delete function.
9992 (remote_cisco_objfile_relocate): Delete function.
9993 (remote_async_wait): Delete cisco specific code.
9994 (minitelnet, readtty, readsocket): Delete function.
9995
74055713
AC
99962004-01-26 Andrew Cagney <cagney@redhat.com>
9997
9998 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
9999 comments mentioning extract_returned_value_address.
10000 * infcmd.c (print_return_value): Update. Add comments on
10001 extract_returned_value_address.
10002 * stack.c (return_command): Add comments on
10003 extract_returned_value_address.
10004 * values.c: Update comment.
10005 * m32r-tdep.c: Update comment.
10006 * sparc-tdep.c: Update comment.
10007 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10008 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10009 * sh64-tdep.c (sh64_gdbarch_init): Update.
10010 * sh-tdep.c (sh_gdbarch_init): Update.
10011 * s390-tdep.c (s390_gdbarch_init): Update.
10012 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10013 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10014 * m68k-tdep.c (m68k_gdbarch_init): Update.
10015 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10016 * m32r-tdep.c (m32r_gdbarch_init): Update.
10017 * ia64-tdep.c (ia64_gdbarch_init): Update.
10018 * h8300-tdep.c (h8300_gdbarch_init): Update.
10019 * frv-tdep.c (frv_gdbarch_init): Update.
10020 * arm-tdep.c (arm_gdbarch_init): Update.
10021 * alpha-tdep.c (alpha_gdbarch_init): Update.
10022
a67af2b9
AC
100232004-01-26 Andrew Cagney <cagney@redhat.com>
10024
10025 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10026 SYMBOL_LOCATION_FUNCS
10027 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10028 "struct symbol_ops".
10029 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10030 type to "struct symbol_ops".
10031 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10032 (struct symbol): Replace ".aux_value.loc.funcs" and
10033 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10034 (SYMBOL_OBJFILE): Delete macro.
10035 (SYMBOL_LOCATION_FUNCS): Delete macro.
10036 (SYMBOL_LOCATION_BATON): Update.
10037 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10038 intead of SYMBOL_LOCATION_FUNCS.
10039 * ax-gdb.c (gen_var_ref): Ditto.
10040 * printcmd.c (address_info): Ditto.
10041 * findvar.c (read_var_value): Ditto.
10042 (symbol_read_needs_frame): Ditto.
10043
c034e007
AC
100442004-01-26 Andrew Cagney <cagney@redhat.com>
10045
10046 * dwarf2read.c (read_func_scope): Document frame-base hack.
10047
bb472c1e
MK
100482004-01-25 Mark Kettenis <kettenis@gnu.org>
10049
10050 * infcmd.c (print_return_value): Plug memory leak; delete
10051 ui_stream object. Rename argument `structure_return' to
10052 `struct_return'.
10053
c8e737d5
MK
100542004-01-25 Mark Kettenis <kettenis@gnu.org>
10055
f941662f
MK
10056 * infcmd.c (print_return_value): Wrap long lines.
10057 (finish_command_continuation, finish_command): Remove unused
10058 variable `funcaddr'. Fix some coding-standards problems.
10059
c558d81a 10060 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 10061 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
10062 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10063 TDEP->fpregset to zero.
10064
bf1e5861 10065 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
10066 floating-point registers for traditional NetBSD core files.
10067 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10068 TDEP->sizeof_fpregset here.
10069
4c72d57a
MK
100702004-01-25 Mark Kettenis <kettenis@gnu.org>
10071
566626fa
MK
10072 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10073 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10074 function with code split out from
10075 sparc32nbsd_sigcontext_frame_cache.
10076 (sparc32nbsd_sigcontext_frame_cache): Use
10077 sparc32nbsd_sigcontext_saved_regs.
10078 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10079 OpenBSD.
10080 * sparcobsd-tdep.c: New file.
10081 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10082 (sparcobsd-tdep.o): New dependency.
10083 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10084 * config/sparc/obsd.mt: New file.
10085
4c72d57a
MK
10086 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10087 TDEP->fpregset to be initialized to enable core file register
10088 sets.
10089
7e5e9f88
MK
100902004-01-24 Mark Kettenis <kettenis@gnu.org>
10091
f0f207fd 10092 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
10093 Add opaque declarations.
10094 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10095 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10096 function with code split out from
10097 sparc64nbsd_sigcontext_frame_cache.
10098 (sparc64nbsd_sigcontext_frame_cache): Use
10099 sparc64nbsd_sigcontext_saved_regs.
10100 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10101 OpenBSD.
10102 * sparc64obsd-tdep.c: New file.
10103 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10104 (sparc64obsd-tdep.o): New dependency.
10105 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10106 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10107 * config/sparc/obsd64.mt: New file.
10108
690668cc
MK
10109 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10110 read the instruction at PC.
10111
7e5e9f88
MK
10112 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10113 value of GDB_OSABI_DEFAULT.
10114 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10115 instead of GDB_OSABI_NETBSD_AOUT.
10116
68b6dce9
NR
101172004-01-24 Nick Roberts <nick@nick.uklinux.net>
10118
10119 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10120 copyright.
10121
080ce8c0
AC
101222004-01-23 Andrew Cagney <cagney@redhat.com>
10123
10124 * printcmd.c (display_command): Replace tui_set_display call with
10125 tui_set_layout_for_display_command.
10126 * tui/tui.h (enum tui_win_type): Define.
10127 (tui_set_layout): Delete declaration.
10128 (tui_set_layout_for_display_command): Rename set_tui_layout.
10129 * tui/tui-data.h (enum tui_layout_type): Define.
10130 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10131 "tui.h".
10132 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10133 (tui_default_win_height): Rename tuiDefaultWinHeight.
10134 (tui_default_win_viewport_height): Rename
10135 tuiDefaultWinViewportHeight.
10136 (tui_set_layout): RenametuiSetLayout.
10137 * tui/tui-layout.c: Update references.
10138 * tui/tui.c: Update references.
10139 * tui/tui-disasm.c: Update references.
10140
b368761e
DC
101412004-01-23 David Carlton <carlton@kealia.com>
10142
10143 Partial workaround for PR c++/1511:
10144 * cp-namespace.c: Include frame.h.
10145 (cp_lookup_transparent_type): New
10146 (cp_lookup_transparent_type_loop): New.
10147 * cp-support.h: Declare cp_lookup_transparent_type.
10148 * symtab.c (basic_lookup_transparent_type): Renamed from
10149 lookup_transparent_type.
10150 (lookup_transparent_type): Replace old body by a call to
10151 current_language->la_lookup_transparent_type.
10152 * symtab.h: Update copyright. Declare
10153 basic_lookup_transparent_type.
10154 * language.h: Update copyright.
10155 (struct language_defn): Add la_lookup_transparent_type.
10156 * language.c: Update copyright.
10157 (unknown_language_defn): Add basic_lookup_transparent_type.
10158 (auto_language_defn): Add basic_lookup_transparent_type.
10159 (local_language_defn): Add basic_lookup_transparent_type.
10160 * ada-lang.c: Update copyright.
10161 (ada_language_defn): Add basic_lookup_transparent_type.
10162 * c-lang.c: Update copyright.
10163 (c_language_defn): Add basic_lookup_transparent_type.
10164 (cplus_language_defn): Add basic_lookup_transparent_type.
10165 (asm_language_defn): Add basic_lookup_transparent_type.
10166 (minimal_language_defn): Add basic_lookup_transparent_type.
10167 * f-lang.c: Update copyright.
10168 (f_language_defn): Add basic_lookup_transparent_type.
10169 * jv-lang.c: Update copyright.
10170 (java_language_defn): Add basic_lookup_transparent_type.
10171 * m2-lang.c: Update copyright.
10172 (m2_language_defn): Add basic_lookup_transparent_type.
10173 * objc-lang.c: Update copyright.
10174 (objc_language_defn): Add basic_lookup_transparent_type.
10175 * p-lang.c: Update copyright.
10176 (p_language_defn): Add basic_lookup_transparent_type.
10177 * scm-lang.c: Update copyright.
10178 (scm_language_defn): Add basic_lookup_transparent_type.
10179 * Makefile.in (cp-namespace.o): Depend on frame.h.
10180
fdde2d81
DC
101812004-01-23 David Carlton <carlton@kealia.com>
10182
10183 Patch for PR c++/1520:
10184 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10185 properly if we have a specification die.
10186 (determine_prefix_aux): Rename from determine_prefix.
10187 (determine_prefix): Like the old determine_prefix, but never
10188 returns NULL.
10189
5b828b6b
TR
101902004-01-23 Theodore A. Roth <troth@openavr.org>
10191
10192 * avr-tdep.c: Update copyright.
10193 (avr_iaddr_p): Delete unused function.
10194 (avr_saddr_p): Delete unused function.
10195
a1b8c067
DC
101962004-01-23 David Carlton <carlton@kealia.com>
10197
10198 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10199 Fix for PR symtab/1534.
10200
f2cab569
MK
102012004-01-23 Mark Kettenis <kettenis@gnu.org>
10202
10203 * NEWS (New native configurations): Mention OpenBSD/sparc and
10204 OpenBSD/sparc64.
10205 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10206 * configure.host: Likewise.
10207 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10208 handler for OpenBSD.
10209 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10210
642d8300
MK
102112004-01-22 Mark Kettenis <kettenis@gnu.org>
10212
89aac506
MK
10213 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10214 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10215
36662fde
MK
10216 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10217 * cli/cli-cmds.c (shell_escape): Likewise.
10218
642d8300
MK
10219 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10220 OpenBSD .note.openbsd.ident sections.
10221
fae299cd
DC
102222004-01-22 David Carlton <carlton@kealia.com>
10223
10224 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10225 get_scope_pc_bounds.
10226 (read_file_scope): Ditto.
10227 (get_scope_pc_bounds): New function, produced by extracting code
10228 from the above two functions, consolidating it, and adding support
10229 for DW_TAG_namespace.
10230
a49d618c
MK
102312004-01-22 Mark Kettenis <kettenis@gnu.org>
10232
10233 * osabi.c (MAX_NOTESZ): New define.
10234 (check_note): New function.
10235 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10236 check_note.
10237
fe61caab
RM
102382004-01-21 Roland McGrath <roland@redhat.com>
10239
10240 * MAINTAINERS (write after approval): Add myself.
10241
ec145965
EZ
102422004-01-21 Eli Zaretskii <eliz@gnu.org>
10243
10244 * utils.c (init_page_info): Move declarations of `rows' and
10245 `cols' before the __GO32__-specific code. Move the closing brace
10246 outside the #ifdef __GO32__..#endif block.
10247 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10248
877522db
PB
102492004-01-21 Paul Brook <paul@codesourcery.com>
10250
10251 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10252 BPSTAT_WHAT_CHECK_SHLIBS.
10253
dbf5be1c
PB
102542004-01-21 Paul Brook <paul@codesourcery.com>
10255
10256 * MAINTAINERS: Add myself to write-after-approval.
10257
81f08b92
AC
102582004-01-20 Andrew Cagney <cagney@redhat.com>
10259
5a1efed7
AC
10260 * ax-gdb.c (print_axs_value): Delete unused function.
10261 * jv-lang.c (java_lookup_type): Delete unused function.
10262 * cli/cli-dump.c (dump_filetype): Delete unused function.
10263 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10264 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10265 (mips_getstring): Delete unused function.
10266 (pmon_insert_breakpoint): Delete #if0ed function.
10267 (PMON_MAX_BP): Delete #if0ed MACRO.
10268 (mips_pmon_bp_info): Delete #if0ed variable.
10269 (pmon_remove_breakpoint): Delete #if0ed function.
10270 * monitor.c (monitor_write_even_block): Delete unused function.
10271 (monitor_write_memory_block): Delete #if0ed code.
10272 * dink32-rom.c (dink32_load): Delete unused function.
10273 (_initialize_dink32_rom): Delete #if0ed code.
10274 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10275
b0a30fce
AC
10276 * tui/tui-command.c: Update references.
10277 * tui/tui-io.c: Update references.
10278 * tui/tui-command.h: Update copyright.
10279 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10280
81f08b92
AC
10281 * source.c (ambiguous_line_spec): Delete never-defined function.
10282 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10283 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10284 * cli/cli-cmds.c (validate_comname): Ditto.
10285
65f05602
AC
10286 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10287 "tui-data.h".
10288 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10289 (tui_show_disassem): Rename tuiShowDisassem.
10290 (tui_show_disassem_and_update_source): Rename
10291 tuiVerticalDisassemScroll.
10292 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10293 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10294 * tui/tui.h: Update copyright.
10295 (enum tui_status): Define.
10296 * tui/tui-data.h (enum tui_scroll_direction): Define.
10297 * tui/tui-disasm.c: Update copyright. Update references.
10298 * tui/tui-winsource.c: Update copyright. Update references.
10299 * tui/tui-win.c: Update references.
10300 * tui/tui-layout.c: Update references.
10301
6bb0384f
AC
103022004-01-20 Andrew Cagney <cagney@redhat.com>
10303
10304 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10305 sym2 to start of block.
10306
9175c9a3
MC
103072004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10308
10309 * MAINTAINERS: Delete mmalloc.
10310 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10311 * NEWS: Mention removal of --with-malloc.
10312 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10313 * config.in: Regenerate.
10314 * configure: Regenerate.
6bb0384f
AC
10315 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10316 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
10317 * gdbinit.in: Remove mmalloc.
10318 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10319 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10320 * config/i386/go32.mh: Likewise.
10321 * config/i386/interix.mh: Likewise.
10322 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10323
4fcef00a
JJ
103242004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10325
10326 * linespec.c (decode_variable, symtab_from_filename): Call
10327 error_silent with error message instead of throwing an exception
10328 directly.
10329 * defs.h (error_silent, error_output_message): Add prototypes.
10330 (catch_exceptions_with_msg): Ditto.
10331 * utils.c (error_silent, error_output_message): New functions.
10332 * top.c (catch_exceptions_with_msg): New function.
10333
8e94b928
NR
103342004-01-20 Nick Roberts <nick@nick.uklinux.net>
10335
10336 * mi/mi-cmds.h (enum print_values): Add definition.
10337
10338 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10339 type and value for simple data types and just the name and type
10340 for complex ones, if required.
10341
10342 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10343 children, if required.
10344
a02d6af8
KB
103452004-01-19 Kevin Buettner <kevinb@redhat.com>
10346
10347 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10348 unused declarations.
10349
78a4a9b9
AC
103502004-01-19 Andrew Cagney <cagney@redhat.com>
10351
10352 * top.h (mapped_symbol_files): Delete declaration.
10353 * main.c (captured_main): Delete option "m" and "mapped".
10354 * objfiles.c (mapped_symbol_files): Delete variable.
10355 * symfile.c (symbol_file_command): Delete mmap code.
10356 (symbol_file_add_with_addrs_or_offsets): Ditto.
10357 (add_symbol_file_command, reread_separate_symbols): Ditto.
10358 * objfiles.h (OBJF_MAPPED): Delete.
10359 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10360 (free_objfile) [USE_MMALLOC]: Ditto.
10361 (open_existing_mapped_file): Delete function.
10362 (open_mapped_file): Delete function.
10363 (map_to_file): Delete function.
10364
2dbd5e30
KB
103652004-01-19 Kevin Buettner <kevinb@redhat.com>
10366
10367 * infrun.c (step_into_function): Account for possible breakpoint
10368 adjustment when computing ``stop_func_start''.
10369
437b434f
KB
103702004-01-19 Kevin Buettner <kevinb@redhat.com>
10371
10372 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10373 the region size against the size of a pointer, not the size of
10374 a register as given by DEPRECATED_REGISTER_SIZE.
10375
55fb0713
AC
103762004-01-19 Andrew Cagney <cagney@redhat.com>
10377
10378 * tui/tui-regs.h: Include "tui-data.h".
10379 (tuiFirstRegElementNoInLine): Delete declaration.
10380 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10381 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10382 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10383 (tui_calculate_regs_column_count): Rename
10384 tuiCalculateRegsColumnCount.
10385 (tui_check_register_values): Rename tuiCheckRegisterValues.
10386 (tui_show_registers): Rename tuiShowRegisters.
10387 (tui_display_registers_from_line): Rename
10388 tuiDisplayRegistersFromLine.
10389 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10390 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10391 (tui_first_reg_element_no_inline): Rename
10392 tuiFirstRegElementNoInLine.
10393 * tui/tui-data.h: Update copyright.
10394 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10395 * tui/tui-windata.c: Update copyright, update references.
10396 * tui/tui-regs.c: Update copyright, update references.
10397 * tui/tui-win.c: Update copyright, update references.
10398 * tui/tui-layout.c: Update copyright, update references.
fe61caab 10399
cebe9500
AC
104002004-01-18 Andrew Cagney <cagney@redhat.com>
10401
bcdf1568
AC
10402 * tui/tui-io.c: Update copyright.
10403 (key_is_end_sequence, key_is_backspace): New functions.
10404 (key_is_command_char, key_is_start_sequence): New function.
10405 (tui_getc): Update references.
10406 * tui/tui-io.h: Update copyright.
10407 (m_tuiStartNewLine): Delete macro.
10408 (m_isBackspace, m_isDeleteChar): Delete macros.
10409 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10410 (m_isNextPage, m_isPrevPage): Delete macros.
10411 (m_isLeftArrow, m_isRightArrow): Delete macros.
10412 (m_isXdbStyleCommandChar): Delete macro.
10413 (key_is_start_sequence): Declare, replace m_isStartSequence.
10414 (key_is_end_sequence): Declare, replace m_isEndSequence.
10415 (key_is_backspace): Declare ,replace m_isBackspace.
10416 (key_is_command_char): Declare, replace m_isCommandChar.
10417 * tui/tui-command.c: Update copyright.
10418 (tuiDispatchCtrlChar): Update references.
10419
130d87e6
AC
10420 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10421 tuiSourceWin.h.
10422
d7b2e967
AC
10423 * tui/tui-command.c: Rename tui/tuiCommand.c.
10424 * tui/tui-command.h: Rename tui/tuiCommand.h.
10425 * tui/tui-data.c: Rename tui/tuiData.c.
10426 * tui/tui-data.h: Rename tui/tuiData.h.
10427 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10428 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10429 * tui/tui-io.c: Rename tui/tuiIO.c.
10430 * tui/tui-io.h: Rename tui/tuiIO.h.
10431 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10432 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10433 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10434 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10435 * tui/tui-source.c: Rename tui/tuiSource.c.
10436 * tui/tui-source.h: Rename tui/tuiSource.h.
10437 * tui/tui-stack.c: Rename tui/tuiStack.c.
10438 * tui/tui-stack.h: Rename tui/tuiStack.h.
10439 * tui/tui-win.c: Rename tui/tuiWin.c.
10440 * tui/tui-win.h: Rename tui/tuiWin.h.
10441 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10442 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10443 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10444 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10445 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10446 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10447 * tui/tui-file.c: Update includes.
10448 * tui/tui-hooks.c: Update includes.
10449 * tui/tui-interp.c: Update includes.
10450 * tui/tui.c: Update includes.
10451 * Makefile.in: Update all tui/ dependencies.
10452 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10453
b2100910
AC
10454 * Makefile.in: Update copyright. Update dependencies.
10455
cebe9500
AC
10456 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10457 problem.
10458
c6f0559b
AC
104592004-01-18 Andrew Cagney <cagney@redhat.com>
10460
43e9390b
AC
10461 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10462 instead of register_gdbarch_init.
10463
c6f0559b
AC
10464 * remote-sds.c (tohex): Delete unused function. Update copyright.
10465 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10466 * v850-tdep.c (v850_register_virtual_size): Ditto.
10467 * target.c (normal_target_post_startup_inferior): Ditto.
10468 * source.c (ambiguous_line_spec): Ditto.
10469 * remote.c (adapt_remote_get_threadinfo): Ditto.
10470 * mi/mi-out.c (out_field_fmt): Ditto.
10471 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10472 (output_control_change_notification): Ditto.
10473 * m68k-tdep.c (m68k_register_byte): Ditto.
10474 (m68k_remote_breakpoint_from_pc): Ditto.
10475 * ui-out.c (init_ui_out_state): Delete unused declaration.
10476 * stabsread.c (search_value): Ditto.
10477 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10478 * maint.c (print_section_table): Ditto.
10479 * infrun.c (set_follow_fork_mode_command): Ditto.
10480
a8504492
MK
104812004-01-18 Mark Kettenis <kettenis@gnu.org>
10482
10483 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10484 DW_CFA_def_cfa_exporession. Add support for
10485 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10486 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10487
0bd8997e
AC
104882004-01-18 Andrew Cagney <cagney@redhat.com>
10489
10490 * ocd.c: Update copyright.
10491 (bdm_read_register_command): Delete unused function.
10492 (_initialize_remote_ocd): Delete commented out reference.
10493 (get_quoted_char, reset_packet): Delete #if0ed function.
10494 (output_packet, put_quoted_char): Delete #if0ed function.
10495 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10496 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10497 (BDM_BREAKPOINT): Delete #if0ed macro.
10498 (remote_timeout): Delete #if0ed variable.
10499
31bb40e4
MK
105002004-01-18 Mark Kettenis <kettenis@gnu.org>
10501
10502 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10503 (core-sol2.o): Remove dependency.
10504 * core-sol2.c: Remove file.
10505
887432a5
AC
105062004-01-17 Andrew Cagney <cagney@redhat.com>
10507
10508 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10509 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10510 enums.
10511
29182b13
DJ
105122004-01-17 Daniel Jacobowitz <drow@mvista.com>
10513
10514 * remote.c: Update copyright years.
10515
2963ee1d
DJ
105162004-01-17 Daniel Jacobowitz <drow@mvista.com>
10517
10518 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10519
79d45cd4
AC
105202004-01-17 Andrew Cagney <cagney@redhat.com>
10521
ee300cd4
AC
10522 * mdebugread.c: Update copyright.
10523 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10524 (parse_type, parse_procedure): Ditto.
10525 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10526
fcacc9c2
AC
10527 * cris-tdep.c (cris_store_struct_return): Put back accidently
10528 deleted function.
10529
79d45cd4
AC
10530 * gdbarch.sh: Update copyright year.
10531 * gdbarch.h, gdbarch.c: Re-generate.
10532
b263358a
DJ
105332004-01-17 Daniel Jacobowitz <drow@mvista.com>
10534
10535 Suggested by George Anzinger.
10536 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10537 correct stack offset. Include unknown opcode numbers in the error
10538 message.
10539
931aecf5
AC
105402004-01-17 Andrew Cagney <cagney@redhat.com>
10541
10542 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10543 extract_struct_value_address, i386 does not set it.
10544 * sparc64-tdep.c (sparc64_init_abi): Do not set
10545 extract_struct_value_address, never called.
10546 (sparc64_extract_struct_value_address): Delete function.
10547 * m68hc11-tdep.c: Update copyright.
10548 (m68hc11_gdbarch_init): Delete redundant assignment of
10549 extract_struct_value_address.
10550 * i386-tdep.c: Update copyright.
10551 (i386_gdbarch_init): Do not set extract_struct_value_address,
10552 never called.
10553 (i386_extract_struct_value_address): Delete function.
10554 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10555 extract_struct_value_address, never called.
10556 (sparc32_extract_struct_value_address): #if 0 function. Add
10557 comments explaining its future.
10558
756fe439
DJ
105592004-01-17 Daniel Jacobowitz <drow@mvista.com>
10560
10561 * arm-tdep.c (arm_write_pc): New function.
10562 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10563
e74f0f02
DJ
105642004-01-17 Daniel Jacobowitz <drow@mvista.com>
10565
10566 * breakpoint.c (must_shift_inst_regs): Delete.
10567 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10568 and SHIFT_INST_REGS.
10569 * infcmd.c (step_1, step_1_continuation): Delete references to
10570 SHIFT_INST_REGS.
10571 * infrun.c (keep_going): Likewise.
10572 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10573 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10574
b6cb9035
AC
105752004-01-17 Andrew Cagney <cagney@redhat.com>
10576
444a1e2e
AC
10577 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10578 * gdbarch.h, gdbarch.c: Re-generate.
10579 * infcmd.c (print_return_value): Delete reference to
10580 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10581
def7e6ed
AC
10582 * cris-tdep.c (cris_gdbarch_init): Do not set
10583 deprecated_extract_struct_value_address.
10584
07be497a
AC
10585 * xstormy16-tdep.c: Update copyright.
10586 (xstormy16_extract_struct_value_address): Update to current
10587 extract struct value address interface.
10588 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10589 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10590 current extract struct value address interface.
10591 (sh64_gdbarch_init): Set extract_struct_value_address.
10592
6b4d5c91
AC
10593 * cris-tdep.c: Update copyright.
10594 (cris_extract_struct_value_address): Delete function.
10595 (struct_return_address): Delete variable.
10596 (cris_store_struct_return): Do not set struct_return_address.
10597
464e0365
AC
10598 * mcore-tdep.c: Update copyright.
10599 (mcore_extract_struct_value_address): Delete function. Update
10600 comments.
10601 (mcore_gdbarch_init): Update.
10602 * mn10300-tdep.c: Update copyright.
10603 (mn10300_extract_struct_value_address): Delete function.
10604 (mn10300_gdbarch_init): Update.
10605 * v850-tdep.c: Update copyright.
10606 (v850_extract_struct_value_address): Delete.
10607 (v850_gdbarch_init): Update.
10608 * ns32k-tdep.c: Update copyright.
10609 (ns32k_extract_struct_value_address): Delete.
10610 (ns32k_gdbarch_init): Update.
10611 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10612 (hppa_gdbarch_init): Update.
10613 * vax-tdep.c: Update copyright.
10614 (vax_extract_struct_value_address): Delete.
10615 (vax_gdbarch_init): Update.
10616
afb18d0f
AC
10617 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10618 * gdbarch.h, gdbarch.c: Re-generate.
10619 * procfs.c (procfs_fetch_registers): Delete reference to
10620 DEPRECATED_NPC_REGNUM.
10621 (procfs_store_registers): Ditto.
10622 * regcache.c (generic_target_write_pc): Simplify.
10623 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10624
a698f53e
AC
10625 * core-sol2.c (fetch_core_registers): Replace
10626 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10627
adc11376
AC
10628 * hppa-tdep.c: Update copyright year.
10629 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10630 NPC_REGNUM.
10631 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10632
b6cb9035
AC
10633 * mips-tdep.c (mips_write_pc): New function.
10634 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10635 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10636 (mips_find_saved_regs, mips_software_single_step: Ditto.
10637 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10638 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10639
6d82d43b
AC
106402004-01-17 Andrew Cagney <cagney@redhat.com>
10641
10642 * mips-tdep.c: Re-indent. Group functions by ABI.
10643
71bd6bd4
AC
106442004-01-17 Andrew Cagney <cagney@redhat.com>
10645
10646 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10647 * gdbarch.c: Re-generate.
10648 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10649 DECR_PC_AFTER_BREAK to zero.
10650 * vax-tdep.c (vax_gdbarch_init): Ditto.
10651 * v850-tdep.c (v850_gdbarch_init): Ditto.
10652 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10653 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10654 * sh-tdep.c (sh_gdbarch_init): Ditto.
10655 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10656 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10657 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10658 * mips-tdep.c (mips_gdbarch_init): Ditto.
10659 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10660 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10661 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10662 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10663 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10664 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10665 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10666 * frv-tdep.c (frv_gdbarch_init): Ditto.
10667 * cris-tdep.c (cris_gdbarch_init): Ditto.
10668 * avr-tdep.c (avr_gdbarch_init): Ditto.
10669 * arm-tdep.c (arm_gdbarch_init): Ditto.
10670 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10671
a02abb62
JB
106722004-01-17 J. Brobecker <brobecker@gnat.com>
10673
10674 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10675 Delete, no longer used.
10676 (read_subrange_type): New function, mostly extracted from
10677 read_array_type().
10678 (read_array_type): Replace extracted code by call to
10679 read_subrange_type().
10680 (dwarf2_get_attr_constant_value): New function.
10681 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10682 (add_partial_symbol): Likewise.
10683 (process_die): Likewise.
10684 (new_symbol): Likewise.
10685 (read_type_die): Likewise.
10686
cf5b2f1b
AC
106872004-01-16 Andrew Cagney <cagney@redhat.com>
10688
10689 * symfile.c: Update copyright year.
10690 (compare_symbols): Delete unused function.
10691 * stabsread.c: Update copyright year.
10692 (lrs_general_complaint): Delete unused function.
10693 (ref_search_value): Ditto.
10694 (get_substring): Delete declaration.
10695 * sh64-tdep.c: Update copyright year.
10696 (sh64_get_gdb_regnum): Delete unused function.
10697 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10698 Delete unused function.
10699
d33b9831
MK
107002004-01-17 Mark Kettenis <kettenis@gnu.org>
10701
10702 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10703 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10704
7aea86e6
AC
107052004-01-16 Andrew Cagney <cagney@redhat.com>
10706
10707 Changes from Peter Schauer.
10708 * rs6000-tdep.c: Update copyright year.
10709 (rs6000_push_dummy_call): Update the stack pointer before
10710 accessing the corresponding stack region.
10711 * rs6000-nat.c: Update copyright year.
10712 (set_host_arch): Set "info.abfd" to "exec_bfd".
10713
26b0da32
MK
107142004-01-15 Mark Kettenis <kettenis@gnu.org>
10715
10716 * blockframe.c: Update copyright year.
10717 (inside_entry_func): Don't treat a zero PC specially.
10718
86fbe6cc
EZ
107192004-01-14 Elena Zannoni <ezannoni@redhat.com>
10720
10721 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10722 variable.
10723 (gcore_create_callback): Ditto. Skip any memory segment that has
10724 no permissions set.
10725
63d06c5c
DC
107262004-01-14 David Carlton <carlton@kealia.com>
10727
10728 Change symbols for C++ nested types to contain the fully qualified
10729 name, if possible. (At least in the DWARF-2 case.) Partial fix
10730 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10731 c++/895.
10732 * c-exp.y (qualified_type): Handle types nested within classes.
10733 * cp-namespace.c: Update comments.
10734 (cp_set_block_scope): Delete #if 0.
10735 (cp_lookup_nested_type): Handle types nested within classes.
10736 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10737 when appropriate.
10738 (add_partial_symbol): Add the name of the enclosing namespace to
10739 types.
10740 (pdi_needs_namespace): New.
10741 (add_partial_namespace): Tweak comment.
10742 (add_partial_structure): New.
10743 (psymtab_to_symtab_1): Initialize processing_current_prefix
10744 here...
10745 (process_die): instead of here.
10746 (read_structure_scope): Try to figure out the name of the class or
10747 namespace that the structure might be defined within.
10748 (read_enumeration): Generate fully-qualified names, if possible.
10749 (read_namespace): Don't set name to NULL.
10750 (die_specification): New.
10751 (new_symbol): Generate fully-qualified names for types.
10752 (read_type_die): Determine appropriate prefix.
10753 (determine_prefix): New.
10754 (typename_concat): New.
10755 (class_name): New.
10756 * valops.c (value_aggregate_elt): Pass NOSIDE to
10757 value_struct_elt_for_reference.
10758 (value_struct_elt_for_reference): Make static, add NOSIDE
10759 parameter, call value_maybe_namespace_elt as a last resort.
10760 (value_namespace_elt): Break out code into
10761 value_maybe_namespace_elt.
10762 (value_maybe_namespace_elt): New.
10763
87783b8b
AC
107642004-01-12 Andrew Cagney <cagney@redhat.com>
10765
10766 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10767 cooked floating-point registers.
10768 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10769 and value_to_register.
10770
6503b91e
AC
107712004-01-13 Andrew Cagney <cagney@redhat.com>
10772
10773 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10774 * gdbarch.c: Re-generate.
10775 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10776 FUNCTION_START_OFFSET.
10777 * v850-tdep.c (v850_gdbarch_init): Ditto.
10778 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10779 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10780 * sh-tdep.c (sh_gdbarch_init): Ditto.
10781 * s390-tdep.c (s390_gdbarch_init): Ditto.
10782 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10783 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10784 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10785 * mips-tdep.c (mips_gdbarch_init): Ditto.
10786 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10787 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10788 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10789 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10790 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10791 * i386-tdep.c (i386_gdbarch_init): Ditto.
10792 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10793 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10794 * frv-tdep.c (frv_gdbarch_init): Ditto.
10795 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10796 * cris-tdep.c (cris_gdbarch_init): Ditto.
10797 * avr-tdep.c (avr_gdbarch_init): Ditto.
10798 * arm-tdep.c (arm_gdbarch_init): Ditto.
10799 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10800
ea1dd7bc
DJ
108012004-01-13 Daniel Jacobowitz <drow@mvista.com>
10802
10803 * infrun.c (follow_fork_mode_ask): Remove.
10804 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10805 (follow_fork): Simplify and remove internal error for
10806 follow_fork_mode_ask.
10807 (_initialize_infrun): Update "set follow-fork-mode" help text.
10808
0f0cffd2
AC
108092004-01-13 Andrew Cagney <cagney@redhat.com>
10810
10811 * configure.in: Update copyright year.
10812 (build_warnings): Add -Wunused-label.
10813 * configure: Re-generate.
10814
de38af99
AC
108152004-01-12 Andrew Cagney <cagney@redhat.com>
10816
954a7fba
AC
10817 * exec.h (exec_ops): Make "extern".
10818
de38af99
AC
10819 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10820 the function is void.
10821 (mips_pseudo_register_write): Ditto.
10822
1a111ce3
AC
108232004-01-12 Andrew Cagney <cagney@redhat.com>
10824
10825 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10826 call. Never defined.
10827 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10828 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10829 (struct sparc_gregset, struct regcache): Ditto.
10830 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10831
48efe704
AC
108322004-01-12 Andrew Cagney <cagney@redhat.com>
10833
10834 * mi/ChangeLog: Delete file. Renamed to ...
10835 * mi/ChangeLog-1999-2003: New file.
10836 * tui/ChangeLog: Delete file. Renamed to ...
10837 * tui/ChangeLog-1998-2003: New file.
fe61caab 10838
a54124c5
MK
108392004-01-11 Mark Kettenis <kettenis@gnu.org>
10840
2ca62865
MK
10841 * sparc64nbsd-tdep.c: Include "regset.h".
10842 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10843 Remove variables.
10844 (fetch_core_registers): Remove function.
10845 (sparc64nbsd_core_fns): Remove variable.
10846 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10847 functions.
10848 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10849 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10850 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10851
ca9d58e9
MK
10852 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10853 sparc_extract_struct_value_address.
10854 (sparc32_gdbarch_init): Set extract_struct_value_address.
10855 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10856 function.
10857 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10858 return_value_on_stack.
10859
3cc87ec0
MK
10860 * NEWS: Mention that %cs and %ss have been added to the AMD64
10861 configurations
10862
5bf00f29
MK
10863 * frame.c: Update copyright year.
10864 (get_prev_frame): Improve comment.
10865
4f7ec84e
MK
10866 * sparc64fbsd-tdep.c: Include "regset.h".
10867 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10868 Remove variables.
10869 (fetch_core_registers): Remove function.
10870 (sparc64fbsd_core_fns): Remove variable.
10871 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10872 functions.
10873 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10874 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 10875 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 10876
4e7b0cd3
MK
10877 * sparcnbsd-tdep.c: Include "regset.h".
10878 (fetch_core_registers): Remove function.
10879 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
10880 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
10881 functions.
10882 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
10883 TDEP->fpregset.
46b58ce9 10884 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 10885
a54124c5
MK
10886 * sparc-tdep.h (struct regset): Provide opaque declaration.
10887 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
10888 fpregset and sizeof_fpregset members.
10889 * sparc-tdep.c (struct regset): Provide opaque declaration.
10890 (sparc_regset_from_core_section): New function.
10891 (sparc32_gdbarch_init): Initialize TDEP->gregset,
10892 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
10893 Set regset_from_core_section when appropriate.
10894
29ff87c5
MK
108952004-01-10 Mark Kettenis <kettenis@gnu.org>
10896
79b1ab3d
MK
10897 * x86-64-tdep.c (amd64_non_pod_p): New function.
10898 (amd64_classify_aggregate): Return class memory for non-POD
10899 C++ structure types.
10900
6470d250
MK
10901 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
10902 argument. Use it to reserve a register if necessary.
10903 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
10904 amd64_push_arguments.
10905
562c50c2
MK
10906 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
10907
af233647
MK
10908 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
10909 register numbers in comments.
10910 * x86-64-tdep.h: Update copyright year.
10911 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
10912 Adjust for addition of %cs and %ss.
10913 * amd64fbsd-nat.c: Update copyright year.
10914 (reg_offset): Add register offsets for %cs and %ss.
10915 * amd64fbsd-tdep.c: Update copyright year.
10916 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
10917 (amd64fbsd_sc_reg_offset): Likewise.
10918 * x86-64-linux-nat.c: Update copyright year.
10919 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
10920 and %ss.
10921 * amd64nbsd-nat.c: Update copyright year.
10922 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
10923 * amd64nbsd-tdep.c: Update copyright year.
10924 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
10925 * x86-64-linux-tdep.c: Update copyright year.
10926 (user_to_gdb_regmap): Add mapping for %cs and %ss.
10927 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
10928 * regformats/reg-x86-64.dat: Add %cs and %ss.
10929
29ff87c5
MK
10930 * blockframe.c (inside_entry_func): Reformat. Introduce new local
10931 variables to prevent long lines. Update comments to reflect
10932 reality.
10933
38d518c9
EZ
109342004-01-09 David Carlton <carlton@kealia.com>
10935
10936 Checked in by Elena Zannoni <ezannoni@redhat.com>.
10937 * dwarf2read.c (read_namespace): Pull out name-generating code
10938 into namespace_name. Rename previous_namespace to previous_prefix
10939 and processing_current_namespace to processing_current_prefix..
10940 (namespace_name): New function.
10941 (add_partial_symbol): Substitute uses of pdi->name with
10942 actual_name.
10943 * cp-support.h: Rename processing_current_namespace to
10944 processing_current_prefix.
10945 Update copyright year.
10946 * cp-namespace.c: Rename processing_current_namespace to
10947 processing_current_prefix.
10948 Update copyright year.
fe61caab 10949
1e4728e7
AC
109502004-01-09 Andrew Cagney <cagney@redhat.com>
10951
10952 * jv-valprint.c, ser-unix.c: Add missing copyright years.
10953
c77c642a
MK
109542004-01-09 Mark Kettenis <kettenis@gnu.org>
10955
10956 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
10957 complaining.
10958 (process_one_symbol): Deal with N_PATCH stabs.
10959
b44e9041
EZ
109602004-01-09 Elena Zannoni <ezannoni@redhat.com>
10961
10962 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
10963 ifdeffed code.
10964 Update copyright year.
38d518c9 10965
eccfb640
MC
109662004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10967
10968 * config/pa/tm-hppa.h: Update extern declarations for
10969 hppa32_hpux_frame_saved_pc_in_sigtramp,
10970 hppa32_hpux_frame_base_before_sigtramp, and
10971 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
10972
848c5feb
MC
109732004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10974
10975 * config/pa/tm-hppah.h: Update copyright years.
10976
3cc5d663
AC
109772004-01-08 Andrew Cagney <cagney@redhat.com>
10978
10979 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
10980 (mips_o32_reg_struct_has_addr): Delete function.
10981 (mips_gdbarch_init): Update.
10982 (mips_extract_struct_value_address): Delete function.
10983
bfec0b41
JJ
109842004-01-08 David Mosberger <davidm@hpl.hp.com>
10985
10986 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
10987 reality.
10988
16e109ca
AC
109892004-01-07 Andrew Cagney <cagney@redhat.com>
10990
6214a8a1
AC
10991 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
10992 architecture's elf flags (when available).
10993
8d5838b5
AC
10994 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
10995 FPU to the start, check the MIPS FPU when looking for an old
10996 architecture.
10997 (set_mipsfpu_single_command): Update the architecture.
10998 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
10999
480d3dd2
AC
11000 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11001 (mips_mask_address_p): Add "tdep" parameter.
11002 (show_mask_address, mips_addr_bits_remove): Update.
11003 (mips_dump_tdep): Update.
11004 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11005 (MIPS_STACK_ARGSIZE): Delete macro.
11006 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11007 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11008 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11009 (mips_dump_tdep): Update.
11010 (MIPS_SAVED_REGSIZE): Delete macro.
11011 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11012 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11013 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11014 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11015 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11016 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11017 (mips_pop_frame, return_value_location): Update.
11018 (mips_n32n64_return_value, mips_dump_tdep): Update.
11019
ec03c1ac
AC
11020 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11021 MIPS ABI.
11022
16e109ca
AC
11023 * mips-tdep.c: Update copyright.
11024 (mips_gdbarch_init): Merge two code blocks handling the register
11025 name and number layout.
11026
15255275
MS
110272004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11028
11029 * tracepoint.c (validate_actionline): Fix segv at EOF
11030
9f9057da
MC
110312004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11032
11033 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11034 properly for static fields.
11035
0127c0d3 110362004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 11037 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
11038
11039 * disasm.c: Update copyright to include 2004.
11040 (do_mixed_source_and_assembly): For uiout asm list
11041 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 11042 NULL and do so prior to loop. Only reset when we close off
0127c0d3 11043 the tuple/list. Move check for whether to close off the
fe61caab 11044 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
11045 on each loop iteration.
11046
5269965e
AC
110472004-01-05 Andrew Cagney <cagney@redhat.com>
11048
54f1137d
AC
11049 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11050 should be a switch case and not a label.
11051 * mips-tdep.c (mips32_next_pc): Delete unused labels
11052 "greater_equal_branch" and "less_zero_branch".
11053 * jv-valprint.c (java_print_value_fields): Delete unused label
11054 "flush_it".
11055
5269965e
AC
11056 * target.c (unpush_target): Only close a target that is in the
11057 target stack.
11058
dbc22fa1
MK
110592004-01-05 Mark Kettenis <kettenis@gnu.org>
11060
9515395e
MK
11061 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11062 address from [sp + 64] instead of %o2.
11063
dbc22fa1
MK
11064 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11065 fixes PR backtrace/1476.
11066
5439edaa
AC
110672004-01-05 Andrew Cagney <cagney@redhat.com>
11068
11069 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11070 move to start of file.
11071 * i386-tdep.h (struct regcache): Add opaque declaration.
11072 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11073 declaration.
11074 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11075 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11076 * win32-nat.c (fake_create_process): Use ISO C style definition.
11077 * stabsread.c (define_symbol): Delete #ifndef
11078 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11079 stabs_argument_has_addr call, macro never defined.
11080
19061abe
MC
110812004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11082
11083 * op50-rom.c: Delete.
11084 * w89k-rom.c: Delete.
11085 * Makefile.in: Remove references.
11086
e53bef9f
MK
110872004-01-04 Mark Kettenis <kettenis@gnu.org>
11088
11089 * x86-64-tdep.c: Update copyright year.
11090 (struct amd64_register_info): Rename from x86_64_register_info.
11091 (amd64_register_info): Rename from x86_64_register_info.
11092 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11093 (amd64_register_name): Rename from x86_64_register_name.
11094 (amd64_register_type): Rename from x86_64_register_type.
11095 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11096 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11097 (amd64_dwarf_reg_to_regnum): Rename from
11098 x86_64_dwarf_reg_to_regnum.
11099 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11100 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11101 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11102 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11103 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11104 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11105 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11106 (amd64_frame_cache): Rename from x86_64_frame_cache.
11107 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11108 (amd64_frame_prev_register): Rename from
11109 x86_64_frame_prev_register.
11110 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11111 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11112 (amd64_sigtramp_frame_cache): Rename from
11113 x86_64_sigtramp_frame_cache.
11114 (amd64_sigtramp_frame_prev_register): Rename from
11115 x86_64_sigtramp_frame_prev_register.
11116 (amd64_sigtramp_frame_unwind): Rename from
11117 x86_64_sigtramp_frame_unwind.
11118 (amd64_sigtramp_frame_sniffer): Rename from
11119 x86_64_sigtramp_frame_sniffer.
11120 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11121 (amd64_frame_base): Rename from x86_64_frame_base.
11122 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11123 (amd64_frame_align): Rename from x86_64_frame_align.
11124 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11125 (amd64_regset_from_core_section): Rename from
11126 x86_64_regset_from_core_section.
11127 (x86_64_init_abi): Update comments.
11128
fca6aa58
NR
111292004-01-04 Nick Roberts <nick@nick.uklinux.net>
11130
11131 * MAINTAINERS (write after approval): Add myself.
11132
8ada74e3
MK
111332004-01-04 Mark Kettenis <kettenis@gnu.org>
11134
11135 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11136 `float' arguments.
11137
5154b0cd
MK
111382004-01-04 Mark Kettenis <kettenis@gnu.org>
11139
11140 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11141 such that it mentions a specific version of GCC that exhibits this
11142 bug.
11143
fb316966
MK
111442004-01-03 Mark Kettenis <kettenis@gnu.org>
11145
200cc553
MK
11146 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11147 structure that has a single `float' member, store it in %f1 in
11148 addition to %f0.
11149
e226a4a0
MK
11150 * sparc-sol2-nat.c: Add missing '\'.
11151
b9d4c5ed
MK
11152 * sparc-tdep.c (sparc32_return_value): New function.
11153 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11154 Remove functions.
11155 (sparc32_gdbarch_init): Set return_value, don't set
11156 extract_return_value, store_return_value, use_struct_convention
11157 and return_value_on_stack.
11158
fb316966
MK
11159 * sparc-sol2-nat.c: Add missing ')'.
11160
1af510a8
JB
111612004-01-03 J. Brobecker <brobecker@gnat.com>
11162
11163 * infrun.c (handle_step_into_function): New function.
11164 (handle_inferior_event): Extract out some code into the new
11165 function above.
11166
5cf4d23a
JB
111672004-01-03 J. Brobecker <brobecker@gnat.com>
11168
11169 * infrun.c (handle_inferior_event): Move the declaration of
11170 real_stop_pc inside the if blocks where it is used.
11171
60af1db2
MK
111722004-01-03 Mark Kettenis <kettenis@gnu.org>
11173
11174 * sparc64-tdep.c (sparc64_16_byte_align_p)
11175 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11176 Use check_typedef to get subtypes of structures and unions.
11177 (sparc64_store_return_value): Fix calculation of the appropriate
11178 offset into VALBUF when storing a structure or union.
11179 (sparc64_return_value): New function.
11180 (sparc64_use_struct_convention): Remove function.
11181 (sparc64_init_abi): Set return_value, don't set
11182 extract_return_value, store_return_value and
11183 use_struct_convention.
11184
1a901d3f
EZ
111852004-01-03 Eli Zaretskii <eliz@elta.co.il>
11186
11187 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11188 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11189 gdb/config/alpha/xm-alphaosf.h,
11190 gdb/config/powerpc/tm-ppcle-eabi.h,
11191 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11192 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11193 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11194 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11195 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11196 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11197 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11198 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11199 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11200 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11201 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11202 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11203 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11204 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11205 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11206 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11207 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11208 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11209 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11210 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11211 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11212 Remove lines for .cvsignore files.
11213
ef52e463
JB
112142004-01-03 J. Brobecker <brobecker@gnat.com>
11215
11216 * infrun.c: Back out the previous change.
11217
cb1bf9dc
MK
112182004-01-03 Mark Kettenis <kettenis@gnu.org>
11219
f0424ef6
MK
11220 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11221 sparc-*-sunos4* to the list of REMOVED configurations.
11222
cb1bf9dc
MK
11223 * configure.tgt: Add back sparc-*-vxworks*.
11224 * remote-vxsparc.c: Remove all includes except for "defs.h",
11225 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11226 Include "sparc-tdep.h".
11227 (SPARC_R_G1): New define.
11228 (vxsparc_gregset): New variable.
11229 (ext_format_sparc): Remove extern declaration.
11230 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11231 sparc32_supply_fpregset.
11232 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11233 sparc_collect_rwindow and sparc32_collect_fpregset.
11234 * config/sparc/tm-vxworks.h: New file, based on recently removed
11235 tm-vxsparc.h.
11236 * config/sparc/vxworks.mt: New file, based on recently removed
11237 vxworks.mt.
fe61caab 11238
5e938f9f
JB
112392004-01-03 J. Brobecker <brobecker@gnat.com>
11240
11241 * infrun.c (handle_step_into_function): New function.
11242 (handle_inferior_event): Extract out some code into the new
11243 function above.
11244
386c036b
MK
112452004-01-02 Mark Kettenis <kettenis@gnu.org>
11246
11247 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11248 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11249 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11250 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11251 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11252 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11253 (sparc_nat_h): New variable.
11254 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11255 (tm-sun4os4.h): Remove dependency.
11256 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11257 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11258 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11259 sparc-tdep.o): Update dependencies.
11260 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11261 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11262 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11263 dependencies.
11264 * configure.host: Remove existing sparc-*-lynxos*,
11265 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11266 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11267 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11268 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11269 triplets.
11270 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11271 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11272 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11273 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11274 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11275 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11276 sparc64-*-solaris2* and sparc64-*-* triplets.
11277 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11278 "symtab.h" and "objfiles.h".
11279 (BIAS): Remove define.
11280 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11281 (X_DISP19): Remove macros.
11282 (sparc_fetch_instruction): Remove function.
11283 (struct gdbarch_tdep): Remove definition.
11284 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11285 (sparc_breakpoint_from_pc): Remove function.
11286 (struct sparc64_frame_cache): Remove definition.
11287 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11288 sparc64_unwind_pc): Remove functions.
11289 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11290 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11291 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11292 (sparc64_frame_cache): Change return type to `struct
11293 sparc_frame_cache *'. Simply call sparc_frame_cache.
11294 (sparc64_frame_this_id, sparc64_frame_prev_register,
11295 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11296 instead of `struct sparc64_frame_cache.
11297 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11298 sparc_analyze_control_transfer, sparc_software_single_step,
11299 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11300 _initialize_sparc64_tdep): Remove functions.
11301 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11302 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11303 macros.
11304 (sparc64_supply_gregset, sparc64_collect_gregset,
11305 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11306 (sparc64_init_abi): New function.
11307 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11308 inclusion guard. Include "sparc-tdep.h".
11309 (BIAS): Define.
11310 (r_tstate_offset, r_fprs_offset): New defines.
11311 (enum sparc_regnum): Remove defenition.
11312 (enum sparc64_regnum): Reformat.
11313 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11314 (sparc64_init_abi, sparc64_supply_gregset,
11315 sparc64_collect_gregset, sparc64_supply_fpregset,
11316 sparc64_collect_fpregset): New prototypes.
11317 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11318 Add extern declarations.
11319 (sparc64_sol2_init_abi): New prototype.
11320 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11321 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11322 prototypes.
11323 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11324 "sparnbsd-nat.h".
11325 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11326 functions.
11327 (_initialize_sparc64fbsd_nat): Remove initialization of
11328 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11329 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 11330 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
11331 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11332 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11333 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11334 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11335 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11336 (sparc64fbsd_r_y_offset): Remove variables.
11337 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11338 Make static and const.
11339 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11340 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11341 functions.
11342 (sparc64fbsd_gregset): New variable.
11343 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11344 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11345 and sparc64_supply_fpregset.
11346 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11347 (sparc64fbsd_sigtramp_frame_this_id)
11348 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11349 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11350 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11351 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11352 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11353 * sparcnbsd-tdep.c: Update copyright year. Include
11354 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11355 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11356 "value.h" and "sparcnbsd-tdep.h".
11357 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11358 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11359 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11360 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11361 defines.
11362 (sparcnbsd_gregset): New variable.
11363 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11364 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11365 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11366 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11367 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11368 variables.
11369 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11370 (sparc32nbsd_sigcontext_frame_this_id)
11371 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11372 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11373 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11374 (sparcnbsd_get_longjmp_target_32,
11375 sparcnbsd_get_longjmp_target_64): Remove functions.
11376 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11377 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11378 sparcnbsd_init_elf): Remove.
11379 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11380 (sparcnbsd_elf_init_abi): New functions.
11381 (_initialize_sparcnbsd_tdep): New prototype.
11382 (_initialize_sparnbsd_tdep): Update.
11383 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11384 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11385 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11386 * config/sparc/linux.mh: Update comment.
11387 (XM_FILE, HOST_IPC): Remove variables.
11388 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11389 sparc-linux-nat.o.
11390 * config/sparc/linux.mt: Update comment.
11391 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11392 * config/sparc/nbsd.mt: Reformat.
11393 * config/sparc/nbsd64.mh: Update comment.
11394 (NATDEPFILES): Add sparc-nat.o.
11395 * config/sparc/nbsd64.mt: Update comment.
11396 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11397 (TM_FILE): Set to tm-nbsd.h.
11398 * config/sparc/nbsdelf.mh: Update comment.
11399 (NATDEPFILES): Add sparc-nat.o.
11400 (XM_FILE): Delete.
11401 * config/sparc/nbsdaout.mh: Update comment.
11402 (NATDEPFILES): Add sparc-nat.o
11403 (XM_FILE): Delete.
11404 * config/sparc/nm-linux.h: Update copyright year. Don't include
11405 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11406 inclusion.
11407 (KERNEL_U_SIZE): Remove define.
11408 (kernel_u_size): Remove prototype.
11409 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11410 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11411 "regcache.h".
11412 (CHILD_PREPARE_TO_STORE): Remove define.
11413 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11414 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11415 sparcnbsd-nat.c: Rewrite files.
11416 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11417 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11418 sparcnbsd-tdep.h: Remove files.
11419 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11420 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11421 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11422 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11423 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11424 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11425 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11426 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11427 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11428 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11429 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11430 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11431 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11432 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11433 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11434 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11435 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11436 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11437 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11438
ee84457a
AC
114392004-01-02 Andrew Cagney <cagney@redhat.com>
11440
11441 From 2003-12-18 Kazuhiro Inaoka:
11442 * configure.host: Add m32r-linux target.
11443
0bc2134e
MC
114442004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11445
11446 * top.c (print_gdb_version): Update year to 2004.
11447
89a72f9c
MM
114482004-01-02 Mark Mitchell <mark@codesourcery.com>
11449
11450 * MAINTAINERS: Add myself to the write-after-approval category.
11451
86b013ed
DJ
114522004-01-02 Daniel Jacobowitz <drow@mvista.com>
11453
11454 From Bernardo Innocenti <bernie@develer.com>:
11455 * configure.tgt: Add uClinux target.
11456
e42c9534
AC
114572004-01-02 Andrew Cagney <cagney@redhat.com>
11458
11459 * utils.c (do_my_cleanups): Make static, add forward declaration.
11460 * defs.h (do_my_cleanups): Delete declaration.
11461
162467d3
EZ
114622004-01-02 Eli Zaretskii <eliz@elta.co.il>
11463
11464 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11465 bfd/ChangeLog-0203.
11466
78434e59
MK
114672004-01-02 Mark Kettenis <kettenis@gnu.org>
11468
11469 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11470 in <machine/reg.h>.
11471 * configure, config.in: Regenerate.
11472
48efe704
AC
11473For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11474tui/ChangeLog-1998-2003.
c906108c
SS
11475\f
11476Local Variables:
11477mode: change-log
11478left-margin: 8
11479fill-column: 74
11480version-control: never
11481End:
This page took 1.387017 seconds and 4 git commands to generate.