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
f7f0fe03
AC
3 * config/m68k/tm-st2000.h: Delete.
4 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
5 * config/sparc/fbsd.mt (TM_FILE): Delete.
6 * config/sparc/tm-fbsd.h: Delete.
7
a2558533
AC
8 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
9 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
10 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
11
b78960be
AC
12 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
13 GDB_TM_FILE and GDB_XM_FILE.
14 * gdbarch.c: Re-generate.
15 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
16 quotes in macro definition.
17 * configure.in: Re-generate.
18
4d60522e
AC
19 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
20 validating architecture methods.
21 * gdbarch.c: Re-generate.
22
5010d38b
AC
23 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
24 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
25 GDB_MULTI_ARCH_PARTIAL.
26 * gdbarch.h: Re-generate.
27
c185a355
AC
28 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
29 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
30 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
31 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
32 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
33 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
34 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
35 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
36 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
37 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
38 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
39 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
40
14aaa6ab
AC
412004-09-01 Andrew Cagney <cagney@gnu.org>
42
43 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
44 and main_func_highpc.
45 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
46 * objfiles.c (init_entry_point_info, objfile_relocate): Update
47 * nlmread.c (nlm_symfile_read): Update.
48
a343eb3c
JB
492004-09-01 Joel Brobecker <brobecker@gnat.com>
50
51 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
52 (mips_insn32_frame_cache): Inline call to find_proc_desc.
53 (find_proc_desc): Remove dead code.
54
4fbbbd07
JB
552004-09-01 Joel Brobecker <brobecker@gnat.com>
56
57 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
58
84acb35a
JJ
592004-09-01 Jeff Johnston <jjohnstn@redhat.com>
60
61 * observer.sh: Add struct so_list declaration.
62 * Makefile.in: Add dependencies on observer.h for solib.c and
63 breakpoint.c.
64 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
65 function.
66 (_initialize_breakpoint): Register
67 disable_breakpoints_in_unloaded_shlib as an observer of the
68 "solib unloaded" observation event.
69 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
70 call decode_line_1 so unfound breakpoint errors are silent.
71 * solib.c (update_solib_list): When a solib is discovered to have
72 been unloaded by the program, notify all observers of the
73 "solib unloaded" observation event.
74
c8cd9f6c
AC
752004-09-01 Andrew Cagney <cagney@gnu.org>
76
77 * frame.c: Include "objfiles.h".
78 (inside_main_func): New function.
79 (get_prev_frame): Use new inside_main_func.
80 * Makefile.in (frame.o): Update dependencies.
81 * defs.h (inside_main_func): Delete declaration.
82 * blockframe.c (inside_main_func): Delete function.
83
1168df01
JB
842004-08-31 Jim Blandy <jimb@redhat.com>
85
86 * dwarf2read.c (is_vtable_name): New function, based on logic from
87 read_structure_type, but passing the correct length to strncmp,
88 and using 'sizeof' instead of 'strlen'.
89 (read_structure_type): Call it.
90
f14f9744
JB
912004-08-31 Joel Brobecker <brobecker@gnat.com>
92
93 * config/powerpc/aix.mh: Add comment.
94
386d4518
PG
952004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
96
97 * MAINTAINERS: Add self to Write-After-Approval.
98
7d97d5e2
MI
992004-08-30 Manoj Iyer <manjo@austin.ibm.com>
100
101 * MAINTAINERS: Add self to Write-After-Approval.
102
68f53502
AC
1032004-08-30 Andrew Cagney <cagney@gnu.org>
104
105 Fix PR breakpoints/1757.
106 * infrun.c (struct execution_control_state): Replace
107 remove_breakpoints_on_following_step with
108 step_after_step_resume_breakpoint.
109 (init_execution_control_state): Update.
110 (handle_inferior_event): For signals, when stepping off a
111 breakpoint, set step_after_step_resume_breakpoint. When
112 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
113 (keep_going): Delete code handling
114 remove_breakpoints_on_following_step.
115
7ca2d3a3
DL
1162004-08-29 David Lecomber <david@streamline-computing.com>
117
118 Fix PR gdb/648
119 * language.h (enum array_ordering): New enum.
120 * language.h (struct language_defn): New la_array_ordering
121 attribute.
122 * language.c (unknown_language_defn, auto_language_defn)
123 (local_language_defn): Ditto.
124 * ada-lang.c (ada_language_defn): Ditto.
125 * c-lang.c (c_language_defn, cplus_language_defn)
126 (asm_language_defn, minimal_language_defn): Ditto.
127 * f-lang.c (f_language_defn): Ditto.
128 * jv-lang.c (java_language_defn): Ditto.
129 * m2-lang.c (f_language_defn): Ditto.
130 * objc-lang.c (objc_language_defn): Ditto.
131 * p-lang.c (pascal_language_defn): Ditto.
132 * scm-lang.c (scm_language_defn): Ditto.
133 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
134 oriented large to small in type structure.
135 * dwarf2read.c (read_array_order): New function.
136 (read_array_type): Use read_array_order to check row/column
137 major ordering.
138
e354df01
NW
1392004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
140
141 * target.c (target_resize_to_sections): Check
142 current_target.to_sections for an old value when updating.
143
9185ddce
JB
1442004-08-27 Joel Brobecker <brobecker@gnat.com>
145
146 * procfs.c (dbx_link_bpt_addr): New static global variable.
147 (dbx_link_shadow_contents): New static global variable.
148 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
149 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
150 if we just hit it.
151 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
152 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
153 from run to run.
154 (procfs_create_inferior): Remove syssgi syscall-exit notifications
155 after the inferior has been forked.
156 (remove_dbx_link_breakpoint): New function.
157 (dbx_link_addr): New function.
158 (insert_dbx_link_bpt_in_file): New function.
159 (insert_dbx_link_bpt_in_region): New function.
160 (insert_dbx_link_breakpoint): New function.
161 (proc_trace_syscalls_1): New function, extracted from
162 proc_trace_syscalls.
163 (proc_trace_syscalls): Replace extract code by call to
164 proc_trace_syscalls_1.
165 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
166 is no longer valid.
167
e6742ace
JB
1682004-08-25 Jim Blandy <jimb@redhat.com>
169
170 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
171
8fb3e588
AC
1722004-08-25 Andrew Cagney <cagney@gnu.org>
173
629a41ee
AC
174 * infrun.c (struct execution_control_state): Delete field
175 "stepping_through_sigtramp".
176 (init_execution_control_state): Do not set same.
177 (context_switch): Do not pass same to save_infrun_state and
178 load_infrun_state.
179 * gdbthread.h (struct thread_info): Delete field
180 stepping_through_sigtramp.
181 (save_infrun_state, load_infrun_state): Delete parameter
182 stepping_through_sigtramp.
183 * thread.c (load_infrun_state, save_infrun_state): Update.
184
8fb3e588
AC
185 * infrun.c: Re-indent. Move expression operators to the beginning
186 of the line. Remove long disabled #if 0 code.
187
49c54768
AC
1882004-08-24 Andrew Cagney <cagney@gnu.org>
189
190 * doublest.h (floatformat_ieee_quad): Rename
191 floatformat_ia64_quad.
192 * doublest.c (floatformat_ieee_quad): Rename
193 floatformat_ia64_quad.
194 (_initialize_doublest): Update.
195
5ca2e327
JB
1962004-08-24 Jim Blandy <jimb@redhat.com>
197
87808bd6
JB
198 * dwarf2expr.h (struct dwarf_expr_context): New members
199 'num_pieces' and 'pieces', for returning the result of an
200 expression that uses DW_OP_piece.
201 (struct dwarf_expr_piece): New struct type.
202 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
203 pieces.
204 (free_dwarf_expr_context): Free pieces, if any.
205 (add_piece): New function.
206 (execute_stack_op): Implement DW_OP_piece.
207 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
208 expression is a list of pieces, print an error message.
209 (dwarf2_loc_desc_needs_frame): If the expression yields
210 pieces, and any piece is in a register, then we need a frame.
211
5ca2e327
JB
212 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
213 the stack until we've decided what sort of result the evaluation
214 has produced. Use separate variables, with more specific names.
215
2afeb6b8
RE
2162004-08-23 Richard Earnshaw <rearnsha@arm.com>
217
218 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
219 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
220 (arm_netbsd_init_abi_common): Register them.
221
5885ab49
MK
2222004-08-22 Mark Kettenis <kettenis@gnu.org>
223
fda820a6
MK
224 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
225
1c5bf419
MK
226 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
227 safe_frame_unwind_memory instead of target_read_memory.
228
8cbba7c8
MK
229 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
230 Reorder includes.
231 (fetch_register, store_register): Remove prototypes.
232 (child_resume): Reorganize code and comments such that it is
233 grouped a bit more logically.
234 (attach): Explicitly compare errno against 0.
235 (detach): Likewise. Use perror_with_name instead of
236 print_sys_errmsg.
237 * Makefile.in (infptrace.o): Update dependencies.
238
c5fa4245
MK
239 * ia64-linux-nat.c: Update copyright year.
240 (fetch_debug_register, store_debug_register)
241 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
242 PTRACE_TYPE_ARG3.
243 * config/ia64/nm-linux.h: Update copyright year.
244 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
245
387c058c
MK
246 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
247 from CORE_ADDR to struct frame_info *. Use
248 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
249 (amd64_linux_sigtramp_p): Adjust for changed signature of
250 and64_linux_sigtramp_start
251
277215a6
MK
252 * gdb_ptrace.h: GNU/Linux.
253
25f6178e
MK
254 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
255 Remove defines.
256
652fc137
MK
257 * infptrace.c: Include "gdb_assert.h".
258 (PTRACE_XFER_TYPE): Remove define.
259 (offsetof): Only define if U_REGS_OFFSET isn't defined.
260 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
261 Tweak comment.
262 (fetch_inferior_registers, store_inferior_registers): Remove
263 redundant culry braces. Tweak comment. s/regno/regnum.
264 * Makefile.in (infptrace.o): Update dependencies.
265
5885ab49
MK
266 * configure.in: Change test for return type of ptrace to default
267 to `long' instead of `int'.
268 * configure: Regenerate.
269
11003ae3
MK
2702004-08-21 Mark Kettenis <kettenis@gnu.org>
271
6b95110c
MK
272 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
273
bcb3dc3d
MK
274 * configure.in: Check for ttrace function.
275 * configure, config.in: Regenerate.
276
11003ae3
MK
277 * gdb_ptrace.h: New file.
278 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
279 <sys/ptrace.h>.
280 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
281 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
282 (attach): Don't define PT_ATTACH.
283 (detach): Don't define PT_DETACH.
284 * Makefile.in (gdb_ptrace_h): New variable.
285 (infptrace.o): Update dependencies.
286
f8707cac
MK
2872004-08-16 Mark Kettenis <kettenis@gnu.org>
288
289 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
290 instead of `int' if not already defined.
291 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
292 PTRACE_TYPE_ARG3.
293 * infptrace.c (call_ptrace): Revert change that replaced
294 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
295
655c5466
MK
2962004-08-15 Mark Kettenis <kettenis@gnu.org>
297
156e5ba7
MK
298 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
299 Remove defines.
300
de9a9e51
MK
301 * linux-nat.c (kill_inferior): Add missing third and fourth
302 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
303
88800403
MK
304 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
305 PTRACE_TYPE_RET.
306
849a1d7c
MK
307 * proc-why.c (proc_prettyfprint_why): Fix format string.
308
61ad16d1
MK
309 * solib-osf.c (osf_current_sos): Remove unsused label.
310
a6ed5501
MK
311 * configure.in: Add <ncurses/ncurses.h> to the list of possible
312 curses headers.
313 * configure, config.in: Regenerate.
314 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
315 <ncurses/ncurses.h>.
316
016ddeca
MK
317 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
318 * config/nm-nbsd.h: Update copyright year.
319 (PTRACE_ARG3_TYPE): Remove define.
320
49ec097f
MK
321 * sparc-nat.c (fetch_inferior_registers)
322 (store_inferior_registers, sparc_xfer_wcookie):
323 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
324
9f8e0089
MK
325 * alphabsd-nat.c (fetch_inferior_registers):
326 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
327 PTRACE_TYPE_ARG3.
328 * amd64bsd-nat.c (fetch_inferior_registers)
329 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
330 PTRACE_TYPE_ARG3.
331 * armnbsd-nat.c: Update copyright year.
332 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
333 (store_register, store_regs, store_fp_register, store_fp_regs):
334 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
335 * hppabsd-nat.c (fetch_inferior_registers)
336 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
337 PTRACE_TYPE_ARG3.
338 * i386bsd-nat.c (fetch_inferior_registers)
339 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
340 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
341 * m68kbsd-nat.c (fetch_inferior_registers)
342 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
343 PTRACE_TYPE_ARG3.
344 * m88kbsd-nat.c (fetch_inferior_registers)
345 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
346 PTRACE_TYPE_ARG3.
347 * mipsnbsd-nat.c: Update copyright year.
348 (fetch_inferior_registers, store_inferior_registers):
349 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
350 * ns32knbsd-nat.c: Update copyright year.
351 (fetch_inferior_registers, store_inferior_registers):
352 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
353 * ppcnbsd-nat.c (fetch_inferior_registers):
354 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
355 PTRACE_TYPE_ARG3.
356 * ppcobsd-nat.c (fetch_inferior_registers):
357 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
358 PTRACE_TYPE_ARG3.
359 * shnbsd-nat.c: Update copyright year.
360 (fetch_inferior_registers, store_inferior_registers):
361 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
362 * vaxbsd-nat.c (fetch_inferior_registers)
363 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
364 PTRACE_TYPE_ARG3.
365
655c5466
MK
366 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
367 PTRACE_TYPE_ARG3.
368 * infptrace.c (call_ptrace, child_resume, attach, detach)
369 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
370 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
371 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
372 PTRACE_TYPE_ARG3.
373
c40d0d10
MK
3742004-08-14 Mark Kettenis <kettenis@gnu.org>
375
5cb0ff31
MK
376 * defs.h: Remove out-of-date comment.
377 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
378 [!GETENV_PROVIDED] (getenv): Remove prototype.
379
5f0f34cb
MK
380 * standalone.c: Remove file.
381 * Makefile.in (standalone.o): Remove dependency.
382
7532965f
MK
383 * i386-linux-nat.c (dummy_sse_values): Remove function and
384 prototype.
385 (i386_linux_dr_get): Fix typo in comment.
386 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
387
1bdc6c53
MK
388 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
389
c40d0d10
MK
390 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
391 from declaration.
392 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
393 from definition.
394
64218d3e
MK
3952004-08-13 Mark Kettenis <kettenis@gnu.org>
396
397 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
398 parenthesis in definition.
399 * configure: Regenerated.
400
926c94e7
MC
4012004-08-12 Michael Chastain <mec.gnu@mindspring.com>
402
403 * PROBLEMS: Mention build/1411.
404
69489883
NN
4052004-08-09 Robert Millan <robertmh@gnu.org>
406
407 Committed by Nathanael Nerode.
408 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
409 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
410
ebb7c577
AC
4112004-08-12 Andrew Cagney <cagney@gnu.org>
412
413 * NEWS: Mention fixes in GDB 6.2.1.
414 * PROBLEMS: Remove mention of mips-irix.
415
232d697c
JB
4162004-08-11 Joel Brobecker <brobecker@gnat.com>
417
418 * config/powerpc/xm-aix.h: Delete.
419 * config/powerpc/aix.mh (MH_FILE): Remove.
420 * config/powerpc/aix432.mh (MH_FILE): Remove.
421
72f4e82b
JB
4222004-08-11 Joel Brobecker <brobecker@gnat.com>
423
424 * config/powerpc/aix.mh: Remove obsolete comment.
425 * config/powerpc/aix432.mh: Likewise.
426
0687ccb2
JB
4272004-08-11 Joel Brobecker <brobecker@gnat.com>
428
429 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
430
dbf3ada7
JB
4312004-08-11 Joel Brobecker <brobecker@gnat.com>
432
e08e1886
JB
433 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
434 this file is now empty.
435 * config/xm-aix4.h: Remove, this file is no longer included
436 anywhere.
437
4382004-08-11 Joel Brobecker <brobecker@gnat.com>
439
440 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
441 that file is now empty.
dbf3ada7
JB
442 (termdef): Remove prototype, function no longer used.
443
4c525ef6
JB
4442004-08-11 Joel Brobecker <brobecker@gnat.com>
445
446 * doc/gdbint.texinfo (Host Definition): Remove documentation
447 for USE_O_NOCTTY, no longer used.
448 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
449 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
450
82e0b968
JB
4512004-08-11 Joel Brobecker <brobecker@gnat.com>
452
453 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
454 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
455 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
456
f2acbe1c
MK
4572004-08-11 Mark Kettenis <kettenis@gnu.org>
458
daa98270
MK
459 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
460 instead of FIVE_ARG_PTRACE.
461
f2acbe1c
MK
462 * inflow.c (O_NOCTTY): Define to zero if not already defined.
463 (new_tty): Use O_NOCTTY unconditionally.
464
cc377e6b
MK
4652004-08-10 Mark Kettenis <kettenis@gnu.org>
466
467 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
468 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
469 fflush on stdout.
470
3bcc18fa
JB
4712004-08-10 Joel Brobecker <brobecker@gnat.com>
472
473 * xcoff_symfile_finish: Replace last call to xmfree by call
474 to xfree.
475
7936743b
AC
4762004-08-10 Andrew Cagney <cagney@gnu.org>
477
cc503c8a
AC
478 * main.c (captured_main): Delete call to init_malloc.
479 * defs.h (init_malloc): Delete declaration.
480 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
481 (init_malloc): Delete functions.
482
2dc74dc1
AC
483 * defs.h (xmfree): Delete.
484 * utils.c (xmfree): Delete function.
485 (xfree): Inline calls to xmfree and mfree.
486 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
487 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
488 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
489 * somread.c (som_symfile_finish): Ditto.
490 * objfiles.c (allocate_objfile, free_objfile):
491 * nlmread.c (nlm_symfile_finish): Ditto.
492 * hpread.c (hpread_symfile_finish): Ditto.
493 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
494 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
495 * coffread.c (coff_symfile_finish): Ditto.
496
aa2ee5f6
AC
497 * defs.h (xmcalloc): Delete declaration.
498 * utils.c (xmcalloc): Delete.
499 (xcalloc): Inline calls to xmcalloc and mcalloc.
500 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
501 xcalloc and xfree.
502 * symtab.c (create_demangled_names_hash): Ditto.
503
0efffb96
AC
504 * defs.h (xmrealloc): Delete.
505 * utils.c (xmrealloc): Delete.
506 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
507 * symmisc.c (extend_psymbol_list): Use xrealloc.
508 * source.c (find_source_lines): Ditto.
509 * hpread.c (hpread_lookup_type): Ditto.
510 * dbxread.c (add_bincl_to_list): Ditto.
511
7936743b
AC
512 * utils.c (xmmalloc): Delete.
513 (xmalloc): Inline xmmalloc and mmalloc calls.
514 (msavestring): Use xmalloc.
515 * defs.h (xmmalloc): Delete declaration.
516 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
517 xmmalloc.
518 * symmisc.c (extend_psymbol_list): Ditto.
519 * symfile.c (init_psymbol_list): Ditto.
520 * source.c (find_source_lines): Ditto.
521 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
522 * elfread.c (elf_symtab_read): Ditto.
523 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
524 * coffread.c (coff_symfile_init): Ditto.
525
252ab814
DC
5262004-08-10 David Carlton <carlton@bactrian.org>
527
528 * MAINTAINERS: Remove David Carlton from c++ testsuite
529 maintainers.
530
8f5ba92b
JG
5312004-08-10 Jerome Guitton <guitton@gnat.com>
532
533 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
534 print a line feed before the prompt.
535
21749010
MK
5362004-08-10 Mark Kettenis <kettenis@gnu.org>
537
538 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
539
1f011ce2
JB
5402004-08-09 Joel Brobecker <brobecker@gnat.com>
541
542 General cleanup of the AIX xm include file:
543 * config/xm-aix4.h (fd_set): Remove undefine.
544 Remove include of <sys/select.h>.
545 (HAVE_TERMIO): Remove define.
546 (USG): Likewise.
547 (NULL): Remove redefine.
548 (alloca): Remove #pragma.
549 (vfork): Remove define.
550 (termdef): Remove.
551 (SIGWINCH_HANDLER): Remove.
552 (SIGWINCH_HANDLER_BODY): Remove.
553
cf4e7692
MK
5542004-08-09 Mark Kettenis <kettenis@gnu.org>
555
556 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
557 GDB_OSABI_OPENBSD_ELF.
558
ac5754fa
MK
5592004-08-07 Robert Millan <robertmh@gnu.org>
560
561 * bsd-kvm.c: Check for nlist.h before including it.
562
086ec9eb
MK
5632004-08-09 Mark Kettenis <kettenis@gnu.org>
564
bbe06c74
MK
565 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
566 sigcontext' offset consistency checks for ancient BSD.
567
3aa7b3b3
MK
568 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
569
086ec9eb
MK
570 * configure.in: Check for <sys/types.h>. Check return and
571 argument types of ptrace.
572 * configure, config.in: Regenerate.
573
09991fa0
JB
5742004-08-09 Jim Blandy <jimb@redhat.com>
575
576 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
577 rs6000_register_sim_regno): Doc fixes.
578
fed7ba43
JB
5792004-08-08 Joel Brobecker <brobecker@gnat.com>
580
581 * mips-tdep.c: Include "floatformat.h".
582 (n32n64_floatformat_always_valid): New function.
583 (floatformat_n32n64_long_double_big): New constant.
584 (mips_gdbarch_init): Set size and format of long double
585 for N32 and N64 ABIs.
586 * Makefile.in (mips-tdep.o): Update dependencies.
587
456fcf94
AC
5882004-08-08 Andrew Cagney <cagney@gnu.org>
589
2f9b146e
AC
590 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
591 print. Improve script's error messages.
592 * gdbarch.h: Re-generate.
593
456fcf94
AC
594 * gdbarch.sh (pformat): New function.
595 (float_format, double_format, long_double_format): List with bit
596 members. Use pformat when printing.
597 * gdbarch.c, gdbarch.h: Re-generate.
598
69e9e646
NW
5992004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
600
601 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
602 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
603 (ppcnbsd_supply_pcb): New function.
604 (_initialize_ppcnbsd_nat): New prototype and function.
605 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
606 (LOADLIBES): New variable.
607 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
608
5ef2d0aa
AC
6092004-08-08 Andrew Cagney <cagney@gnu.org>
610
611 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
612 (builtin_type_ieee_double, builtin_type_ia64_quad)
613 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
614 BE/LE floating-point types.
615 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
616 (builtin_type_ieee_double, builtin_type_ia64_quad)
617 (builtin_type_ia64_spill): Declare.
618 * doublest.c (_initialize_doublest, floatformat_ieee_single)
619 (floatformat_ieee_double, floatformat_arm_ext)
620 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
621 of LE/BE floatformats.
622 * doublest.h: (struct floatformat, floatformat_ieee_single)
623 (floatformat_ieee_double, floatformat_arm_ext)
624 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
625
5c7f2947
MK
6262004-08-08 Mark Kettenis <kettenis@gnu.org>
627
ecac404d
MK
628 * i386gnu-nat.c (gnu_store_registers): Fix typo.
629
9b8607ce
MK
630 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
631 instead of regcache_raw_supply when storing the registers.
632
f6052080
MK
633 * i386gnu-nat.c: Update copyright year.
634 (gnu_store_registers): Don't use deprecated_registers and
635 deprecated_registers_valid. Use regcache_valid_p and
636 regcache_raw_supply instead.
637
17777823
MK
638 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
639 frame_pc_unwind.
640
5240ceac
MK
641 * procfs.c (procfs_pid_to_str): Remove redundant and unused
642 variables. Incapitalized "process".
643
5c7f2947
MK
644 * configure.in: Add cursesX to the list of possible curses libs.
645 Add cursesX.h to the list of possible curses headers.
646 * configure, config.in: Regenerate.
647
da7d81e3
NW
6482004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
649
650 * configure.in: Test for struct lwp in <sys/lwp.h>.
651 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
652 the offset of l_addr in struct lwp.
653
7f245d65
NW
6542004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
655
656 * bsd-kvm.c: Include "gdbcore.h"
657 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
658
47b3f456
AC
6592004-08-07 Andrew Cagney <cagney@gnu.org>
660
70bd8e24
AC
661 * gdbtypes.c (build_flt, build_complex): New functions.
662 (gdbtypes_post_init): Use.
663
9b0dea39
AC
664 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
665
5cf7abac
AC
666 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
667 through to builtin_type_uint128.
668
64d2b26d
AC
669 * c-exp.y: Use builtin_type function to obtain builtin types.
670
7ad6570d
AC
671 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
672 builtin_uint128.
673 * gdbtypes.c (gdbtypes_post_init): Update.
674 (build_gdbtypes): Move initialization of builtin_type_int0
675 through to builtin_type_uint128 from here ...
676 (_initialize_gdbtypes): ... to here.
677 * d10v-tdep.c (d10v_register_type): Update.
678
47b3f456
AC
679 * doublest.c: Update copyright.
680 (floatformat_from_length): Call error when floatformat is NULL.
681 (extract_floating_by_length): Remove NULL fmt check.
682 (store_floating_by_length): Ditto.
683
0a8146bf
AC
6842004-08-07 Andrew Cagney <cagney@gnu.org>
685
686 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
687 that the register is valid.
688
c0ccb908
MK
6892004-08-05 Mark Kettenis <kettenis@chello.nl>
690
8e6bed05
MK
691 * i386-linux-tdep.c (i386_linux_sigtramp_start)
692 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
693 struct frame_info *. Use safe_frame_unwind_memory instead of
694 deprecated_read_memory_nobpt.
695 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
696 changed signature of i386_linux_sigtramp_start and
697 i386_linux_rt_sigtramp_start.
698
24f9f5e3
MK
699 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
700 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
701 instead of deprecated_read_memory_nobpt.
702 (i386nbsd_sigtramp_p): Adjust for changed signature of
703 i386nbsd_sigtramp_offset.
704
c822af0c
MK
705 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
706 safe_frame_unwind_memory instead of target_read_memory.
707
c0ccb908
MK
708 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
709 !NO_SYS_FILE.
710 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
711 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
712 (_initialize_kernel_u_addr): Remove prototype and function.
713 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
714 !NO_SYS_FILE.
715 * xcoffread.c: Likewise.
716
b9e1c0d6
MK
7172004-08-06 Mark Kettenis <kettenis@gnu.org>
718
719 * vax-nat.c: New file.
720 * vaxbsd-nat.c: Tweak comment.
721 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
722 vaxnbsd-tdep.c.
723 (vax-nat.o): New dependency.
724 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
725 (vax-*-ultrix2*): Remove.
726 * config/vax/vax.mh: New file.
727 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
728 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
729 (vax_register_u_addr): New prototype.
730 (REGISTER_U_ADDR): Define using vax_register_u_addr.
731 * config/vax/vaxult2.mh: Remove file.
732 * config/vax/vaxult.mh: Remove file.
733 * config/vax/vaxbsd.mh: Remove file.
734 * config/vax/vax.mt (TM_FILE): Remove.
735 * config/vax/tm-vaxbsd.h: Remove file.
736
9ad7bec7
JB
7372004-08-06 Joel Brobecker <brobecker@gnat.com>
738
739 * aix-thread.c (get_signaled_thread): New function.
740 (iter_trap): Delete, no longer used.
741 (iter_tid): New function.
742 (pd_update): Find the thread that received the SIGTRAP signal
743 by first locating the kernel thread, and then finding its
744 associated thread.
745
bf0d233d
UW
7462004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
747
748 * lin-lwp.c (child_wait): Continue inferior after processing
749 PTRACE_EVENT_CLONE event.
750
d0f853e1
NN
7512004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
752
753 * MAINTAINERS: Add self to Write-After-Approval.
754
ab14aeb0
JJ
7552004-08-05 Jeff Johnston <jjohnstn@redhat.com>
756
757 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
758 libunwind-xxxx.so" where xxxx is UNW_TARGET.
759
9c8dbfa9
AC
7602004-08-05 Andrew Cagney <cagney@gnu.org>
761
c8f3ca46
AC
762 * config/xm-sysv4.h: Delete file.
763 * config/mips/xm-irix5.h: Delete file.
764 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
765 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
766 * config/ia64/xm-aix.h: Delete file.
767 * config/ia64/aix.mh (XM_FILE): Delete.
768 * config/pa/xm-hppah.h: Delete file.
769 * config/pa/hpux11w.mh (XM_FILE): Delete.
770 * config/pa/hpux11.mh (XM_FILE): Delete.
771 * config/pa/hpux1020.mh (XM_FILE): Delete.
772 * config/pa/hppahpux.mh (XM_FILE): Delete.
773
5f7daaff
AC
774 * config/alpha/xm-alphalinux.h: Delete file.
775 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
776 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
777 * config/alpha/xm-alphaosf.h: Delete file.
778 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
779 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
780 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
781 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
782
69babf95
AC
783 * config/i386/xm-i386v.h: Delete file.
784 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
785 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
786 * config/i386/xm-i386sco.h: Delete file.
787 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
788 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
789 * config/i386/xm-i386v4.h: Delete file.
790 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
791 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
792 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
793 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
794
6f009c8a
AC
795 * config/vax/xm-vax.h: Delete file.
796 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
797 * config/vax/xm-vaxult2.h: Delete file.
798 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
799 * config/vax/vaxult2.mh (XM_FILE): Delete.
800 * config/vax/xm-vaxult.h: Delete file.
801 * config/vax/vaxult.mh (XM_FILE): Delete.
802 * config/vax/xm-vaxbsd.h: Delete file.
803 * config/vax/vaxbsd.mh (XM_FILE): Delete.
804
9c8dbfa9
AC
805 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
806 * gdbarch.h, gdbarch.c: Re-generate.
807 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
808 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
809 * frame.h: Delete deprecated_read_fp from comments.
810 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
811 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
812
84367a3e
MK
8132004-08-04 Mark Kettenis <kettenis@gnu.org>
814
9c8e3411
MK
815 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
816 trampoline in OpenBSD 3.5-current.
817
b87bc0d8
MK
818 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
819 SSE registers.
820
84367a3e
MK
821 * Makefile.in: Remove embedded page breaks.
822
a44bddec
JB
8232004-08-04 Jim Blandy <jimb@redhat.com>
824
7ab3286f
JB
825 * regcache.c (regcache_raw_read): Assert that, after calling
826 target_fetch_registers, the register we're reading is cached.
827
a44bddec
JB
828 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
829 a call to 'internal_error', with a more helpful error message.
830 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 831 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 832
35124113
AC
8332004-08-04 Andrew Cagney <cagney@gnu.org>
834
835 * Makefile.in: Update dependencies.
836
9f643768
JB
8372004-08-04 Jim Blandy <jimb@redhat.com>
838
6ced10dd
JB
839 Change the layout of the PowerPC E500 raw register cache to allow
840 the lower 32-bit halves of the GPRS to be their own raw registers,
841 not pseudoregisters.
842 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
843 add ppc_ev0_upper_regnum flag.
844 * rs6000-tdep.c: #include "reggroups.h".
845 (spe_register_p): Recognize the ev upper half registers as SPE
846 registers.
847 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
848 registers.
849 (e500_move_ev_register): New function.
850 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
851 vector registers are the pseudo-registers now, formed by splicing
852 together the gprs and the upper-half registers.
853 (e500_register_reggroup_p): New function.
854 (P): Macro deleted.
855 (P8, A4): New macro.
856 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
857 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
858 macros.
859 (registers_e500): Rearrange register set so that the raw register
860 set contains 32-bit GPRs and upper-half registers, and the SPE
861 vector registers become pseudo-registers.
862 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
863 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
864 register numbers are now the same for the E500 as they are for
865 other PowerPC variants. Register e500_register_reggroup_p as the
866 register group function for the E500.
867 * Makefile.in (rs6000-tdep.o): Update dependencies.
868
869 Adapt PPC E500 native support to the new raw regcache layout.
870 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
871 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
872 (fetch_spe_register, store_spe_register): Handle fetching/storing
873 all the SPE registers at once, if regno == -1. These now take
874 over the job of fetch_spe_registers and store_spe_registers.
875 (fetch_spe_registers, store_spe_registers): Deleted.
876 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
877 unconditionally; they're always raw. Fetch/store SPE upper half
878 registers, if present, instead of ev registers.
879 (fetch_register, store_register): Remove sanity checks: gprs are
880 never pseudo-registers now, so we never need to even mention any
881 registers that are ever pseudoregisters.
882
9f643768
JB
883 Use a fixed register numbering when communicating with the PowerPC
884 simulator.
885 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
886 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
887 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
888 New functions.
889 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
890 init_sim_regno_table.
891 * Makefile.in (gdb_sim_ppc_h): New variable.
892 (rs6000-tdep.o): Update dependencies.
893
1e2279c8
AC
8942004-08-02 Andrew Cagney <cagney@gnu.org>
895
1d94326f
AC
896 * cris-tdep.c (cris_register_size): Restore function, still used
897 locally.
898
331ae7ed
AC
899 * gdbarch.sh (deprecated_target_read_fp)
900 (deprecated_frame_locals_address, deprecated_frame_args_address)
901 (deprecated_frame_chain_valid, deprecated_frame_chain)
902 (deprecated_init_extra_frame_info, deprecated_pop_frame)
903 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
904 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
905 * gdbarch.h, gdbarch.c: Re-generate.
906 * regcache.c (deprecated_read_fp): Do not call
907 DEPRECATED_TARGET_READ_FP_P.
908 * infcmd.c (default_print_registers_info): Do not call
909 DEPRECATED_DO_REGISTERS_INFO.
910 * frame-base.c (default_frame_locals_address): Do not call
911 DEPRECATED_FRAME_LOCALS_ADDRESS.
912 (default_frame_args_address): Do not call
913 DEPRECATED_FRAME_ARGS_ADDRESS.
914
1e2279c8
AC
915 * gdbarch.sh (deprecated_register_raw_size)
916 (deprecated_register_virtual_size:int): Delete.
917 * gdbarch.h, gdbarch.c: Re-generate.
918 * cris-tdep.c (cris_register_size): Delete.
919 (cris_gdbarch_init): Update.
920 * alpha-tdep.c (alpha_register_raw_size)
921 (alpha_register_virtual_size): Delete.
922 (alpha_gdbarch_init): Update.
923
a90c06b4
AC
924 * gdbarch.sh (deprecated_register_virtual_type)
925 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
926 (deprecated_dummy_write_sp): Delete.
927 * gdbarch.h, gdbarch.c: Re-generate.
928
f42accbe
AC
929 * gdbarch.sh (deprecated_register_bytes): Delete.
930 * gdbarch.h, gdbarch.c: Re-generate.
931 * regcache.c (deprecated_register_bytes): New function.
932 * regcache.h (deprecated_register_bytes): Declare.
933 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
934 * v850-tdep.c (v850_gdbarch_init): Update.
935 * sh64-tdep.c (sh64_gdbarch_init): Update.
936 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
937 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
938 * mcore-tdep.c (mcore_gdbarch_init): Update.
939 * cris-tdep.c (cris_gdbarch_init): Update.
940 * arm-tdep.c (arm_gdbarch_init): Update.
941 * remote.c (init_remote_state): Update.
942 * remote-vx.c (vx_prepare_to_store): Update.
943 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
944 * irix5-nat.c (fetch_core_registers): Update.
945 * cris-tdep.c (cris_register_bytes_ok): Update.
946 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
947
45c9dd44
AC
948 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
949 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
950 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
951 (mips_insn16_frame_base_address, mips_insn16_frame_base)
952 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
953 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
954 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
955 (mips_insn32_frame_base_address, mips_insn32_frame_base)
956 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
957 with mips_insn16 and mips_insn32.
958
3acba339
AC
959 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
960 * rs6000-tdep.c (rs6000_push_dummy_call)
961 (rs6000_extract_return_value): Use register_size.
962 * xstormy16-tdep.c (xstormy16_get_saved_register)
963 (xstormy16_extract_return_value): Ditto.
964 * valops.c (value_assign): Ditto.
965 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
966 * v850-tdep.c (v850_extract_return_value): Ditto.
967 * tracepoint.c (collect_symbol): Ditto.
968 * target.c (debug_print_register): Ditto.
969 * stack.c (frame_info): Ditto.
970 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
971 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
972 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
973 (store_register_using_P): Ditto.
974 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
975 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
976 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
977 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
978 * regcache.c (deprecated_read_register_bytes)
979 (deprecated_write_register_bytes, read_register)
980 (write_register): Ditto.
981 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
982 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
983 * monitor.c (monitor_supply_register, monitor_fetch_register)
984 (monitor_store_register): Ditto.
985 * mn10300-tdep.c (mn10300_pop_frame_regular)
986 (mn10300_print_register): Ditto.
987 * mipsv4-nat.c (fill_fpregset): Ditto.
988 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
989 (mips64_fill_fpregset): Ditto.
990 * mi/mi-main.c (register_changed_p, get_register)
991 (mi_cmd_data_write_register_values): Ditto.
992 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
993 * irix5-nat.c (fill_gregset, fetch_core_registers):
994 * infrun.c (write_inferior_status_register): Ditto.
995 * infptrace.c (fetch_register, store_register): Ditto.
996 * infcmd.c (default_print_registers_info): Ditto.
997 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
998 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
999 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1000 * hpux-thread.c (hpux_thread_fetch_registers)
1001 (hpux_thread_store_registers): Ditto.
1002 * hppah-nat.c (store_inferior_registers, fetch_register):
1003 * findvar.c (value_from_register): Ditto.
1004 * dve3900-rom.c (fetch_bitmapped_register):
1005 * cris-tdep.c (cris_gdbarch_init): Ditto.
1006 * alpha-tdep.h: Ditto.
1007 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1008
01e1877c
AC
1009 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1010 DEPRECATED_REGISTER_RAW_SIZE from comments.
1011 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1012 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1013 DEPRECATED_REGISTER_RAW_SIZE.
1014 * findvar.c (value_of_register): Simplify by assuming that the
1015 registers raw and virtual sizes are identical.
1016 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1017 comment.
1018 * arch-utils.c (generic_register_size): Simplify by assuming
1019 register_type.
1020
73f458fb
AC
1021 * regcache.c (legacy_read_register_gen, real_register)
1022 (legacy_write_register_gen): Delete, not used.
1023
336a3131
AC
1024 * regcache.c (struct regcache_descr): Delete legacy_p.
1025 (init_legacy_regcache_descr): Delete function.
1026 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1027 Do not use deprecated register functions.
1028 (regcache_raw_read, deprecated_write_register_gen):
1029 (deprecated_read_register_gen, regcache_raw_write): Delete code
1030 predicated on legacy_p.
1031 (register_size): Delete check against register raw size.
1032
c1d546cd
AC
1033 * cris-tdep.c (cris_register_type): Replace
1034 cris_register_virtual_type.
1035 (cris_gdbarch_init): Update, set register_type.
1036
48c2c0a6
AC
1037 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1038 * gdbarch.h, gdbarch.c: Re-generate.
1039 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1040 (arm_gdbarch_init) Do not set frameless function invocation.
1041 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1042 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1043 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1044 (frv_gdbarch_init): Do not set frameless function invocation.
1045 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1046 * sh-tdep.c (sh_gdbarch_init): Ditto.
1047 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1048 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1049 * avr-tdep.c (avr_gdbarch_init): Ditto.
1050
474093a6
AC
1051 * blockframe.c (legacy_frame_chain_valid): Delete function.
1052
3c109c8b
AC
1053 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1054 and pc. Update comments.
1055 (pc_in_dummy_frame): Delete function.
1056 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1057 use the "id".
1058 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1059 call_hi, top and pc, use the id.
1060 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1061
96860204
AC
1062 * dummy-frame.c: Include "gdb_string.h".
1063 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1064 (generic_save_dummy_frame_tos): Delete.
1065 (dummy_frame_push): New function, replaces above.
1066 * dummy-frame.h: Update copyright.
1067 (dummy_frame_push): Declare.
1068 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1069 (generic_save_call_dummy_addr): Delete declarations.
1070 * infcall.c: Include "dummy-frame.h".
1071 (call_function_by_hand): Add locals caller_regcache,
1072 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1073 with call to frame_save_as_regcache plus cleanup. Delete calls to
1074 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1075 Move clear_proceed_status to just before the resume, add call to
1076 dummy_frame_push (discard cleanup).
1077 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1078 (dummy-frame.o): Add $(gdb_string_h).
1079
d67ec5db
AC
10802004-08-01 Andrew Cagney <cagney@gnu.org>
1081
1082 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1083 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1084 * dummy-frame.c (find_dummy_frame): Delete.
1085 (struct dummy_frame_cache, dummy_frame_sniffer)
1086 (dummy_frame_prev_register, dummy_frame_this_id)
1087 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1088 frame unwinder using a dummy_frame_cache.
1089
a81dcb05
AC
10902004-08-01 Andrew Cagney <cagney@gnu.org>
1091
1092 * frame.h (frame_save_as_regcache): Declare.
1093 * frame.c (frame_save_as_regcache): New function.
1094 (do_frame_read_register): Replace do_frame_unwind_register.
1095 (frame_pop): Use frame_save_as_regcache.
1096 * dummy-frame.c (generic_push_dummy_frame): Use
1097 frame_save_as_regcache.
1098
aa495d11
JB
10992004-08-01 Joel Brobecker <brobecker@gnat.com>
1100
1101 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1102 file as included until we record the first line in the linetable.
1103
ff65ac78
AC
11042004-08-01 Andrew Cagney <cagney@gnu.org>
1105
1106 * frame.h (deprecated_pop_dummy_frame)
1107 (deprecated_read_register_dummy)
1108 (deprecated_generic_find_dummy_frame): Delete.
1109 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1110 (deprecated_read_register_dummy)
1111 (deprecated_find_dummy_frame_regcache)
1112 (discard_innermost_dummy)
1113 (deprecated_pop_dummy_frame): Delete.
1114 (dummy_frame_this_id): Simplify.
1115 (struct dummy_frame): Delete "fp" and "sp".
1116 (find_dummy_frame): Simplify.
1117 (generic_push_dummy_frame): Do not set "fp" or "sp".
1118 (fprint_dummy_frames): Do not print "fp" and "sp"
1119
37bdc87e
MK
11202004-08-01 Mark Kettenis <kettenis@gnu.org>
1121
1122 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1123 (struct i386_insn): New structure.
1124 (i386_match_insn): New function.
1125 (i386_frame_setup_skip_insns): New variable.
1126 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1127 array i386_frame_setup_insns of instructions that should be
1128 skipped inside the frame setup sequence.
1129
8241eaa6
AC
11302004-08-01 Andrew Cagney <cagney@gnu.org>
1131
5bc602c7
AC
1132 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1133 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1134 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1135 * stack.c (frame_info): Delete references to
1136 DEPRECATED_FRAME_INIT_SAVED_REGS and
1137 deprecated_get_frame_saved_regs.
1138 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1139 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1140 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1141 (frame_unwind_register_signed)
1142 (frame_unwind_register_unsigned)
1143 (frame_unwind_unsigned_register): Use register_size.
1144 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1145 (deprecated_frame_xmalloc_with_cleanup)
1146 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1147 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1148
03d363a1
AC
1149 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1150 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1151 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1152 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1153
8241eaa6
AC
1154 * infcall.c (call_function_by_hand): Do not use
1155 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1156 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1157 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1158 DEPRECATED_STACK_ALIGN.
1159
f00df8b7
AC
11602004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1161
1162 Committed by Andrew Cagney.
1163 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1164
eec63939
AC
11652004-08-01 Andrew Cagney <cagney@gnu.org>
1166
1167 * mips-tdep.c (mips16_frame_cache)
1168 (mips16_frame_this_id, mips16_frame_prev_register)
1169 (mips16_frame_unwind, mips16_frame_sniffer)
1170 (mips16_frame_base_address, mips16_frame_base)
1171 (mips16_frame_base_sniffer, mips32_frame_cache)
1172 (mips32_frame_this_id, mips32_frame_prev_register)
1173 (mips32_frame_unwind, mips32_frame_sniffer)
1174 (mips32_frame_base_address, mips32_frame_base)
1175 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1176 separate heuristic mips16 and mips32 unwinders.
1177 (mips_stub_frame_cache, mips_stub_frame_this_id)
1178 (mips_stub_frame_prev_register)
1179 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1180 (mips_stub_frame_base_address, mips_stub_frame_base)
1181 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1182 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1183 match true mdebug frames.
1184 (non_heuristic_proc_desc): Add forward declaration.
1185
e66299b3
AC
11862004-08-01 Andrew Cagney <cagney@gnu.org>
1187
83cbbf3e
AC
1188 * config/mips/tm-irix6.h: Delete file.
1189 * config/mips/tm-irix5.h: Delete file.
1190 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1191 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1192
22d41b37
AC
1193 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1194 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1195 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1196 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1197 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1198 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1199 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1200 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1201 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1202 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1203 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1204 (TARGET_SIGNAL_RAW_VALUES): Delete.
1205 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1206 Delete.
1207 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1208 (TARGET_HW_WATCH_LIMIT): Delete.
1209 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1210 * minimon.h: Delete file.
1211
e66299b3
AC
1212 * trad-frame.c (trad_frame_get_this_base)
1213 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1214 functions.
1215 * trad-frame.h (trad_frame_set_this_base)
1216 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1217
1f67027d
AC
12182004-07-31 Andrew Cagney <cagney@gnu.org>
1219
1220 * trad-frame.c (trad_frame_get_prev_register): Rename
1221 trad_frame_get_prev_register.
1222 * vax-tdep.c (vax_frame_prev_register): Update.
1223 * trad-frame.h: Update.
1224 * trad-frame.c (trad_frame_get_register): Update.
1225 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1226 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1227 Update.
1228 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1229 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1230 Update.
1231 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1232 Update.
1233 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1234 Update.
1235 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1236 Update.
1237 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1238 Update.
1239 * s390-tdep.c (s390_frame_prev_register)
1240 (s390_stub_frame_prev_register)
1241 (s390_sigtramp_frame_prev_register): Update.
1242 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1243 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1244 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1245 * m88k-tdep.c (m88k_frame_prev_register)
1246 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1247 * m32r-tdep.c (m32r_frame_prev_register): Update.
1248 * hppa-tdep.c (hppa_frame_prev_register_helper)
1249 * frv-tdep.c (frv_frame_prev_register): Update.
1250 * d10v-tdep.c (d10v_frame_prev_register): Update.
1251 * cris-tdep.c (cris_frame_prev_register): Update.
1252 * avr-tdep.c (avr_frame_prev_register): Update.
1253 * arm-tdep.c (arm_prologue_prev_register)
1254 (arm_sigtramp_prev_register): Update.
1255
c1bf6f65
AC
12562004-07-31 Andrew Cagney <cagney@gnu.org>
1257
1258 * frame.h (legacy_saved_regs_unwind)
1259 (legacy_frame_chain_valid, legacy_frame_p)
1260 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
1261 * dummy-frame.c (dummy_frame_this_id): Simplify.
1262 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
1263 * frame.c (struct frame_info): Delete the field "type".
1264 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1265 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1266 (legacy_saved_regs_unwind, legacy_frame_p)
1267 (frame_type_from_pc): Delete.
1268 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1269 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1270
dc856692
MK
12712004-07-31 Mark Kettenis <kettenis@gnu.org>
1272
5a5effe1
MK
1273 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1274 indentation.
1275
d4fd50a6
MK
1276 * mips-nat.c: Remove file.
1277 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1278 (mips-nat.o): Remove dependency.
1279
2689df5a
MK
1280 * infptrace.c: Update copyright year.
1281 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1282 explicitly setting the buffer to all zeroes.
1283
dc856692
MK
1284 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1285 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1286
763910e0
AC
12872004-07-30 Andrew Cagney <cagney@gnu.org>
1288
1289 * GDB 6.2 released from gdb_6_2-branch.
1290
0b66e38c
EZ
12912004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1292
1293 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1294
1295 * exec.c (exec_file_attach):
1296 * nto-tdep.c (nto_find_and_open_solib):
1297 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1298 * solib.c (solib_open):
1299 * somsolib.c (som_solib_sizeof_symbol_table):
1300 * source.c (is_regular_file, openp, open_source_file):
1301 * symfile.c (symfile_bfd_open):
1302 * wince.c (upload_to_device): Differentiate between the search for
1303 binary and source files.
1304
be7d7357
AC
13052004-07-30 Andrew Cagney <cagney@gnu.org>
1306
1307 * complaints.c (_initialize_complaints): Pass NULL to
1308 add_setshow_zinteger_cmd for help_doc.
1309 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1310
ddc9cd0f
AC
13112004-07-30 Andrew Cagney <cagney@gnu.org>
1312
1313 Fix PR i18n/761.
1314 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1315 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1316 $(PACKAGE).pot and update-po.
1317 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1318 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1319 (update-po): New rules.
1320 (localedir): Define using autoconf.
1321 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1322 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1323 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1324 * configure.in: Generate CATALOGS and LINGUAS from contents of
1325 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1326 * configure: Re-generate.
1327 * po/gdbtext: New file
1328
e92f3704
JG
13292004-07-30 Jerome Guitton <guitton@gnat.com>
1330
1331 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1332 order.
1333
b0f35d58
DL
13342004-07-30 David Lecomber <dsl@sources.redhat.com>
1335
1336 * dwarf2read.c (read_file_scope): Set producer if attribute
1337 present.
1338 (struct dwarf2_cu): Added new member producer.
1339
ce7d4522
JG
13402004-07-30 Jerome Guitton <guitton@gnat.com>
1341
1342 * inflow.c (kill_command): release file handles in BFD.
1343 * exec.c (exec_file_attach): Ditto.
1344 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1345
05ee07c7
AC
13462004-07-29 Andrew Cagney <cagney@gnu.org>
1347
1348 * PROBLEMS (mips-irix): Note that it is broken.
1349
62eceb47
AC
13502004-07-29 Andrew Cagney <cagney@gnu.org>
1351
e57b8d41
AC
1352 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1353 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1354
d334389b
AC
1355 * config/xm-nbsd.h: Delete file.
1356 * config/arm/xm-nbsd.h: Delete file.
1357 * config/i386/xm-nbsd.h: Delete file.
1358 * config/ns32k/xm-nbsd.h: Delete file.
1359 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1360 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1361 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1362 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1363 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1364
e910f676
AC
1365 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1366 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1367 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1368 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1369 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1370 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1371
6fa856b9
AC
1372 * config/powerpc/xm-linux.h: Delete empty file.
1373 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1374 * config/powerpc/linux.mh (XM_FILE): Delete.
1375 * config/m68k/xm-linux.h: Delete empty file.
1376 * config/m68k/linux.mh (XM_FILE): Delete.
1377 * config/ia64/xm-linux.h: Delete empty file.
1378 * config/ia64/linux.mh (XM_FILE): Delete.
1379 * config/arm/xm-linux.h: Delete empty file.
1380 * config/arm/linux.mh (XM_FILE): Delete.
1381
471ae5ae
AC
1382 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1383 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1384 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1385 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1386 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1387 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1388 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1389 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1390
62eceb47
AC
1391 * config/m68k/xm-m68k.h: Delete file.
1392 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1393 copyright.
1394 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1395 * config/pa/xm-linux.h: Delete empty file.
1396 * config/pa/linux.mh (XM_FILE): Delete.
1397 * config/i386/xm-i386.h: Delete empty file.
1398 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1399 "i386/xm-i386.h".
1400 * config/i386/obsdaout.mh (XM_FILE): Delete.
1401 * config/i386/obsd64.mh (XM_FILE): Delete.
1402 * config/i386/fbsd64.mh (XM_FILE): Delete.
1403 * config/i386/nto.mh (XM_FILE): Delete.
1404 * config/i386/obsd.mh (XM_FILE): Delete.
1405 * config/i386/linux64.mh (XM_FILE): Delete.
1406 * config/i386/linux.mh (XM_FILE): Delete.
1407 * config/i386/i386sol2.mh (XM_FILE): Delete.
1408 * config/i386/i386gnu.mh (XM_FILE): Delete.
1409 * config/i386/fbsd.mh (XM_FILE): Delete.
1410 * config/i386/nbsd64.mh (XM_FILE): Delete.
1411
c35f4ffc
AC
14122004-07-29 Andrew Cagney <cagney@gnu.org>
1413
1414 * config/pa/xm-linux.h: Do not include "floatformat.h".
1415 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1416 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1417 * config/i386/xm-i386.h: Do not include "floatformat.h".
1418 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1419 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1420 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1421 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1422 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1423 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1424 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1425 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1426 * configure, config.in: Regenerate.
1427 * configure.host (gdb_host_float_format, gdb_host_double_format)
1428 (gdb_host_long_double_format): Set according to the host.
1429
624a44a3
AC
14302004-07-29 Andrew Cagney <cagney@gnu.org>
1431
1432 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1433
0dea2468
AC
14342004-07-28 Andrew Cagney <cagney@gnu.org>
1435
1436 * PROBLEMS: Mention threads/1650.
1437 * NEWS: Mention the NPTL fix.
1438
b3f42336
AC
14392004-07-28 Andrew Cagney <cagney@gnu.org>
1440
1441 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1442 (add_setshow_cmd_full): Make static.
1443 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1444 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1445 * cli/cli-decode.c (add_setshow_filename_cmd)
1446 (add_setshow_string_cmd): New functions.
1447 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1448 * mips-tdep.c (_initialize_mips_tdep): Update.
1449 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1450 * cli/cli-logging.c (_initialize_cli_logging): Update.
1451 * complaints.c (_initialize_complaints): Update.
1452 * remote.c (_initialize_remote): Update.
1453
3b64bf98
AC
14542004-07-28 Andrew Cagney <cagney@gnu.org>
1455
1456 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1457 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1458 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1459 print parameters. Make string parameters constant.
1460 * command.h: Update. Update copyright.
1461 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1462 * observer.c (_initialize_observer): Ditto.
1463 * frame.c (_initialize_frame): Ditto.
1464 * complaints.c (_initialize_complaints): Ditto.
1465 * maint.c (_initialize_maint_cmds): Ditto.
1466 * target.c (initialize_targets): Ditto.
1467 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1468 * infcall.c (_initialize_infcall): Ditto.
1469 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1470 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1471 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1472 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1473 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1474
e9667a65
AC
14752004-07-28 Andrew Cagney <cagney@gnu.org>
1476
54a5b07d
AC
1477 * gdbtypes.c (lookup_primitive_typename): Delete function.
1478 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1479 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1480 * gdbtypes.c (lookup_typename): Ditto.
1481 * f-exp.y (yylex): Ditto.
1482 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1483
e9667a65
AC
1484 * scm-lang.c (c_builtin_types): Delete extern declaration.
1485 (scm_language_defn): Replace
1486 string_char_type and primitive_type_vector with
1487 la_language_arch_info.
1488 * jv-lang.c (java_language_defn): Replace
1489 string_char_type and primitive_type_vector with
1490 la_language_arch_info.
1491 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1492 c_builtin_types in comment.
1493 * c-lang.h (struct language_arch_info): Declare opaque.
1494 (c_language_arch_info): Declare.
1495 (c_builtin_types): Delete declaration.
1496 * c-lang.c (c_language_arch_info): Set string_char_type to
1497 builtin_char, not builtin_true_char. Make global.
1498 (c_builtin_types): Delete array.
1499 (asm_language_defn, minimal_language_defn): Replace
1500 string_char_type and primitive_type_vector with
1501 la_language_arch_info.
1502
685419e2
AC
15032004-07-28 Andrew Cagney <cagney@gnu.org>
1504
1505 * gdbtypes.h (struct builtin_type): Rename true_char to
1506 builtin_true_char.
1507 * gdbtypes.c (gdbtypes_post_init): Update.
1508 * c-lang.c (arch_info): New function.
1509 (enum c_primitive_types): New enum.
1510 (c_language_defn): Instead of string_char_type and
1511 primitive_type_vector set la_language_arch_info.
1512
5a44ea29
AC
15132004-07-28 Andrew Cagney <cagney@gnu.org>
1514
1515 * language.h (struct language_arch_info): Fix typo
1516 s/primative/primitive/.
1517 * gdbtypes.c (lookup_primitive_typename): Ditto.
1518 * language.c (language_lookup_primitive_type_by_name)
1519 (unknown_language_arch_info): Ditto.
1520
f290d38e
AC
15212004-07-27 Andrew Cagney <cagney@gnu.org>
1522
1523 * defs.h (enum language): Add nr_languages.
1524 * language.h (struct language_arch_info): Define.
1525 (struct language_defn): Add la_language_arch_info.
1526 (language_lookup_primative_type_by_name): Declare.
1527 (language_string_char_type): Declare.
1528 * language.c (_initialize_language, language_gdbarch_post_init)
1529 (struct language_gdbarch, language_gdbarch_data): Implement
1530 per-architecture language information.
1531 (unknown_language_arch_info, language_string_char_type)
1532 (language_lookup_primative_type_by_name): New functions.
1533 (unknown_language_defn, auto_language_defn)
1534 (local_language_defn): Set la_language_arch_info to
1535 unknown_language_arch_info.
1536 (unknown_builtin_types): Delete.
1537 * gdbtypes.c (lookup_primitive_typename): Use
1538 language_lookup_primative_type_by_name.
1539 (create_string_type): Use language_string_char_type.
1540 * values.c (value_from_string): Use language_string_char_type.
1541 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1542 * p-lang.c (pascal_language_defn): Ditto.
1543 * m2-lang.c (m2_language_defn): Ditto.
1544 * jv-lang.c (java_language_defn): Ditto.
1545 * objc-lang.c (objc_language_defn): Ditto.
1546 * f-lang.c (f_language_defn): Ditto.
1547 * c-lang.c (c_language_defn, cplus_language_defn)
1548 (asm_language_defn, minimal_language_defn): Ditto.
1549
000177f0
AC
15502004-07-27 Andrew Cagney <cagney@gnu.org>
1551
1552 * gdbtypes.h (struct builtin_type): Declare.
1553 (builtin_type): Declare.
1554 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1555 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1556 (gdbtypes_post_init): New function.
1557 (builtin_type): New function.
1558
e22f895c
KI
15592004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1560
1561 * remote-m32r-sdi.c: Fix breakpoint bug.
1562 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1563 recv_char_data, recv_long_data): New functions to replace communication
1564 sequences.
1565
536517dd
MC
15662004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1567
1568 Document PR threads/1650.
1569 * PROBLEMS (Threads): Document problem with many threads
1570
a0a44d18
AC
15712004-07-26 Andrew Cagney <cagney@gnu.org>
1572
1573 * gdb-mi.el: Move from here ...
1574 * mi/gdb-mi.el: ... to here.
1575
7ac4ac06
AC
15762004-07-26 Andrew Cagney <cagney@gnu.org>
1577
1578 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1579 * main.c (captured_main): When in batch mode always detach.
1580
a1b461bf
AC
15812004-07-26 Andrew Cagney <cagney@gnu.org>
1582
1583 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1584 and h8300 as broken.
1585 * NEWS: END-OF-LIFE frame compatibility module.
1586 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1587 specific comments.
1588
cb1a6d5f
AC
15892004-07-26 Andrew Cagney <cagney@gnu.org>
1590
1591 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1592 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1593 * wince.c (_initialize_wince): Update.
1594 * win32-nat.c (_initialize_win32_nat): Update.
1595 * varobj.c (_initialize_varobj): Update.
1596 * valops.c (_initialize_valops): Update.
1597 * utils.c (initialize_utils, initialize_utils): Update.
1598 * tui/tui-win.c (_initialize_tui_win): Update.
1599 * top.c (init_main): Update.
1600 * symfile.c (_initialize_symfile): Update.
1601 * source.c (_initialize_source): Update.
1602 * somsolib.c (_initialize_som_solib): Update.
1603 * solib.c (_initialize_solib): Update.
1604 * solib-frv.c (_initialize_frv_solib): Update.
1605 * serial.c (_initialize_serial): Update.
1606 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1607 * remote.c (_initialize_remote, _initialize_remote): Update.
1608 * remote-vx.c (_initialize_vx): Update.
1609 * remote-utils.c (_initialize_sr_support): Update.
1610 * remote-sds.c (_initialize_remote_sds): Update.
1611 * remote-mips.c (_initialize_remote_mips): Update.
1612 * remote-e7000.c (_initialize_remote_e7000): Update.
1613 * proc-api.c (_initialize_proc_api): Update.
1614 * printcmd.c: Update.
1615 * parse.c (_initialize_parse): Update.
1616 * pa64solib.c (_initialize_pa64_solib): Update.
1617 * p-valprint.c (_initialize_pascal_valprint): Update.
1618 * monitor.c (_initialize_remote_monitors): Update.
1619 * mips-tdep.c (_initialize_mips_tdep): Update.
1620 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1621 * maint.c (_initialize_maint_cmds): Update.
1622 * lin-lwp.c (_initialize_lin_lwp): Update.
1623 * language.c (_initialize_language): Update.
1624 * kod.c (_initialize_kod): Update.
1625 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1626 * i386-tdep.c (_initialize_i386_tdep): Update.
1627 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1628 * gdbarch.sh: Update.
1629 * gdbarch.c: Re-generate.
1630 * gdb-events.sh: Update.
1631 * gdb-events.c: Re-generate.
1632 * frame.c (_initialize_frame): Update.
1633 * exec.c: Update.
1634 * demangle.c (_initialize_demangler): Update.
1635 * dcache.c (_initialize_dcache): Update.
1636 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1637 * cp-valprint.c (_initialize_cp_valprint): Update.
1638 * corefile.c (_initialize_core): Update.
1639 * command.h: Update.
1640 * cli/cli-decode.h: Update.
1641 * cli/cli-cmds.c (init_cli_cmds): Update.
1642 * charset.c (_initialize_charset): Update.
1643 * breakpoint.c (_initialize_breakpoint): Update.
1644 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1645 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1646 * aix-thread.c (_initialize_aix_thread): Update.
1647
b4632131
MK
16482004-07-24 Mark Kettenis <kettenis@gnu.org>
1649
1650 Partial fix for PR backtrace/1718.
1651 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1652 that GCC migrates into the prolugue. Don't handle any
1653 instructions that clobber %ebx.
1654
822c9732
AC
16552004-07-23 Andrew Cagney <cagney@gnu.org>
1656
1657 Use regcache_raw_collect instead of regcache_collect.
1658 * regcache.h (regcache_collect): Delete declaration.
1659 * regcache.c (regcache_colect): Delete function.
1660 * win32-nat.c (do_child_store_inferior_registers): Update.
1661 * sol-thread.c (sol_thread_store_registers): Update.
1662 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1663 * rs6000-nat.c (store_register): Update.
1664 * remote.c (store_register_using_P, remote_store_registers): Update.
1665 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1666 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1667 (fill_vrregset, store_spe_registers, fill_gregset)
1668 (fill_gregset): Update.
1669 * nto-procfs.c (procfs_store_registers): Update.
1670 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1671 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1672 * m68klinux-nat.c (store_register, fill_gregset): Update.
1673 * m68k-tdep.c (fill_gregset): Update.
1674 * infptrace.c (store_register): Update.
1675 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1676 * i386-linux-nat.c (store_register, fill_gregset): Update.
1677 * hppa-linux-nat.c (fill_gregset): Update.
1678 * go32-nat.c (store_register): Update.
1679 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1680 (store_fp_regs): Update.
1681 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1682 (store_nwfpe_extended, store_fpregister, store_fpregs)
1683 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1684 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1685 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1686 (store_regs_user_thread, store_regs_kernel_thread): Update.
1687
32b05c07
MK
16882004-07-24 Mark Kettenis <kettenis@gnu.org>
1689
1690 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1691 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1692 encoding.
1693 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1694 member of `struct comp_unit'.
1695
8567c30f
AC
16962004-07-23 Andrew Cagney <cagney@gnu.org>
1697
1698 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1699 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1700
f6da8dd8
MH
17012004-07-23 Martin Hunt <hunt@redhat.com>
1702 Kevin Buettner <kevinb@redhat.com>
1703
1704 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1705 alignment was being added to the offset instead of multiplied.
1706
bd921882
MK
17072004-07-23 Mark Kettenis <kettenis@gnu.org>
1708
24f033e8
MK
1709 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1710 changed signal trampoline in OpenBSD 3.5-current.
1711
90f3cecd
MK
1712 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1713 <machine/pcb.h> and "bsd-kvm.h".
1714 (sparc64nbsd_supply_pcb): New function.
1715 (_initialize_sparc64nbsd_nat): Renamed from
1716 _initialize_sparcnbsd_nat. Enable libkvm interface.
1717 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1718 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1719 (LOADLIBES): New variable.
1720
a4954a62
MK
1721 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1722
bd921882
MK
1723 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1724
23a6d369
AC
17252004-07-21 Andrew Cagney <cagney@gnu.org>
1726
1727 Use regcache_raw_supply instead of supply_register.
1728 * regcache.h (supply_register): Delete declaration.
1729 * regcache.c (supply_register): Delete function.
1730 * wince.c (do_child_fetch_inferior_registers): Update.
1731 * win32-nat.c (do_child_fetch_inferior_registers)
1732 (fetch_elf_core_registers): Update.
1733 * v850ice.c (v850ice_fetch_registers): Update.
1734 * thread-db.c (thread_db_store_registers): Update.
1735 * sol-thread.c (sol_thread_store_registers): Update.
1736 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1737 * rs6000-nat.c (fetch_register): Update.
1738 * rom68k-rom.c (rom68k_supply_one_register): Update.
1739 * remote.c (remote_wait, remote_async_wait): Update.
1740 * remote-st.c (get_hex_regs): Update.
1741 * remote-sim.c (gdbsim_fetch_register): Update.
1742 * remote-sds.c (sds_fetch_registers): Update.
1743 * remote-rdp.c (remote_rdp_fetch_register): Update.
1744 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1745 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1746 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1747 * remote-hms.c (init_hms_cmds): Update.
1748 * remote-est.c (init_est_cmds): Update.
1749 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1750 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1751 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1752 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1753 (fetch_register, supply_vrregset, supply_vrregset)
1754 (fetch_spe_registers): Update.
1755 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1756 * monitor.c (monitor_supply_register): Update.
1757 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1758 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1759 (mipsnbsd_supply_fpreg): Update.
1760 * mips-nat.c (fetch_inferior_registers)
1761 (fetch_core_registers): Update.
1762 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1763 (supply_fpregset, mips64_supply_gregset)
1764 (mips64_supply_fpregset): Update.
1765 * m68klinux-nat.c (fetch_register, supply_gregset)
1766 (supply_fpregset): Update.
1767 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1768 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1769 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1770 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1771 * infptrace.c (fetch_register): Update.
1772 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1773 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1774 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1775 (gnu_fetch_registers, gnu_store_registers): Update.
1776 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1777 * i386-linux-nat.c (fetch_register, supply_gregset)
1778 (dummy_sse_values): Update.
1779 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1780 * hppah-nat.c (fetch_register): Update.
1781 * hppa-linux-nat.c (fetch_register, supply_gregset)
1782 (supply_fpregset): Update.
1783 * go32-nat.c (fetch_register): Update.
1784 * dve3900-rom.c (fetch_bitmapped_register)
1785 (_initialize_r3900_rom): Update.
1786 * cris-tdep.c (supply_gregset): Update.
1787 * abug-rom.c (init_abug_cmds): Update.
1788 * core-aout.c (fetch_core_registers): Update.
1789 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1790 (fetch_register, fetch_fp_register): Update.
1791 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1792 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1793 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1794 * alphanbsd-tdep.c (fetch_core_registers): Update.
1795 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1796 * alpha-nat.c (fetch_osf_core_registers)
1797 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1798 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1799 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1800
73cc75f3
AC
18012004-07-21 Andrew Cagney <cagney@gnu.org>
1802
1803 * PROBLEMS: Mention breakpoints/1702.
1804 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1805 that is known to work.
1806
a53c66de
AC
18072004-07-21 Andrew Cagney <cagney@gnu.org>
1808
1809 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1810 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1811 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1812 (handle_inferior_event): Wrap call to deprecated
1813 IGNORE_HELPER_CALL in #ifdef.
1814 * config/mips/tm-nbsd.h: Update.
1815
708ff411
JB
18162004-07-20 Jim Blandy <jimb@redhat.com>
1817
412b3060
JB
1818 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1819 bfd_mach_ppc has no segment registers.
1820
13ac140c
JB
1821 Include PowerPC SPR numbers for special-purpose registers.
1822 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1823 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1824 new member in initializer.
1825 (S, S4, SN4, S64): New macros for defining special-purpose
1826 registers.
1827 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1828 registers_403, registers_403GC, registers_505, registers_860,
1829 registers_601, registers_602, registers_603, registers_604,
1830 registers_750, registers_e500): Use them.
1831
708ff411
JB
1832 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1833 replace references with expression used to initialize variable.
1834
1f602b35
AC
18352004-07-20 Andrew Cagney <cagney@gnu.org>
1836
1837 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1838 read_memory_nobpt.
1839 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1840 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1841 (s390_sigtramp_frame_sniffer): Update.
1842 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1843 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1844 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1845 (mips32_fetch_instruction): Update.
1846 * mcore-tdep.c (get_insn): Update.
1847 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1848 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1849 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1850 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1851 (i386_linux_rt_sigtramp_start): Update.
1852 * i386-linux-nat.c (child_resume): Update.
1853 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1854 * hppa-linux-tdep.c (insns_match_pattern): Update.
1855 * gdbcore.h: Update.
1856 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
1857 * frame.c (safe_frame_unwind_memory): Update.
1858 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
1859 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
1860 * alpha-tdep.c (alpha_read_insn): Update.
1861
2cd8546d
AC
18622004-07-20 Andrew Cagney <cagney@gnu.org>
1863
1864 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
1865 containing both bytes and mask. Add "frame_type".
1866 * tramp-frame.c (tramp_frame_start): Update.
1867 (tramp_frame_prepend_unwinder): Update.
1868 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1869 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1870 (mips_linux_n64_rt_sigframe): Update. Make "static const".
1871 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
1872
f928dd62
EZ
18732004-07-19 Eli Zaretskii <eliz@gnu.org>
1874
1875 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
1876 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
1877 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
1878 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
1879
d5c560f7
AC
18802004-07-17 Andrew Cagney <cagney@gnu.org>
1881
860660cb
AC
1882 * NEWS, PROBLEMS: Update for 6.2.
1883
8c266f54
AC
1884 * README: Update to 6.2.
1885
a552edd9
AC
1886 * utils.c (xvasprintf): Call xstrvprintf.
1887
c4a172b5
AC
1888 * parse.c: Update copyright.
1889 (null_post_parser): Eliminate ARGSUSED.
1890
da745b36
AC
1891 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
1892 * tui/tui-win.c (tui_get_cmd_list): Ditto.
1893 * symfile-mem.c (_initialize_symfile_mem): Ditto.
1894
9cbc6ef0
AC
1895 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
1896 * ppc-linux-nat.c: Use "Linux kernel".
1897 * hppa-linux-tdep.c: Use GNU/Linux.
1898 * hppa-linux-nat.c: Use GNU/Linux.
1899 * dwarfread.c: Add [sic] to use of Linux.
1900
1b89295f
AC
1901 * hppa-linux-nat.c: Do not include <string.h>.
1902 (supply_fpregset): Remove "register" attribute.
1903
d5c560f7
AC
1904 * solib-frv.c (fetch_loadmap): Use xfree, not free.
1905
7ddd7709
MK
19062004-07-17 Mark Kettenis <kettenis@gnu.org>
1907
b1d19a62
MK
1908 * configure.in: Define _MSE_INT_H on Solaris 9 too.
1909 * configure, config.in: Regenerated.
1910
7ddd7709
MK
1911 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1912 "bsd-kvm.h".
1913 (vaxbsd_supply_pcb): New function.
1914 (_initialize_vaxbsd_nat): New prototype and function.
1915 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
1916 solib-sunos.o.
1917 (LOADLIBES): New variable.
1918 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1919 (LOADLIBES): New variable.
1920 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1921 (LOADLIBES): New variable.
1922 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1923
2c07db7a
AC
19242004-07-16 Andrew Cagney <cagney@gnu.org>
1925
1926 * defs.h (event_loop_p): Replace variable declaration with macro,
1927 always 1.
1928 * main.c (captured_main): Delete options "-async" and "-noasync".
1929 (event_loop_p): Delete variable.
1930 * NEWS: Mention that "-async" and "-noasync" were removed.
1931
717eb1cf
AC
19322004-07-16 Andrew Cagney <cagney@gnu.org>
1933
1934 * remote-m32r-sdi.c: Re-indent.
1935
c101bc14
JB
19362004-07-16 Jim Blandy <jimb@redhat.com>
1937
5109a438
JB
1938 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
1939 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
1940 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
1941 missing MPC823 SPRs.
1942 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
1943 incorrect. (This was corrected in GDB's register name tables on
1944 2004-07-14.)
1945
c101bc14
JB
1946 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
1947 should be "esasrr" ("ESA Save and Restore Register").
1948
7ce450bd
AC
19492004-07-16 Andrew Cagney <cagney@gnu.org>
1950
1951 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
1952 calls, no longer applicable. Update comments and rename parameter
1953 "step_frame" to "return_frame".
1954
ca73dd9d
AC
19552004-07-16 Andrew Cagney <cagney@gnu.org>
1956
1957 * frame.c (fprint_field): New function.
1958 (fprint_frame_id): Use fprint_field.
1959
31941f6d
JB
19602004-07-15 Joel Brobecker <brobecker@gnat.com>
1961
1962 * ada-lang.c (ada_language_defn): Remove commented out code.
1963
f86a7158
JB
19642004-07-15 Jim Blandy <jimb@redhat.com>
1965
1966 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
1967 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
1968
c24791ec
JB
19692004-07-14 Jim Blandy <jimb@redhat.com>
1970
29bb1356
JB
1971 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
1972
cc98b5cc
JB
1973 * ppc-tdep.h (ppc_num_vrs): New enum constant.
1974
8f088af7
JB
1975 * ppc-tdep.h (ppc_num_srs): New enum constant.
1976
0ea0ec5f
JB
1977 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
1978 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
1979 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
1980 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
1981 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
1982 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
1983 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
1984 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
1985 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
1986 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
1987 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
1988 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
1989 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
1990 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
1991 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
1992 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
1993 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
1994 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
1995 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
1996 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
1997 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
1998 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
1999 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2000 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2001 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2002 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2003 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2004 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2005 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2006 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2007 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2008 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2009 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2010 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2011 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2012 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2013 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2014 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2015 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2016 special-purpose register numbers.
2017
c24791ec
JB
2018 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2019 manual mentions 'md_twb', but many mention 'm_twb', and at that
2020 point in the register list.)
2021
d833db3b
AC
20222004-07-14 Andrew Cagney <cagney@gnu.org>
2023
2024 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2025 instead of "internal-error".
2026
080228b2
JB
20272004-07-10 Joel Brobecker <brobecker@gnat.com>
2028
2029 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2030 that was inserted inside a comment.
2031
c268433a
RC
20322004-07-10 Randolph Chung <tausq@debian.org>
2033
2034 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2035 function.
2036 (hppa_hpux_push_dummy_code): New function.
2037 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2038 Set find_global_pointer method.
2039
71009278
MK
20402004-07-10 Mark Kettenis <kettenis@gnu.org>
2041
2042 * NEWS: Mention BSD libkvm interface.
2043
b2fa5097
MS
20442004-07-10 Michael Snyder <msnyder@redhat.com>
2045
2046 * symfile.c (generic_load): Comment typo.
2047 * stack.c (get_selected_block): Ditto.
2048 * regcache.c (regcache_cooked_read): Ditto.
2049 * monitor.c (monitor_debug): Ditto.
2050 * mips-tdep.c (mips_read_pc): Ditto.
2051 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2052 * gdb_mbuild.sh: Ditto.
2053 * gdbarch.sh: Ditto.
2054 * gdbarch.h: Ditto.
2055
c3e5cd34
PH
20562004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2057
8a2225b2
PH
2058 * ada-tasks.c: Remove file.
2059
c3e5cd34
PH
2060 Remove ARI problems:
2061
2062 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2063 beginning of line.
2064
2065 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2066 Add comment.
2067 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2068 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2069 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2070 (UMIN_OF_SIZE): Remove.
2071 (max_of_type): New function to replace orphan macro in gdbtypes.h
2072 (min_of_type): Ditto.
2073 (discrete_type_high_bound): Use max_of_type.
2074 (discrete_type_low_bound): Use min_of_type.
2075 (possible_user_operator_p): Move operator to beginning of line.
2076 (ada_is_variant_part): Ditto.
2077 (ensure_lval): Rewrite to avoid deprecated operations.
2078 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2079 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2080 (ada_enum_name): Remove assignments in 'if' statements.
2081 (build_ada_types): Add gdbarch parameter.
2082 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2083 with gdbarch_data_register_post_init.
2084 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2085 add_show_from_set.
2086
2087 * ada-valprint.c (inspect_it): Remove declaration.
2088 (repeat_count_threshold): Remove declaration.
2089 (ada_print_floating): Remove assignments in 'if' statements.
2090 (print_str): Move operator to beginning of line.
2091
61ce229a
JB
20922004-07-08 Jim Blandy <jimb@redhat.com>
2093
2094 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2095
09bcec80
BR
20962004-07-08 Bob Rossi <bob@brasko.net>
2097
2098 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2099
31c27f77
JJ
21002004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2101
2102 * language.h (struct_language_defn): Add new function pointer:
2103 la_class_name_from_physname. Also add new prototype for
2104 language_class_name_from_physname.
2105 * language.c (language_class_name_from_physname): New function.
2106 (unk_lang_class_name): Ditto.
2107 (unknown_language_defn, auto_language_defn): Change
2108 to add unk_lang_class_name function pointer for
2109 la_class_name_from_physname.
2110 (local_language_defn): Ditto.
2111 * dwarf2read.c (guess_structure_name): Change to call
2112 language_class_name_from_physname.
2113 (determine_class_name): Ditto.
2114 * cp-support.c (class_name_from_physname): Renamed.
2115 (cp_class_name_from_physname): New name of function.
2116 * cp-support.h: Ditto.
2117 * c-lang.c (c_language_defn): Change to add NULL
2118 for class_name_from_physname function pointer.
2119 (cplus_language_defn): Change to add cp_class_name_from_physname.
2120 * jv-lang.c (java_class_name_physname): New function.
2121 (java_find_last_component): New static routine.
2122 (java_language_defn): Add java_class_name_from_physname pointer.
2123 * ada-lang.c (ada_language_defn): Change to add NULL
2124 for class_name_from_physname function pointer.
2125 * f-lang.c (f_language_defn): Ditto.
2126 * m2-lang.c (m2_language_defn): Ditto.
2127 * objc-lang.c (objc_language_defn): Ditto.
2128 * p-lang.c (pascal_language_defn): Ditto.
2129 * scm-lang.c (scm_language_defn): Ditto.
2130
ee28ca0f
AC
21312004-07-06 Andrew Cagney <cagney@gnu.org>
2132
2133 Patch from Bart Robinson.
2134 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2135 (O_LARGEFILE): Define to 0, if not defined.
2136
fdb1bf9d
MK
21372004-07-03 Mark Kettenis <kettenis@gnu.org>
2138
cb162ff6
MK
2139 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2140 <machine/pcb.h> and "bsd-kvm.h".
2141 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2142 (m68kbsd_supply_pcb): New function.
2143 (_initialize_m68kbsd_nat): New prototype and function.
2144 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2145 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2146 (LOADLIBES): New variable.
2147 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2148 (LOADLIBES): New variable.
2149
fdb1bf9d
MK
2150 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2151
963c4174
MK
21522004-07-03 Mark Kettenis <kettenis@gnu.org>
2153
2154 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2155 <sys/proc.h>.
2156 (bsd_kvm_cmdlist): New variable.
2157 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2158 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2159 command and "kvm proc" command.
2160 * Makefile.in (bsd-kvm.o): Update dependencies.
2161
533f1d8f
MK
21622004-07-02 Mark Kettenis <kettenis@gnu.org>
2163
2164 * osabi.c: Update copyright year.
2165 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2166 notes if EI_OSABI is set to ELFOSABI_HPUX.
2167
6780dcde
MS
21682004-07-01 Michael Snyder <msnyder@redhat.com>
2169
2170 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2171 that seems to have gotten whacked out of line.
2172
67bebe79
MK
21732004-07-01 Mark Kettenis <kettenis@gnu.org>
2174
2175 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2176 code.
2177
0b5d8877
PH
21782004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2179
2180 * ada-lang.c (decode_packed_array): Minor change to comment.
2181 (ada_value_slice_ptr): New function.
2182 (ada_value_slice): New function.
2183 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2184 test. Don't know why it is there.
2185 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2186 to avoid dereferencing huge arrays from which one is slicing.
2187 (empty_array): Correct to return an array rather than
2188 a subrange value.
2189 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2190 on empty arrays (let'em use 'FIRST instead).
2191
19c1ef65
PH
21922004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2193
2194 Address complaints from gdb_ari.sh:
2195
2196 * ada-exp.y: Include gdb_string.h rather than string.h.
2197 (convert_char_literal): Reformat declaration.
2198 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2199 * ada-lex.l: Change use of free to xfree (the macro would do so
2200 anyway, but this is harmless).
2201 Include gdb_string.h rather than string.h.
2202 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2203
2204 * ada-lang.c (parse): Remove K&Rism in parameter list.
2205 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2206
d81cbc94
MK
22072004-06-30 Mark Kettenis <kettenis@gnu.org>
2208
2209 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2210 dead code.
2211
07681759
MK
22122004-06-30 Mark Kettenis <kettenis@gnu.org>
2213
2214 * alphabsd-nat.c: Update copyright year.
2215 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2216
f7948b5f
JB
22172004-06-29 Joel Brobecker <brobecker@gnat.com>
2218
6e0cdd28 2219 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
2220 (i386_cygwin_in_solib_call_trampoline): New function.
2221 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2222 and skip_trampoline_code gdbarch methods.
2223
8f113c9a
JB
22242004-06-29 Jim Blandy <jimb@redhat.com>
2225
2226 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2227 name actually used in the dependency lists.
2228
97dc871c
RC
22292004-06-29 Randolph Chung <tausq@debian.org>
2230
2231 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2232
47216e51
CV
22332004-06-29 Corinna Vinschen <vinschen@redhat.com>
2234
2235 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 2236 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
2237 functionality.
2238
e623b504
AC
22392004-06-28 Andrew Cagney <cagney@gnu.org>
2240
2241 * defs.h (xstrvprintf): Declare.
2242 * utils.c (xstrvprintf): New function.
2243 (internal_vproblem, xstrprintf, xasprintf)
2244 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2245 * serial.c (serial_printf): Ditto.
2246 * complaints.c (vcomplaint): Ditto.
2247
79acc9b3
CV
22482004-06-29 Corinna Vinschen <vinschen@redhat.com>
2249
2250 * infcmd.c (attach_command): Move call to target_terminal_inferior
2251 behind loading symbol table.
2252
1daf35d9
AC
22532004-06-28 Andrew Cagney <cagney@gnu.org>
2254
2255 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2256 change - add back extern deprecated_ui_loop_hook declaration.
2257
b435e160
AC
22582004-06-28 Andrew Cagney <cagney@gnu.org>
2259
2260 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2261 xstrprintf.
2262 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2263 (c_value_of_variable): Ditto.
2264 * utils.c (internal_vproblem): Ditto.
2265 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2266 * remote.c (add_packet_config_cmd): Ditto.
2267 * remote-rdp.c (rdp_set_command_line): Ditto.
2268 * regcache.c (regcache_dump): Ditto.
2269 * frv-tdep.c (new_variant, new_variant): Ditto.
2270 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2271 (fbsd_find_memory_regions): Ditto.
2272 * breakpoint.c (create_thread_event_breakpoint)
2273 (create_breakpoints): Ditto.
2274 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2275 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2276
06d5cf63
JB
22772004-06-28 Joel Brobecker <brobecker@gnat.com>
2278
2279 * ada-lang.c: Re-indent file, with some massaging to help indent
2280 a bit when the result is otherwise really too ugly.
2281
35809fad
UW
22822004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2283
2284 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2285 code_addr_p and special_addr_p to 'unsigned int'.
2286
40e20472
MK
22872004-06-27 Mark Kettenis <kettenis@gnu.org>
2288
2289 * i386v4-nat.c: Update copyright year and tweak comment.
2290 (regmap): Remove trailing comma.
2291 (supply_gregset): Rename local variable i to regnum. Call
2292 regcache_raw_supply instead of supply_register.
2293 (fill_gregset): Rename argument regno to regnum. Call
2294 regcache_raw_collect instead of regcache_collect.
2295
12b0b6de
UW
22962004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2297
2298 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2299 and special_addr_p.
2300 (frame_id_build, frame_id_build_special): Update comments.
2301 (frame_id_build_wild): New prototype.
2302 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2303 struct frame_id fields.
2304 (frame_id_build_wild): New function.
2305 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2306
47b42a3e
MK
23072004-06-27 Mark Kettenis <kettenis@gnu.org>
2308
2309 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2310 hppabsd-tdep.c.
2311
1265e4aa
JB
23122004-06-27 Joel Brobecker <brobecker@gnat.com>
2313
2314 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2315
76a01679
JB
23162004-06-27 Joel Brobecker <brobecker@gnat.com>
2317
2318 * ada-lang.c: Re-indent file.
2319
7aca490a
JB
23202004-06-27 Joel Brobecker <brobecker@gnat.com>
2321
2322 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2323 (no_symtab_msg): Likewise.
2324
5e987968
AS
23252004-06-27 Andreas Schwab <schwab@suse.de>
2326
2327 * source.c: Fix whitespace.
2328
315c4276
MK
23292004-06-27 Mark Kettenis <kettenis@gnu.org>
2330
d15be926
MK
2331 * configure.in: Include <sys/param.h> for td_pcb test.
2332 * configure: Regenerated.
2333
9062529b
MK
2334 * i386nbsd-nat.c: New file.
2335 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2336 i386obsd-nat.c and i386obsd-tdep.c.
2337 (i386nbsd-nat.o): New dependency.
2338 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2339 bsd-kvm.o.
2340 (LOADLIBES): New variable.
2341 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2342 bsd-kvm.o.
2343 (LOADLIBES): New variable.
2344
8010310e
MK
2345 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2346 (LOADLIBES): New variable.
2347
efe1d7b9
MK
2348 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2349 fetching from BSD_KVM_PADDR. Correctly lookup address for
2350 "_thread0".
2351
315c4276
MK
2352 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2353 "bsd-kvm.h".
2354 (amd64fbsd_supply_pcb): New funcion.
2355 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2356
399cfac6
DL
23572004-06-27 <david@streamline-computing.com>
2358
2359 Partial fix for PR cli/1056.
2360 * valarith.c: Check for zero in division and remainder
2361 evaluation.
2362
6235f9c8
MK
23632004-06-27 Mark Kettenis <kettenis@gnu.org>
2364
2365 * i387-tdep.c: Remove excessive whitespace.
2366
2726dafc
AC
23672004-06-26 Andrew Cagney <cagney@gnu.org>
2368
2369 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2370 * gdb-events.h, gdb-events.c: Re-generate.
2371 * tui/tui-hooks.c (tui_install_hooks): Update.
2372 (tui_remove_hooks): Update.
2373 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2374
0e56aeaf
MK
23752004-06-26 Mark Kettenis <kettenis@gnu.org>
2376
cb461069
MK
2377 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2378 (gregset_t, fpregset_t): Remove typedefs.
2379 (REG_OFFSET): Rename argument.
2380 (amd64bsd_r_reg_offset): Rename from reg_offset.
2381 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2382 Remove functions.
2383 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2384 of reg_offset.
2385 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2386
ecba89de
MK
2387 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2388
4cd80476
MK
2389 * vax-tdep.c: Tweak comment.
2390
0e56aeaf
MK
2391 Add OpenBSD/hppa support.
2392 * NEWS (New native configurations): Mention OpenBSD/hppa.
2393 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2394 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2395 files.
2396 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2397 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2398 * configure.host: Add hppa*-*-openbsd*.
2399 * configure.tgt: Add hppa*-*-openbsd*.
2400
98bbd631
AC
24012004-06-25 Andrew Cagney <cagney@gnu.org>
2402
2403 * defs.h (deprecated_ui_loop_hook): Deprecated.
2404 * wince.c (child_wait): Update.
2405 * win32-nat.c (child_wait): Update.
2406 * v850ice.c (v850ice_wait): Update.
2407 * top.c (deprecated_ui_loop_hook): Update.
2408 * serial.h: Update.
2409 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2410 (do_unix_readchar): Update.
2411 * ser-tcp.c (net_open): Update.
2412 * remote-sim.c (gdb_os_poll_quit): Update.
2413 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2414
769d7dc4
AC
24152004-06-24 Andrew Cagney <cagney@gnu.org>
2416
2417 * defs.h (deprecated_pre_add_symbol_hook)
2418 (deprecated_post_add_symbol_hook): Deprecated.
2419 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2420 (symbol_file_add_with_addrs_or_offsets): Update references.
2421
11c949aa
AC
24222004-06-24 Andrew Cagney <cagney@gnu.org>
2423
2424 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2425 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2426 * wince.c (ui_loop_hook): Delete extern declaration.
2427 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2428 * v850ice.c (ui_loop_hook): Delete extern declaration..
2429 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2430 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2431 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2432 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2433 ui_loop_hook declaration.
2434
eedc19af
AC
24352004-06-24 Andrew Cagney <cagney@gnu.org>
2436
2437 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2438 entry_func_highpc fields.
2439 * objfiles.c (init_entry_point_info): Do not clear
2440 entry_func_lowpc and entry_func_highpc.
2441 (objfile_relocate): Do not relocate entry_func_lowpc and
2442 entry_func_highpc.
2443 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2444 entry_func_highpc.
2445 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2446 entry_func_highpc.
2447 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2448 entry_func_lowpc and entry_func_highpc with call to
2449 inside_entry_func.
2450
d47079be
MK
24512004-06-24 Mark Kettenis <kettenis@gnu.org>
2452
2453 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2454 quad-precision floating point arguments in registers.
2455
2107e348
MK
24562004-06-24 Mark Kettenis <kettenis@gnu.org>
2457
2458 From Michael Mueller <m.mueller99@kay-mueller.de>:
2459 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2460 account.
2461
46587c42
JJ
24622004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2463
2464 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2465 to -1.
2466 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2467 untriggered watchpoints to a separate if clause. Update function
2468 comment regarding STOPPED_BY_WATCHPOINT argument.
2469
226f5cf4
JB
24702004-06-22 Jim Blandy <jimb@redhat.com>
2471
2472 * gdbarch.sh: Doc fix.
2473
f10683bb
MH
24742004-06-21 Martin Hunt <hunt@redhat.com>
2475 Kevin Buettner <kevinb@redhat.com>
2476
2477 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2478 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2479 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2480 to set_gdbarch_sp_regnum(). Use cooked register number.
2481 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2482
412d5987
AC
24832004-06-21 Andrew Cagney <cagney@gnu.org>
2484
2485 * gdbarch.sh: When the macro field is empty, do not generate a
2486 macro definition. When the macro field is "=", generate the macro
2487 name from the upper-case function name.
2488 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2489 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2490 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2491 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2492 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2493 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2494 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2495 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2496 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2497 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2498 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2499 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2500 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2501 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2502 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2503 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2504 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2505 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2506 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2507 (DEPRECATED_USE_STRUCT_CONVENTION)
2508 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2509 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2510 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2511 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2512 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2513 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2514 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2515 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2516 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2517 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2518 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2519 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2520 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2521 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2522 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2523 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2524 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2525 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2526
68908a3e
AC
25272004-06-21 Andrew Cagney <cagney@gnu.org>
2528
48f7351b
AC
2529 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2530 macro name, and the function rather than macro value. Only wrap
2531 macro print statements in #ifdef. Move format logic to where it
2532 is needed.
2533 * gdbarch.c: Re-generate.
2534
283354d8
AC
2535 * gdbarch.sh (read): Delete "print_p" and "description", add
2536 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2537 Delete references to print_p.
2538 (TARGET_ARCHITECTURE): Delete print predicate.
2539 * gdbarch.c: Re-generate.
2540
68908a3e
AC
2541 * gdbarch.sh: Check that multi-arch methods do not provide a
2542 macro.
2543 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2544 (print_registers_info, print_float_info, print_vector_info)
2545 (adjust_breakpoint_address, remote_translate_xfer_address)
2546 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2547 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2548 name from the multi-arch definition.
2549
a2428dbe
AC
25502004-06-20 Andrew Cagney <cagney@gnu.org>
2551
2552 * gdbarch.sh: Sort by the function, instead of macro name.
2553 * gdbarch.c: Re-generate.
2554
750eb019
AC
25552004-06-20 Andrew Cagney <cagney@gnu.org>
2556
66d659b1
AC
2557 * gdbarch.sh: Use the function, instead of macro name in
2558 errors and the log file.
2559 (return_value): Remove stray ":" in spec.
2560
750eb019
AC
2561 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2562 * gdbarch.h, gdbarch.c: Re-generate.
2563 * Makefile.in (arch-utils.o): Update dependencies.
2564 * values.c (using_struct_return): Move code calling
2565 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2566 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2567 to legacy_return_value, simplify.
2568 * infcmd.c (print_return_value): Move code calling
2569 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2570 to legacy_return_value, simplify.
2571 * infcall.c (call_function_by_hand): Move code calling
2572 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2573 * arch-utils.c: Update copyright. Include "gdbcore.h".
2574 (legacy_return_value): New function.
2575 * arch-utils.h: Update copyright.
2576 (legacy_return_value): Declare.
2577
b5622e8d
AC
25782004-06-20 Andrew Cagney <cagney@gnu.org>
2579
2580 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2581 * gdbarch.h, gdbarch.c: Re-generate.
2582 * values.c (using_struct_return): Update call.
2583 * mcore-tdep.c: Update comment.
2584 * infcall.c (call_function_by_hand): Update comment.
2585 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2586 * arch-utils.h (always_use_struct_convention): Update.
2587 * v850-tdep.c (v850_gdbarch_init): Update.
2588 * sh64-tdep.c (sh64_gdbarch_init): Update.
2589 * sh-tdep.c (sh_gdbarch_init): Update.
2590 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2591 * mips-tdep.c (mips_gdbarch_init): Update.
2592 * mcore-tdep.c (mcore_gdbarch_init): Update.
2593 * m32r-tdep.c (m32r_gdbarch_init): Update.
2594 * ia64-tdep.c (ia64_gdbarch_init): Update.
2595 * h8300-tdep.c (h8300_gdbarch_init): Update.
2596 * frv-tdep.c (frv_gdbarch_init): Update.
2597 * cris-tdep.c (cris_gdbarch_init): Update.
2598 * arm-tdep.c (arm_gdbarch_init): Update.
2599 * alpha-tdep.c (alpha_gdbarch_init): Update.
2600
5191de37
MC
26012004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2602
2603 * PROBLEMS: Add more specific information, and a work-around,
2604 for PR gdb/1458.
2605
782263ab
AC
26062004-06-18 Andrew Cagney <cagney@gnu.org>
2607
2608 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2609 * gdbarch.h, gdbarch.c: Re-generate.
2610 * ada-lang.c (ada_finish_decode_line_1): Update.
2611 * infrun.c (handle_inferior_event): Update.
2612 * infcall.c (find_function_addr): Update.
2613 * linespec.c (minsym_found): Update.
2614 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2615 Update.
2616 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2617 * cli/cli-cmds.c (disassemble_command): Update.
2618 * vax-tdep.c (vax_gdbarch_init): Update.
2619
2f305df1
MK
26202004-06-18 Mark Kettenis <kettenis@gnu.org>
2621
2622 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2623
e5fe55f7
AC
26242004-06-17 Andrew Cagney <cagney@gnu.org>
2625
2626 GDB 6.1.1 released from the GDB 6.1 branch.
2627 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2628 * PROBLEMS: Ditto.
2629
473b7be6
DJ
26302004-06-16 Daniel Jacobowitz <dan@debian.org>
2631
2632 PR gdb/1658
2633 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2634 operation as a uleb128. Found by Michael Coulter.
2635
96d887e8
PH
26362004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2637
2638 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2639 make it non-static.
2640 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2641 to ada-lang.h; this is needed to be able to implement the kill command
2642 in multi-task mode.
2643 (task_ptid): Ditto.
2644 (task_entry): Ditto.
2645 (task_list): Ditto.
2646 (ada_build_task_list): Ditto.
2647
2648 * ada-lang.c: Conditionalize routines and data structures related
2649 to breakpoints, exceptions, completion, and symbol caching on
2650 GNAT_GDB, since these are not yet used in the submitted public sources.
2651 (ada_main_name): Editorial: Move definition out of exception-related
2652 code.
2653
31eef181
AC
26542004-06-15 Andrew Cagney <cagney@gnu.org>
2655
2656 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2657 deprecated_pc_in_call_dummy.
2658
2c500098
AM
26592004-06-15 Alan Modra <amodra@bigpond.net.au>
2660
2661 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2662 bfd_get_section_size_before_reloc or _raw_size.
2663 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2664 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2665 (dwarf2_read_section): Likewise.
2666 * elfread.c (elf_locate_sections): Likewise.
2667 * gcore.c (derive_heap_segment): Likewise.
2668 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2669 * remote-e7000.c (e7000_load): Likewise.
2670 * remote-m32r-sdi.c (m32r_load): Likewise.
2671 * remote-mips.c (mips_load_srec): Likewise.
2672 (pmon_load_fast): Likewise.
2673 * remote.c (compare_sections_command): Likewise.
2674 * symfile.c (add_section_size_callback): Likewise.
2675 (load_section_callback): Likewise.
2676 (pc_in_unmapped_range): Likewise.
2677 (pc_in_mapped_range): Likewise.
2678 (sections_overlap): Likewise.
2679 (list_overlays_command): Likewise.
2680 (simple_overlay_update_1): Likewise.
2681 (simple_overlay_update): Likewise.
2682 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2683 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2684
90f943f1
RC
26852004-06-14 Randolph Chung <tausq@debian.org>
2686
2687 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2688 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2689 static.
2690 (hppa_hpux_inferior_created): New function.
2691 (hppa_hpux_init_abi): Register observer.
2692 * symfile.c (hp_cxx_exception_support_initialized)
2693 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2694 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2695
700c15aa
RC
26962004-06-14 Randolph Chung <tausq@debian.org>
2697
3973a7d3
AC
2698 * MAINTAINERS (Write After Approval): Alphabetize my entry
2699 correctly.
700c15aa 2700
cea4838c
AC
27012004-06-14 Andrew Cagney <cagney@gnu.org>
2702
2703 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2704 testsuite maintainer.
2705
97092415
AC
27062004-06-13 Andrew Cagney <cagney@gnu.org>
2707
e8c3165b
AC
2708 * infcmd.c (print_return_value): Fix logic, allow
2709 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2710
bceabdd8
AC
2711 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2712 defining any macros.
2713 * gdbarch.h: Re-generate.
2714
57010b1c
AC
2715 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2716 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2717 * gdbarch.h: Re-generate.
2718
bc87dfa0
AC
2719 * values.c (generic_use_struct_convention): Don't check gcc_p.
2720
15ac804d
AC
2721 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2722 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2723 * gdbarch.h, gdbarch.c: Regenerate.
2724 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2725 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2726 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2727 deprecated_max_register_raw_size and
2728 deprecated_max_register_virtual_size.
2729 * v850-tdep.c (v850_gdbarch_init): Ditto.
2730 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2731 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2732 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2733 * cris-tdep.c (cris_gdbarch_init): Ditto.
2734
97092415
AC
2735 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2736 * gdbarch.h, gdbarch.c: Re-generate.
2737 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2738 (m68hc11_use_struct_convention): Delete function.
2739 (m68hc11_extract_struct_value_address): Delete function.
2740 (m68hc11_return_value): New function.
2741 (m68hc11_gdbarch_init): Instead of store_return_value,
2742 extract_return_value, return_value_on_stack,
2743 deprecated_extract_struct_value_address and use_struct_convention,
2744 set return_value.
2745 * values.c (using_struct_return): Do not call
2746 RETURN_VALUE_ON_STACK.
2747 * arch-utils.h (generic_return_value_on_stack_not): Delete
2748 declaration.
2749 * arch-utils.c (generic_return_value_on_stack_not): Delete
2750 function.
2751
44e5158b
AC
27522004-06-12 Andrew Cagney <cagney@gnu.org>
2753
2754 * values.c (register_value_being_returned): Delete function.
2755 * infcmd.c (legacy_return_value): Delete function.
2756 * infcall.c (call_function_by_hand): Inline
2757 "register_value_being_returned", simplify.
2758 * values.c (using_struct_return): Update comment, refer to
2759 print_return_value instead of register_value_being_returned.
2760 * infcmd.c (print_return_value): Inline calls to
2761 register_value_being_returned and legacy_return_value. Simplify.
2762
b887c273
RC
27632004-06-11 Randolph Chung <tausq@debian.org>
2764
2765 * somread.c (som_symtab_read): Exclude gcc local symbols.
2766
1b2bfbb9
RC
27672004-06-11 Randolph Chung <tausq@debian.org>
2768
3973a7d3
AC
2769 * infrun.c (handle_inferior_event): Handle the case when a
2770 trampoline ends up in the runtime resolver, and if the trampoline
2771 has no name. Rearrange the code so that all the trampoline
2772 processing happens before other step-out-of-range handling.
1b2bfbb9 2773
a9d61c86
MH
27742004-06-11 Martin Hunt <hunt@redhat.com>
2775
2776 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2777 has no fpu.
2778
2c87cf5a
AC
27792004-06-10 Andrew Cagney <cagney@gnu.org>
2780
2781 * blockframe.c (legacy_inside_entry_func): Delete.
2782 (legacy_frame_chain_valid): Inline call to
2783 legacy_inside_entry_func, simplify.
2784
0b67b468 27852004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
2786
2787 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
2788 * dwarf2read.c (partial_die_info): Add dirname field.
2789 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2790 (read_partial_die): Save away DW_AT_comp_dir.
2791 * defs.h (symtab_to_filename): Removed.
2792 * source.c (find_and_open_source): Added.
57c22c6c 2793 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
2794 (symtab_to_filename): Removed.
2795 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
2796 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2797 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2798 symtab_to_filename.
2799 * symtab.h (partial_symtab): Add dirname field.
2800 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
2801 (mi_cmd_file_list_exec_source_file): Call new function
2802 symtab_to_fullname to find fullname.
57c22c6c 2803 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 2804 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
2805 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2806
9a1dd1ad
AC
28072004-06-10 Andrew Cagney <cagney@gnu.org>
2808
239ae8c7
AC
2809 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2810 to generic_use_struct_convention, the default value.
2811
fc720350
AC
2812 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2813 of abort.
2814
9a1dd1ad
AC
2815 * ns32k-tdep.c (ns32k_push_arguments): New function.
2816 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2817 * infcall.c (call_function_by_hand): Call error instead of
2818 legacy_push_arguments.
2819 * value.h (legacy_push_arguments): Delete declaration.
2820 * valops.c (legacy_push_arguments): Delete function.
2821 (value_push): Delete function.
2822
fea25152
BF
28232004-06-10 Brian Ford <ford@vss.fsi.com>
2824
2825 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2826 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2827 info.
2828 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2829
30a4a8e0
AC
28302004-06-10 Andrew Cagney <cagney@gnu.org>
2831
2832 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2833 * gdbarch.h, gdbarch.c: Re-generate.
2834 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2835 parameters.
2836 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2837 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2838 deprecated_pc_in_call_dummy instead of
2839 DEPRECATED_PC_IN_CALL_DUMMY.
2840 (arm_skip_prologue): Ditto.
2841 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2842 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2843 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2844 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2845 Ditto.
2846 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2847 (sh64_init_extra_frame_info, sh64_get_saved_register)
2848 (sh64_pop_frame): Ditto.
2849 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2850 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2851 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2852 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2853 (h8300_pop_frame): Ditto.
2854 * blockframe.c (legacy_inside_entry_func)
2855 (legacy_frame_chain_valid): Ditto.
2856 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
2857 to deprecated_pc_in_call_dummy.
2858
81cfbe54
AC
28592004-06-09 Andrew Cagney <cagney@gnu.org>
2860
a1f4a1b6
AC
2861 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
2862 provide a default value.
2863 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
2864 * gdbarch.h, gdbarch.c: Re-generate.
2865 * arch-utils.c (generic_convert_register_p): Rename
2866 legacy_convert_register_p
2867 (legacy_register_to_value, legacy_value_to_register): Delete
2868 functions.
2869 * arch-utils.h (generic_convert_register_p): Rename
2870 legacy_convert_register_p.
2871 (legacy_register_to_value, legacy_value_to_register): Delete
2872 declarations.
2873
9730f241
AC
2874 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
2875 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
2876 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
2877 * gdbarch.h, gdbarch.c: Re-generate.
2878 * infcmd.c (default_print_registers_info): Simplify.
2879 * findvar.c (value_of_register): Simplify.
2880 * mi/mi-main.c (get_register): Simplify.
2881 * arch-utils.c (legacy_convert_register_p): Always return 0.
2882 (legacy_register_to_value, legacy_value_to_register): Always call
2883 internal_error.
2884
8a1bf479
AC
2885 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
2886 #ifdef CLEAR_INSN_CACHE code.
2887 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
2888 Delete #ifdef CLEAR_DEFERRED_STORES code.
2889
4b38d6f1
AC
2890 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
2891
2d62ecc7
AC
2892 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
2893 copyright.
2894 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
2895
be4f7469
AC
2896 * config/mips/mipsv4.mh: Delete file.
2897
81cfbe54
AC
2898 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
2899 unreferenced macro.
2900 (hpread_adjust_stack_address): Delete declaration.
2901
d966f0cb
AC
29022004-06-08 Andrew Cagney <cagney@gnu.org>
2903
2904 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2905 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
2906 PTRACE_ATTACH / PTRACE_DETACH available call error.
2907 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
2908 * infttrace.c (update_thread_state_after_attach, attach, detach):
2909 Remove #ifdef wrappers.
2910 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
2911 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2912 * config/nm-bsd.h (ATTACH_DETACH): Delete.
2913 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
2914 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
2915 * config/nm-linux.h (ATTACH_DETACH): Delete.
2916 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
2917 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
2918 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
2919 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
2920 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
2921
d91670b9
CV
29222004-06-08 Corinna Vinschen <vinschen@redhat.com>
2923
2924 * configure.in: Set $configdir to the right OS specific value.
2925 Use value when setting $tcldir and $tkdir.
2926 * configure: Regenerate.
2927
28ba0b33
PB
29282004-06-06 Paul Brook <paul@codesourcery.com>
2929
2930 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
2931 records.
2932
f26caa11
PH
29332004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
2934
2935 * ada-lang.c (lookup_symbol_in_language): New function to allow
2936 re-use of another language's symbol lookup code. (Placed here
2937 temporarily while Ada support is being integrated into the public
2938 tree).
2939 (restore_language): New auxiliary function for
2940 lookup_symbol_in_language.
2941 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
2942 temporarily while Ada support is being integrated into the public
2943 tree).
2944
d560a54b
AO
29452004-06-08 Alexandre Oliva <aoliva@redhat.com>
2946
e75d110c
AO
2947 * Makefile.in (check//%): New.
2948
d560a54b
AO
2949 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
2950 (mn10300_store_return_value): Rewrite.
2951 (mn10300_type_align): New.
2952 (mn10300_use_struct_convention): Rewrite.
2953 (mn10300_return_value): New, using all of the above.
2954 (mn10300_pop_frame_regular): Add saved_regs_size.
2955 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
2956
a72fbdb7
AO
2957 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
2958 regs if PC is on movm.
2959
01904826
JB
29602004-06-07 Jim Blandy <jimb@redhat.com>
2961
2962 Add native Linux support for the PowerPC E500.
2963 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
2964 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
2965 all architectures except the E500.
2966 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
2967 #definitions.
2968 (struct gdb_evrregset_t): New type.
2969 (have_ptrace_getsetevrregs): New variable.
2970 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
2971 fetch_spe_registers): New functions.
2972 (fetch_register): Call fetch_spe_register as appropriate.
2973 Assert that we're only passed raw register numbers.
2974 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
2975 Don't fetch gprs if they're pseudoregisters.
2976 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
2977 store_spe_registers): New functions.
2978 (store_register): Call store_spe_register as appropriate.
2979 Assert that we're only passed raw register numbers.
2980 (store_ppc_registers): Call store_spe_registers as appropriate.
2981 Don't store gprs if they're pseudoregisters.
2982
f90ef764
JJ
29832004-06-07 Jeff Johnston <jjohnstn@redhat.com>
2984
2985 * thread-db.c (thread_get_info_callback): Fill in the thread_info
2986 struct if one exists, even if we are dealing with a zombie thread.
2987
45b75230
AC
29882004-06-07 Andrew Cagney <cagney@gnu.org>
2989
2990 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
2991 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
2992 Rename PC_REQUIRES_RUN_BEFORE_USE.
2993 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
2994 #ifdef.
2995
1658da49
RC
29962004-06-07 Randolph Chung <tausq@debian.org>
2997
2998 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
2999 unwinding after sp has been saved to the stack but before the end
3000 of the prologue, and after the fp has been modified but before it has
3001 been saved to the stack.
3002 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3003 Remove superfluous definitions.
3004 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3005
9a727a3c
RC
30062004-06-07 Guy Martin <gmsoft@gentoo.org>
3007
3008 Committed by Randolph Chung.
3009 * hppa-linux-nat.c: Include the correct version of the header file
3010 depending on the kernel version.
3011
9e500012
RC
30122004-06-06 Randolph Chung <tausq@debian.org>
3013
3014 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3015 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3016
3388d7ff
RC
30172004-06-06 Randolph Chung <tausq@debian.org>
3018
3019 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3020 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3021 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3022 * hppa-tdep.c (hppa_symbol_address): New function definition.
3023 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3024
d49771ef
RC
30252004-06-06 Randolph Chung <tausq@debian.org>
3026
3027 * hppa-tdep.h (struct value): Forward declaration.
3028 (gdbarch_tdep): Define tdep find_global_pointer method.
3029 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3030 associated with the function we are trying to call, and write it
3031 to the gp register.
3032 (hppa32_convert_from_funct_ptr_addr): New function.
3033 (hppa_find_global_pointer): New function.
3034 (hppa_gdbarch_init): Set default find_global_pointer method; set
3035 convert_from_func_ptr_addr method.
3036 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3037 (hppa_linux_init_abi): Set find_global_pointer method.
3038 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3039
7d9b040b
RC
30402004-06-06 Randolph Chung <tausq@debian.org>
3041
3042 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3043 to struct value *function.
3044 * gdbarch.c: Regenerate.
3045 * gdbarch.h: Likewise.
3046 * infcall.c (call_function_by_hand): Pass entire function value
3047 to push_dummy_call.
3048
3049 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3050 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3051 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3052 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3053 * arm-tdep.c (arm_push_dummy_call): Likewise.
3054 * avr-tdep.c (avr_push_dummy_call): Likewise.
3055 * cris-tdep.c (cris_push_dummy_call): Likewise.
3056 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3057 * frv-tdep.c (frv_push_dummy_call): Likewise.
3058 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3059 * hppa-tdep.c (hppa32_push_dummy_call)
3060 (hppa64_push_dummy_call): Likewise.
3061 * i386-tdep.c (i386_push_dummy_call): Likewise.
3062 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3063 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3064 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3065 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3066 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3067 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3068 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3069 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3070 (ppc64_sysv_abi_push_dummy_call): Likewise.
3071 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3072 (ppc64_sysv_abi_push_dummy_call): Likewise.
3073 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3074 * s390-tdep.c (s390_push_dummy_call): Likewise.
3075 * sh-tdep.c (sh_push_dummy_call_fpu)
3076 (sh_push_dummy_call_nofpu): Likewise.
3077 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3078 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3079 * vax-tdep.c (vax_push_dummy_call): Likewise.
3080
4a19ea35
JB
30812004-06-04 Jim Blandy <jimb@redhat.com>
3082
8327ccee
JB
3083 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3084 gdbarch argument to register_size.
3085
a3c001ce
JB
3086 * rs6000-tdep.c (rs6000_store_return_value): Use
3087 regcache_cooked_write_part instead of
3088 deprecated_write_register_bytes.
3089 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3090 not gdbarch_deprecated_store_return_value.
3091
4a19ea35
JB
3092 * ppc-linux-nat.c (store_register, fetch_register): Remove
3093 incorrect assertions. Simplify and generalize handling of
3094 transfers whose sizes are not multiples of, or less than, sizeof
3095 (PTRACE_XFER_TYPE).
3096
b9b5d7ea
JJ
30972004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3098
3099 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3100 as a new thread event.
720c7d64 3101 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 3102 zombie, return TD_THR_ZOMBIE.
720c7d64 3103 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
3104 TD_THR_ZOMBIE, check if the thread is still on the thread list
3105 and return a -1 ptid if not found.
3106 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3107 change the status to TARGET_WAITKIND_SPURIOUS.
3108
c8a3b559
CV
31092004-06-03 Corinna Vinschen <vinschen@redhat.com>
3110
3111 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3112 double values in little endian mode.
3113
20605361
AC
31142004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3115
3116 Committed by Andrew Cagney.
3117 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3118 after last enum constant to avoid error from IBM C
3119 compiler.
3120
bc97b3ba
JB
31212004-06-02 Jim Blandy <jimb@redhat.com>
3122
3123 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3124 to 'message', and make it local to the lone block that uses it.
3125
1da28ab0
JB
3126 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3127
4c4b4cd2
PH
31282004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3129
8a2225b2
PH
3130 * ada-exp.y: Update copyright notice.
3131 Include block.h.
3132
3133 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3134 SPECIAL_VARIABLE and unify the treatment of these cases.
3135
3136 (write_attribute_call0): Remove.
3137 (write_attribute_call1): Remove.
3138 (write_attribute_calln): Remove.
3139 (save_qualifier): Add missing semicolon.
3140
3141 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3142 temporarily disabled to allow compilation with FSF head version.
3143
3144 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3145 use individual operators (OP_*) for all attributes.
3146 (exp syntax): Use write_int.
3147 Handle STRING literals with OP_STRING.
3148 (variable syntax): Add limit parameter to calls to
3149 write_object_renaming.
3150
3151 (temp_parse_space): New definition to hold entities that need
3152 only live until the next call to ada_parse.
3153 (string_to_operator): Rename fields of ada_opname_table entries.
3154
3155 (write_var_from_sym): Record block.
3156 (write_var_from_name): Minor reformatting.
3157 Make sure saved name is properly encoded in the case of multiple
3158 matches, and set its language to Ada.
3159 Update comment.
3160 Modify to indicate unresolved name as symbol in the UNRESOLVED
3161 namespace, allocated in temp_parse_space.
3162 (write_int): New function.
3163
3164 (write_object_renaming): Add max_depth parameter to limit
3165 chains of object renamings.
3166 Handle case where root of renaming expression is itself a renaming.
3167 Use temp_parse_space for temporary name buffer.
3168 Handle renamings to dereferenced pointers (___XEXA suffices).
3169
3170 (ada_parse, yyerror, string_to_operator,
3171 write_var_from_sym, write_var_from_name, write_attribute_call0,
3172 write_attribute_call1, write_attribute_calln,
3173 write_object_renaming): Protoize.
3174
3175 (_initialize_ada_exp): New function.
3176
3177 * ada-lang.c: Update copyright notice.
3178 General terminology change to conform to GNAT compiler usage:
3179 mangle => encode, demangle => decode
3180 Include gdb_obstack.h.
3181 Include gdb_regex.h
3182 Include frame.h
3183 Include hashtab.h
3184 Include completer.h
3185 Include gdb_stat.h
3186 Include block.h
3187 Include infcall.h
3188
3189 (ADA_RETAIN_DOTS): Make sure this is defined.
3190 (TRUNCATION_TOWARDS_ZERO): Define.
3191 (struct string_vector): Define.
3192 (unresolved_names): Remove definition.
3193 (xnew_string_vector): New function.
3194 (string_vector_append): New function.
3195 (extract_string): Make static.
3196 (ada_unqualified_name): New function.
3197 (add_angle_brackets): New function.
3198 (function_name_from_pc): New function.
3199 (place_on_stack): Rename to ensure_lval.
3200
3201 (ensure_lval): Renamed from place_on_stack.
3202 Make identity on lvals.
3203 Update comment.
3204 (is_nonfunction): New interface.
3205 Only symbols in LOC_CONST class can be enumerals.
3206 (fill_in_ada_prototype): Remove; now independent of language.
3207 (add_defn_to_vec): Add obstack and symtab arguments.
3208 Use obstack to hold collected definitions.
3209 (num_defns_collected): New function.
3210 (defns_collected): New function.
3211 (ada_resolve_subexp): Rename to resolve_subexp.
3212 (resolve_subexp): Renamed from ada_resolve_subexp.
3213 (ada_op_name): Return non-const result.
3214 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3215 other purposes.
3216
3217 (to_fixed_array_type): Add declaration.
3218 (coerce_unspec_val_to_type): Remove offset parameter.
3219 (find_sal_from_funcs_and_line): New interface.
3220 (find_line_in_linetable): Ditto.
3221
3222 (all_sals_for_line): Rename to ada_sals_for_line and make
3223 global.
3224 Add new parameter. When set, do not ask the user to choose the
3225 instance, but use the first one found instead.
3226 Use given line number in returned sals.
3227 Fix comment.
3228 Skip the prologue if funfirstline is set.
3229 Correct for memory leak when 0 lines found.
3230
3231 (value_pos_atr): Use pos_atr.
3232 (pos_atr): New function.
3233 (standard_lookup): Add block parameter.
3234
3235 (makeTimeStart): Remove declaration and uses.
3236 (makeTimeStop): Remove declaration and uses.
3237
3238 (ada_completer_word_break_characters): Allow for VMS.
3239 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3240 (raise_sym_name): New constant.
3241 (raise_unhandled_sym_name): New constant.
3242 (raise_assert_sym_name): New constant.
3243 (process_raise_exception_name): New constant.
3244 (longest_exception_template): New constant.
3245 (warning_limit): New variable to limit warnings during expression
3246 evaluation.
3247 (warnings_issued): New variable to keep track of warnings issued.
3248 (known_runtime_file_name_patterns): New constant.
3249 (known_auxiliary_function_name_patterns): New constant.
3250 (symbol_list_obstack): New variable.
3251
3252 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3253 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3254 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3255 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3256 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3257 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3258 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3259 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3260 and strcmp.
3261
3262 (ada_get_field_index): New function.
3263 (lim_warning): New function.
3264 (ada_translate_error_message): New function.
3265 (MAX_OF_SIZE): New function.
3266 (MIN_OF_SIZE): New function.
3267 (UMAX_OF_SIZE): New function.
3268 (UMIN_OF_SIZE): New function.
3269 (discrete_type_high_bound): New function.
3270 (discrete_type_low_bound): New function.
3271 (base_type): New function.
3272 (do_command): Remove.
3273
3274 (ada_update_initial_language): Use language_ada, not language_unknown.
3275 (ada_encode): Renamed from ada_mangle.
3276 Obey ADA_RETAIN_DOTS.
3277 (ada_decode): Renamed from ada_demangle.
3278 Update coding conventions.
3279 (decoded_names_store): New hash table.
3280 (ada_decode_symbol): New function.
3281 (ada_la_decode): New function.
3282
3283 (modify_general_field): Correct computations of offset and bit
3284 position.
3285 (desc_base_type): Handle ref types, too.
3286 (ada_is_direct_array_type): New function.
3287
3288 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3289 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3290 (ada_is_bogus_array_descriptor,ada_type_of_array,
3291 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3292 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3293 ada_is_array_descriptor_type.
3294
3295 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3296 (ada_is_packed_array_type): Handle pointers or
3297 references to packed arrays as well.
3298 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3299 (decode_packed_array_type): Search for the packed array type
3300 symbol in the currently selected block and associated
3301 superblocks too.
3302 Use lookup_symbol again.
3303
3304 (decode_packed_array): Handle pointers and references.
3305 Update call to coerce_unspec_val_to_type.
3306 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3307 (ada_value_primitive_packed_val): Improve comment.
3308
3309 (ada_index_type): Substitute int type for "undefined".
3310 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3311 ada_array_langth, ada_is_string_type): Use renamed
3312 ada_is_simple_array_type.
3313 (empty_array): New function.
3314
3315 (ada_resolve): Rename to resolve.
3316 (resolve): Make static.
3317 Call renamed resolve_subexp.
3318 Update comment.
3319 (ada_resolve_subexp): Rename to resolve_subexp.
3320 (resolve_subexp): Update comment.
3321 Decomment disabled code.
3322 Add LOC_COMPUTED* cases.
3323 Modify to use temporary struct symbols (marked as being in
3324 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3325 OP_UNRESOLVED_VALUE.
3326 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3327 Add OP_STRING case.
3328 Remove OP_ARRAY.
3329 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3330 Use new ada_lookup_symbol_list interface.
3331 Use new ada_resolve_function interface.
3332 Remove OP_TYPE case.
3333
3334 (ada_args_match): Idiot proof against null actuals.
3335 Use intermediate variables to clarify.
3336 (ada_resolve_function): Update comment and interface.
3337 (mangled_ordered_before): Rename to encoded_ordered_before and
3338 update comment.
3339 (sort_choices): Update comment and interface.
3340 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3341 (user_select_syms): New interface.
3342 Use new sort_choices interface.
3343 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3344 (possible_user_operator_p): Idiot-proof against null values.
3345 (ada_simple_renamed_entity): Don't make cleanup; rely on
3346 caller to free result string.
3347 Remove const from return type.
3348 (make_array_descriptor): Rename uses of place_on_stack to
3349 ensure_lval.
3350 Make sure that arrays are on stack.
3351
3352 (HASH_SIZE): Define.
3353 (struct cache_entry): Define.
3354 (cache_space): Define.
3355 (cache): Define.
3356 (clear_ada_sym_cache): New function.
3357 (find_entry): New function.
3358 (lookup_cached_symbol): New function.
3359 (defn_vector_size): Define.
3360 (cache_symbol): New function.
3361 (defn_symbols): Remove.
3362
3363 (standard_lookup): Use lookup_symbol_in_language to get effect of
3364 C lookup.
3365 Cache results.
3366
3367 (symbol_completion_match): New function.
3368 (symbol_completion_add): New function.
3369 (ada_make_symbol_completion_list): New function.
3370
3371 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3372 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3373 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3374 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3375
3376 (ada_lookup_simple_minsym): New function.
3377 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3378
3379 (add_symbols_from_enclosing_procs): New interface.
3380 Conditionalize more helpfully.
3381 Don't bother if program isn't running.
3382 Use new interface to get_frame_block.
3383 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3384
3385 (remove_extra_symbols): New interface.
3386 (xget_renaming_scope): New function.
3387 (is_package_name): New function.
3388 (renaming_is_visible): New function.
3389 (remove_out_of_scope_renamings): New function.
3390
3391 (ada_lookup_symbol_list): New interface.
3392 Properly reinitialize the symbol list obstack.
3393 Don't call add_symbols_from_enclosing_procs if we start from a
3394 static or global block.
3395 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3396 add_symbols_from_enclosing_procs.
3397 Add symtab data to cached entries.
3398 Handle symbols prefixed with
3399 "standard__" specially; strip prefix and don't look in local symbols.
3400 Do not include out of scope renaming symbols in list of
3401 symbols returned.
3402 Add const to block parameter.
3403 Move check for non-local, non-global symbols earlier.
3404 Remove timing stuff.
3405 (ada_lookup_symbol): New interface.
3406 Find symtab as well.
3407 (ada_lookup_symbol_nonlocal): New function.
3408
3409 (is_name_suffix): Enhance suffix detection to recognize
3410 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3411 (is_dot_digits_suffix): New function.
3412 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3413
3414 (ada_add_block_symbols): New interface. Use obstack to return results
3415 in a vector of struct ada_symbol_infos. Add symtab argument.
3416 Use new interface to add_defn_to_vec.
3417 Remove calls to fill_in_ada_prototype.
3418 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3419
3420 (ada_finish_decode_line_1): Add const qualification to local to fix
3421 warning.
3422 Start looking in static block for functions to avoid attempts
3423 to search frame chain for up-level variables.
3424 Adapt to new ada_sals_for_line interface.
3425 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3426 Handle quoting of the function name inside the spec string.
3427 Skip prologue when funfirstline is set and update the
3428 function documentation to that effect.
3429
3430 (debug_print_lines, debug_print_block, debug_print_blocks,
3431 debug_print_symtab): Remove.
3432
3433 (ada_main_name): New function.
3434 (ada_exception_breakpoint_type): New function.
3435 (is_known_support_routine): New function.
3436 (ada_find_printable_frame): Renamed from find_printable_frame and made
3437 global.
3438 Remove level parameter.
3439 Use new interface to select_frame.
3440
3441 (begin_command): Remove.
3442 (ada_adjust_exception_stop): New function.
3443 (ada_print_exception_stop): New function.
3444 (exception_name_from_cond): New function.
3445 (ada_report_exception_break): Replace disabled code with
3446 conditionalization on GNAT_GDB.
3447 Get the exception name from the condition string.
3448 Remove and move functionality into new functions
3449 ada_print_exception_breakpoint_task and
3450 ada_print_exception_breakpoint_nontask.
3451 (error_breakpoint_runtime_sym_not_found): New function.
3452 (is_runtime_sym_defined): New function.
3453 (ada_breakpoint_rewrite): Uncomment suppressed code.
3454 Use symbolic error-message and runtime-symbol names.
3455 Surround runtime symbol names in quotes.
3456 Allow non-specific breakpoints on exceptions and assertions before
3457 program starts.
3458
3459 (ada_is_tagged_type): Add parameter.
3460 (ada_is_tag_type): New function.
3461 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3462 (ada_variant_discrim_type): Ditto.
3463 (value_tag_from_contents_and_address): New function.
3464 (type_from_tag): New function.
3465 (struct tag_args): New structure used to communicate with
3466 ada_tag_name_1.
3467 (ada_tag_name_1): New function.
3468 (ada_tag_name): New function.
3469
3470 (ada_scan_number): Update comment.
3471 (find_struct_field): New function.
3472 (ada_search_struct_field): Make static.
3473 (ada_value_struct_elt): New version that returns references when
3474 given pointers or references to structs.
3475 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3476 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3477 interface.
3478 (ada_value_ind): Use new ada_to_fixed_value interface.
3479 (ada_coerce_ref): Ditto.
3480 (field_offset): Remove.
3481
3482 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3483 (ada_find_renaming_symbol): New function.
3484 (ada_prefer_type): Prefer named types over unnamed ones.
3485 (variant_field_index): New function.
3486 (contains_variant_part): Removed: subsumed by variant_field_index.
3487 (ada_template_to_fixed_record_type): New function, mostly from
3488 template_to_fixed_record_type.
3489 (template_to_fixed_record_type):
3490 Do not scan the type fields beyond the last one; prevents a
3491 potential SEGV.
3492 Handle case where variant field is listed BEFORE discriminant it
3493 depends on.
3494 Fix calculation of record length when bit length is
3495 not evenly divisible by char length.
3496 Move code to ada_template_to_fixed_record_type and call it.
3497
3498 (template_to_static_fixed_type): Revise comment.
3499 Modify to work on ordinary record types as well as templates,
3500 so as to handle fields that use ___XVE or ___XVU encodings.
3501 (to_record_with_fixed_variant_part): Fill out comment.
3502 Initialize C++ stuff in right type.
3503 Allow case where DVAL is null.
3504 Handle case where variant field is not last.
3505 Fix typo concerning record length.
3506 (to_fixed_record_type): Decomment disabled code.
3507 (to_fixed_record_type): Use variant_field_index instead of
3508 contains_variant_part.
3509 (to_fixed_variant_branch_type): Ditto.
3510 (to_fixed_array_type): Decomment disabled code.
3511 (ada_to_fixed_type): Convert tagged types to the specific type.
3512 Deactivate the size-check for array types in order to avoid
3513 some false size alarms.
3514 (to_static_fixed_type): Decomment disabled code.
3515 Modify to call template_to_static_fixed_type
3516 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3517 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3518 Remove valaddr argument, as it is never really used.
3519 (ada_to_fixed_value): Change interface to act on single struct value*
3520 operand.
3521 (adjust_pc_past_prologue): New function.
3522 (ada_attribute_name): Modify to take enum exp_opcode argument.
3523
3524 (ada_enum_name): Recognize new homonym-distinguishing convention.
3525 Adjust local variable's type to remove compiler warning.
3526 Fix a small problem in the part that unqualifies the enumeration name.
3527 (ada_value_binop): New function.
3528 (ada_value_equal): New function.
3529
3530 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3531 Don't give error message when not doing normal evaluation
3532 and a tagged type doesn't seem to contain a structure member.
3533 Give error message for packed arrays.
3534 For indexing arrays, handle pointers to packed arrays correctly.
3535 Handle case of 'first and 'last attributes of bare integral type
3536 without encoded subtype info.
3537 Remove some unnecessary casts.
3538 Fix uninitialized value of type in computing 'first, 'last, or 'length
3539 of array object.
3540 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3541 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3542 calls.
3543 Attributes are now exp_opcode values.
3544 Correct treatment of 'modulus.
3545 Better error message for taking 'length of wrong kind of type;
3546 improve comment.
3547 Change EVAL_NORMAL to noside for consistency.
3548 Use ada_value_binop for DIV, MOD, REM.
3549 Make special case out of array of length 0, since an argument
3550 of 0 upsets some platforms' malloc.
3551 Use OP_STRING instead of OP_ARRAY.
3552 For slice, add check that we have an array type before extracting
3553 a slice out of it. Avoids a SEGV.
3554 When evaluating an array slice, if the array type is a reference to
3555 an aligner type, then replace the aligner type by the actual type.
3556 Decomment disabled code.
3557 Remove some dead code.
3558 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3559 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3560 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3561 and UNOP_MBR to UNOP_IN_RANGE.
3562 If an array type has a parallel ___XVE type, then use it.
3563 Turn arrays into pointers for lvalue arrays.
3564 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3565 bounds error and handle 0-length slices.
3566 Use lim_warning.
3567 When selecting fields, apply ada_to_fixed_value (because the fields
3568 might have ___XVU or ___XVE encodings even if not dynamic.)
3569 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3570 (ada_is_system_address_type): New function.
3571
3572 (get_var_value): Use new interface to ada_lookup_symbol_list.
3573 (get_int_var_value): New interface.
3574 (to_fixed_range_type): Allow unknown bound, with warning.
3575 (ada_is_modular_type): Decomment disabled code.
3576 (ADA_OPERATORS): New definition.
3577 (ada_operator_length): New function.
3578 (ada_expr_op_name): New function.
3579 (ada_forward_operator_length): New function.
3580 (ada_dump_subexp_body): New function.
3581 (ada_print_subexp): New function.
3582 (ada_exp_descriptor): New constant.
3583 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3584 (ada_language_defn): Add ada_exp_descriptor entry.
3585 Change ada_parse => parse.
3586 Add post-parser entry.
3587 Use ada-specific non-local symbol lookup.
3588 Don't use C-style arrays.
3589 String lower-bound is 1.
3590 Decomment disabled code.
3591 (parse): New function.
3592 New fields ada_translate_error_message, ada_lookup_symbol,
3593 ada_lookup_minimal_symbol.
3594
3595 * ada-lang.h: Update copyright dates.
3596 Replace the mangle/demangle terminology throughout by the
3597 more appropriate encode/decode one.
3598 Include breakpoint.h.
3599 Forward declare struct partial_symbol, struct block.
3600 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3601 (EXTRACT_ADDRESS): Remove.
3602 (EXTRACT_INT): Remove.
3603 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3604 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3605 (MAX_RENAMING_CHAIN_LENGTH): Define.
3606 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3607
3608 (enum task_states): Remove.
3609 ada_task_states: Remove.
3610 (fat_string): Remove.
3611 (struct entry_call): Remove.
3612 (struct task_fields): Remove.
3613 (struct task_entry): Remove.
3614
3615 (struct ada_symbol_info): Define.
3616 (enum ada_attribute): Remove.
3617 (enum ada_operator): Define.
3618
3619 (ada_get_field_index): Declare.
3620 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3621 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3622 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3623 (ada_lookup_symbol_list): New interface.
3624 (ada_decode_symbol): Declare.
3625 (ada_decode): Declare.
3626 (ada_lookup_symbol): New interface.
3627 (ada_update_initial_language): Declare.
3628 (ada_lookup_simple_minsym): Declare.
3629 (user_select_syms): New interface.
3630 (ada_sals_for_line): Declare.
3631 (ada_is_tagged_type): New interface.
3632 (ada_tag_name): Declare.
3633 (ada_lookup_struct_elt_type): Remove declaration.
3634 (ada_search_struct_field): Remove declaration.
3635 (ada_attribute_name): New interface.
3636 (ada_is_system_address_type): Declare.
3637 (ada_to_fixed_value): Remove declaration.
3638 (ada_template_to_fixed_record_type_1): Declare.
3639 (get_int_var_value): New interface.
3640 (ada_find_any_symbol): Declare.
3641 (ada_find_renaming_symbol): Declare.
3642 (ada_mangle): Rename to ada_encode.
3643 (ada_simple_renamed_entity): Remove const.
3644 (ada_main_name): Declare.
3645 (get_current_task): Rename to ada_get_current_task.
3646 (get_entry_number): Remove declaration.
3647 (ada_report_exception_break): Remove declaration.
3648 (ada_print_exception_breakpoint_nontask): Declare.
3649 (ada_print_exception_breakpoint_task): Declare.
3650 (ada_find_printable_frame): Declare.
3651
3652 * ada-lex.l: Update copyright notices.
3653 Use xmalloc and xfree instead of malloc and free.
3654 Use new interface to name_lookup.
3655 Use new interface to
3656 ada_mangle=>ada_encode.
3657 Redo handling of '$...' variable to parallel current treatment
3658 in c-exp.y.
3659 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3660 digit_to_int, strtoulst, processInt, processReal, processId,
3661 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3662 yywrap): Protoize.
3663
3664 (processInt): Use cast to remove harmless warning.
3665 (processReal): Modify to get rid of compiler warning on scan formats.
3666
3667 (processId): Replace xmalloc with obstack_alloc for name and remove
3668 call to ada_name_string_cleanup.
3669 Remove obsolete disabled code.
3670 (name_lookup): Ditto.
3671 New interface.
3672 Use obsavestring on temp_parse_space instead of savestring
3673 on name, and remove call to ada_name_string_cleanup.
3674 Free string returned from ada_simple_renamed_entity.
3675 Use new interface to ada_lookup_symbol_list.
3676 Decomment disabled code.
3677 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3678 not types.
3679 When a type name lookup succeeds as a result of
3680 lookup_primitive_typename, check for regular type entry that has not
3681 yet been read in.
3682 Limit length of chain of renamed symbols we are willing to follow.
3683 Do not break names beginning with "standard__" into segments.
3684 (block_lookup): Use new interface to ada_lookup_symbol_list.
3685
3686 * ada-typeprint.c: Update copyright notice.
3687 (demangled_type_name): Rename to decoded_type_name.
3688 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3689 (print_range_bound): Correct handling of negative
3690 bounds that make the index type looked unsigned under STABS.
3691 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3692 (print_range_type_named): Use the builtin int type if no type
3693 corresponding to the given type name could be found.
3694 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3695 Add some bullet-proofing.
3696 (print_variant_clauses): Allow for variant branches with ___XVU
3697 encodings that are not dynamic fields.
3698 Use new interface to ada_is_tagged_type.
3699 (print_record_type): Allow for fields with ___XVE encodings that
3700 are not dynamic fields.
3701 Use new interface to ada_is_tagged_type.
3702 (ada_print_type): ada_is_array_descriptor =>
3703 ada_is_array_descriptor_type.
3704
3705 * ada-valprint.c: Update copyright notice.
3706 Include gdb_string.h
3707 Include infcall.h
3708 (ui_memcpy): New function.
3709 (ada_print_floating): New function.
3710 (ada_print_str): Order arguments correctly.
3711 Correct handling of empty arrays and arrays of 0-length items.
3712 ada_is_array_descriptor => ada_is_array_descriptor_type
3713 Print values of type System.Address in hexadecimal format.
3714 Use ada_print_floating to print floating-point numbers in Ada format.
3715 Print class tag values with type names.
3716 No longer print the address of reference values. Avoids
3717 a potential confusion.
3718 (ada_value_print): Stop printing the object type for reference
3719 values, but preserve that behavior for access types. Avoids
3720 a potential confusion.
3721 Simplify one conditional expression, as the first part is now
3722 necessarily true.
3723 ada_is_array_descriptor => ada_is_array_descriptor_type
3724 Add check for arrays for null records, and print them by hand.
4c4b4cd2 3725
f65f91b5
JB
37262004-06-01 Jim Blandy <jimb@redhat.com>
3727
3728 * ppc-tdep.h: Delete unused 'regoff' member.
3729 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3730
d4687fa0
MC
37312004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3732
3733 Fix PR symtab/1661.
3734 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3735 (hpread_read_struct_type): Likewise.
3736
de169ec9
AC
37372004-06-01 Andrew Cagney <cagney@gnu.org>
3738
c6902d46
AC
3739 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3740 instead of xasprintf.
3741 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3742 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3743 (mi_cmd_data_list_register_names)
3744 (mi_cmd_data_list_changed_registers)
3745 (mi_cmd_data_list_register_values)
3746 (get_register, mi_cmd_data_write_register_values)
3747 (mi_cmd_data_write_register_values)
3748 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3749 (mi_cmd_target_download, mi_cmd_target_select)
3750 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3751 (mi_execute_cli_command, mi_execute_async_cli_command)
3752 (mi_execute_async_cli_command): Ditto.
3753 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3754 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3755
6085fc2d
AC
3756 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3757 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3758 error_last_message instead of mi_error_last_message.
3759 * mi/mi-main.c (mi_error_last_message): Delete function.
3760
de169ec9
AC
3761 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3762 "invalid number of columns" error. Delete redundant "out of
3763 memory" check.
3764
1fc7d519
MK
37652004-05-31 Mark Kettenis <kettenis@gnu.org>
3766
6cfb2041
MK
3767 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3768 (gregset_t, fpregset_t): Remove typedefs.
3769 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3770 (REG_OFFSET): Rename argument.
3771 (i386bsd_r_reg_offset): Rename from reg_offset.
3772 (REG_ADDR): Remove macro.
3773 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3774 functions.
3775 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3776 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3777 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3778 instead of supply_gregset.
3779 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3780 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3781 instead of fill_gregset.
3782 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3783
1fc7d519
MK
3784 * i386bsd-nat.c: Don't include "gregset.h".
3785 (supply_gregset, fill_gregset): Make static.
3786 (supply_fpregset, fill_fpregset): Remove.
3787 * Makefile.in (i386bsd-nat.o): Update dependencies.
3788
2c34abbe
MK
37892004-05-30 Mark Kettenis <kettenis@gnu.org>
3790
448724fb
MK
3791 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3792 "gdb_assert.h". Con't include "gregset.h".
3793 (fbsd_make_corefile_notes): Use regset-based core file support
3794 instead off fill_gregset and fill_fpregset.
3795 * Makefile.in (fbsd-proc.o): Update dependencies.
3796
5ca8ca7c
MK
3797 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3798 instructions.
3799 (m88k_frame_prev_register): Simplify code a bit.
3800
593adc23
MK
3801 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3802 (amd64_collect_fpregset): New function.
3803 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3804
8d1b517b
MK
3805 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3806
7fdafb5a
MK
3807 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3808 (i386_collect_gregset): New function.
3809 (i386_supply_fpregset): Adjust comment.
3810 (i386_collect_fpregset): New function.
3811 (i386_regset_from_core_section): Use i386_collect_gregset and
3812 i386_collect_fpregset.
3813
8693c419
MK
3814 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3815 handle VALUEP being null.
3816
2c34abbe
MK
3817 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3818
45d134d8
MK
38192004-05-29 Mark Kettenis <kettenis@gnu.org>
3820
1698f4e7
MK
3821 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3822
45d134d8
MK
3823 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3824 assembler in OpenBSD 3.5-current.
3825 (amd64obsd_sigcontext_addr): Likewise.
3826
691d145a
JB
38272004-05-28 Jim Blandy <jimb@redhat.com>
3828
3829 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3830 register set, so our regcache isn't declared "legacy" and our E500
3831 pseudoregister read and write functions aren't ignored.
3832 (rs6000_register_byte, rs6000_register_raw_size,
3833 rs6000_register_virtual_type, rs6000_register_convertible,
3834 rs6000_register_convert_to_virtual,
3835 rs6000_register_convert_to_raw): Deleted.
3836 (rs6000_register_type, rs6000_convert_register_p,
3837 rs6000_register_to_value, rs6000_value_to_register): New
3838 functions.
3839 (rs6000_gdbarch_init): Don't register
3840 gdbarch_deprecated_register_size,
3841 gdbarch_deprecated_register_bytes,
3842 gdbarch_deprecated_register_byte,
3843 gdbarch_deprecated_register_raw_size,
3844 gdbarch_deprecated_register_virtual_type,
3845 gdbarch_deprecated_register_convertible,
3846 gdbarch_deprecated_register_convert_to_virtual, or
3847 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3848 register gdbarch_register_type, gdbarch_convert_register_p,
3849 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3850
18ed0c4e
JB
38512004-05-26 Jim Blandy <jimb@redhat.com>
3852
3853 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3854 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3855 functions, updated to match the register numberings used in GCC.
3856 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
3857 rs6000_dwarf2_reg_to_regnum as register number conversions
3858 functions for STABS and Dwarf2.
3859
779af9e3
RC
38602004-05-26 Randolph Chung <tausq@debian.org>
3861
3862 * infttrace.h (target_waitkind): Forward declare type instead of pulling
3863 in header file.
3864
c23968a2
JB
38652004-05-25 Joel Brobecker <brobecker@gnat.com>
3866
3867 * NEWS: Document new "start" command.
3868
3a7d1c27
RC
38692004-05-25 Randolph Chung <tausq@debian.org>
3870
3871 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
3872 hppa-linux.
3873
43613416
RC
38742004-05-25 Randolph Chung <tausq@debian.org>
3875
3876 * hppa-hpux-tdep.c (offsetof): Define.
3877 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
3878 (hppa32_hpux_frame_base_before_sigtramp)
3879 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3880 (hppa64_hpux_frame_saved_pc_in_sigtramp)
3881 (hppa64_hpux_frame_base_before_sigtramp)
3882 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
3883 functions.
3884 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
3885 (hppa_hpux_sigtramp_frame_unwind_cache)
3886 (hppa_hpux_sigtramp_frame_this_id)
3887 (hppa_hpux_sigtramp_frame_prev_register)
3888 (hppa_hpux_sigtramp_frame_unwind)
3889 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
3890 (hppa_hpux_init_abi): Register sigtramp unwinder.
3891 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
3892
6d1be3f1
RC
38932004-05-25 Randolph Chung <tausq@debian.org>
3894
3895 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
3896 and multiple stack unwinds.
3897 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
3898
97c34f65
AC
38992004-05-25 Andrew Cagney <cagney@gnu.org>
3900
3901 * symfile.h (symbol_file_add_from_memory): Delete declaration.
3902 * symfile-mem.h: Delete file.
3903 * symfile-mem.c: Do not include "symfile-mem.h".
3904 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
3905 "struct bfd_section". When an error do not bother returning NULL.
3906 (add_symbol_file_from_memory_command): Use "struct bfd" and
3907 "struct bfd_section".
3908 * Makefile.in (symfile_mem_h): Delete.
3909 (symfile-mem.o): Update dependencies.
3910
e23cbd82
NR
39112004-05-25 Nick Roberts <nickrob@gnu.org>
3912
3913 * gdb-mi.el: New file.
3914
20d2ca3e
AC
39152004-05-25 Andrew Cagney <cagney@gnu.org>
3916
3917 * inftarg.c: Include "observer.h".
3918 (child_attach, child_create_inferior): Notify inferior_created.
3919 * corelow.c: Include "observer.h".
3920 (core_open): Notify inferior_created.
3921 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
3922
c27cda74
AC
39232004-05-25 Andrew Cagney <cagney@gnu.org>
3924
3925 * target.h (struct target_ops): Add from_tty to
3926 to_create_inferior.
3927 (target_create_inferior, find_default_create_inferior): Update.
3928 * infcmd.c (run_command): Update.
3929 * wince.c (child_create_inferior): Update.
3930 * win32-nat.c (child_create_inferior): Update.
3931 * uw-thread.c (uw_thread_create_inferior): Update.
3932 * thread-db.c (thread_db_create_inferior): Update.
3933 * target.c (debug_to_create_inferior)
3934 (find_default_create_inferior): Update.
3935 (maybe_kill_then_create_inferior): Update.
3936 * sol-thread.c (sol_thread_create_inferior): Update.
3937 * remote.c (extended_remote_async_create_inferior)
3938 (extended_remote_create_inferior): Update.
3939 * remote-vx.c (vx_create_inferior): Update.
3940 * remote-st.c (st2000_create_inferior): Update.
3941 * remote-sim.c (gdbsim_create_inferior): Update.
3942 * remote-sds.c (sds_create_inferior): Update.
3943 * remote-rdp.c (remote_rdp_create_inferior): Update.
3944 * remote-rdi.c (arm_rdi_create_inferior): Update.
3945 * remote-m32r-sdi.c (m32r_create_inferior): Update.
3946 * remote-e7000.c (e7000_create_inferior): Update.
3947 * procfs.c (procfs_create_inferior): Update.
3948 * ocd.c (ocd_create_inferior): Update.
3949 * ocd.h (ocd_create_inferior): Update.
3950 * nto-procfs.c (procfs_create_inferior): Update.
3951 * monitor.c (monitor_create_inferior): Update.
3952 * lin-lwp.c (lin_lwp_create_inferior): Update.
3953 * inftarg.c (child_create_inferior): Update.
3954 * hpux-thread.c (hpux_thread_create_inferior): Update.
3955 * gnu-nat.c (gnu_create_inferior): Update.
3956
1db2a798
AC
39572004-05-25 Andrew Cagney <cagney@gnu.com>
3958
3959 * MAINTAINERS: Update e-mail address.
3960
007d08bb
RC
39612004-05-24 Randolph Chung <tausq@debian.org>
3962
3963 * thread.c (info_threads_command, thread_apply_all_command)
3964 (thread_apply_command, thread_command, do_captured_thread_select):
3965 Remove HPUXHPPA-specific code.
3966
69e7b95e
RC
39672004-05-24 Randolph Chung <tausq@debian.org>
3968
3969 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
3970 unused symbols.
3971 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
3972 references.
3973
a4d5f2e0
JB
39742004-05-24 Joel Brobecker <brobecker@gnat.com>
3975
3976 * infcmd.c (kill_if_already_running): New function, extracted
3977 from run_command().
3978 (run_command): Replace extracted code by call to
3979 kill_if_already_running().
3980 (start_command): New function.
3981 (_initialize_infcmd): Add "start" command.
3982
bf2ca189
MK
39832004-05-24 Mark Kettenis <kettenis@gnu.org>
3984
3985 Add OpenBSD/m88k support.
3986 * NEWS (New native configurations): Mention OpenBSD/m88k.
3987 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
3988 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
3989 * Makefile.in (m88k_tdep_h): New variable.
3990 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
3991 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
3992 * configure.host: Add m88*-*-openbsd*.
3993 * configure.tgt: Add m88*-*-openbsd*.
3994
80fadb11
JB
39952004-05-24 Jim Blandy <jimb@redhat.com>
3996
3997 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
3998 to approve changes.
3999
19e2d14b
KB
40002004-05-24 Kevin Buettner <kevinb@redhat.com>
4001
4002 * symtab.c (fixup_section): Search section table when lookup by
4003 name fails.
4004
1b07b470
RC
40052004-05-24 Randolph Chung <tausq@debian.org>
4006
4007 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4008 be "small_struct".
4009
368702b1
MK
40102004-05-24 Mark Kettenis <kettenis@gnu.org>
4011
5df97fde
MK
4012 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4013 register number in regcache_raw_collect call.
4014 (m68kbsd_collect_fpregset): Likewise.
4015 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4016
368702b1
MK
4017 * regset.h (struct regset): Add back `regset' member.
4018
a770d4ec
MK
40192004-05-23 Mark Kettenis <kettenis@gnu.org>
4020
70f9f479
MK
4021 * configure.in: Check for td_pcb in `struct thread'.
4022 * configure, config.in: Regenerated.
4023
2e16d79e
MK
4024 * dpx2-nat.c: Remove file.
4025 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4026 (dpx2-nat.o): Remove dependencies.
4027
492cf391
MK
4028 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4029 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4030 (amd64obsd_supply_pcb): New function.
4031 (_initialize_amd64obsd_nat): Enable libkvm interface.
4032 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4033 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4034 (LOADLIBES): New variable.
4035
a770d4ec
MK
4036 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4037 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4038 (sparc32nbsd_supply_pcb): New function.
4039 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4040 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4041 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4042 (LOADLIBES): New variable.
4043
9ea75c57
MK
40442004-05-22 Mark Kettenis <kettenis@gnu.org>
4045
2e0c3539
MK
4046 * bsd-kvm.c, bsd-kvm.h: New files.
4047 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4048 "bsd-kvm.h".
4049 (i386fbsd_supply_pcb): New function.
4050 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4051 (i386fbsd-nat.o): Update dependencies.
4052 (bsd_kvm_h): New variable.
4053 (bsd-kvm.o): New dependency.
4054 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4055 (LOADLIBES): New variable.
4056
9ea75c57
MK
4057 * regset.c: Tweak comment.
4058 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4059 macro.
4060 * regset.h: Update copyright year.
4061 (struct regset): Remove `descr' member, add `gdbarch' member.
4062 (regset_alloc): Adjust prototype and comment.
4063 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4064 (i386_supply_fpregset): Likewise.
4065 (i386_regset_from_core_section): Update call to regset_alloc.
4066 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4067 REGSET->arch.
4068 (i386obsd_aout_regset_from_core_section): Update call to
4069 regset_alloc.
4070 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4071 REGSET->arch.
4072 (i386nbsd_aout_regset_from_core_section): Update call to
4073 regset_alloc.
4074 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4075 REGSET->arch.
4076 (amd64_regset_from_core_section): Update call to regset_alloc.
4077 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4078 REGSET->arch.
4079 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4080 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4081 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4082 (sparc32nbsd_init_abi): Update call to regset_alloc.
4083 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4084 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4085 (sparc64obsd_init_abi): Update call to regset_alloc.
4086 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4087 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4088 (sparc64nbsd_init_abi): Update call to regset_alloc.
4089 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4090 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4091 (sparc64fbsd_init_abi): Update call to regset_alloc.
4092
867e2dc5
JB
40932004-05-22 Jim Blandy <jimb@redhat.com>
4094
4095 * ppc-tdep.h (spe_register_p): New declaration.
4096 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4097 ppc_spefscr_regnum.
4098 * rs6000-tdep.c (spe_register_p): New function.
4099 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4100 spefscr.
4101 (rs6000_gdbarch_init): Initialize the new members of the tdep
4102 structure.
4103
617a4cba
JB
41042004-05-21 Jim Blandy <jimb@redhat.com>
4105
0397dee1
JB
4106 * ppc-linux-nat.c (fetch_register): Move code back to be next
4107 to the comment that describes it. (Moved code, instead of
4108 comment, for symmetry with store_register.)
4109
617a4cba
JB
4110 Allocate regset structures in the gdbarch's obstack, not using
4111 xmalloc.
4112 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4113 Add 'arch' argument. Allocate the regset on arch's obstack, not
4114 using xmalloc.
4115 * regset.h (regset_alloc): Update declaration.
4116 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4117 gdbarch argument.
4118 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4119 * i386-tdep.c (i386_regset_from_core_section): Same.
4120 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4121 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4122 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4123 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4124 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4125 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4126
9aa3914d
JB
41272004-05-21 Joel Brobecker <brobecker@gnat.com>
4128
4129 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4130
99c87dab
JB
41312004-05-21 Jim Blandy <jimb@redhat.com>
4132
4133 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4134 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4135
c2b6b4aa
JB
41362004-05-20 Jim Blandy <jimb@redhat.com>
4137
4138 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4139
144529d0
MK
41402004-05-20 Mark Kettenis <kettenis@gnu.org>
4141
4142 * regset.h: Make prototype const-correct.
4143 * regset.c (regset_xmalloc): Make const-correct.
4144
4725b721
PH
41452004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4146
4147 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4148 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4149 (symbol_search_name): Declare.
4150
4151 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4152 (iter_name_next_hashed): Ditto.
4153 (iter_name_next_linear): Ditto.
4154 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4155
4156 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4157 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4158 (symbol_search_name): New function.
4159
4160 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4161
4162 * minsyms.c (build_minimal_symbol_hash_tables): Change
4163 test for adding to demangled hash table to check for difference
4164 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4165
be07a590
JB
41662004-05-19 Jim Blandy <jimb@redhat.com>
4167
4168 Use a constructor function to create regset structures.
4169 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4170 (struct regset): Use supply_regset_ftype. Add new
4171 'collect_regset' member.
4172 (regset_xmalloc): New declaration.
4173 * regset.c: New file.
4174 * am64-tdep.c (amd64_regset_from_core_section): Use
4175 regset_xmalloc to construct regset structures.
4176 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4177 * i386-tdep.c (i386_regset_from_core_section): Same.
4178 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4179 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4180 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4181 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4182 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4183 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4184 * Makefile.in (COMMON_OBS): Add regset.o.
4185 (regset.o): New rule.
4186
604368f5
JB
41872004-05-19 Joel Brobecker <brobecker@gnat.com>
4188
4189 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4190 and pthread_cond_wait.c.
4191
82d69f8b
JB
41922004-05-18 Jim Blandy <jimb@redhat.com>
4193
4194 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4195 before the mach-specific switch, and then let the individual cases
4196 override the defaults, rather than leaving them uninitialized
4197 until the switch and then setting them in each case.
4198
5859efe5
RC
41992004-05-18 Randolph Chung <tausq@debian.org>
4200
4201 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4202 millicode functions.
4203
9ca80cf8
RC
42042004-05-18 Randolph Chung <tausq@debian.org>
4205
4206 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4207 references to dld_flags_buffer consistent.
4208
ed70ba00
RC
42092004-05-18 Randolph Chung <tausq@debian.org>
4210
4211 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4212 it for unwinding the stack.
4213
63100632
RC
42142004-05-18 Randolph Chung <tausq@debian.org>
4215
4216 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4217 Undefine these so we can overide them using gdbarch.
4218
090ccbb7
RC
42192004-05-18 Randolph Chung <tausq@debian.org>
4220
4221 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4222 handling for 64-bit HPUX (elf).
4223
594706e6
DJ
42242004-05-18 Daniel Jacobowitz <dan@debian.org>
4225
4226 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4227 constants.
4228 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4229 * ia64-tdep.c (examine_prologue): Likewise.
4230 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4231 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4232
e5483145
MK
42332004-05-18 Mark Kettenis <kettenis@gnu.org>
4234
4235 * vax-tdep.c (vax_return_value): Implement
4236 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4237
caed1a45
MK
42382004-05-17 Mark Kettenis <kettenis@gnu.org>
4239
4240 * vax-tdep.c (vax_return_value): Fix typo.
4241
3c0b7db2
AC
42422004-05-17 Andrew Cagney <cagney@redhat.com>
4243
5aae53e5
AC
4244 * MAINTAINERS: Mark Salter was also responsible for
4245 testsuite/config/
4246
3c0b7db2
AC
4247 * NEWS: Mention signal fixes.
4248
22b0923d
RC
42492004-05-17 Randolph Chung <tausq@debian.org>
4250
4251 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4252 check to see if we are unwinding an export stub. Export stubs clobber
4253 the %rp in the call path and stores the original rp in a stack slot.
4254
22f2b2f3
JB
42552004-05-17 Jim Blandy <jimb@redhat.com>
4256
4257 * MAINTAINERS: Update address for J.T. Conklin.
4258
cea96d64
RC
42592004-05-17 Randolph Chung <tausq@debian.org>
4260
4261 * hppa-tdep.c: Remove superfluous #include's.
4262 * Makefile.in (hppa-tdep.o): Update dependencies.
4263
f08f6a4a
RC
42642004-05-17 Randolph Chung <tausq@debian.org>
4265
4266 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4267 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4268 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4269 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4270 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4271 Remove static function declarations.
4272
51da707a
MK
42732004-05-17 Mark Kettenis <kettenis@gnu.org>
4274
caed1a45
MK
4275 * alphabsd-nat.c: Update copyright year.
4276 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4277
c0c2b0db
MK
4278 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4279 and M68K_A2_REGNUM.
4280
51da707a
MK
4281 * m68k-tdep.c (m68k_svr4_return_value): Implement
4282 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4283
8d027a04
MK
42842004-05-16 Mark Kettenis <kettenis@gnu.org>
4285
4286 * sol-thread.c Update copyright year. Fix various coding
4287 standards violations. Tweak a few comments.
4288 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4289 Delete prototypes.
4290
0d99fdb9
RC
42912004-05-15 Randolph Chung <tausq@debian.org>
4292
4293 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4294 as pointer instead of array reference since HPUX compiler does
4295 not accept unsized array arguments.
4296 * somsolib.c (dld_flags_buffer): Use constant array size.
4297
f7e3843a
MK
42982004-05-15 Mark Kettenis <kettenis@gnu.org>
4299
0fe85704
MK
4300 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4301 offset with decimal offset.
4302 (amd64obsd_sigcontext_addr): Return correct address for entire
4303 signal trampoline.
4304
a54f9a00
MK
4305 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4306 instead of get_frame_base.
4307
feae6502
MK
4308 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4309 (fill_gregset): Use regcache_raw_collect.
4310
0382d099
MK
4311 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4312 ppcobsd-tdep.c.
4313
f7e3843a
MK
4314 * config/sparc/tm-nbsd64.h: Remove file.
4315 * config/tm-sunos.h: Remove file.
4316
773df3e5
JB
43172004-05-15 Joel Brobecker <brobecker@gnat.com>
4318
4319 * rs6000-tdep.c (store_param_on_stack_p): New function,
4320 an improved version of some code extracted from skip_prologue().
4321 (skip_prologue): Use store_param_on_stack_p() to detect
4322 instructions saving a parameter on the stack. Detect when r0
4323 is used to save a parameter.
4324 Do not mark "li rx, SIMM" instructions as part of the prologue,
4325 unless the following instruction is also part of the prologue.
4326
95918acb
AC
43272004-05-14 Andrew Cagney <cagney@redhat.com>
4328
06f32659
AC
4329 * infrun.c (handle_inferior_event): Simplify
4330 STEP_OVER_UNDEBUGGABLE.
4331
95918acb
AC
4332 * infrun.c (handle_step_into_function): Delete function.
4333 (handle_inferior_event): Inline calls to
4334 handle_step_into_function.
4335
40711ff1 43362004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
4337
4338 * rs6000-nat.c: Fix a comment.
4339
02f60eae
JB
43402004-05-12 David Anderson <davea@sgi.com>
4341
4342 Committed by Jim Blandy <jimb@redhat.com>:
4343 * regcache.c (struct regcache_descr): fix comment spelling.
4344
552e377b
JB
43452004-05-13 J. Brobecker <brobecker@gnat.com>
4346
4347 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4348 Fixes a link link failure.
4349
349766b2
JB
43502004-05-13 J. Brobecker <brobecker@gnat.com>
4351
4352 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4353 error that was causing the build to fail.
4354
0d4d5484
JB
43552004-05-13 J. Brobecker <brobecker@gnat.com>
4356
4357 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4358 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4359
0b30808c
AC
43602004-05-13 Andrew Cagney <cagney@redhat.com>
4361
4362 * infrun.c (handle_inferior_event): Check for
4363 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4364 calls. Update comments.
4365
cdf2c5f5
JB
43662004-05-13 Jim Blandy <jimb@redhat.com>
4367
063715bf
JB
4368 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4369 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4370 (store_regs_user_thread, store_regs_kernel_thread): Use
4371 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4372 * ppc-linux-nat.c (fill_gregset): Same.
4373 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4374 (ppc_linux_sigtramp_cache): Same.
4375 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4376 (ppcnbsd_sigtramp_cache_init): Same.
4377 * rs6000-nat.c (fetch_core_registers): Same.
4378 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4379 (rs6000_frame_cache): Same.
4380
cdf2c5f5
JB
4381 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4382 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4383 of assuming that the gprs are numbered starting with zero.
4384 * ppc-linux-nat.c (fill_gregset): Same.
4385 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4386 * ppcnbsd-nat.c (getregs_supplies): Same.
4387 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4388 * rs6000-nat.c (fetch_core_registers): Same.
4389 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4390
450bd37b
MS
43912004-05-07 Michael Snyder <msnyder@redhat.com>
4392
4393 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4394 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4395
4a72a2a6
AC
43962004-05-13 Andrew Cagney <cagney@redhat.com>
4397
4398 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4399
8edfa926
BM
44002004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4401
4402 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4403 base_address for shared libraries.
4404
723e0e3d
BM
44052004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4406
4407 * MAINTAINERS (write after approval): Add myself.
4408
00d4360e
UW
44092004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4410
4411 * breakpoint.c (bpstat_stop_status): Add new argument
4412 STOPPED_BY_WATCHPOINT. Use it instead of testing
4413 target_stopped_data_address agaist 0 to check whether
4414 or not we stopped due to a hardware watchpoint.
4415 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4416 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4417 with new argument.
4418
ec76baa5
JB
44192004-05-12 Jim Blandy <jimb@redhat.com>
4420
4421 * configure.in: When checking whether we should use the -bbigtoc
4422 option, don't forget to restore the original value of LDFLAGS.
4423 * configure: Regenerated.
4424
f2c9ca08
AC
44252004-05-12 Andrew Cagney <cagney@redhat.com>
4426
4427 * thread.c (load_infrun_state): Delete step_sp.
4428 * infrun.c (context_switch): Ditto.
4429 * inferior.h (step_sp): Ditto.
4430 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4431 * gdbthread.h (struct thread_info, save_infrun_state)
4432 (restore_infrun_state): Ditto.
4433
090ddb2a
UW
44342004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4435
4436 * MAINTAINERS (write after approval): Add myself.
4437
8aad930b
AC
44382004-05-12 Andrew Cagney <cagney@redhat.com>
4439
4440 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4441 eliminate reference to step_sp.
4442 (struct execution_control_state, init_execution_control_state)
4443 (handle_inferior_event, keep_going): Delete update_step_sp and
4444 step_sp.
4445 * infcmd.c (step_sp): Note that variable is unused.
4446
922d5ae0
AC
44472004-05-11 Andrew Cagney <cagney@redhat.com>
4448
4449 * infrun.c (step_over_function): Delete function.
4450 (handle_step_into_function): Use insert_step_resume_breakpoint.
4451 (insert_step_resume_breakpoint): Fix assertion.
4452
017c5ca5
NR
44532004-05-11 Nick Roberts <nickrob@gnu.org>
4454
4455 * utils.c (defaulted_query): Just use the normal query input type
4456 when printing the annotations.
4457
42edda50
AC
44582004-05-11 Andrew Cagney <cagney@redhat.com>
4459
4460 * infrun.c (handle_inferior_event): Simplify code handling
4461 step-into or return-from a signal trampoline.
4462
d28b44a7
AC
44632004-05-11 Andrew Cagney <cagney@redhat.com>
4464
4465 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4466 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4467
383f0f5b
JB
44682004-05-10 Jim Blandy <jimb@redhat.com>
4469
d0b57c3a
JB
4470 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4471 with a call to internal_error.
4472
383f0f5b
JB
4473 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4474 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4475 processor variant lacks those registers.
4476 (ppc_floating_point_unit_p): Change description to make it clear
4477 that this returns info about the ISA, not the ABI.
4478 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4479 return true or false by checking tdep->ppc_fp0_regnum and
4480 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4481 arch/mach switching done in rs6000_gdbarch_init; it's better to
4482 keep that logic there, and just check the results here.
4483 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4484 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4485 floating-point registers.
4486 (ppc_supply_fpregset, ppc_collect_fpregset)
4487 (rs6000_push_dummy_call, rs6000_extract_return_value)
4488 (rs6000_store_return_value): Assert that we have floating-point
4489 registers.
4490 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4491 (rs6000_frame_cache): Don't note the locations at which
4492 floating-point registers were saved if we have no fprs.
4493 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4494 registers.
4495 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4496 (store_regs_user_thread, store_regs_kernel_thread): Only call
4497 supply_fprs / fill_fprs if we actually have floating-point
4498 registers.
4499 (special_register_p): Check ppc_fpscr_regnum before matching
4500 against it.
4501 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4502 supply / collect fpscr if we don't have it.
4503 * ppc-bdm.c: #include "gdb_assert.h".
4504 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4505 have floating-point registers, since I can't test this code on
4506 FP-free systems to adapt it.
4507 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4508 fpscr and floating point register numbers if they don't exist.
4509 (fetch_register): Assert that we have floating-point registers
4510 before we reach the code that handles them.
4511 (store_register): Same. And use tdep instead of calling
4512 gdbarch_tdep again.
4513 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4514 don't have them.
4515 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4516 fprs and fpscr if we don't have them.
4517 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4518 don't have them.
4519 * ppcnbsd-nat.c: #include "gdb_assert.h".
4520 (getfpregs_supplies): Assert that we have floating-point registers.
4521 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4522 * ppcobsd-tdep.c: #include "gdb_assert.h".
4523 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4524 have floating-point registers.
4525 * rs6000-nat.c (regmap): Don't match against the fpscr and
4526 floating point register numbers if they don't exist.
4527 (fetch_inferior_registers, store_inferior_registers,
4528 fetch_core_registers): Only fetch / store / supply the
4529 floating-point registers and the fpscr if we have them.
4530 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4531 (ppcobsd-tdep.o): Update dependencies.
4532
15960608
AC
45332004-05-10 Andrew Cagney <cagney@redhat.com>
4534
4535 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4536 (context_switch): Do not switch through_sigtramp_breakpoint.
4537 * gdbthread.h (save_infrun_state, load_infrun_state)
4538 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4539 and structure member.
4540 * thread.c (load_infrun_state, save_infrun_state): Update.
4541
5ab5aa0f
MK
45422004-05-10 Mark Kettenis <kettenis@gnu.org>
4543
4544 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4545
da78b0e7
DJ
45462004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4547
4548 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4549 throughout.
4550 * aclocal.m4: Regenerate.
4551
cca0d3b0
NW
45522004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4553
4554 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4555
d303a6c7
AC
45562004-05-10 Andrew Cagney <cagney@redhat.com>
4557
4558 * infrun.c (check_sigtramp2): Delete function.
4559 (handle_inferior_event): When single stepping, and taking a
4560 signal, set a breakpoint at the signal return address. Delete
4561 redundant calls to check_sigtramp2.
4562 (insert_step_resume_breakpoint): New function.
4563 (through_sigtramp_breakpoint, handle_inferior_event)
4564 (follow_exec, wait_for_inferior, fetch_inferior_event)
4565 (currently_stepping, keep_going): Delete most uses of
4566 through_sigtramp_breakpoint, not that it should be deleted.
4567 (delete_breakpoint_current_contents): Delete function.
4568
03f4cc20
RC
45692004-05-10 Randolph Chung <tausq@debian.org>
4570
4571 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4572 target.
4573 * config/pa/tm-linux.h: New file.
4574
37fc812e
DJ
45752004-05-10 Daniel Jacobowitz <drow@mvista.com>
4576
4577 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4578 of prefixes. Don't print the prefix twice in the CLI.
4579
26c0b942
JB
45802004-05-10 Jim Blandy <jimb@redhat.com>
4581
2e56e9c1
JB
4582 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4583 collect all the gprs.
4584
26c0b942
JB
4585 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4586 loop collecting gprs.
4587
dc497459
AC
45882004-05-09 Andrew Cagney <cagney@redhat.com>
4589
4590 * remote-vx.c (net_step): Delete step-range code.
4591 * remote.c (remote_resume, init_all_packet_configs)
4592 (set_remote_protocol_E_packet_cmd)
4593 (show_remote_protocol_E_packet_cmd)
4594 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4595 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4596 (show_remote_protocol_e_packet_cmd): Ditto.
4597
0543f387
MK
45982004-05-09 Mark Kettenis <kettenis@gnu.org>
4599
c481d1ca
MK
4600 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4601
f626a069
MK
4602 * hppa-tdep.h: Update copyright year.
4603 (struct trad_frame_saved_reg): Add opaque declaration.
4604
6fa57a7d
MK
4605 * amd64-tdep.c (amd64_return_value): Implement
4606 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4607
e47577ab
MK
4608 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4609 (m68k_value_to_register): New functions.
4610 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4611 value_to_register.
4612
31db7b6c
MK
4613 * defs.h (enum return_value_convention): Add
4614 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4615 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4616 * infcmd.c (legacy_return_value): New function.
4617 (print_return_value): Rwerite to implement
4618 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4619 * values.c (using_struct_return): Check for inequality to
4620 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4621 RETURN_VALUE_STRUCT_CONVENTION.
4622 * i386-tdep.c (i386_return_value): Implement
4623 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4624
0543f387
MK
4625 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4626 include "symtab.h", "opcode/vax.h" and "inferior.h".
4627 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4628 to read_memory_unsigned_integer.
4629 (vax_gdbarch_init): Reorder.
4630 (_initialize_vax_tdep): Spell out prototype.
4631 * Makefile.in (vax-tdep.o): Update dependencies.
4632
0c93b7b6
AC
46332004-05-08 Andrew Cagney <cagney@redhat.com>
4634
e6b55ae2
AC
4635 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4636 * target.c (target_detach, target_disconnect): Ditto.
4637
1ac839b8
AC
4638 * infcall.c (call_function_by_hand): When no
4639 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4640 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4641 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4642 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4643 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4644
28954179
AC
4645 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4646 * gdbarch.h, gdbarch.c: Re-generate.
4647 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4648 deprecated_fix_call_dummy.
4649 * v850-tdep.c (v850_gdbarch_init): Ditto.
4650 * infcall.c (call_function_by_hand): Do not call
4651 DEPRECATED_FIX_CALL_DUMMY.
4652
434b87dd
AC
4653 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4654 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4655 * gdbarch.h, gdbarch.c: Re-generate.
4656 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4657 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4658 deprecated_sizeof_call_dummy_words.
4659 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4660 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4661 * v850-tdep.c (v850_gdbarch_init): Ditto.
4662 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4663 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4664 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4665 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4666 * arch-utils.h (legacy_call_dummy_words)
4667 (legacy_sizeof_call_dummy_words): Delete declarations.
4668 * arch-utils.c (legacy_call_dummy_words)
4669 (legacy_sizeof_call_dummy_words): Delete variables.
4670
58d28df8
AC
4671 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4672 * gdbarch.h, gdbarch.c: Re-generate.
4673 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4674 * infcall.c (call_function_by_hand): Eliminate call to
4675 DEPRECATED_PUSH_DUMMY_FRAME.
4676 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4677 push_dummy_frame.
4678 (ns32k_push_dummy_frame): Delete function.
4679
e4a2df64
AC
4680 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4681 deprecated_call_dummy_breakpoint_offset or
4682 deprecated_call_dummy_start_offset.
4683 * dummy-frame.c, arm-tdep.c: Update comments.
4684 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4685 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4686 * gdbarch.h, gdbarch.c: Re-generate.
4687
d3712828
AC
4688 * infcall.c (legacy_push_dummy_code): Delete function.
4689 (push_dummy_code): Delete call.
4690
7a882905
AC
4691 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4692 * gdbarch.h, gdbarch.c: Re-generate.
4693 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4694 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4695 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4696 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4697
0ec5872b
AC
4698 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4699 (struct frame_info): Delete opaque declaration.
4700 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4701 * frame.c (get_frame_type): Delete call.
4702
0c93b7b6
AC
4703 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4704 pc_in_call_dummy.
4705 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4706 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4707
75536971
MK
47082004-05-08 Mark Kettenis <kettenis@gnu.org>
4709
527ca6bb
MK
4710 * alphanbsd-tdep.c: Include "gdb_string.h".
4711 * armnbsd-tdep.c: Update copyright year.
4712 Include "gdb_string.h".
4713 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4714 dependencies.
4715
d39fdc61
MK
4716 * delta68-nat.c: Remove file.
4717 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4718 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4719 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4720 (delta68-nat.o): Remove dependency.
4721
75536971
MK
4722 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4723 function.
4724 (m68k_gdbarch_init): Don't set
4725 deprecated_frameless_function_invocation.
4726
f4ca1d1f
RC
47272004-05-07 Randolph Chung <tausq@debian.org>
4728
4729 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4730 read_memory_nobpt for code reading when doing frame unwinding.
4731 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4732
2f0e8c7a
RC
47332004-05-07 Randolph Chung <tausq@debian.org>
4734
4735 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4736 instead of sp, handle sigaltstack case.
4737 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4738 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4739 signal handler and not that of the caller.
4740 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4741 hppa_linux_sigtramp_find_sigcontext.
4742
959464ff
RC
47432004-05-07 Randolph Chung <tausq@debian.org>
4744
4745 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4746 hppa-linux-nat.c.
4747 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4748 * hppa-linux-nat.c (fetch_register, store_register): Define.
4749 (fetch_inferior_registers, store_inferior_registers): Define.
4750 (supply_gregset): Add comment and clean up some unneeded code.
4751 (fill_gregset): Add comment and fix so that it saves registers in
4752 the right place in the gregset.
4753 (fill_fpregset): Fix buffer overrun problem.
4754 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4755
0da28f8a
RC
47562004-05-07 Randolph Chung <tausq@debian.org>
4757
4758 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4759 do common handling of the pcoqt register.
4760 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4761 to use helper function.
4762 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4763 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4764 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4765 generic fallback unwinder when all else fails.
4766 (hppa_gdbarch_init): Add fallback sniffer.
4767 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4768 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4769 to use helper function.
4770
b9ec757a
JB
47712004-05-08 Joel Brobecker <brobecker@gnat.com>
4772
4773 * config/djgpp/fnchange.lst: Add translation rules for
4774 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4775
756e95f1
MK
47762004-05-08 Mark Kettenis <kettenis@gnu.org>
4777
4778 * frame.c (get_prev_frame_1): Work around GCC bug.
4779 * frame.h: Add comment about GCC bug.
4780
2b4855ab
AC
47812004-05-07 Andrew Cagney <cagney@redhat.com>
4782
4783 * observer.c: Include "commands.h" and "gdbcmd.h".
4784 (observer_debug, _initialize_observer): Add the
4785 command "set/show debug observer".
4786 * observer.sh: When observer debugging, log notify calls.
4787 * Makefile.in (observer.o): Update dependencies.
4788
ba3e8e46
JM
47892004-05-07 Jason Molenda (jmolenda@apple.com)
4790
4791 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4792
16796152
JB
47932004-05-07 Jim Blandy <jimb@redhat.com>
4794
daf6dc85
JB
4795 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4796 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4797 to recognize gpr regnums, instead of assuming that
4798 tdep->ppc_fp0_regnum marks the end of the general-purpose
4799 registers.
4800
16796152
JB
4801 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4802 the given architecture has floating-point registers.
4803
c69b8bfc
AC
48042004-05-07 Andrew Cagney <cagney@redhat.com>
4805
4806 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4807 macro defined to 1.
4808 * gdbarch.h, gdbarch.c: Re-generate.
4809 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4810 deprecated_use_generic_dummy_frames.
4811
7243600a
BF
48122004-05-07 Brian Ford <ford@vss.fsi.com>
4813
4814 * NEWS: Mention Cygwin DWARF 2 support.
4815
73c1e0a1
AC
48162004-05-07 Andrew Cagney <cagney@redhat.com>
4817
4818 * objfiles.h (struct entry_info): Delete unused fields
4819 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4820 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4821 * mipsread.c (mipscoff_symfile_read): Update.
4822 * mdebugread.c (parse_partial_symbols): Update.
4823 * dwarfread.c (read_file_scope): Update.
4824 * dwarf2read.c (read_file_scope): Update.
4825 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4826 * coffread.c (complete_symtab): Update.
4827
1d3056ac
MK
48282004-05-07 Mark Kettenis <kettenis@gnu.org>
4829
4830 * infcall.c (_initialize_infcall): Fix typo.
4831
15170568
AC
48322004-05-07 Andrew Cagney <cagney@redhat.com>
4833
4834 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4835 * command.h (add_setshow_zinteger_cmd): Declare.
4836
34f75cc1
RC
48372004-05-06 Randolph Chung <tausq@debian.org>
4838
4839 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4840 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4841 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4842 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4843 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4844 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4845 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4846 definitions ...
4847 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4848 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4849 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4850 (hppa64_hpux_frame_find_saved_regs_in_sig)
4851 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4852 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4853 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4854 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4855 (hppa_linux_sigtramp_frame_prev_register): Likewise.
4856 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
4857 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
4858 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
4859 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
4860 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
4861 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
4862 (hppa32_register_type, hppa_cannot_store_register)
4863 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
4864 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
4865 * hpread.c (hpread_process_one_debug_symbol): Likewise.
4866 * pa64solib.c (pa64_solib_have_load_event)
4867 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
4868 (pa64_solib_unloaded_library_pathname): Likewise.
4869 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
4870 (som_solib_library_pathname): Likewise.
4871
0a5e7efe
JI
48722004-05-05 Jim Ingham <jingham@apple.com>
4873
4874 * breakpoint.c (create_breakpoints): Copy the ignore count and
4875 thread id over from the pended breakpoint to the actual
4876 breakpoint.
4877
10a4b113
AC
48782004-05-05 Andrew Cagney <cagney@redhat.com>
4879
4880 * gdbarch.sh (PARM_BOUNDARY): Delete.
4881 gdbarch.h, gdbarch.c: Re-generate.
4882 * valops.c (PARM_BOUNDARY): Delete macro.
4883 (value_push): Delete PARM_BOUNDARY code.
4884 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
4885
366f009f
JB
48862004-05-04 Jim Blandy <jimb@redhat.com>
4887
32b99774
JB
4888 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
4889 Don't assume that the gprs, fprs, and UISA sprs are
4890 contiguous, start at register number zero, and end with fpscr.
4891 Instead, use the numbers from the tdep structure.
4892
366f009f
JB
4893 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
4894 should no longer be used in code specific to the RS6000 and its
4895 derivatives.
4896 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
4897 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
4898 tdep->ppc_fp0_regnum.
4899 (ppc_supply_fpregset, ppc_collect_fpregset)
4900 (rs6000_push_dummy_call, rs6000_extract_return_value)
4901 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
4902 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
4903 FP0_REGNUM.
4904 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
4905 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
4906 Same.
4907 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
4908 bdm_ppc_store_registers): Same.
4909 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
4910 (store_register, fill_fpregset): Same.
4911 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
4912 (ppc_linux_supply_fpregset): Same.
4913 * ppcnbsd-nat.c (getfpregs_supplies): Same.
4914 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
4915 Same.
4916 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
4917 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
4918 ppc64_sysv_abi_return_value): Same.
4919 * rs6000-nat.c (regmap, fetch_inferior_registers)
4920 (store_inferior_registers, fetch_core_registers): Same.
4921
827f338d
MK
49222004-05-01 Mark Kettenis <kettenis@gnu.org>
4923
4924 * m68knbsd-nat.c: Remove file.
4925 * m68knbsd-tdep.c: Remove file.
4926 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
4927 dependencies.
4928 * configure.host: Add m68k-*-netbsdelf*.
4929 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
4930 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
4931 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
4932 (XM_FILE): Remove.
4933 * config/m68k/nbsdelf.mh: New file.
4934 * config/m68k/nbsd.mt: New file.
4935 * config/m68k/nbsdaout.mt: Remove file.
4936 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
4937 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
4938 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
4939 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
4940 (use_struct_convention): Remove prototype.
4941 (USE_STRUCT_CONVENTION): Remove define.
4942 * config/m68k/xm-nbsd.h: Remove file.
4943
66894781
MS
49442004-05-04 Michael Snyder <msnyder@redhat.com>
4945
4946 * m68k-tdep.c (m68k_gdbarch_init): Default to using
4947 reg_struct_return method (as gcc usually does for cross targets).
4948
f0f63663
AC
49492004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4950
4951 Committed by Andrew Cagney.
4952 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
4953 alignment padding when accessing ucontext struct members.
4954
edf61169
JB
49552004-05-04 Jim Blandy <jimb@redhat.com>
4956
8bf659e8
JB
4957 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
4958 'ppc_gplast_regnum' member.
4959 (ppc_num_gprs): New enum constant.
4960 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
4961 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
4962 * rs6000-nat.c (regmap, fetch_inferior_registers,
4963 store_inferior_registers): Same.
4964 * rs6000-tdep.c (e500_pseudo_register_read)
4965 (e500_pseudo_register_write): Same.
4966 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
4967
b967e06f
JB
4968 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
4969 * ppc-tdep.h (ppc_num_fprs): New enum constant.
4970 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
4971 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
4972 FPLAST_REGNUM.
4973 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4974 Same.
4975 * ppc-linux-nat.c (ppc_register_u_addr): Same.
4976 * rs6000-nat.c (regmap, fetch_inferior_registers)
4977 (store_inferior_registers): Same.
4978
edf61169
JB
4979 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
4980 with FPLAST_REGNUM.
4981
58a9656e
JB
49822004-05-03 Joel Brobecker <brobecker@gnat.com>
4983
4984 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
4985 failure detected by recent versions of GCC.
4986 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
4987 to be consistent with the usage in dwarf2_create_include_psymtab.
4988
dc305454
MS
49892004-05-03 Michael Snyder <msnyder@redhat.com>
4990
4991 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
4992 (heuristic_proc_start): Whitespace cleanup.
4993
29972665
MK
49942004-05-04 Mark Kettenis <kettenis@gnu.org>
4995
6b57680d
MK
4996 * sun3-nat.c: Remove file.
4997 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
4998 dependencies.
4999 (ALLDEPFILES): Remove sun3-nat.c.
5000 (sun3-nat.o): Remove dependencies.
5001
29972665
MK
5002 * i386-interix-nat.c, i386-interix-tdep.c,
5003 config/i386/nm-interix.h, config/i386/interix.mh,
5004 config/i386/interix.mt: Remove files.
5005 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5006 dependencies.
5007
f595cb19
MK
50082004-05-03 Mark Kettenis <kettenis@gnu.org>
5009
5010 * m68k-tdep.h (struct gdbarch_tdep): Add member
5011 struct_value_regnum.
5012 (m68k_svr4_init_abi): New prototype.
5013 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5014 different calling conventions.
5015 (m68k_extract_return_value): Remove code dealing with single-field
5016 structs.
5017 (m68k_store_return_value): Remove code dealing with single-field
5018 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5019 (m68k_extract_struct_value_address): Remove function.
5020 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5021 (m68k_reg_struct_return_p, m68k_return_value)
5022 (m68k_svr4_return_value): New functions.
5023 (m68k_use_struct_convention): Remove function.
5024 (m68k_push_dummy_call): Use new struct_value_regnum member of
5025 `struct gdbarch_tdep' instead of hardcoded register number to
5026 store STRUCT_ADDR.
5027 (m68k_svr4_init_abi): New function.
5028 (m68k_gdbarch_init): Don't set extract_return_value,
5029 store_return_values, deprecated_extract_struct_value_address and
5030 use_struct_convention. Set return_value instead. Initialize new
5031 struct_value_regnum member of `struct gdbarch_tdep'.
5032 * m68klinux-tdep.c: Update copyright year.
5033 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5034 (m68k_linux_extract_struct_value_address): Remove function.
5035 (m68k_linux_init_abi): Don't set extract_return_value,
5036 store_return_values, deprecated_extract_struct_value_address and
5037 use_struct_convention. Call m68k_svr4_init_abi but override the
5038 new struct_value_regnum member of `struct gdbarch_tdep'.
5039 * Makefile.in (m68k-tdep.o): Update dependencies.
5040
aaa75496
JB
50412004-05-03 J. Brobecker <brobecker@gnat.com>
5042
5043 * dwarf2read.c (line_header): Add new included_p field in
5044 field file_names.
5045 (partial_die_info): New field has_stmt_list. New field line_offset.
5046 (dwarf2_create_include_psymtab): New function.
5047 (dwarf2_build_include_psymtabs): New function.
5048 (add_file_name): Add forward declaration. Initialize new field.
5049 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5050 to be able to determine the list of files included by the
5051 given unit, and build their associated psymtabs.
5052 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5053 files as well.
5054 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5055 (read_file_scope): Update call to dwarf_decode_lines.
5056 (read_partial_die): Handle DW_AT_stmt_list attributes.
5057
c848556f
MC
50582004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5059
5060 Unfix PR gdb/1626.
5061 * configure.in: Revert special case for osf5.*.
5062 * configure: Regenerate.
5063
eb4556d7
JB
50642004-05-02 Jim Blandy <jimb@redhat.com>
5065
5066 Move the symbol-file-from-memory functions into their own file.
5067 * symfile-mem.c, symfile-mem.h: New files.
5068 * symfile.c (symbol_file_add_from_bfd): New function.
5069 (symbol_file_add): Call symbol_file_add_from_bfd.
5070 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5071 Moved to symfile-mem.c.
5072 (_initialize_symfile): Move definition of
5073 add-symbol-file-from-memory command to symfile-mem.c.
5074 * symfile.h (symbol_file_add_from_bfd): New declaration.
5075 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5076 * config/powerpc/linux.mt (TDEPFILES): Same.
5077 * Makefile.in (SFILES): Add symfile-mem.c.
5078 (symfile_mem_h): New variable.
5079 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5080 (symfile-mem.o): New rule.
5081
80bb239e
AC
50822004-05-01 Andrew Cagney <cagney@redhat.com>
5083
7789d0fa
AC
5084 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5085 frame_find_by_id instead of frame_relative_level.
5086 (do_enable_breakpoint): Ditto.
5087 * thread.c: Update copyright.
5088 (info_threads_command): Ditto, simplify.
5089
80bb239e
AC
5090 * frame.c (deprecated_generic_get_saved_register): Delete
5091 function, moved to "xstormy16-tdep.c".
5092 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5093 deprecated_generic_get_saved_register from "frame.c".
5094 (xstormy16_frame_saved_register): Call
5095 xstormy16_get_saved_register.
5096 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5097 static.
5098 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5099 * frame.h (deprecated_generic_get_saved_register): Delete.
5100
b2a871dd
MC
51012004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5102
5103 * dwarfread.c: Update documentation on the state of dwarf-1.
5104
0e100dab
AC
51052004-05-01 Andrew Cagney <cagney@redhat.com>
5106
acd8056e
AC
5107 * stack.c (select_frame_command): Delete call to
5108 frame_relative_level.
5109 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5110 Delete #if0 code.
5111 (frame_info): Do not print FRAMELESS.
5112 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5113 (catch_info): Delete #if0 code.
5114
0e100dab
AC
5115 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5116 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5117 of frame_relative_level.
5118 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5119 to SENTINEL_FRAME.
5120 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5121 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5122 frame_relative_level.
5123
55699d59
AC
5124 * frame.h (deprecated_set_frame_type): Delete declaration.
5125 * frame.c (deprecated_set_frame_type): Delete function, update
5126 comments.
5127
fcf70625
AC
5128 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5129 * gdbarch.h, gdbarch.c: Re-generate.
5130 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5131 (shnbsd_pc_in_sigtramp): Delete.
5132 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5133 pc_in_sigtramp.
5134 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5135 pc_in_sigtramp.
5136 * frame.h: Update comments.
5137 * ppc-linux-tdep.c: Update comments.
5138 * breakpoint.c (bpstat_what): Update comments.
5139
ac5eccb7
AC
5140 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5141 m68klinux-tdep.o's dependencies, were previously added to
5142 m68klinux-nat.o.
5143
f2524b93
AC
5144 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5145 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5146 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5147 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5148 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5149
17e20bce
AC
5150 * Makefile.in (m68klinux-nat.o): Update dependencies.
5151 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5152 (m68k_linux_sigtramp_frame_cache)
5153 (m68k_linux_sigtramp_frame_this_id)
5154 (m68k_linux_sigtramp_frame_prev_register)
5155 (m68k_linux_sigtramp_frame_unwind)
5156 (m68k_linux_sigtramp_frame_sniffer)
5157 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5158 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5159 names, use trad-frame.h.
5160 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5161 (struct m68k_sigtramp_info): Delete.
5162 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5163 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5164 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5165 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5166 "m68klinux-tdep.c".
5167
c8864fa2
AC
5168 * infrun.c (check_sigtramp2): Delete check for
5169 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5170
511dd2cd
MK
51712004-05-01 Mark Kettenis <kettenis@gnu.org>
5172
5173 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5174
8c6b0e06
AC
51752004-05-01 Andrew Cagney <cagney@redhat.com>
5176
9df0bb3f
AC
5177 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5178 (frv_linux_sigtramp_frame_cache)
5179 (frv_linux_sigtramp_frame_this_id)
5180 (frv_linux_sigtramp_frame_prev_register)
5181 (frv_linux_sigtramp_frame_unwind)
5182 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5183 include "linux" in function and variable names, directly call
5184 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5185 the latest trad-frame code.
5186 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5187 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5188 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5189 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5190 * frv-tdep.c (frv_sigtramp_frame_cache)
5191 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5192 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5193 frv-linux-tdep.c.
5194 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5195 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5196 (frv_set_sigcontext_reg_addr): Delete function.
5197
8c6b0e06
AC
5198 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5199 (DEPRECATED_SIGTRAMP_END): Delete.
5200 * gdbarch.h, gdbarch.c: Re-generate.
5201 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5202 * config/vax/tm-vaxbsd.h: Update copyright.
5203 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5204 (DEPRECATED_IN_SIGTRAMP): Define.
5205 * config/m68k/tm-nbsd.h: Update copyright.
5206 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5207 (DEPRECATED_IN_SIGTRAMP): Define.
5208
50ea7769
MK
52092004-05-01 Mark Kettenis <kettenis@gnu.org>
5210
03ac2a74
MK
5211 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5212 encondings. Fixes PR gdb/1628.
5213
50ea7769
MK
5214 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5215 DW_CFA_restore state without a matching DW_CFA_remember_state
5216 instead of aborting. Fixes PR backtrace/1589.
5217
9a5d7be1
JB
52182004-04-30 Joel Brobecker <brobecker@gnat.com>
5219
5220 * MAINTAINERS: Add self as AIX maintainer.
5221 Update my e-mail address in write-after-approval section.
5222
2593d1cd
AC
52232004-04-30 Andrew Cagney <cagney@redhat.com>
5224
ce12bbf9
AC
5225 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5226 (legacy_get_prev_frame): Ditto.
5227
36710c63
AC
5228 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5229 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5230 * mipsread.c (sigtramp_address): Delete extern variable.
5231 (mipscoff_new_init): Delete reference.
5232 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5233 (fixup_sigtramp): Delete function.
5234 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5235 (fixup_sigtramp): Delete declarations.
5236
2593d1cd
AC
5237 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5238 deprecated_pc_in_sigtramp.
5239 (ppcnbsd_pc_in_sigtramp): Delete function.
5240
2a25f91c
MK
52412004-05-01 Mark Kettenis <kettenis@gnu.org>
5242
5243 * config/m68k/nm-nbsd.h: Tweak comments.
5244 * config/m68k/nm-nbsdaout.h: Likewise.
5245
0b281939
AC
52462004-04-30 Andrew Cagney <cagney@redhat.com>
5247
5248 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5249 legacy_pc_in_sigtramp.
5250 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5251
8f2d3ea0
MK
52522004-05-01 Mark Kettenis <kettenis@gnu.org>
5253
5254 Add OpenBSD/m68k support.
5255 * NEWS (New native configurations): Mention OpenBSD/m68k.
5256 * m68kbsd-tdep.c: New file.
5257 * m68kbsd-nat.c: New file.
5258 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5259 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5260 * configure.host: Add m68k-*-openbsd.
5261 * configure.tgt: Add m68k-*-openbsd.
5262 * config/m68k/tm-obsd.h: New file.
5263 * config/m68k/obsd.mt: New file.
5264 * config/m68k/obsd.mh: New file.
5265 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5266 m68kbsd-tdep.c.
5267
c40f49a4
AC
52682004-04-30 Andrew Cagney <cagney@redhat.com>
5269
5270 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5271 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5272
e81554cd
MK
52732004-04-30 Mark Kettenis <kettenis@gnu.org>
5274
5275 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5276 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5277
d4dc1a91
BF
52782004-04-30 Brian Ford <ford@vss.fsi.com>
5279
5280 Revert 2004-04-16 change.
5281 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5282 (i386_coff_init_abi): Remove.
5283 * i386-tdep.h (i386_coff_init_abi): Remove.
5284 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5285
2f72f850
AC
52862004-04-30 Andrew Cagney <cagney@redhat.com>
5287
e492f9d6
AC
5288 * blockframe.c (find_pc_partial_function): Delete use of
5289 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5290 DEPRECATED_SIGTRAMP_END.
5291
7b7adad0
AC
5292 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5293 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5294 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5295 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5296 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5297
2f72f850
AC
5298 * defs.h (deprecated_inside_entry_file): Delete declaration.
5299 * blockframe.c (deprecated_inside_entry_file): Delete function.
5300 (legacy_frame_chain_valid): Delete call.
5301 * sh64-tdep.c (sh64_frame_chain): Delete call.
5302 * objfiles.h: Update comments.
5303 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5304 call.
5305 * frame.c (get_prev_frame): Delete call, update comments.
5306
283f90a7
BF
53072004-04-30 Brian Ford <ford@vss.fsi.com>
5308
5309 * MAINTAINERS (Write After Approval): Add myself.
5310
8ee56bcf
AC
53112004-04-30 Andrew Cagney <cagney@redhat.com>
5312
5313 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5314 * gdbarch.h, gdbarch.c: Re-generate.
5315 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5316 code.
5317
ee27e1b6
AC
53182004-04-30 Andrew Cagney <cagney@redhat.com>
5319
5320 * gdb-events.sh (selected_thread_changed)
5321 (selected_frame_level_changed, target_changed): Delete.
5322 * gdb-events.h, gdb-events.c: Re-generate.
5323 * valops.c (value_assign): Update.
5324 * stack.c (select_frame_command, up_silently_base)
5325 (down_silently_base): Update.
5326
d5ac5a39
AC
53272004-04-29 Andrew Cagney <cagney@redhat.com>
5328
5329 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5330 registers correctly.
5331 (print_gp_register_row, mips32_heuristic_proc_desc)
5332 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5333 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5334 references to mips_isa_regsize.
5335
ceae6e75
AC
53362004-04-29 Andrew Cagney <cagney@redhat.com>
5337
5338 * mips-tdep.c (struct gdbarch_tdep): Delete
5339 mips_fp_register_double.
5340 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5341 mips_abi_regsize.
5342 (mips_gdbarch_init): Do not set mips_fp_register_double.
5343 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5344
a587af0b
AC
53452004-04-29 Joel Brobecker <brobecker@gnat.com>
5346
5347 Committed by Andrew Cagney.
5348 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5349 function calls.
5350
13326b4e
AC
53512004-04-29 Andrew Cagney <cagney@redhat.com>
5352
5353 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5354 gdbarch, use mips_abi, update callers.
5355 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5356 mips_abi_regsize, update callers.
5357 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5358 mips_default_abi_regsize.
5359 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5360 mips_default_abi_regsize.
5361
711cc5cd
AC
53622004-04-29 Andrew Cagney <cagney@redhat.com>
5363
1b13c4f6
AC
5364 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5365 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5366 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5367 mips_default_abi_regsize.
5368 (mips_isa_regsize): Rename mips_regisze.
5369 * mipsnbsd-tdep.c: Update.
5370 * mips-linux-tdep.c: Update.
5371 * irix5-nat.c: Update.
5372 * mips-tdep.h (mips_isa_regsize): Update.
5373
711cc5cd
AC
5374 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5375 Delete all disabled code.
5376 * gdb-events.h, gdb-events.c: Re-generate.
5377
e63bbc88
MK
53782004-04-19 Jerome Guitton <guitton@gnat.com>
5379 Mark Kettenis <kettenis@gnu.org>
5380
5381 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5382 the function begins with a branch instruction.
5383
fd35795f
MK
53842004-04-29 Mark Kettenis <kettenis@gnu.org>
5385
5386 * i386-tdep.c: Fix spelling mistakes.
5387
c960c18f
AC
53882004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5389 Andrew Cagney <cagney@redhat.com>
5390
5391 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5392 <sys/proc.h>.
5393 * acconfig.h: Provide default _KMEMUSER value.
5394 * config.in, configure: Re-generate.
5395 * NEWS: Mention fix.
5396
50306a9d
RC
53972004-04-24 Randolph Chung <tausq@debian.org>
5398
5399 * configure.host (hppa*-*-linux*): New target.
5400 * configure.tgt (hppa*-*-linux*): Likewise.
5401 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5402 gdbarch_init_osabi() call earlier so that osabi-specific frame
5403 unwinders can be registered first.
5404 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5405 hppa-linux-nat.c.
5406 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5407 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5408 * config/pa/linux.mh: New file.
5409 * config/pa/linux.mt: New file.
5410 * config/pa/nm-linux.h: New file.
5411 * config/pa/xm-linux.h: New file.
5412 * hppa-linux-nat.c: New file.
5413 * hppa-linux-tdep.c: New file.
5414
2a6228ef
RC
54152004-04-28 Randolph Chung <tausq@debian.org>
5416
5417 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5418 return values.
5419 (hppa32_push_dummy_call): Fix small struct and floating point argument
5420 passing, and make sure the stack frame is properly aligned.
5421
82c10df6
AC
54222004-04-28 Andrew Cagney <cagney@redhat.com>
5423
d762c46a
AC
5424 * stack.c (print_stack_frame): Fix description.
5425
82c10df6
AC
5426 * NEWS: Mention gdb/gdbserver/configure execute permission
5427 changed. PR server/519.
5428
0faf0076
AC
54292004-04-28 Andrew Cagney <cagney@redhat.com>
5430
5431 * stack.c (print_stack_frame_stub): Delete declaration.
5432 (struct print_stack_frame_args, print_stack_frame)
5433 (print_frame_info, print_frame): Replace "source" with print what.
5434 Replace "print" with "print_level". Replace "args" with
5435 "print_args".
5436 * frame.h (show_and_print_stack_frame, print_stack_frame)
5437 (print_frame_info): Update declarations.
5438 * stack.c (select_and_print_frame, frame_command)
5439 (current_frame_command, up_command, down_command): Update calls -
5440 use get_selected_frame, pass "enum print_what" for source, do not
5441 call frame_relative_level.
5442 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5443 * remote-rdp.c (remote_rdp_open): Ditto.
5444 * remote-mips.c (common_open): Ditto.
5445 * remote-e7000.c (e7000_start_remote): Ditto.
5446 * ocd.c (ocd_start_remote): Ditto.
5447 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5448 * infrun.c (normal_stop): Ditto.
5449 * inflow.c (kill_command): Ditto.
5450 * infcmd.c (finish_command): Ditto.
5451 * corelow.c (core_open): Ditto.
5452 * tracepoint.c (finish_tfind_command): Ditto.
5453 * thread.c (info_threads_command, info_threads_command)
5454 (restore_current_thread, do_captured_thread_select): Ditto.
5455 * ada-tasks.c (task_command): Ditto.
5456
f4c5303c
OF
54572004-04-26 Orjan Friberg <orjanf@axis.com>
5458
5459 * frame.c: Include "observer.h".
5460 (frame_observer_target_changed): New function.
5461 (_initialize_frame): Attach target_changed observer.
5462 * regcache.c: Include "observer.h".
5463 (regcache_observer_target_changed): New function.
5464 (_initialize_regcache): Attach target_changed observer.
5465 * valops.c: Include "observer.h".
5466 (value_assign): Notify target_changed event when modifying register.
5467 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5468
7270d8f2
OF
54692004-04-26 Orjan Friberg <orjanf@axis.com>
5470
5471 From Paul Koning <pkoning@equallogic.com>:
5472 * breakpoint.c (free_valchain): New function.
5473 (insert_bp_location, delete_breakpoint): Use free_valchain.
5474 (remove_breakpoint): Do not remove the valchain.
5475 (bpstat_stop_status): If not stopped by watchpoint, skip
5476 watchpoints when generating stop status list.
5477 * infrun.c (handle_inferior_event): Make
5478 stepped_after_stopped_by_watchpoint a global variable.
5479 * remote.c (remote_stopped_data_address): Return watch data
5480 address rather than zero if stepped_after_stopped_by_watchpoint is
5481 set.
5482
02d62932
MC
54832004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5484
5485 Fix PR gdb/1626.
5486 * configure.in: Check for curses after termcap.
5487 On osf5.*, do not check for ncurses.
5488 * configure: Regenerate.
5489
3e9a183c
MK
54902004-04-25 Mark Kettenis <kettenis@gnu.org>
5491
c79ac407
MK
5492 * ppcobsd-nat.c: Include "ppc-tdep.h".
5493 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5494
3e9a183c
MK
5495 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5496 Fixes PR tdep/1623 and PR tdep/1624.
5497
38cc9c28
MC
54982004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5499
5500 * xmodem.h, xmodem.c: Remove files.
5501 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5502
7f07c5b6
RC
55032004-04-23 Randolph Chung <tausq@debian.org>
5504
5505 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5506 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5507 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5508 for handling stackless frames.
5509 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5510
9f7194c3
RC
55112004-04-23 Randolph Chung <tausq@debian.org>
5512
5513 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5514 starts at a pc before the frame is created.
5515
dcff6009
JB
55162004-04-23 Joel Brobecker <brobecker@gnat.com>
5517
5518 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5519
40711ff1 55202004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
5521
5522 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5523 use convert_typed_floating to get the appropriate format.
5524
abc485a1
RC
55252004-04-22 Randolph Chung <tausq@debian.org>
5526
5527 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5528 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5529 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5530 (hppa_sign_extend): Add prototype.
5531 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5532 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5533 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5534 hppa targets will also use these functions.
5535 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5536 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5537 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5538 (hppa_gdbarch_init): Remove gdbarch setting of
5539 skip_trampoline_code, in_solib_call_trampoline and
5540 in_solib_return_trampoline.
5541 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5542 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5543 hppa_in_solib_call_trampoline.
5544 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5545 Moved from hppa-tdep.c.
5546 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5547 in_solib_call_trampoline and in_solib_return_trampoline.
5548
369aa520
RC
55492004-04-22 Randolph Chung <tausq@debian.org>
5550
5551 * hppa-tdep.c (hppa_debug): New variable.
5552 (find_unwind_entry, hppa_frame_cache): Add debug output.
5553 (_initialize_hppa_tdep): Add command to set debug flag.
5554
476be15e
AC
55552004-04-22 Andrew Cagney <cagney@redhat.com>
5556
5557 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5558 "trad-frame.h".
5559 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5560 signal trampoline unwinder.
5561 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5562
d195bc9f
MK
55632004-04-22 Mark Kettenis <kettenis@gnu.org>
5564
5565 Add OpenBSD/powerpc support.
5566 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5567 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5568 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5569 (ppc_collect_fpregset): New prototypes.
5570 * ppcobsd-nat.c: New file.
5571 * ppcobsd-tdep.c: New file.
5572 * ppcobsd-tdep.h: New file.
5573 * rs6000-tdep.c: Include "regset.h".
5574 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5575 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5576 New functions.
5577 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5578 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5579 (rs6000-tdep.o): Update dependencies.
5580 * configure.host: Add powerpc-*-openbsd.
5581 * configure.tgt: Add powerpc-*-openbsd.
5582 * config/powerpc/obsd.mh: New file.
5583 * config/powerpc/nm-obsd.h: New file.
5584 * config/powerpc/obsd.mt: New file.
5585
6f14cc33
AC
55862004-04-22 Andrew Cagney <cagney@redhat.com>
5587
fcf29e5f
AC
5588 * frame.h (show_frame_info): Delete declaration.
5589
6f14cc33
AC
5590 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5591 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5592 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5593 * frv-tdep.c (frv_frame_this_id): Ditto.
5594 * avr-tdep.c (avr_frame_this_id): Ditto.
5595
e5786a5c
EZ
55962004-04-22 Elena Zannoni <ezannoni@redhat.com>
5597
5598 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5599
26e75e5c
JB
56002004-04-22 Jim Blandy <jimb@redhat.com>
5601
5602 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5603 register number zero.
5604
d8d65dd3
MS
56052004-04-21 Michael Snyder <msnyder@redhat.com>
5606
5607 * mips-tdep.c (heuristic_proc_start):
5608 Warning() already prefixes "Warning: ".
5609
9a4105ab
AC
56102004-04-21 Andrew Cagney <cagney@redhat.com>
5611
5612 * annotate.h (deprecated_annotate_starting_hook)
5613 (deprecated_annotate_stopped_hook)
5614 (deprecated_annotate_exited_hook)
5615 (deprecated_annotate_signal_hook)
5616 (deprecated_annotate_signalled_hook): Deprecate.
5617 * tracepoint.h (deprecated_create_tracepoint_hook)
5618 (deprecated_delete_tracepoint_hook)
5619 (deprecated_modify_tracepoint_hook)
5620 (deprecated_trace_find_hook)
5621 (deprecated_trace_start_stop_hook): Deprecate.
5622 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5623 * remote.h (deprecated_target_resume_hook)
5624 (deprecated_target_wait_loop_hook): Deprecate.
5625 * gdbcore.h (deprecated_exec_file_display_hook)
5626 (deprecated_file_changed_hook): Deprecate.
5627 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5628 * defs.h (deprecated_modify_breakpoint_hook)
5629 (deprecated_command_loop_hook, deprecated_show_load_progress)
5630 (deprecated_print_frame_info_listing_hook)
5631 (deprecated_query_hook, deprecated_warning_hook)
5632 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5633 (deprecated_delete_breakpoint_hook)
5634 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5635 (deprecated_readline_begin_hook, deprecated_readline_hook)
5636 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5637 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5638 (deprecated_context_hook, deprecated_target_wait_hook)
5639 (deprecated_attach_hook, deprecated_detach_hook)
5640 (deprecated_call_command_hook, deprecated_set_hook)
5641 (deprecated_error_hook, deprecated_error_begin_hook)
5642 (deprecated_ui_load_progress_hook): Deprecate.
5643 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5644 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5645 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5646 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5647 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5648 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5649 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5650 * annotate.c, aix-thread.c: Update.
5651
62cf13cc
AC
56522004-04-21 Andrew Cagney <cagney@redhat.com>
5653
b2e31a62
AC
5654 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5655 * vaxnbsd-tdep.c: Include "gdb_string.h".
5656
62cf13cc
AC
5657 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5658 (add_symbol_file_from_memory_command): #if 0 function body, call
5659 error instead.
5660
00e32a35
AC
56612004-04-21 Andrew Cagney <cagney@redhat.com>
5662
5663 * gdbcore.h: Update copyright.
5664 (deprecated_add_core_fns): Rename add_core_fns.
5665 * win32-nat.c (_initialize_core_win32): Update.
5666 * sun3-nat.c (_initialize_core_sun3): Update.
5667 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5668 * rs6000-nat.c (_initialize_core_rs6000): Update.
5669 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5670 * nto-tdep.c (_initialize_nto_tdep): Update.
5671 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5672 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5673 * mips-nat.c (_initialize_core_mips): Update.
5674 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5675 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5676 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5677 * lynx-nat.c (_initialize_core_lynx): Update.
5678 * irix5-nat.c (_initialize_core_irix5): Update.
5679 * i386-interix-nat.c (_initialize_core_interix): Update.
5680 * cris-tdep.c (_initialize_cris_tdep): Update.
5681 * corelow.c (deprecated_add_core_fns): Update.
5682 * core-regset.c (_initialize_core_regset): Update.
5683 * core-aout.c (_initialize_core_aout): Update.
5684 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5685 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5686 * alpha-nat.c (_initialize_core_alpha): Update.
5687
13c7b1ca
JB
56882004-04-21 Jim Blandy <jimb@redhat.com>
5689
5690 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5691
7b5a2f43
DJ
56922004-04-19 Daniel Jacobowitz <drow@mvista.com>
5693
5694 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5695 Delete.
5696 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5697 (read_attribute_value): Update calls to dwarf_alloc_block.
5698 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5699 dwarf2_tmp_obstack.
5700 (psymtab_to_symtab_1): Likewise. Clean up using
5701 free_stack_comp_unit.
5702 (add_to_cu_func_list): Use the comp_unit_obstack.
5703
05cf31d1
JB
57042004-04-19 Joel Brobecker <brobecker@gnat.com>
5705
5706 * dwarf2read.c (dwarf2_flag_true_p): New function.
5707 (die_is_declaration): Use the function above. Add some comments.
5708
adf93a2f
MK
57092004-04-19 Mark Kettenis <kettenis@gnu.org>
5710
5711 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5712 architecture when registering sparcnbsd_core_osabi_sniffer.
5713 Adjust comment.
5714
748894bf
MK
57152004-04-18 Mark Kettenis <kettenis@gnu.org>
5716
f622ad42
MK
5717 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5718 return value.
5719
c4fc7f1b
MK
5720 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5721 * i386-tdep.c: Correct register numbering scheme comments
5722 throughout.
5723 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5724 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5725 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5726 (i386_gdb_arch_init): Likewise.
5727
b4ead1bd
MK
5728 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5729 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5730 ppcnbsd-tdep.o.
5731
748894bf
MK
5732 * m68k-tdep.h: Tweak comments.
5733 * m68k-tdep.c: Tweak comment.
5734
fdd72f95
RC
57352004-04-17 Randolph Chung <tausq@debian.org>
5736
5737 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5738 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5739 (hppa_hpux_som_init_abi): Set is_elf to 0.
5740 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5741 * hppa-tdep.c (low_text_segment_address): Remove global.
5742 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5743 section offset to calculate segment address.
5744 (internalize_unwinds): Define low_text_segment_address as local and
5745 pass to record_text_segment_lowaddr for ELF targets.
5746 (hppa_gdbarch_init): Zero fill tdep structure.
5747 (hppa_dump_tdep): Print tdep structure.
5748 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5749
0f8d9d59
RC
57502004-04-17 Randolph Chung <tausq@debian.org>
5751
5752 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5753 (hppa_gdbarch_init): Set pseudo_register_read.
5754 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5755 * regcache.c (supply_register): Remove check for
5756 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5757
7c46b9fb
RC
57582004-04-17 Randolph Chung <tausq@debian.org>
5759
5760 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5761 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5762 (hpread_adjust_stack_address): Move to hpread.c.
5763 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5764 obj_private_struct): Move from tm-hppa.h.
5765 * hpread.c (hppa-tdep.h): Include.
5766 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5767 (hpread_read_function_type, hpread_read_doc_function_type)
5768 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5769 directly.
5770 * pa64solib.c (hppa-tdep.h): Include.
5771 * somsolib.c (hppa-tdep.h): Include.
5772 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5773 inferior_status): Remove unused forward declarations.
5774 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5775 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5776 obj_private_struct): Move to hppa-tdep.h.
5777 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5778
8d153463
RC
57792004-04-17 Randolph Chung <tausq@debian.org>
5780
5781 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5782 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5783 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5784 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5785 Remove forward declaration and make static.
5786 (hppa_reg_struct_has_addr): Remove.
5787
350c2e5b
JB
57882004-04-16 Joel Brobecker <brobecker@gnat.com>
5789
5790 * observer.sh: Move comments in sed command to first column.
5791
bbde78fa
JM
57922004-04-16 Jason Molenda (jmolenda@apple.com)
5793
5794 * frame.c: Minor typeo corrections in comments.
5795
e0270fd9
JB
57962004-04-16 Joel Brobecker <brobecker@gnat.com>
5797
5798 * observer.c (observer_test_first_notification_function): Update
5799 function profile.
5800 (observer_test_second_notification_function): Likewise.
5801 (observer_test_third_notification_function): Likewise.
5802
3d049254
MK
58032004-04-16 Mark Kettenis <kettenis@gnu.org>
5804
5805 From Brian Ford <ford@vss.fsi.com>:
5806 * i386-tdep.c (i386_coff_init_abi): New function.
5807 * i386-tdep.h (i386_coff_init_abi): New prototype.
5808 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5809 register number translation functions for DWARF and DWARF 2.
5810
7867684d
JB
58112004-04-16 Joel Brobecker <brobecker@gnat.com>
5812
5813 * dwarf2read.c: Back out my previous change, it was incorrect.
5814
72bf9492
DJ
58152004-04-16 Daniel Jacobowitz <drow@mvista.com>
5816
5817 * dwarf2read.c: Include "hashtab.h".
5818 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5819 has_namespace_info.
5820 (struct partial_die_info): Add comments. Use bitfields to reduce
5821 memory footprint. Add scope, scope_set, has_specification,
5822 spec_offset, die_parent, die_child, and die_sibling.
5823 (peek_die_abbrev): Add prototype.
5824 (partial_read_comp_unit_head): New function, broken out from
5825 dwarf2_build_psymtabs_hard.
5826 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5827 Use partial_read_comp_unit_head. Initialize the CU and
5828 comp_unit_obstack. Update calls to read_partial_die and
5829 scan_partial_symbols. Use free_stack_comp_unit and
5830 load_partial_dies.
5831 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5832 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5833 Update calls to helper functions. Remove NAMESPACE argument.
5834 Update comments.
5835 (partial_die_parent_scope, partial_die_full_name): New functions.
5836 (add_partial_symbol): Remove namespace argument. Update call to
5837 pdi_needs_namespace. Use partial_die_full_name. Handle
5838 DW_TAG_namespace. Check has_namespace_info flag.
5839 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5840 tag. Handle namespaces.
5841 (add_partial_namespace, add_partial_enumeration): Simplify.
5842 (guess_structure_name): New function, derived from
5843 add_partial_structure.
5844 (add_partial_structure): Remove.
5845 (determine_class_name): Update comment.
5846 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5847 (is_type_tag_for_partial, load_partial_dies): New functions.
5848 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5849 Record specifications instead of following them immediately.
5850 (find_partial_die_in_comp_unit, find_partial_die)
5851 (fixup_partial_die, free_stack_comp_unit)
5852 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5853 (partial_die_hash, partial_die_eq): New functions.
5854 * Makefile.in (hashtab_h): Define.
5855 (dwarf2read.o): Update dependencies.
5856 (observer_inc, observer_h): Move to the correct section.
5857
fdc860a3
JB
58582004-04-15 Joel Brobecker <brobecker@gnat.com>
5859
5860 * dwarf2read.c (dwarf2_attribute_true_p): New function.
5861 (die_is_declaration): Use the function above. Add comment.
5862
dc718098
JB
58632004-04-15 Joel Brobecker <brobecker@gnat.com>
5864
5865 * dwarf2read.c (read_structure_scope): Identify stub types
5866 using die_is_declaration() only.
5867
8718a420
RM
58682004-04-15 Roland McGrath <roland@redhat.com>
5869
5870 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
5871 argument instead of NAME.
5872 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
5873 in call to symbol_file_add_with_addrs_or_offsets.
5874 (build_addr_info): New function, helper for ...
5875 (symbol_file_add_from_memory): New function.
5876 (add_symbol_file_from_memory_command): New function using that.
5877 (_initialize_symfile): Register it for add-symbol-file-from-memory.
5878 (pre_add_symbol_hook): Add const to argument type.
5879 * symfile.h (symbol_file_add_from_memory): Declare it.
5880
8b910bab
MK
58812004-04-15 Mark Kettenis <kettenis@gnu.org>
5882
9f076e7a
MK
5883 * NEWS (New native configurations): Mention OpenBSD/vax.
5884 * configure.host: Add vax-*-openbsd*.
5885 * config/vax/obsd.mh: New file.
5886 * config/vax/nm-obsd.h: New file.
5887
8b910bab
MK
5888 * vax-tdep.c: Include "regset.h".
5889 (vax_supply_gregset): New function.
5890 (vax_gregset): New variable.
5891 (vax_regset_from_core_section): New function.
5892 (vax_gdbarch_init): Set regset_from_core_section.
5893 * Makefile.in (vax-tdep.o): Update dependencies.
5894
7a464420
AC
58952004-04-15 Andrew Cagney <cagney@redhat.com>
5896
5897 * observer.c (normal_stop_subject, observer_notify_normal_stop)
5898 (observer_normal_stop_notification_stub)
5899 (observer_attach_normal_stop, observer_detach_normal_stop):
5900 Delete, replaced by #include "observer.inc".
5901 * infrun.c (normal_stop): Pass "stop_bpstat" to
5902 observer_notify_normal_stop.
5903 * Makefile.in (observer_inc): Define.
5904 (observer.o): Update dependencies.
5905 (observer.h, observer.inc): New rules.
5906 * observer.h: Delete file.
5907 * observer.sh: New file.
5908
e36ad527
MK
59092004-04-15 Mark Kettenis <kettenis@gnu.org>
5910
5911 * vax-tdep.c (vax_frame_cache): Fix typo.
5912
67b441e1
MK
59132004-04-14 Mark Kettenis <kettenis@gnu.org>
5914
6f606e1c
MK
5915 * NEWS (New native configurations): Mention NetBSD/vax.
5916 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
5917 * config/vax/nbsdelf.mh: New file.
5918 * config/vax/nbsdaout.mh: New file.
5919 * config/vax/nm-nbsd.h: New file.
5920 * config/vax/nm-nbsdaout.h: New file.
5921
9c5519a5
MK
5922 * vaxnbsd-tdep.c: New file.
5923 * Makefile.in (vaxnbsd-tdep.o): New dependency.
5924 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
5925 * config/vax/nbsd.mt: New file.
5926 * config/vax/tm-nbsd.h: New file.
5927
4844a614
MK
5928 * Makefile.in (vaxbsd-nat.o): New dependency.
5929
67b441e1
MK
5930 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
5931 * vax-tdep.c (vax_store_arguments): Remove struct_return and
5932 struct_addr arguments. Don't push return value address.
5933 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
5934 arguments to vax_store_arguments. Store return value address in
5935 R1.
5936 (vax_store_struct_return, vax_extract_return_value)
5937 (vax_store_return_value): Remove functions.
5938 (vax_return_value): New function.
5939 (vax_gdbarch_init): Set return value. Don't set
5940 deprecated_store_struct_return, deprecated_extract_struct_return
5941 and deprecated_store_return_value.
5942
6672f2ae
AS
59432004-04-14 Andreas Schwab <schwab@suse.de>
5944
5945 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
5946 value buffer.
5947 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
5948
7346c184
MK
59492004-04-14 Mark Kettenis <kettenis@gnu.org>
5950
5951 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
5952 (vax_unwind_dummy_id): New functions.
5953 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
5954 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
5955 variables.
5956 (vax_fix_call_dummy): Remove function.
5957 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
5958 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
5959 call_dummy_location, deprecated_call_dummy_words,
5960 deprecated_sizeof_call_dummy_words,
5961 deprecated_call_dummy_breakpoint_offset,
5962 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
5963 and deprecated_dummy_write_sp.
5964
58e23df4
DC
59652004-04-13 David Carlton <carlton@kealia.com>
5966
5967 * MAINTAINERS: Move myself to "paper trail" section.
5968
5e6b39ff
MK
59692004-04-12 Mark Kettenis <kettenis@gnu.org>
5970
7def7fef
MK
5971 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
5972 "trad-frame.h".
5973 (vax_frame_init_saved_regs): Remove function.
5974 (vax_sigtramp_saved_pc): Remove function.
5975 (vax_frame_saved_pc): Remove function.
5976 (vax_frame_args_address): Remove function.
5977 (vax_frame_num_args): Rewrite.
5978 (vax_frame_chain): Remove function.
5979 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
5980 VAX_FP_REGNUM.
5981 (vax_pop_frame): Likewise.
5982 (vax_saved_pc_after_call): Remove function.
5983 (struct vax_frame_cache): New structure.
5984 (vax_frame_cache): New function.
5985 (vax_frame_this_id): New function.
5986 (vax_frame_prev_register): New function.
5987 (vax_frame_unwind): New variable.
5988 (vax_frame_sniffer): New function.
5989 (vax_frame_base_address): New function.
5990 (vax_frame_args_address): New function.
5991 (vax_frame_base): New variable.
5992 (vax_unwind_pc): New function.
5993 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
5994 deprecated_fp_regnum, deprecated_saved_pc_after_call,
5995 deprecated_frame_chain, deprecated_frame_saved_pc,
5996 deprecated_frame_args_address and
5997 deprecated_frame_init_saved_regs.
5998 * Makefile.in (vax-tdep.o): Update dependencies.
5999
53284fc1
MK
6000 * vaxbsd-nat.c: New file.
6001
5e6b39ff
MK
6002 * vax-tdep.h: Update copyright year. Adjust comments.
6003 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6004 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6005 (vax_regnum): New enum. Replacing...
6006 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6007 (VAX_PS_REGNUM): ... these removed macros.
6008 * vax-tdep.c (vax_register_name): Remove prototype.
6009 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6010 (vax_register_byte, vax_register_raw_size,
6011 vax_register_virtual_size, vax_register_virtual_type): Remove
6012 functions.
6013 (vax_register_type): New function.
6014 (vax_breakpoint_from_pc): Reorganize.
6015 (vax_gdbarch_init): Set register_type. Don't set
6016 deprecated_register_size, deprecated_register_bytes,
6017 deprecated_register_byte, deprecated_register_raw_size,
6018 deprecated_max_register_raw_size,
6019 deprecated_register_virtual_size,
6020 deprecated_max_register_virtual_size and
6021 deprecated_register_virtual_type. Add comment on stack direction.
6022
e9c71e9f
MK
60232004-04-11 Mark Kettenis <kettenis@gnu.org>
6024
6025 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6026 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 6027 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 6028
d46f1176 60292004-04-10 Randolph Chung <tausq@debian.org>
8718a420 6030
d46f1176
RC
6031 * MAINTAINERS (write after approval): Add myself.
6032
a2a84a72
RC
60332004-04-07 Randolph Chung <tausq@debian.org>
6034
6035 * hppa-tdep.c (hppa_inner_than): Remove.
6036 (is_pa_2): Remove unused static variable.
8718a420 6037 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 6038
e85c3284
PH
60392004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6040
6041 * language.h (language_defn): Add new la_post_parser field.
6042 * parser-defs.h (null_post_parser): New declaration (default for
6043 la_post_parser).
8718a420 6044
e85c3284
PH
6045 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6046 insert call to that function.
6047 (parse_exp_in_context): New function, including code formerly in
8718a420 6048 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
6049 prefixification.
6050 (parse_expression_in_context): New exported function.
6051 (null_post_parser): New definition.
6052 * expression.h (parse_expression_in_context): Add declaration.
8718a420 6053
e85c3284
PH
6054 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6055 * c-lang.c (c_language_defn): Ditto.
6056 (cplus_language_defn): Ditto.
6057 (asm_language_defn): Ditto.
6058 (minimal_language_defn): Ditto.
6059 * f-lang.c (f_language_defn): Ditto.
6060 * jv-lang.c (java_language_defn): Ditto.
6061 * language.c (unknown_language_defn): Ditto.
6062 (auto_language_defn): Ditto.
6063 (local_language_defn): Ditto.
6064 * m2-lang.c (m2_language_defn): Ditto.
6065 * scm-lang.c (scm_language_defn): Ditto.
6066 * obj-lang.c (objc_language_defn): Ditto.
8718a420 6067
d9f8c85b
MK
60682004-04-10 Mark Kettenis <kettenis@gnu.org>
6069
fa34704a
MK
6070 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6071 (amd64nbsd_mcontext_addr): New function.
6072 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6073 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6074 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6075
403e1656
MK
6076 * corelow.c (core_xfer_partial): Fix coding standards violation.
6077 Add support for TARGET_OBJECT_WCOOKIE.
6078
a57e5a95
MK
6079 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6080 deprecated_pc_in_sigtramp.
6081 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6082 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6083 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6084 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6085 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6086 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6087 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6088
377d9ebd
MK
6089 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6090 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6091 Fix typo.
6092
f0ef85a5
MK
6093 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6094 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6095 (amd64_collect_fxsave): Likewise.
6096
d9f8c85b
MK
6097 * i386-sol2-tdep.c: Include "gdb_string.h".
6098 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6099 name.
6100 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6101
75f501b5
MK
61022004-04-10 Mark Kettenis <kettenis@gnu.org>
6103
6104 * i386-sol2-tdep.c: Include "solib-svr4.h".
6105 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6106 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6107 * config/i386/tm-i386sol2.h: Include :solib.h".
6108 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6109 solib-svr4.o and solib-legacy.o.
6110 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6111 solib-svr4.o.
6112
b31bc724
MK
61132004-04-09 Mark Kettenis <kettenis@gnu.org>
6114
18bbbd9e
MK
6115 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6116 whether a register is supplied by PTRACE_GETFPREGS.
6117 (store_inferior_registers): Likewise.
6118 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6119 whether a register is supplied by PT_GETFPREGS.
6120 (store_inferior_registers): Likewise.
6121
3c30bf1b
MK
6122 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6123 * config/i386/linux64.mt (TDEPFILES): Likewise.
6124
a4194092
MK
6125 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6126
911bc6ee
MK
6127 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6128 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6129 the program counter is in the range specified by `struct
6130 gdbarch_tdep'.
6131 * amd64-linux-tdep.c: Include "symtab.h".
6132 (amd64_linux_pc_in_sigtramp): Remove function.
6133 (amd64_linux_sigtramp_p): New function.
6134 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6135 deprecated_pc_in_sigtramp.
6136 * amd64nbsd-tdep.c: Include "symtab.h".
6137 (amd64nbsd_sigtramp_p): New function.
6138 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6139 deprecated_pc_in_sigtramp.
6140 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6141 few comments.
6142 (amd64obsd_pc_in_sigtramp): Remove function.
6143 (amd64obsd_sigtramp_p): New function.
6144 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6145 deprecated_pc_in_sigtramp.
6146 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6147 (i386bsd_pc_ins_sigtramp): Remove prototype.
6148 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6149 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6150 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6151 the program counter is in the range specified by `struct
6152 gdbarch_tdep'.
6153 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6154 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6155 (i386_go32_pc_in_sigtramp): Remove function.
6156 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6157 Initialize TDEP->sigtramp_p.
6158 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6159 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6160 deprecated_pc_in_sigtramp.
6161 * i386-linux-tdep.c: Adjust comments.
6162 (i386_linux_pc_in_sigtramp): Remove function.
6163 (i386_linux_sigtramp_p): New function.
6164 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6165 deprecated_pc_in_sigtramp.
6166 * i386-nto-tdep.c: Update copyright year.
6167 (i386nto_pc_in_sigtramp): Remove function.
6168 (i386nto_sigtramp_p): New function.
6169 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6170 SP_REGNUM.
6171 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6172 deprecated_pc_in_sigtramp.
6173 * i386-sol2-tdep.c: Update copyright year.
6174 (i386_sol2_pc_in_sigtramp): Remove function.
6175 (i386_sol2_sigtramp_p): New function.
6176 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6177 deprecated_pc_in_sigtramp.
6178 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6179 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6180 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6181 deprecated_sigtramp_start and deprecated_sigtramp_end.
6182 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6183 (i386nbsd_pc_in_sigtramp): Remove function.
6184 (i386nbsd_sigtramp_p): New function.
6185 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6186 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6187 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6188 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6189 (i386obsd_pc_in_sigtramp): Remove function.
6190 (i386obsd_sigtramp_p): New function.
6191 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6192 functions.
6193 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6194 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6195 TDEP->sigtramp_p.
6196 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6197 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6198 dependencies.
6199
e083e6ec
MK
6200 * config/i386/i386aout.mt: Remove file.
6201
bd153b94
MK
6202 * configure.tgt: Remove i[34567]86-*-go32*,
6203 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6204 and i[34567]86-*-isc*. Set gdb_target to i386 for
6205 i[34567]86-*-netware* and i[34567]86-*-*.
6206 * config/i386/i386.mt: New file.
6207 * config/i386/embed.mt: Remove file.
6208 * config/i386/go32.mt: Remove file.
6209 * config/i386/i386nw.mt: Remove file.
6210 * config/i386/i386v.mt: Remove file.
6211 * config/i386/tm-go32.h: Remove file.
6212
4a1bcc8c
MK
6213 * tui/tui-hooks.c: Include "readline/readline.h" after
6214 "gdb_curses.h" instead of before.
6215 * tui/tui-io.c: Likewise.
6216
f9a79064
MK
6217 * tui/tui.c: Fix typo in comment.
6218
b31bc724
MK
6219 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6220
f83f82bc
AC
62212004-04-08 Andrew Cagney <cagney@redhat.com>
6222
6223 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6224 (deprecated_exception_support_initialized): Declare.
8718a420 6225 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
6226 (initialize_hp_cxx_exception_support)
6227 (child_enable_exception_callback): Update.
6228 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6229 (deprecated_exception_support_initialized): Rename
6230 deprecated_exception_catchpoints_are_fragile and
6231 deprecated_exception_support_initialized.
6232 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6233
6234 * symtab.c (deprecated_hp_som_som_object_present): Rename
6235 hp_som_som_object_present.
6236 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6237 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6238 Update. Delete extern declaration.
6239 * valops.c (hp_som_som_object_present): Ditto.
8718a420 6240 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
6241 (parse_nested_classes_for_hpacc): Ditto.
6242 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 6243 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
6244 (initialize_hp_cxx_exception_support): Ditto.
6245 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 6246 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 6247 (cp_print_class_method): Ditto.
8718a420 6248 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
6249 (c_type_print_base): Ditto.
6250 * c-exp.y (hp_som_som_object_present): Ditto.
6251
fb2be677
AC
62522004-04-08 Andrew Cagney <cagney@redhat.com>
6253
6254 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6255 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6256 (frame_unwind_find_by_frame): Re-implement the unwind code so
6257 that it can both prepend and append sniffers. Replace
6258 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6259 * tramp-frame.c (tramp_frame_append): Use
6260 frame_unwind_prepend_unwinder.
6261 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6262 frame_unwind_register_unwinder.
6263 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6264 tramp_frame_append.
6265 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 6266 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
6267 (mips_linux_init_abi): Update.
6268
67faf007
KB
62692004-04-08 Kevin Buettner <kevinb@redhat.com>
6270
6271 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6272 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6273 file support.
6274
8973ff21
KB
62752004-04-07 Kevin Buettner <kevinb@redhat.com>
6276
6277 * ia64-tdep.c (elf.h): Don't include.
6278 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6279
4a0e2f88
JM
62802004-04-07 Jason Molenda (jmolenda@apple.com)
6281
6282 * frame.h: Typeo corrections in comments.
6283
9872ad24
JB
62842004-04-07 Jim Blandy <jimb@redhat.com>
6285
6286 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6287 %esp and %ebp
6288
70b216c8
MK
62892004-04-07 Mark Kettenis <kettenis@gnu.org>
6290
11d5789c
MK
6291 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6292 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6293 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6294 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6295 and solib-legacy.o.
6296 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6297 solib-svr4.o.
6298 * config/sparc/tm-sol2.h: Update copyright year. Include
6299 "solib.h".
6300
70b216c8
MK
6301 * sparc-sol2-tdep.c: Update copyright year. Include
6302 "solib-svr4.h".
6303 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6304 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6305 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 6306 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
6307 dependencies.
6308
6339dc9e
AC
63092004-04-06 Andrew Cagney <cagney@redhat.com>
6310
6311 * infttrace.c: Include "infttrace.h".
6312 * infttrace.h: Include "target.h".
6313 * Makefile.in (infttrace_h): Update.
6314 (infttrace.o): Update.
8718a420 6315
93449403
AC
63162004-04-06 Andrew Cagney <cagney@redhat.com>
6317
6d518969
AC
6318 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6319 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6320 move extern declarations from here ...
6321 * infttrace.h: ... to here.
6322 * Makefile.in (hppah-nat.o): Update dependencies.
6323
85f4f2d8
AC
6324 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6325 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 6326 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
6327 (hppa_breakpoint_from_pc): Delete.
6328
93449403
AC
6329 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6330
71456ec6
AC
63312004-04-05 Andrew Cagney <cagney@redhat.com>
6332
6333 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6334 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6335 <sys/file.h>.
8718a420 6336
4c02c60c
AC
63372004-04-06 Randolph Chung <tausq@debian.org>
6338
6339 Committed by Andrew Cagney (mechanical change).
6340 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6341 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6342 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6343 child_enable_exception_callback, current_ex_event,
6344 null_symtab_and_line, child_get_current_exception_event,
6345 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6346 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6347 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6348 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6349 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6350 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6351 Move hpux-specific definitions ...
6352 * hppa-hpux-tdep.c: ... to here.
6353
3a515653
AC
63542004-04-05 Andrew Cagney <cagney@redhat.com>
6355
6356 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6357 skip_prologue_using_sal.
6358
c1730d02
AC
63592004-04-05 Andrew Cagney <cagney@redhat.com>
6360
6361 * config/i386/tm-i386.h: Delete file.
6362 * config/i386/tm-vxworks.h: Update copyright, do not include
6363 "tm-i386.h".
6364 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6365 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6366 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6367 * config/i386/ncr3000.mt (TM_FILE): Delete.
6368 * config/i386/interix.mt (TM_FILE): Delete.
6369 * config/i386/i386v.mt (TM_FILE): Delete.
6370 * config/i386/i386nw.mt (TM_FILE): Delete.
6371 * config/i386/i386gnu.mt (TM_FILE): Delete.
6372 * config/i386/i386aout.mt (TM_FILE): Delete.
6373 * config/i386/embed.mt (TM_FILE): Delete.
6374
8b67aa36
KB
63752004-04-05 Kevin Buettner <kevinb@redhat.com>
6376
6377 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6378 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6379 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6380 (accg7_regnum): New constants.
6381 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
6382 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6383 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
6384 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6385 for accg registers.
6386 (frv_register_sim_regno): Update spr_map[].
6387
3c7012f5
AC
63882004-04-04 Andrew Cagney <cagney@redhat.com>
6389
6390 * config/mips/xm-riscos.h: Delete.
6391 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6392 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6393 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6394 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6395 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6396 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6397 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6398 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6399 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6400 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6401 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6402 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6403 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6404 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6405 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6406 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6407 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6408 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6409 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6410 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6411 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6412 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6413 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6414 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6415 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6416 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 6417
3c7012f5
AC
6418 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6419 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6420 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6421 * configure.host: Remove m680[01]0-sun-sunos3*,
6422 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6423 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6424 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6425 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6426 mips-*-riscos*.
6427 * NEWS: Mention removed systems.
6428
99d16a21
AC
64292004-04-04 Andrew Cagney <cagney@redhat.com>
6430
6431 GDB 6.1 release created from 6.1 branch.
6432
6cdf9d98
AC
64332004-04-04 Andrew Cagney <cagney@redhat.com>
6434
98d346c3
AC
6435 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6436 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6437 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6438
6cdf9d98
AC
6439 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6440 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6441 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6442
859a326d
JB
64432004-04-03 Jim Blandy <jimb@redhat.com>
6444
6445 * MAINTAINERS: Chris Faylor has changed employers; add him to
6446 "paper trail" section, and update his E-mail address.
6447
b87178c3
AC
64482004-04-03 Andrew Cagney <cagney@redhat.com>
6449
4ea2acf0
AC
6450 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6451 generic dummy frames.
6452 * dummy-frame.c: Update copyright.
6453 (dummy_frame_sniffer): Delete check for generic dummy frames.
6454
d0bd2d18 6455 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 6456 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
6457 (REG_PARM_STACK_SPACE): Delete.
6458 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6459 Inline reference to REG_PARM_STACK_SPACE.
6460
b87178c3
AC
6461 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6462 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6463 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6464 (FRAME_BASE_BEFORE_SIGTRAMP)
6465 (hppa32_hpux_frame_base_before_sigtramp)
6466 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6467 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6468 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6469 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6470 (FRAME_BASE_BEFORE_SIGTRAMP)
6471 (hppa64_hpux_frame_base_before_sigtramp)
6472 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6473
43e2e1a0
AC
64742004-04-03 Andrew Cagney <cagney@redhat.com>
6475
6476 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6477
ddc135a4
AC
64782004-04-02 Andrew Cagney <cagney@redhat.com>
6479
6480 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6481 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6482 * dummy-frame.h: Delete out-of-date comments.
6483 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6484 * gdbarch.h, gdbarch.c: Re-generate.
6485
d15bfd3a 64862004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 6487
d15bfd3a
AC
6488 Committed by Andrew Cagney <cagney@redhat.com>.
6489 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6490 into account an instruction saving a register if we have already
6491 seen an earlier instruction saving that same register.
6492
f04ceafa
AC
64932004-04-02 Andrew Cagney <cagney@redhat.com>
6494
08be3abd
AC
6495 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6496 * gdbarch.h, gdbarch.c: Re-generate.
6497 * frame.c (legacy_get_prev_frame): Delete references to
6498 DEPRECATED_INIT_FRAME_PC_FIRST.
6499
f04ceafa
AC
6500 * infrun.c (pc_in_sigtramp): Delete function.
6501 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6502 get_frame_type.
6503
08e69816
AC
65042004-04-02 Andrew Cagney <cagney@redhat.com>
6505
6506 * infrun.c (handle_step_into_function): Delete code conditional on
6507 legacy_frame_p.
6508 (handle_inferior_event, step_over_function): Ditto.
6509
adb54772
AC
65102004-04-02 Andrew Cagney <cagney@redhat.com>
6511
6512 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6513 "previous frame inner to this frame" test.
6514
304396fb
AC
65152004-04-02 Andrew Cagney <cagney@redhat.com>
6516
6517 * frame.c (safe_frame_unwind_memory): New function.
6518 * frame.h (safe_frame_unwind_memory): Declare. Update description
6519 of /safe_/ methods.
6520 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6521 "next_frame". Use safe_frame_unwind_memory.
6522 (tramp_frame_sniffer): Update call to tramp_frame_start.
6523
6502dd73
DJ
65242004-04-01 Daniel Jacobowitz <drow@mvista.com>
6525
6526 * dwarf2read.c (dwarf2_objfile_data_key): New.
6527 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6528 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6529 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6530 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6531 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6532 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6533 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6534 Remove variables.
6535 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6536 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6537 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6538 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6539 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6540 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6541 Remove macros.
6542 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6543 data.
6544 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6545 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6546 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6547 (read_partial_die, read_full_die, read_indirect_string)
6548 (dwarf_decode_line_header, dwarf_decode_macros)
6549 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6550 Update uses of removed variables.
6551 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6552 of removed macros.
6553 (_initialize_dwarf2_read): New function.
6554 * symfile.h (dwarf2_has_info): Update prototype.
6555 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6556 * elfread.c (elf_symfile_read): Likewise.
6557
408752b0
JB
65582004-04-01 Jim Blandy <jimb@redhat.com>
6559
9f744501
JB
6560 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6561 function for register numbers on all the rs6000-derived targets.
6562 (rs6000_gdbarch_init): Don't register a separate
6563 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6564 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6565 variants.
6566
408752b0
JB
6567 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6568 numbering.
6569
2de41bce
PH
65702004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6571
6572 * valarith.c: Update copyright notice.
6573 (value_add): Handle range types.
6574 (value_sub): Ditto.
6575 (value_equal): Ditto.
6576 (value_less): Ditto.
6577 (value_neg): Ditto.
6578 (value_complement): Ditto.
8718a420 6579 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 6580 eliminiating unnecessary COERCE_ENUMs.
8718a420 6581
5613d8d3
AC
65822004-03-31 Andrew Cagney <cagney@redhat.com>
6583
6584 * frame.h (frame_unwind_id): Declare.
6585 * frame.c (frame_unwind_id): New function.
6586 (get_prev_frame_1): New function.
6587 (frame_debug_got_null_frame): New function.
6588 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6589 code proper to prev_frame, update description.
6590 * infrun.c (step_over_function): Use frame_unwind_id.
6591
c4557624
JB
65922004-04-31 J. Brobecker <brobecker@gnat.com>
6593
6594 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6595 (hppa64_push_dummy_call): Likewise.
6596
3e6bb910
JB
65972004-03-30 Jim Blandy <jimb@redhat.com>
6598
6599 From Ulrich Weigand:
6600 * utils.c (query): Do not use a va_list variable multiple times.
6601
a2f23071
DJ
66022004-03-29 Daniel Jacobowitz <drow@mvista.com>
6603
6604 * Makefile.in (linux_nat_h): Update dependencies.
6605 * configure.in: Check for <gnu/libc-version.h>.
6606 * configure: Regenerate.
6607 * config.in: Regenerate.
6608 * linux-nat.h: Include "target.h". Add waitstatus field to
6609 struct lwp_info.
6610 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6611 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6612 to.
6613 (lin_lwp_handle_extended): New function. Handle clone events.
6614 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6615 thread exit events.
6616 (child_wait): Handle clone events.
6617 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6618 * linux-nat.c (linux_enable_event_reporting): Turn on
6619 PTRACE_O_TRACECLONE.
6620 (linux_handle_extended_wait): Handle clone events.
6621 * thread-db.c: Include <gnu/libc-version.h>.
6622 (struct private_thread_info): Add dying flag.
6623 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6624 higher.
6625 (attach_thread): Update comments. Handle dying threads.
6626 (detach_thread): Set the dying flag.
6627 (check_event): Always call attach_thread.
6628
8d5f9dcb
DJ
66292004-03-29 Daniel Jacobowitz <drow@mvista.com>
6630
6631 * mips-tdep.c (mips_pdr_data): New.
6632 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6633 (_initialize_mips_tdep): Initialize mips_pdr_data.
6634
66337bb1
CV
66352004-03-29 Corinna Vinschen <vinschen@redhat.com>
6636
6637 * minsyms.c (install_minimal_symbols): Move dropping leading
6638 char from linkage name from here...
6639 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6640 test for "__gnu_compiled*" symbols.
6641
e802b915
JB
66422004-03-28 Jim Blandy <jimb@redhat.com>
6643
6644 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6645 registers to temp register r0 and byte stores as prologue
6646 instructions.
6647
72b56458
AC
66482004-03-28 Andrew Cagney <cagney@redhat.com>
6649
6650 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6651 arm*-*-*.
6652
0bfbda3b
SC
66532004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6654
6655 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6656 and switch the layout to force a display of register window.
6657
5a7225ed
JB
66582004-02-26 J. Brobecker <brobecker@gnat.com>
6659
6660 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6661 of the INTEGER class.
6662
81a07a45
JB
66632004-03-26 Jim Blandy <jimb@redhat.com>
6664
6665 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6666 bytes long on PPC GNU/Linux.
6667
8c691c7a
DC
66682004-03-26 David Carlton <carlton@kealia.com>
6669
6670 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6671
103a0089
AC
66722004-03-25 Andrew Cagney <cagney@redhat.com>
6673
6674 * PROBLEMS: Add general section titles, remove references to
6675 specific releases.
6676
7a5ea0d4
DJ
66772004-03-25 Daniel Jacobowitz <drow@mvista.com>
6678
6679 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6680 INT_REGISTER_SIZE.
6681 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6682 FP_REGISTER_VIRTUAL_SIZE.
6683 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6684 of DEPRECATED_REGISTER_RAW_SIZE.
6685 (arm_register_type): Add gdbarch argument.
6686 (arm_register_raw_size, arm_register_virtual_size): Delete.
6687 (arm_register_byte, arm_extract_return_value)
6688 (arm_store_return_value, arm_get_longjmp_target): Update references
6689 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6690 (arm_gdbarch_init): Likewise. Don't set
6691 deprecated_register_raw_size, deprecated_register_virtual_size,
6692 deprecated_max_register_raw_size,
6693 deprecated_max_register_virtual_size, or
6694 deprecated_max_register_virtual_type. Do set register_type.
6695 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6696 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6697 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6698 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6699 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6700 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6701 INT_REGISTER_SIZE.
6702 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6703 (remote_rdp_store_register): Likewise.
6704
5792a79b
DJ
67052004-03-24 Daniel Jacobowitz <drow@mvista.com>
6706
6707 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6708 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6709 to after osabi initialization.
6710 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6711 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6712 functions.
6713 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6714 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6715 variables.
6716 (mips_linux_init_abi): Append signal trampoline unwinders.
6717
1196bfda
AC
67182004-03-24 Andrew Cagney <cagney@redhat.com>
6719
6720 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6721 * tramp-frame.c: Include "gdb_assert.h".
6722 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6723 correct sizeof.
6724 (tramp_frame_append): Validate the tramp frame's instructions.
6725 * Makefile.in (tramp-frame.o): Update dependencies.
6726
4be282b4
AC
67272004-03-23 Andrew Cagney <cagney@redhat.com>
6728
6729 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6730
69aec09b
AC
67312004-03-23 Andrew Cagney <cagney@redhat.com>
6732
6733 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6734 Nasser as past testsuite/lib/ (and other) maintainers.
6735
63ed89b4
DJ
67362004-03-23 Daniel Jacobowitz <drow@mvista.com>
6737
6738 * infcmd.c (attach_command): Reread symbols if we already have
6739 an exec file.
6740
f3b36427
AC
67412004-03-23 Andrew Cagney <cagney@redhat.com>
6742
6743 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6744
aa2a3f87
AC
67452004-03-23 Andrew Cagney <cagney@redhat.com>
6746
6747 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6748 * gdbarch.h, gdbarch.c: Re-generate.
6749 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6750 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6751 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 6752 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 6753 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 6754 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
6755 (DEPRECATED_SIGTRAMP_START): Update.
6756 * blockframe.c (find_pc_sect_partial_function): Update.
6757 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6758
00cac895
DJ
67592004-03-23 Daniel Jacobowitz <drow@mvista.com>
6760
6761 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6762 if necessary.
6763
f561f026
AC
67642004-03-23 Andrew Cagney <cagney@redhat.com>
6765
6766 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6767 predicate, deprecate.
6768 * gdbarch.h, gdbarch.c: Re-generate.
6769 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6770 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6771 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6772 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6773 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6774 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6775 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6776 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6777 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6778 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6779 * blockframe.c (find_pc_partial_function): Update.
6780 * breakpoint.c (bpstat_what): Update.
6781 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6782 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6783 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6784 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6785 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6786 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6787 * i386-nto-tdep.c (i386nto_init_abi): Update.
6788 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6789 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6790 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6791 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6792 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6793 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6794 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6795 * infrun.c (pc_in_sigtramp): Update.
6796 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6797 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6798 * mips-tdep.c (mips_gdbarch_init): Update.
6799 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6800 * ppc-linux-tdep.c: Update comment.
6801 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6802 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6803 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6804 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6805 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6806 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6807 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6808 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6809 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6810 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 6811
8050c72f
AC
68122004-03-23 Andrew Cagney <cagney@redhat.com>
6813
d2259dd3
AC
6814 * tramp-frame.h, tramp-frame.h: New files.
6815 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6816 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6817
8050c72f
AC
6818 * Makefile.in: Update all dependencies.
6819
0db9b4b7
AC
68202004-03-23 Andrew Cagney <cagney@redhat.com>
6821
6822 * Makefile.in (trad_frame_h): Add $(frame_h).
6823 * trad-frame.h: Update copyright. Include "frame.h".
6824 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6825 (trad_frame_set_id, trad_frame_get_id): Declare.
6826 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6827 * trad-frame.c: Update copyright.
6828 (struct trad_frame_cache): Define.
6829 (trad_frame_cache_zalloc): New function.
6830 (trad_frame_set_id, trad_frame_get_id): New functions.
6831 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 6832
8e645ae7
AC
68332004-03-22 Andrew Cagney <cagney@redhat.com>
6834
6835 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6836 s390_pltstub_unwind_cache.
6837 (s390_stub_frame_unwind_cache): Rename
6838 s390_pltstub_frame_unwind_cache.
6839 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6840 (s390_stub_frame_prev_register): Rename
6841 s390_pltstub_frame_prev_register.
6842 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6843 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6844
6845 From Ulrich Weigand:
6846 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6847 pointer calls like PLT calls.
6848
34fcf120
DJ
68492004-03-22 Daniel Jacobowitz <drow@mvista.com>
6850
6851 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6852 PC rather than the partial function start address. Use the start
6853 address to sanity check the found PDR.
6854
5b917078
DJ
68552004-03-22 Daniel Jacobowitz <drow@mvista.com>
6856
6857 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
6858 linux_handle_extended_wait.
6859
8adf9e78
AC
68602004-03-22 Andrew Cagney <cagney@redhat.com>
6861
c3122434
AC
6862 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
6863 function.
6864
8adf9e78
AC
6865 * frame.h (generic_pop_current_frame): Delete declaration.
6866 (deprecate_pop_dummy_frame): Deprecate
6867 generic_pop_dummy_frame.
6868 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
6869 (generic_pop_current_frame): Delete function.
6870 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
6871 generic_pop_current_frame.
6872 * v850-tdep.c (v850_pop_frame): Update.
6873 * mcore-tdep.c (mcore_pop_frame): Update.
6874 * sh64-tdep.c (sh64_pop_frame): Update.
6875 * h8300-tdep.c (h8300_pop_frame): Update.
6876
90ba813f
AC
68772004-03-22 Andrew Cagney <cagney@redhat.com>
6878
6879 * frame.h (deprecated_pc_in_call_dummy): Rename
6880 generic_pc_in_call_dummy.
6881 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
6882 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
6883 generic_pc_in_call_dummy.
6884 (pc_in_dummy_frame): Make static.
6885 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
6886 * gdbarch.h, gdbarch.c: Re-generate.
6887 * dummy-frame.c (dummy_frame_sniffer): Simplify.
6888 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
6889 (legacy_get_prev_frame): Ditto.
6890 * inferior.h: Delete reference to generic_pc_in_call_dummy in
6891 comment.
8718a420 6892
ca4bb888
AC
68932004-03-21 Andrew Cagney <cagney@redhat.com>
6894
244675f9
AC
6895 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
6896 declaration and out-of-date comment.
6897 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6898 Delete function.
6899 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
6900 deprecated_pc_in_call_dummy.
6901
ca4bb888
AC
6902 * infrun.c (handle_inferior_event): For non legacy frames, use the
6903 frame ID and frame type to identify a signal trampoline. Update
6904 comments.
6905
1777c7b4
NW
69062004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
6907
6908 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
6909 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
6910
82417da5
AC
69112004-03-21 Andrew Cagney <cagney@redhat.com>
6912
6913 * frame-unwind.h: Update copyright.
6914 (struct frame_data): Add opaque declaration.
6915 (frame_sniffer_ftype): Declare.
6916 (struct frame_unwind): Add "unwind_data" and "sniffer".
6917 (frame_unwind_register_unwinder): Declare.
6918 (frame_unwind_find_by_frame): Add parameter "this_cache".
6919 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
6920 (legacy_get_prev_frame, legacy_get_prev_frame)
6921 (get_frame_type): Pass the prologue_cache to
6922 frame_unwind_find_by_frame.
6923 * frame-unwind.c (struct frame_unwind_table_entry): Add field
6924 "unwinder".
6925 (frame_unwind_register_unwinder): New function.
6926 (frame_unwind_find_by_frame): Handle an unwind sniffer.
6927
b2ba182e
PH
69282004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
6929
6930 * bcache.c (print_percentage): Use floating point to avoid
6931 incorrect results when portion*100 overflows.
6932
81332287
KB
69332004-03-19 Kevin Buettner <kevinb@redhat.com>
6934
6935 * ppc_tdep.h (ppc_linux_frame_saved_pc)
6936 (ppc_linux_init_extra_frame_info)
6937 (ppc_linux_frameless_function_invocation)
6938 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
6939 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
6940 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
6941 (rs6000_frame_chain): Delete declarations.
6942 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
6943 (ppc_linux_init_extra_frame_info)
6944 (ppc_linux_frameless_function_invocation)
6945 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
6946 (ppc_linux_init_abi): Remove registration of above deleted functions.
6947 * rs6000-tdep.c (rs6000_init_extra_frame_info)
6948 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
6949 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
6950 (rs6000_pop_frame, rs6000_frameless_function_invocation)
6951 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
6952 (rs6000_gdbarch_init): Remove registration of above deleted functions.
6953 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
6954 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
6955 frame management for all OSABIs.
6956
61a65099
KB
69572004-03-19 Andrew Cagney <cagney@redhat.com>
6958
6959 Committed by Kevin Buettner <kevinb@redhat.com>.
6960
6961 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
6962 Update copyright.
6963 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
6964 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
6965 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
6966 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
6967 unwinders. #ifdef legacy frame code.
6968 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6969 "frame-base.h".
6970 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
6971 (struct rs6000_frame_cache, rs6000_frame_cache)
6972 (rs6000_frame_this_id, rs6000_frame_prev_register)
6973 (rs6000_frame_sniffer, rs6000_frame_unwind)
6974 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
6975 (rs6000_frame_base): Implement a traditional frame unwinder.
6976 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
6977 frame unwinder.
6978
88f7da05
KB
69792004-03-19 Kevin Buettner <kevinb@redhat.com>
6980
6981 * breakpoint.c (adjust_breakpoint_address): Don't adjust
6982 breakpoint address for watchpoints or the catch eventpoints.
6983 Add new paramter ``bptype''. Adjust all callers.
6984
f826dce1
AC
69852004-03-19 Andrew Cagney <cagney@redhat.com>
6986
33cb8b0f
AC
6987 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
6988
f826dce1
AC
6989 * PROBLEMS: Delete note that ARM does not use frame code, problem
6990 fixed.
6991
43b1ab88
AC
69922004-03-18 Andrew Cagney <cagney@redhat.com>
6993
292ab034
AC
6994 * stack.c (return_command): Delete code wrapped in #ifdef
6995 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
6996
43b1ab88
AC
6997 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
6998
dbfe4626
AC
69992004-03-18 Andrew Cagney <cagney@redhat.com>
7000
7001 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7002 DEPRECATED_IN_SIGTRAMP.
7003 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7004 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7005 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7006 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7007 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7008 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7009 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7010 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7011 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7012 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7013
0cad6aec
AC
70142004-03-18 Andrew Cagney <cagney@redhat.com>
7015
7016 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7017 (struct frame_base_table_entry): Define.
7018 (struct frame_base_table): Re-implement as a linked list.
7019 (frame_base_init): Re-implement.
7020 (frame_base_table): Delete function.
7021 (append_predicate): Delete function.
7022 (frame_base_append_sniffer): Update.
7023 (frame_base_set_default): Update.
7024 (frame_base_find_by_frame): Update.
7025 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7026 * Makefile.in (frame-base.o): Update dependencies.
7027
9982c2e7
AC
70282004-03-17 Andrew Cagney <cagney@redhat.com>
7029
7030 * frame.c (legacy_get_prev_frame): Pass correct frame to
7031 frame_unwind_find_by_frame.
7032
8dfe8985
DC
70332004-03-17 David Carlton <carlton@kealia.com>
7034
7035 * NEWS: Mention C++ nested types and namespaces
7036
ed47347a
MC
70372004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7038
7039 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7040 and "Regressions since gdb 5.3.". Add known regressions since
7041 gdb 6.0.
7042
90aeadfc
DC
70432004-03-16 David Carlton <carlton@kealia.com>
7044
7045 * dwarf2read.c (process_structure_scope): Process children even
7046 when we're a declaration.
7047
73912b9b
AC
70482004-03-16 Andrew Cagney <cagney@redhat.com>
7049
7050 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7051 * blockframe.c (find_pc_partial_function)
7052 (find_pc_sect_partial_function): Merge into a single
7053 find_pc_partial_function.
7054
283accbc
MK
70552004-03-16 Mark Kettenis <kettenis@gnu.org>
7056
7057 * i386bsd-nat.c: s/regno/regnum/g.
7058 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7059 FP0_REGNUM.
7060 (store_inferior_registers): Likewise.
7061
f5b1afdf
MK
70622004-03-16 Mark Kettenis <kettenis@gnu.org>
7063
7064 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7065 of i387_fill_fsave.
7066 (store_inferior_registers): Call i387_collect_fsave and
7067 i387_collect_fxsave instead of i387_fill_fsave and
7068 i387_fill_fxsave.
7069
41fe5eb3
AC
70702004-03-15 Andrew Cagney <cagney@redhat.com>
7071
7072 * Makefile.in (frame-unwind.o): Update dependencies.
7073 * frame-unwind.c: Include "gdb_obstack.h".
7074 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7075 parameter.
7076 (append_predicate): Delete function.
7077 (struct frame_unwind_table_entry): New structure.
7078 (struct frame_unwind_table): Replace "sniffer" with "head" and
7079 "tail".
7080 (frame_unwind_append_sniffer): Update.
7081 (frame_unwind_find_by_frame): Update.
7082 (_initialize_frame_unwind): Registe frame_unwind_init using
7083 gdbarch_data_register_pre_init.
7084
3f63813d
MK
70852004-03-15 Mark Kettenis <kettenis@gnu.org>
7086
7087 * i386bsd-nat.c: Update copyright year.
7088 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7089 define unconditionally.
7090
3248c325 70912004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
7092
7093 * i387-tdep.h (i387_collect_fsave): New prototype.
7094 * i387-tdep.c (i387_collect_fsave): New function containing most
7095 of the code from i387_fill_fsave.
3248c325 7096 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 7097
871fbe6a
MK
70982004-03-15 Mark Kettenis <kettenis@gnu.org>
7099
7100 * i386-linux-tdep.c: Update copyright year.
7101 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7102 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7103 svr4_ilp32_link_map_offsets instead of
7104 i386_linux_svr4_fetch_link_map_offsets.
7105
8176b9b8
DC
71062004-03-15 David Carlton <carlton@kealia.com>
7107
7108 Fix for PR c++/1553:
7109 * dwarf2read.c (read_structure_type): Determine type name by
7110 calling determine_class_name.
7111 (determine_class_name): New.
7112 (determine_prefix): Look at TYPE_TAG_NAME and call
7113 determine_class_name when appropriate.
7114 (determine_prefix_aux, class_name): Delete.
9d58e29d 7115 (read_namespace): Set die->type.
8176b9b8 7116
fe8bf7d7
KB
71172004-03-15 Kevin Buettner <kevinb@redhat.com>
7118
7119 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7120 unused macro definition. The definition in target.h (or perhaps
7121 elsewhere) takes precedence.
7122
ed6edd9b
AC
71232004-03-15 Andrew Cagney <cagney@redhat.com>
7124
f9be684a
AC
7125 * ppc-tdep.h: Update copyright.
7126 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7127 function signatures to match "regsets.h".
7128 * ppc-linux-tdep.c: Include "regset.h".
7129 (ELF_GREGSET_SIZE): Delete.
7130 (right_supply_register): New function.
7131 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7132 using right_supply_register.
7133 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7134 functions.
7135 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7136 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7137 (_initialize_ppc_linux_tdep): Do not register
7138 ppc_linux_regset_core_fns.
7139 (ppc_linux_regset_from_core_section): Replace
7140 fetch_core_registers.
7141 (ppc_linux_regset_core_fns): Delete.
7142 * ppc-linux-nat.c: (right_fill_reg): New function.
7143 (supply_gregset): Update call to ppc_linux_supply_gregset.
7144 (fill_gregset): Clear the register set, use right_fill_reg.
7145 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7146 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7147
ed6edd9b
AC
7148 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7149 unsigned.
7150
030f20e1
AC
71512004-03-15 Andrew Cagney <cagney@redhat.com>
7152
7153 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7154 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7155 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7156 and register_gdbarch_data.
7157 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7158 (struct gdbarch_data): Replace "init" by "pre_init" and
7159 "post_init".
7160 * gdbarch.h, gdbarch.c: Re-generate.
7161 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7162 with"obstack", use OBSTACK_ZALLOC.
7163 (dwarf2_frame_ops): Delete.
7164 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7165 (dwarf2_frame_init_reg): Use gdbarch_data.
7166 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 7167 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
7168 (_initialize_svr4_solib): Update.
7169 * user-regs.c (_initialize_user_regs): Update.
7170 * reggroups.c (_initialize_reggroup): Update.
7171 * regcache.c (_initialize_regcache): Update.
7172 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7173 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7174 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7175 * frame-unwind.c (_initialize_frame_unwind): Update.
7176 * frame-base.c (_initialize_frame_base): Update.
7177 * user-regs.c (user_reg_add): Update.
7178 * reggroups.c (reggroup_add): Update.
7179 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7180 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7181 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7182 * frame-base.c (frame_base_table): Update.
7183 * remote.c (_initialize_remote): Update.
7184 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 7185
3111a3fc
AC
71862004-03-15 Andrew Cagney <cagney@redhat.com>
7187
7188 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7189
5ecb7103
KB
71902004-03-15 Kevin Buettner <kevinb@redhat.com>
7191
7192 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7193 * frv-linux-tdep.c: New file.
7194 * frv-tdep.c (struct gdbarch_tdep): Add new field
7195 ``sigcontext_reg_addr''.
7196 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7197 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7198 (frv_sigramp_frame_sniffer): New functions.
7199 (frv_sigtramp_frame_unwind): New static global.
7200 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7201 sniffers.
7202 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7203 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7204
1ccda5e9
KB
72052004-03-15 Kevin Buettner <kevinb@redhat.com>
7206
7207 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7208 but not via a call to error(), when unable to read memory.
7209
b375a0a5
KB
72102004-03-15 Kevin Buettner <kevinb@redhat.com>
7211
7212 * frv-tdep.c (frv_call_dummy_words): Delete.
7213 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7214
4fdf6121
AC
72152004-03-15 Andrew Cagney <cagney@redhat.com>
7216
7217 * infrun.c (handle_step_into_function, step_over_function): Only
7218 update and use STEP_FRAME_ID when the system is using legacy
7219 frames. Update comments.
7220
34021503
MK
72212004-03-14 Mark Kettenis <kettenis@gnu.org>
7222
187e21d1
MK
7223 * amd64-linux-tdep.h: Remove file.
7224 * amd64-linux-tdep.c: Don't include "inferior.h" and
7225 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7226 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7227 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7228 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7229 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7230 macros.
7231 (user_to_gdb_regmap): Remove variable.
7232 (amd64_linux_gregset_reg_offset): New variable.
7233 (amd64_core_fns): Remove variable.
7234 (fetch_core_registers): Remove function.
7235 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7236 functions.
7237 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7238 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7239 * Makefile.in (amd64_linux_tdep_h): Remove.
7240 (amd64-linux-nat.o): Update dependencies.
7241 (amd64-linux-tdep.o): Update dependencies.
7242
99679982
MK
7243 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7244 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7245 functions.
7246 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7247
34021503
MK
7248 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7249 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7250
134d01f1
DJ
72512004-03-14 Daniel Jacobowitz <drow@mvista.com>
7252
7253 * dwarf2read.c (read_structure_type): Rename from
8718a420 7254 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
7255 Return immediately if die->type is set. Call read_type_die before
7256 dwarf2_add_member_fn.
7257 (process_structure_scope): New function.
7258 (read_enumeration_type, process_enumeration_scope): New functions,
7259 broken out from read_enumeration. Don't create the enumeration
7260 type if it has already been created.
7261 (read_enumeration): Removed.
7262 (process_die): Call read_structure_type, process_structure_scope,
7263 read_enumeration_type, and process_enumeration_scope. Just call
7264 new_symbol for base and subrange types. Add a comment about other
7265 type dies.
7266 (read_type_die): Call read_enumeration_type.
7267 (add_partial_structure, new_symbol): Update comments.
7268
65760afb
SC
72692004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7270
7271 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7272
10f59415
SC
72732004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7274
7275 * tui/tui-win.h (tui_get_cmd_list): Declare.
7276 * tui/tui-win.c (tui_command): New function.
7277 (tui_get_cmd_list): New function.
7278 (_initialize_tui_win): Moved initialization of tui command in
7279 tui_get_cmd_list.
7280
7281 * tui/tui-data.c (init_content_element): Setup new data members.
7282 (init_win_info): Likewise.
7283 (free_content_elements): Free it.
7284 * tui/tui-data.h (struct tui_data_element): Store the register
7285 content to print.
7286 (struct tui_data_info): Keep the current register group.
7287
7288 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7289
7290 * tui/tui-regs.h (tui_show_registers): Update prototype.
7291 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7292 (tui_resize_all): No need to calculate anything for register window.
7293 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7294 (tui_set_register_element, tui_set_general_regs_content): Remove.
7295 (tui_set_special_regs_content): Remove.
7296 (tui_set_general_and_special_regs_content): Remove.
7297 (tui_set_float_regs_content): Remove.
7298 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7299 (tui_set_regs_content): Remove.
7300 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7301 (tui_v_show_registers_command_support): Remove.
7302 (tui_show_registers): Use a reggroup to specify the registers to show.
7303 (tui_show_register_group): New function.
7304 (tui_display_registers_from): Compute the layout of register window
7305 and refresh with new API; be sure to delete old register windows.
7306 (tui_check_register_values): Update to use tui_get_register and
7307 tui_display_data.
7308 (tui_display_register): Just refresh the register window part.
7309 (tui_register_format): Format registers and save in tui_data_element.
7310 (tui_get_register): New to combine tui_reg_value_has_changed and
7311 tui_get_register_raw_value; fix to use the new gdb API.
7312 (tui_show_float_command): Renamed tui_reg_float_command.
7313 (tui_show_general_command): Renamed tui_reg_general_command.
7314 (tui_show_special_command): Renamed tui_reg_system_command.
7315 (_initialize_tui_regs): Remove unused commands.
7316
c3364ea4
MK
73172004-03-13 Mark Kettenis <kettenis@gnu.org>
7318
27d1e716
MK
7319 * NEWS (New native configurations): Mention OpenBSD/amd64.
7320
c3364ea4
MK
7321 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7322 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7323 Remove defines.
7324 * config/i386/nm-fbsd64.h: Likewise.
7325 * config/i386/nm-obsd.h: Likewise.
7326 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7327 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7328
b2d6d697
KB
73292004-03-12 Kevin Buettner <kevinb@redhat.com>
7330
7331 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
7332 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7333 New constants.
7334
76e43199
KB
7335 From Richard Sandiford <rsandifo@redhat.com>:
7336 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7337
34ce532e
KB
73382004-03-12 Kevin Buettner <kevinb@redhat.com>
7339
7340 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7341 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7342 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7343 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7344 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7345 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7346 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7347 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7348 definitions from frv-tdep.c to frv-tdep.h.
7349
c4d10515
KB
73502004-03-12 Kevin Buettner <kevinb@redhat.com>
7351
7352 Add shared library support for FR-V FDPIC ABI:
7353 * Makefile.in (solib-frv.o): Add dependencies.
7354 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7355 New functions.
7356 (frv_push_dummy_call): Add support for FDPIC ABI.
7357 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7358 for FDPIC ABI.
7359 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7360 (frv_fdpic_find_canonical_descriptor): Declare.
7361 * solib-frv.c: New file.
7362 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7363 * config/frv/tm-frv.h (solib.h): Include.
7364
ed1bd989
KB
73652004-03-12 Kevin Buettner <kevinb@redhat.com>
7366
7367 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7368 (frv-tdep.o): Update dependencies.
7369 * frv-tdep.h: New file.
7370 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7371 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7372 constants.
7373 (struct gdbarch_tdep): Add new member ``frv_abi''.
7374 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7375 functions.
7376 (new_variant): Set ``frv_abi'' field.
7377 (gdb_arch_init): Detect FDPIC executables.
7378
82b38f72
MK
73792004-03-12 Mark Kettenis <kettenis@gnu.org>
7380
7381 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7382 wrapper.
7383
db1ea9ba
AC
73842004-03-11 Andrew Cagney <cagney@redhat.com>
7385
7386 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7387
f8766ec1
KB
73882004-03-11 Kevin Buettner <kevinb@redhat.com>
7389
7390 * solist.h (master_so_list): New function.
7391 * solib.c (master_so_list): Likewise.
7392 * solib-svr4.c (enable_break): Iterate over so_list entries
7393 obtained from master list instead of entries obtained directly
7394 via svr4_current_sos().
7395
523f6a27
BE
73962004-03-10 Ben Elliston <bje@gnu.org>
7397
7398 * MAINTAINERS: Update my mail address.
7399
37814c18
KI
74002004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7401
7402 * remote-m32r-sdi.c: Support hardware watchpoint.
7403
8b9740d8
DJ
74042004-03-09 Daniel Jacobowitz <drow@mvista.com>
7405
7406 * user-regs.c: Update copyright years.
7407 (struct user_regs): Rename to gdb_user_regs.
7408 (append_user_reg, builtin_user_regs, user_regs_init)
7409 (user_reg_add, user_reg_map_name_to_regnum)
7410 (usernum_to_user_reg): Update.
7411
4bb7a0a7
DJ
74122004-03-09 Daniel Jacobowitz <drow@mvista.com>
7413
7414 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7415 (skip_children): New functions.
7416 (locate_pdi_sibling): Call skip_children.
7417
44e1a9eb
DJ
74182004-03-09 Daniel Jacobowitz <drow@mvista.com>
7419
7420 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7421 * gdbtypes.c (check_typedef): Update comments.
7422
f3dd6933
DJ
74232004-03-09 Daniel Jacobowitz <drow@mvista.com>
7424
7425 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7426 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7427 pointer. Update comment about comp_unit_head.
7428 (struct abbrev_info): Shorten two int flags.
7429 (dwarf_alloc_abbrev): Take a CU argument.
7430 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7431 each time through the loop. Update cleanup argument.
7432 (psymtab_to_symtab_1): Update cleanup call.
7433 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7434 abbrev_obstack.
7435 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7436 Just call obstack_free and clear the pointer.
7437
b40c7d58
DJ
74382004-03-09 Daniel Jacobowitz <drow@mvista.com>
7439
7440 * infrun.c (handle_inferior_event): Remove short-circuit code for
7441 events in a different thread.
7442
333dabeb
DJ
74432004-03-09 Daniel Jacobowitz <drow@mvista.com>
7444
7445 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7446 print the whole transfer.
7447 (initialize_targets): Update description of "set debug target".
7448
aa17d93e
DJ
74492004-03-09 Daniel Jacobowitz <drow@mvista.com>
7450
7451 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7452
0b71f08f
NW
74532004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7454
7455 * MAINTAINERS (write after approval): Add myself.
7456
3930f270
CV
74572004-03-08 Corinna Vinschen <vinschen@redhat.com>
7458
7459 * sh-tdep.c (sh_print_registers_info): Use for loop.
7460 Don't skip multiple registers when a float register is encountered.
7461
a2b4a96c
CV
74622004-03-08 Corinna Vinschen <vinschen@redhat.com>
7463
7464 Fix PR tdep/1291.
7465 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7466 to official SH documentation.
7467
f15a4bc0
AC
74682004-03-07 Andrew Cagney <cagney@redhat.com>
7469
7470 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7471 unused function.
7472
9498281f
DJ
74732004-03-07 Daniel Jacobowitz <drow@mvista.com>
7474
7475 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7476 (arm_get_next_pc): Handle BX and BLX.
7477
449e1137
AC
74782004-03-07 Andrew Cagney <cagney@redhat.com>
7479
eded0a31
AC
7480 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7481 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7482 HPPA_SP_REGNUM.
7483 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7484 (hppa_target_read_fp): Delete.
7485 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7486 register_virtual_size, max_register_raw_size,
7487 max_register_virtual_size, register_byte, register_size,
7488 target_read_fp, fp_regnum, and register_bytes. Set register_type
7489 instead of register_virtual_type.
7490 (hppa32_register_type, hppa64_register_type): Replace
7491 hppa32_register_virtual_type and hppa64_register_virtual_type.
7492 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7493 (HPPA_FP_REGNUM): Define.
7494
f5f907e2
AC
7495 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7496
69b4bbe4
AC
7497 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7498 (pa_do_registers_info): Delete.
7499 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 7500 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 7501 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 7502
78161e48
AC
7503 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7504 GDB_TARGET_IS_HPPA code.
7505 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 7506 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
7507 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7508 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
7509 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7510 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7511 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 7512 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
7513 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7514 (hppa_frameless_function_invocation, hppa64_store_return_value)
7515 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 7516 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 7517 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 7518 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
7519 (find_proc_framesize, deposit_21, restore_pc_queue)
7520 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 7521 (rp_saved, pc_in_linker_stub): Delete.
78161e48 7522
782eae8b
AC
7523 Unconditionally enable 64-bit frame and ABI code.
7524 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7525 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7526 push_dummy_frame, fix_call_dummy, push_arguments,
7527 call_dummy_location, extract_return_value, use_struct_convention,
7528 store_return_value, store_struct_return, saved_pc_after_call,
7529 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7530 frame_chain, frame_chain_valid, frameless_function_invocation,
7531 frame_saved_pc, and pop_frame.
78161e48 7532
449e1137
AC
7533 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7534 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7535 (hppa_gdbarch_init): Do not set PC_REGNUM.
7536
12507572
MK
75372004-03-06 Mark Kettenis <kettenis@gnu.org>
7538
7539 * config/alpha/tm-fbsd.h: Remove file.
7540 * config/alpha/fbsd.mt: Tweak comment.
7541 (TM_FILE): Set to tm-alpha.h.
7542
c107cc1b
AC
75432004-03-05 Andrew Cagney <cagney@redhat.com>
7544
7545 * infrun.c (step_over_function): When non-legacy code, and no
7546 step_frame_id, use the unwinder to get the caller's frame ID.
7547
f2e7c15d
MK
75482004-03-05 Mark Kettenis <kettenis@gnu.org>
7549
8b0c3633
MK
7550 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7551 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7552 bfd_arch_unknown. Adjust comment.
7553
f2e7c15d
MK
7554 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7555 * i386obsd-tdep.c: Correct spelling in comment.
7556 * i386nbsd-tdep.c: Correct spelling in comment.
7557 * sparc-tdep.c: Correct spelling in comments.
7558
1198ecbe
DC
75592004-03-05 David Carlton <carlton@kealia.com>
7560
7561 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7562 bug.
7563
9eb42ed1
MK
75642004-03-05 Mark Kettenis <kettenis@gnu.org>
7565
7566 * sparc-tdep.c: Fix typo in comment.
7567
52b5e991
JB
75682004-03-04 J. Brobecker <brobecker@gnat.com>
7569
7570 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7571
d8151005
DJ
75722004-03-04 Daniel Jacobowitz <drow@mvista.com>
7573
7574 * dwarf2read.c: Add comment describing memory lifetimes.
7575 (struct dwarf2_pinfo): Update comment.
7576 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7577 (read_enumeration, new_symbol): Don't use obsavestring.
7578
cbeae229
MK
75792004-03-04 Mark Kettenis <kettenis@gnu.org>
7580
722d18c2
MK
7581 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7582 instead of amd64_fill_fxsave.
7583 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7584 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7585
cbeae229
MK
7586 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7587 Reorganize code a bit.
7588
b4206d25
OF
75892004-03-04 Orjan Friberg <orjanf@axis.com>
7590
7591 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
7592 when the frame pointer is pushed. Don't set the frame pointer's
7593 address on the stack unless it's actually located there.
b4206d25
OF
7594 Set the SRP's address on the stack correctly when the PC is still in
7595 the prologue.
7596 (cris_return_value): New function.
7597 (cris_gdbarch_init): Clear deprecated store_return_value,
7598 extract_return_value.
7599
49b0b195
JB
76002004-03-02 Jim Blandy <jimb@redhat.com>
7601
7602 * stabsread.c (reg_value_complaint): The maximum register number
7603 is one less than the number of registers.
7604
e9ff708b
AC
76052004-03-02 Andrew Cagney <cagney@redhat.com>
7606
7607 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7608 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7609 trailing comma and redundant assignment of I386_ST0_REGNUM.
7610 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7611 32-bit segment registers.
7612
d4715e41
AC
76132004-03-01 Andrew Cagney <cagney@redhat.com>
7614
7615 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7616 use frame_relative_level and get_next_frame.
7617
3ce2bf18
AC
76182004-02-29 Andrew Cagney <cagney@redhat.com>
7619
7620 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7621 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7622 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7623 Delete macro.
7624
2da6aac3
DJ
76252004-02-29 Daniel Jacobowitz <drow@mvista.com>
7626
7627 * inflow.c (terminal_inferior): Don't give up the terminal if we
7628 previously couldn't get the inferior's terminal state.
7629
6ba34a8d
DJ
76302004-02-29 Daniel Jacobowitz <drow@mvista.com>
7631
7632 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7633 PC_REGNUM.
7634
faae5abe
AC
76352004-02-28 Andrew Cagney <cagney@redhat.com>
7636
7637 * NEWS: Refer to GDB 6.1.
7638 * README: Refer to GDB 6.1.
7639 * PROBLEMS: Refer to GDB 6.1.
7640
2227a3c5
DJ
76412004-02-28 Daniel Jacobowitz <drow@mvista.com>
7642
7643 * thread-db.c (disable_thread_signals): Remove unused function.
7644
80571bff
MK
76452004-02-28 Mark Kettenis <kettenis@gnu.org>
7646
041bd74b
MK
7647 * amd64-nat.c: Include "gdb_string.h".
7648 (amd64_collect_native_gregset): Zero-extend the 32-bit
7649 general-purpose registers and %eip.
7650
3c017e40
MK
7651 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7652 * amd64-tdep.c (amd64_collect_fxsave): New function.
7653 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7654
80571bff
MK
7655 * i387-tdep.h: Update copyright year.
7656 (i387_collect_fxsave): New prototype.
7657 * i387-tdep.c: Update copyright year.
7658 (i387_collect_fxsave): New function containing most of the code
7659 from i387_fill_fxsave.
7660 (i387_fill_fxsave): Call i387_collect_fxsave.
7661
50d71875
AC
76622004-02-28 Andrew Cagney <cagney@redhat.com>
7663
7664 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7665 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7666
4a28816e
MK
76672004-02-28 Mark Kettenis <kettenis@gnu.org>
7668
7669 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7670
dbda9972
AC
76712004-02-28 Andrew Cagney <cagney@redhat.com>
7672
7673 * utils.c: Use "", instead of <>, to include readline.
7674 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7675 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7676 * source.c, solib.c, exec.c, event-top.c: Ditto.
7677 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7678 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7679 * Makefile.in: Update all dependencies.
7680 (readline_tilde_h, readline_history_h): Define.
7681 (readline_headers): Delete.
7682
83277a99
MK
76832004-02-28 Mark Kettenis <kettenis@gnu.org>
7684
91ae4303
MK
7685 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7686 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7687 "config/i386/tm-lx64.h".
7688
83277a99
MK
7689 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7690 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7691 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7692
6e1d7d6c
AC
76932004-02-28 Andrew Cagney <cagney@redhat.com>
7694
ecc9ac84
AC
7695 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7696
6e1d7d6c
AC
7697 * breakpoint.c (_initialize_breakpoint): Use
7698 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7699 Add help to show command.
7700
9671aeef
MK
77012004-02-28 Mark Kettenis <kettenis@gnu.org>
7702
7fa2737c
MK
7703 * i386-nat.c: Reformat to be closer to coding standards.
7704 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7705 `retval'. Make variables `align' and `size' local to while-loop.
7706 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7707 (_initialize_i386_nat): New prototype.
7708
9671aeef
MK
7709 * tui/tui.c: Include <readline/readline.h> instead of
7710 "readline/readline.h". Include it after <term.h> and
7711 "gdb_curses.h".
7712
fca7aa43
AC
77132004-02-27 Andrew Cagney <cagney@redhat.com>
7714
412275d5
AC
7715 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7716 the new frame unwind code.
7717 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7718 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7719 PCOQ_HEAD_REGNUM.
7720
fca7aa43
AC
7721 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7722 "return_value" and "push_dummy_call".
7723 (hppa32_use_struct_convention): Delete unused function.
7724 (hppa32_store_return_value): Delete unused function.
7725 (hppa32_extract_return_value): Delete unused function.
7726 (hppa32_stack_align): Delete function.
7727
e6a8a7d2
EZ
77282004-02-27 Eli Zaretskii <eliz@elta.co.il>
7729
7730 * coffread.c (enter_linenos): Don't let rawptr reference memory
7731 outside linetab[]'s limits.
7732
1797a8f6
AC
77332004-02-27 Andrew Cagney <cagney@redhat.com>
7734
7735 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7736 inferior stack space - the stack needs to grow upwards.
7737 (hppa32_frame_align): New function.
7738 (hppa64_frame_align): Replace hppa_frame_align.
7739 (hppa_gdbarch_init): Update.
7740
2e4b5889
OF
77412004-02-26 Orjan Friberg <orjanf@axis.com>
7742
7743 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7744 (dwarf2-frame.h): Include.
7745 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7746 Remove static variables related to ABI setting.
7747 (struct gdbarch_tdep): Remove cris_abi member.
7748 (struct frame_extra_info): Remove.
7749 (cris_unwind_cache, stack_item): New structs.
7750 (cris_frame_unwind, cris_frame_base): New variables.
7751 (push_stack_item, pop_stack_item)
7752 (cris_frame_unwind_cache, cris_frame_this_id)
7753 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7754 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7755 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7756 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7757 (cris_reg_struct_has_addr): New functions.
7758 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 7759 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
7760 (cris_store_struct_return, cris_frameless_function_invocation)
7761 (cris_pop_frame, cris_skip_prologue_main)
7762 (cris_abi_original_store_return_value)
7763 (cris_abi_v2_store_return_value)
7764 (cris_abi_original_extract_return_value)
7765 (cris_abi_v2_extract_return_value)
7766 (cris_abi_original_reg_struct_has_addr)
7767 (cris_abi_v2_reg_struct_has_addr)
7768 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7769 (cris_push_return_address, cris_abi_update): Remove.
7770 (_initialize_cris_tdep): Remove ABI command.
7771 (cris_dump_tdep): Ditto.
8718a420 7772 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
7773 Set store_return_value, extract_return_value, push_dummy_code,
7774 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7775 frame_unwind_append_sniffer, frame_base_set_default.
7776 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7777 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7778 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 7779 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
7780 init_extra_frame_info, frameless_function_invocation, frame_chain,
7781 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7782 dummy_write_sp.
8718a420 7783
6b9acc27
JJ
77842004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7785
7786 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7787 * valprint.c (print_hex_chars): Change from static to external.
7788 (print_char_chars): New function.
7789 * printcmd.c (print_scalar_formatted): For integer and enum types
7790 that are longer than LONGEST, perform processing via appropriate
7791 print_*_chars routines.
7792
a431654a
AC
77932004-02-26 Andrew Cagney <cagney@redhat.com>
7794
7795 * Makefile.in: Update dependencies.
7796 Changes from Ulrich Weigand,
7797 * s390-tdep.c: Include "dwarf2-frame.h".
7798 (s390_dwarf2_frame_init_reg): New function.
7799 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7800 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7801
fa8d40ab
JJ
78022004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7803
7804 * breakpoint.c (pending_break_support): New setting variable.
7805 (break_command_1): Account for pending_break_support setting
7806 when creating pending breakpoints.
7807 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7808 (_initialize_breakpoint): Add "set breakpoint pending" and
7809 "show breakpoint pending" commands.
7810
0dcd613f
AC
78112004-02-26 Andrew Cagney <cagney@redhat.com>
7812
7813 Fix PR i18n/1570.
7814 * charset.c (backslashable, backslashed, represented): Remove 'e'
7815 from list of escaped characters, not part of ISO-C.
7816
479272a3
JB
78172004-02-25 J. Brobecker <brobecker@gnat.com>
7818
7819 From Peter Schauer <schauer@pdf.de>:
7820 * tui/tui.c: Move system header includes after local includes.
7821 Fixes a build failure on solaris systems.
7822
7613d933
JB
78232004-02-25 J. Brobecker <brobecker@gnat.com>
7824
7825 * configure.in: Refine the previous change.
7826 * configure: Regenerate.
7827
9c1488cb
MK
78282004-02-25 Mark Kettenis <kettenis@gnu.org>
7829
7830 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7831 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7832 "amd64-tdep.h" instead of "x86-64-tdep.h".
7833 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7834 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7835 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7836 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7837 and "x86-64-tdep.c".
7838 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7839 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7840 and "x86-64-tdep.c".
7841 * amd64bsd-nat.c: Update copyright year.
7842 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7843 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7844 "x86-64-tdep.h".
7845 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7846 "x86-64-tdep.h".
7847 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7848 "x86-64-tdep.h".
7849 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7850 "x86-64-tdep.h".
7851 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7852 "x86-64-tdep.h".
7853 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7854 "x86-64-tdep.h".
8718a420 7855 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
7856 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
7857 * Makefile.in (amd64_linux_tdep_h): Renamed from
7858 x86_64_linux_tdep_h.
7859 (amd64_tdep_h): Renamed from x86_64_tdep_h.
7860 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
7861 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
7862 (amd64obsd-tdep.o): Update dependencies.
7863 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
7864 dependencies.
7865 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
7866 dependencies.
7867 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
7868 amd64-linux-nat.c amd64-linux-tdep.c.
7869 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
7870 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
7871 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
7872 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
7873 amd64-tdep.o and amd64-linux-tdep.o.
7874 (TM_FILE): Set to tm-linux64.h.
7875 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
7876 (NAT_FILE): Set to nm-linux64.h.
7877 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
7878 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7879 amd64-tdep.o.
7880 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7881 amd64-tdep.o.
7882 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7883 amd64-tdep.o.
7884
4b8dad4a
RM
78852004-02-25 Roland McGrath <roland@redhat.com>
7886
7887 * remote.c (remote_protocol_qPart_auxv): New variable.
7888 (init_all_packet_configs): Initialize it.
7889 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
7890 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
7891 (show_remote_cmd): Call it.
7892 (_initialize_remote): Initialize commands.
7893 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
7894 service TARGET_OBJECT_AUXV requests.
7895
66745969
JB
78962004-02-25 J. Brobecker <brobecker@gnat.com>
7897
7898 * configure.in: Make sure that the wborder function is available.
7899 Otherwise, search for it in the cur_colr library.
7900 * configure: Regenerate.
7901
79508e1e
AC
79022004-02-25 Andrew Cagney <cagney@redhat.com>
7903
7904 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
7905
571ee600
MK
79062004-02-25 Mark Kettenis <kettenis@gnu.org>
7907
7908 * config/i386/tm-x86-64linux.h: Tweak comments.
7909
2b1b322f 79102004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
7911
7912 * MAINTAINERS: Add self to write-after-approval list.
7913
4d2acc65
AC
79142004-02-25 Andrew Cagney <cagney@redhat.com>
7915
4b8dad4a 7916 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
7917 * cli/cli-script.c (execute_control_command): Unconditionally
7918 install a cleanup. Default "ret" to "invalid_control". Use
7919 "break" instead of "return" to escape from the switch.
7920
4cfcaf21
JB
79212004-02-24 J. Brobecker <brobecker@gnat.com>
7922
7923 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
7924 with the lines macro defined in term.h on AiX.
7925 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
7926 a collision with the label_width macro defined in term.h on AiX.
7927
54a5c8d8
KB
79282004-02-23 David Mosberger <davidm@hpl.hp.com>
7929
7930 Committed by Kevin Buettner <kevinb@redhat.com>.
7931
7932 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
7933 * ia64-tdep.c (ia64_write_pc): Make it a global function.
7934 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
7935 instead of ia64_write_pc().
7936 * ia64-linux-tdep.c (regcache.h): Include.
7937 (ia64_linux_write_pc): New function.
4b8dad4a 7938
8a1dac83
RM
79392004-02-23 Roland McGrath <roland@redhat.com>
7940
7941 * auxv.c (info_auxv_command): Fix typos in error messages.
7942
90f90721
MK
79432004-02-23 Mark Kettenis <kettenis@gnu.org>
7944
8a1dac83 7945 * x86-64-tdep.h: Tweak comment.
90f90721
MK
7946 (enum amd64_regnum): New.
7947 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
7948 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
7949 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
7950 (X86_64_XMM1_REGNUM): Removed.
7951 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
7952 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
7953 prototypes for renamed functions.
7954 * x86-64-tdep.c: Fix typo.
7955 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
7956 register numbers.
7957 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
7958 Use constants from `enum amd64_regnum' for register numbers.
7959 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
7960 (amd64_analyze_prologue, amd64_frame_cache,
7961 amd64_sigtramp_frame_cache): Use constants from `enum
7962 amd64_regnum' for register numbers.
7963 (amd64_supply_fpregset): Adjust for renamed functions.
7964 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
7965 `enum amd64_regnum' for register numbers.
7966 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
7967 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
7968 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
7969 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
7970 (amd64_linux_fill_gregset): Adjust for renamed macros.
7971 (fetch_core_registers): Adjust for renamed functions.
7972 (amd64_linux_init_abi): Adjust for renamed functions.
7973 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
7974 renamed functions.
7975 * amd64-nat.c: Adjust for renamed macros.
7976 * amd64bsd-nat.c (fetch_inferior_registers)
7977 (store_inferior_registers): Use constants from `enum amd64_regnum'
7978 for register numbers. Adjust for renamed variables.
7979 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
7980 renamed variables.
7981 (_initialize_amd64fbsd_nat): Use constants from `enum
7982 amd64_regnum' for register numbers.
7983 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
7984 `enum amd64_regnum' for register numbers.
7985 (amd64fbsd_init_abi): Adjust for renamed functions.
7986 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
7987 `enum amd64_regnum' for register numbers.
7988 (amd64nbsd_init_abi): Adjust for renamed functions.
7989 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
7990 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
7991 `enum amd64_regnum' for register numbers.
7992 (amd64obsd_init_abi): Adjust for renamed functions.
7993 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
7994
d5479188
JJ
79952004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7996
7997 * breakpoint.c (print_one_breakpoint): Do not output spaces
7998 after printing <PENDING> for a pending breakpoint.
7999
81cb7cc9
JJ
80002004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8001
8002 * printcmd.c (print_scalar_formatted): Initialize val_long
8003 to remove compiler warning message.
8004
cbdeadca
JJ
80052004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8006
8007 * defs.h (nquery, yquery): New prototypes.
8008 * breakpoint.c (break_command_1): Use new nquery interface.
8009 * utils.c (defaulted_query, nquery, yquery): New functions.
8010
da6bab63
AC
80112004-02-23 Andrew Cagney <cagney@redhat.com>
8012
2f690297
AC
8013 * hppa-tdep.c (hppa_frame_align): New function.
8014 (hppa32_push_dummy_call): New function.
8015 (hppa64_push_dummy_call): New function.
8016 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8017 disabled.
8a1dac83 8018
da6bab63
AC
8019 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8020 FIX_CALL_DUMMY when push_dummy_call is available.
8021 (call_function_by_hand, push_dummy_code): Ditto.
8022
abf9b42d
AC
80232004-02-22 Andrew Cagney <cagney@redhat.com>
8024
8025 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8026 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8027 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8028 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8029 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8030 call_dummy_location to ON_STACK.
8031
10fc94a4
MK
80322004-02-22 Mark Kettenis <kettenis@gnu.org>
8033
51433e4b
MK
8034 * x86-64-linux-tdep.c: Tweak comment.
8035 (amd64_linux_supply_gregset): Renamed from
8036 x86_64_linux_supply_gresget.
8037 (amd64_linux_fill_gregset): Renamed from
8038 x86_64_linux_fill_gregset.
8039 (fetch_core_registers): Adjust for renamed functions.
8040 (amd64_core_fns): Renamed from x86_64_core_fns.
8041 (amd64_linux_sigtramp_start): Renamed from
8042 x86_64_linux_sigtramp_start.
8043 (amd64_linux_pc_in_sigtramp): Renamed from
8044 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8045 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8046 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8047 (amd64_linux_sigcontext_addr): Renamed from
8048 x86_64_linux_sigcontext_addr.
8049 (amd64_linux_sc_reg_offset): Renamed from
8050 x86_64_linux_sc_reg_offset.
8051 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8052 Adjust for renamed functions and variables.
8053 (_initialize_amd64_linux_tdep): Renamed from
8054 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8055 variables.
8056 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8057 Adjust for renamed functions.
8058
430eaf2e
MK
8059 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8060 from x86_64_linux_gregset64_reg_offset.
8061 (amd64_linux_gregset32_reg_offset): Rename from
8062 x86_64_linux_gregset64_reg_offset.
8063 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8064 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8065 (amd64_linux_dr_set_control): Renamed from
8066 x86_64_linux_dr_set_control. Adjust for renamed functions.
8067 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8068 Adjust for renamed functions.
8069 (amd64_linux_dr_reset_addr): Renamed from
8070 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8071 (amd64_linux_dr_get_status): Renamed from
8072 x86_64_linux_dr_get_status. Adjust for renamed functions.
8073 (_initialize_amd64_linux_nat): Renamed from
8074 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8075 functions.
8076 * config/i386/nm-x86-64linux.h: Update copyright year.
8077 Adjust for renamed functions.
8078
10fc94a4
MK
8079 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8080 amd64fbsd_sigtramp_start.
8081 (amd64fbsd_sigtramp_end_addr): Renamed from
8082 amd64fbsd_sigtramp_end.
8083 (amd64fbsd_init_abi): Adjust for renamed variables.
8084 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8085 variables.
8086 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8087 amd64fbsd_sigtramp_start.
8088 (amd64fbsd_sigtramp_end_addr): Renamed from
8089 amd64fbsd_sigtramp_end.
8090
343af405
AC
80912004-02-22 Andrew Cagney <cagney@redhat.com>
8092
537987fc
AC
8093 * hppa-tdep.c (hppa32_return_value): New function.
8094 (hppa64_return_value): New function.
8095 (hppa_gdbarch_init): Set return_value; keep disabled.
8096
fad850b2
AC
8097 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8098 struct-return and inferior function call methods.
8099
26d08f08
AC
8100 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8101 "frame-base.h".
8102 (struct hppa_frame_cache): Define.
8103 (hppa_frame_cache, hppa_frame_this_id): New functions.
8104 (hppa_frame_prev_register): New function.
8105 (hppa_frame_unwind, hppa_frame_base): New variables.
8106 (hppa_frame_unwind_sniffer): New function.
8107 (hppa_frame_base_address, hppa_unwind_pc): New function.
8108 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8109 sniffer, and frame base sniffer; keep disabled.
8110 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8111 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8112
e7d7bd65
AC
8113 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8114 to predicates for "seriously old code".
8115
e963316f
AC
8116 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8117 runtime if(0).
8118
56132691
AC
8119 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8120 unsigned.
8121 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 8122
343af405
AC
8123 * config/pa/tm-hppa.h: Update copyright.
8124 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8125 (deprecated_init_frame_pc_default): Delete declaration.
8126 (hppa_frame_init_saved_regs): Delete declaration.
8127 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8128 * hppa-tdep.c: Include "arch-utils.h".
8129 (hppa_gdbarch_init): Set deprecated init_frame_pc
8130 and deprecated frame_init_saved_regs.
8131 (hppa_frame_init_saved_regs): Make static.
8132
f5859b4d
MK
81332004-02-22 Mark Kettenis <kettenis@gnu.org>
8134
86f6f8e7 8135 Remove old 386BSD support.
cf7c5c23 8136 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
8137 * configure.host: Remove i[34567]86-*-bsd*.
8138 * configure.tgt: Remove i[34567]86-*-bsd*.
8139 * i386b-nat.c: Removed.
8140 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
8141 (i386b-nat.o): Remove dependencies.
8142
86f6f8e7
MK
8143 * config/i386/i386bsd.mh: Removed.
8144 * config/i386/i386bsd.mt: Removed.
8145 * config/i386/nm-i386bsd.h: Removed.
8146 * config/i386/tm-i386bsd.h: Removed.
8147 * config/i386/xm-i386bsd.h: Removed.
8148
971218cd
MK
8149 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8150
7e654c37
MK
8151 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8152 (amd64fbsd_init_abi): Set link map offsets.
8153 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8154 (amd64nbsd_init_abi): Set link map offsets.
8155 * amd64obsd-tdep.c: Include "solib-svr4.h".
8156 (amd64obsd_init_abi): Set link map offsets.
8157 * i386fbsd-tdep.c: Include "solib-svr4.h".
8158 (i386fbsd_init_abi): Set link map offsets.
8159 * i386nbsd-tdep.c: Include "solib-svr4.h".
8160 (i386nbsdelf_init_abi): Set link map offsets.
8161 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8162 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8163 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8164 solib-legacy.o and core-aout.o. Reformat.
8165 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8166 solib-svr4.o, solib-legacy.o. Reformat.
8167 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8168 * config/i386/nbsdelf.mh: Reformat.
8169 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8170 solib-svr4.o, solib-legacy.o and corelow.o.
8171 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8172 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8173 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8174 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8175 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8176 (TM_FILE): Set to tm-fbsd.h.
8177 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8178 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8179 solib-svr4.o.
8180 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8181 solib-svr4.o.
8182 (TM_FILE): Set to nm-nbsd.h.
8183 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8184 Simplify shared library support. Don't include "elf/common.h".
8185 (SVR4_SHARED_LIBS): Don't define.
8186 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8187 "solib.h".
8188 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8189 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8190 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8191 Don't include "i386/tm-i386.h". Include "solib.h".
8192 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8193 Don't include "i386/tm-i386.h".
8194 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8195 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8196 Include "i386/xm-i386.h".
8197 (HOST_LONG_DOUBLE_FORMAT): Remove.
8198
5d93ae8c
MK
8199 Fix OpenBSD/i386 sigtramp recognition.
8200 * i386-tdep.h: Update copyright year.
8201 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8202 (i386bsd_sigtramp_end): New prototypes.
8203 (i386fbsd_sigtramp_start_addr): Renamed from
8204 i386fbsd_sigtramp_start.
8205 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8206 (i386obsd_sigtramp_start_addr): Renamed from
8207 i386obsd_sigtramp_start.
8208 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8209 * i386bsd-tdep.c: Update copyright year.
8210 (i386bsd_pc_in_sigtramp): Make public.
8211 * i386fbsd-nat.c: Update copyright year.
8212 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8213 * i386fbsd-tdep.c: Update copyright year.
8214 (i386fbsd_sigtramp_start_addr): Renamed from
8215 i386fbsd_sigtramp_start.
8216 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8217 (i386fbsdaout_init_abi): Adjust for renamed variables.
8218 * i386obsd-nat.c: Update copyright year.
8219 (_initialize_i386obsd_nat): Adjust for renamed variables.
8220 * i386obsd-tdep.c: Include "target.h".
8221 (i386obsd_page_size): New variable.
8222 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8223 (i386obsd_sigtramp_end): New functions.
8224 (i386obsd_sigtramp_start_addr): Renamed from
8225 i386obsd_sigtramp_start.
8226 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8227 (i386obsd_init_abi): Adjust for renamed variables. Set
8228 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8229 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8230
84d04465
MK
8231 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8232 trampoline change in OpenBSD kernel.
8233
b053aceb
MK
8234 * amd64-nat.c: Update copyright year.
8235 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8236 architecture from REGCACHE.
8237
f5859b4d
MK
8238 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8239 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8240
e4bbbda8
MK
82412004-02-21 Mark Kettenis <kettenis@gnu.org>
8242
ba361932
MK
8243 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8244 i[34567]86-*-openbsd3.[0-3].
8245 * config/i386/obsdaout.mh: New file.
8246
d3e48264
MK
8247 * config/i386/obsd.mh (MH_FLAGS): Remove.
8248
60a6eeb6
MK
8249 Fix PR build/1549.
8250 * i386obsd-tdep.c: Update copyright years. Include
8251 "solib-svr4.h".
8252 (i386obsd_init_abi): Don't set regset_from_core_section here.
8253 (i386obsd_aout_init_abi): New function. Set
8254 regset_from_core_section here.
8255 (i386obsd_elf_init_abi): New function.
8256 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8257 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8258 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8259 (TM_FILE): Set to tm-nbsd.h.
8260
8261 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8262 solib-sunos.o.
8263
e4bbbda8
MK
8264 * solib-svr4.h: Update copyright year.
8265 (svr4_ilp32_fetch_link_map_offsets)
8266 (svr4_lp64_fetch_link_map_offsets): New prototype.
8267 * solib-svr4.c: Update copyright year.
8268 (svr4_ilp32_fetch_link_map_offsets)
8269 (svr4_lp64_fetch_link_map_offsets): New function.
8270
f6fe98ef
DJ
82712004-02-20 Daniel Jacobowitz <drow@mvista.com>
8272
8273 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8274 to the partial symbol table.
8275
589ca796
JB
82762004-02-20 J. brobecker <brobecker@gnat.com>
8277
8278 * PROBLEMS: Add description of problem documented under gdb/1560.
8279
2031c21a
MK
82802004-02-20 Mark Kettenis <kettenis@gnu.org>
8281
30b344b1
MK
8282 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8283 comments.
8284 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8285 functions.
8286 (amd64obsd_init_abi): Reorder initializations. Use
8287 amd64obsd_r_reg_offset to initialize the general-purpose register
8288 set details. Set regset_from_core_section.
8289 (_initialize_amd64obsd_tdep): Rename from
8290 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8291 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8292 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8293
2031c21a
MK
8294 * NEWS (New native configurations): Mention OpenBSD/alpha.
8295 * configure.tgt: Add alpha*-*-openbsd*.
8296 * configure.host: Add alpha*-*-openbsd*.
8297 * alphanbsd-tdep.c: Update copyright year.
8298 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8299
42471775
AC
83002004-02-20 Andrew Cagney <cagney@redhat.com>
8301
8302 Fix PR tdep/1372.
8303 * configure.tgt: Delete target "none-*-*".
8304 * configure.host: Delete host "none-*-*".
8305 * config/none/none.mh: Delete file.
8306 * config/none/none.mt: Delete file.
8307 * config/none/xm-none.h: Delete file.
8308 * config/none/tm-none.h: Delete file.
8309 * config/none/nm-none.h: Delete file.
8310
960ccd7d
FF
83112004-02-19 Fred Fish <fnf@redhat.com>
8312
8313 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8314 cache->uses_fp prior to setting it.
8315
5f883edd
FF
83162004-02-19 Fred Fish <fnf@redhat.com>
8317
8318 Fix for PR breakpoint/1558.
8319 * sh-tdep.c (IS_JSR): New macro.
8320 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8321
f98c22d5
JB
83222004-02-19 Jim Blandy <jimb@redhat.com>
8323
8324 * findvar.c (value_from_register): Doc fix.
8325
95051d27
JJ
83262004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8327
8328 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8329 type being greater than sizeof of host's LONGEST. Always use
8330 unpack_long() unless format 'f' chosen.
8331
ccefbec3
EZ
83322004-02-19 Joel Brobecker <brobecker@gnat.com>
8333
8334 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 8335
ccefbec3
EZ
8336 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8337 contains a symbol wich is the best, non-exact match for the given
8338 pc. Update comments.
8339
83402004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8341
2ede629f
EZ
8342 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8343 macro, which was part of the now removed Mach 3 port.
8344 * utils.c (request_quit): Ditto.
8345
567ee972
MK
83462004-02-18 Mark Kettenis <kettenis@gnu.org>
8347
8348 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8349 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8350
50cca7bb
MK
83512004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8352
8353 Committed by Mark Kettenis <kettenis@gnu.org>.
8354
8355 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8356 Define.
8357
226361c4
AC
83582004-02-18 Andrew Cagney <cagney@redhat.com>
8359
8360 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8361 CONFIG_INSTALL and CONFIG_UNINSTALL.
8362 * configure: Re-generate.
8363 * interps.h (INTERP_TUI): Define.
8364 * Makefile.in: Update dependencies.
8365 (TUI): New macro.
8366 (tui-main.o): Specify dependencies.
8367 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8368 * tui/tui-main.c: New file.
8369
49cfa46f
MK
83702004-02-18 Mark Kettenis <kettenis@gnu.org>
8371
e2879ccb
MK
8372 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8373 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8374 dependencies.
8375 * configure.host: Add x86_64-*-openbsd*.
8376 * configure.tgt: Add x86_64-*-openbsd*.
8377 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8378
c43f4bec
MK
8379 * tui/tui.c: Don't include <malloc.h>.
8380
09ae75b6
MK
8381 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8382 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8383 amd64nbsd-tdep.c.
8384
49cfa46f 8385 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 8386 static. Remove extraneous whitespace.
49cfa46f
MK
8387 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8388 static.
8389
05957fdb
JB
83902004-02-17 Jim Blandy <jimb@redhat.com>
8391
8392 * findvar.c (value_from_register): Doc fix.
8393
d0f54f9d
JB
83942004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8395
8396 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 8397
8a1dac83 8398 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
8399 CORE_ADDR as type for selectors. Correct types for GNU run time
8400 message lookup function to use double indirection.
8401 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8402 * objc-lang.h (lookup_child_selector): Adapt prototype.
8403
9cbd5950
JB
8404 * s390-nat.c (SUBOFF): New macro.
8405 (supply_gregset, fill_gregset): Use it to handle debugging
8406 of 32-bit exectuables running under a 64-bit kernel.
8407 * s390-tdep.c: Include "solib-svr4.h".
8408 (s390_svr4_fetch_link_map_offset): New function.
8409 (s390x_svr_fetch_link_map_offset): Likewise.
8410 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8411 * Makefile.in (s390-tdep.o): Update dependencies.
8412
a8c99f38
JB
8413 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8414 "frame-unwind.h".
8415 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8416 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8417 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8418 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8419 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8420 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 8421 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
8422 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8423 (struct frame_extra_info): Remove.
8424 (s390_memset_extra_info): Remove.
f73b1eff
JB
8425 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8426 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8427 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
8428 (is_rse): Renamed to ...
8429 (is_rsy): ... this. Support long displacements.
8430 (is_rxe): Renamed to ...
8431 (is_rxy): ... this. Support long displacements.
8432 (compute_x_addr): Support long displacements.
8433 (struct s390_prologue_data): New data type.
8434 (s390_on_stack): Change API to use struct s390_prologue_data.
8435 (s390_store): Reimplement.
8436 (s390_load): New function.
8437 (s390_get_signal_frame_info): Remove.
8438 (s390_get_frame_info): Remove, replace by ...
8439 (s390_analyze_prolog): ... this new function.
8440 (s390_check_function_end): Remove.
8441 (s390_function_start): Remove.
8442 (s390_frameless_function_invokation): Remove.
8443 (s390_is_sigreturn): Remove.
8444 (s390_init_frame_pc_first): Remove.
8445 (s390_init_frame_extra_info): Remove.
8446 (s390_frame_init_saved_regs): Remove.
8447 (s390_frame_saved_pc_nofix): Remove.
8448 (s390_frame_saved_pc): Remove.
8449 (s390_frame_chain): Remove.
8450 (s390_fp_regnum, s390_read_fp): Remove.
8451 (s390_pop_frame_regular, s390_pop_frame): Remove.
8452 (s390_saved_pc_after_call): Remove.
8453 (s390_skip_prologue): Reimplement.
8454 (s390_in_function_epilogue_p): Support long displacements.
8455 (struct s390_unwind_cache): New data structure.
8456 (s390_frame_unwind_cache): New function.
8457 (s390_prologue_frame_unwind_cache): Likewise.
8458 (s390_backchain_frame_unwind_cache): Likewise.
8459 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8460 (s390_frame_unwind): Define.
8461 (s390_frame_sniffer): New function.
8462 (struct s390_pltstub_unwind_cache): New data structure.
8463 (s390_pltstub_frame_unwind_cache): New function.
8464 (s390_pltstub_frame_this_id): Likewise.
8465 (s390_pltstub_frame_prev_register): Likewise.
8466 (s390_pltstub_frame_unwind): Define.
8467 (s390_pltstub_frame_sniffer): New function.
8468 (struct s390_sigtramp_unwind_cache): New data structure.
8469 (s390_sigtramp_frame_unwind_cache): New function.
8470 (s390_sigtramp_frame_this_id): Likewise.
8471 (s390_sigtramp_frame_prev_register): Likewise.
8472 (s390_sigtramp_frame_unwind): Define.
8473 (s390_sigtramp_frame_sniffer): New function.
8474 (s390_frame_base_address, s390_local_base_address): New functions.
8475 (s390_frame_base): Define.
8476 (s390_unwind_pc, s390_unwind_sp): New function.
8477 (s390_push_dummy_call): Use new frame base location.
8478 (s390_unwind_dummy_id): Likewise.
8479 (s390_gdbarch_init): Remove calls to:
8480 set_gdbarch_frameless_function_invocation,
8481 set_gdbarch_deprecated_init_frame_pc,
8482 set_gdbarch_deprecated_frame_chain,
8483 set_gdbarch_deprecated_frame_init_saved_regs,
8484 set_gdbarch_deprecated_pop_frame,
8485 set_gdbarch_deprecated_init_extra_frame_info,
8486 set_gdbarch_deprecated_init_frame_pc_first,
8487 set_gdbarch_deprecated_target_read_fp,
8488 set_gdbarch_deprecated_frame_saved_pc,
8489 set_gdbarch_deprecated_saved_pc_after_call,
8490 set_gdbarch_deprecated_fp_regnum.
8491 Add calls to:
8492 set_gdbarch_in_solib_call_trampoline,
8493 frame_unwind_append_sniffer,
8494 frame_base_set_default,
8495 set_gdbarch_unwind_pc,
8496 set_gdbarch_unwind_sp.
8497 * Makefile.in (s390-tdep.o): Update dependencies.
8498
b0cf273e
JB
8499 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8500 (S390_STACK_FRAME_OVERHEAD): Remove.
8501 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8502 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8503 (s390_promote_integer_argument): Remove.
8504 (s390_cannot_extract_struct_value_address): Remove.
8505 (s390_use_struct_convention, s390_store_struct_return): Remove.
8506 (s390_extract_return_value, s390_store_return_value): Remove.
8507 (s390_return_value_convention, s390_return_value): New functions.
8508 (is_float_singleton): Handle typedefs.
8a1dac83 8509 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
8510 Remove, replace by ...
8511 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8512 s390_function_arg_integer): ... these new functions.
8513 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8514 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8515 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8516 Fill in tdep->abi.
8517 Remove calls to:
8518 set_gdbarch_deprecated_store_struct_return,
8519 set_gdbarch_deprecated_extract_return_value,
8520 set_gdbarch_deprecated_store_return_value,
8521 set_gdbarch_use_struct_convention,
8522 set_gdbarch_extract_struct_value_address,
8523 set_gdbarch_deprecated_pc_in_call_dummy,
8524 set_gdbarch_deprecated_push_arguments,
8525 set_gdbarch_deprecated_save_dummy_frame_tos,
8526 set_gdbarch_deprecated_push_return_address,
8527 set_gdbarch_deprecated_sizeof_call_dummy_words,
8528 set_gdbarch_deprecated_call_dummy_words,
8529 set_gdbarch_deprecated_dummy_write_sp.
8530 Add calls to:
8531 set_gdbarch_push_dummy_call,
8532 set_gdbarch_unwind_dummy_id,
8533 set_gdbarch_return_value.
8a1dac83 8534
e1457d83
JB
8535 * config/s390/nm-linux.h: Update comments.
8536 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8537 (STOPPED_BY_WATCHPOINT): Redefine.
8538 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8539 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8540 (s390_stopped_by_watchpoint): Likewise.
8541 (watch_area_cnt): Remove.
8542 * s390-nat.c: Update comments.
8543 (watch_area): Remove typedef.
8544 Global replace watch_area by struct watch_area.
8545 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 8546 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
8547 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8548 (s390_fix_watch_points): Remove pid argument,
8549 use s390_inferior_tid. Recompute area spanned by watchpoints.
8550 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8551 argument. Reimplement.
8552
d0f54f9d
JB
8553 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8554 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8555 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 8556 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
8557 core-regset.o.
8558 * config/s390/s390x.mt: Remove.
8559 * config/s390/tm-s390.h: Remove.
8560 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8561 (TARGET_ELF64): Remove.
8562 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8563 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8564 s390*-*-* case; always set gdb_target to s390.
8565 * regformats/reg-s390.dat: Remove control registers.
8566 * regformats/reg-s390x.dat: Likewise.
8567 * s390-tdep.h: New file.
8a1dac83 8568 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
8569 Include "inferior.h" and "s390-tdep.h".
8570 Remove private definition of offsetof.
8571 (s390_register_u_addr): Remove.
8572 (regmap_gregset, regmap_fpregset): Define.
8573 (supply_gregset, fill_gregset): Reimplement.
8574 (supply_fpregset, fill_fpregset): Likewise.
8575 (s390_inferior_tid): New function.
8576 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8577 (fetch_inferior_registers, store_inferior_registers): Likewise.
8578 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8579 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8580 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8581 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8582 (struct gdbarch_tdep): Define.
8583 (struct s390_register_info): Define.
8584 (s390_register_info): New variable.
8585 (s390_register_name): Reimplement.
8586 (s390_register_type): New function.
8587 (s390_register_raw_size, s390x_register_raw_size): Remove.
8588 (s390_cannot_fetch_register): Remove.
8589 (s390_register_byte): Remove.
8590 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8591 (s390_dwarf_regmap): New variable.
8592 (s390_dwarf_reg_to_regnum): New function.
8593 (s390_stab_reg_to_regnum): Remove.
8594 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8595 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8596 (s390_convert_register_p): Likewise.
8597 (s390_register_to_value, s390_value_to_register): Likewise.
8598 (s390_register_reggroup_p): Likewise.
8599 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8600 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8601 (s390_supply_regset, s390_regset_from_core_section): New functions.
8602 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8603 (S390_FPR_SIZE): Likewise.
8604 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8605 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8606 (S390_NUM_GPRS): Move here from tm-s390.h.
8607 (S390_NUM_FPRS): Likewise.
8608 (s390_in_function_epilogue_p): New function.
8609 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8610 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8611 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8612 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8613 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8614 Remove calls to:
8615 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
8616 set_gdbarch_deprecated_max_register_virtual_size,
8617 set_gdbarch_deprecated_register_byte,
d0f54f9d 8618 set_gdbarch_cannot_fetch_register,
8a1dac83 8619 set_gdbarch_cannot_store_register,
d0f54f9d
JB
8620 set_gdbarch_deprecated_register_size,
8621 set_gdbarch_deprecated_register_raw_size,
8622 set_gdbarch_deprecated_register_virtual_size,
8623 set_gdbarch_deprecated_register_virtual_type,
8624 set_gdbarch_deprecated_register_bytes.
8625 Add calls to:
8626 set_gdbarch_num_pseudo_regs,
8627 set_gdbarch_register_type,
8628 set_gdbarch_convert_register_p,
8629 set_gdbarch_register_to_value,
8630 set_gdbarch_value_to_register,
8631 set_gdbarch_register_reggroup_p,
8632 set_gdbarch_regset_from_core_section,
8633 set_gdbarch_pseudo_register_read,
8634 set_gdbarch_pseudo_register_write,
8635 set_gdbarch_in_function_epilogue_p.
8636 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8637 (s390_tdep_h): New variable.
8638
8cfe231d
JB
86392004-02-17 Jim Blandy <jimb@redhat.com>
8640
4589a601
JB
8641 * findvar.c (value_from_register): If the type has no length, just
8642 return an acceptable value --- don't report an internal error.
8643
8cfe231d
JB
8644 * stabsread.c (read_type): If we find any type numbers that are
8645 forward references, complain if the references aren't resolved by
8646 the time we're finished reading.
8647 (cleanup_undefined_types): Make error message more appropriate for
8648 a complaint.
8649
5bf0017e
EZ
86502004-02-17 Elena Zannoni <ezannoni@redhat.com>
8651
9d62932d
EZ
8652 * Makefile.in (defs_h): Remove dependency on progress_h.
8653 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8654 progress.h.
8655 * main.c (captured_main): Delete use of START_PROGRESS and
8656 END_PROGRESS.
8657
86582004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8659
5bf0017e
EZ
8660 * objfiles.c (terminate_minimal_symbol_table): Add back
8661 initialization of MSYMBOL_TYPE.
8662
9fc9f5e2
AC
86632004-02-17 David Mosberger <davidm@hpl.hp.com>
8664
8665 Committed by Andrew Cagney.
8666 * Makefile.in (ia64_tdep_h): New macro.
8667 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8668 (ia64-tdep.o): Likewise.
8669 * ia64-tdep.h: New file.
8670 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8671 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8672 (ia64_aix_sigcontext_register_address): Likewise.
8673 (ia64_linux_getunwind_table): Delete declaration.
8674 * ia64-linux-tdep.c: Likewise.
8675
76cd2bd9
CV
86762004-02-17 Corinna Vinschen <vinschen@redhat.com>
8677
8678 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8679 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8680 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8681
634aa483
AC
86822004-02-17 Andrew Cagney <cagney@redhat.com>
8683
8684 * symtab.c (skip_prologue_using_sal): New function.
8685 * symtab.h (skip_prologue_using_sal): Declare.
8686 * frv-tdep.c: Include "symtab.h".
8687 (skip_prologue_using_sal): Delete function.
8688 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8689 * rs6000-tdep.c (refine_prologue_limit): Mention
8690 skip_prologue_using_sal.
8691 * ia64-tdep.c (refine_prologue_limit): Ditto.
8692 * Makefile.in: Update dependencies.
8693
86942004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 8695
39ce7b3f
AC
8696 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8697 START_INFERIOR_TRAPS_EXPECTED.
8698 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8699 START_INFERIOR_TRAPS_EXPECTED.
8700 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8701 Delete macro.
8702 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8703 macro, moved to "nm-osf.h". Update copyright.
8704 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8705 update copyright.
8706
19772a2c
AC
8707 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8708 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8709 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8710 frameless_look_for_prologue.
8711 * frame.h (legacy_frameless_look_for_prologue): Rename
8712 frameless_look_for_prologue.
8713 * gdbarch.h, gdbarch.c: Re-generate.
8714 * sh64-tdep.c (sh64_gdbarch_init): Update.
8715 * sh-tdep.c (sh_gdbarch_init): Update.
8716 * s390-tdep.c (s390_gdbarch_init): Update.
8717 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8718 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8719 * m68k-tdep.c (m68k_gdbarch_init): Update.
8720 (delta68_frame_args_address): Update.
8721 * m32r-tdep.c (m32r_gdbarch_init): Update.
8722 * hppa-tdep.c (hppa_gdbarch_init): Update.
8723 * h8300-tdep.c (h8300_gdbarch_init): Update.
8724 * frv-tdep.c (frv_gdbarch_init): Update.
8725 (frv_frameless_function_invocation): Update.
8726 * cris-tdep.c (cris_gdbarch_init): Update.
8727 (cris_frameless_function_invocation): Update.
8728 * avr-tdep.c (avr_gdbarch_init): Update.
8729 * arm-tdep.c (arm_gdbarch_init): Update.
8730 * stack.c (frame_info): Update, call predicate.
8731 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8732 * frame.c (legacy_get_prev_frame): Update, call predicate..
8733 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8734 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8735 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8736 invocation.
8737 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8738 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8739 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
8740
8741 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8742 function.
8743
7dcaac91
DJ
87442004-02-16 Daniel Jacobowitz <drow@mvista.com>
8745
8746 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8747 initializations.
8748
88289b6e
AC
87492004-02-16 Andrew Cagney <cagney@redhat.com>
8750
8751 * tui/tui-windata.c: Include "gdb_string.h".
8752 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8753 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8754 * Makefile.in: Update dependencies.
8755
9f976b41
DJ
87562004-02-16 Daniel Jacobowitz <drow@mvista.com>
8757
8758 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8759 * infrun.c: Include "gdb_assert.h".
8760 (singlestep_ptid, saved_singlestep_ptid)
8761 (stepping_past_singlestep_breakpoint): New variables.
8762 (resume): Set singlestep_ptid. Check for singlestep thread
8763 hop.
8764 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8765 (handle_inferior_event): Handle singlestep thread hop.
8766
c324d747
AC
87672004-02-16 Andrew Cagney <cagney@redhat.com>
8768
f090b9b1
AC
8769 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8770 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8771 (dwarf2_frame_init_reg): Ditto.
8772
fd33e6cb
AC
8773 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8774 suggested by Joshua Neuheisel
8775
c324d747
AC
8776 * configure.in: Always check for curses, including pdcurses.
8777 Warn, instead of error, when no curses are found. Enable TUI when
8778 curses is available.
8779 * configure: Re-generate.
8780
b66ba949
CV
87812004-02-16 Corinna Vinschen <vinschen@redhat.com>
8782
8783 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8784 sh_sh4_register_convert_to_virtual.
8785 (sh_register_convert_to_raw): Rename from
8786 sh_sh4_register_convert_to_raw.
8787 (sh_pseudo_register_read): Accomodate above name change.
8788 (sh_pseudo_register_write): Ditto.
8789
b58cbbf2
CV
87902004-02-16 Corinna Vinschen <vinschen@redhat.com>
8791
8792 * sh-tdep.c (sh_generic_register_name): Remove.
8793 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8794
5929a910
AC
87952004-02-15 Andrew Cagney <cagney@redhat.com>
8796
4566dfcf
AC
8797 * configure.in (build_warnings): Add -Wunused-function.
8798 * configure: Re-generate.
8799
db11ed55
AC
8800 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8801 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8802
46ac7a5d
AC
8803 * procfs.c (procfs_init_inferior): Assume that
8804 START_INFERIOR_TRAPS_EXPECTED is defined.
8805 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8806 * config/ns32k/tm-nbsd.h: Delete file,
8807 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8808
ba801595
AC
8809 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8810 * config/vax/tm-vax.h: Delete file.
8811
5929a910
AC
8812 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8813 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8814 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8815 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8816 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8817 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8818 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8819
8f22cb90
MK
88202004-02-15 Mark Kettenis <kettenis@gnu.org>
8821
8822 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8823 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8824 (struct dwarf2_frame_ops): New.
8825 (dwarf2_frame_default_init_reg): New function, based on
8826 dwarf2_frame_init_reg.
8827 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8828 (dwarf2_frame_init_reg): Call architecture-specific function.
8829 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8830 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8831 instead of dwarf2_frame_data.
8832 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8833 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8834
8132723e
AC
88352004-02-15 Andrew Cagney <cagney@redhat.com>
8836
046a4708
AC
8837 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8838 register_gdbarch_swap.
8839 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8840 * f-lang.c (_initialize_f_language): Update, use
8841 DEPRECATED_REGISTER_GDBARCH_SWAP.
8842 * remote.c (_initialize_remote): Ditto.
8843 * regcache.c (_initialize_regcache): Ditto.
8844 * parse.c (_initialize_parse): Ditto.
8845 * infrun.c (_initialize_infrun): Ditto.
8846 * mi/mi-main.c (_initialize_mi_main): Ditto.
8847 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 8848
549c1eea
AC
8849 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8850 poking .cacheable directly.
8851 * symfile.c (symfile_bfd_open): Ditto.
8852
0c0b39de
AC
8853 * Makefile.in: Update all dependencies.
8854
8132723e
AC
8855 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
8856 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
8857 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
8858 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
8859 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 8860
b9d26eb9
AC
88612004-02-14 Andrew Cagney <cagney@redhat.com>
8862
8e1f669a
AC
8863 * arch-utils.c (legacy_convert_register_p): Check
8864 DEPRECATED_REGISTER_CONVERTIBLE_P.
8865 * findvar.c (value_of_register): Ditto.
8866
cd0bfa36
AC
8867 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
8868 * gdbarch.h, gdbarch.c: Re-generate.
8869 * arch-utils.c (deprecated_register_convertible_not): Delete.
8870 * arch-utils.h (deprecated_register_convertible_not): Delete.
8871 * mi/mi-main.c (get_register): Update. Update copyright.
8872 * infcmd.c (default_print_registers_info): Update.
8873
b9d26eb9
AC
8874 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8875 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
8876 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 8877 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
8878 * frame.c (deprecated_get_next_frame_hack): Delete function.
8879 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
8880 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8881 Update.
8882 * infcall.c (call_function_by_hand): Update.
8883
9ab9195f
EZ
88842004-02-14 Elena Zannoni <ezannoni@redhat.com>
8885
8886 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 8887 from here...
9ab9195f
EZ
8888 * objfiles.c (init_entry_point_info, entry_point_address):..to
8889 here.
8890 * symfile.h (init_entry_point_info, entry_point_address): Remove
8891 prototypes.
8892 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 8893 prototypes.
9ab9195f
EZ
8894 * cris-tdep.c: Remove include of symfile.h. Add include of
8895 objfiles.h.
8896 * infcall.c: Ditto.
8897 * mcore-tdep.c: Ditto.
8898 * mn10300-tdep.c: Ditto.
8899 * sh64-tdep.c: Ditto.
8900 * v850-tdep.c: Ditto.
8901 * arm-tdep.c: Remove include of symfile.h.
8902 * blockframe.c: Ditto.
8903 * coffread.c: Ditto.
8904 * dbxread.c: Ditto.
8905 * dwarf2read.c: Ditto.
8906 * dwarfread.c: Ditto.
8a1dac83 8907 * frv-tdep.c: Ditto.
9ab9195f
EZ
8908 * ia64-tdep.c: Ditto.
8909 * mdebugread.c: Ditto.
8910 * mipsread.c: Ditto.
8a1dac83 8911 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
8912 * s390-tdep.c: Ditto.
8913 * sh-tdep.c: Ditto.
8a1dac83 8914 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
8915 * gdbarch.sh: Remove include of symfile.h.
8916 * gdbarch.c: Regenerate.
8917 * solib-irix.c (enable_break): Use entry_point_address().
8918 Add comment about include file.
8919 * xcoffread.c: Add comment about include file.
8a1dac83
RM
8920 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
8921 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
8922 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
8923 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
8924 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
8925
c4c5b7ba
AC
89262004-02-13 Andrew Cagney <cagney@redhat.com>
8927
8928 * corelow.c (core_xfer_partial): Use "struct bfd_section".
8929 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
8930 copyright.
8931 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
8932
3e7879de
FF
89332004-02-12 Fred Fish <fnf@redhat.com>
8934
8935 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
8936 set_gdbarch_store_return_value.
8937
6a7760b6
AC
89382004-02-12 Andrew Cagney <cagney@redhat.com>
8939
8940 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
8941 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
8942 (interrupt_query): Ditto.
8943 (ofunc): Delete unused variable.
8944 * cris-tdep.c (cris_abi): Delete unused function.
8945 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
8946 (cris_get_wide_opcode, cris_get_short_size): Ditto.
8947 (cris_get_asr_quick_shift_steps): Ditto.
8948 (cris_skip_prologue_frameless_p): Ditto.
8949 * arm-tdep.c (arm_push_return_address): Delete unused function.
8950 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
8951 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
8952 * s390-tdep.c (s390_function_start): Delete unused function.
8953
31687c3c
AC
89542004-02-12 Andrew Cagney <cagney@redhat.com>
8955
8956 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
8957 gdbarch.h, gdbarch.c: Re-generate.
8958 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
8959 to generic_prologue_frameless_p.
8960 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
8961 * arch-utils.c (generic_prologue_frameless_p): Delete function.
8962
6de918a6
DJ
89632004-02-11 Daniel Jacobowitz <drow@mvista.com>
8964
8965 * mips-linux-tdep.c: Include "frame.h".
8966 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
8967 (mips_linux_skip_resolver): New functions.
8968 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
8969 and set_gdbarch_in_solib_call_trampoline.
8970 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
8971 to after set_gdbarch_in_solib_return_trampoline. Only set the
8972 solib hooks to mips16 functions if the OS ABI is unknown.
8973 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
8974 including "config/tm-linux.h".
8975 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
8976 * Makefile.in (mips-linux-tdep.o): Update.
8977
87b3ede8
DC
89782004-02-11 David Carlton <carlton@kealia.com>
8979
8980 * linespec.c (decode_compound): Only look for a class symbol when
8981 considering all but the rightmost component.
8982
5979bc46
AC
89832004-02-11 Andrew Cagney <cagney@redhat.com>
8984
8985 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
8986 abi code are are separatly grouped.
8987
5867a2fb
AC
89882004-02-11 Andrew Cagney <cagney@redhat.com>
8989
8990 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
8991 * gdbarch.h, gdbarch.c: Re-generate.
8992 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8993 * v850-tdep.c (v850_gdbarch_init): Update.
8994 * sh64-tdep.c (sh64_gdbarch_init): Update.
8995 * sh-tdep.c (sh_gdbarch_init): Update.
8996 * s390-tdep.c (s390_gdbarch_init): Update.
8997 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8998 * mips-tdep.c (mips_gdbarch_init): Update.
8999 * mcore-tdep.c (mcore_gdbarch_init): Update.
9000 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9001 * m32r-tdep.c (m32r_gdbarch_init): Update.
9002 * ia64-tdep.c (ia64_gdbarch_init): Update.
9003 * hppa-tdep.c (hppa_gdbarch_init): Update.
9004 * h8300-tdep.c (h8300_gdbarch_init): Update.
9005 * frv-tdep.c (frv_gdbarch_init): Update.
9006 * d10v-tdep.c (d10v_gdbarch_init): Update.
9007 * cris-tdep.c (cris_gdbarch_init): Update.
9008 * avr-tdep.c (avr_gdbarch_init): Update.
9009 * arm-tdep.c (arm_gdbarch_init): Update.
9010 * alpha-tdep.c (alpha_gdbarch_init): Update.
9011
026a72f8
CV
90122004-02-11 Corinna Vinschen <vinschen@redhat.com>
9013
9014 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9015 comma.
9016 (sh_sh4al_dsp_register_name): Ditto.
9017
3903d437
AC
90182004-02-10 Andrew Cagney <cagney@redhat.com>
9019
9020 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9021 (mips_init_frame_pc_first): Delete function.
9022 (mips_frame_saved_pc): Delete function.
9023 (mips_frame_chain): Delete function.
9024 (mips_init_extra_frame_info): Delete function.
9025 (mips_xfer_register): Delete unused variable "reg".
9026 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9027 (mips_n32n64_return_value): Delete unused variable "reg".
9028 (mips_n32n64_return_value): Delete unused variable "pos".
9029 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9030 (mips_o32_return_value): Delete unused variable "pos".
9031 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9032 (mips_print_fp_register): Delete unused variable "namelen"
9033 (mips_print_fp_register): Delete unused variable "flt2"
9034 (get_frame_pointer): Delete function.
9035 (cached_proc_desc): Delete static variable.
9036 (mips_pop_frame): Delete function.
9037 (mips_find_saved_regs): Delete function.
9038 (mips_get_saved_register): Delete function.
9039 (mips_saved_pc_after_call): Delete function.
9040 (SIGFRAME_BASE): Delete macro.
9041 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9042 (SIGFRAME_PC_OFF): Delete macro.
9043 (SIGFRAME_REGSAVE_OFF): Delete macro.
9044 (mips_dump_tdep): Do not print deleted macro definitions.
9045
b9fb98bd
AC
90462004-02-10 Andrew Cagney <cagney@redhat.com>
9047
9048 * Makefile.in (SFILES): Remove explictly listed tui files.
9049 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9050
78ced177 90512004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 9052
78ced177
JJ
9053 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9054 to use paddr functions to format ia64 addresses and long values.
9055 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9056 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9057 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9058 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9059 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9060
6a83354a
AC
90612004-02-10 Andrew Cagney <cagney@redhat.com>
9062
9063 * defs.h: Do not include "tui.h".
9064 * gdb_curses.h: New file.
9065 * tui/tui-hooks.h: New file.
9066 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9067 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9068 (tui_initialize_io): Delete declaration.
9069 (tui_initialize_readline: Delete redundant declaration.
9070 (struct tui_point): Delete definition.
9071 * tui/tui-data.h (struct tui_point): Define.
9072 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9073 * utils.c: Include "tui/tui.h".
9074 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9075 * printcmd.c [TUI]: Include "tui/tui.h".
9076 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9077 * tui/tui-command.c: Include "gdb_curses.h".
9078 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9079 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9080 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9081 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9082 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9083 * Makefile.in: Update all dependencies.
9084 (tui_hooks_h, gdb_curses_h): Define.
9085 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9086
997470ef
EZ
90872004-02-10 Elena Zannoni <ezannoni@redhat.com>
9088
9089 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9090 auxf2. Add comments about some other rarely used fields.
9091
4ff2cc4d
AC
90922004-02-10 Andrew Cagney <cagney@redhat.com>
9093
9094 * Makefile.in (init.c): Fix script removing duplicates. Problem
9095 reported by Peter Schauer.
9096
1ab21617
EZ
90972004-02-09 Elena Zannoni <ezannoni@redhat.com>
9098
9099 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9100 obstack_specify_allocation.
9101 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 9102 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
9103 (allocate_rt_common_objfile): Ditto.
9104 * symfile.c (reread_symbols): Ditto.
9105 * gdb_obstack.h: Add comment.
9106
17763fd9
EZ
91072004-02-09 Elena Zannoni <ezannoni@redhat.com>
9108
9109 * linespec.c (decode_line_1, locate_first_half)
9110 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9111 commented out code.
9112
ec5cdd75
DJ
91132004-02-09 Daniel Jacobowitz <drow@mvista.com>
9114
9115 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9116 obstack_free.
9117
43b54b88
AC
91182004-02-09 Andrew Cagney <cagney@redhat.com>
9119
9120 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9121 fails, try find_pc_section. Fix PR c++/1267.
9122 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9123 instead of find_pc_mapped_section.
9124 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9125 not default to the section containing PC. Fix PR symtab/1519.
9126
edfae063
AC
91272004-02-09 Andrew Cagney <cagney@redhat.com>
9128
9129 * Makefile.in (mips-tdep.o): Update dependencies.
9130 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9131 "trad-frame.h".
9132 (mips_unwind_pc): Return the pseudo PC register.
9133 (mips_unwind_dummy_id): New function.
9134 (mips16_fetch_instruction): New function.
9135 (mips32_fetch_instruction): New function.
9136 (struct mips_frame_cache): Define.
9137 (mips_mdebug_frame_cache): New function.
9138 (mips_mdebug_frame_this_id): New function.
9139 (mips_mdebug_frame_prev_register): New function.
9140 (mips_mdebug_frame_unwind): Define.
9141 (mips_mdebug_frame_sniffer): New function.
9142 (mips_mdebug_frame_base_address): New function.
9143 (mips_mdebug_frame_base): Define.
9144 (mips_mdebug_frame_base_sniffer): New function.
9145 (mips_gdbarch_init): Append unwind and base sniffers. Set
9146 unwind_dummy_id.
9147
defc864c
AC
91482004-02-08 Andrew Cagney <cagney@redhat.com>
9149
6764ddad
AC
9150 * frame.c: Print both the register number and name.
9151
defc864c
AC
9152 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9153 and a sed into a single sed. Make .c and .o patterns more robust.
9154 (OBS): Delete.
9155 (INIT_FILES): Replace OBS with COMMON_OBS.
9156 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9157
645d6d10
MK
91582004-02-08 Mark Kettenis <kettenis@gnu.org>
9159
9160 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9161 the PT_WCOOKIE request.
9162
23e3c3fc
AC
91632004-02-08 Andrew Cagney <cagney@redhat.com>
9164
58dfe9ff
AC
9165 * mips-tdep.c (mips_unwind_pc): New function.
9166 (mips_gdbarch_init): Set mips_unwind_pc.
9167
1152e35e
AC
9168 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9169 (get_frame_id): Allow the UNKNOWN_FRAME.
9170 (frame_register_unwind, get_frame_type): Ditto.
9171
31b75dbf
AC
9172 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9173 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9174 unwind_dummy_id indicates a legacy frame.
9175
3483b318
AC
9176 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9177 * configure: Re-generate.
9178
23e3c3fc
AC
9179 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9180 methods.
9181
33f8ca73
AC
91822004-02-08 Andrew Cagney <cagney@redhat.com>
9183
9184 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9185 makefile macro.
9186 * configure: Re-generate.
9187 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9188 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9189 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9190 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9191 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9192 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9193 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9194 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9195 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9196 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9197
6ba8e26f 91982004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 9199
20d286a5
AC
9200 * Makefile.in: Update all dependencies.
9201
d836ee13
AC
9202 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9203 * configure: Re-generate.
9204 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9205 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9206 (COMMON_OBS): Add "main.o" and "annotate.o".
9207 (ANNOTATE_OBS): Delete.
9208 (OBS): Remove ANNOTATE_OBS.
9209 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9210 CONFIG_INITS.
9211 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9212 against CONFIG_OBS and "main.o".
9213 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9214 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9215
d02c80cd
AC
9216 * tui/tui-command.c: Include "gdb_string.h", delete register
9217 attribute, use ISO-C function signatures.
9218 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9219 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9220 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9221 * tui/tui.c: Ditto.
6ba8e26f
AC
9222
9223 * tui/tui-command.c: Change variable and function names to lower
9224 case.
9225 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9226 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9227 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9228 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9229 * tui/tui-winsource.c, tui/tui.c: Ditto.
9230
4a146b47
EZ
92312004-02-07 Elena Zannoni <ezannoni@redhat.com>
9232
9233 * buildsym.c (free_pending_blocks, finish_block)
9234 (record_pending_block, make_blockvector, end_symtab): Replace
9235 symbol_obstack with objfile_obstack.
8a1dac83 9236 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 9237 (coff_read_enum_type): Ditto.
8a1dac83 9238 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 9239 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 9240 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
9241 (dwarf2_symbol_mark_computed): Ditto.
9242 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9243 * elfread.c (elf_symtab_read): Ditto.
9244 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9245 (hpread_read_enum_type, hpread_read_function_type)
9246 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9247 Ditto.
8a1dac83 9248 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 9249 (java_link_class_type): Ditto.
8a1dac83 9250 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
9251 (new_symbol): Ditto.
9252 * minsyms.c (install_minimal_symbols): Ditto.
9253 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9254 (terminate_minimal_symbol_table): Replace symbol_obstack with
9255 objfile_obstack.
9256 (free_objfile): Remove freeing of symbol_obstack.
9257 * objfiles.h: Remove symbol_obstack field.
9258 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9259 objfile_obstack.
9260 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9261 symbol_obstack.
9262 (solib_add_common_symbols): Replace symbol_obstack with
9263 objfile_obstack.
9264 * somsolib.c (som_solib_add): Ditto.
9265 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9266 (common_block_start, common_block_end): Ditto.
9267 * symfile.c (reread_symbols): Remove freeing and init of
9268 symbol_obstack.
9269 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9270 * symfile.h: Update comment.
9271 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9272 stats printing.
9273 * symtab.c (symbol_set_names): Replace symbol_obstack with
9274 objfile_obstack.
9275 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9276 Update comments.
9277 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9278 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9279 objfile_obstack.
9280
6d012f14
AC
92812004-02-07 Andrew Cagney <cagney@redhat.com>
9282
9283 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9284 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9285 fields and variables.
9286 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9287 (m_beInvisible): Delete macro.
9288 * tui/tui-data.h: Fix case case fields and variables.
9289 (m_genWinPtrIsNull): Delete macro.
9290 (tui_win_list): Rename winList.
9291 (TUI_SRC_WIN): Rename srcWin.
9292 (TUI_DISASM_WIN): Rename disassemWin.
9293 (TUI_DATA_WIN): Rename dataWin.
9294 (TUI_CMD_WIN): Rename cmdWin.
9295 (m_genWinPtrNotNull): Delete macro.
9296 (m_winPtrIsNull): Delete macro.
9297 (m_winPtrNotNull): Delete macro.
9298 (tui_win_is_source_type): Replace m_winIsSourceType
9299 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9300 (tui_win_has_locator): Replace m_hasLocator.
9301 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9302 m_setWinHighlightOff.
9303 * tui/tui-data.c: Update references.
9304 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9305 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9306 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9307 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9308 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9309 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9310 * tui/tui-winsource.c, tui/tui.c: Ditto.
9311
7d34766b
MK
93122004-02-07 Mark Kettenis <kettenis@gnu.org>
9313
1c800673
MK
9314 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9315 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9316 StackGhost.
9317
7d34766b
MK
9318 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9319 variable `i6' to `i7'.
9320 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9321
22940a24
AC
93222004-02-07 Andrew Cagney <cagney@redhat.com>
9323
9324 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9325 (TuiPoint, TuiPointPtr): Ditto.
9326 (TuiStatus, TuiStatusPtr): Ditto.
9327 (TuiWinType, TuiWinTypePtr): Ditto.
9328 (struct tui_point): Rename _TuiPoint.
9329 (tui_get_low_disassembly_address): Rename
9330 tuiGetLowDisassemblyAddress.
9331 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9332 (tuiFree): Delete declaration.
9333 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9334 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9335 * tui/tui.c (tuiFree): Delete function.
9336 * cli/cli-cmds.c (disassemble_command): Update references.
9337 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9338 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9339 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9340 * tui/tui-winsource.c: Ditto.
9341
8b92e4d5
EZ
93422004-02-07 Elena Zannoni <ezannoni@redhat.com>
9343
9344 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9345 coffstab_build_psymtabs, elfstab_build_psymtabs)
9346 (stabsect_build_psymtabs): Replace psymbol_obstack with
9347 objfile_obstack.
9348 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9349 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9350 Ditto.
9351 * dwarfread.c (scan_compilation_units): Ditto.
9352 * elfread.c (elfstab_offset_sections): Ditto.
9353 * hppa-tdep.c (read_unwind_info): Ditto.
9354 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9355 (hpread_end_psymtab): Ditto.
9356 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9357 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9358 Ditto.
9359 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 9360 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
9361 (build_objfile_section_table): Ditto.
9362 (allocate_objfile): Remove init of psymbol_obstack.
9363 (free_objfile): Remove freeing of psymbol_obstack.
9364 * objfiles.h (struct objfile): Remove field
9365 psymbol_obstack. Update comments.
9366 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9367 psymbol_obstack with objfile_obstack.
9368 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9369 psymbol_obstack.
9370 * somread.c (som_symfile_offsets, init_import_symbols)
9371 (init_export_symbols): Replace psymbol_obstack with
9372 objfile_obstack.
9373 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9374 * symfile.c (default_symfile_offsets, syms_from_objfile)
9375 (reread_symbols): Remove freeing and init of psymbol_obstack.
9376 (cashier_psymtab): Update comment.
9377 * symmisc.c (print_objfile_statistics): Don't report stats for
9378 psymbol obstack.
9379 * symtab.h (struct general_symbol_info, struct partial_symtab):
9380 Update comments.
9381 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9382 (xcoff_symfile_offsets): Replace psymbol_obstack with
9383 objfile_obstack.
9384
b99607ea
EZ
93852004-02-07 Elena Zannoni <ezannoni@redhat.com>
9386
9387 * objfiles.h (struct objfile): Add objfile_obstack field.
9388 Remove type_obstack field.
9389
9390 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9391 read_structure_scope read_enumeration, new_symbol): Replace
9392 type_obstack with objfile_obstack.
9393 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 9394 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
9395 (lookup_fundamental_type): Ditto.
9396 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
9397 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9398 (hpread_read_doc_function_type, hpread_read_struct_type)
9399 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 9400 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 9401 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
9402 (java_link_class_type): Ditto.
9403 * mdebugread.c (parse_type): Ditto.
9404 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9405 * solib-sunos.c (solib_add_common_symbols): Ditto.
9406 * stabsread.c (define_symbol, read_type, read_member_functions,
9407 read_cpp_abbrev, read_one_struct_field): Ditto.
9408 * symfile.c (reread_symbols): Ditto.
9409 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 9410
2a8854a7
AC
94112004-02-07 Andrew Cagney <cagney@redhat.com>
9412
9413 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9414 (tui_exec_info_content): Rename TuiExecInfoContent.
9415 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9416 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9417 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9418 (TuiList, TuiListPtr): Ditto.
9419 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9420 (TuiDataType, TuiDataTypePtr): Ditto.
9421 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9422 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9423 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9424 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9425 (TuiDataElement, TuiDataElementPtr): Ditto.
9426 (TuiWinElement, TuiWinElementPtr): Ditto.
9427 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9428 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9429 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9430 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9431 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9432 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9433 * tui/tui-command.c, tui/tui-data.c: Update references.
9434 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9435 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9436 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9437 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 9438
05cbe71a
MK
94392004-02-07 Mark Kettenis <kettenis@gnu.org>
9440
9441 * dwarf2-frame.h: Update copyright.
9442 (enum dwarf2_frame_reg_rule): New.
9443 (struct dwarf2_frame_state_reg): New.
9444 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9445 * dwarf2-frame.c: Update copyright.
9446 (enum dwarf2_reg_rule): Remove.
9447 (struct dwarf2_frame_state): Remove defenition of `struct
9448 dwarf2_frame_state_reg'.
9449 (read_reg): Call get_frame_arch to get the architecture instead of
9450 using CURRENT_GDBARCH.
9451 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9452 DWARF2_FRAME_.
9453 (dwarf2_frame_init_reg): New function.
9454 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9455 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9456 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9457 tags with DWARF2_FRAME_.
9458 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9459 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9460 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9461
ec7d9e56
AC
94622004-02-06 Andrew Cagney <cagney@redhat.com>
9463
dd1abb8c
AC
9464 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9465 (enum tui_data_type): Rename _TuiDataType.
9466 (struct tui_layout_def): Rename _TuiLayoutDef.
9467 (struct tui_source_element): Rename _TuiSourceElement.
9468 (struct tui_data_element): Rename _TuiDataElement.
9469 (struct tui_command_element): Rename _TuiCommandElement.
9470 (struct tui_locator_element): Rename _TuiLocatorElement.
9471 (union tui_which_element): Define.
9472 (struct tui_win_element): Rename _TuiWinElement.
9473 (struct tui_data_info): Rename _TuiDataInfo.
9474 (struct tui_source_info): Rename _TuiSourceInfo.
9475 (struct tui_command_info): Rename _TuiCommandInfo.
9476 (tui_initialize_static_data): Rename initializeStaticData.
9477 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9478 (tui_alloc_win_info): Rename allocWinInfo.
9479 (tui_init_generic_part): Rename initGenericPart.
9480 (tui_init_win_info): Rename initWinInfo.
9481 (tui_alloc_content): Rename allocContent.
9482 (tui_add_content_elements): Rename addContentElements.
9483 (tui_init_content_element): Rename initContentElement.
9484 (tui_free_window): Rename freeWindow.
9485 (tui_free_win_content): Rename freeWinContent.
9486 (tui_free_data_content): Rename freeDataContent.
9487 (tui_free_all_source_wins_content): Rename
9488 freeAllSourceWinsContent.
9489 (tui_del_window): Rename tuiDelWindow.
9490 (tui_del_data_windows): Rename tuiDelDataWindows.
9491 (tui_partial_win_by_name): Rename partialWinByName.
9492 (tui_win_name): Rename winName.
9493 (tui_current_layout): Rename currentLayout.
9494 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9495 (tui_term_height): Rename termHeight.
9496 (tui_set_term_height_to): Rename setTermHeightTo.
9497 (tui_term_width): Rename termWidth.
9498 (tui_set_term_width_to): Rename setTermWidthTo.
9499 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9500 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9501 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9502 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9503 (tui_source_windows): Rename sourceWindows.
9504 (tui_clear_source_windows): Rename clearSourceWindows.
9505 (tui_clear_source_windows_detail): Rename
9506 clearSourceWindowsDetail.
9507 (tui_clear_win_detail): Rename clearWinDetail.
9508 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9509 (tui_default_tab_len): Rename tuiDefaultTabLen.
9510 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9511 (tui_win_with_focus): Rename tuiWinWithFocus.
9512 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9513 (tui_layout_def): Rename tuiLayoutDef.
9514 (tui_win_resized): Rename tuiWinResized.
9515 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9516 (tui_next_win): Rename tuiNextWin.
9517 (tui_prev_win): Rename tuiPrevWin.
9518 (tui_add_to_source_windows): Rename addToSourceWindows.
9519 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9520 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9521 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9522 * tui/tui.c, tui/tui-data.c: Ditto.
9523 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9524 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9525
a358af15
AC
9526 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9527 (struct symtab): Declare.
9528 (tui_set_source_content): Rename tuiSetSourceContent.
9529 (tui_show_symtab_source): Rename tuiShowSource.
9530 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9531 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9532 * tui/tui-source.c: Update copyright. Update references.
9533 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9534 * tui/tui-stack.c: Update references.
9535
a21fcd8f
AC
9536 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9537 (struct tui_win_info): Declare.
9538 (tui_scroll_forward): Rename tuiScrollForward.
9539 (tui_scroll_backward): Rename tuiScrollBackward.
9540 (tui_scroll_left): Rename tuiScrollLeft.
9541 (tui_scroll_right): Rename tuiScrollRight.
9542 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9543 (tui_resize_all): Rename tuiResizeAll.
9544 (tui_refresh_all_win): Rename tuiRefreshAll.
9545 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9546 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9547 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9548 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9549
edae1ccf
AC
9550 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9551 (tui_erase_data_content): Rename tuiEraseDataContent.
9552 (tui_display_all_data): Rename tuiDisplayAllData.
9553 (tui_check_data_values): Rename tuiCheckDataValues.
9554 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9555 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9556 (tui_first_data_element_no_in_line): Rename
9557 tuiFirstDataElementNoInLine.
9558 (tui_delete_data_content_windows): Rename
9559 tuiDeleteDataContentWindows.
9560 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9561 (tui_display_data_from): Rename tuiDisplayDataFrom.
9562 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9563 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9564 * tui/tui-win.c, tui/tui-regs.c: Update references.
9565 * tui/tui-layout.c, tui/tui.c: Update references.
9566
ec7d9e56
AC
9567 * tui/tui-wingeneral.h: Update copyright.
9568 (m_allBeVisible): Delete macro.
8a1dac83 9569 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
9570 (struct tui_gen_win_info): Declare.
9571 (struct tui_win_info): Declare.
9572 (tui_unhighlight_win): Rename unhighlightWin.
9573 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9574 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9575 (tui_make_window): Rename makeWindow.
9576 (tui_copy_win): Rename copyWin.
9577 (tui_box_win): Rename boxWin.
9578 (tui_highlight_win): Rename highlightWin.
9579 (tui_check_and_display_highlight_if_needed): Rename
9580 checkAndDisplayHighlightIfNeeded.
9581 (tui_refresh_all): Rename refreshAll.
9582 (tui_delete_win): Rename tuiDelwin.
9583 (tui_refresh_win): Rename tuiRefreshWin.
9584 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9585 (tui_make_visible, tui_make_invisible): New functions.
9586 (tui_make_all_visible, tui_make_all_invisible): New functions.
9587 (make_all_visible): Rename makeAllVisible.
9588 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9589 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9590 * tui/tui-windata.c, tui/tui-win.c: Update references.
9591 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9592 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9593
1e52e2eb
MK
95942004-02-06 Mark Kettenis <kettenis@gnu.org>
9595
9596 * proc-api.c (write_with_trace): Initialize local variable to
9597 silence compiler warning.
9598
f80bda8e
AC
95992004-02-06 Andrew Cagney <cagney@redhat.com>
9600
9601 * tui/tui-source.h: Do not include "defs.h".
9602 (struct tui_win_info): Declare.
9603 (tui_set_source_content_nil): Declare.
9604 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9605 (union tui_line_or_address): Rename _TuiLineOrAddress.
9606 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9607 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9608 (tui_update_source_window_as_is): Rename
9609 tuiUpdateSourceWindowAsIs.
9610 (tui_update_source_windows_with_addr): Rename
9611 tuiUpdateSourceWindowsWithAddr.
9612 (tui_update_source_windows_with_line): Rename
9613 tuiUpdateSourceWindowsWithLine.
9614 (tui_clear_source_content): Rename tuiClearSourceContent.
9615 (tui_erase_source_content): Rename tuiEraseSourceContent.
9616 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9617 (tui_show_source_content): Rename tuiShowSourceContent.
9618 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9619 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9620 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9621 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9622 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9623 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9624 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9625 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9626 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9627 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9628 (struct tui_win_info): Declare.
9629 * tui/tui-stack.c: Update references.
9630 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9631 * tui/tui-win.c, tui/tui-source.c: Ditto.
9632 * tui/tui.c, tui/tui-disasm.c: Ditto.
9633
9fbfb822
MK
96342004-02-06 Mark Kettenis <kettenis@gnu.org>
9635
9636 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9637 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9638
03cebad2
MK
96392004-02-05 Mark Kettenis <kettenis@gnu.org>
9640
9641 * infrun.c (handle_inferior_event): Allow for breakpoint
9642 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9643 and SIGEMT. Update comments.
9644 * NEWS (Revised SPARC target): Mention support for non-executable
9645 stack.
9646
290281b1
MK
96472004-02-04 Mark Kettenis <kettenis@gnu.org>
9648
9649 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9650 * inftarg.c: Update copyright year.
9651 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9652 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9653 (sparc_xfer_wcookie): New function.
9654 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9655 * Makefile.in (sparc-nat.o): Update dependencies.
9656 * config/sparc/nm-nbsd.h: Include "target.h".
9657 (NATIVE_XFER_WCOOKIE): New define.
9658 (sparc_xfer_wcookie): New prototype.
9659
212161df
AC
96602004-02-04 Andrew Cagney <cagney@redhat.com>
9661
9662 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9663 SYSCALL_TRAP function.
9664 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9665
6e4c6c91
DJ
96662004-02-04 Andrew Cagney <cagney@redhat.com>
9667 Daniel Jacobowitz <drow@mvista.com>
9668
9669 * objfiles.h: Delete comments refering to inside_entry_func and
9670 DEPRECATED_FRAME_CHAIN_VALID.
9671 * defs.h (inside_entry_func): Update prototype..
9672 * blockframe.c (inside_entry_func): Rename to
9673 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9674 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9675
cae688ec
JJ
96762004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9677
9678 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9679 outside of #ifdef SOLIB_ADD region.
9680 (do_restore_lang_radix_cleanup): Ditto.
9681 (resolve_pending_breakpoint): Ditto.
9682
19217676
AC
96832004-02-03 Andrew Cagney <cagney@redhat.com>
9684
9685 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9686 (process_note_abi_tag_sections): Delete unused function.
9687 (ia64_read_fp): Delete unused function.
9688 (gdbarch_extract_struct_value_address): Delete declaration.
9689
876753be
AC
96902004-02-02 Andrew Cagney <cagney@redhat.com>
9691
9692 * vax-tdep.c (vax_frame_chain): Delete call to
9693 deprecated_inside_entry_file.
9694 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9695
d4f10bf2
MK
96962004-02-02 Mark Kettenis <kettenis@gnu.org>
9697
9698 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9699 column that's "empty" or "same value" when eliminating REG_RA
9700 rules.
9701
cae688ec
JJ
97022004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9703
9704 * NEWS: Add information about new pending breakpoint support.
9705
0101ce28
JJ
97062004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9707
9708 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9709 and pending fields for pending breakpoint support.
9710 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9711 (condition_command): Only parse condition if not a pending
9712 breakpoint.
9713 (print_one_breakpoint): Add support for pending breakpoints.
9714 (describe_other_breakpoints): Add checks to verify we are not
9715 dealing with pending breakpoints.
9716 (check_duplicates): Don't check pending breakpoints.
9717 (set_raw_breakpoint): Initialize pending flag.
9718 (do_restore_lang_radix_cleanup): New cleanup routine.
9719 (resolve_pending_breakpoint): New function.
9720 (re_enable_breakpoints_in_shlibs): Try and resolve any
9721 pending breakpoints via resolve_pending_breakpoint.
9722 (mention): Add pending breakpoint support.
9723 (parse_breakpoint_sals): Add new parameter to pass to
9724 decode_line_1 to indicate silent errors when files or functions
9725 are not found. Change all callers.
9726 (do_captured_parse_breakpoint): New function.
9727 (break_command_1): Change prototype to return an rc value and to
9728 take an optional pending breakpoint pointer. Support creating
9729 a pending breakpoint if a "not found" form of error occurs when
9730 parsing the breakpoint. Also support resolving an existing pending
9731 breakpoint and be silent if the resolution fails.
9732 (create_breakpoints): Change prototype to take pending breakpoint
9733 pointer. When resolving a pending breakpoint, use the new pointer
9734 to provide a conditional or commands added by the end-user.
9735 (delete_breakpoint): Add appropriate check for pending.
9736 (breakpoint_re_set_one): Ditto.
9737 (do_enable_breakpoint): Ditto.
9738
8d577d32
DC
97392004-02-02 David Carlton <carlton@kealia.com>
9740
9741 * valops.c (enum oload_classification): New.
9742 (find_overload_match): Break implementation into separate
9743 functions; delete #if 0'd code; look for symbols within
9744 namespaces.
9745 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9746 (find_oload_champ,oload_method_static,classify_oload_match): New.
9747 * cp-support.h: Add declaration for cp_func_name; update
9748 declaration for make_symbol_overload_list.
9749 * cp-support.c (cp_func_name): New.
9750 (overload_list_add_symbol): Fix comment, use
9751 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9752 (make_symbol_overload_list): Take a function name and a namespace
9753 instead of a symbol; change implementation.
9754 (make_symbol_overload_list_using): New.
9755 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9756
22e8e3c7
FF
97572004-02-02 Fred Fish <fnf@redhat.com>
9758
9759 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 9760 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
9761 * remote-sim.c (gdb_os_write_stderr): Write output to
9762 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9763 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 9764 gdb_stderr stream and update copyright years.
22e8e3c7 9765
6b753f60
DJ
97662004-02-01 Daniel Jacobowitz <drow@mvista.com>
9767
9768 * Makefile.in (mips-linux-nat.o): Update dependencies.
9769 * mips-linux-nat.c: Include mips-tdep.h.
9770
97712004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
9772
9773 * sol-thread.c (sol_thread_xfer_partial): New function.
9774 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9775 (init_sol_core_ops): Likewise.
9776
9777 * procfs.c (procfs_xfer_partial): New function.
9778 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9779 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9780
9781 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9782 procfs_xfer_auxv function.
9783
9784 * procfs.c (procfs_make_note_section): If we can read
9785 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9786 * linux-proc.c (linux_make_note_section): Likewise.
9787
9788 * auxv.h: New file.
9789 * auxv.c: New file.
9790 * Makefile.in (auxv_h): New variable.
9791 (COMMON_OBS): Add auxv.o here.
9792 (auxv.o): New target.
9793
9794 * corelow.c (core_xfer_partial): New function.
9795 (init_core_ops): Use it for core_ops.to_xfer_partial.
9796
9797 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9798 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9799 macro if that is defined.
9800
fa5281d0
DJ
98012004-02-01 Daniel Jacobowitz <drow@mvista.com>
9802
9803 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9804 and check the specified thread for each breakpoint.
9805 * breakpoint.h (bpstat_stop_status): Update prototype.
9806 * infrun.c (handle_inferior_event): Update calls to
9807 bpstat_stop_status.
9808
26ee262d
DJ
98092004-02-01 Daniel Jacobowitz <drow@mvista.com>
9810
9811 * Makefile.in (cli-cmds.o): Add $(readline_h).
9812
d9b52655
DJ
98132004-02-01 Daniel Jacobowitz <drow@mvista.com>
9814
9815 * cli/cli-cmds.c: Include readline.h.
9816 (complete_command): Pass the start of the last word to
9817 complete_line.
9818
9709f61c
DJ
98192004-01-31 Daniel Jacobowitz <drow@mvista.com>
9820
9821 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9822 argument, and change first argument to a CORE_ADDR.
9823 * breakpoint.h (bpstat_stop_status): Update prototype.
9824 * infrun.c (adjust_pc_after_break): Add a new comment.
9825 (handle_inferior_event): Update calls to bpstat_stop_status.
9826
4f1280bb
DJ
98272004-01-31 Daniel Jacobowitz <drow@mvista.com>
9828
9829 * breakpoint.h: Update copyright years.
9830
4fa8626c
DJ
98312004-01-31 Daniel Jacobowitz <drow@mvista.com>
9832
9833 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9834 (bpstat_stop_status): Don't decrement PC.
9835 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9836 prototype.
9837 * infrun.c (adjust_pc_after_break): New function.
9838 (handle_inferior_event): Call it, early. Remove later references
9839 to DECR_PC_AFTER_BREAK.
9840 (normal_stop): Add commentary.
9841
fad0733a
DJ
98422004-01-31 Daniel Jacobowitz <drow@mvista.com>
9843
9844 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9845 2004-01-27 double-free fix.
9846
42cdca6c
MK
98472004-01-31 Mark Kettenis <kettenis@gnu.org>
9848
9849 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9850 (sparc32_frame_prev_register): Handle StackGhost.
9851 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9852
932d5416
RM
98532004-01-29 Roland McGrath <roland@redhat.com>
9854
9855 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
9856 * configure: Regenerated.
9857
9858 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
9859 * Makefile.in (procfs.o): Add dep.
9860
47d3492a
AC
98612004-01-28 Andrew Cagney <cagney@redhat.com>
9862
9863 * tui/tui-stack.h: Update copyright.
9864 (struct frame_info): Add opaque declaration.
9865 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
9866 (tui_show_locator_content): Rename tuiShowLocatorContent.
9867 (tui_show_frame_info): Rename tuiShowFrameInfo.
9868 * tui/tui-stack.c: Update copyright. Update references.
9869 * tui/tui-winsource.c: Update references.
9870 * tui/tui-win.c: Update references.
9871 * tui/tui-layout.c: Update references.
9872 * tui/tui-hooks.c: Update copyright, update references.
9873 * tui/tui.c: Update copyright, update references.
9874 * tui/tui-disasm.c: Update references.
9875
5d51ca54
DC
98762004-01-28 David Carlton <carlton@kealia.com>
9877
9878 * dwarf2read.c (add_partial_structure): Use demangled name if
9879 namespace equals "".
9880
086ed43d
JB
98812004-01-27 Jim Blandy <jimb@redhat.com>
9882
9883 Clean up misapplied patch:
9884 * dwarf2read.c (determine_prefix): Change one of the two forward
9885 declarations for 'determine_prefix_aux' to a declaration for this.
9886 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
9887 argument to 'die_specification'.
9888
2a35147e
JB
9889 * dwarf2read.c (read_func_scope): Re-indent comment.
9890
a355c7de 98912004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 9892
a355c7de
AC
9893 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
9894 b->exp to NULL after freeing so that error during re-parsing or
9895 evaluation of expressions associated with breakpoint don't
9896 eventually lead to re-freeing of storage.
9897 Committed by Andrew Cagney.
9898
63ff5125
AC
98992004-01-27 Andrew Cagney <cagney@redhat.com>
9900
9901 * source.c (ambiguous_line_spec): Delete undefined declaration.
9902 * m32r-rom.c (m32r_set_board_address): Delete unused function.
9903 (m32r_set_server_address, m32r_set_download_path): Ditto.
9904 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
9905
e142c38c
DJ
99062004-01-27 Daniel Jacobowitz <drow@mvista.com>
9907
9908 * dwarf2read.c: Update calls to changed and renamed functions, and
9909 references to moved variables.
9910
9911 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
9912 language, language_defn, list_in_scope, and ftypes members.
9913 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
9914 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
9915 (baseaddr): Remove globals.
9916
9917 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
9918 (set_cu_language, die_is_declaration, die_specification)
9919 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
9920 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
9921 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
9922 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
9923
9924 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
9925 cu.list_in_scope. Don't initialize cu_header_offset.
9926 (add_partial_symbol): Add local baseaddr.
9927 (psymtab_to_symtab_1): Add local baseaddr. Use
9928 objfile->section_offsets for consistency. Don't initialize
9929 cu_header_offset; do initialize cu.header.offset and
9930 cu.list_in_scope.
9931 (read_file_scope, read_func_scope, read_lexical_block_scope)
9932 (dwarf_decode_lines, new_symbol): Add local baseaddr.
9933
c6e06ede
MC
99342004-01-27 Michael Chastain <mec.gnu@mindspring.com>
9935
fb328ecc 9936 * PROBLEMS: Add gdb/1516.
c6e06ede 9937
48184fd4
AC
99382003-12-29 Robert Millan <robertmh@gnu.org>
9939
9940 Patch committed by Andrw Cagney.
9941 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
9942 * configure.tgt: Match knetbsd*-gnu.
9943
c1321b30
AC
99442004-01-26 Andrew Cagney <cagney@redhat.com>
9945
f3699be3
AC
9946 * breakpoint.c (catch_command_1): Delete #ifdef code.
9947 (catch_fork_command_1): Delete #ifdef wrapper.
9948 (catch_exec_command_1): Ditto.
9949 (catch_load_command_1): Ditto.
9950 (catch_unload_command_1): Ditto.
9951
c1321b30
AC
9952 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
9953 (catch_breakpoint): Delete #if0ed function.
9954 (disable_catch_breakpoint): Ditto.
9955 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
9956 (disable_catch, enable_catch, delete_catch): Ditto.
9957
b4501125
AC
99582004-01-26 Andrew Cagney <cagney@redhat.com>
9959
9960 * remote.c (echo_check, quit_flag): Delete variables.
9961 (cisco_kernel_mode): Delete variable.
9962 (minitelnet_return, tty_input, escape_count): Delete variables.
9963 (remote_cisco_mode): Delete variable.
9964 (remote_cisco_open, remote_cisco_close): Delete function.
9965 (remote_cisco_mourn, remote_cisco_wait): Delete function.
9966 (init_remote_cisco_ops): Delete function.
9967 (_initialize_remote): Do not install "remote cisco" code.
9968 (read_frame): Delete cisco specific code.
9969 (remote_info_process): Delete function.
9970 (remote_wait): Delete cisco specific code.
9971 (remote_cisco_section_offsets): Delete function.
9972 (remote_cisco_objfile_relocate): Delete function.
9973 (remote_async_wait): Delete cisco specific code.
9974 (minitelnet, readtty, readsocket): Delete function.
9975
74055713
AC
99762004-01-26 Andrew Cagney <cagney@redhat.com>
9977
9978 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
9979 comments mentioning extract_returned_value_address.
9980 * infcmd.c (print_return_value): Update. Add comments on
9981 extract_returned_value_address.
9982 * stack.c (return_command): Add comments on
9983 extract_returned_value_address.
9984 * values.c: Update comment.
9985 * m32r-tdep.c: Update comment.
9986 * sparc-tdep.c: Update comment.
9987 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
9988 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9989 * sh64-tdep.c (sh64_gdbarch_init): Update.
9990 * sh-tdep.c (sh_gdbarch_init): Update.
9991 * s390-tdep.c (s390_gdbarch_init): Update.
9992 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9993 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9994 * m68k-tdep.c (m68k_gdbarch_init): Update.
9995 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9996 * m32r-tdep.c (m32r_gdbarch_init): Update.
9997 * ia64-tdep.c (ia64_gdbarch_init): Update.
9998 * h8300-tdep.c (h8300_gdbarch_init): Update.
9999 * frv-tdep.c (frv_gdbarch_init): Update.
10000 * arm-tdep.c (arm_gdbarch_init): Update.
10001 * alpha-tdep.c (alpha_gdbarch_init): Update.
10002
a67af2b9
AC
100032004-01-26 Andrew Cagney <cagney@redhat.com>
10004
10005 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10006 SYMBOL_LOCATION_FUNCS
10007 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10008 "struct symbol_ops".
10009 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10010 type to "struct symbol_ops".
10011 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10012 (struct symbol): Replace ".aux_value.loc.funcs" and
10013 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10014 (SYMBOL_OBJFILE): Delete macro.
10015 (SYMBOL_LOCATION_FUNCS): Delete macro.
10016 (SYMBOL_LOCATION_BATON): Update.
10017 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10018 intead of SYMBOL_LOCATION_FUNCS.
10019 * ax-gdb.c (gen_var_ref): Ditto.
10020 * printcmd.c (address_info): Ditto.
10021 * findvar.c (read_var_value): Ditto.
10022 (symbol_read_needs_frame): Ditto.
10023
c034e007
AC
100242004-01-26 Andrew Cagney <cagney@redhat.com>
10025
10026 * dwarf2read.c (read_func_scope): Document frame-base hack.
10027
bb472c1e
MK
100282004-01-25 Mark Kettenis <kettenis@gnu.org>
10029
10030 * infcmd.c (print_return_value): Plug memory leak; delete
10031 ui_stream object. Rename argument `structure_return' to
10032 `struct_return'.
10033
c8e737d5
MK
100342004-01-25 Mark Kettenis <kettenis@gnu.org>
10035
f941662f
MK
10036 * infcmd.c (print_return_value): Wrap long lines.
10037 (finish_command_continuation, finish_command): Remove unused
10038 variable `funcaddr'. Fix some coding-standards problems.
10039
c558d81a 10040 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 10041 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
10042 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10043 TDEP->fpregset to zero.
10044
bf1e5861 10045 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
10046 floating-point registers for traditional NetBSD core files.
10047 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10048 TDEP->sizeof_fpregset here.
10049
4c72d57a
MK
100502004-01-25 Mark Kettenis <kettenis@gnu.org>
10051
566626fa
MK
10052 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10053 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10054 function with code split out from
10055 sparc32nbsd_sigcontext_frame_cache.
10056 (sparc32nbsd_sigcontext_frame_cache): Use
10057 sparc32nbsd_sigcontext_saved_regs.
10058 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10059 OpenBSD.
10060 * sparcobsd-tdep.c: New file.
10061 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10062 (sparcobsd-tdep.o): New dependency.
10063 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10064 * config/sparc/obsd.mt: New file.
10065
4c72d57a
MK
10066 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10067 TDEP->fpregset to be initialized to enable core file register
10068 sets.
10069
7e5e9f88
MK
100702004-01-24 Mark Kettenis <kettenis@gnu.org>
10071
f0f207fd 10072 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
10073 Add opaque declarations.
10074 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10075 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10076 function with code split out from
10077 sparc64nbsd_sigcontext_frame_cache.
10078 (sparc64nbsd_sigcontext_frame_cache): Use
10079 sparc64nbsd_sigcontext_saved_regs.
10080 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10081 OpenBSD.
10082 * sparc64obsd-tdep.c: New file.
10083 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10084 (sparc64obsd-tdep.o): New dependency.
10085 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10086 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10087 * config/sparc/obsd64.mt: New file.
10088
690668cc
MK
10089 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10090 read the instruction at PC.
10091
7e5e9f88
MK
10092 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10093 value of GDB_OSABI_DEFAULT.
10094 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10095 instead of GDB_OSABI_NETBSD_AOUT.
10096
68b6dce9
NR
100972004-01-24 Nick Roberts <nick@nick.uklinux.net>
10098
10099 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10100 copyright.
10101
080ce8c0
AC
101022004-01-23 Andrew Cagney <cagney@redhat.com>
10103
10104 * printcmd.c (display_command): Replace tui_set_display call with
10105 tui_set_layout_for_display_command.
10106 * tui/tui.h (enum tui_win_type): Define.
10107 (tui_set_layout): Delete declaration.
10108 (tui_set_layout_for_display_command): Rename set_tui_layout.
10109 * tui/tui-data.h (enum tui_layout_type): Define.
10110 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10111 "tui.h".
10112 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10113 (tui_default_win_height): Rename tuiDefaultWinHeight.
10114 (tui_default_win_viewport_height): Rename
10115 tuiDefaultWinViewportHeight.
10116 (tui_set_layout): RenametuiSetLayout.
10117 * tui/tui-layout.c: Update references.
10118 * tui/tui.c: Update references.
10119 * tui/tui-disasm.c: Update references.
10120
b368761e
DC
101212004-01-23 David Carlton <carlton@kealia.com>
10122
10123 Partial workaround for PR c++/1511:
10124 * cp-namespace.c: Include frame.h.
10125 (cp_lookup_transparent_type): New
10126 (cp_lookup_transparent_type_loop): New.
10127 * cp-support.h: Declare cp_lookup_transparent_type.
10128 * symtab.c (basic_lookup_transparent_type): Renamed from
10129 lookup_transparent_type.
10130 (lookup_transparent_type): Replace old body by a call to
10131 current_language->la_lookup_transparent_type.
10132 * symtab.h: Update copyright. Declare
10133 basic_lookup_transparent_type.
10134 * language.h: Update copyright.
10135 (struct language_defn): Add la_lookup_transparent_type.
10136 * language.c: Update copyright.
10137 (unknown_language_defn): Add basic_lookup_transparent_type.
10138 (auto_language_defn): Add basic_lookup_transparent_type.
10139 (local_language_defn): Add basic_lookup_transparent_type.
10140 * ada-lang.c: Update copyright.
10141 (ada_language_defn): Add basic_lookup_transparent_type.
10142 * c-lang.c: Update copyright.
10143 (c_language_defn): Add basic_lookup_transparent_type.
10144 (cplus_language_defn): Add basic_lookup_transparent_type.
10145 (asm_language_defn): Add basic_lookup_transparent_type.
10146 (minimal_language_defn): Add basic_lookup_transparent_type.
10147 * f-lang.c: Update copyright.
10148 (f_language_defn): Add basic_lookup_transparent_type.
10149 * jv-lang.c: Update copyright.
10150 (java_language_defn): Add basic_lookup_transparent_type.
10151 * m2-lang.c: Update copyright.
10152 (m2_language_defn): Add basic_lookup_transparent_type.
10153 * objc-lang.c: Update copyright.
10154 (objc_language_defn): Add basic_lookup_transparent_type.
10155 * p-lang.c: Update copyright.
10156 (p_language_defn): Add basic_lookup_transparent_type.
10157 * scm-lang.c: Update copyright.
10158 (scm_language_defn): Add basic_lookup_transparent_type.
10159 * Makefile.in (cp-namespace.o): Depend on frame.h.
10160
fdde2d81
DC
101612004-01-23 David Carlton <carlton@kealia.com>
10162
10163 Patch for PR c++/1520:
10164 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10165 properly if we have a specification die.
10166 (determine_prefix_aux): Rename from determine_prefix.
10167 (determine_prefix): Like the old determine_prefix, but never
10168 returns NULL.
10169
5b828b6b
TR
101702004-01-23 Theodore A. Roth <troth@openavr.org>
10171
10172 * avr-tdep.c: Update copyright.
10173 (avr_iaddr_p): Delete unused function.
10174 (avr_saddr_p): Delete unused function.
10175
a1b8c067
DC
101762004-01-23 David Carlton <carlton@kealia.com>
10177
10178 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10179 Fix for PR symtab/1534.
10180
f2cab569
MK
101812004-01-23 Mark Kettenis <kettenis@gnu.org>
10182
10183 * NEWS (New native configurations): Mention OpenBSD/sparc and
10184 OpenBSD/sparc64.
10185 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10186 * configure.host: Likewise.
10187 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10188 handler for OpenBSD.
10189 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10190
642d8300
MK
101912004-01-22 Mark Kettenis <kettenis@gnu.org>
10192
89aac506
MK
10193 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10194 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10195
36662fde
MK
10196 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10197 * cli/cli-cmds.c (shell_escape): Likewise.
10198
642d8300
MK
10199 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10200 OpenBSD .note.openbsd.ident sections.
10201
fae299cd
DC
102022004-01-22 David Carlton <carlton@kealia.com>
10203
10204 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10205 get_scope_pc_bounds.
10206 (read_file_scope): Ditto.
10207 (get_scope_pc_bounds): New function, produced by extracting code
10208 from the above two functions, consolidating it, and adding support
10209 for DW_TAG_namespace.
10210
a49d618c
MK
102112004-01-22 Mark Kettenis <kettenis@gnu.org>
10212
10213 * osabi.c (MAX_NOTESZ): New define.
10214 (check_note): New function.
10215 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10216 check_note.
10217
fe61caab
RM
102182004-01-21 Roland McGrath <roland@redhat.com>
10219
10220 * MAINTAINERS (write after approval): Add myself.
10221
ec145965
EZ
102222004-01-21 Eli Zaretskii <eliz@gnu.org>
10223
10224 * utils.c (init_page_info): Move declarations of `rows' and
10225 `cols' before the __GO32__-specific code. Move the closing brace
10226 outside the #ifdef __GO32__..#endif block.
10227 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10228
877522db
PB
102292004-01-21 Paul Brook <paul@codesourcery.com>
10230
10231 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10232 BPSTAT_WHAT_CHECK_SHLIBS.
10233
dbf5be1c
PB
102342004-01-21 Paul Brook <paul@codesourcery.com>
10235
10236 * MAINTAINERS: Add myself to write-after-approval.
10237
81f08b92
AC
102382004-01-20 Andrew Cagney <cagney@redhat.com>
10239
5a1efed7
AC
10240 * ax-gdb.c (print_axs_value): Delete unused function.
10241 * jv-lang.c (java_lookup_type): Delete unused function.
10242 * cli/cli-dump.c (dump_filetype): Delete unused function.
10243 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10244 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10245 (mips_getstring): Delete unused function.
10246 (pmon_insert_breakpoint): Delete #if0ed function.
10247 (PMON_MAX_BP): Delete #if0ed MACRO.
10248 (mips_pmon_bp_info): Delete #if0ed variable.
10249 (pmon_remove_breakpoint): Delete #if0ed function.
10250 * monitor.c (monitor_write_even_block): Delete unused function.
10251 (monitor_write_memory_block): Delete #if0ed code.
10252 * dink32-rom.c (dink32_load): Delete unused function.
10253 (_initialize_dink32_rom): Delete #if0ed code.
10254 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10255
b0a30fce
AC
10256 * tui/tui-command.c: Update references.
10257 * tui/tui-io.c: Update references.
10258 * tui/tui-command.h: Update copyright.
10259 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10260
81f08b92
AC
10261 * source.c (ambiguous_line_spec): Delete never-defined function.
10262 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10263 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10264 * cli/cli-cmds.c (validate_comname): Ditto.
10265
65f05602
AC
10266 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10267 "tui-data.h".
10268 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10269 (tui_show_disassem): Rename tuiShowDisassem.
10270 (tui_show_disassem_and_update_source): Rename
10271 tuiVerticalDisassemScroll.
10272 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10273 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10274 * tui/tui.h: Update copyright.
10275 (enum tui_status): Define.
10276 * tui/tui-data.h (enum tui_scroll_direction): Define.
10277 * tui/tui-disasm.c: Update copyright. Update references.
10278 * tui/tui-winsource.c: Update copyright. Update references.
10279 * tui/tui-win.c: Update references.
10280 * tui/tui-layout.c: Update references.
10281
6bb0384f
AC
102822004-01-20 Andrew Cagney <cagney@redhat.com>
10283
10284 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10285 sym2 to start of block.
10286
9175c9a3
MC
102872004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10288
10289 * MAINTAINERS: Delete mmalloc.
10290 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10291 * NEWS: Mention removal of --with-malloc.
10292 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10293 * config.in: Regenerate.
10294 * configure: Regenerate.
6bb0384f
AC
10295 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10296 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
10297 * gdbinit.in: Remove mmalloc.
10298 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10299 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10300 * config/i386/go32.mh: Likewise.
10301 * config/i386/interix.mh: Likewise.
10302 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10303
4fcef00a
JJ
103042004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10305
10306 * linespec.c (decode_variable, symtab_from_filename): Call
10307 error_silent with error message instead of throwing an exception
10308 directly.
10309 * defs.h (error_silent, error_output_message): Add prototypes.
10310 (catch_exceptions_with_msg): Ditto.
10311 * utils.c (error_silent, error_output_message): New functions.
10312 * top.c (catch_exceptions_with_msg): New function.
10313
8e94b928
NR
103142004-01-20 Nick Roberts <nick@nick.uklinux.net>
10315
10316 * mi/mi-cmds.h (enum print_values): Add definition.
10317
10318 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10319 type and value for simple data types and just the name and type
10320 for complex ones, if required.
10321
10322 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10323 children, if required.
10324
a02d6af8
KB
103252004-01-19 Kevin Buettner <kevinb@redhat.com>
10326
10327 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10328 unused declarations.
10329
78a4a9b9
AC
103302004-01-19 Andrew Cagney <cagney@redhat.com>
10331
10332 * top.h (mapped_symbol_files): Delete declaration.
10333 * main.c (captured_main): Delete option "m" and "mapped".
10334 * objfiles.c (mapped_symbol_files): Delete variable.
10335 * symfile.c (symbol_file_command): Delete mmap code.
10336 (symbol_file_add_with_addrs_or_offsets): Ditto.
10337 (add_symbol_file_command, reread_separate_symbols): Ditto.
10338 * objfiles.h (OBJF_MAPPED): Delete.
10339 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10340 (free_objfile) [USE_MMALLOC]: Ditto.
10341 (open_existing_mapped_file): Delete function.
10342 (open_mapped_file): Delete function.
10343 (map_to_file): Delete function.
10344
2dbd5e30
KB
103452004-01-19 Kevin Buettner <kevinb@redhat.com>
10346
10347 * infrun.c (step_into_function): Account for possible breakpoint
10348 adjustment when computing ``stop_func_start''.
10349
437b434f
KB
103502004-01-19 Kevin Buettner <kevinb@redhat.com>
10351
10352 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10353 the region size against the size of a pointer, not the size of
10354 a register as given by DEPRECATED_REGISTER_SIZE.
10355
55fb0713
AC
103562004-01-19 Andrew Cagney <cagney@redhat.com>
10357
10358 * tui/tui-regs.h: Include "tui-data.h".
10359 (tuiFirstRegElementNoInLine): Delete declaration.
10360 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10361 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10362 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10363 (tui_calculate_regs_column_count): Rename
10364 tuiCalculateRegsColumnCount.
10365 (tui_check_register_values): Rename tuiCheckRegisterValues.
10366 (tui_show_registers): Rename tuiShowRegisters.
10367 (tui_display_registers_from_line): Rename
10368 tuiDisplayRegistersFromLine.
10369 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10370 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10371 (tui_first_reg_element_no_inline): Rename
10372 tuiFirstRegElementNoInLine.
10373 * tui/tui-data.h: Update copyright.
10374 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10375 * tui/tui-windata.c: Update copyright, update references.
10376 * tui/tui-regs.c: Update copyright, update references.
10377 * tui/tui-win.c: Update copyright, update references.
10378 * tui/tui-layout.c: Update copyright, update references.
fe61caab 10379
cebe9500
AC
103802004-01-18 Andrew Cagney <cagney@redhat.com>
10381
bcdf1568
AC
10382 * tui/tui-io.c: Update copyright.
10383 (key_is_end_sequence, key_is_backspace): New functions.
10384 (key_is_command_char, key_is_start_sequence): New function.
10385 (tui_getc): Update references.
10386 * tui/tui-io.h: Update copyright.
10387 (m_tuiStartNewLine): Delete macro.
10388 (m_isBackspace, m_isDeleteChar): Delete macros.
10389 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10390 (m_isNextPage, m_isPrevPage): Delete macros.
10391 (m_isLeftArrow, m_isRightArrow): Delete macros.
10392 (m_isXdbStyleCommandChar): Delete macro.
10393 (key_is_start_sequence): Declare, replace m_isStartSequence.
10394 (key_is_end_sequence): Declare, replace m_isEndSequence.
10395 (key_is_backspace): Declare ,replace m_isBackspace.
10396 (key_is_command_char): Declare, replace m_isCommandChar.
10397 * tui/tui-command.c: Update copyright.
10398 (tuiDispatchCtrlChar): Update references.
10399
130d87e6
AC
10400 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10401 tuiSourceWin.h.
10402
d7b2e967
AC
10403 * tui/tui-command.c: Rename tui/tuiCommand.c.
10404 * tui/tui-command.h: Rename tui/tuiCommand.h.
10405 * tui/tui-data.c: Rename tui/tuiData.c.
10406 * tui/tui-data.h: Rename tui/tuiData.h.
10407 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10408 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10409 * tui/tui-io.c: Rename tui/tuiIO.c.
10410 * tui/tui-io.h: Rename tui/tuiIO.h.
10411 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10412 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10413 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10414 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10415 * tui/tui-source.c: Rename tui/tuiSource.c.
10416 * tui/tui-source.h: Rename tui/tuiSource.h.
10417 * tui/tui-stack.c: Rename tui/tuiStack.c.
10418 * tui/tui-stack.h: Rename tui/tuiStack.h.
10419 * tui/tui-win.c: Rename tui/tuiWin.c.
10420 * tui/tui-win.h: Rename tui/tuiWin.h.
10421 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10422 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10423 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10424 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10425 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10426 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10427 * tui/tui-file.c: Update includes.
10428 * tui/tui-hooks.c: Update includes.
10429 * tui/tui-interp.c: Update includes.
10430 * tui/tui.c: Update includes.
10431 * Makefile.in: Update all tui/ dependencies.
10432 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10433
b2100910
AC
10434 * Makefile.in: Update copyright. Update dependencies.
10435
cebe9500
AC
10436 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10437 problem.
10438
c6f0559b
AC
104392004-01-18 Andrew Cagney <cagney@redhat.com>
10440
43e9390b
AC
10441 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10442 instead of register_gdbarch_init.
10443
c6f0559b
AC
10444 * remote-sds.c (tohex): Delete unused function. Update copyright.
10445 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10446 * v850-tdep.c (v850_register_virtual_size): Ditto.
10447 * target.c (normal_target_post_startup_inferior): Ditto.
10448 * source.c (ambiguous_line_spec): Ditto.
10449 * remote.c (adapt_remote_get_threadinfo): Ditto.
10450 * mi/mi-out.c (out_field_fmt): Ditto.
10451 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10452 (output_control_change_notification): Ditto.
10453 * m68k-tdep.c (m68k_register_byte): Ditto.
10454 (m68k_remote_breakpoint_from_pc): Ditto.
10455 * ui-out.c (init_ui_out_state): Delete unused declaration.
10456 * stabsread.c (search_value): Ditto.
10457 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10458 * maint.c (print_section_table): Ditto.
10459 * infrun.c (set_follow_fork_mode_command): Ditto.
10460
a8504492
MK
104612004-01-18 Mark Kettenis <kettenis@gnu.org>
10462
10463 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10464 DW_CFA_def_cfa_exporession. Add support for
10465 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10466 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10467
0bd8997e
AC
104682004-01-18 Andrew Cagney <cagney@redhat.com>
10469
10470 * ocd.c: Update copyright.
10471 (bdm_read_register_command): Delete unused function.
10472 (_initialize_remote_ocd): Delete commented out reference.
10473 (get_quoted_char, reset_packet): Delete #if0ed function.
10474 (output_packet, put_quoted_char): Delete #if0ed function.
10475 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10476 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10477 (BDM_BREAKPOINT): Delete #if0ed macro.
10478 (remote_timeout): Delete #if0ed variable.
10479
31bb40e4
MK
104802004-01-18 Mark Kettenis <kettenis@gnu.org>
10481
10482 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10483 (core-sol2.o): Remove dependency.
10484 * core-sol2.c: Remove file.
10485
887432a5
AC
104862004-01-17 Andrew Cagney <cagney@redhat.com>
10487
10488 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10489 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10490 enums.
10491
29182b13
DJ
104922004-01-17 Daniel Jacobowitz <drow@mvista.com>
10493
10494 * remote.c: Update copyright years.
10495
2963ee1d
DJ
104962004-01-17 Daniel Jacobowitz <drow@mvista.com>
10497
10498 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10499
79d45cd4
AC
105002004-01-17 Andrew Cagney <cagney@redhat.com>
10501
ee300cd4
AC
10502 * mdebugread.c: Update copyright.
10503 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10504 (parse_type, parse_procedure): Ditto.
10505 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10506
fcacc9c2
AC
10507 * cris-tdep.c (cris_store_struct_return): Put back accidently
10508 deleted function.
10509
79d45cd4
AC
10510 * gdbarch.sh: Update copyright year.
10511 * gdbarch.h, gdbarch.c: Re-generate.
10512
b263358a
DJ
105132004-01-17 Daniel Jacobowitz <drow@mvista.com>
10514
10515 Suggested by George Anzinger.
10516 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10517 correct stack offset. Include unknown opcode numbers in the error
10518 message.
10519
931aecf5
AC
105202004-01-17 Andrew Cagney <cagney@redhat.com>
10521
10522 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10523 extract_struct_value_address, i386 does not set it.
10524 * sparc64-tdep.c (sparc64_init_abi): Do not set
10525 extract_struct_value_address, never called.
10526 (sparc64_extract_struct_value_address): Delete function.
10527 * m68hc11-tdep.c: Update copyright.
10528 (m68hc11_gdbarch_init): Delete redundant assignment of
10529 extract_struct_value_address.
10530 * i386-tdep.c: Update copyright.
10531 (i386_gdbarch_init): Do not set extract_struct_value_address,
10532 never called.
10533 (i386_extract_struct_value_address): Delete function.
10534 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10535 extract_struct_value_address, never called.
10536 (sparc32_extract_struct_value_address): #if 0 function. Add
10537 comments explaining its future.
10538
756fe439
DJ
105392004-01-17 Daniel Jacobowitz <drow@mvista.com>
10540
10541 * arm-tdep.c (arm_write_pc): New function.
10542 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10543
e74f0f02
DJ
105442004-01-17 Daniel Jacobowitz <drow@mvista.com>
10545
10546 * breakpoint.c (must_shift_inst_regs): Delete.
10547 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10548 and SHIFT_INST_REGS.
10549 * infcmd.c (step_1, step_1_continuation): Delete references to
10550 SHIFT_INST_REGS.
10551 * infrun.c (keep_going): Likewise.
10552 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10553 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10554
b6cb9035
AC
105552004-01-17 Andrew Cagney <cagney@redhat.com>
10556
444a1e2e
AC
10557 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10558 * gdbarch.h, gdbarch.c: Re-generate.
10559 * infcmd.c (print_return_value): Delete reference to
10560 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10561
def7e6ed
AC
10562 * cris-tdep.c (cris_gdbarch_init): Do not set
10563 deprecated_extract_struct_value_address.
10564
07be497a
AC
10565 * xstormy16-tdep.c: Update copyright.
10566 (xstormy16_extract_struct_value_address): Update to current
10567 extract struct value address interface.
10568 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10569 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10570 current extract struct value address interface.
10571 (sh64_gdbarch_init): Set extract_struct_value_address.
10572
6b4d5c91
AC
10573 * cris-tdep.c: Update copyright.
10574 (cris_extract_struct_value_address): Delete function.
10575 (struct_return_address): Delete variable.
10576 (cris_store_struct_return): Do not set struct_return_address.
10577
464e0365
AC
10578 * mcore-tdep.c: Update copyright.
10579 (mcore_extract_struct_value_address): Delete function. Update
10580 comments.
10581 (mcore_gdbarch_init): Update.
10582 * mn10300-tdep.c: Update copyright.
10583 (mn10300_extract_struct_value_address): Delete function.
10584 (mn10300_gdbarch_init): Update.
10585 * v850-tdep.c: Update copyright.
10586 (v850_extract_struct_value_address): Delete.
10587 (v850_gdbarch_init): Update.
10588 * ns32k-tdep.c: Update copyright.
10589 (ns32k_extract_struct_value_address): Delete.
10590 (ns32k_gdbarch_init): Update.
10591 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10592 (hppa_gdbarch_init): Update.
10593 * vax-tdep.c: Update copyright.
10594 (vax_extract_struct_value_address): Delete.
10595 (vax_gdbarch_init): Update.
10596
afb18d0f
AC
10597 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10598 * gdbarch.h, gdbarch.c: Re-generate.
10599 * procfs.c (procfs_fetch_registers): Delete reference to
10600 DEPRECATED_NPC_REGNUM.
10601 (procfs_store_registers): Ditto.
10602 * regcache.c (generic_target_write_pc): Simplify.
10603 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10604
a698f53e
AC
10605 * core-sol2.c (fetch_core_registers): Replace
10606 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10607
adc11376
AC
10608 * hppa-tdep.c: Update copyright year.
10609 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10610 NPC_REGNUM.
10611 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10612
b6cb9035
AC
10613 * mips-tdep.c (mips_write_pc): New function.
10614 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10615 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10616 (mips_find_saved_regs, mips_software_single_step: Ditto.
10617 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10618 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10619
6d82d43b
AC
106202004-01-17 Andrew Cagney <cagney@redhat.com>
10621
10622 * mips-tdep.c: Re-indent. Group functions by ABI.
10623
71bd6bd4
AC
106242004-01-17 Andrew Cagney <cagney@redhat.com>
10625
10626 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10627 * gdbarch.c: Re-generate.
10628 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10629 DECR_PC_AFTER_BREAK to zero.
10630 * vax-tdep.c (vax_gdbarch_init): Ditto.
10631 * v850-tdep.c (v850_gdbarch_init): Ditto.
10632 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10633 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10634 * sh-tdep.c (sh_gdbarch_init): Ditto.
10635 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10636 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10637 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10638 * mips-tdep.c (mips_gdbarch_init): Ditto.
10639 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10640 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10641 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10642 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10643 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10644 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10645 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10646 * frv-tdep.c (frv_gdbarch_init): Ditto.
10647 * cris-tdep.c (cris_gdbarch_init): Ditto.
10648 * avr-tdep.c (avr_gdbarch_init): Ditto.
10649 * arm-tdep.c (arm_gdbarch_init): Ditto.
10650 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10651
a02abb62
JB
106522004-01-17 J. Brobecker <brobecker@gnat.com>
10653
10654 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10655 Delete, no longer used.
10656 (read_subrange_type): New function, mostly extracted from
10657 read_array_type().
10658 (read_array_type): Replace extracted code by call to
10659 read_subrange_type().
10660 (dwarf2_get_attr_constant_value): New function.
10661 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10662 (add_partial_symbol): Likewise.
10663 (process_die): Likewise.
10664 (new_symbol): Likewise.
10665 (read_type_die): Likewise.
10666
cf5b2f1b
AC
106672004-01-16 Andrew Cagney <cagney@redhat.com>
10668
10669 * symfile.c: Update copyright year.
10670 (compare_symbols): Delete unused function.
10671 * stabsread.c: Update copyright year.
10672 (lrs_general_complaint): Delete unused function.
10673 (ref_search_value): Ditto.
10674 (get_substring): Delete declaration.
10675 * sh64-tdep.c: Update copyright year.
10676 (sh64_get_gdb_regnum): Delete unused function.
10677 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10678 Delete unused function.
10679
d33b9831
MK
106802004-01-17 Mark Kettenis <kettenis@gnu.org>
10681
10682 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10683 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10684
7aea86e6
AC
106852004-01-16 Andrew Cagney <cagney@redhat.com>
10686
10687 Changes from Peter Schauer.
10688 * rs6000-tdep.c: Update copyright year.
10689 (rs6000_push_dummy_call): Update the stack pointer before
10690 accessing the corresponding stack region.
10691 * rs6000-nat.c: Update copyright year.
10692 (set_host_arch): Set "info.abfd" to "exec_bfd".
10693
26b0da32
MK
106942004-01-15 Mark Kettenis <kettenis@gnu.org>
10695
10696 * blockframe.c: Update copyright year.
10697 (inside_entry_func): Don't treat a zero PC specially.
10698
86fbe6cc
EZ
106992004-01-14 Elena Zannoni <ezannoni@redhat.com>
10700
10701 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10702 variable.
10703 (gcore_create_callback): Ditto. Skip any memory segment that has
10704 no permissions set.
10705
63d06c5c
DC
107062004-01-14 David Carlton <carlton@kealia.com>
10707
10708 Change symbols for C++ nested types to contain the fully qualified
10709 name, if possible. (At least in the DWARF-2 case.) Partial fix
10710 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10711 c++/895.
10712 * c-exp.y (qualified_type): Handle types nested within classes.
10713 * cp-namespace.c: Update comments.
10714 (cp_set_block_scope): Delete #if 0.
10715 (cp_lookup_nested_type): Handle types nested within classes.
10716 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10717 when appropriate.
10718 (add_partial_symbol): Add the name of the enclosing namespace to
10719 types.
10720 (pdi_needs_namespace): New.
10721 (add_partial_namespace): Tweak comment.
10722 (add_partial_structure): New.
10723 (psymtab_to_symtab_1): Initialize processing_current_prefix
10724 here...
10725 (process_die): instead of here.
10726 (read_structure_scope): Try to figure out the name of the class or
10727 namespace that the structure might be defined within.
10728 (read_enumeration): Generate fully-qualified names, if possible.
10729 (read_namespace): Don't set name to NULL.
10730 (die_specification): New.
10731 (new_symbol): Generate fully-qualified names for types.
10732 (read_type_die): Determine appropriate prefix.
10733 (determine_prefix): New.
10734 (typename_concat): New.
10735 (class_name): New.
10736 * valops.c (value_aggregate_elt): Pass NOSIDE to
10737 value_struct_elt_for_reference.
10738 (value_struct_elt_for_reference): Make static, add NOSIDE
10739 parameter, call value_maybe_namespace_elt as a last resort.
10740 (value_namespace_elt): Break out code into
10741 value_maybe_namespace_elt.
10742 (value_maybe_namespace_elt): New.
10743
87783b8b
AC
107442004-01-12 Andrew Cagney <cagney@redhat.com>
10745
10746 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10747 cooked floating-point registers.
10748 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10749 and value_to_register.
10750
6503b91e
AC
107512004-01-13 Andrew Cagney <cagney@redhat.com>
10752
10753 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10754 * gdbarch.c: Re-generate.
10755 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10756 FUNCTION_START_OFFSET.
10757 * v850-tdep.c (v850_gdbarch_init): Ditto.
10758 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10759 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10760 * sh-tdep.c (sh_gdbarch_init): Ditto.
10761 * s390-tdep.c (s390_gdbarch_init): Ditto.
10762 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10763 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10764 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10765 * mips-tdep.c (mips_gdbarch_init): Ditto.
10766 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10767 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10768 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10769 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10770 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10771 * i386-tdep.c (i386_gdbarch_init): Ditto.
10772 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10773 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10774 * frv-tdep.c (frv_gdbarch_init): Ditto.
10775 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10776 * cris-tdep.c (cris_gdbarch_init): Ditto.
10777 * avr-tdep.c (avr_gdbarch_init): Ditto.
10778 * arm-tdep.c (arm_gdbarch_init): Ditto.
10779 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10780
ea1dd7bc
DJ
107812004-01-13 Daniel Jacobowitz <drow@mvista.com>
10782
10783 * infrun.c (follow_fork_mode_ask): Remove.
10784 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10785 (follow_fork): Simplify and remove internal error for
10786 follow_fork_mode_ask.
10787 (_initialize_infrun): Update "set follow-fork-mode" help text.
10788
0f0cffd2
AC
107892004-01-13 Andrew Cagney <cagney@redhat.com>
10790
10791 * configure.in: Update copyright year.
10792 (build_warnings): Add -Wunused-label.
10793 * configure: Re-generate.
10794
de38af99
AC
107952004-01-12 Andrew Cagney <cagney@redhat.com>
10796
954a7fba
AC
10797 * exec.h (exec_ops): Make "extern".
10798
de38af99
AC
10799 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10800 the function is void.
10801 (mips_pseudo_register_write): Ditto.
10802
1a111ce3
AC
108032004-01-12 Andrew Cagney <cagney@redhat.com>
10804
10805 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10806 call. Never defined.
10807 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10808 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10809 (struct sparc_gregset, struct regcache): Ditto.
10810 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10811
48efe704
AC
108122004-01-12 Andrew Cagney <cagney@redhat.com>
10813
10814 * mi/ChangeLog: Delete file. Renamed to ...
10815 * mi/ChangeLog-1999-2003: New file.
10816 * tui/ChangeLog: Delete file. Renamed to ...
10817 * tui/ChangeLog-1998-2003: New file.
fe61caab 10818
a54124c5
MK
108192004-01-11 Mark Kettenis <kettenis@gnu.org>
10820
2ca62865
MK
10821 * sparc64nbsd-tdep.c: Include "regset.h".
10822 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10823 Remove variables.
10824 (fetch_core_registers): Remove function.
10825 (sparc64nbsd_core_fns): Remove variable.
10826 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10827 functions.
10828 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10829 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10830 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10831
ca9d58e9
MK
10832 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10833 sparc_extract_struct_value_address.
10834 (sparc32_gdbarch_init): Set extract_struct_value_address.
10835 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10836 function.
10837 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10838 return_value_on_stack.
10839
3cc87ec0
MK
10840 * NEWS: Mention that %cs and %ss have been added to the AMD64
10841 configurations
10842
5bf00f29
MK
10843 * frame.c: Update copyright year.
10844 (get_prev_frame): Improve comment.
10845
4f7ec84e
MK
10846 * sparc64fbsd-tdep.c: Include "regset.h".
10847 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10848 Remove variables.
10849 (fetch_core_registers): Remove function.
10850 (sparc64fbsd_core_fns): Remove variable.
10851 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10852 functions.
10853 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10854 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 10855 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 10856
4e7b0cd3
MK
10857 * sparcnbsd-tdep.c: Include "regset.h".
10858 (fetch_core_registers): Remove function.
10859 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
10860 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
10861 functions.
10862 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
10863 TDEP->fpregset.
46b58ce9 10864 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 10865
a54124c5
MK
10866 * sparc-tdep.h (struct regset): Provide opaque declaration.
10867 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
10868 fpregset and sizeof_fpregset members.
10869 * sparc-tdep.c (struct regset): Provide opaque declaration.
10870 (sparc_regset_from_core_section): New function.
10871 (sparc32_gdbarch_init): Initialize TDEP->gregset,
10872 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
10873 Set regset_from_core_section when appropriate.
10874
29ff87c5
MK
108752004-01-10 Mark Kettenis <kettenis@gnu.org>
10876
79b1ab3d
MK
10877 * x86-64-tdep.c (amd64_non_pod_p): New function.
10878 (amd64_classify_aggregate): Return class memory for non-POD
10879 C++ structure types.
10880
6470d250
MK
10881 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
10882 argument. Use it to reserve a register if necessary.
10883 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
10884 amd64_push_arguments.
10885
562c50c2
MK
10886 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
10887
af233647
MK
10888 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
10889 register numbers in comments.
10890 * x86-64-tdep.h: Update copyright year.
10891 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
10892 Adjust for addition of %cs and %ss.
10893 * amd64fbsd-nat.c: Update copyright year.
10894 (reg_offset): Add register offsets for %cs and %ss.
10895 * amd64fbsd-tdep.c: Update copyright year.
10896 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
10897 (amd64fbsd_sc_reg_offset): Likewise.
10898 * x86-64-linux-nat.c: Update copyright year.
10899 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
10900 and %ss.
10901 * amd64nbsd-nat.c: Update copyright year.
10902 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
10903 * amd64nbsd-tdep.c: Update copyright year.
10904 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
10905 * x86-64-linux-tdep.c: Update copyright year.
10906 (user_to_gdb_regmap): Add mapping for %cs and %ss.
10907 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
10908 * regformats/reg-x86-64.dat: Add %cs and %ss.
10909
29ff87c5
MK
10910 * blockframe.c (inside_entry_func): Reformat. Introduce new local
10911 variables to prevent long lines. Update comments to reflect
10912 reality.
10913
38d518c9
EZ
109142004-01-09 David Carlton <carlton@kealia.com>
10915
10916 Checked in by Elena Zannoni <ezannoni@redhat.com>.
10917 * dwarf2read.c (read_namespace): Pull out name-generating code
10918 into namespace_name. Rename previous_namespace to previous_prefix
10919 and processing_current_namespace to processing_current_prefix..
10920 (namespace_name): New function.
10921 (add_partial_symbol): Substitute uses of pdi->name with
10922 actual_name.
10923 * cp-support.h: Rename processing_current_namespace to
10924 processing_current_prefix.
10925 Update copyright year.
10926 * cp-namespace.c: Rename processing_current_namespace to
10927 processing_current_prefix.
10928 Update copyright year.
fe61caab 10929
1e4728e7
AC
109302004-01-09 Andrew Cagney <cagney@redhat.com>
10931
10932 * jv-valprint.c, ser-unix.c: Add missing copyright years.
10933
c77c642a
MK
109342004-01-09 Mark Kettenis <kettenis@gnu.org>
10935
10936 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
10937 complaining.
10938 (process_one_symbol): Deal with N_PATCH stabs.
10939
b44e9041
EZ
109402004-01-09 Elena Zannoni <ezannoni@redhat.com>
10941
10942 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
10943 ifdeffed code.
10944 Update copyright year.
38d518c9 10945
eccfb640
MC
109462004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10947
10948 * config/pa/tm-hppa.h: Update extern declarations for
10949 hppa32_hpux_frame_saved_pc_in_sigtramp,
10950 hppa32_hpux_frame_base_before_sigtramp, and
10951 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
10952
848c5feb
MC
109532004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10954
10955 * config/pa/tm-hppah.h: Update copyright years.
10956
3cc5d663
AC
109572004-01-08 Andrew Cagney <cagney@redhat.com>
10958
10959 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
10960 (mips_o32_reg_struct_has_addr): Delete function.
10961 (mips_gdbarch_init): Update.
10962 (mips_extract_struct_value_address): Delete function.
10963
bfec0b41
JJ
109642004-01-08 David Mosberger <davidm@hpl.hp.com>
10965
10966 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
10967 reality.
10968
16e109ca
AC
109692004-01-07 Andrew Cagney <cagney@redhat.com>
10970
6214a8a1
AC
10971 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
10972 architecture's elf flags (when available).
10973
8d5838b5
AC
10974 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
10975 FPU to the start, check the MIPS FPU when looking for an old
10976 architecture.
10977 (set_mipsfpu_single_command): Update the architecture.
10978 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
10979
480d3dd2
AC
10980 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
10981 (mips_mask_address_p): Add "tdep" parameter.
10982 (show_mask_address, mips_addr_bits_remove): Update.
10983 (mips_dump_tdep): Update.
10984 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
10985 (MIPS_STACK_ARGSIZE): Delete macro.
10986 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
10987 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
10988 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
10989 (mips_dump_tdep): Update.
10990 (MIPS_SAVED_REGSIZE): Delete macro.
10991 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
10992 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
10993 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
10994 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
10995 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
10996 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
10997 (mips_pop_frame, return_value_location): Update.
10998 (mips_n32n64_return_value, mips_dump_tdep): Update.
10999
ec03c1ac
AC
11000 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11001 MIPS ABI.
11002
16e109ca
AC
11003 * mips-tdep.c: Update copyright.
11004 (mips_gdbarch_init): Merge two code blocks handling the register
11005 name and number layout.
11006
15255275
MS
110072004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11008
11009 * tracepoint.c (validate_actionline): Fix segv at EOF
11010
9f9057da
MC
110112004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11012
11013 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11014 properly for static fields.
11015
0127c0d3 110162004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 11017 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
11018
11019 * disasm.c: Update copyright to include 2004.
11020 (do_mixed_source_and_assembly): For uiout asm list
11021 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 11022 NULL and do so prior to loop. Only reset when we close off
0127c0d3 11023 the tuple/list. Move check for whether to close off the
fe61caab 11024 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
11025 on each loop iteration.
11026
5269965e
AC
110272004-01-05 Andrew Cagney <cagney@redhat.com>
11028
54f1137d
AC
11029 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11030 should be a switch case and not a label.
11031 * mips-tdep.c (mips32_next_pc): Delete unused labels
11032 "greater_equal_branch" and "less_zero_branch".
11033 * jv-valprint.c (java_print_value_fields): Delete unused label
11034 "flush_it".
11035
5269965e
AC
11036 * target.c (unpush_target): Only close a target that is in the
11037 target stack.
11038
dbc22fa1
MK
110392004-01-05 Mark Kettenis <kettenis@gnu.org>
11040
9515395e
MK
11041 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11042 address from [sp + 64] instead of %o2.
11043
dbc22fa1
MK
11044 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11045 fixes PR backtrace/1476.
11046
5439edaa
AC
110472004-01-05 Andrew Cagney <cagney@redhat.com>
11048
11049 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11050 move to start of file.
11051 * i386-tdep.h (struct regcache): Add opaque declaration.
11052 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11053 declaration.
11054 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11055 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11056 * win32-nat.c (fake_create_process): Use ISO C style definition.
11057 * stabsread.c (define_symbol): Delete #ifndef
11058 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11059 stabs_argument_has_addr call, macro never defined.
11060
19061abe
MC
110612004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11062
11063 * op50-rom.c: Delete.
11064 * w89k-rom.c: Delete.
11065 * Makefile.in: Remove references.
11066
e53bef9f
MK
110672004-01-04 Mark Kettenis <kettenis@gnu.org>
11068
11069 * x86-64-tdep.c: Update copyright year.
11070 (struct amd64_register_info): Rename from x86_64_register_info.
11071 (amd64_register_info): Rename from x86_64_register_info.
11072 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11073 (amd64_register_name): Rename from x86_64_register_name.
11074 (amd64_register_type): Rename from x86_64_register_type.
11075 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11076 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11077 (amd64_dwarf_reg_to_regnum): Rename from
11078 x86_64_dwarf_reg_to_regnum.
11079 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11080 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11081 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11082 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11083 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11084 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11085 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11086 (amd64_frame_cache): Rename from x86_64_frame_cache.
11087 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11088 (amd64_frame_prev_register): Rename from
11089 x86_64_frame_prev_register.
11090 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11091 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11092 (amd64_sigtramp_frame_cache): Rename from
11093 x86_64_sigtramp_frame_cache.
11094 (amd64_sigtramp_frame_prev_register): Rename from
11095 x86_64_sigtramp_frame_prev_register.
11096 (amd64_sigtramp_frame_unwind): Rename from
11097 x86_64_sigtramp_frame_unwind.
11098 (amd64_sigtramp_frame_sniffer): Rename from
11099 x86_64_sigtramp_frame_sniffer.
11100 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11101 (amd64_frame_base): Rename from x86_64_frame_base.
11102 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11103 (amd64_frame_align): Rename from x86_64_frame_align.
11104 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11105 (amd64_regset_from_core_section): Rename from
11106 x86_64_regset_from_core_section.
11107 (x86_64_init_abi): Update comments.
11108
fca6aa58
NR
111092004-01-04 Nick Roberts <nick@nick.uklinux.net>
11110
11111 * MAINTAINERS (write after approval): Add myself.
11112
8ada74e3
MK
111132004-01-04 Mark Kettenis <kettenis@gnu.org>
11114
11115 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11116 `float' arguments.
11117
5154b0cd
MK
111182004-01-04 Mark Kettenis <kettenis@gnu.org>
11119
11120 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11121 such that it mentions a specific version of GCC that exhibits this
11122 bug.
11123
fb316966
MK
111242004-01-03 Mark Kettenis <kettenis@gnu.org>
11125
200cc553
MK
11126 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11127 structure that has a single `float' member, store it in %f1 in
11128 addition to %f0.
11129
e226a4a0
MK
11130 * sparc-sol2-nat.c: Add missing '\'.
11131
b9d4c5ed
MK
11132 * sparc-tdep.c (sparc32_return_value): New function.
11133 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11134 Remove functions.
11135 (sparc32_gdbarch_init): Set return_value, don't set
11136 extract_return_value, store_return_value, use_struct_convention
11137 and return_value_on_stack.
11138
fb316966
MK
11139 * sparc-sol2-nat.c: Add missing ')'.
11140
1af510a8
JB
111412004-01-03 J. Brobecker <brobecker@gnat.com>
11142
11143 * infrun.c (handle_step_into_function): New function.
11144 (handle_inferior_event): Extract out some code into the new
11145 function above.
11146
5cf4d23a
JB
111472004-01-03 J. Brobecker <brobecker@gnat.com>
11148
11149 * infrun.c (handle_inferior_event): Move the declaration of
11150 real_stop_pc inside the if blocks where it is used.
11151
60af1db2
MK
111522004-01-03 Mark Kettenis <kettenis@gnu.org>
11153
11154 * sparc64-tdep.c (sparc64_16_byte_align_p)
11155 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11156 Use check_typedef to get subtypes of structures and unions.
11157 (sparc64_store_return_value): Fix calculation of the appropriate
11158 offset into VALBUF when storing a structure or union.
11159 (sparc64_return_value): New function.
11160 (sparc64_use_struct_convention): Remove function.
11161 (sparc64_init_abi): Set return_value, don't set
11162 extract_return_value, store_return_value and
11163 use_struct_convention.
11164
1a901d3f
EZ
111652004-01-03 Eli Zaretskii <eliz@elta.co.il>
11166
11167 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11168 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11169 gdb/config/alpha/xm-alphaosf.h,
11170 gdb/config/powerpc/tm-ppcle-eabi.h,
11171 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11172 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11173 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11174 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11175 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11176 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11177 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11178 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11179 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11180 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11181 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11182 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11183 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11184 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11185 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11186 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11187 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11188 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11189 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11190 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11191 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11192 Remove lines for .cvsignore files.
11193
ef52e463
JB
111942004-01-03 J. Brobecker <brobecker@gnat.com>
11195
11196 * infrun.c: Back out the previous change.
11197
cb1bf9dc
MK
111982004-01-03 Mark Kettenis <kettenis@gnu.org>
11199
f0424ef6
MK
11200 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11201 sparc-*-sunos4* to the list of REMOVED configurations.
11202
cb1bf9dc
MK
11203 * configure.tgt: Add back sparc-*-vxworks*.
11204 * remote-vxsparc.c: Remove all includes except for "defs.h",
11205 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11206 Include "sparc-tdep.h".
11207 (SPARC_R_G1): New define.
11208 (vxsparc_gregset): New variable.
11209 (ext_format_sparc): Remove extern declaration.
11210 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11211 sparc32_supply_fpregset.
11212 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11213 sparc_collect_rwindow and sparc32_collect_fpregset.
11214 * config/sparc/tm-vxworks.h: New file, based on recently removed
11215 tm-vxsparc.h.
11216 * config/sparc/vxworks.mt: New file, based on recently removed
11217 vxworks.mt.
fe61caab 11218
5e938f9f
JB
112192004-01-03 J. Brobecker <brobecker@gnat.com>
11220
11221 * infrun.c (handle_step_into_function): New function.
11222 (handle_inferior_event): Extract out some code into the new
11223 function above.
11224
386c036b
MK
112252004-01-02 Mark Kettenis <kettenis@gnu.org>
11226
11227 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11228 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11229 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11230 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11231 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11232 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11233 (sparc_nat_h): New variable.
11234 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11235 (tm-sun4os4.h): Remove dependency.
11236 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11237 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11238 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11239 sparc-tdep.o): Update dependencies.
11240 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11241 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11242 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11243 dependencies.
11244 * configure.host: Remove existing sparc-*-lynxos*,
11245 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11246 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11247 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11248 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11249 triplets.
11250 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11251 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11252 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11253 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11254 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11255 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11256 sparc64-*-solaris2* and sparc64-*-* triplets.
11257 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11258 "symtab.h" and "objfiles.h".
11259 (BIAS): Remove define.
11260 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11261 (X_DISP19): Remove macros.
11262 (sparc_fetch_instruction): Remove function.
11263 (struct gdbarch_tdep): Remove definition.
11264 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11265 (sparc_breakpoint_from_pc): Remove function.
11266 (struct sparc64_frame_cache): Remove definition.
11267 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11268 sparc64_unwind_pc): Remove functions.
11269 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11270 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11271 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11272 (sparc64_frame_cache): Change return type to `struct
11273 sparc_frame_cache *'. Simply call sparc_frame_cache.
11274 (sparc64_frame_this_id, sparc64_frame_prev_register,
11275 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11276 instead of `struct sparc64_frame_cache.
11277 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11278 sparc_analyze_control_transfer, sparc_software_single_step,
11279 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11280 _initialize_sparc64_tdep): Remove functions.
11281 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11282 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11283 macros.
11284 (sparc64_supply_gregset, sparc64_collect_gregset,
11285 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11286 (sparc64_init_abi): New function.
11287 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11288 inclusion guard. Include "sparc-tdep.h".
11289 (BIAS): Define.
11290 (r_tstate_offset, r_fprs_offset): New defines.
11291 (enum sparc_regnum): Remove defenition.
11292 (enum sparc64_regnum): Reformat.
11293 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11294 (sparc64_init_abi, sparc64_supply_gregset,
11295 sparc64_collect_gregset, sparc64_supply_fpregset,
11296 sparc64_collect_fpregset): New prototypes.
11297 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11298 Add extern declarations.
11299 (sparc64_sol2_init_abi): New prototype.
11300 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11301 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11302 prototypes.
11303 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11304 "sparnbsd-nat.h".
11305 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11306 functions.
11307 (_initialize_sparc64fbsd_nat): Remove initialization of
11308 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11309 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 11310 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
11311 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11312 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11313 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11314 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11315 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11316 (sparc64fbsd_r_y_offset): Remove variables.
11317 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11318 Make static and const.
11319 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11320 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11321 functions.
11322 (sparc64fbsd_gregset): New variable.
11323 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11324 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11325 and sparc64_supply_fpregset.
11326 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11327 (sparc64fbsd_sigtramp_frame_this_id)
11328 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11329 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11330 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11331 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11332 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11333 * sparcnbsd-tdep.c: Update copyright year. Include
11334 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11335 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11336 "value.h" and "sparcnbsd-tdep.h".
11337 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11338 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11339 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11340 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11341 defines.
11342 (sparcnbsd_gregset): New variable.
11343 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11344 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11345 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11346 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11347 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11348 variables.
11349 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11350 (sparc32nbsd_sigcontext_frame_this_id)
11351 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11352 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11353 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11354 (sparcnbsd_get_longjmp_target_32,
11355 sparcnbsd_get_longjmp_target_64): Remove functions.
11356 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11357 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11358 sparcnbsd_init_elf): Remove.
11359 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11360 (sparcnbsd_elf_init_abi): New functions.
11361 (_initialize_sparcnbsd_tdep): New prototype.
11362 (_initialize_sparnbsd_tdep): Update.
11363 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11364 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11365 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11366 * config/sparc/linux.mh: Update comment.
11367 (XM_FILE, HOST_IPC): Remove variables.
11368 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11369 sparc-linux-nat.o.
11370 * config/sparc/linux.mt: Update comment.
11371 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11372 * config/sparc/nbsd.mt: Reformat.
11373 * config/sparc/nbsd64.mh: Update comment.
11374 (NATDEPFILES): Add sparc-nat.o.
11375 * config/sparc/nbsd64.mt: Update comment.
11376 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11377 (TM_FILE): Set to tm-nbsd.h.
11378 * config/sparc/nbsdelf.mh: Update comment.
11379 (NATDEPFILES): Add sparc-nat.o.
11380 (XM_FILE): Delete.
11381 * config/sparc/nbsdaout.mh: Update comment.
11382 (NATDEPFILES): Add sparc-nat.o
11383 (XM_FILE): Delete.
11384 * config/sparc/nm-linux.h: Update copyright year. Don't include
11385 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11386 inclusion.
11387 (KERNEL_U_SIZE): Remove define.
11388 (kernel_u_size): Remove prototype.
11389 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11390 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11391 "regcache.h".
11392 (CHILD_PREPARE_TO_STORE): Remove define.
11393 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11394 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11395 sparcnbsd-nat.c: Rewrite files.
11396 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11397 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11398 sparcnbsd-tdep.h: Remove files.
11399 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11400 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11401 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11402 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11403 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11404 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11405 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11406 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11407 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11408 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11409 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11410 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11411 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11412 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11413 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11414 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11415 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11416 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11417 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11418
ee84457a
AC
114192004-01-02 Andrew Cagney <cagney@redhat.com>
11420
11421 From 2003-12-18 Kazuhiro Inaoka:
11422 * configure.host: Add m32r-linux target.
11423
0bc2134e
MC
114242004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11425
11426 * top.c (print_gdb_version): Update year to 2004.
11427
89a72f9c
MM
114282004-01-02 Mark Mitchell <mark@codesourcery.com>
11429
11430 * MAINTAINERS: Add myself to the write-after-approval category.
11431
86b013ed
DJ
114322004-01-02 Daniel Jacobowitz <drow@mvista.com>
11433
11434 From Bernardo Innocenti <bernie@develer.com>:
11435 * configure.tgt: Add uClinux target.
11436
e42c9534
AC
114372004-01-02 Andrew Cagney <cagney@redhat.com>
11438
11439 * utils.c (do_my_cleanups): Make static, add forward declaration.
11440 * defs.h (do_my_cleanups): Delete declaration.
11441
162467d3
EZ
114422004-01-02 Eli Zaretskii <eliz@elta.co.il>
11443
11444 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11445 bfd/ChangeLog-0203.
11446
78434e59
MK
114472004-01-02 Mark Kettenis <kettenis@gnu.org>
11448
11449 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11450 in <machine/reg.h>.
11451 * configure, config.in: Regenerate.
11452
48efe704
AC
11453For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11454tui/ChangeLog-1998-2003.
c906108c
SS
11455\f
11456Local Variables:
11457mode: change-log
11458left-margin: 8
11459fill-column: 74
11460version-control: never
11461End:
This page took 1.091843 seconds and 4 git commands to generate.