2004-08-29 David Lecomber <david@streamline-computing.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7ca2d3a3
DL
12004-08-29 David Lecomber <david@streamline-computing.com>
2
3 Fix PR gdb/648
4 * language.h (enum array_ordering): New enum.
5 * language.h (struct language_defn): New la_array_ordering
6 attribute.
7 * language.c (unknown_language_defn, auto_language_defn)
8 (local_language_defn): Ditto.
9 * ada-lang.c (ada_language_defn): Ditto.
10 * c-lang.c (c_language_defn, cplus_language_defn)
11 (asm_language_defn, minimal_language_defn): Ditto.
12 * f-lang.c (f_language_defn): Ditto.
13 * jv-lang.c (java_language_defn): Ditto.
14 * m2-lang.c (f_language_defn): Ditto.
15 * objc-lang.c (objc_language_defn): Ditto.
16 * p-lang.c (pascal_language_defn): Ditto.
17 * scm-lang.c (scm_language_defn): Ditto.
18 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
19 oriented large to small in type structure.
20 * dwarf2read.c (read_array_order): New function.
21 (read_array_type): Use read_array_order to check row/column
22 major ordering.
23
e354df01
NW
242004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
25
26 * target.c (target_resize_to_sections): Check
27 current_target.to_sections for an old value when updating.
28
9185ddce
JB
292004-08-27 Joel Brobecker <brobecker@gnat.com>
30
31 * procfs.c (dbx_link_bpt_addr): New static global variable.
32 (dbx_link_shadow_contents): New static global variable.
33 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
34 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
35 if we just hit it.
36 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
37 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
38 from run to run.
39 (procfs_create_inferior): Remove syssgi syscall-exit notifications
40 after the inferior has been forked.
41 (remove_dbx_link_breakpoint): New function.
42 (dbx_link_addr): New function.
43 (insert_dbx_link_bpt_in_file): New function.
44 (insert_dbx_link_bpt_in_region): New function.
45 (insert_dbx_link_breakpoint): New function.
46 (proc_trace_syscalls_1): New function, extracted from
47 proc_trace_syscalls.
48 (proc_trace_syscalls): Replace extract code by call to
49 proc_trace_syscalls_1.
50 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
51 is no longer valid.
52
e6742ace
JB
532004-08-25 Jim Blandy <jimb@redhat.com>
54
55 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
56
8fb3e588
AC
572004-08-25 Andrew Cagney <cagney@gnu.org>
58
629a41ee
AC
59 * infrun.c (struct execution_control_state): Delete field
60 "stepping_through_sigtramp".
61 (init_execution_control_state): Do not set same.
62 (context_switch): Do not pass same to save_infrun_state and
63 load_infrun_state.
64 * gdbthread.h (struct thread_info): Delete field
65 stepping_through_sigtramp.
66 (save_infrun_state, load_infrun_state): Delete parameter
67 stepping_through_sigtramp.
68 * thread.c (load_infrun_state, save_infrun_state): Update.
69
8fb3e588
AC
70 * infrun.c: Re-indent. Move expression operators to the beginning
71 of the line. Remove long disabled #if 0 code.
72
49c54768
AC
732004-08-24 Andrew Cagney <cagney@gnu.org>
74
75 * doublest.h (floatformat_ieee_quad): Rename
76 floatformat_ia64_quad.
77 * doublest.c (floatformat_ieee_quad): Rename
78 floatformat_ia64_quad.
79 (_initialize_doublest): Update.
80
5ca2e327
JB
812004-08-24 Jim Blandy <jimb@redhat.com>
82
87808bd6
JB
83 * dwarf2expr.h (struct dwarf_expr_context): New members
84 'num_pieces' and 'pieces', for returning the result of an
85 expression that uses DW_OP_piece.
86 (struct dwarf_expr_piece): New struct type.
87 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
88 pieces.
89 (free_dwarf_expr_context): Free pieces, if any.
90 (add_piece): New function.
91 (execute_stack_op): Implement DW_OP_piece.
92 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
93 expression is a list of pieces, print an error message.
94 (dwarf2_loc_desc_needs_frame): If the expression yields
95 pieces, and any piece is in a register, then we need a frame.
96
5ca2e327
JB
97 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
98 the stack until we've decided what sort of result the evaluation
99 has produced. Use separate variables, with more specific names.
100
2afeb6b8
RE
1012004-08-23 Richard Earnshaw <rearnsha@arm.com>
102
103 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
104 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
105 (arm_netbsd_init_abi_common): Register them.
106
5885ab49
MK
1072004-08-22 Mark Kettenis <kettenis@gnu.org>
108
fda820a6
MK
109 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
110
1c5bf419
MK
111 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
112 safe_frame_unwind_memory instead of target_read_memory.
113
8cbba7c8
MK
114 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
115 Reorder includes.
116 (fetch_register, store_register): Remove prototypes.
117 (child_resume): Reorganize code and comments such that it is
118 grouped a bit more logically.
119 (attach): Explicitly compare errno against 0.
120 (detach): Likewise. Use perror_with_name instead of
121 print_sys_errmsg.
122 * Makefile.in (infptrace.o): Update dependencies.
123
c5fa4245
MK
124 * ia64-linux-nat.c: Update copyright year.
125 (fetch_debug_register, store_debug_register)
126 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
127 PTRACE_TYPE_ARG3.
128 * config/ia64/nm-linux.h: Update copyright year.
129 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
130
387c058c
MK
131 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
132 from CORE_ADDR to struct frame_info *. Use
133 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
134 (amd64_linux_sigtramp_p): Adjust for changed signature of
135 and64_linux_sigtramp_start
136
277215a6
MK
137 * gdb_ptrace.h: GNU/Linux.
138
25f6178e
MK
139 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
140 Remove defines.
141
652fc137
MK
142 * infptrace.c: Include "gdb_assert.h".
143 (PTRACE_XFER_TYPE): Remove define.
144 (offsetof): Only define if U_REGS_OFFSET isn't defined.
145 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
146 Tweak comment.
147 (fetch_inferior_registers, store_inferior_registers): Remove
148 redundant culry braces. Tweak comment. s/regno/regnum.
149 * Makefile.in (infptrace.o): Update dependencies.
150
5885ab49
MK
151 * configure.in: Change test for return type of ptrace to default
152 to `long' instead of `int'.
153 * configure: Regenerate.
154
11003ae3
MK
1552004-08-21 Mark Kettenis <kettenis@gnu.org>
156
6b95110c
MK
157 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
158
bcb3dc3d
MK
159 * configure.in: Check for ttrace function.
160 * configure, config.in: Regenerate.
161
11003ae3
MK
162 * gdb_ptrace.h: New file.
163 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
164 <sys/ptrace.h>.
165 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
166 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
167 (attach): Don't define PT_ATTACH.
168 (detach): Don't define PT_DETACH.
169 * Makefile.in (gdb_ptrace_h): New variable.
170 (infptrace.o): Update dependencies.
171
f8707cac
MK
1722004-08-16 Mark Kettenis <kettenis@gnu.org>
173
174 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
175 instead of `int' if not already defined.
176 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
177 PTRACE_TYPE_ARG3.
178 * infptrace.c (call_ptrace): Revert change that replaced
179 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
180
655c5466
MK
1812004-08-15 Mark Kettenis <kettenis@gnu.org>
182
156e5ba7
MK
183 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
184 Remove defines.
185
de9a9e51
MK
186 * linux-nat.c (kill_inferior): Add missing third and fourth
187 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
188
88800403
MK
189 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
190 PTRACE_TYPE_RET.
191
849a1d7c
MK
192 * proc-why.c (proc_prettyfprint_why): Fix format string.
193
61ad16d1
MK
194 * solib-osf.c (osf_current_sos): Remove unsused label.
195
a6ed5501
MK
196 * configure.in: Add <ncurses/ncurses.h> to the list of possible
197 curses headers.
198 * configure, config.in: Regenerate.
199 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
200 <ncurses/ncurses.h>.
201
016ddeca
MK
202 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
203 * config/nm-nbsd.h: Update copyright year.
204 (PTRACE_ARG3_TYPE): Remove define.
205
49ec097f
MK
206 * sparc-nat.c (fetch_inferior_registers)
207 (store_inferior_registers, sparc_xfer_wcookie):
208 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
209
9f8e0089
MK
210 * alphabsd-nat.c (fetch_inferior_registers):
211 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
212 PTRACE_TYPE_ARG3.
213 * amd64bsd-nat.c (fetch_inferior_registers)
214 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
215 PTRACE_TYPE_ARG3.
216 * armnbsd-nat.c: Update copyright year.
217 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
218 (store_register, store_regs, store_fp_register, store_fp_regs):
219 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
220 * hppabsd-nat.c (fetch_inferior_registers)
221 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
222 PTRACE_TYPE_ARG3.
223 * i386bsd-nat.c (fetch_inferior_registers)
224 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
225 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
226 * m68kbsd-nat.c (fetch_inferior_registers)
227 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
228 PTRACE_TYPE_ARG3.
229 * m88kbsd-nat.c (fetch_inferior_registers)
230 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
231 PTRACE_TYPE_ARG3.
232 * mipsnbsd-nat.c: Update copyright year.
233 (fetch_inferior_registers, store_inferior_registers):
234 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
235 * ns32knbsd-nat.c: Update copyright year.
236 (fetch_inferior_registers, store_inferior_registers):
237 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
238 * ppcnbsd-nat.c (fetch_inferior_registers):
239 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
240 PTRACE_TYPE_ARG3.
241 * ppcobsd-nat.c (fetch_inferior_registers):
242 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
243 PTRACE_TYPE_ARG3.
244 * shnbsd-nat.c: Update copyright year.
245 (fetch_inferior_registers, store_inferior_registers):
246 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
247 * vaxbsd-nat.c (fetch_inferior_registers)
248 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
249 PTRACE_TYPE_ARG3.
250
655c5466
MK
251 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
252 PTRACE_TYPE_ARG3.
253 * infptrace.c (call_ptrace, child_resume, attach, detach)
254 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
255 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
256 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
257 PTRACE_TYPE_ARG3.
258
c40d0d10
MK
2592004-08-14 Mark Kettenis <kettenis@gnu.org>
260
5cb0ff31
MK
261 * defs.h: Remove out-of-date comment.
262 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
263 [!GETENV_PROVIDED] (getenv): Remove prototype.
264
5f0f34cb
MK
265 * standalone.c: Remove file.
266 * Makefile.in (standalone.o): Remove dependency.
267
7532965f
MK
268 * i386-linux-nat.c (dummy_sse_values): Remove function and
269 prototype.
270 (i386_linux_dr_get): Fix typo in comment.
271 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
272
1bdc6c53
MK
273 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
274
c40d0d10
MK
275 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
276 from declaration.
277 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
278 from definition.
279
64218d3e
MK
2802004-08-13 Mark Kettenis <kettenis@gnu.org>
281
282 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
283 parenthesis in definition.
284 * configure: Regenerated.
285
926c94e7
MC
2862004-08-12 Michael Chastain <mec.gnu@mindspring.com>
287
288 * PROBLEMS: Mention build/1411.
289
69489883
NN
2902004-08-09 Robert Millan <robertmh@gnu.org>
291
292 Committed by Nathanael Nerode.
293 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
294 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
295
ebb7c577
AC
2962004-08-12 Andrew Cagney <cagney@gnu.org>
297
298 * NEWS: Mention fixes in GDB 6.2.1.
299 * PROBLEMS: Remove mention of mips-irix.
300
232d697c
JB
3012004-08-11 Joel Brobecker <brobecker@gnat.com>
302
303 * config/powerpc/xm-aix.h: Delete.
304 * config/powerpc/aix.mh (MH_FILE): Remove.
305 * config/powerpc/aix432.mh (MH_FILE): Remove.
306
72f4e82b
JB
3072004-08-11 Joel Brobecker <brobecker@gnat.com>
308
309 * config/powerpc/aix.mh: Remove obsolete comment.
310 * config/powerpc/aix432.mh: Likewise.
311
0687ccb2
JB
3122004-08-11 Joel Brobecker <brobecker@gnat.com>
313
314 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
315
dbf3ada7
JB
3162004-08-11 Joel Brobecker <brobecker@gnat.com>
317
e08e1886
JB
318 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
319 this file is now empty.
320 * config/xm-aix4.h: Remove, this file is no longer included
321 anywhere.
322
3232004-08-11 Joel Brobecker <brobecker@gnat.com>
324
325 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
326 that file is now empty.
dbf3ada7
JB
327 (termdef): Remove prototype, function no longer used.
328
4c525ef6
JB
3292004-08-11 Joel Brobecker <brobecker@gnat.com>
330
331 * doc/gdbint.texinfo (Host Definition): Remove documentation
332 for USE_O_NOCTTY, no longer used.
333 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
334 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
335
82e0b968
JB
3362004-08-11 Joel Brobecker <brobecker@gnat.com>
337
338 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
339 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
340 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
341
f2acbe1c
MK
3422004-08-11 Mark Kettenis <kettenis@gnu.org>
343
daa98270
MK
344 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
345 instead of FIVE_ARG_PTRACE.
346
f2acbe1c
MK
347 * inflow.c (O_NOCTTY): Define to zero if not already defined.
348 (new_tty): Use O_NOCTTY unconditionally.
349
cc377e6b
MK
3502004-08-10 Mark Kettenis <kettenis@gnu.org>
351
352 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
353 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
354 fflush on stdout.
355
3bcc18fa
JB
3562004-08-10 Joel Brobecker <brobecker@gnat.com>
357
358 * xcoff_symfile_finish: Replace last call to xmfree by call
359 to xfree.
360
7936743b
AC
3612004-08-10 Andrew Cagney <cagney@gnu.org>
362
cc503c8a
AC
363 * main.c (captured_main): Delete call to init_malloc.
364 * defs.h (init_malloc): Delete declaration.
365 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
366 (init_malloc): Delete functions.
367
2dc74dc1
AC
368 * defs.h (xmfree): Delete.
369 * utils.c (xmfree): Delete function.
370 (xfree): Inline calls to xmfree and mfree.
371 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
372 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
373 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
374 * somread.c (som_symfile_finish): Ditto.
375 * objfiles.c (allocate_objfile, free_objfile):
376 * nlmread.c (nlm_symfile_finish): Ditto.
377 * hpread.c (hpread_symfile_finish): Ditto.
378 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
379 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
380 * coffread.c (coff_symfile_finish): Ditto.
381
aa2ee5f6
AC
382 * defs.h (xmcalloc): Delete declaration.
383 * utils.c (xmcalloc): Delete.
384 (xcalloc): Inline calls to xmcalloc and mcalloc.
385 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
386 xcalloc and xfree.
387 * symtab.c (create_demangled_names_hash): Ditto.
388
0efffb96
AC
389 * defs.h (xmrealloc): Delete.
390 * utils.c (xmrealloc): Delete.
391 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
392 * symmisc.c (extend_psymbol_list): Use xrealloc.
393 * source.c (find_source_lines): Ditto.
394 * hpread.c (hpread_lookup_type): Ditto.
395 * dbxread.c (add_bincl_to_list): Ditto.
396
7936743b
AC
397 * utils.c (xmmalloc): Delete.
398 (xmalloc): Inline xmmalloc and mmalloc calls.
399 (msavestring): Use xmalloc.
400 * defs.h (xmmalloc): Delete declaration.
401 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
402 xmmalloc.
403 * symmisc.c (extend_psymbol_list): Ditto.
404 * symfile.c (init_psymbol_list): Ditto.
405 * source.c (find_source_lines): Ditto.
406 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
407 * elfread.c (elf_symtab_read): Ditto.
408 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
409 * coffread.c (coff_symfile_init): Ditto.
410
252ab814
DC
4112004-08-10 David Carlton <carlton@bactrian.org>
412
413 * MAINTAINERS: Remove David Carlton from c++ testsuite
414 maintainers.
415
8f5ba92b
JG
4162004-08-10 Jerome Guitton <guitton@gnat.com>
417
418 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
419 print a line feed before the prompt.
420
21749010
MK
4212004-08-10 Mark Kettenis <kettenis@gnu.org>
422
423 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
424
1f011ce2
JB
4252004-08-09 Joel Brobecker <brobecker@gnat.com>
426
427 General cleanup of the AIX xm include file:
428 * config/xm-aix4.h (fd_set): Remove undefine.
429 Remove include of <sys/select.h>.
430 (HAVE_TERMIO): Remove define.
431 (USG): Likewise.
432 (NULL): Remove redefine.
433 (alloca): Remove #pragma.
434 (vfork): Remove define.
435 (termdef): Remove.
436 (SIGWINCH_HANDLER): Remove.
437 (SIGWINCH_HANDLER_BODY): Remove.
438
cf4e7692
MK
4392004-08-09 Mark Kettenis <kettenis@gnu.org>
440
441 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
442 GDB_OSABI_OPENBSD_ELF.
443
ac5754fa
MK
4442004-08-07 Robert Millan <robertmh@gnu.org>
445
446 * bsd-kvm.c: Check for nlist.h before including it.
447
086ec9eb
MK
4482004-08-09 Mark Kettenis <kettenis@gnu.org>
449
bbe06c74
MK
450 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
451 sigcontext' offset consistency checks for ancient BSD.
452
3aa7b3b3
MK
453 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
454
086ec9eb
MK
455 * configure.in: Check for <sys/types.h>. Check return and
456 argument types of ptrace.
457 * configure, config.in: Regenerate.
458
09991fa0
JB
4592004-08-09 Jim Blandy <jimb@redhat.com>
460
461 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
462 rs6000_register_sim_regno): Doc fixes.
463
fed7ba43
JB
4642004-08-08 Joel Brobecker <brobecker@gnat.com>
465
466 * mips-tdep.c: Include "floatformat.h".
467 (n32n64_floatformat_always_valid): New function.
468 (floatformat_n32n64_long_double_big): New constant.
469 (mips_gdbarch_init): Set size and format of long double
470 for N32 and N64 ABIs.
471 * Makefile.in (mips-tdep.o): Update dependencies.
472
456fcf94
AC
4732004-08-08 Andrew Cagney <cagney@gnu.org>
474
2f9b146e
AC
475 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
476 print. Improve script's error messages.
477 * gdbarch.h: Re-generate.
478
456fcf94
AC
479 * gdbarch.sh (pformat): New function.
480 (float_format, double_format, long_double_format): List with bit
481 members. Use pformat when printing.
482 * gdbarch.c, gdbarch.h: Re-generate.
483
69e9e646
NW
4842004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
485
486 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
487 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
488 (ppcnbsd_supply_pcb): New function.
489 (_initialize_ppcnbsd_nat): New prototype and function.
490 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
491 (LOADLIBES): New variable.
492 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
493
5ef2d0aa
AC
4942004-08-08 Andrew Cagney <cagney@gnu.org>
495
496 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
497 (builtin_type_ieee_double, builtin_type_ia64_quad)
498 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
499 BE/LE floating-point types.
500 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
501 (builtin_type_ieee_double, builtin_type_ia64_quad)
502 (builtin_type_ia64_spill): Declare.
503 * doublest.c (_initialize_doublest, floatformat_ieee_single)
504 (floatformat_ieee_double, floatformat_arm_ext)
505 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
506 of LE/BE floatformats.
507 * doublest.h: (struct floatformat, floatformat_ieee_single)
508 (floatformat_ieee_double, floatformat_arm_ext)
509 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
510
5c7f2947
MK
5112004-08-08 Mark Kettenis <kettenis@gnu.org>
512
ecac404d
MK
513 * i386gnu-nat.c (gnu_store_registers): Fix typo.
514
9b8607ce
MK
515 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
516 instead of regcache_raw_supply when storing the registers.
517
f6052080
MK
518 * i386gnu-nat.c: Update copyright year.
519 (gnu_store_registers): Don't use deprecated_registers and
520 deprecated_registers_valid. Use regcache_valid_p and
521 regcache_raw_supply instead.
522
17777823
MK
523 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
524 frame_pc_unwind.
525
5240ceac
MK
526 * procfs.c (procfs_pid_to_str): Remove redundant and unused
527 variables. Incapitalized "process".
528
5c7f2947
MK
529 * configure.in: Add cursesX to the list of possible curses libs.
530 Add cursesX.h to the list of possible curses headers.
531 * configure, config.in: Regenerate.
532
da7d81e3
NW
5332004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
534
535 * configure.in: Test for struct lwp in <sys/lwp.h>.
536 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
537 the offset of l_addr in struct lwp.
538
7f245d65
NW
5392004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
540
541 * bsd-kvm.c: Include "gdbcore.h"
542 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
543
47b3f456
AC
5442004-08-07 Andrew Cagney <cagney@gnu.org>
545
70bd8e24
AC
546 * gdbtypes.c (build_flt, build_complex): New functions.
547 (gdbtypes_post_init): Use.
548
9b0dea39
AC
549 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
550
5cf7abac
AC
551 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
552 through to builtin_type_uint128.
553
64d2b26d
AC
554 * c-exp.y: Use builtin_type function to obtain builtin types.
555
7ad6570d
AC
556 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
557 builtin_uint128.
558 * gdbtypes.c (gdbtypes_post_init): Update.
559 (build_gdbtypes): Move initialization of builtin_type_int0
560 through to builtin_type_uint128 from here ...
561 (_initialize_gdbtypes): ... to here.
562 * d10v-tdep.c (d10v_register_type): Update.
563
47b3f456
AC
564 * doublest.c: Update copyright.
565 (floatformat_from_length): Call error when floatformat is NULL.
566 (extract_floating_by_length): Remove NULL fmt check.
567 (store_floating_by_length): Ditto.
568
0a8146bf
AC
5692004-08-07 Andrew Cagney <cagney@gnu.org>
570
571 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
572 that the register is valid.
573
c0ccb908
MK
5742004-08-05 Mark Kettenis <kettenis@chello.nl>
575
8e6bed05
MK
576 * i386-linux-tdep.c (i386_linux_sigtramp_start)
577 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
578 struct frame_info *. Use safe_frame_unwind_memory instead of
579 deprecated_read_memory_nobpt.
580 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
581 changed signature of i386_linux_sigtramp_start and
582 i386_linux_rt_sigtramp_start.
583
24f9f5e3
MK
584 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
585 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
586 instead of deprecated_read_memory_nobpt.
587 (i386nbsd_sigtramp_p): Adjust for changed signature of
588 i386nbsd_sigtramp_offset.
589
c822af0c
MK
590 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
591 safe_frame_unwind_memory instead of target_read_memory.
592
c0ccb908
MK
593 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
594 !NO_SYS_FILE.
595 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
596 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
597 (_initialize_kernel_u_addr): Remove prototype and function.
598 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
599 !NO_SYS_FILE.
600 * xcoffread.c: Likewise.
601
b9e1c0d6
MK
6022004-08-06 Mark Kettenis <kettenis@gnu.org>
603
604 * vax-nat.c: New file.
605 * vaxbsd-nat.c: Tweak comment.
606 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
607 vaxnbsd-tdep.c.
608 (vax-nat.o): New dependency.
609 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
610 (vax-*-ultrix2*): Remove.
611 * config/vax/vax.mh: New file.
612 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
613 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
614 (vax_register_u_addr): New prototype.
615 (REGISTER_U_ADDR): Define using vax_register_u_addr.
616 * config/vax/vaxult2.mh: Remove file.
617 * config/vax/vaxult.mh: Remove file.
618 * config/vax/vaxbsd.mh: Remove file.
619 * config/vax/vax.mt (TM_FILE): Remove.
620 * config/vax/tm-vaxbsd.h: Remove file.
621
9ad7bec7
JB
6222004-08-06 Joel Brobecker <brobecker@gnat.com>
623
624 * aix-thread.c (get_signaled_thread): New function.
625 (iter_trap): Delete, no longer used.
626 (iter_tid): New function.
627 (pd_update): Find the thread that received the SIGTRAP signal
628 by first locating the kernel thread, and then finding its
629 associated thread.
630
bf0d233d
UW
6312004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
632
633 * lin-lwp.c (child_wait): Continue inferior after processing
634 PTRACE_EVENT_CLONE event.
635
d0f853e1
NN
6362004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
637
638 * MAINTAINERS: Add self to Write-After-Approval.
639
ab14aeb0
JJ
6402004-08-05 Jeff Johnston <jjohnstn@redhat.com>
641
642 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
643 libunwind-xxxx.so" where xxxx is UNW_TARGET.
644
9c8dbfa9
AC
6452004-08-05 Andrew Cagney <cagney@gnu.org>
646
c8f3ca46
AC
647 * config/xm-sysv4.h: Delete file.
648 * config/mips/xm-irix5.h: Delete file.
649 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
650 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
651 * config/ia64/xm-aix.h: Delete file.
652 * config/ia64/aix.mh (XM_FILE): Delete.
653 * config/pa/xm-hppah.h: Delete file.
654 * config/pa/hpux11w.mh (XM_FILE): Delete.
655 * config/pa/hpux11.mh (XM_FILE): Delete.
656 * config/pa/hpux1020.mh (XM_FILE): Delete.
657 * config/pa/hppahpux.mh (XM_FILE): Delete.
658
5f7daaff
AC
659 * config/alpha/xm-alphalinux.h: Delete file.
660 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
661 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
662 * config/alpha/xm-alphaosf.h: Delete file.
663 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
664 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
665 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
666 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
667
69babf95
AC
668 * config/i386/xm-i386v.h: Delete file.
669 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
670 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
671 * config/i386/xm-i386sco.h: Delete file.
672 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
673 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
674 * config/i386/xm-i386v4.h: Delete file.
675 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
676 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
677 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
678 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
679
6f009c8a
AC
680 * config/vax/xm-vax.h: Delete file.
681 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
682 * config/vax/xm-vaxult2.h: Delete file.
683 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
684 * config/vax/vaxult2.mh (XM_FILE): Delete.
685 * config/vax/xm-vaxult.h: Delete file.
686 * config/vax/vaxult.mh (XM_FILE): Delete.
687 * config/vax/xm-vaxbsd.h: Delete file.
688 * config/vax/vaxbsd.mh (XM_FILE): Delete.
689
9c8dbfa9
AC
690 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
691 * gdbarch.h, gdbarch.c: Re-generate.
692 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
693 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
694 * frame.h: Delete deprecated_read_fp from comments.
695 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
696 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
697
84367a3e
MK
6982004-08-04 Mark Kettenis <kettenis@gnu.org>
699
9c8e3411
MK
700 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
701 trampoline in OpenBSD 3.5-current.
702
b87bc0d8
MK
703 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
704 SSE registers.
705
84367a3e
MK
706 * Makefile.in: Remove embedded page breaks.
707
a44bddec
JB
7082004-08-04 Jim Blandy <jimb@redhat.com>
709
7ab3286f
JB
710 * regcache.c (regcache_raw_read): Assert that, after calling
711 target_fetch_registers, the register we're reading is cached.
712
a44bddec
JB
713 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
714 a call to 'internal_error', with a more helpful error message.
715 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 716 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 717
35124113
AC
7182004-08-04 Andrew Cagney <cagney@gnu.org>
719
720 * Makefile.in: Update dependencies.
721
9f643768
JB
7222004-08-04 Jim Blandy <jimb@redhat.com>
723
6ced10dd
JB
724 Change the layout of the PowerPC E500 raw register cache to allow
725 the lower 32-bit halves of the GPRS to be their own raw registers,
726 not pseudoregisters.
727 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
728 add ppc_ev0_upper_regnum flag.
729 * rs6000-tdep.c: #include "reggroups.h".
730 (spe_register_p): Recognize the ev upper half registers as SPE
731 registers.
732 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
733 registers.
734 (e500_move_ev_register): New function.
735 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
736 vector registers are the pseudo-registers now, formed by splicing
737 together the gprs and the upper-half registers.
738 (e500_register_reggroup_p): New function.
739 (P): Macro deleted.
740 (P8, A4): New macro.
741 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
742 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
743 macros.
744 (registers_e500): Rearrange register set so that the raw register
745 set contains 32-bit GPRs and upper-half registers, and the SPE
746 vector registers become pseudo-registers.
747 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
748 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
749 register numbers are now the same for the E500 as they are for
750 other PowerPC variants. Register e500_register_reggroup_p as the
751 register group function for the E500.
752 * Makefile.in (rs6000-tdep.o): Update dependencies.
753
754 Adapt PPC E500 native support to the new raw regcache layout.
755 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
756 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
757 (fetch_spe_register, store_spe_register): Handle fetching/storing
758 all the SPE registers at once, if regno == -1. These now take
759 over the job of fetch_spe_registers and store_spe_registers.
760 (fetch_spe_registers, store_spe_registers): Deleted.
761 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
762 unconditionally; they're always raw. Fetch/store SPE upper half
763 registers, if present, instead of ev registers.
764 (fetch_register, store_register): Remove sanity checks: gprs are
765 never pseudo-registers now, so we never need to even mention any
766 registers that are ever pseudoregisters.
767
9f643768
JB
768 Use a fixed register numbering when communicating with the PowerPC
769 simulator.
770 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
771 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
772 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
773 New functions.
774 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
775 init_sim_regno_table.
776 * Makefile.in (gdb_sim_ppc_h): New variable.
777 (rs6000-tdep.o): Update dependencies.
778
1e2279c8
AC
7792004-08-02 Andrew Cagney <cagney@gnu.org>
780
1d94326f
AC
781 * cris-tdep.c (cris_register_size): Restore function, still used
782 locally.
783
331ae7ed
AC
784 * gdbarch.sh (deprecated_target_read_fp)
785 (deprecated_frame_locals_address, deprecated_frame_args_address)
786 (deprecated_frame_chain_valid, deprecated_frame_chain)
787 (deprecated_init_extra_frame_info, deprecated_pop_frame)
788 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
789 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
790 * gdbarch.h, gdbarch.c: Re-generate.
791 * regcache.c (deprecated_read_fp): Do not call
792 DEPRECATED_TARGET_READ_FP_P.
793 * infcmd.c (default_print_registers_info): Do not call
794 DEPRECATED_DO_REGISTERS_INFO.
795 * frame-base.c (default_frame_locals_address): Do not call
796 DEPRECATED_FRAME_LOCALS_ADDRESS.
797 (default_frame_args_address): Do not call
798 DEPRECATED_FRAME_ARGS_ADDRESS.
799
1e2279c8
AC
800 * gdbarch.sh (deprecated_register_raw_size)
801 (deprecated_register_virtual_size:int): Delete.
802 * gdbarch.h, gdbarch.c: Re-generate.
803 * cris-tdep.c (cris_register_size): Delete.
804 (cris_gdbarch_init): Update.
805 * alpha-tdep.c (alpha_register_raw_size)
806 (alpha_register_virtual_size): Delete.
807 (alpha_gdbarch_init): Update.
808
a90c06b4
AC
809 * gdbarch.sh (deprecated_register_virtual_type)
810 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
811 (deprecated_dummy_write_sp): Delete.
812 * gdbarch.h, gdbarch.c: Re-generate.
813
f42accbe
AC
814 * gdbarch.sh (deprecated_register_bytes): Delete.
815 * gdbarch.h, gdbarch.c: Re-generate.
816 * regcache.c (deprecated_register_bytes): New function.
817 * regcache.h (deprecated_register_bytes): Declare.
818 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
819 * v850-tdep.c (v850_gdbarch_init): Update.
820 * sh64-tdep.c (sh64_gdbarch_init): Update.
821 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
822 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
823 * mcore-tdep.c (mcore_gdbarch_init): Update.
824 * cris-tdep.c (cris_gdbarch_init): Update.
825 * arm-tdep.c (arm_gdbarch_init): Update.
826 * remote.c (init_remote_state): Update.
827 * remote-vx.c (vx_prepare_to_store): Update.
828 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
829 * irix5-nat.c (fetch_core_registers): Update.
830 * cris-tdep.c (cris_register_bytes_ok): Update.
831 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
832
45c9dd44
AC
833 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
834 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
835 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
836 (mips_insn16_frame_base_address, mips_insn16_frame_base)
837 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
838 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
839 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
840 (mips_insn32_frame_base_address, mips_insn32_frame_base)
841 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
842 with mips_insn16 and mips_insn32.
843
3acba339
AC
844 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
845 * rs6000-tdep.c (rs6000_push_dummy_call)
846 (rs6000_extract_return_value): Use register_size.
847 * xstormy16-tdep.c (xstormy16_get_saved_register)
848 (xstormy16_extract_return_value): Ditto.
849 * valops.c (value_assign): Ditto.
850 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
851 * v850-tdep.c (v850_extract_return_value): Ditto.
852 * tracepoint.c (collect_symbol): Ditto.
853 * target.c (debug_print_register): Ditto.
854 * stack.c (frame_info): Ditto.
855 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
856 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
857 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
858 (store_register_using_P): Ditto.
859 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
860 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
861 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
862 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
863 * regcache.c (deprecated_read_register_bytes)
864 (deprecated_write_register_bytes, read_register)
865 (write_register): Ditto.
866 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
867 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
868 * monitor.c (monitor_supply_register, monitor_fetch_register)
869 (monitor_store_register): Ditto.
870 * mn10300-tdep.c (mn10300_pop_frame_regular)
871 (mn10300_print_register): Ditto.
872 * mipsv4-nat.c (fill_fpregset): Ditto.
873 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
874 (mips64_fill_fpregset): Ditto.
875 * mi/mi-main.c (register_changed_p, get_register)
876 (mi_cmd_data_write_register_values): Ditto.
877 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
878 * irix5-nat.c (fill_gregset, fetch_core_registers):
879 * infrun.c (write_inferior_status_register): Ditto.
880 * infptrace.c (fetch_register, store_register): Ditto.
881 * infcmd.c (default_print_registers_info): Ditto.
882 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
883 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
884 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
885 * hpux-thread.c (hpux_thread_fetch_registers)
886 (hpux_thread_store_registers): Ditto.
887 * hppah-nat.c (store_inferior_registers, fetch_register):
888 * findvar.c (value_from_register): Ditto.
889 * dve3900-rom.c (fetch_bitmapped_register):
890 * cris-tdep.c (cris_gdbarch_init): Ditto.
891 * alpha-tdep.h: Ditto.
892 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
893
01e1877c
AC
894 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
895 DEPRECATED_REGISTER_RAW_SIZE from comments.
896 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
897 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
898 DEPRECATED_REGISTER_RAW_SIZE.
899 * findvar.c (value_of_register): Simplify by assuming that the
900 registers raw and virtual sizes are identical.
901 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
902 comment.
903 * arch-utils.c (generic_register_size): Simplify by assuming
904 register_type.
905
73f458fb
AC
906 * regcache.c (legacy_read_register_gen, real_register)
907 (legacy_write_register_gen): Delete, not used.
908
336a3131
AC
909 * regcache.c (struct regcache_descr): Delete legacy_p.
910 (init_legacy_regcache_descr): Delete function.
911 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
912 Do not use deprecated register functions.
913 (regcache_raw_read, deprecated_write_register_gen):
914 (deprecated_read_register_gen, regcache_raw_write): Delete code
915 predicated on legacy_p.
916 (register_size): Delete check against register raw size.
917
c1d546cd
AC
918 * cris-tdep.c (cris_register_type): Replace
919 cris_register_virtual_type.
920 (cris_gdbarch_init): Update, set register_type.
921
48c2c0a6
AC
922 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
923 * gdbarch.h, gdbarch.c: Re-generate.
924 * arm-tdep.c (arm_frameless_function_invocation): Delete.
925 (arm_gdbarch_init) Do not set frameless function invocation.
926 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
927 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
928 * frv-tdep.c (frv_frameless_function_invocation): Delete.
929 (frv_gdbarch_init): Do not set frameless function invocation.
930 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
931 * sh-tdep.c (sh_gdbarch_init): Ditto.
932 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
933 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
934 * avr-tdep.c (avr_gdbarch_init): Ditto.
935
474093a6
AC
936 * blockframe.c (legacy_frame_chain_valid): Delete function.
937
3c109c8b
AC
938 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
939 and pc. Update comments.
940 (pc_in_dummy_frame): Delete function.
941 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
942 use the "id".
943 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
944 call_hi, top and pc, use the id.
945 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
946
96860204
AC
947 * dummy-frame.c: Include "gdb_string.h".
948 (generic_save_call_dummy_addr, generic_push_dummy_frame)
949 (generic_save_dummy_frame_tos): Delete.
950 (dummy_frame_push): New function, replaces above.
951 * dummy-frame.h: Update copyright.
952 (dummy_frame_push): Declare.
953 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
954 (generic_save_call_dummy_addr): Delete declarations.
955 * infcall.c: Include "dummy-frame.h".
956 (call_function_by_hand): Add locals caller_regcache,
957 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
958 with call to frame_save_as_regcache plus cleanup. Delete calls to
959 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
960 Move clear_proceed_status to just before the resume, add call to
961 dummy_frame_push (discard cleanup).
962 * Makefile.in (infcall.o): Add $(dummy_frame_h).
963 (dummy-frame.o): Add $(gdb_string_h).
964
d67ec5db
AC
9652004-08-01 Andrew Cagney <cagney@gnu.org>
966
967 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
968 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
969 * dummy-frame.c (find_dummy_frame): Delete.
970 (struct dummy_frame_cache, dummy_frame_sniffer)
971 (dummy_frame_prev_register, dummy_frame_this_id)
972 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
973 frame unwinder using a dummy_frame_cache.
974
a81dcb05
AC
9752004-08-01 Andrew Cagney <cagney@gnu.org>
976
977 * frame.h (frame_save_as_regcache): Declare.
978 * frame.c (frame_save_as_regcache): New function.
979 (do_frame_read_register): Replace do_frame_unwind_register.
980 (frame_pop): Use frame_save_as_regcache.
981 * dummy-frame.c (generic_push_dummy_frame): Use
982 frame_save_as_regcache.
983
aa495d11
JB
9842004-08-01 Joel Brobecker <brobecker@gnat.com>
985
986 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
987 file as included until we record the first line in the linetable.
988
ff65ac78
AC
9892004-08-01 Andrew Cagney <cagney@gnu.org>
990
991 * frame.h (deprecated_pop_dummy_frame)
992 (deprecated_read_register_dummy)
993 (deprecated_generic_find_dummy_frame): Delete.
994 * dummy-frame.c (deprecated_generic_find_dummy_frame)
995 (deprecated_read_register_dummy)
996 (deprecated_find_dummy_frame_regcache)
997 (discard_innermost_dummy)
998 (deprecated_pop_dummy_frame): Delete.
999 (dummy_frame_this_id): Simplify.
1000 (struct dummy_frame): Delete "fp" and "sp".
1001 (find_dummy_frame): Simplify.
1002 (generic_push_dummy_frame): Do not set "fp" or "sp".
1003 (fprint_dummy_frames): Do not print "fp" and "sp"
1004
37bdc87e
MK
10052004-08-01 Mark Kettenis <kettenis@gnu.org>
1006
1007 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1008 (struct i386_insn): New structure.
1009 (i386_match_insn): New function.
1010 (i386_frame_setup_skip_insns): New variable.
1011 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1012 array i386_frame_setup_insns of instructions that should be
1013 skipped inside the frame setup sequence.
1014
8241eaa6
AC
10152004-08-01 Andrew Cagney <cagney@gnu.org>
1016
5bc602c7
AC
1017 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1018 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1019 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1020 * stack.c (frame_info): Delete references to
1021 DEPRECATED_FRAME_INIT_SAVED_REGS and
1022 deprecated_get_frame_saved_regs.
1023 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1024 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1025 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1026 (frame_unwind_register_signed)
1027 (frame_unwind_register_unsigned)
1028 (frame_unwind_unsigned_register): Use register_size.
1029 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1030 (deprecated_frame_xmalloc_with_cleanup)
1031 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1032 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1033
03d363a1
AC
1034 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1035 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1036 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1037 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1038
8241eaa6
AC
1039 * infcall.c (call_function_by_hand): Do not use
1040 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1041 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1042 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1043 DEPRECATED_STACK_ALIGN.
1044
f00df8b7
AC
10452004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1046
1047 Committed by Andrew Cagney.
1048 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1049
eec63939
AC
10502004-08-01 Andrew Cagney <cagney@gnu.org>
1051
1052 * mips-tdep.c (mips16_frame_cache)
1053 (mips16_frame_this_id, mips16_frame_prev_register)
1054 (mips16_frame_unwind, mips16_frame_sniffer)
1055 (mips16_frame_base_address, mips16_frame_base)
1056 (mips16_frame_base_sniffer, mips32_frame_cache)
1057 (mips32_frame_this_id, mips32_frame_prev_register)
1058 (mips32_frame_unwind, mips32_frame_sniffer)
1059 (mips32_frame_base_address, mips32_frame_base)
1060 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1061 separate heuristic mips16 and mips32 unwinders.
1062 (mips_stub_frame_cache, mips_stub_frame_this_id)
1063 (mips_stub_frame_prev_register)
1064 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1065 (mips_stub_frame_base_address, mips_stub_frame_base)
1066 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1067 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1068 match true mdebug frames.
1069 (non_heuristic_proc_desc): Add forward declaration.
1070
e66299b3
AC
10712004-08-01 Andrew Cagney <cagney@gnu.org>
1072
83cbbf3e
AC
1073 * config/mips/tm-irix6.h: Delete file.
1074 * config/mips/tm-irix5.h: Delete file.
1075 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1076 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1077
22d41b37
AC
1078 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1079 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1080 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1081 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1082 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1083 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1084 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1085 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1086 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1087 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1088 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1089 (TARGET_SIGNAL_RAW_VALUES): Delete.
1090 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1091 Delete.
1092 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1093 (TARGET_HW_WATCH_LIMIT): Delete.
1094 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1095 * minimon.h: Delete file.
1096
e66299b3
AC
1097 * trad-frame.c (trad_frame_get_this_base)
1098 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1099 functions.
1100 * trad-frame.h (trad_frame_set_this_base)
1101 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1102
1f67027d
AC
11032004-07-31 Andrew Cagney <cagney@gnu.org>
1104
1105 * trad-frame.c (trad_frame_get_prev_register): Rename
1106 trad_frame_get_prev_register.
1107 * vax-tdep.c (vax_frame_prev_register): Update.
1108 * trad-frame.h: Update.
1109 * trad-frame.c (trad_frame_get_register): Update.
1110 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1111 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1112 Update.
1113 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1114 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1115 Update.
1116 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1117 Update.
1118 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1119 Update.
1120 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1121 Update.
1122 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1123 Update.
1124 * s390-tdep.c (s390_frame_prev_register)
1125 (s390_stub_frame_prev_register)
1126 (s390_sigtramp_frame_prev_register): Update.
1127 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1128 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1129 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1130 * m88k-tdep.c (m88k_frame_prev_register)
1131 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1132 * m32r-tdep.c (m32r_frame_prev_register): Update.
1133 * hppa-tdep.c (hppa_frame_prev_register_helper)
1134 * frv-tdep.c (frv_frame_prev_register): Update.
1135 * d10v-tdep.c (d10v_frame_prev_register): Update.
1136 * cris-tdep.c (cris_frame_prev_register): Update.
1137 * avr-tdep.c (avr_frame_prev_register): Update.
1138 * arm-tdep.c (arm_prologue_prev_register)
1139 (arm_sigtramp_prev_register): Update.
1140
c1bf6f65
AC
11412004-07-31 Andrew Cagney <cagney@gnu.org>
1142
1143 * frame.h (legacy_saved_regs_unwind)
1144 (legacy_frame_chain_valid, legacy_frame_p)
1145 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
1146 * dummy-frame.c (dummy_frame_this_id): Simplify.
1147 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
1148 * frame.c (struct frame_info): Delete the field "type".
1149 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1150 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1151 (legacy_saved_regs_unwind, legacy_frame_p)
1152 (frame_type_from_pc): Delete.
1153 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1154 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1155
dc856692
MK
11562004-07-31 Mark Kettenis <kettenis@gnu.org>
1157
5a5effe1
MK
1158 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1159 indentation.
1160
d4fd50a6
MK
1161 * mips-nat.c: Remove file.
1162 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1163 (mips-nat.o): Remove dependency.
1164
2689df5a
MK
1165 * infptrace.c: Update copyright year.
1166 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1167 explicitly setting the buffer to all zeroes.
1168
dc856692
MK
1169 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1170 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1171
763910e0
AC
11722004-07-30 Andrew Cagney <cagney@gnu.org>
1173
1174 * GDB 6.2 released from gdb_6_2-branch.
1175
0b66e38c
EZ
11762004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1177
1178 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1179
1180 * exec.c (exec_file_attach):
1181 * nto-tdep.c (nto_find_and_open_solib):
1182 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1183 * solib.c (solib_open):
1184 * somsolib.c (som_solib_sizeof_symbol_table):
1185 * source.c (is_regular_file, openp, open_source_file):
1186 * symfile.c (symfile_bfd_open):
1187 * wince.c (upload_to_device): Differentiate between the search for
1188 binary and source files.
1189
be7d7357
AC
11902004-07-30 Andrew Cagney <cagney@gnu.org>
1191
1192 * complaints.c (_initialize_complaints): Pass NULL to
1193 add_setshow_zinteger_cmd for help_doc.
1194 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1195
ddc9cd0f
AC
11962004-07-30 Andrew Cagney <cagney@gnu.org>
1197
1198 Fix PR i18n/761.
1199 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1200 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1201 $(PACKAGE).pot and update-po.
1202 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1203 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1204 (update-po): New rules.
1205 (localedir): Define using autoconf.
1206 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1207 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1208 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1209 * configure.in: Generate CATALOGS and LINGUAS from contents of
1210 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1211 * configure: Re-generate.
1212 * po/gdbtext: New file
1213
e92f3704
JG
12142004-07-30 Jerome Guitton <guitton@gnat.com>
1215
1216 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1217 order.
1218
b0f35d58
DL
12192004-07-30 David Lecomber <dsl@sources.redhat.com>
1220
1221 * dwarf2read.c (read_file_scope): Set producer if attribute
1222 present.
1223 (struct dwarf2_cu): Added new member producer.
1224
ce7d4522
JG
12252004-07-30 Jerome Guitton <guitton@gnat.com>
1226
1227 * inflow.c (kill_command): release file handles in BFD.
1228 * exec.c (exec_file_attach): Ditto.
1229 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1230
05ee07c7
AC
12312004-07-29 Andrew Cagney <cagney@gnu.org>
1232
1233 * PROBLEMS (mips-irix): Note that it is broken.
1234
62eceb47
AC
12352004-07-29 Andrew Cagney <cagney@gnu.org>
1236
e57b8d41
AC
1237 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1238 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1239
d334389b
AC
1240 * config/xm-nbsd.h: Delete file.
1241 * config/arm/xm-nbsd.h: Delete file.
1242 * config/i386/xm-nbsd.h: Delete file.
1243 * config/ns32k/xm-nbsd.h: Delete file.
1244 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1245 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1246 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1247 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1248 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1249
e910f676
AC
1250 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1251 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1252 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1253 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1254 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1255 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1256
6fa856b9
AC
1257 * config/powerpc/xm-linux.h: Delete empty file.
1258 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1259 * config/powerpc/linux.mh (XM_FILE): Delete.
1260 * config/m68k/xm-linux.h: Delete empty file.
1261 * config/m68k/linux.mh (XM_FILE): Delete.
1262 * config/ia64/xm-linux.h: Delete empty file.
1263 * config/ia64/linux.mh (XM_FILE): Delete.
1264 * config/arm/xm-linux.h: Delete empty file.
1265 * config/arm/linux.mh (XM_FILE): Delete.
1266
471ae5ae
AC
1267 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1268 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1269 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1270 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1271 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1272 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1273 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1274 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1275
62eceb47
AC
1276 * config/m68k/xm-m68k.h: Delete file.
1277 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1278 copyright.
1279 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1280 * config/pa/xm-linux.h: Delete empty file.
1281 * config/pa/linux.mh (XM_FILE): Delete.
1282 * config/i386/xm-i386.h: Delete empty file.
1283 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1284 "i386/xm-i386.h".
1285 * config/i386/obsdaout.mh (XM_FILE): Delete.
1286 * config/i386/obsd64.mh (XM_FILE): Delete.
1287 * config/i386/fbsd64.mh (XM_FILE): Delete.
1288 * config/i386/nto.mh (XM_FILE): Delete.
1289 * config/i386/obsd.mh (XM_FILE): Delete.
1290 * config/i386/linux64.mh (XM_FILE): Delete.
1291 * config/i386/linux.mh (XM_FILE): Delete.
1292 * config/i386/i386sol2.mh (XM_FILE): Delete.
1293 * config/i386/i386gnu.mh (XM_FILE): Delete.
1294 * config/i386/fbsd.mh (XM_FILE): Delete.
1295 * config/i386/nbsd64.mh (XM_FILE): Delete.
1296
c35f4ffc
AC
12972004-07-29 Andrew Cagney <cagney@gnu.org>
1298
1299 * config/pa/xm-linux.h: Do not include "floatformat.h".
1300 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1301 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1302 * config/i386/xm-i386.h: Do not include "floatformat.h".
1303 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1304 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1305 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1306 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1307 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1308 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1309 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1310 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1311 * configure, config.in: Regenerate.
1312 * configure.host (gdb_host_float_format, gdb_host_double_format)
1313 (gdb_host_long_double_format): Set according to the host.
1314
624a44a3
AC
13152004-07-29 Andrew Cagney <cagney@gnu.org>
1316
1317 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1318
0dea2468
AC
13192004-07-28 Andrew Cagney <cagney@gnu.org>
1320
1321 * PROBLEMS: Mention threads/1650.
1322 * NEWS: Mention the NPTL fix.
1323
b3f42336
AC
13242004-07-28 Andrew Cagney <cagney@gnu.org>
1325
1326 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1327 (add_setshow_cmd_full): Make static.
1328 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1329 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1330 * cli/cli-decode.c (add_setshow_filename_cmd)
1331 (add_setshow_string_cmd): New functions.
1332 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1333 * mips-tdep.c (_initialize_mips_tdep): Update.
1334 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1335 * cli/cli-logging.c (_initialize_cli_logging): Update.
1336 * complaints.c (_initialize_complaints): Update.
1337 * remote.c (_initialize_remote): Update.
1338
3b64bf98
AC
13392004-07-28 Andrew Cagney <cagney@gnu.org>
1340
1341 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1342 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1343 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1344 print parameters. Make string parameters constant.
1345 * command.h: Update. Update copyright.
1346 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1347 * observer.c (_initialize_observer): Ditto.
1348 * frame.c (_initialize_frame): Ditto.
1349 * complaints.c (_initialize_complaints): Ditto.
1350 * maint.c (_initialize_maint_cmds): Ditto.
1351 * target.c (initialize_targets): Ditto.
1352 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1353 * infcall.c (_initialize_infcall): Ditto.
1354 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1355 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1356 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1357 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1358 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1359
e9667a65
AC
13602004-07-28 Andrew Cagney <cagney@gnu.org>
1361
54a5b07d
AC
1362 * gdbtypes.c (lookup_primitive_typename): Delete function.
1363 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1364 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1365 * gdbtypes.c (lookup_typename): Ditto.
1366 * f-exp.y (yylex): Ditto.
1367 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1368
e9667a65
AC
1369 * scm-lang.c (c_builtin_types): Delete extern declaration.
1370 (scm_language_defn): Replace
1371 string_char_type and primitive_type_vector with
1372 la_language_arch_info.
1373 * jv-lang.c (java_language_defn): Replace
1374 string_char_type and primitive_type_vector with
1375 la_language_arch_info.
1376 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1377 c_builtin_types in comment.
1378 * c-lang.h (struct language_arch_info): Declare opaque.
1379 (c_language_arch_info): Declare.
1380 (c_builtin_types): Delete declaration.
1381 * c-lang.c (c_language_arch_info): Set string_char_type to
1382 builtin_char, not builtin_true_char. Make global.
1383 (c_builtin_types): Delete array.
1384 (asm_language_defn, minimal_language_defn): Replace
1385 string_char_type and primitive_type_vector with
1386 la_language_arch_info.
1387
685419e2
AC
13882004-07-28 Andrew Cagney <cagney@gnu.org>
1389
1390 * gdbtypes.h (struct builtin_type): Rename true_char to
1391 builtin_true_char.
1392 * gdbtypes.c (gdbtypes_post_init): Update.
1393 * c-lang.c (arch_info): New function.
1394 (enum c_primitive_types): New enum.
1395 (c_language_defn): Instead of string_char_type and
1396 primitive_type_vector set la_language_arch_info.
1397
5a44ea29
AC
13982004-07-28 Andrew Cagney <cagney@gnu.org>
1399
1400 * language.h (struct language_arch_info): Fix typo
1401 s/primative/primitive/.
1402 * gdbtypes.c (lookup_primitive_typename): Ditto.
1403 * language.c (language_lookup_primitive_type_by_name)
1404 (unknown_language_arch_info): Ditto.
1405
f290d38e
AC
14062004-07-27 Andrew Cagney <cagney@gnu.org>
1407
1408 * defs.h (enum language): Add nr_languages.
1409 * language.h (struct language_arch_info): Define.
1410 (struct language_defn): Add la_language_arch_info.
1411 (language_lookup_primative_type_by_name): Declare.
1412 (language_string_char_type): Declare.
1413 * language.c (_initialize_language, language_gdbarch_post_init)
1414 (struct language_gdbarch, language_gdbarch_data): Implement
1415 per-architecture language information.
1416 (unknown_language_arch_info, language_string_char_type)
1417 (language_lookup_primative_type_by_name): New functions.
1418 (unknown_language_defn, auto_language_defn)
1419 (local_language_defn): Set la_language_arch_info to
1420 unknown_language_arch_info.
1421 (unknown_builtin_types): Delete.
1422 * gdbtypes.c (lookup_primitive_typename): Use
1423 language_lookup_primative_type_by_name.
1424 (create_string_type): Use language_string_char_type.
1425 * values.c (value_from_string): Use language_string_char_type.
1426 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1427 * p-lang.c (pascal_language_defn): Ditto.
1428 * m2-lang.c (m2_language_defn): Ditto.
1429 * jv-lang.c (java_language_defn): Ditto.
1430 * objc-lang.c (objc_language_defn): Ditto.
1431 * f-lang.c (f_language_defn): Ditto.
1432 * c-lang.c (c_language_defn, cplus_language_defn)
1433 (asm_language_defn, minimal_language_defn): Ditto.
1434
000177f0
AC
14352004-07-27 Andrew Cagney <cagney@gnu.org>
1436
1437 * gdbtypes.h (struct builtin_type): Declare.
1438 (builtin_type): Declare.
1439 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1440 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1441 (gdbtypes_post_init): New function.
1442 (builtin_type): New function.
1443
e22f895c
KI
14442004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1445
1446 * remote-m32r-sdi.c: Fix breakpoint bug.
1447 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1448 recv_char_data, recv_long_data): New functions to replace communication
1449 sequences.
1450
536517dd
MC
14512004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1452
1453 Document PR threads/1650.
1454 * PROBLEMS (Threads): Document problem with many threads
1455
a0a44d18
AC
14562004-07-26 Andrew Cagney <cagney@gnu.org>
1457
1458 * gdb-mi.el: Move from here ...
1459 * mi/gdb-mi.el: ... to here.
1460
7ac4ac06
AC
14612004-07-26 Andrew Cagney <cagney@gnu.org>
1462
1463 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1464 * main.c (captured_main): When in batch mode always detach.
1465
a1b461bf
AC
14662004-07-26 Andrew Cagney <cagney@gnu.org>
1467
1468 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1469 and h8300 as broken.
1470 * NEWS: END-OF-LIFE frame compatibility module.
1471 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1472 specific comments.
1473
cb1a6d5f
AC
14742004-07-26 Andrew Cagney <cagney@gnu.org>
1475
1476 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1477 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1478 * wince.c (_initialize_wince): Update.
1479 * win32-nat.c (_initialize_win32_nat): Update.
1480 * varobj.c (_initialize_varobj): Update.
1481 * valops.c (_initialize_valops): Update.
1482 * utils.c (initialize_utils, initialize_utils): Update.
1483 * tui/tui-win.c (_initialize_tui_win): Update.
1484 * top.c (init_main): Update.
1485 * symfile.c (_initialize_symfile): Update.
1486 * source.c (_initialize_source): Update.
1487 * somsolib.c (_initialize_som_solib): Update.
1488 * solib.c (_initialize_solib): Update.
1489 * solib-frv.c (_initialize_frv_solib): Update.
1490 * serial.c (_initialize_serial): Update.
1491 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1492 * remote.c (_initialize_remote, _initialize_remote): Update.
1493 * remote-vx.c (_initialize_vx): Update.
1494 * remote-utils.c (_initialize_sr_support): Update.
1495 * remote-sds.c (_initialize_remote_sds): Update.
1496 * remote-mips.c (_initialize_remote_mips): Update.
1497 * remote-e7000.c (_initialize_remote_e7000): Update.
1498 * proc-api.c (_initialize_proc_api): Update.
1499 * printcmd.c: Update.
1500 * parse.c (_initialize_parse): Update.
1501 * pa64solib.c (_initialize_pa64_solib): Update.
1502 * p-valprint.c (_initialize_pascal_valprint): Update.
1503 * monitor.c (_initialize_remote_monitors): Update.
1504 * mips-tdep.c (_initialize_mips_tdep): Update.
1505 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1506 * maint.c (_initialize_maint_cmds): Update.
1507 * lin-lwp.c (_initialize_lin_lwp): Update.
1508 * language.c (_initialize_language): Update.
1509 * kod.c (_initialize_kod): Update.
1510 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1511 * i386-tdep.c (_initialize_i386_tdep): Update.
1512 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1513 * gdbarch.sh: Update.
1514 * gdbarch.c: Re-generate.
1515 * gdb-events.sh: Update.
1516 * gdb-events.c: Re-generate.
1517 * frame.c (_initialize_frame): Update.
1518 * exec.c: Update.
1519 * demangle.c (_initialize_demangler): Update.
1520 * dcache.c (_initialize_dcache): Update.
1521 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1522 * cp-valprint.c (_initialize_cp_valprint): Update.
1523 * corefile.c (_initialize_core): Update.
1524 * command.h: Update.
1525 * cli/cli-decode.h: Update.
1526 * cli/cli-cmds.c (init_cli_cmds): Update.
1527 * charset.c (_initialize_charset): Update.
1528 * breakpoint.c (_initialize_breakpoint): Update.
1529 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1530 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1531 * aix-thread.c (_initialize_aix_thread): Update.
1532
b4632131
MK
15332004-07-24 Mark Kettenis <kettenis@gnu.org>
1534
1535 Partial fix for PR backtrace/1718.
1536 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1537 that GCC migrates into the prolugue. Don't handle any
1538 instructions that clobber %ebx.
1539
822c9732
AC
15402004-07-23 Andrew Cagney <cagney@gnu.org>
1541
1542 Use regcache_raw_collect instead of regcache_collect.
1543 * regcache.h (regcache_collect): Delete declaration.
1544 * regcache.c (regcache_colect): Delete function.
1545 * win32-nat.c (do_child_store_inferior_registers): Update.
1546 * sol-thread.c (sol_thread_store_registers): Update.
1547 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1548 * rs6000-nat.c (store_register): Update.
1549 * remote.c (store_register_using_P, remote_store_registers): Update.
1550 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1551 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1552 (fill_vrregset, store_spe_registers, fill_gregset)
1553 (fill_gregset): Update.
1554 * nto-procfs.c (procfs_store_registers): Update.
1555 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1556 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1557 * m68klinux-nat.c (store_register, fill_gregset): Update.
1558 * m68k-tdep.c (fill_gregset): Update.
1559 * infptrace.c (store_register): Update.
1560 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1561 * i386-linux-nat.c (store_register, fill_gregset): Update.
1562 * hppa-linux-nat.c (fill_gregset): Update.
1563 * go32-nat.c (store_register): Update.
1564 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1565 (store_fp_regs): Update.
1566 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1567 (store_nwfpe_extended, store_fpregister, store_fpregs)
1568 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1569 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1570 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1571 (store_regs_user_thread, store_regs_kernel_thread): Update.
1572
32b05c07
MK
15732004-07-24 Mark Kettenis <kettenis@gnu.org>
1574
1575 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1576 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1577 encoding.
1578 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1579 member of `struct comp_unit'.
1580
8567c30f
AC
15812004-07-23 Andrew Cagney <cagney@gnu.org>
1582
1583 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1584 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1585
f6da8dd8
MH
15862004-07-23 Martin Hunt <hunt@redhat.com>
1587 Kevin Buettner <kevinb@redhat.com>
1588
1589 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1590 alignment was being added to the offset instead of multiplied.
1591
bd921882
MK
15922004-07-23 Mark Kettenis <kettenis@gnu.org>
1593
24f033e8
MK
1594 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1595 changed signal trampoline in OpenBSD 3.5-current.
1596
90f3cecd
MK
1597 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1598 <machine/pcb.h> and "bsd-kvm.h".
1599 (sparc64nbsd_supply_pcb): New function.
1600 (_initialize_sparc64nbsd_nat): Renamed from
1601 _initialize_sparcnbsd_nat. Enable libkvm interface.
1602 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1603 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1604 (LOADLIBES): New variable.
1605
a4954a62
MK
1606 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1607
bd921882
MK
1608 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1609
23a6d369
AC
16102004-07-21 Andrew Cagney <cagney@gnu.org>
1611
1612 Use regcache_raw_supply instead of supply_register.
1613 * regcache.h (supply_register): Delete declaration.
1614 * regcache.c (supply_register): Delete function.
1615 * wince.c (do_child_fetch_inferior_registers): Update.
1616 * win32-nat.c (do_child_fetch_inferior_registers)
1617 (fetch_elf_core_registers): Update.
1618 * v850ice.c (v850ice_fetch_registers): Update.
1619 * thread-db.c (thread_db_store_registers): Update.
1620 * sol-thread.c (sol_thread_store_registers): Update.
1621 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1622 * rs6000-nat.c (fetch_register): Update.
1623 * rom68k-rom.c (rom68k_supply_one_register): Update.
1624 * remote.c (remote_wait, remote_async_wait): Update.
1625 * remote-st.c (get_hex_regs): Update.
1626 * remote-sim.c (gdbsim_fetch_register): Update.
1627 * remote-sds.c (sds_fetch_registers): Update.
1628 * remote-rdp.c (remote_rdp_fetch_register): Update.
1629 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1630 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1631 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1632 * remote-hms.c (init_hms_cmds): Update.
1633 * remote-est.c (init_est_cmds): Update.
1634 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1635 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1636 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1637 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1638 (fetch_register, supply_vrregset, supply_vrregset)
1639 (fetch_spe_registers): Update.
1640 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1641 * monitor.c (monitor_supply_register): Update.
1642 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1643 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1644 (mipsnbsd_supply_fpreg): Update.
1645 * mips-nat.c (fetch_inferior_registers)
1646 (fetch_core_registers): Update.
1647 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1648 (supply_fpregset, mips64_supply_gregset)
1649 (mips64_supply_fpregset): Update.
1650 * m68klinux-nat.c (fetch_register, supply_gregset)
1651 (supply_fpregset): Update.
1652 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1653 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1654 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1655 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1656 * infptrace.c (fetch_register): Update.
1657 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1658 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1659 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1660 (gnu_fetch_registers, gnu_store_registers): Update.
1661 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1662 * i386-linux-nat.c (fetch_register, supply_gregset)
1663 (dummy_sse_values): Update.
1664 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1665 * hppah-nat.c (fetch_register): Update.
1666 * hppa-linux-nat.c (fetch_register, supply_gregset)
1667 (supply_fpregset): Update.
1668 * go32-nat.c (fetch_register): Update.
1669 * dve3900-rom.c (fetch_bitmapped_register)
1670 (_initialize_r3900_rom): Update.
1671 * cris-tdep.c (supply_gregset): Update.
1672 * abug-rom.c (init_abug_cmds): Update.
1673 * core-aout.c (fetch_core_registers): Update.
1674 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1675 (fetch_register, fetch_fp_register): Update.
1676 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1677 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1678 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1679 * alphanbsd-tdep.c (fetch_core_registers): Update.
1680 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1681 * alpha-nat.c (fetch_osf_core_registers)
1682 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1683 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1684 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1685
73cc75f3
AC
16862004-07-21 Andrew Cagney <cagney@gnu.org>
1687
1688 * PROBLEMS: Mention breakpoints/1702.
1689 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1690 that is known to work.
1691
a53c66de
AC
16922004-07-21 Andrew Cagney <cagney@gnu.org>
1693
1694 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1695 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1696 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1697 (handle_inferior_event): Wrap call to deprecated
1698 IGNORE_HELPER_CALL in #ifdef.
1699 * config/mips/tm-nbsd.h: Update.
1700
708ff411
JB
17012004-07-20 Jim Blandy <jimb@redhat.com>
1702
412b3060
JB
1703 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1704 bfd_mach_ppc has no segment registers.
1705
13ac140c
JB
1706 Include PowerPC SPR numbers for special-purpose registers.
1707 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1708 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1709 new member in initializer.
1710 (S, S4, SN4, S64): New macros for defining special-purpose
1711 registers.
1712 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1713 registers_403, registers_403GC, registers_505, registers_860,
1714 registers_601, registers_602, registers_603, registers_604,
1715 registers_750, registers_e500): Use them.
1716
708ff411
JB
1717 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1718 replace references with expression used to initialize variable.
1719
1f602b35
AC
17202004-07-20 Andrew Cagney <cagney@gnu.org>
1721
1722 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1723 read_memory_nobpt.
1724 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1725 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1726 (s390_sigtramp_frame_sniffer): Update.
1727 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1728 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1729 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1730 (mips32_fetch_instruction): Update.
1731 * mcore-tdep.c (get_insn): Update.
1732 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1733 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1734 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1735 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1736 (i386_linux_rt_sigtramp_start): Update.
1737 * i386-linux-nat.c (child_resume): Update.
1738 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1739 * hppa-linux-tdep.c (insns_match_pattern): Update.
1740 * gdbcore.h: Update.
1741 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
1742 * frame.c (safe_frame_unwind_memory): Update.
1743 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
1744 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
1745 * alpha-tdep.c (alpha_read_insn): Update.
1746
2cd8546d
AC
17472004-07-20 Andrew Cagney <cagney@gnu.org>
1748
1749 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
1750 containing both bytes and mask. Add "frame_type".
1751 * tramp-frame.c (tramp_frame_start): Update.
1752 (tramp_frame_prepend_unwinder): Update.
1753 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1754 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1755 (mips_linux_n64_rt_sigframe): Update. Make "static const".
1756 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
1757
f928dd62
EZ
17582004-07-19 Eli Zaretskii <eliz@gnu.org>
1759
1760 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
1761 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
1762 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
1763 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
1764
d5c560f7
AC
17652004-07-17 Andrew Cagney <cagney@gnu.org>
1766
860660cb
AC
1767 * NEWS, PROBLEMS: Update for 6.2.
1768
8c266f54
AC
1769 * README: Update to 6.2.
1770
a552edd9
AC
1771 * utils.c (xvasprintf): Call xstrvprintf.
1772
c4a172b5
AC
1773 * parse.c: Update copyright.
1774 (null_post_parser): Eliminate ARGSUSED.
1775
da745b36
AC
1776 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
1777 * tui/tui-win.c (tui_get_cmd_list): Ditto.
1778 * symfile-mem.c (_initialize_symfile_mem): Ditto.
1779
9cbc6ef0
AC
1780 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
1781 * ppc-linux-nat.c: Use "Linux kernel".
1782 * hppa-linux-tdep.c: Use GNU/Linux.
1783 * hppa-linux-nat.c: Use GNU/Linux.
1784 * dwarfread.c: Add [sic] to use of Linux.
1785
1b89295f
AC
1786 * hppa-linux-nat.c: Do not include <string.h>.
1787 (supply_fpregset): Remove "register" attribute.
1788
d5c560f7
AC
1789 * solib-frv.c (fetch_loadmap): Use xfree, not free.
1790
7ddd7709
MK
17912004-07-17 Mark Kettenis <kettenis@gnu.org>
1792
b1d19a62
MK
1793 * configure.in: Define _MSE_INT_H on Solaris 9 too.
1794 * configure, config.in: Regenerated.
1795
7ddd7709
MK
1796 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1797 "bsd-kvm.h".
1798 (vaxbsd_supply_pcb): New function.
1799 (_initialize_vaxbsd_nat): New prototype and function.
1800 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
1801 solib-sunos.o.
1802 (LOADLIBES): New variable.
1803 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1804 (LOADLIBES): New variable.
1805 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1806 (LOADLIBES): New variable.
1807 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1808
2c07db7a
AC
18092004-07-16 Andrew Cagney <cagney@gnu.org>
1810
1811 * defs.h (event_loop_p): Replace variable declaration with macro,
1812 always 1.
1813 * main.c (captured_main): Delete options "-async" and "-noasync".
1814 (event_loop_p): Delete variable.
1815 * NEWS: Mention that "-async" and "-noasync" were removed.
1816
717eb1cf
AC
18172004-07-16 Andrew Cagney <cagney@gnu.org>
1818
1819 * remote-m32r-sdi.c: Re-indent.
1820
c101bc14
JB
18212004-07-16 Jim Blandy <jimb@redhat.com>
1822
5109a438
JB
1823 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
1824 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
1825 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
1826 missing MPC823 SPRs.
1827 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
1828 incorrect. (This was corrected in GDB's register name tables on
1829 2004-07-14.)
1830
c101bc14
JB
1831 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
1832 should be "esasrr" ("ESA Save and Restore Register").
1833
7ce450bd
AC
18342004-07-16 Andrew Cagney <cagney@gnu.org>
1835
1836 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
1837 calls, no longer applicable. Update comments and rename parameter
1838 "step_frame" to "return_frame".
1839
ca73dd9d
AC
18402004-07-16 Andrew Cagney <cagney@gnu.org>
1841
1842 * frame.c (fprint_field): New function.
1843 (fprint_frame_id): Use fprint_field.
1844
31941f6d
JB
18452004-07-15 Joel Brobecker <brobecker@gnat.com>
1846
1847 * ada-lang.c (ada_language_defn): Remove commented out code.
1848
f86a7158
JB
18492004-07-15 Jim Blandy <jimb@redhat.com>
1850
1851 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
1852 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
1853
c24791ec
JB
18542004-07-14 Jim Blandy <jimb@redhat.com>
1855
29bb1356
JB
1856 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
1857
cc98b5cc
JB
1858 * ppc-tdep.h (ppc_num_vrs): New enum constant.
1859
8f088af7
JB
1860 * ppc-tdep.h (ppc_num_srs): New enum constant.
1861
0ea0ec5f
JB
1862 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
1863 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
1864 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
1865 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
1866 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
1867 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
1868 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
1869 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
1870 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
1871 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
1872 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
1873 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
1874 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
1875 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
1876 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
1877 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
1878 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
1879 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
1880 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
1881 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
1882 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
1883 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
1884 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
1885 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
1886 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
1887 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
1888 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
1889 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
1890 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
1891 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
1892 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
1893 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
1894 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
1895 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
1896 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
1897 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
1898 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
1899 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
1900 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
1901 special-purpose register numbers.
1902
c24791ec
JB
1903 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
1904 manual mentions 'md_twb', but many mention 'm_twb', and at that
1905 point in the register list.)
1906
d833db3b
AC
19072004-07-14 Andrew Cagney <cagney@gnu.org>
1908
1909 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
1910 instead of "internal-error".
1911
080228b2
JB
19122004-07-10 Joel Brobecker <brobecker@gnat.com>
1913
1914 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
1915 that was inserted inside a comment.
1916
c268433a
RC
19172004-07-10 Randolph Chung <tausq@debian.org>
1918
1919 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
1920 function.
1921 (hppa_hpux_push_dummy_code): New function.
1922 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
1923 Set find_global_pointer method.
1924
71009278
MK
19252004-07-10 Mark Kettenis <kettenis@gnu.org>
1926
1927 * NEWS: Mention BSD libkvm interface.
1928
b2fa5097
MS
19292004-07-10 Michael Snyder <msnyder@redhat.com>
1930
1931 * symfile.c (generic_load): Comment typo.
1932 * stack.c (get_selected_block): Ditto.
1933 * regcache.c (regcache_cooked_read): Ditto.
1934 * monitor.c (monitor_debug): Ditto.
1935 * mips-tdep.c (mips_read_pc): Ditto.
1936 * i386-linux-nat.c (ps_get_thread_area): Ditto.
1937 * gdb_mbuild.sh: Ditto.
1938 * gdbarch.sh: Ditto.
1939 * gdbarch.h: Ditto.
1940
c3e5cd34
PH
19412004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
1942
8a2225b2
PH
1943 * ada-tasks.c: Remove file.
1944
c3e5cd34
PH
1945 Remove ARI problems:
1946
1947 * ada-exp.y (write_var_from_sym): Reformat to put operator at
1948 beginning of line.
1949
1950 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
1951 Add comment.
1952 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
1953 (MIN_OF_SIZE): Rename min_of_size. Add comment.
1954 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
1955 (UMIN_OF_SIZE): Remove.
1956 (max_of_type): New function to replace orphan macro in gdbtypes.h
1957 (min_of_type): Ditto.
1958 (discrete_type_high_bound): Use max_of_type.
1959 (discrete_type_low_bound): Use min_of_type.
1960 (possible_user_operator_p): Move operator to beginning of line.
1961 (ada_is_variant_part): Ditto.
1962 (ensure_lval): Rewrite to avoid deprecated operations.
1963 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
1964 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
1965 (ada_enum_name): Remove assignments in 'if' statements.
1966 (build_ada_types): Add gdbarch parameter.
1967 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
1968 with gdbarch_data_register_post_init.
1969 Use add_setshow_uinteger_cmd rather than add_set_cmd and
1970 add_show_from_set.
1971
1972 * ada-valprint.c (inspect_it): Remove declaration.
1973 (repeat_count_threshold): Remove declaration.
1974 (ada_print_floating): Remove assignments in 'if' statements.
1975 (print_str): Move operator to beginning of line.
1976
61ce229a
JB
19772004-07-08 Jim Blandy <jimb@redhat.com>
1978
1979 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
1980
09bcec80
BR
19812004-07-08 Bob Rossi <bob@brasko.net>
1982
1983 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
1984
31c27f77
JJ
19852004-07-06 Jeff Johnston <jjohnstn@redhat.com>
1986
1987 * language.h (struct_language_defn): Add new function pointer:
1988 la_class_name_from_physname. Also add new prototype for
1989 language_class_name_from_physname.
1990 * language.c (language_class_name_from_physname): New function.
1991 (unk_lang_class_name): Ditto.
1992 (unknown_language_defn, auto_language_defn): Change
1993 to add unk_lang_class_name function pointer for
1994 la_class_name_from_physname.
1995 (local_language_defn): Ditto.
1996 * dwarf2read.c (guess_structure_name): Change to call
1997 language_class_name_from_physname.
1998 (determine_class_name): Ditto.
1999 * cp-support.c (class_name_from_physname): Renamed.
2000 (cp_class_name_from_physname): New name of function.
2001 * cp-support.h: Ditto.
2002 * c-lang.c (c_language_defn): Change to add NULL
2003 for class_name_from_physname function pointer.
2004 (cplus_language_defn): Change to add cp_class_name_from_physname.
2005 * jv-lang.c (java_class_name_physname): New function.
2006 (java_find_last_component): New static routine.
2007 (java_language_defn): Add java_class_name_from_physname pointer.
2008 * ada-lang.c (ada_language_defn): Change to add NULL
2009 for class_name_from_physname function pointer.
2010 * f-lang.c (f_language_defn): Ditto.
2011 * m2-lang.c (m2_language_defn): Ditto.
2012 * objc-lang.c (objc_language_defn): Ditto.
2013 * p-lang.c (pascal_language_defn): Ditto.
2014 * scm-lang.c (scm_language_defn): Ditto.
2015
ee28ca0f
AC
20162004-07-06 Andrew Cagney <cagney@gnu.org>
2017
2018 Patch from Bart Robinson.
2019 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2020 (O_LARGEFILE): Define to 0, if not defined.
2021
fdb1bf9d
MK
20222004-07-03 Mark Kettenis <kettenis@gnu.org>
2023
cb162ff6
MK
2024 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2025 <machine/pcb.h> and "bsd-kvm.h".
2026 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2027 (m68kbsd_supply_pcb): New function.
2028 (_initialize_m68kbsd_nat): New prototype and function.
2029 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2030 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2031 (LOADLIBES): New variable.
2032 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2033 (LOADLIBES): New variable.
2034
fdb1bf9d
MK
2035 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2036
963c4174
MK
20372004-07-03 Mark Kettenis <kettenis@gnu.org>
2038
2039 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2040 <sys/proc.h>.
2041 (bsd_kvm_cmdlist): New variable.
2042 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2043 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2044 command and "kvm proc" command.
2045 * Makefile.in (bsd-kvm.o): Update dependencies.
2046
533f1d8f
MK
20472004-07-02 Mark Kettenis <kettenis@gnu.org>
2048
2049 * osabi.c: Update copyright year.
2050 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2051 notes if EI_OSABI is set to ELFOSABI_HPUX.
2052
6780dcde
MS
20532004-07-01 Michael Snyder <msnyder@redhat.com>
2054
2055 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2056 that seems to have gotten whacked out of line.
2057
67bebe79
MK
20582004-07-01 Mark Kettenis <kettenis@gnu.org>
2059
2060 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2061 code.
2062
0b5d8877
PH
20632004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2064
2065 * ada-lang.c (decode_packed_array): Minor change to comment.
2066 (ada_value_slice_ptr): New function.
2067 (ada_value_slice): New function.
2068 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2069 test. Don't know why it is there.
2070 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2071 to avoid dereferencing huge arrays from which one is slicing.
2072 (empty_array): Correct to return an array rather than
2073 a subrange value.
2074 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2075 on empty arrays (let'em use 'FIRST instead).
2076
19c1ef65
PH
20772004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2078
2079 Address complaints from gdb_ari.sh:
2080
2081 * ada-exp.y: Include gdb_string.h rather than string.h.
2082 (convert_char_literal): Reformat declaration.
2083 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2084 * ada-lex.l: Change use of free to xfree (the macro would do so
2085 anyway, but this is harmless).
2086 Include gdb_string.h rather than string.h.
2087 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2088
2089 * ada-lang.c (parse): Remove K&Rism in parameter list.
2090 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2091
d81cbc94
MK
20922004-06-30 Mark Kettenis <kettenis@gnu.org>
2093
2094 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2095 dead code.
2096
07681759
MK
20972004-06-30 Mark Kettenis <kettenis@gnu.org>
2098
2099 * alphabsd-nat.c: Update copyright year.
2100 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2101
f7948b5f
JB
21022004-06-29 Joel Brobecker <brobecker@gnat.com>
2103
6e0cdd28 2104 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
2105 (i386_cygwin_in_solib_call_trampoline): New function.
2106 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2107 and skip_trampoline_code gdbarch methods.
2108
8f113c9a
JB
21092004-06-29 Jim Blandy <jimb@redhat.com>
2110
2111 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2112 name actually used in the dependency lists.
2113
97dc871c
RC
21142004-06-29 Randolph Chung <tausq@debian.org>
2115
2116 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2117
47216e51
CV
21182004-06-29 Corinna Vinschen <vinschen@redhat.com>
2119
2120 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 2121 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
2122 functionality.
2123
e623b504
AC
21242004-06-28 Andrew Cagney <cagney@gnu.org>
2125
2126 * defs.h (xstrvprintf): Declare.
2127 * utils.c (xstrvprintf): New function.
2128 (internal_vproblem, xstrprintf, xasprintf)
2129 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2130 * serial.c (serial_printf): Ditto.
2131 * complaints.c (vcomplaint): Ditto.
2132
79acc9b3
CV
21332004-06-29 Corinna Vinschen <vinschen@redhat.com>
2134
2135 * infcmd.c (attach_command): Move call to target_terminal_inferior
2136 behind loading symbol table.
2137
1daf35d9
AC
21382004-06-28 Andrew Cagney <cagney@gnu.org>
2139
2140 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2141 change - add back extern deprecated_ui_loop_hook declaration.
2142
b435e160
AC
21432004-06-28 Andrew Cagney <cagney@gnu.org>
2144
2145 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2146 xstrprintf.
2147 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2148 (c_value_of_variable): Ditto.
2149 * utils.c (internal_vproblem): Ditto.
2150 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2151 * remote.c (add_packet_config_cmd): Ditto.
2152 * remote-rdp.c (rdp_set_command_line): Ditto.
2153 * regcache.c (regcache_dump): Ditto.
2154 * frv-tdep.c (new_variant, new_variant): Ditto.
2155 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2156 (fbsd_find_memory_regions): Ditto.
2157 * breakpoint.c (create_thread_event_breakpoint)
2158 (create_breakpoints): Ditto.
2159 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2160 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2161
06d5cf63
JB
21622004-06-28 Joel Brobecker <brobecker@gnat.com>
2163
2164 * ada-lang.c: Re-indent file, with some massaging to help indent
2165 a bit when the result is otherwise really too ugly.
2166
35809fad
UW
21672004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2168
2169 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2170 code_addr_p and special_addr_p to 'unsigned int'.
2171
40e20472
MK
21722004-06-27 Mark Kettenis <kettenis@gnu.org>
2173
2174 * i386v4-nat.c: Update copyright year and tweak comment.
2175 (regmap): Remove trailing comma.
2176 (supply_gregset): Rename local variable i to regnum. Call
2177 regcache_raw_supply instead of supply_register.
2178 (fill_gregset): Rename argument regno to regnum. Call
2179 regcache_raw_collect instead of regcache_collect.
2180
12b0b6de
UW
21812004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2182
2183 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2184 and special_addr_p.
2185 (frame_id_build, frame_id_build_special): Update comments.
2186 (frame_id_build_wild): New prototype.
2187 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2188 struct frame_id fields.
2189 (frame_id_build_wild): New function.
2190 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2191
47b42a3e
MK
21922004-06-27 Mark Kettenis <kettenis@gnu.org>
2193
2194 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2195 hppabsd-tdep.c.
2196
1265e4aa
JB
21972004-06-27 Joel Brobecker <brobecker@gnat.com>
2198
2199 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2200
76a01679
JB
22012004-06-27 Joel Brobecker <brobecker@gnat.com>
2202
2203 * ada-lang.c: Re-indent file.
2204
7aca490a
JB
22052004-06-27 Joel Brobecker <brobecker@gnat.com>
2206
2207 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2208 (no_symtab_msg): Likewise.
2209
5e987968
AS
22102004-06-27 Andreas Schwab <schwab@suse.de>
2211
2212 * source.c: Fix whitespace.
2213
315c4276
MK
22142004-06-27 Mark Kettenis <kettenis@gnu.org>
2215
d15be926
MK
2216 * configure.in: Include <sys/param.h> for td_pcb test.
2217 * configure: Regenerated.
2218
9062529b
MK
2219 * i386nbsd-nat.c: New file.
2220 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2221 i386obsd-nat.c and i386obsd-tdep.c.
2222 (i386nbsd-nat.o): New dependency.
2223 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2224 bsd-kvm.o.
2225 (LOADLIBES): New variable.
2226 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2227 bsd-kvm.o.
2228 (LOADLIBES): New variable.
2229
8010310e
MK
2230 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2231 (LOADLIBES): New variable.
2232
efe1d7b9
MK
2233 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2234 fetching from BSD_KVM_PADDR. Correctly lookup address for
2235 "_thread0".
2236
315c4276
MK
2237 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2238 "bsd-kvm.h".
2239 (amd64fbsd_supply_pcb): New funcion.
2240 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2241
399cfac6
DL
22422004-06-27 <david@streamline-computing.com>
2243
2244 Partial fix for PR cli/1056.
2245 * valarith.c: Check for zero in division and remainder
2246 evaluation.
2247
6235f9c8
MK
22482004-06-27 Mark Kettenis <kettenis@gnu.org>
2249
2250 * i387-tdep.c: Remove excessive whitespace.
2251
2726dafc
AC
22522004-06-26 Andrew Cagney <cagney@gnu.org>
2253
2254 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2255 * gdb-events.h, gdb-events.c: Re-generate.
2256 * tui/tui-hooks.c (tui_install_hooks): Update.
2257 (tui_remove_hooks): Update.
2258 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2259
0e56aeaf
MK
22602004-06-26 Mark Kettenis <kettenis@gnu.org>
2261
cb461069
MK
2262 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2263 (gregset_t, fpregset_t): Remove typedefs.
2264 (REG_OFFSET): Rename argument.
2265 (amd64bsd_r_reg_offset): Rename from reg_offset.
2266 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2267 Remove functions.
2268 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2269 of reg_offset.
2270 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2271
ecba89de
MK
2272 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2273
4cd80476
MK
2274 * vax-tdep.c: Tweak comment.
2275
0e56aeaf
MK
2276 Add OpenBSD/hppa support.
2277 * NEWS (New native configurations): Mention OpenBSD/hppa.
2278 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2279 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2280 files.
2281 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2282 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2283 * configure.host: Add hppa*-*-openbsd*.
2284 * configure.tgt: Add hppa*-*-openbsd*.
2285
98bbd631
AC
22862004-06-25 Andrew Cagney <cagney@gnu.org>
2287
2288 * defs.h (deprecated_ui_loop_hook): Deprecated.
2289 * wince.c (child_wait): Update.
2290 * win32-nat.c (child_wait): Update.
2291 * v850ice.c (v850ice_wait): Update.
2292 * top.c (deprecated_ui_loop_hook): Update.
2293 * serial.h: Update.
2294 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2295 (do_unix_readchar): Update.
2296 * ser-tcp.c (net_open): Update.
2297 * remote-sim.c (gdb_os_poll_quit): Update.
2298 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2299
769d7dc4
AC
23002004-06-24 Andrew Cagney <cagney@gnu.org>
2301
2302 * defs.h (deprecated_pre_add_symbol_hook)
2303 (deprecated_post_add_symbol_hook): Deprecated.
2304 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2305 (symbol_file_add_with_addrs_or_offsets): Update references.
2306
11c949aa
AC
23072004-06-24 Andrew Cagney <cagney@gnu.org>
2308
2309 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2310 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2311 * wince.c (ui_loop_hook): Delete extern declaration.
2312 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2313 * v850ice.c (ui_loop_hook): Delete extern declaration..
2314 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2315 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2316 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2317 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2318 ui_loop_hook declaration.
2319
eedc19af
AC
23202004-06-24 Andrew Cagney <cagney@gnu.org>
2321
2322 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2323 entry_func_highpc fields.
2324 * objfiles.c (init_entry_point_info): Do not clear
2325 entry_func_lowpc and entry_func_highpc.
2326 (objfile_relocate): Do not relocate entry_func_lowpc and
2327 entry_func_highpc.
2328 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2329 entry_func_highpc.
2330 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2331 entry_func_highpc.
2332 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2333 entry_func_lowpc and entry_func_highpc with call to
2334 inside_entry_func.
2335
d47079be
MK
23362004-06-24 Mark Kettenis <kettenis@gnu.org>
2337
2338 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2339 quad-precision floating point arguments in registers.
2340
2107e348
MK
23412004-06-24 Mark Kettenis <kettenis@gnu.org>
2342
2343 From Michael Mueller <m.mueller99@kay-mueller.de>:
2344 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2345 account.
2346
46587c42
JJ
23472004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2348
2349 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2350 to -1.
2351 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2352 untriggered watchpoints to a separate if clause. Update function
2353 comment regarding STOPPED_BY_WATCHPOINT argument.
2354
226f5cf4
JB
23552004-06-22 Jim Blandy <jimb@redhat.com>
2356
2357 * gdbarch.sh: Doc fix.
2358
f10683bb
MH
23592004-06-21 Martin Hunt <hunt@redhat.com>
2360 Kevin Buettner <kevinb@redhat.com>
2361
2362 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2363 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2364 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2365 to set_gdbarch_sp_regnum(). Use cooked register number.
2366 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2367
412d5987
AC
23682004-06-21 Andrew Cagney <cagney@gnu.org>
2369
2370 * gdbarch.sh: When the macro field is empty, do not generate a
2371 macro definition. When the macro field is "=", generate the macro
2372 name from the upper-case function name.
2373 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2374 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2375 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2376 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2377 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2378 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2379 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2380 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2381 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2382 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2383 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2384 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2385 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2386 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2387 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2388 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2389 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2390 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2391 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2392 (DEPRECATED_USE_STRUCT_CONVENTION)
2393 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2394 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2395 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2396 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2397 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2398 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2399 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2400 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2401 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2402 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2403 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2404 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2405 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2406 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2407 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2408 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2409 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2410 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2411
68908a3e
AC
24122004-06-21 Andrew Cagney <cagney@gnu.org>
2413
48f7351b
AC
2414 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2415 macro name, and the function rather than macro value. Only wrap
2416 macro print statements in #ifdef. Move format logic to where it
2417 is needed.
2418 * gdbarch.c: Re-generate.
2419
283354d8
AC
2420 * gdbarch.sh (read): Delete "print_p" and "description", add
2421 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2422 Delete references to print_p.
2423 (TARGET_ARCHITECTURE): Delete print predicate.
2424 * gdbarch.c: Re-generate.
2425
68908a3e
AC
2426 * gdbarch.sh: Check that multi-arch methods do not provide a
2427 macro.
2428 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2429 (print_registers_info, print_float_info, print_vector_info)
2430 (adjust_breakpoint_address, remote_translate_xfer_address)
2431 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2432 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2433 name from the multi-arch definition.
2434
a2428dbe
AC
24352004-06-20 Andrew Cagney <cagney@gnu.org>
2436
2437 * gdbarch.sh: Sort by the function, instead of macro name.
2438 * gdbarch.c: Re-generate.
2439
750eb019
AC
24402004-06-20 Andrew Cagney <cagney@gnu.org>
2441
66d659b1
AC
2442 * gdbarch.sh: Use the function, instead of macro name in
2443 errors and the log file.
2444 (return_value): Remove stray ":" in spec.
2445
750eb019
AC
2446 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2447 * gdbarch.h, gdbarch.c: Re-generate.
2448 * Makefile.in (arch-utils.o): Update dependencies.
2449 * values.c (using_struct_return): Move code calling
2450 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2451 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2452 to legacy_return_value, simplify.
2453 * infcmd.c (print_return_value): Move code calling
2454 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2455 to legacy_return_value, simplify.
2456 * infcall.c (call_function_by_hand): Move code calling
2457 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2458 * arch-utils.c: Update copyright. Include "gdbcore.h".
2459 (legacy_return_value): New function.
2460 * arch-utils.h: Update copyright.
2461 (legacy_return_value): Declare.
2462
b5622e8d
AC
24632004-06-20 Andrew Cagney <cagney@gnu.org>
2464
2465 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2466 * gdbarch.h, gdbarch.c: Re-generate.
2467 * values.c (using_struct_return): Update call.
2468 * mcore-tdep.c: Update comment.
2469 * infcall.c (call_function_by_hand): Update comment.
2470 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2471 * arch-utils.h (always_use_struct_convention): Update.
2472 * v850-tdep.c (v850_gdbarch_init): Update.
2473 * sh64-tdep.c (sh64_gdbarch_init): Update.
2474 * sh-tdep.c (sh_gdbarch_init): Update.
2475 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2476 * mips-tdep.c (mips_gdbarch_init): Update.
2477 * mcore-tdep.c (mcore_gdbarch_init): Update.
2478 * m32r-tdep.c (m32r_gdbarch_init): Update.
2479 * ia64-tdep.c (ia64_gdbarch_init): Update.
2480 * h8300-tdep.c (h8300_gdbarch_init): Update.
2481 * frv-tdep.c (frv_gdbarch_init): Update.
2482 * cris-tdep.c (cris_gdbarch_init): Update.
2483 * arm-tdep.c (arm_gdbarch_init): Update.
2484 * alpha-tdep.c (alpha_gdbarch_init): Update.
2485
5191de37
MC
24862004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2487
2488 * PROBLEMS: Add more specific information, and a work-around,
2489 for PR gdb/1458.
2490
782263ab
AC
24912004-06-18 Andrew Cagney <cagney@gnu.org>
2492
2493 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2494 * gdbarch.h, gdbarch.c: Re-generate.
2495 * ada-lang.c (ada_finish_decode_line_1): Update.
2496 * infrun.c (handle_inferior_event): Update.
2497 * infcall.c (find_function_addr): Update.
2498 * linespec.c (minsym_found): Update.
2499 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2500 Update.
2501 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2502 * cli/cli-cmds.c (disassemble_command): Update.
2503 * vax-tdep.c (vax_gdbarch_init): Update.
2504
2f305df1
MK
25052004-06-18 Mark Kettenis <kettenis@gnu.org>
2506
2507 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2508
e5fe55f7
AC
25092004-06-17 Andrew Cagney <cagney@gnu.org>
2510
2511 GDB 6.1.1 released from the GDB 6.1 branch.
2512 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2513 * PROBLEMS: Ditto.
2514
473b7be6
DJ
25152004-06-16 Daniel Jacobowitz <dan@debian.org>
2516
2517 PR gdb/1658
2518 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2519 operation as a uleb128. Found by Michael Coulter.
2520
96d887e8
PH
25212004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2522
2523 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2524 make it non-static.
2525 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2526 to ada-lang.h; this is needed to be able to implement the kill command
2527 in multi-task mode.
2528 (task_ptid): Ditto.
2529 (task_entry): Ditto.
2530 (task_list): Ditto.
2531 (ada_build_task_list): Ditto.
2532
2533 * ada-lang.c: Conditionalize routines and data structures related
2534 to breakpoints, exceptions, completion, and symbol caching on
2535 GNAT_GDB, since these are not yet used in the submitted public sources.
2536 (ada_main_name): Editorial: Move definition out of exception-related
2537 code.
2538
31eef181
AC
25392004-06-15 Andrew Cagney <cagney@gnu.org>
2540
2541 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2542 deprecated_pc_in_call_dummy.
2543
2c500098
AM
25442004-06-15 Alan Modra <amodra@bigpond.net.au>
2545
2546 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2547 bfd_get_section_size_before_reloc or _raw_size.
2548 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2549 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2550 (dwarf2_read_section): Likewise.
2551 * elfread.c (elf_locate_sections): Likewise.
2552 * gcore.c (derive_heap_segment): Likewise.
2553 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2554 * remote-e7000.c (e7000_load): Likewise.
2555 * remote-m32r-sdi.c (m32r_load): Likewise.
2556 * remote-mips.c (mips_load_srec): Likewise.
2557 (pmon_load_fast): Likewise.
2558 * remote.c (compare_sections_command): Likewise.
2559 * symfile.c (add_section_size_callback): Likewise.
2560 (load_section_callback): Likewise.
2561 (pc_in_unmapped_range): Likewise.
2562 (pc_in_mapped_range): Likewise.
2563 (sections_overlap): Likewise.
2564 (list_overlays_command): Likewise.
2565 (simple_overlay_update_1): Likewise.
2566 (simple_overlay_update): Likewise.
2567 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2568 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2569
90f943f1
RC
25702004-06-14 Randolph Chung <tausq@debian.org>
2571
2572 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2573 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2574 static.
2575 (hppa_hpux_inferior_created): New function.
2576 (hppa_hpux_init_abi): Register observer.
2577 * symfile.c (hp_cxx_exception_support_initialized)
2578 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2579 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2580
700c15aa
RC
25812004-06-14 Randolph Chung <tausq@debian.org>
2582
3973a7d3
AC
2583 * MAINTAINERS (Write After Approval): Alphabetize my entry
2584 correctly.
700c15aa 2585
cea4838c
AC
25862004-06-14 Andrew Cagney <cagney@gnu.org>
2587
2588 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2589 testsuite maintainer.
2590
97092415
AC
25912004-06-13 Andrew Cagney <cagney@gnu.org>
2592
e8c3165b
AC
2593 * infcmd.c (print_return_value): Fix logic, allow
2594 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2595
bceabdd8
AC
2596 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2597 defining any macros.
2598 * gdbarch.h: Re-generate.
2599
57010b1c
AC
2600 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2601 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2602 * gdbarch.h: Re-generate.
2603
bc87dfa0
AC
2604 * values.c (generic_use_struct_convention): Don't check gcc_p.
2605
15ac804d
AC
2606 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2607 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2608 * gdbarch.h, gdbarch.c: Regenerate.
2609 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2610 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2611 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2612 deprecated_max_register_raw_size and
2613 deprecated_max_register_virtual_size.
2614 * v850-tdep.c (v850_gdbarch_init): Ditto.
2615 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2616 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2617 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2618 * cris-tdep.c (cris_gdbarch_init): Ditto.
2619
97092415
AC
2620 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2621 * gdbarch.h, gdbarch.c: Re-generate.
2622 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2623 (m68hc11_use_struct_convention): Delete function.
2624 (m68hc11_extract_struct_value_address): Delete function.
2625 (m68hc11_return_value): New function.
2626 (m68hc11_gdbarch_init): Instead of store_return_value,
2627 extract_return_value, return_value_on_stack,
2628 deprecated_extract_struct_value_address and use_struct_convention,
2629 set return_value.
2630 * values.c (using_struct_return): Do not call
2631 RETURN_VALUE_ON_STACK.
2632 * arch-utils.h (generic_return_value_on_stack_not): Delete
2633 declaration.
2634 * arch-utils.c (generic_return_value_on_stack_not): Delete
2635 function.
2636
44e5158b
AC
26372004-06-12 Andrew Cagney <cagney@gnu.org>
2638
2639 * values.c (register_value_being_returned): Delete function.
2640 * infcmd.c (legacy_return_value): Delete function.
2641 * infcall.c (call_function_by_hand): Inline
2642 "register_value_being_returned", simplify.
2643 * values.c (using_struct_return): Update comment, refer to
2644 print_return_value instead of register_value_being_returned.
2645 * infcmd.c (print_return_value): Inline calls to
2646 register_value_being_returned and legacy_return_value. Simplify.
2647
b887c273
RC
26482004-06-11 Randolph Chung <tausq@debian.org>
2649
2650 * somread.c (som_symtab_read): Exclude gcc local symbols.
2651
1b2bfbb9
RC
26522004-06-11 Randolph Chung <tausq@debian.org>
2653
3973a7d3
AC
2654 * infrun.c (handle_inferior_event): Handle the case when a
2655 trampoline ends up in the runtime resolver, and if the trampoline
2656 has no name. Rearrange the code so that all the trampoline
2657 processing happens before other step-out-of-range handling.
1b2bfbb9 2658
a9d61c86
MH
26592004-06-11 Martin Hunt <hunt@redhat.com>
2660
2661 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2662 has no fpu.
2663
2c87cf5a
AC
26642004-06-10 Andrew Cagney <cagney@gnu.org>
2665
2666 * blockframe.c (legacy_inside_entry_func): Delete.
2667 (legacy_frame_chain_valid): Inline call to
2668 legacy_inside_entry_func, simplify.
2669
0b67b468 26702004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
2671
2672 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
2673 * dwarf2read.c (partial_die_info): Add dirname field.
2674 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2675 (read_partial_die): Save away DW_AT_comp_dir.
2676 * defs.h (symtab_to_filename): Removed.
2677 * source.c (find_and_open_source): Added.
57c22c6c 2678 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
2679 (symtab_to_filename): Removed.
2680 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
2681 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2682 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2683 symtab_to_filename.
2684 * symtab.h (partial_symtab): Add dirname field.
2685 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
2686 (mi_cmd_file_list_exec_source_file): Call new function
2687 symtab_to_fullname to find fullname.
57c22c6c 2688 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 2689 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
2690 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2691
9a1dd1ad
AC
26922004-06-10 Andrew Cagney <cagney@gnu.org>
2693
239ae8c7
AC
2694 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2695 to generic_use_struct_convention, the default value.
2696
fc720350
AC
2697 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2698 of abort.
2699
9a1dd1ad
AC
2700 * ns32k-tdep.c (ns32k_push_arguments): New function.
2701 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2702 * infcall.c (call_function_by_hand): Call error instead of
2703 legacy_push_arguments.
2704 * value.h (legacy_push_arguments): Delete declaration.
2705 * valops.c (legacy_push_arguments): Delete function.
2706 (value_push): Delete function.
2707
fea25152
BF
27082004-06-10 Brian Ford <ford@vss.fsi.com>
2709
2710 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2711 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2712 info.
2713 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2714
30a4a8e0
AC
27152004-06-10 Andrew Cagney <cagney@gnu.org>
2716
2717 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2718 * gdbarch.h, gdbarch.c: Re-generate.
2719 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2720 parameters.
2721 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2722 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2723 deprecated_pc_in_call_dummy instead of
2724 DEPRECATED_PC_IN_CALL_DUMMY.
2725 (arm_skip_prologue): Ditto.
2726 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2727 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2728 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2729 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2730 Ditto.
2731 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2732 (sh64_init_extra_frame_info, sh64_get_saved_register)
2733 (sh64_pop_frame): Ditto.
2734 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2735 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2736 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2737 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2738 (h8300_pop_frame): Ditto.
2739 * blockframe.c (legacy_inside_entry_func)
2740 (legacy_frame_chain_valid): Ditto.
2741 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
2742 to deprecated_pc_in_call_dummy.
2743
81cfbe54
AC
27442004-06-09 Andrew Cagney <cagney@gnu.org>
2745
a1f4a1b6
AC
2746 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
2747 provide a default value.
2748 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
2749 * gdbarch.h, gdbarch.c: Re-generate.
2750 * arch-utils.c (generic_convert_register_p): Rename
2751 legacy_convert_register_p
2752 (legacy_register_to_value, legacy_value_to_register): Delete
2753 functions.
2754 * arch-utils.h (generic_convert_register_p): Rename
2755 legacy_convert_register_p.
2756 (legacy_register_to_value, legacy_value_to_register): Delete
2757 declarations.
2758
9730f241
AC
2759 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
2760 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
2761 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
2762 * gdbarch.h, gdbarch.c: Re-generate.
2763 * infcmd.c (default_print_registers_info): Simplify.
2764 * findvar.c (value_of_register): Simplify.
2765 * mi/mi-main.c (get_register): Simplify.
2766 * arch-utils.c (legacy_convert_register_p): Always return 0.
2767 (legacy_register_to_value, legacy_value_to_register): Always call
2768 internal_error.
2769
8a1bf479
AC
2770 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
2771 #ifdef CLEAR_INSN_CACHE code.
2772 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
2773 Delete #ifdef CLEAR_DEFERRED_STORES code.
2774
4b38d6f1
AC
2775 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
2776
2d62ecc7
AC
2777 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
2778 copyright.
2779 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
2780
be4f7469
AC
2781 * config/mips/mipsv4.mh: Delete file.
2782
81cfbe54
AC
2783 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
2784 unreferenced macro.
2785 (hpread_adjust_stack_address): Delete declaration.
2786
d966f0cb
AC
27872004-06-08 Andrew Cagney <cagney@gnu.org>
2788
2789 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2790 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
2791 PTRACE_ATTACH / PTRACE_DETACH available call error.
2792 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
2793 * infttrace.c (update_thread_state_after_attach, attach, detach):
2794 Remove #ifdef wrappers.
2795 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
2796 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2797 * config/nm-bsd.h (ATTACH_DETACH): Delete.
2798 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
2799 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
2800 * config/nm-linux.h (ATTACH_DETACH): Delete.
2801 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
2802 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
2803 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
2804 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
2805 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
2806
d91670b9
CV
28072004-06-08 Corinna Vinschen <vinschen@redhat.com>
2808
2809 * configure.in: Set $configdir to the right OS specific value.
2810 Use value when setting $tcldir and $tkdir.
2811 * configure: Regenerate.
2812
28ba0b33
PB
28132004-06-06 Paul Brook <paul@codesourcery.com>
2814
2815 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
2816 records.
2817
f26caa11
PH
28182004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
2819
2820 * ada-lang.c (lookup_symbol_in_language): New function to allow
2821 re-use of another language's symbol lookup code. (Placed here
2822 temporarily while Ada support is being integrated into the public
2823 tree).
2824 (restore_language): New auxiliary function for
2825 lookup_symbol_in_language.
2826 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
2827 temporarily while Ada support is being integrated into the public
2828 tree).
2829
d560a54b
AO
28302004-06-08 Alexandre Oliva <aoliva@redhat.com>
2831
e75d110c
AO
2832 * Makefile.in (check//%): New.
2833
d560a54b
AO
2834 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
2835 (mn10300_store_return_value): Rewrite.
2836 (mn10300_type_align): New.
2837 (mn10300_use_struct_convention): Rewrite.
2838 (mn10300_return_value): New, using all of the above.
2839 (mn10300_pop_frame_regular): Add saved_regs_size.
2840 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
2841
a72fbdb7
AO
2842 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
2843 regs if PC is on movm.
2844
01904826
JB
28452004-06-07 Jim Blandy <jimb@redhat.com>
2846
2847 Add native Linux support for the PowerPC E500.
2848 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
2849 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
2850 all architectures except the E500.
2851 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
2852 #definitions.
2853 (struct gdb_evrregset_t): New type.
2854 (have_ptrace_getsetevrregs): New variable.
2855 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
2856 fetch_spe_registers): New functions.
2857 (fetch_register): Call fetch_spe_register as appropriate.
2858 Assert that we're only passed raw register numbers.
2859 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
2860 Don't fetch gprs if they're pseudoregisters.
2861 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
2862 store_spe_registers): New functions.
2863 (store_register): Call store_spe_register as appropriate.
2864 Assert that we're only passed raw register numbers.
2865 (store_ppc_registers): Call store_spe_registers as appropriate.
2866 Don't store gprs if they're pseudoregisters.
2867
f90ef764
JJ
28682004-06-07 Jeff Johnston <jjohnstn@redhat.com>
2869
2870 * thread-db.c (thread_get_info_callback): Fill in the thread_info
2871 struct if one exists, even if we are dealing with a zombie thread.
2872
45b75230
AC
28732004-06-07 Andrew Cagney <cagney@gnu.org>
2874
2875 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
2876 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
2877 Rename PC_REQUIRES_RUN_BEFORE_USE.
2878 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
2879 #ifdef.
2880
1658da49
RC
28812004-06-07 Randolph Chung <tausq@debian.org>
2882
2883 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
2884 unwinding after sp has been saved to the stack but before the end
2885 of the prologue, and after the fp has been modified but before it has
2886 been saved to the stack.
2887 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
2888 Remove superfluous definitions.
2889 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
2890
9a727a3c
RC
28912004-06-07 Guy Martin <gmsoft@gentoo.org>
2892
2893 Committed by Randolph Chung.
2894 * hppa-linux-nat.c: Include the correct version of the header file
2895 depending on the kernel version.
2896
9e500012
RC
28972004-06-06 Randolph Chung <tausq@debian.org>
2898
2899 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
2900 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
2901
3388d7ff
RC
29022004-06-06 Randolph Chung <tausq@debian.org>
2903
2904 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2905 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
2906 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
2907 * hppa-tdep.c (hppa_symbol_address): New function definition.
2908 * hppa-tdep.h (hppa_symbol_address): New function declaration.
2909
d49771ef
RC
29102004-06-06 Randolph Chung <tausq@debian.org>
2911
2912 * hppa-tdep.h (struct value): Forward declaration.
2913 (gdbarch_tdep): Define tdep find_global_pointer method.
2914 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
2915 associated with the function we are trying to call, and write it
2916 to the gp register.
2917 (hppa32_convert_from_funct_ptr_addr): New function.
2918 (hppa_find_global_pointer): New function.
2919 (hppa_gdbarch_init): Set default find_global_pointer method; set
2920 convert_from_func_ptr_addr method.
2921 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
2922 (hppa_linux_init_abi): Set find_global_pointer method.
2923 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
2924
7d9b040b
RC
29252004-06-06 Randolph Chung <tausq@debian.org>
2926
2927 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
2928 to struct value *function.
2929 * gdbarch.c: Regenerate.
2930 * gdbarch.h: Likewise.
2931 * infcall.c (call_function_by_hand): Pass entire function value
2932 to push_dummy_call.
2933
2934 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
2935 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
2936 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
2937 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
2938 * arm-tdep.c (arm_push_dummy_call): Likewise.
2939 * avr-tdep.c (avr_push_dummy_call): Likewise.
2940 * cris-tdep.c (cris_push_dummy_call): Likewise.
2941 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
2942 * frv-tdep.c (frv_push_dummy_call): Likewise.
2943 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2944 * hppa-tdep.c (hppa32_push_dummy_call)
2945 (hppa64_push_dummy_call): Likewise.
2946 * i386-tdep.c (i386_push_dummy_call): Likewise.
2947 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
2948 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
2949 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2950 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
2951 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
2952 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2953 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
2954 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2955 (ppc64_sysv_abi_push_dummy_call): Likewise.
2956 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
2957 (ppc64_sysv_abi_push_dummy_call): Likewise.
2958 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2959 * s390-tdep.c (s390_push_dummy_call): Likewise.
2960 * sh-tdep.c (sh_push_dummy_call_fpu)
2961 (sh_push_dummy_call_nofpu): Likewise.
2962 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
2963 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
2964 * vax-tdep.c (vax_push_dummy_call): Likewise.
2965
4a19ea35
JB
29662004-06-04 Jim Blandy <jimb@redhat.com>
2967
8327ccee
JB
2968 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
2969 gdbarch argument to register_size.
2970
a3c001ce
JB
2971 * rs6000-tdep.c (rs6000_store_return_value): Use
2972 regcache_cooked_write_part instead of
2973 deprecated_write_register_bytes.
2974 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
2975 not gdbarch_deprecated_store_return_value.
2976
4a19ea35
JB
2977 * ppc-linux-nat.c (store_register, fetch_register): Remove
2978 incorrect assertions. Simplify and generalize handling of
2979 transfers whose sizes are not multiples of, or less than, sizeof
2980 (PTRACE_XFER_TYPE).
2981
b9b5d7ea
JJ
29822004-06-04 Jeff Johnston <jjohnstn@redhat.com>
2983
2984 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
2985 as a new thread event.
720c7d64 2986 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 2987 zombie, return TD_THR_ZOMBIE.
720c7d64 2988 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
2989 TD_THR_ZOMBIE, check if the thread is still on the thread list
2990 and return a -1 ptid if not found.
2991 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
2992 change the status to TARGET_WAITKIND_SPURIOUS.
2993
c8a3b559
CV
29942004-06-03 Corinna Vinschen <vinschen@redhat.com>
2995
2996 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
2997 double values in little endian mode.
2998
20605361
AC
29992004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3000
3001 Committed by Andrew Cagney.
3002 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3003 after last enum constant to avoid error from IBM C
3004 compiler.
3005
bc97b3ba
JB
30062004-06-02 Jim Blandy <jimb@redhat.com>
3007
3008 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3009 to 'message', and make it local to the lone block that uses it.
3010
1da28ab0
JB
3011 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3012
4c4b4cd2
PH
30132004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3014
8a2225b2
PH
3015 * ada-exp.y: Update copyright notice.
3016 Include block.h.
3017
3018 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3019 SPECIAL_VARIABLE and unify the treatment of these cases.
3020
3021 (write_attribute_call0): Remove.
3022 (write_attribute_call1): Remove.
3023 (write_attribute_calln): Remove.
3024 (save_qualifier): Add missing semicolon.
3025
3026 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3027 temporarily disabled to allow compilation with FSF head version.
3028
3029 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3030 use individual operators (OP_*) for all attributes.
3031 (exp syntax): Use write_int.
3032 Handle STRING literals with OP_STRING.
3033 (variable syntax): Add limit parameter to calls to
3034 write_object_renaming.
3035
3036 (temp_parse_space): New definition to hold entities that need
3037 only live until the next call to ada_parse.
3038 (string_to_operator): Rename fields of ada_opname_table entries.
3039
3040 (write_var_from_sym): Record block.
3041 (write_var_from_name): Minor reformatting.
3042 Make sure saved name is properly encoded in the case of multiple
3043 matches, and set its language to Ada.
3044 Update comment.
3045 Modify to indicate unresolved name as symbol in the UNRESOLVED
3046 namespace, allocated in temp_parse_space.
3047 (write_int): New function.
3048
3049 (write_object_renaming): Add max_depth parameter to limit
3050 chains of object renamings.
3051 Handle case where root of renaming expression is itself a renaming.
3052 Use temp_parse_space for temporary name buffer.
3053 Handle renamings to dereferenced pointers (___XEXA suffices).
3054
3055 (ada_parse, yyerror, string_to_operator,
3056 write_var_from_sym, write_var_from_name, write_attribute_call0,
3057 write_attribute_call1, write_attribute_calln,
3058 write_object_renaming): Protoize.
3059
3060 (_initialize_ada_exp): New function.
3061
3062 * ada-lang.c: Update copyright notice.
3063 General terminology change to conform to GNAT compiler usage:
3064 mangle => encode, demangle => decode
3065 Include gdb_obstack.h.
3066 Include gdb_regex.h
3067 Include frame.h
3068 Include hashtab.h
3069 Include completer.h
3070 Include gdb_stat.h
3071 Include block.h
3072 Include infcall.h
3073
3074 (ADA_RETAIN_DOTS): Make sure this is defined.
3075 (TRUNCATION_TOWARDS_ZERO): Define.
3076 (struct string_vector): Define.
3077 (unresolved_names): Remove definition.
3078 (xnew_string_vector): New function.
3079 (string_vector_append): New function.
3080 (extract_string): Make static.
3081 (ada_unqualified_name): New function.
3082 (add_angle_brackets): New function.
3083 (function_name_from_pc): New function.
3084 (place_on_stack): Rename to ensure_lval.
3085
3086 (ensure_lval): Renamed from place_on_stack.
3087 Make identity on lvals.
3088 Update comment.
3089 (is_nonfunction): New interface.
3090 Only symbols in LOC_CONST class can be enumerals.
3091 (fill_in_ada_prototype): Remove; now independent of language.
3092 (add_defn_to_vec): Add obstack and symtab arguments.
3093 Use obstack to hold collected definitions.
3094 (num_defns_collected): New function.
3095 (defns_collected): New function.
3096 (ada_resolve_subexp): Rename to resolve_subexp.
3097 (resolve_subexp): Renamed from ada_resolve_subexp.
3098 (ada_op_name): Return non-const result.
3099 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3100 other purposes.
3101
3102 (to_fixed_array_type): Add declaration.
3103 (coerce_unspec_val_to_type): Remove offset parameter.
3104 (find_sal_from_funcs_and_line): New interface.
3105 (find_line_in_linetable): Ditto.
3106
3107 (all_sals_for_line): Rename to ada_sals_for_line and make
3108 global.
3109 Add new parameter. When set, do not ask the user to choose the
3110 instance, but use the first one found instead.
3111 Use given line number in returned sals.
3112 Fix comment.
3113 Skip the prologue if funfirstline is set.
3114 Correct for memory leak when 0 lines found.
3115
3116 (value_pos_atr): Use pos_atr.
3117 (pos_atr): New function.
3118 (standard_lookup): Add block parameter.
3119
3120 (makeTimeStart): Remove declaration and uses.
3121 (makeTimeStop): Remove declaration and uses.
3122
3123 (ada_completer_word_break_characters): Allow for VMS.
3124 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3125 (raise_sym_name): New constant.
3126 (raise_unhandled_sym_name): New constant.
3127 (raise_assert_sym_name): New constant.
3128 (process_raise_exception_name): New constant.
3129 (longest_exception_template): New constant.
3130 (warning_limit): New variable to limit warnings during expression
3131 evaluation.
3132 (warnings_issued): New variable to keep track of warnings issued.
3133 (known_runtime_file_name_patterns): New constant.
3134 (known_auxiliary_function_name_patterns): New constant.
3135 (symbol_list_obstack): New variable.
3136
3137 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3138 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3139 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3140 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3141 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3142 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3143 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3144 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3145 and strcmp.
3146
3147 (ada_get_field_index): New function.
3148 (lim_warning): New function.
3149 (ada_translate_error_message): New function.
3150 (MAX_OF_SIZE): New function.
3151 (MIN_OF_SIZE): New function.
3152 (UMAX_OF_SIZE): New function.
3153 (UMIN_OF_SIZE): New function.
3154 (discrete_type_high_bound): New function.
3155 (discrete_type_low_bound): New function.
3156 (base_type): New function.
3157 (do_command): Remove.
3158
3159 (ada_update_initial_language): Use language_ada, not language_unknown.
3160 (ada_encode): Renamed from ada_mangle.
3161 Obey ADA_RETAIN_DOTS.
3162 (ada_decode): Renamed from ada_demangle.
3163 Update coding conventions.
3164 (decoded_names_store): New hash table.
3165 (ada_decode_symbol): New function.
3166 (ada_la_decode): New function.
3167
3168 (modify_general_field): Correct computations of offset and bit
3169 position.
3170 (desc_base_type): Handle ref types, too.
3171 (ada_is_direct_array_type): New function.
3172
3173 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3174 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3175 (ada_is_bogus_array_descriptor,ada_type_of_array,
3176 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3177 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3178 ada_is_array_descriptor_type.
3179
3180 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3181 (ada_is_packed_array_type): Handle pointers or
3182 references to packed arrays as well.
3183 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3184 (decode_packed_array_type): Search for the packed array type
3185 symbol in the currently selected block and associated
3186 superblocks too.
3187 Use lookup_symbol again.
3188
3189 (decode_packed_array): Handle pointers and references.
3190 Update call to coerce_unspec_val_to_type.
3191 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3192 (ada_value_primitive_packed_val): Improve comment.
3193
3194 (ada_index_type): Substitute int type for "undefined".
3195 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3196 ada_array_langth, ada_is_string_type): Use renamed
3197 ada_is_simple_array_type.
3198 (empty_array): New function.
3199
3200 (ada_resolve): Rename to resolve.
3201 (resolve): Make static.
3202 Call renamed resolve_subexp.
3203 Update comment.
3204 (ada_resolve_subexp): Rename to resolve_subexp.
3205 (resolve_subexp): Update comment.
3206 Decomment disabled code.
3207 Add LOC_COMPUTED* cases.
3208 Modify to use temporary struct symbols (marked as being in
3209 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3210 OP_UNRESOLVED_VALUE.
3211 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3212 Add OP_STRING case.
3213 Remove OP_ARRAY.
3214 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3215 Use new ada_lookup_symbol_list interface.
3216 Use new ada_resolve_function interface.
3217 Remove OP_TYPE case.
3218
3219 (ada_args_match): Idiot proof against null actuals.
3220 Use intermediate variables to clarify.
3221 (ada_resolve_function): Update comment and interface.
3222 (mangled_ordered_before): Rename to encoded_ordered_before and
3223 update comment.
3224 (sort_choices): Update comment and interface.
3225 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3226 (user_select_syms): New interface.
3227 Use new sort_choices interface.
3228 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3229 (possible_user_operator_p): Idiot-proof against null values.
3230 (ada_simple_renamed_entity): Don't make cleanup; rely on
3231 caller to free result string.
3232 Remove const from return type.
3233 (make_array_descriptor): Rename uses of place_on_stack to
3234 ensure_lval.
3235 Make sure that arrays are on stack.
3236
3237 (HASH_SIZE): Define.
3238 (struct cache_entry): Define.
3239 (cache_space): Define.
3240 (cache): Define.
3241 (clear_ada_sym_cache): New function.
3242 (find_entry): New function.
3243 (lookup_cached_symbol): New function.
3244 (defn_vector_size): Define.
3245 (cache_symbol): New function.
3246 (defn_symbols): Remove.
3247
3248 (standard_lookup): Use lookup_symbol_in_language to get effect of
3249 C lookup.
3250 Cache results.
3251
3252 (symbol_completion_match): New function.
3253 (symbol_completion_add): New function.
3254 (ada_make_symbol_completion_list): New function.
3255
3256 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3257 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3258 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3259 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3260
3261 (ada_lookup_simple_minsym): New function.
3262 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3263
3264 (add_symbols_from_enclosing_procs): New interface.
3265 Conditionalize more helpfully.
3266 Don't bother if program isn't running.
3267 Use new interface to get_frame_block.
3268 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3269
3270 (remove_extra_symbols): New interface.
3271 (xget_renaming_scope): New function.
3272 (is_package_name): New function.
3273 (renaming_is_visible): New function.
3274 (remove_out_of_scope_renamings): New function.
3275
3276 (ada_lookup_symbol_list): New interface.
3277 Properly reinitialize the symbol list obstack.
3278 Don't call add_symbols_from_enclosing_procs if we start from a
3279 static or global block.
3280 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3281 add_symbols_from_enclosing_procs.
3282 Add symtab data to cached entries.
3283 Handle symbols prefixed with
3284 "standard__" specially; strip prefix and don't look in local symbols.
3285 Do not include out of scope renaming symbols in list of
3286 symbols returned.
3287 Add const to block parameter.
3288 Move check for non-local, non-global symbols earlier.
3289 Remove timing stuff.
3290 (ada_lookup_symbol): New interface.
3291 Find symtab as well.
3292 (ada_lookup_symbol_nonlocal): New function.
3293
3294 (is_name_suffix): Enhance suffix detection to recognize
3295 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3296 (is_dot_digits_suffix): New function.
3297 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3298
3299 (ada_add_block_symbols): New interface. Use obstack to return results
3300 in a vector of struct ada_symbol_infos. Add symtab argument.
3301 Use new interface to add_defn_to_vec.
3302 Remove calls to fill_in_ada_prototype.
3303 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3304
3305 (ada_finish_decode_line_1): Add const qualification to local to fix
3306 warning.
3307 Start looking in static block for functions to avoid attempts
3308 to search frame chain for up-level variables.
3309 Adapt to new ada_sals_for_line interface.
3310 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3311 Handle quoting of the function name inside the spec string.
3312 Skip prologue when funfirstline is set and update the
3313 function documentation to that effect.
3314
3315 (debug_print_lines, debug_print_block, debug_print_blocks,
3316 debug_print_symtab): Remove.
3317
3318 (ada_main_name): New function.
3319 (ada_exception_breakpoint_type): New function.
3320 (is_known_support_routine): New function.
3321 (ada_find_printable_frame): Renamed from find_printable_frame and made
3322 global.
3323 Remove level parameter.
3324 Use new interface to select_frame.
3325
3326 (begin_command): Remove.
3327 (ada_adjust_exception_stop): New function.
3328 (ada_print_exception_stop): New function.
3329 (exception_name_from_cond): New function.
3330 (ada_report_exception_break): Replace disabled code with
3331 conditionalization on GNAT_GDB.
3332 Get the exception name from the condition string.
3333 Remove and move functionality into new functions
3334 ada_print_exception_breakpoint_task and
3335 ada_print_exception_breakpoint_nontask.
3336 (error_breakpoint_runtime_sym_not_found): New function.
3337 (is_runtime_sym_defined): New function.
3338 (ada_breakpoint_rewrite): Uncomment suppressed code.
3339 Use symbolic error-message and runtime-symbol names.
3340 Surround runtime symbol names in quotes.
3341 Allow non-specific breakpoints on exceptions and assertions before
3342 program starts.
3343
3344 (ada_is_tagged_type): Add parameter.
3345 (ada_is_tag_type): New function.
3346 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3347 (ada_variant_discrim_type): Ditto.
3348 (value_tag_from_contents_and_address): New function.
3349 (type_from_tag): New function.
3350 (struct tag_args): New structure used to communicate with
3351 ada_tag_name_1.
3352 (ada_tag_name_1): New function.
3353 (ada_tag_name): New function.
3354
3355 (ada_scan_number): Update comment.
3356 (find_struct_field): New function.
3357 (ada_search_struct_field): Make static.
3358 (ada_value_struct_elt): New version that returns references when
3359 given pointers or references to structs.
3360 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3361 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3362 interface.
3363 (ada_value_ind): Use new ada_to_fixed_value interface.
3364 (ada_coerce_ref): Ditto.
3365 (field_offset): Remove.
3366
3367 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3368 (ada_find_renaming_symbol): New function.
3369 (ada_prefer_type): Prefer named types over unnamed ones.
3370 (variant_field_index): New function.
3371 (contains_variant_part): Removed: subsumed by variant_field_index.
3372 (ada_template_to_fixed_record_type): New function, mostly from
3373 template_to_fixed_record_type.
3374 (template_to_fixed_record_type):
3375 Do not scan the type fields beyond the last one; prevents a
3376 potential SEGV.
3377 Handle case where variant field is listed BEFORE discriminant it
3378 depends on.
3379 Fix calculation of record length when bit length is
3380 not evenly divisible by char length.
3381 Move code to ada_template_to_fixed_record_type and call it.
3382
3383 (template_to_static_fixed_type): Revise comment.
3384 Modify to work on ordinary record types as well as templates,
3385 so as to handle fields that use ___XVE or ___XVU encodings.
3386 (to_record_with_fixed_variant_part): Fill out comment.
3387 Initialize C++ stuff in right type.
3388 Allow case where DVAL is null.
3389 Handle case where variant field is not last.
3390 Fix typo concerning record length.
3391 (to_fixed_record_type): Decomment disabled code.
3392 (to_fixed_record_type): Use variant_field_index instead of
3393 contains_variant_part.
3394 (to_fixed_variant_branch_type): Ditto.
3395 (to_fixed_array_type): Decomment disabled code.
3396 (ada_to_fixed_type): Convert tagged types to the specific type.
3397 Deactivate the size-check for array types in order to avoid
3398 some false size alarms.
3399 (to_static_fixed_type): Decomment disabled code.
3400 Modify to call template_to_static_fixed_type
3401 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3402 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3403 Remove valaddr argument, as it is never really used.
3404 (ada_to_fixed_value): Change interface to act on single struct value*
3405 operand.
3406 (adjust_pc_past_prologue): New function.
3407 (ada_attribute_name): Modify to take enum exp_opcode argument.
3408
3409 (ada_enum_name): Recognize new homonym-distinguishing convention.
3410 Adjust local variable's type to remove compiler warning.
3411 Fix a small problem in the part that unqualifies the enumeration name.
3412 (ada_value_binop): New function.
3413 (ada_value_equal): New function.
3414
3415 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3416 Don't give error message when not doing normal evaluation
3417 and a tagged type doesn't seem to contain a structure member.
3418 Give error message for packed arrays.
3419 For indexing arrays, handle pointers to packed arrays correctly.
3420 Handle case of 'first and 'last attributes of bare integral type
3421 without encoded subtype info.
3422 Remove some unnecessary casts.
3423 Fix uninitialized value of type in computing 'first, 'last, or 'length
3424 of array object.
3425 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3426 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3427 calls.
3428 Attributes are now exp_opcode values.
3429 Correct treatment of 'modulus.
3430 Better error message for taking 'length of wrong kind of type;
3431 improve comment.
3432 Change EVAL_NORMAL to noside for consistency.
3433 Use ada_value_binop for DIV, MOD, REM.
3434 Make special case out of array of length 0, since an argument
3435 of 0 upsets some platforms' malloc.
3436 Use OP_STRING instead of OP_ARRAY.
3437 For slice, add check that we have an array type before extracting
3438 a slice out of it. Avoids a SEGV.
3439 When evaluating an array slice, if the array type is a reference to
3440 an aligner type, then replace the aligner type by the actual type.
3441 Decomment disabled code.
3442 Remove some dead code.
3443 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3444 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3445 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3446 and UNOP_MBR to UNOP_IN_RANGE.
3447 If an array type has a parallel ___XVE type, then use it.
3448 Turn arrays into pointers for lvalue arrays.
3449 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3450 bounds error and handle 0-length slices.
3451 Use lim_warning.
3452 When selecting fields, apply ada_to_fixed_value (because the fields
3453 might have ___XVU or ___XVE encodings even if not dynamic.)
3454 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3455 (ada_is_system_address_type): New function.
3456
3457 (get_var_value): Use new interface to ada_lookup_symbol_list.
3458 (get_int_var_value): New interface.
3459 (to_fixed_range_type): Allow unknown bound, with warning.
3460 (ada_is_modular_type): Decomment disabled code.
3461 (ADA_OPERATORS): New definition.
3462 (ada_operator_length): New function.
3463 (ada_expr_op_name): New function.
3464 (ada_forward_operator_length): New function.
3465 (ada_dump_subexp_body): New function.
3466 (ada_print_subexp): New function.
3467 (ada_exp_descriptor): New constant.
3468 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3469 (ada_language_defn): Add ada_exp_descriptor entry.
3470 Change ada_parse => parse.
3471 Add post-parser entry.
3472 Use ada-specific non-local symbol lookup.
3473 Don't use C-style arrays.
3474 String lower-bound is 1.
3475 Decomment disabled code.
3476 (parse): New function.
3477 New fields ada_translate_error_message, ada_lookup_symbol,
3478 ada_lookup_minimal_symbol.
3479
3480 * ada-lang.h: Update copyright dates.
3481 Replace the mangle/demangle terminology throughout by the
3482 more appropriate encode/decode one.
3483 Include breakpoint.h.
3484 Forward declare struct partial_symbol, struct block.
3485 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3486 (EXTRACT_ADDRESS): Remove.
3487 (EXTRACT_INT): Remove.
3488 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3489 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3490 (MAX_RENAMING_CHAIN_LENGTH): Define.
3491 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3492
3493 (enum task_states): Remove.
3494 ada_task_states: Remove.
3495 (fat_string): Remove.
3496 (struct entry_call): Remove.
3497 (struct task_fields): Remove.
3498 (struct task_entry): Remove.
3499
3500 (struct ada_symbol_info): Define.
3501 (enum ada_attribute): Remove.
3502 (enum ada_operator): Define.
3503
3504 (ada_get_field_index): Declare.
3505 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3506 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3507 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3508 (ada_lookup_symbol_list): New interface.
3509 (ada_decode_symbol): Declare.
3510 (ada_decode): Declare.
3511 (ada_lookup_symbol): New interface.
3512 (ada_update_initial_language): Declare.
3513 (ada_lookup_simple_minsym): Declare.
3514 (user_select_syms): New interface.
3515 (ada_sals_for_line): Declare.
3516 (ada_is_tagged_type): New interface.
3517 (ada_tag_name): Declare.
3518 (ada_lookup_struct_elt_type): Remove declaration.
3519 (ada_search_struct_field): Remove declaration.
3520 (ada_attribute_name): New interface.
3521 (ada_is_system_address_type): Declare.
3522 (ada_to_fixed_value): Remove declaration.
3523 (ada_template_to_fixed_record_type_1): Declare.
3524 (get_int_var_value): New interface.
3525 (ada_find_any_symbol): Declare.
3526 (ada_find_renaming_symbol): Declare.
3527 (ada_mangle): Rename to ada_encode.
3528 (ada_simple_renamed_entity): Remove const.
3529 (ada_main_name): Declare.
3530 (get_current_task): Rename to ada_get_current_task.
3531 (get_entry_number): Remove declaration.
3532 (ada_report_exception_break): Remove declaration.
3533 (ada_print_exception_breakpoint_nontask): Declare.
3534 (ada_print_exception_breakpoint_task): Declare.
3535 (ada_find_printable_frame): Declare.
3536
3537 * ada-lex.l: Update copyright notices.
3538 Use xmalloc and xfree instead of malloc and free.
3539 Use new interface to name_lookup.
3540 Use new interface to
3541 ada_mangle=>ada_encode.
3542 Redo handling of '$...' variable to parallel current treatment
3543 in c-exp.y.
3544 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3545 digit_to_int, strtoulst, processInt, processReal, processId,
3546 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3547 yywrap): Protoize.
3548
3549 (processInt): Use cast to remove harmless warning.
3550 (processReal): Modify to get rid of compiler warning on scan formats.
3551
3552 (processId): Replace xmalloc with obstack_alloc for name and remove
3553 call to ada_name_string_cleanup.
3554 Remove obsolete disabled code.
3555 (name_lookup): Ditto.
3556 New interface.
3557 Use obsavestring on temp_parse_space instead of savestring
3558 on name, and remove call to ada_name_string_cleanup.
3559 Free string returned from ada_simple_renamed_entity.
3560 Use new interface to ada_lookup_symbol_list.
3561 Decomment disabled code.
3562 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3563 not types.
3564 When a type name lookup succeeds as a result of
3565 lookup_primitive_typename, check for regular type entry that has not
3566 yet been read in.
3567 Limit length of chain of renamed symbols we are willing to follow.
3568 Do not break names beginning with "standard__" into segments.
3569 (block_lookup): Use new interface to ada_lookup_symbol_list.
3570
3571 * ada-typeprint.c: Update copyright notice.
3572 (demangled_type_name): Rename to decoded_type_name.
3573 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3574 (print_range_bound): Correct handling of negative
3575 bounds that make the index type looked unsigned under STABS.
3576 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3577 (print_range_type_named): Use the builtin int type if no type
3578 corresponding to the given type name could be found.
3579 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3580 Add some bullet-proofing.
3581 (print_variant_clauses): Allow for variant branches with ___XVU
3582 encodings that are not dynamic fields.
3583 Use new interface to ada_is_tagged_type.
3584 (print_record_type): Allow for fields with ___XVE encodings that
3585 are not dynamic fields.
3586 Use new interface to ada_is_tagged_type.
3587 (ada_print_type): ada_is_array_descriptor =>
3588 ada_is_array_descriptor_type.
3589
3590 * ada-valprint.c: Update copyright notice.
3591 Include gdb_string.h
3592 Include infcall.h
3593 (ui_memcpy): New function.
3594 (ada_print_floating): New function.
3595 (ada_print_str): Order arguments correctly.
3596 Correct handling of empty arrays and arrays of 0-length items.
3597 ada_is_array_descriptor => ada_is_array_descriptor_type
3598 Print values of type System.Address in hexadecimal format.
3599 Use ada_print_floating to print floating-point numbers in Ada format.
3600 Print class tag values with type names.
3601 No longer print the address of reference values. Avoids
3602 a potential confusion.
3603 (ada_value_print): Stop printing the object type for reference
3604 values, but preserve that behavior for access types. Avoids
3605 a potential confusion.
3606 Simplify one conditional expression, as the first part is now
3607 necessarily true.
3608 ada_is_array_descriptor => ada_is_array_descriptor_type
3609 Add check for arrays for null records, and print them by hand.
4c4b4cd2 3610
f65f91b5
JB
36112004-06-01 Jim Blandy <jimb@redhat.com>
3612
3613 * ppc-tdep.h: Delete unused 'regoff' member.
3614 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3615
d4687fa0
MC
36162004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3617
3618 Fix PR symtab/1661.
3619 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3620 (hpread_read_struct_type): Likewise.
3621
de169ec9
AC
36222004-06-01 Andrew Cagney <cagney@gnu.org>
3623
c6902d46
AC
3624 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3625 instead of xasprintf.
3626 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3627 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3628 (mi_cmd_data_list_register_names)
3629 (mi_cmd_data_list_changed_registers)
3630 (mi_cmd_data_list_register_values)
3631 (get_register, mi_cmd_data_write_register_values)
3632 (mi_cmd_data_write_register_values)
3633 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3634 (mi_cmd_target_download, mi_cmd_target_select)
3635 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3636 (mi_execute_cli_command, mi_execute_async_cli_command)
3637 (mi_execute_async_cli_command): Ditto.
3638 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3639 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3640
6085fc2d
AC
3641 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3642 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3643 error_last_message instead of mi_error_last_message.
3644 * mi/mi-main.c (mi_error_last_message): Delete function.
3645
de169ec9
AC
3646 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3647 "invalid number of columns" error. Delete redundant "out of
3648 memory" check.
3649
1fc7d519
MK
36502004-05-31 Mark Kettenis <kettenis@gnu.org>
3651
6cfb2041
MK
3652 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3653 (gregset_t, fpregset_t): Remove typedefs.
3654 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3655 (REG_OFFSET): Rename argument.
3656 (i386bsd_r_reg_offset): Rename from reg_offset.
3657 (REG_ADDR): Remove macro.
3658 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3659 functions.
3660 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3661 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3662 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3663 instead of supply_gregset.
3664 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3665 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3666 instead of fill_gregset.
3667 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3668
1fc7d519
MK
3669 * i386bsd-nat.c: Don't include "gregset.h".
3670 (supply_gregset, fill_gregset): Make static.
3671 (supply_fpregset, fill_fpregset): Remove.
3672 * Makefile.in (i386bsd-nat.o): Update dependencies.
3673
2c34abbe
MK
36742004-05-30 Mark Kettenis <kettenis@gnu.org>
3675
448724fb
MK
3676 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3677 "gdb_assert.h". Con't include "gregset.h".
3678 (fbsd_make_corefile_notes): Use regset-based core file support
3679 instead off fill_gregset and fill_fpregset.
3680 * Makefile.in (fbsd-proc.o): Update dependencies.
3681
5ca8ca7c
MK
3682 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3683 instructions.
3684 (m88k_frame_prev_register): Simplify code a bit.
3685
593adc23
MK
3686 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3687 (amd64_collect_fpregset): New function.
3688 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3689
8d1b517b
MK
3690 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3691
7fdafb5a
MK
3692 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3693 (i386_collect_gregset): New function.
3694 (i386_supply_fpregset): Adjust comment.
3695 (i386_collect_fpregset): New function.
3696 (i386_regset_from_core_section): Use i386_collect_gregset and
3697 i386_collect_fpregset.
3698
8693c419
MK
3699 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3700 handle VALUEP being null.
3701
2c34abbe
MK
3702 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3703
45d134d8
MK
37042004-05-29 Mark Kettenis <kettenis@gnu.org>
3705
1698f4e7
MK
3706 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3707
45d134d8
MK
3708 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3709 assembler in OpenBSD 3.5-current.
3710 (amd64obsd_sigcontext_addr): Likewise.
3711
691d145a
JB
37122004-05-28 Jim Blandy <jimb@redhat.com>
3713
3714 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3715 register set, so our regcache isn't declared "legacy" and our E500
3716 pseudoregister read and write functions aren't ignored.
3717 (rs6000_register_byte, rs6000_register_raw_size,
3718 rs6000_register_virtual_type, rs6000_register_convertible,
3719 rs6000_register_convert_to_virtual,
3720 rs6000_register_convert_to_raw): Deleted.
3721 (rs6000_register_type, rs6000_convert_register_p,
3722 rs6000_register_to_value, rs6000_value_to_register): New
3723 functions.
3724 (rs6000_gdbarch_init): Don't register
3725 gdbarch_deprecated_register_size,
3726 gdbarch_deprecated_register_bytes,
3727 gdbarch_deprecated_register_byte,
3728 gdbarch_deprecated_register_raw_size,
3729 gdbarch_deprecated_register_virtual_type,
3730 gdbarch_deprecated_register_convertible,
3731 gdbarch_deprecated_register_convert_to_virtual, or
3732 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3733 register gdbarch_register_type, gdbarch_convert_register_p,
3734 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3735
18ed0c4e
JB
37362004-05-26 Jim Blandy <jimb@redhat.com>
3737
3738 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3739 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3740 functions, updated to match the register numberings used in GCC.
3741 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
3742 rs6000_dwarf2_reg_to_regnum as register number conversions
3743 functions for STABS and Dwarf2.
3744
779af9e3
RC
37452004-05-26 Randolph Chung <tausq@debian.org>
3746
3747 * infttrace.h (target_waitkind): Forward declare type instead of pulling
3748 in header file.
3749
c23968a2
JB
37502004-05-25 Joel Brobecker <brobecker@gnat.com>
3751
3752 * NEWS: Document new "start" command.
3753
3a7d1c27
RC
37542004-05-25 Randolph Chung <tausq@debian.org>
3755
3756 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
3757 hppa-linux.
3758
43613416
RC
37592004-05-25 Randolph Chung <tausq@debian.org>
3760
3761 * hppa-hpux-tdep.c (offsetof): Define.
3762 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
3763 (hppa32_hpux_frame_base_before_sigtramp)
3764 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3765 (hppa64_hpux_frame_saved_pc_in_sigtramp)
3766 (hppa64_hpux_frame_base_before_sigtramp)
3767 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
3768 functions.
3769 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
3770 (hppa_hpux_sigtramp_frame_unwind_cache)
3771 (hppa_hpux_sigtramp_frame_this_id)
3772 (hppa_hpux_sigtramp_frame_prev_register)
3773 (hppa_hpux_sigtramp_frame_unwind)
3774 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
3775 (hppa_hpux_init_abi): Register sigtramp unwinder.
3776 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
3777
6d1be3f1
RC
37782004-05-25 Randolph Chung <tausq@debian.org>
3779
3780 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
3781 and multiple stack unwinds.
3782 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
3783
97c34f65
AC
37842004-05-25 Andrew Cagney <cagney@gnu.org>
3785
3786 * symfile.h (symbol_file_add_from_memory): Delete declaration.
3787 * symfile-mem.h: Delete file.
3788 * symfile-mem.c: Do not include "symfile-mem.h".
3789 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
3790 "struct bfd_section". When an error do not bother returning NULL.
3791 (add_symbol_file_from_memory_command): Use "struct bfd" and
3792 "struct bfd_section".
3793 * Makefile.in (symfile_mem_h): Delete.
3794 (symfile-mem.o): Update dependencies.
3795
e23cbd82
NR
37962004-05-25 Nick Roberts <nickrob@gnu.org>
3797
3798 * gdb-mi.el: New file.
3799
20d2ca3e
AC
38002004-05-25 Andrew Cagney <cagney@gnu.org>
3801
3802 * inftarg.c: Include "observer.h".
3803 (child_attach, child_create_inferior): Notify inferior_created.
3804 * corelow.c: Include "observer.h".
3805 (core_open): Notify inferior_created.
3806 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
3807
c27cda74
AC
38082004-05-25 Andrew Cagney <cagney@gnu.org>
3809
3810 * target.h (struct target_ops): Add from_tty to
3811 to_create_inferior.
3812 (target_create_inferior, find_default_create_inferior): Update.
3813 * infcmd.c (run_command): Update.
3814 * wince.c (child_create_inferior): Update.
3815 * win32-nat.c (child_create_inferior): Update.
3816 * uw-thread.c (uw_thread_create_inferior): Update.
3817 * thread-db.c (thread_db_create_inferior): Update.
3818 * target.c (debug_to_create_inferior)
3819 (find_default_create_inferior): Update.
3820 (maybe_kill_then_create_inferior): Update.
3821 * sol-thread.c (sol_thread_create_inferior): Update.
3822 * remote.c (extended_remote_async_create_inferior)
3823 (extended_remote_create_inferior): Update.
3824 * remote-vx.c (vx_create_inferior): Update.
3825 * remote-st.c (st2000_create_inferior): Update.
3826 * remote-sim.c (gdbsim_create_inferior): Update.
3827 * remote-sds.c (sds_create_inferior): Update.
3828 * remote-rdp.c (remote_rdp_create_inferior): Update.
3829 * remote-rdi.c (arm_rdi_create_inferior): Update.
3830 * remote-m32r-sdi.c (m32r_create_inferior): Update.
3831 * remote-e7000.c (e7000_create_inferior): Update.
3832 * procfs.c (procfs_create_inferior): Update.
3833 * ocd.c (ocd_create_inferior): Update.
3834 * ocd.h (ocd_create_inferior): Update.
3835 * nto-procfs.c (procfs_create_inferior): Update.
3836 * monitor.c (monitor_create_inferior): Update.
3837 * lin-lwp.c (lin_lwp_create_inferior): Update.
3838 * inftarg.c (child_create_inferior): Update.
3839 * hpux-thread.c (hpux_thread_create_inferior): Update.
3840 * gnu-nat.c (gnu_create_inferior): Update.
3841
1db2a798
AC
38422004-05-25 Andrew Cagney <cagney@gnu.com>
3843
3844 * MAINTAINERS: Update e-mail address.
3845
007d08bb
RC
38462004-05-24 Randolph Chung <tausq@debian.org>
3847
3848 * thread.c (info_threads_command, thread_apply_all_command)
3849 (thread_apply_command, thread_command, do_captured_thread_select):
3850 Remove HPUXHPPA-specific code.
3851
69e7b95e
RC
38522004-05-24 Randolph Chung <tausq@debian.org>
3853
3854 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
3855 unused symbols.
3856 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
3857 references.
3858
a4d5f2e0
JB
38592004-05-24 Joel Brobecker <brobecker@gnat.com>
3860
3861 * infcmd.c (kill_if_already_running): New function, extracted
3862 from run_command().
3863 (run_command): Replace extracted code by call to
3864 kill_if_already_running().
3865 (start_command): New function.
3866 (_initialize_infcmd): Add "start" command.
3867
bf2ca189
MK
38682004-05-24 Mark Kettenis <kettenis@gnu.org>
3869
3870 Add OpenBSD/m88k support.
3871 * NEWS (New native configurations): Mention OpenBSD/m88k.
3872 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
3873 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
3874 * Makefile.in (m88k_tdep_h): New variable.
3875 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
3876 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
3877 * configure.host: Add m88*-*-openbsd*.
3878 * configure.tgt: Add m88*-*-openbsd*.
3879
80fadb11
JB
38802004-05-24 Jim Blandy <jimb@redhat.com>
3881
3882 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
3883 to approve changes.
3884
19e2d14b
KB
38852004-05-24 Kevin Buettner <kevinb@redhat.com>
3886
3887 * symtab.c (fixup_section): Search section table when lookup by
3888 name fails.
3889
1b07b470
RC
38902004-05-24 Randolph Chung <tausq@debian.org>
3891
3892 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
3893 be "small_struct".
3894
368702b1
MK
38952004-05-24 Mark Kettenis <kettenis@gnu.org>
3896
5df97fde
MK
3897 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
3898 register number in regcache_raw_collect call.
3899 (m68kbsd_collect_fpregset): Likewise.
3900 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
3901
368702b1
MK
3902 * regset.h (struct regset): Add back `regset' member.
3903
a770d4ec
MK
39042004-05-23 Mark Kettenis <kettenis@gnu.org>
3905
70f9f479
MK
3906 * configure.in: Check for td_pcb in `struct thread'.
3907 * configure, config.in: Regenerated.
3908
2e16d79e
MK
3909 * dpx2-nat.c: Remove file.
3910 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
3911 (dpx2-nat.o): Remove dependencies.
3912
492cf391
MK
3913 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
3914 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
3915 (amd64obsd_supply_pcb): New function.
3916 (_initialize_amd64obsd_nat): Enable libkvm interface.
3917 * Makefile.in (amd64obsd-nat.o): Update dependencies.
3918 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
3919 (LOADLIBES): New variable.
3920
a770d4ec
MK
3921 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
3922 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
3923 (sparc32nbsd_supply_pcb): New function.
3924 (_initialize_sparcnbsd_nat): Enable libkvm interface.
3925 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
3926 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3927 (LOADLIBES): New variable.
3928
9ea75c57
MK
39292004-05-22 Mark Kettenis <kettenis@gnu.org>
3930
2e0c3539
MK
3931 * bsd-kvm.c, bsd-kvm.h: New files.
3932 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3933 "bsd-kvm.h".
3934 (i386fbsd_supply_pcb): New function.
3935 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
3936 (i386fbsd-nat.o): Update dependencies.
3937 (bsd_kvm_h): New variable.
3938 (bsd-kvm.o): New dependency.
3939 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3940 (LOADLIBES): New variable.
3941
9ea75c57
MK
3942 * regset.c: Tweak comment.
3943 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
3944 macro.
3945 * regset.h: Update copyright year.
3946 (struct regset): Remove `descr' member, add `gdbarch' member.
3947 (regset_alloc): Adjust prototype and comment.
3948 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
3949 (i386_supply_fpregset): Likewise.
3950 (i386_regset_from_core_section): Update call to regset_alloc.
3951 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
3952 REGSET->arch.
3953 (i386obsd_aout_regset_from_core_section): Update call to
3954 regset_alloc.
3955 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
3956 REGSET->arch.
3957 (i386nbsd_aout_regset_from_core_section): Update call to
3958 regset_alloc.
3959 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
3960 REGSET->arch.
3961 (amd64_regset_from_core_section): Update call to regset_alloc.
3962 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
3963 REGSET->arch.
3964 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
3965 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
3966 &sparc32nbsd_gregset in sparc32_supply_gregset call.
3967 (sparc32nbsd_init_abi): Update call to regset_alloc.
3968 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
3969 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
3970 (sparc64obsd_init_abi): Update call to regset_alloc.
3971 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
3972 &sparc64nbsd_gregset in sparc64_supply_gregset call.
3973 (sparc64nbsd_init_abi): Update call to regset_alloc.
3974 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
3975 &sparc64fbsd_gregset in sparc64_supply_gregset call.
3976 (sparc64fbsd_init_abi): Update call to regset_alloc.
3977
867e2dc5
JB
39782004-05-22 Jim Blandy <jimb@redhat.com>
3979
3980 * ppc-tdep.h (spe_register_p): New declaration.
3981 (struct gdbarch_tdep): New members: ppc_acc_regnum and
3982 ppc_spefscr_regnum.
3983 * rs6000-tdep.c (spe_register_p): New function.
3984 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
3985 spefscr.
3986 (rs6000_gdbarch_init): Initialize the new members of the tdep
3987 structure.
3988
617a4cba
JB
39892004-05-21 Jim Blandy <jimb@redhat.com>
3990
0397dee1
JB
3991 * ppc-linux-nat.c (fetch_register): Move code back to be next
3992 to the comment that describes it. (Moved code, instead of
3993 comment, for symmetry with store_register.)
3994
617a4cba
JB
3995 Allocate regset structures in the gdbarch's obstack, not using
3996 xmalloc.
3997 * regset.c (regset_alloc): Renamed from regset_xmalloc.
3998 Add 'arch' argument. Allocate the regset on arch's obstack, not
3999 using xmalloc.
4000 * regset.h (regset_alloc): Update declaration.
4001 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4002 gdbarch argument.
4003 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4004 * i386-tdep.c (i386_regset_from_core_section): Same.
4005 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4006 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4007 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4008 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4009 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4010 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4011
9aa3914d
JB
40122004-05-21 Joel Brobecker <brobecker@gnat.com>
4013
4014 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4015
99c87dab
JB
40162004-05-21 Jim Blandy <jimb@redhat.com>
4017
4018 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4019 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4020
c2b6b4aa
JB
40212004-05-20 Jim Blandy <jimb@redhat.com>
4022
4023 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4024
144529d0
MK
40252004-05-20 Mark Kettenis <kettenis@gnu.org>
4026
4027 * regset.h: Make prototype const-correct.
4028 * regset.c (regset_xmalloc): Make const-correct.
4029
4725b721
PH
40302004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4031
4032 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4033 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4034 (symbol_search_name): Declare.
4035
4036 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4037 (iter_name_next_hashed): Ditto.
4038 (iter_name_next_linear): Ditto.
4039 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4040
4041 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4042 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4043 (symbol_search_name): New function.
4044
4045 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4046
4047 * minsyms.c (build_minimal_symbol_hash_tables): Change
4048 test for adding to demangled hash table to check for difference
4049 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4050
be07a590
JB
40512004-05-19 Jim Blandy <jimb@redhat.com>
4052
4053 Use a constructor function to create regset structures.
4054 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4055 (struct regset): Use supply_regset_ftype. Add new
4056 'collect_regset' member.
4057 (regset_xmalloc): New declaration.
4058 * regset.c: New file.
4059 * am64-tdep.c (amd64_regset_from_core_section): Use
4060 regset_xmalloc to construct regset structures.
4061 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4062 * i386-tdep.c (i386_regset_from_core_section): Same.
4063 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4064 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4065 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4066 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4067 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4068 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4069 * Makefile.in (COMMON_OBS): Add regset.o.
4070 (regset.o): New rule.
4071
604368f5
JB
40722004-05-19 Joel Brobecker <brobecker@gnat.com>
4073
4074 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4075 and pthread_cond_wait.c.
4076
82d69f8b
JB
40772004-05-18 Jim Blandy <jimb@redhat.com>
4078
4079 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4080 before the mach-specific switch, and then let the individual cases
4081 override the defaults, rather than leaving them uninitialized
4082 until the switch and then setting them in each case.
4083
5859efe5
RC
40842004-05-18 Randolph Chung <tausq@debian.org>
4085
4086 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4087 millicode functions.
4088
9ca80cf8
RC
40892004-05-18 Randolph Chung <tausq@debian.org>
4090
4091 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4092 references to dld_flags_buffer consistent.
4093
ed70ba00
RC
40942004-05-18 Randolph Chung <tausq@debian.org>
4095
4096 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4097 it for unwinding the stack.
4098
63100632
RC
40992004-05-18 Randolph Chung <tausq@debian.org>
4100
4101 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4102 Undefine these so we can overide them using gdbarch.
4103
090ccbb7
RC
41042004-05-18 Randolph Chung <tausq@debian.org>
4105
4106 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4107 handling for 64-bit HPUX (elf).
4108
594706e6
DJ
41092004-05-18 Daniel Jacobowitz <dan@debian.org>
4110
4111 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4112 constants.
4113 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4114 * ia64-tdep.c (examine_prologue): Likewise.
4115 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4116 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4117
e5483145
MK
41182004-05-18 Mark Kettenis <kettenis@gnu.org>
4119
4120 * vax-tdep.c (vax_return_value): Implement
4121 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4122
caed1a45
MK
41232004-05-17 Mark Kettenis <kettenis@gnu.org>
4124
4125 * vax-tdep.c (vax_return_value): Fix typo.
4126
3c0b7db2
AC
41272004-05-17 Andrew Cagney <cagney@redhat.com>
4128
5aae53e5
AC
4129 * MAINTAINERS: Mark Salter was also responsible for
4130 testsuite/config/
4131
3c0b7db2
AC
4132 * NEWS: Mention signal fixes.
4133
22b0923d
RC
41342004-05-17 Randolph Chung <tausq@debian.org>
4135
4136 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4137 check to see if we are unwinding an export stub. Export stubs clobber
4138 the %rp in the call path and stores the original rp in a stack slot.
4139
22f2b2f3
JB
41402004-05-17 Jim Blandy <jimb@redhat.com>
4141
4142 * MAINTAINERS: Update address for J.T. Conklin.
4143
cea96d64
RC
41442004-05-17 Randolph Chung <tausq@debian.org>
4145
4146 * hppa-tdep.c: Remove superfluous #include's.
4147 * Makefile.in (hppa-tdep.o): Update dependencies.
4148
f08f6a4a
RC
41492004-05-17 Randolph Chung <tausq@debian.org>
4150
4151 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4152 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4153 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4154 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4155 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4156 Remove static function declarations.
4157
51da707a
MK
41582004-05-17 Mark Kettenis <kettenis@gnu.org>
4159
caed1a45
MK
4160 * alphabsd-nat.c: Update copyright year.
4161 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4162
c0c2b0db
MK
4163 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4164 and M68K_A2_REGNUM.
4165
51da707a
MK
4166 * m68k-tdep.c (m68k_svr4_return_value): Implement
4167 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4168
8d027a04
MK
41692004-05-16 Mark Kettenis <kettenis@gnu.org>
4170
4171 * sol-thread.c Update copyright year. Fix various coding
4172 standards violations. Tweak a few comments.
4173 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4174 Delete prototypes.
4175
0d99fdb9
RC
41762004-05-15 Randolph Chung <tausq@debian.org>
4177
4178 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4179 as pointer instead of array reference since HPUX compiler does
4180 not accept unsized array arguments.
4181 * somsolib.c (dld_flags_buffer): Use constant array size.
4182
f7e3843a
MK
41832004-05-15 Mark Kettenis <kettenis@gnu.org>
4184
0fe85704
MK
4185 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4186 offset with decimal offset.
4187 (amd64obsd_sigcontext_addr): Return correct address for entire
4188 signal trampoline.
4189
a54f9a00
MK
4190 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4191 instead of get_frame_base.
4192
feae6502
MK
4193 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4194 (fill_gregset): Use regcache_raw_collect.
4195
0382d099
MK
4196 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4197 ppcobsd-tdep.c.
4198
f7e3843a
MK
4199 * config/sparc/tm-nbsd64.h: Remove file.
4200 * config/tm-sunos.h: Remove file.
4201
773df3e5
JB
42022004-05-15 Joel Brobecker <brobecker@gnat.com>
4203
4204 * rs6000-tdep.c (store_param_on_stack_p): New function,
4205 an improved version of some code extracted from skip_prologue().
4206 (skip_prologue): Use store_param_on_stack_p() to detect
4207 instructions saving a parameter on the stack. Detect when r0
4208 is used to save a parameter.
4209 Do not mark "li rx, SIMM" instructions as part of the prologue,
4210 unless the following instruction is also part of the prologue.
4211
95918acb
AC
42122004-05-14 Andrew Cagney <cagney@redhat.com>
4213
06f32659
AC
4214 * infrun.c (handle_inferior_event): Simplify
4215 STEP_OVER_UNDEBUGGABLE.
4216
95918acb
AC
4217 * infrun.c (handle_step_into_function): Delete function.
4218 (handle_inferior_event): Inline calls to
4219 handle_step_into_function.
4220
40711ff1 42212004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
4222
4223 * rs6000-nat.c: Fix a comment.
4224
02f60eae
JB
42252004-05-12 David Anderson <davea@sgi.com>
4226
4227 Committed by Jim Blandy <jimb@redhat.com>:
4228 * regcache.c (struct regcache_descr): fix comment spelling.
4229
552e377b
JB
42302004-05-13 J. Brobecker <brobecker@gnat.com>
4231
4232 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4233 Fixes a link link failure.
4234
349766b2
JB
42352004-05-13 J. Brobecker <brobecker@gnat.com>
4236
4237 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4238 error that was causing the build to fail.
4239
0d4d5484
JB
42402004-05-13 J. Brobecker <brobecker@gnat.com>
4241
4242 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4243 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4244
0b30808c
AC
42452004-05-13 Andrew Cagney <cagney@redhat.com>
4246
4247 * infrun.c (handle_inferior_event): Check for
4248 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4249 calls. Update comments.
4250
cdf2c5f5
JB
42512004-05-13 Jim Blandy <jimb@redhat.com>
4252
063715bf
JB
4253 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4254 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4255 (store_regs_user_thread, store_regs_kernel_thread): Use
4256 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4257 * ppc-linux-nat.c (fill_gregset): Same.
4258 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4259 (ppc_linux_sigtramp_cache): Same.
4260 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4261 (ppcnbsd_sigtramp_cache_init): Same.
4262 * rs6000-nat.c (fetch_core_registers): Same.
4263 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4264 (rs6000_frame_cache): Same.
4265
cdf2c5f5
JB
4266 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4267 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4268 of assuming that the gprs are numbered starting with zero.
4269 * ppc-linux-nat.c (fill_gregset): Same.
4270 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4271 * ppcnbsd-nat.c (getregs_supplies): Same.
4272 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4273 * rs6000-nat.c (fetch_core_registers): Same.
4274 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4275
450bd37b
MS
42762004-05-07 Michael Snyder <msnyder@redhat.com>
4277
4278 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4279 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4280
4a72a2a6
AC
42812004-05-13 Andrew Cagney <cagney@redhat.com>
4282
4283 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4284
8edfa926
BM
42852004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4286
4287 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4288 base_address for shared libraries.
4289
723e0e3d
BM
42902004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4291
4292 * MAINTAINERS (write after approval): Add myself.
4293
00d4360e
UW
42942004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4295
4296 * breakpoint.c (bpstat_stop_status): Add new argument
4297 STOPPED_BY_WATCHPOINT. Use it instead of testing
4298 target_stopped_data_address agaist 0 to check whether
4299 or not we stopped due to a hardware watchpoint.
4300 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4301 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4302 with new argument.
4303
ec76baa5
JB
43042004-05-12 Jim Blandy <jimb@redhat.com>
4305
4306 * configure.in: When checking whether we should use the -bbigtoc
4307 option, don't forget to restore the original value of LDFLAGS.
4308 * configure: Regenerated.
4309
f2c9ca08
AC
43102004-05-12 Andrew Cagney <cagney@redhat.com>
4311
4312 * thread.c (load_infrun_state): Delete step_sp.
4313 * infrun.c (context_switch): Ditto.
4314 * inferior.h (step_sp): Ditto.
4315 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4316 * gdbthread.h (struct thread_info, save_infrun_state)
4317 (restore_infrun_state): Ditto.
4318
090ddb2a
UW
43192004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4320
4321 * MAINTAINERS (write after approval): Add myself.
4322
8aad930b
AC
43232004-05-12 Andrew Cagney <cagney@redhat.com>
4324
4325 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4326 eliminate reference to step_sp.
4327 (struct execution_control_state, init_execution_control_state)
4328 (handle_inferior_event, keep_going): Delete update_step_sp and
4329 step_sp.
4330 * infcmd.c (step_sp): Note that variable is unused.
4331
922d5ae0
AC
43322004-05-11 Andrew Cagney <cagney@redhat.com>
4333
4334 * infrun.c (step_over_function): Delete function.
4335 (handle_step_into_function): Use insert_step_resume_breakpoint.
4336 (insert_step_resume_breakpoint): Fix assertion.
4337
017c5ca5
NR
43382004-05-11 Nick Roberts <nickrob@gnu.org>
4339
4340 * utils.c (defaulted_query): Just use the normal query input type
4341 when printing the annotations.
4342
42edda50
AC
43432004-05-11 Andrew Cagney <cagney@redhat.com>
4344
4345 * infrun.c (handle_inferior_event): Simplify code handling
4346 step-into or return-from a signal trampoline.
4347
d28b44a7
AC
43482004-05-11 Andrew Cagney <cagney@redhat.com>
4349
4350 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4351 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4352
383f0f5b
JB
43532004-05-10 Jim Blandy <jimb@redhat.com>
4354
d0b57c3a
JB
4355 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4356 with a call to internal_error.
4357
383f0f5b
JB
4358 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4359 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4360 processor variant lacks those registers.
4361 (ppc_floating_point_unit_p): Change description to make it clear
4362 that this returns info about the ISA, not the ABI.
4363 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4364 return true or false by checking tdep->ppc_fp0_regnum and
4365 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4366 arch/mach switching done in rs6000_gdbarch_init; it's better to
4367 keep that logic there, and just check the results here.
4368 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4369 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4370 floating-point registers.
4371 (ppc_supply_fpregset, ppc_collect_fpregset)
4372 (rs6000_push_dummy_call, rs6000_extract_return_value)
4373 (rs6000_store_return_value): Assert that we have floating-point
4374 registers.
4375 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4376 (rs6000_frame_cache): Don't note the locations at which
4377 floating-point registers were saved if we have no fprs.
4378 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4379 registers.
4380 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4381 (store_regs_user_thread, store_regs_kernel_thread): Only call
4382 supply_fprs / fill_fprs if we actually have floating-point
4383 registers.
4384 (special_register_p): Check ppc_fpscr_regnum before matching
4385 against it.
4386 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4387 supply / collect fpscr if we don't have it.
4388 * ppc-bdm.c: #include "gdb_assert.h".
4389 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4390 have floating-point registers, since I can't test this code on
4391 FP-free systems to adapt it.
4392 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4393 fpscr and floating point register numbers if they don't exist.
4394 (fetch_register): Assert that we have floating-point registers
4395 before we reach the code that handles them.
4396 (store_register): Same. And use tdep instead of calling
4397 gdbarch_tdep again.
4398 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4399 don't have them.
4400 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4401 fprs and fpscr if we don't have them.
4402 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4403 don't have them.
4404 * ppcnbsd-nat.c: #include "gdb_assert.h".
4405 (getfpregs_supplies): Assert that we have floating-point registers.
4406 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4407 * ppcobsd-tdep.c: #include "gdb_assert.h".
4408 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4409 have floating-point registers.
4410 * rs6000-nat.c (regmap): Don't match against the fpscr and
4411 floating point register numbers if they don't exist.
4412 (fetch_inferior_registers, store_inferior_registers,
4413 fetch_core_registers): Only fetch / store / supply the
4414 floating-point registers and the fpscr if we have them.
4415 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4416 (ppcobsd-tdep.o): Update dependencies.
4417
15960608
AC
44182004-05-10 Andrew Cagney <cagney@redhat.com>
4419
4420 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4421 (context_switch): Do not switch through_sigtramp_breakpoint.
4422 * gdbthread.h (save_infrun_state, load_infrun_state)
4423 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4424 and structure member.
4425 * thread.c (load_infrun_state, save_infrun_state): Update.
4426
5ab5aa0f
MK
44272004-05-10 Mark Kettenis <kettenis@gnu.org>
4428
4429 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4430
da78b0e7
DJ
44312004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4432
4433 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4434 throughout.
4435 * aclocal.m4: Regenerate.
4436
cca0d3b0
NW
44372004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4438
4439 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4440
d303a6c7
AC
44412004-05-10 Andrew Cagney <cagney@redhat.com>
4442
4443 * infrun.c (check_sigtramp2): Delete function.
4444 (handle_inferior_event): When single stepping, and taking a
4445 signal, set a breakpoint at the signal return address. Delete
4446 redundant calls to check_sigtramp2.
4447 (insert_step_resume_breakpoint): New function.
4448 (through_sigtramp_breakpoint, handle_inferior_event)
4449 (follow_exec, wait_for_inferior, fetch_inferior_event)
4450 (currently_stepping, keep_going): Delete most uses of
4451 through_sigtramp_breakpoint, not that it should be deleted.
4452 (delete_breakpoint_current_contents): Delete function.
4453
03f4cc20
RC
44542004-05-10 Randolph Chung <tausq@debian.org>
4455
4456 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4457 target.
4458 * config/pa/tm-linux.h: New file.
4459
37fc812e
DJ
44602004-05-10 Daniel Jacobowitz <drow@mvista.com>
4461
4462 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4463 of prefixes. Don't print the prefix twice in the CLI.
4464
26c0b942
JB
44652004-05-10 Jim Blandy <jimb@redhat.com>
4466
2e56e9c1
JB
4467 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4468 collect all the gprs.
4469
26c0b942
JB
4470 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4471 loop collecting gprs.
4472
dc497459
AC
44732004-05-09 Andrew Cagney <cagney@redhat.com>
4474
4475 * remote-vx.c (net_step): Delete step-range code.
4476 * remote.c (remote_resume, init_all_packet_configs)
4477 (set_remote_protocol_E_packet_cmd)
4478 (show_remote_protocol_E_packet_cmd)
4479 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4480 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4481 (show_remote_protocol_e_packet_cmd): Ditto.
4482
0543f387
MK
44832004-05-09 Mark Kettenis <kettenis@gnu.org>
4484
c481d1ca
MK
4485 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4486
f626a069
MK
4487 * hppa-tdep.h: Update copyright year.
4488 (struct trad_frame_saved_reg): Add opaque declaration.
4489
6fa57a7d
MK
4490 * amd64-tdep.c (amd64_return_value): Implement
4491 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4492
e47577ab
MK
4493 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4494 (m68k_value_to_register): New functions.
4495 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4496 value_to_register.
4497
31db7b6c
MK
4498 * defs.h (enum return_value_convention): Add
4499 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4500 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4501 * infcmd.c (legacy_return_value): New function.
4502 (print_return_value): Rwerite to implement
4503 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4504 * values.c (using_struct_return): Check for inequality to
4505 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4506 RETURN_VALUE_STRUCT_CONVENTION.
4507 * i386-tdep.c (i386_return_value): Implement
4508 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4509
0543f387
MK
4510 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4511 include "symtab.h", "opcode/vax.h" and "inferior.h".
4512 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4513 to read_memory_unsigned_integer.
4514 (vax_gdbarch_init): Reorder.
4515 (_initialize_vax_tdep): Spell out prototype.
4516 * Makefile.in (vax-tdep.o): Update dependencies.
4517
0c93b7b6
AC
45182004-05-08 Andrew Cagney <cagney@redhat.com>
4519
e6b55ae2
AC
4520 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4521 * target.c (target_detach, target_disconnect): Ditto.
4522
1ac839b8
AC
4523 * infcall.c (call_function_by_hand): When no
4524 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4525 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4526 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4527 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4528 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4529
28954179
AC
4530 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4531 * gdbarch.h, gdbarch.c: Re-generate.
4532 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4533 deprecated_fix_call_dummy.
4534 * v850-tdep.c (v850_gdbarch_init): Ditto.
4535 * infcall.c (call_function_by_hand): Do not call
4536 DEPRECATED_FIX_CALL_DUMMY.
4537
434b87dd
AC
4538 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4539 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4540 * gdbarch.h, gdbarch.c: Re-generate.
4541 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4542 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4543 deprecated_sizeof_call_dummy_words.
4544 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4545 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4546 * v850-tdep.c (v850_gdbarch_init): Ditto.
4547 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4548 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4549 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4550 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4551 * arch-utils.h (legacy_call_dummy_words)
4552 (legacy_sizeof_call_dummy_words): Delete declarations.
4553 * arch-utils.c (legacy_call_dummy_words)
4554 (legacy_sizeof_call_dummy_words): Delete variables.
4555
58d28df8
AC
4556 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4557 * gdbarch.h, gdbarch.c: Re-generate.
4558 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4559 * infcall.c (call_function_by_hand): Eliminate call to
4560 DEPRECATED_PUSH_DUMMY_FRAME.
4561 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4562 push_dummy_frame.
4563 (ns32k_push_dummy_frame): Delete function.
4564
e4a2df64
AC
4565 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4566 deprecated_call_dummy_breakpoint_offset or
4567 deprecated_call_dummy_start_offset.
4568 * dummy-frame.c, arm-tdep.c: Update comments.
4569 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4570 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4571 * gdbarch.h, gdbarch.c: Re-generate.
4572
d3712828
AC
4573 * infcall.c (legacy_push_dummy_code): Delete function.
4574 (push_dummy_code): Delete call.
4575
7a882905
AC
4576 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4577 * gdbarch.h, gdbarch.c: Re-generate.
4578 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4579 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4580 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4581 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4582
0ec5872b
AC
4583 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4584 (struct frame_info): Delete opaque declaration.
4585 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4586 * frame.c (get_frame_type): Delete call.
4587
0c93b7b6
AC
4588 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4589 pc_in_call_dummy.
4590 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4591 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4592
75536971
MK
45932004-05-08 Mark Kettenis <kettenis@gnu.org>
4594
527ca6bb
MK
4595 * alphanbsd-tdep.c: Include "gdb_string.h".
4596 * armnbsd-tdep.c: Update copyright year.
4597 Include "gdb_string.h".
4598 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4599 dependencies.
4600
d39fdc61
MK
4601 * delta68-nat.c: Remove file.
4602 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4603 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4604 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4605 (delta68-nat.o): Remove dependency.
4606
75536971
MK
4607 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4608 function.
4609 (m68k_gdbarch_init): Don't set
4610 deprecated_frameless_function_invocation.
4611
f4ca1d1f
RC
46122004-05-07 Randolph Chung <tausq@debian.org>
4613
4614 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4615 read_memory_nobpt for code reading when doing frame unwinding.
4616 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4617
2f0e8c7a
RC
46182004-05-07 Randolph Chung <tausq@debian.org>
4619
4620 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4621 instead of sp, handle sigaltstack case.
4622 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4623 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4624 signal handler and not that of the caller.
4625 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4626 hppa_linux_sigtramp_find_sigcontext.
4627
959464ff
RC
46282004-05-07 Randolph Chung <tausq@debian.org>
4629
4630 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4631 hppa-linux-nat.c.
4632 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4633 * hppa-linux-nat.c (fetch_register, store_register): Define.
4634 (fetch_inferior_registers, store_inferior_registers): Define.
4635 (supply_gregset): Add comment and clean up some unneeded code.
4636 (fill_gregset): Add comment and fix so that it saves registers in
4637 the right place in the gregset.
4638 (fill_fpregset): Fix buffer overrun problem.
4639 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4640
0da28f8a
RC
46412004-05-07 Randolph Chung <tausq@debian.org>
4642
4643 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4644 do common handling of the pcoqt register.
4645 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4646 to use helper function.
4647 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4648 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4649 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4650 generic fallback unwinder when all else fails.
4651 (hppa_gdbarch_init): Add fallback sniffer.
4652 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4653 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4654 to use helper function.
4655
b9ec757a
JB
46562004-05-08 Joel Brobecker <brobecker@gnat.com>
4657
4658 * config/djgpp/fnchange.lst: Add translation rules for
4659 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4660
756e95f1
MK
46612004-05-08 Mark Kettenis <kettenis@gnu.org>
4662
4663 * frame.c (get_prev_frame_1): Work around GCC bug.
4664 * frame.h: Add comment about GCC bug.
4665
2b4855ab
AC
46662004-05-07 Andrew Cagney <cagney@redhat.com>
4667
4668 * observer.c: Include "commands.h" and "gdbcmd.h".
4669 (observer_debug, _initialize_observer): Add the
4670 command "set/show debug observer".
4671 * observer.sh: When observer debugging, log notify calls.
4672 * Makefile.in (observer.o): Update dependencies.
4673
ba3e8e46
JM
46742004-05-07 Jason Molenda (jmolenda@apple.com)
4675
4676 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4677
16796152
JB
46782004-05-07 Jim Blandy <jimb@redhat.com>
4679
daf6dc85
JB
4680 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4681 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4682 to recognize gpr regnums, instead of assuming that
4683 tdep->ppc_fp0_regnum marks the end of the general-purpose
4684 registers.
4685
16796152
JB
4686 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4687 the given architecture has floating-point registers.
4688
c69b8bfc
AC
46892004-05-07 Andrew Cagney <cagney@redhat.com>
4690
4691 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4692 macro defined to 1.
4693 * gdbarch.h, gdbarch.c: Re-generate.
4694 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4695 deprecated_use_generic_dummy_frames.
4696
7243600a
BF
46972004-05-07 Brian Ford <ford@vss.fsi.com>
4698
4699 * NEWS: Mention Cygwin DWARF 2 support.
4700
73c1e0a1
AC
47012004-05-07 Andrew Cagney <cagney@redhat.com>
4702
4703 * objfiles.h (struct entry_info): Delete unused fields
4704 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4705 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4706 * mipsread.c (mipscoff_symfile_read): Update.
4707 * mdebugread.c (parse_partial_symbols): Update.
4708 * dwarfread.c (read_file_scope): Update.
4709 * dwarf2read.c (read_file_scope): Update.
4710 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4711 * coffread.c (complete_symtab): Update.
4712
1d3056ac
MK
47132004-05-07 Mark Kettenis <kettenis@gnu.org>
4714
4715 * infcall.c (_initialize_infcall): Fix typo.
4716
15170568
AC
47172004-05-07 Andrew Cagney <cagney@redhat.com>
4718
4719 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4720 * command.h (add_setshow_zinteger_cmd): Declare.
4721
34f75cc1
RC
47222004-05-06 Randolph Chung <tausq@debian.org>
4723
4724 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4725 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4726 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4727 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4728 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4729 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4730 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4731 definitions ...
4732 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4733 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4734 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4735 (hppa64_hpux_frame_find_saved_regs_in_sig)
4736 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4737 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4738 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4739 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4740 (hppa_linux_sigtramp_frame_prev_register): Likewise.
4741 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
4742 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
4743 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
4744 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
4745 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
4746 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
4747 (hppa32_register_type, hppa_cannot_store_register)
4748 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
4749 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
4750 * hpread.c (hpread_process_one_debug_symbol): Likewise.
4751 * pa64solib.c (pa64_solib_have_load_event)
4752 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
4753 (pa64_solib_unloaded_library_pathname): Likewise.
4754 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
4755 (som_solib_library_pathname): Likewise.
4756
0a5e7efe
JI
47572004-05-05 Jim Ingham <jingham@apple.com>
4758
4759 * breakpoint.c (create_breakpoints): Copy the ignore count and
4760 thread id over from the pended breakpoint to the actual
4761 breakpoint.
4762
10a4b113
AC
47632004-05-05 Andrew Cagney <cagney@redhat.com>
4764
4765 * gdbarch.sh (PARM_BOUNDARY): Delete.
4766 gdbarch.h, gdbarch.c: Re-generate.
4767 * valops.c (PARM_BOUNDARY): Delete macro.
4768 (value_push): Delete PARM_BOUNDARY code.
4769 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
4770
366f009f
JB
47712004-05-04 Jim Blandy <jimb@redhat.com>
4772
32b99774
JB
4773 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
4774 Don't assume that the gprs, fprs, and UISA sprs are
4775 contiguous, start at register number zero, and end with fpscr.
4776 Instead, use the numbers from the tdep structure.
4777
366f009f
JB
4778 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
4779 should no longer be used in code specific to the RS6000 and its
4780 derivatives.
4781 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
4782 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
4783 tdep->ppc_fp0_regnum.
4784 (ppc_supply_fpregset, ppc_collect_fpregset)
4785 (rs6000_push_dummy_call, rs6000_extract_return_value)
4786 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
4787 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
4788 FP0_REGNUM.
4789 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
4790 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
4791 Same.
4792 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
4793 bdm_ppc_store_registers): Same.
4794 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
4795 (store_register, fill_fpregset): Same.
4796 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
4797 (ppc_linux_supply_fpregset): Same.
4798 * ppcnbsd-nat.c (getfpregs_supplies): Same.
4799 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
4800 Same.
4801 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
4802 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
4803 ppc64_sysv_abi_return_value): Same.
4804 * rs6000-nat.c (regmap, fetch_inferior_registers)
4805 (store_inferior_registers, fetch_core_registers): Same.
4806
827f338d
MK
48072004-05-01 Mark Kettenis <kettenis@gnu.org>
4808
4809 * m68knbsd-nat.c: Remove file.
4810 * m68knbsd-tdep.c: Remove file.
4811 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
4812 dependencies.
4813 * configure.host: Add m68k-*-netbsdelf*.
4814 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
4815 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
4816 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
4817 (XM_FILE): Remove.
4818 * config/m68k/nbsdelf.mh: New file.
4819 * config/m68k/nbsd.mt: New file.
4820 * config/m68k/nbsdaout.mt: Remove file.
4821 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
4822 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
4823 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
4824 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
4825 (use_struct_convention): Remove prototype.
4826 (USE_STRUCT_CONVENTION): Remove define.
4827 * config/m68k/xm-nbsd.h: Remove file.
4828
66894781
MS
48292004-05-04 Michael Snyder <msnyder@redhat.com>
4830
4831 * m68k-tdep.c (m68k_gdbarch_init): Default to using
4832 reg_struct_return method (as gcc usually does for cross targets).
4833
f0f63663
AC
48342004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4835
4836 Committed by Andrew Cagney.
4837 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
4838 alignment padding when accessing ucontext struct members.
4839
edf61169
JB
48402004-05-04 Jim Blandy <jimb@redhat.com>
4841
8bf659e8
JB
4842 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
4843 'ppc_gplast_regnum' member.
4844 (ppc_num_gprs): New enum constant.
4845 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
4846 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
4847 * rs6000-nat.c (regmap, fetch_inferior_registers,
4848 store_inferior_registers): Same.
4849 * rs6000-tdep.c (e500_pseudo_register_read)
4850 (e500_pseudo_register_write): Same.
4851 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
4852
b967e06f
JB
4853 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
4854 * ppc-tdep.h (ppc_num_fprs): New enum constant.
4855 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
4856 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
4857 FPLAST_REGNUM.
4858 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4859 Same.
4860 * ppc-linux-nat.c (ppc_register_u_addr): Same.
4861 * rs6000-nat.c (regmap, fetch_inferior_registers)
4862 (store_inferior_registers): Same.
4863
edf61169
JB
4864 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
4865 with FPLAST_REGNUM.
4866
58a9656e
JB
48672004-05-03 Joel Brobecker <brobecker@gnat.com>
4868
4869 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
4870 failure detected by recent versions of GCC.
4871 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
4872 to be consistent with the usage in dwarf2_create_include_psymtab.
4873
dc305454
MS
48742004-05-03 Michael Snyder <msnyder@redhat.com>
4875
4876 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
4877 (heuristic_proc_start): Whitespace cleanup.
4878
29972665
MK
48792004-05-04 Mark Kettenis <kettenis@gnu.org>
4880
6b57680d
MK
4881 * sun3-nat.c: Remove file.
4882 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
4883 dependencies.
4884 (ALLDEPFILES): Remove sun3-nat.c.
4885 (sun3-nat.o): Remove dependencies.
4886
29972665
MK
4887 * i386-interix-nat.c, i386-interix-tdep.c,
4888 config/i386/nm-interix.h, config/i386/interix.mh,
4889 config/i386/interix.mt: Remove files.
4890 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
4891 dependencies.
4892
f595cb19
MK
48932004-05-03 Mark Kettenis <kettenis@gnu.org>
4894
4895 * m68k-tdep.h (struct gdbarch_tdep): Add member
4896 struct_value_regnum.
4897 (m68k_svr4_init_abi): New prototype.
4898 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
4899 different calling conventions.
4900 (m68k_extract_return_value): Remove code dealing with single-field
4901 structs.
4902 (m68k_store_return_value): Remove code dealing with single-field
4903 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
4904 (m68k_extract_struct_value_address): Remove function.
4905 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
4906 (m68k_reg_struct_return_p, m68k_return_value)
4907 (m68k_svr4_return_value): New functions.
4908 (m68k_use_struct_convention): Remove function.
4909 (m68k_push_dummy_call): Use new struct_value_regnum member of
4910 `struct gdbarch_tdep' instead of hardcoded register number to
4911 store STRUCT_ADDR.
4912 (m68k_svr4_init_abi): New function.
4913 (m68k_gdbarch_init): Don't set extract_return_value,
4914 store_return_values, deprecated_extract_struct_value_address and
4915 use_struct_convention. Set return_value instead. Initialize new
4916 struct_value_regnum member of `struct gdbarch_tdep'.
4917 * m68klinux-tdep.c: Update copyright year.
4918 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
4919 (m68k_linux_extract_struct_value_address): Remove function.
4920 (m68k_linux_init_abi): Don't set extract_return_value,
4921 store_return_values, deprecated_extract_struct_value_address and
4922 use_struct_convention. Call m68k_svr4_init_abi but override the
4923 new struct_value_regnum member of `struct gdbarch_tdep'.
4924 * Makefile.in (m68k-tdep.o): Update dependencies.
4925
aaa75496
JB
49262004-05-03 J. Brobecker <brobecker@gnat.com>
4927
4928 * dwarf2read.c (line_header): Add new included_p field in
4929 field file_names.
4930 (partial_die_info): New field has_stmt_list. New field line_offset.
4931 (dwarf2_create_include_psymtab): New function.
4932 (dwarf2_build_include_psymtabs): New function.
4933 (add_file_name): Add forward declaration. Initialize new field.
4934 (dwarf_decode_lines): Add new parameter. Enhance this procedure
4935 to be able to determine the list of files included by the
4936 given unit, and build their associated psymtabs.
4937 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
4938 files as well.
4939 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
4940 (read_file_scope): Update call to dwarf_decode_lines.
4941 (read_partial_die): Handle DW_AT_stmt_list attributes.
4942
c848556f
MC
49432004-05-02 Michael Chastain <mec.gnu@mindspring.com>
4944
4945 Unfix PR gdb/1626.
4946 * configure.in: Revert special case for osf5.*.
4947 * configure: Regenerate.
4948
eb4556d7
JB
49492004-05-02 Jim Blandy <jimb@redhat.com>
4950
4951 Move the symbol-file-from-memory functions into their own file.
4952 * symfile-mem.c, symfile-mem.h: New files.
4953 * symfile.c (symbol_file_add_from_bfd): New function.
4954 (symbol_file_add): Call symbol_file_add_from_bfd.
4955 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
4956 Moved to symfile-mem.c.
4957 (_initialize_symfile): Move definition of
4958 add-symbol-file-from-memory command to symfile-mem.c.
4959 * symfile.h (symbol_file_add_from_bfd): New declaration.
4960 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
4961 * config/powerpc/linux.mt (TDEPFILES): Same.
4962 * Makefile.in (SFILES): Add symfile-mem.c.
4963 (symfile_mem_h): New variable.
4964 (HFILES_NO_SRCDIR): Add symfile-mem.h.
4965 (symfile-mem.o): New rule.
4966
80bb239e
AC
49672004-05-01 Andrew Cagney <cagney@redhat.com>
4968
7789d0fa
AC
4969 * breakpoint.c (insert_bp_location): Use get_frame_id, and
4970 frame_find_by_id instead of frame_relative_level.
4971 (do_enable_breakpoint): Ditto.
4972 * thread.c: Update copyright.
4973 (info_threads_command): Ditto, simplify.
4974
80bb239e
AC
4975 * frame.c (deprecated_generic_get_saved_register): Delete
4976 function, moved to "xstormy16-tdep.c".
4977 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
4978 deprecated_generic_get_saved_register from "frame.c".
4979 (xstormy16_frame_saved_register): Call
4980 xstormy16_get_saved_register.
4981 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
4982 static.
4983 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
4984 * frame.h (deprecated_generic_get_saved_register): Delete.
4985
b2a871dd
MC
49862004-05-01 Michael Chastain <mec.gnu@mindspring.com>
4987
4988 * dwarfread.c: Update documentation on the state of dwarf-1.
4989
0e100dab
AC
49902004-05-01 Andrew Cagney <cagney@redhat.com>
4991
acd8056e
AC
4992 * stack.c (select_frame_command): Delete call to
4993 frame_relative_level.
4994 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
4995 Delete #if0 code.
4996 (frame_info): Do not print FRAMELESS.
4997 (print_block_frame_labels): Replace DEPRECATED_STREQ.
4998 (catch_info): Delete #if0 code.
4999
0e100dab
AC
5000 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5001 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5002 of frame_relative_level.
5003 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5004 to SENTINEL_FRAME.
5005 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5006 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5007 frame_relative_level.
5008
55699d59
AC
5009 * frame.h (deprecated_set_frame_type): Delete declaration.
5010 * frame.c (deprecated_set_frame_type): Delete function, update
5011 comments.
5012
fcf70625
AC
5013 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5014 * gdbarch.h, gdbarch.c: Re-generate.
5015 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5016 (shnbsd_pc_in_sigtramp): Delete.
5017 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5018 pc_in_sigtramp.
5019 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5020 pc_in_sigtramp.
5021 * frame.h: Update comments.
5022 * ppc-linux-tdep.c: Update comments.
5023 * breakpoint.c (bpstat_what): Update comments.
5024
ac5eccb7
AC
5025 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5026 m68klinux-tdep.o's dependencies, were previously added to
5027 m68klinux-nat.o.
5028
f2524b93
AC
5029 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5030 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5031 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5032 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5033 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5034
17e20bce
AC
5035 * Makefile.in (m68klinux-nat.o): Update dependencies.
5036 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5037 (m68k_linux_sigtramp_frame_cache)
5038 (m68k_linux_sigtramp_frame_this_id)
5039 (m68k_linux_sigtramp_frame_prev_register)
5040 (m68k_linux_sigtramp_frame_unwind)
5041 (m68k_linux_sigtramp_frame_sniffer)
5042 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5043 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5044 names, use trad-frame.h.
5045 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5046 (struct m68k_sigtramp_info): Delete.
5047 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5048 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5049 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5050 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5051 "m68klinux-tdep.c".
5052
c8864fa2
AC
5053 * infrun.c (check_sigtramp2): Delete check for
5054 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5055
511dd2cd
MK
50562004-05-01 Mark Kettenis <kettenis@gnu.org>
5057
5058 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5059
8c6b0e06
AC
50602004-05-01 Andrew Cagney <cagney@redhat.com>
5061
9df0bb3f
AC
5062 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5063 (frv_linux_sigtramp_frame_cache)
5064 (frv_linux_sigtramp_frame_this_id)
5065 (frv_linux_sigtramp_frame_prev_register)
5066 (frv_linux_sigtramp_frame_unwind)
5067 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5068 include "linux" in function and variable names, directly call
5069 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5070 the latest trad-frame code.
5071 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5072 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5073 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5074 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5075 * frv-tdep.c (frv_sigtramp_frame_cache)
5076 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5077 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5078 frv-linux-tdep.c.
5079 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5080 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5081 (frv_set_sigcontext_reg_addr): Delete function.
5082
8c6b0e06
AC
5083 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5084 (DEPRECATED_SIGTRAMP_END): Delete.
5085 * gdbarch.h, gdbarch.c: Re-generate.
5086 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5087 * config/vax/tm-vaxbsd.h: Update copyright.
5088 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5089 (DEPRECATED_IN_SIGTRAMP): Define.
5090 * config/m68k/tm-nbsd.h: Update copyright.
5091 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5092 (DEPRECATED_IN_SIGTRAMP): Define.
5093
50ea7769
MK
50942004-05-01 Mark Kettenis <kettenis@gnu.org>
5095
03ac2a74
MK
5096 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5097 encondings. Fixes PR gdb/1628.
5098
50ea7769
MK
5099 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5100 DW_CFA_restore state without a matching DW_CFA_remember_state
5101 instead of aborting. Fixes PR backtrace/1589.
5102
9a5d7be1
JB
51032004-04-30 Joel Brobecker <brobecker@gnat.com>
5104
5105 * MAINTAINERS: Add self as AIX maintainer.
5106 Update my e-mail address in write-after-approval section.
5107
2593d1cd
AC
51082004-04-30 Andrew Cagney <cagney@redhat.com>
5109
ce12bbf9
AC
5110 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5111 (legacy_get_prev_frame): Ditto.
5112
36710c63
AC
5113 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5114 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5115 * mipsread.c (sigtramp_address): Delete extern variable.
5116 (mipscoff_new_init): Delete reference.
5117 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5118 (fixup_sigtramp): Delete function.
5119 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5120 (fixup_sigtramp): Delete declarations.
5121
2593d1cd
AC
5122 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5123 deprecated_pc_in_sigtramp.
5124 (ppcnbsd_pc_in_sigtramp): Delete function.
5125
2a25f91c
MK
51262004-05-01 Mark Kettenis <kettenis@gnu.org>
5127
5128 * config/m68k/nm-nbsd.h: Tweak comments.
5129 * config/m68k/nm-nbsdaout.h: Likewise.
5130
0b281939
AC
51312004-04-30 Andrew Cagney <cagney@redhat.com>
5132
5133 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5134 legacy_pc_in_sigtramp.
5135 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5136
8f2d3ea0
MK
51372004-05-01 Mark Kettenis <kettenis@gnu.org>
5138
5139 Add OpenBSD/m68k support.
5140 * NEWS (New native configurations): Mention OpenBSD/m68k.
5141 * m68kbsd-tdep.c: New file.
5142 * m68kbsd-nat.c: New file.
5143 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5144 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5145 * configure.host: Add m68k-*-openbsd.
5146 * configure.tgt: Add m68k-*-openbsd.
5147 * config/m68k/tm-obsd.h: New file.
5148 * config/m68k/obsd.mt: New file.
5149 * config/m68k/obsd.mh: New file.
5150 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5151 m68kbsd-tdep.c.
5152
c40f49a4
AC
51532004-04-30 Andrew Cagney <cagney@redhat.com>
5154
5155 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5156 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5157
e81554cd
MK
51582004-04-30 Mark Kettenis <kettenis@gnu.org>
5159
5160 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5161 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5162
d4dc1a91
BF
51632004-04-30 Brian Ford <ford@vss.fsi.com>
5164
5165 Revert 2004-04-16 change.
5166 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5167 (i386_coff_init_abi): Remove.
5168 * i386-tdep.h (i386_coff_init_abi): Remove.
5169 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5170
2f72f850
AC
51712004-04-30 Andrew Cagney <cagney@redhat.com>
5172
e492f9d6
AC
5173 * blockframe.c (find_pc_partial_function): Delete use of
5174 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5175 DEPRECATED_SIGTRAMP_END.
5176
7b7adad0
AC
5177 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5178 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5179 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5180 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5181 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5182
2f72f850
AC
5183 * defs.h (deprecated_inside_entry_file): Delete declaration.
5184 * blockframe.c (deprecated_inside_entry_file): Delete function.
5185 (legacy_frame_chain_valid): Delete call.
5186 * sh64-tdep.c (sh64_frame_chain): Delete call.
5187 * objfiles.h: Update comments.
5188 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5189 call.
5190 * frame.c (get_prev_frame): Delete call, update comments.
5191
283f90a7
BF
51922004-04-30 Brian Ford <ford@vss.fsi.com>
5193
5194 * MAINTAINERS (Write After Approval): Add myself.
5195
8ee56bcf
AC
51962004-04-30 Andrew Cagney <cagney@redhat.com>
5197
5198 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5199 * gdbarch.h, gdbarch.c: Re-generate.
5200 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5201 code.
5202
ee27e1b6
AC
52032004-04-30 Andrew Cagney <cagney@redhat.com>
5204
5205 * gdb-events.sh (selected_thread_changed)
5206 (selected_frame_level_changed, target_changed): Delete.
5207 * gdb-events.h, gdb-events.c: Re-generate.
5208 * valops.c (value_assign): Update.
5209 * stack.c (select_frame_command, up_silently_base)
5210 (down_silently_base): Update.
5211
d5ac5a39
AC
52122004-04-29 Andrew Cagney <cagney@redhat.com>
5213
5214 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5215 registers correctly.
5216 (print_gp_register_row, mips32_heuristic_proc_desc)
5217 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5218 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5219 references to mips_isa_regsize.
5220
ceae6e75
AC
52212004-04-29 Andrew Cagney <cagney@redhat.com>
5222
5223 * mips-tdep.c (struct gdbarch_tdep): Delete
5224 mips_fp_register_double.
5225 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5226 mips_abi_regsize.
5227 (mips_gdbarch_init): Do not set mips_fp_register_double.
5228 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5229
a587af0b
AC
52302004-04-29 Joel Brobecker <brobecker@gnat.com>
5231
5232 Committed by Andrew Cagney.
5233 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5234 function calls.
5235
13326b4e
AC
52362004-04-29 Andrew Cagney <cagney@redhat.com>
5237
5238 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5239 gdbarch, use mips_abi, update callers.
5240 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5241 mips_abi_regsize, update callers.
5242 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5243 mips_default_abi_regsize.
5244 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5245 mips_default_abi_regsize.
5246
711cc5cd
AC
52472004-04-29 Andrew Cagney <cagney@redhat.com>
5248
1b13c4f6
AC
5249 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5250 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5251 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5252 mips_default_abi_regsize.
5253 (mips_isa_regsize): Rename mips_regisze.
5254 * mipsnbsd-tdep.c: Update.
5255 * mips-linux-tdep.c: Update.
5256 * irix5-nat.c: Update.
5257 * mips-tdep.h (mips_isa_regsize): Update.
5258
711cc5cd
AC
5259 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5260 Delete all disabled code.
5261 * gdb-events.h, gdb-events.c: Re-generate.
5262
e63bbc88
MK
52632004-04-19 Jerome Guitton <guitton@gnat.com>
5264 Mark Kettenis <kettenis@gnu.org>
5265
5266 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5267 the function begins with a branch instruction.
5268
fd35795f
MK
52692004-04-29 Mark Kettenis <kettenis@gnu.org>
5270
5271 * i386-tdep.c: Fix spelling mistakes.
5272
c960c18f
AC
52732004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5274 Andrew Cagney <cagney@redhat.com>
5275
5276 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5277 <sys/proc.h>.
5278 * acconfig.h: Provide default _KMEMUSER value.
5279 * config.in, configure: Re-generate.
5280 * NEWS: Mention fix.
5281
50306a9d
RC
52822004-04-24 Randolph Chung <tausq@debian.org>
5283
5284 * configure.host (hppa*-*-linux*): New target.
5285 * configure.tgt (hppa*-*-linux*): Likewise.
5286 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5287 gdbarch_init_osabi() call earlier so that osabi-specific frame
5288 unwinders can be registered first.
5289 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5290 hppa-linux-nat.c.
5291 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5292 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5293 * config/pa/linux.mh: New file.
5294 * config/pa/linux.mt: New file.
5295 * config/pa/nm-linux.h: New file.
5296 * config/pa/xm-linux.h: New file.
5297 * hppa-linux-nat.c: New file.
5298 * hppa-linux-tdep.c: New file.
5299
2a6228ef
RC
53002004-04-28 Randolph Chung <tausq@debian.org>
5301
5302 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5303 return values.
5304 (hppa32_push_dummy_call): Fix small struct and floating point argument
5305 passing, and make sure the stack frame is properly aligned.
5306
82c10df6
AC
53072004-04-28 Andrew Cagney <cagney@redhat.com>
5308
d762c46a
AC
5309 * stack.c (print_stack_frame): Fix description.
5310
82c10df6
AC
5311 * NEWS: Mention gdb/gdbserver/configure execute permission
5312 changed. PR server/519.
5313
0faf0076
AC
53142004-04-28 Andrew Cagney <cagney@redhat.com>
5315
5316 * stack.c (print_stack_frame_stub): Delete declaration.
5317 (struct print_stack_frame_args, print_stack_frame)
5318 (print_frame_info, print_frame): Replace "source" with print what.
5319 Replace "print" with "print_level". Replace "args" with
5320 "print_args".
5321 * frame.h (show_and_print_stack_frame, print_stack_frame)
5322 (print_frame_info): Update declarations.
5323 * stack.c (select_and_print_frame, frame_command)
5324 (current_frame_command, up_command, down_command): Update calls -
5325 use get_selected_frame, pass "enum print_what" for source, do not
5326 call frame_relative_level.
5327 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5328 * remote-rdp.c (remote_rdp_open): Ditto.
5329 * remote-mips.c (common_open): Ditto.
5330 * remote-e7000.c (e7000_start_remote): Ditto.
5331 * ocd.c (ocd_start_remote): Ditto.
5332 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5333 * infrun.c (normal_stop): Ditto.
5334 * inflow.c (kill_command): Ditto.
5335 * infcmd.c (finish_command): Ditto.
5336 * corelow.c (core_open): Ditto.
5337 * tracepoint.c (finish_tfind_command): Ditto.
5338 * thread.c (info_threads_command, info_threads_command)
5339 (restore_current_thread, do_captured_thread_select): Ditto.
5340 * ada-tasks.c (task_command): Ditto.
5341
f4c5303c
OF
53422004-04-26 Orjan Friberg <orjanf@axis.com>
5343
5344 * frame.c: Include "observer.h".
5345 (frame_observer_target_changed): New function.
5346 (_initialize_frame): Attach target_changed observer.
5347 * regcache.c: Include "observer.h".
5348 (regcache_observer_target_changed): New function.
5349 (_initialize_regcache): Attach target_changed observer.
5350 * valops.c: Include "observer.h".
5351 (value_assign): Notify target_changed event when modifying register.
5352 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5353
7270d8f2
OF
53542004-04-26 Orjan Friberg <orjanf@axis.com>
5355
5356 From Paul Koning <pkoning@equallogic.com>:
5357 * breakpoint.c (free_valchain): New function.
5358 (insert_bp_location, delete_breakpoint): Use free_valchain.
5359 (remove_breakpoint): Do not remove the valchain.
5360 (bpstat_stop_status): If not stopped by watchpoint, skip
5361 watchpoints when generating stop status list.
5362 * infrun.c (handle_inferior_event): Make
5363 stepped_after_stopped_by_watchpoint a global variable.
5364 * remote.c (remote_stopped_data_address): Return watch data
5365 address rather than zero if stepped_after_stopped_by_watchpoint is
5366 set.
5367
02d62932
MC
53682004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5369
5370 Fix PR gdb/1626.
5371 * configure.in: Check for curses after termcap.
5372 On osf5.*, do not check for ncurses.
5373 * configure: Regenerate.
5374
3e9a183c
MK
53752004-04-25 Mark Kettenis <kettenis@gnu.org>
5376
c79ac407
MK
5377 * ppcobsd-nat.c: Include "ppc-tdep.h".
5378 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5379
3e9a183c
MK
5380 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5381 Fixes PR tdep/1623 and PR tdep/1624.
5382
38cc9c28
MC
53832004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5384
5385 * xmodem.h, xmodem.c: Remove files.
5386 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5387
7f07c5b6
RC
53882004-04-23 Randolph Chung <tausq@debian.org>
5389
5390 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5391 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5392 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5393 for handling stackless frames.
5394 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5395
9f7194c3
RC
53962004-04-23 Randolph Chung <tausq@debian.org>
5397
5398 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5399 starts at a pc before the frame is created.
5400
dcff6009
JB
54012004-04-23 Joel Brobecker <brobecker@gnat.com>
5402
5403 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5404
40711ff1 54052004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
5406
5407 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5408 use convert_typed_floating to get the appropriate format.
5409
abc485a1
RC
54102004-04-22 Randolph Chung <tausq@debian.org>
5411
5412 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5413 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5414 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5415 (hppa_sign_extend): Add prototype.
5416 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5417 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5418 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5419 hppa targets will also use these functions.
5420 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5421 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5422 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5423 (hppa_gdbarch_init): Remove gdbarch setting of
5424 skip_trampoline_code, in_solib_call_trampoline and
5425 in_solib_return_trampoline.
5426 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5427 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5428 hppa_in_solib_call_trampoline.
5429 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5430 Moved from hppa-tdep.c.
5431 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5432 in_solib_call_trampoline and in_solib_return_trampoline.
5433
369aa520
RC
54342004-04-22 Randolph Chung <tausq@debian.org>
5435
5436 * hppa-tdep.c (hppa_debug): New variable.
5437 (find_unwind_entry, hppa_frame_cache): Add debug output.
5438 (_initialize_hppa_tdep): Add command to set debug flag.
5439
476be15e
AC
54402004-04-22 Andrew Cagney <cagney@redhat.com>
5441
5442 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5443 "trad-frame.h".
5444 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5445 signal trampoline unwinder.
5446 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5447
d195bc9f
MK
54482004-04-22 Mark Kettenis <kettenis@gnu.org>
5449
5450 Add OpenBSD/powerpc support.
5451 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5452 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5453 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5454 (ppc_collect_fpregset): New prototypes.
5455 * ppcobsd-nat.c: New file.
5456 * ppcobsd-tdep.c: New file.
5457 * ppcobsd-tdep.h: New file.
5458 * rs6000-tdep.c: Include "regset.h".
5459 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5460 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5461 New functions.
5462 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5463 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5464 (rs6000-tdep.o): Update dependencies.
5465 * configure.host: Add powerpc-*-openbsd.
5466 * configure.tgt: Add powerpc-*-openbsd.
5467 * config/powerpc/obsd.mh: New file.
5468 * config/powerpc/nm-obsd.h: New file.
5469 * config/powerpc/obsd.mt: New file.
5470
6f14cc33
AC
54712004-04-22 Andrew Cagney <cagney@redhat.com>
5472
fcf29e5f
AC
5473 * frame.h (show_frame_info): Delete declaration.
5474
6f14cc33
AC
5475 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5476 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5477 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5478 * frv-tdep.c (frv_frame_this_id): Ditto.
5479 * avr-tdep.c (avr_frame_this_id): Ditto.
5480
e5786a5c
EZ
54812004-04-22 Elena Zannoni <ezannoni@redhat.com>
5482
5483 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5484
26e75e5c
JB
54852004-04-22 Jim Blandy <jimb@redhat.com>
5486
5487 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5488 register number zero.
5489
d8d65dd3
MS
54902004-04-21 Michael Snyder <msnyder@redhat.com>
5491
5492 * mips-tdep.c (heuristic_proc_start):
5493 Warning() already prefixes "Warning: ".
5494
9a4105ab
AC
54952004-04-21 Andrew Cagney <cagney@redhat.com>
5496
5497 * annotate.h (deprecated_annotate_starting_hook)
5498 (deprecated_annotate_stopped_hook)
5499 (deprecated_annotate_exited_hook)
5500 (deprecated_annotate_signal_hook)
5501 (deprecated_annotate_signalled_hook): Deprecate.
5502 * tracepoint.h (deprecated_create_tracepoint_hook)
5503 (deprecated_delete_tracepoint_hook)
5504 (deprecated_modify_tracepoint_hook)
5505 (deprecated_trace_find_hook)
5506 (deprecated_trace_start_stop_hook): Deprecate.
5507 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5508 * remote.h (deprecated_target_resume_hook)
5509 (deprecated_target_wait_loop_hook): Deprecate.
5510 * gdbcore.h (deprecated_exec_file_display_hook)
5511 (deprecated_file_changed_hook): Deprecate.
5512 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5513 * defs.h (deprecated_modify_breakpoint_hook)
5514 (deprecated_command_loop_hook, deprecated_show_load_progress)
5515 (deprecated_print_frame_info_listing_hook)
5516 (deprecated_query_hook, deprecated_warning_hook)
5517 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5518 (deprecated_delete_breakpoint_hook)
5519 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5520 (deprecated_readline_begin_hook, deprecated_readline_hook)
5521 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5522 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5523 (deprecated_context_hook, deprecated_target_wait_hook)
5524 (deprecated_attach_hook, deprecated_detach_hook)
5525 (deprecated_call_command_hook, deprecated_set_hook)
5526 (deprecated_error_hook, deprecated_error_begin_hook)
5527 (deprecated_ui_load_progress_hook): Deprecate.
5528 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5529 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5530 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5531 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5532 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5533 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5534 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5535 * annotate.c, aix-thread.c: Update.
5536
62cf13cc
AC
55372004-04-21 Andrew Cagney <cagney@redhat.com>
5538
b2e31a62
AC
5539 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5540 * vaxnbsd-tdep.c: Include "gdb_string.h".
5541
62cf13cc
AC
5542 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5543 (add_symbol_file_from_memory_command): #if 0 function body, call
5544 error instead.
5545
00e32a35
AC
55462004-04-21 Andrew Cagney <cagney@redhat.com>
5547
5548 * gdbcore.h: Update copyright.
5549 (deprecated_add_core_fns): Rename add_core_fns.
5550 * win32-nat.c (_initialize_core_win32): Update.
5551 * sun3-nat.c (_initialize_core_sun3): Update.
5552 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5553 * rs6000-nat.c (_initialize_core_rs6000): Update.
5554 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5555 * nto-tdep.c (_initialize_nto_tdep): Update.
5556 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5557 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5558 * mips-nat.c (_initialize_core_mips): Update.
5559 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5560 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5561 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5562 * lynx-nat.c (_initialize_core_lynx): Update.
5563 * irix5-nat.c (_initialize_core_irix5): Update.
5564 * i386-interix-nat.c (_initialize_core_interix): Update.
5565 * cris-tdep.c (_initialize_cris_tdep): Update.
5566 * corelow.c (deprecated_add_core_fns): Update.
5567 * core-regset.c (_initialize_core_regset): Update.
5568 * core-aout.c (_initialize_core_aout): Update.
5569 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5570 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5571 * alpha-nat.c (_initialize_core_alpha): Update.
5572
13c7b1ca
JB
55732004-04-21 Jim Blandy <jimb@redhat.com>
5574
5575 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5576
7b5a2f43
DJ
55772004-04-19 Daniel Jacobowitz <drow@mvista.com>
5578
5579 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5580 Delete.
5581 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5582 (read_attribute_value): Update calls to dwarf_alloc_block.
5583 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5584 dwarf2_tmp_obstack.
5585 (psymtab_to_symtab_1): Likewise. Clean up using
5586 free_stack_comp_unit.
5587 (add_to_cu_func_list): Use the comp_unit_obstack.
5588
05cf31d1
JB
55892004-04-19 Joel Brobecker <brobecker@gnat.com>
5590
5591 * dwarf2read.c (dwarf2_flag_true_p): New function.
5592 (die_is_declaration): Use the function above. Add some comments.
5593
adf93a2f
MK
55942004-04-19 Mark Kettenis <kettenis@gnu.org>
5595
5596 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5597 architecture when registering sparcnbsd_core_osabi_sniffer.
5598 Adjust comment.
5599
748894bf
MK
56002004-04-18 Mark Kettenis <kettenis@gnu.org>
5601
f622ad42
MK
5602 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5603 return value.
5604
c4fc7f1b
MK
5605 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5606 * i386-tdep.c: Correct register numbering scheme comments
5607 throughout.
5608 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5609 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5610 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5611 (i386_gdb_arch_init): Likewise.
5612
b4ead1bd
MK
5613 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5614 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5615 ppcnbsd-tdep.o.
5616
748894bf
MK
5617 * m68k-tdep.h: Tweak comments.
5618 * m68k-tdep.c: Tweak comment.
5619
fdd72f95
RC
56202004-04-17 Randolph Chung <tausq@debian.org>
5621
5622 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5623 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5624 (hppa_hpux_som_init_abi): Set is_elf to 0.
5625 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5626 * hppa-tdep.c (low_text_segment_address): Remove global.
5627 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5628 section offset to calculate segment address.
5629 (internalize_unwinds): Define low_text_segment_address as local and
5630 pass to record_text_segment_lowaddr for ELF targets.
5631 (hppa_gdbarch_init): Zero fill tdep structure.
5632 (hppa_dump_tdep): Print tdep structure.
5633 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5634
0f8d9d59
RC
56352004-04-17 Randolph Chung <tausq@debian.org>
5636
5637 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5638 (hppa_gdbarch_init): Set pseudo_register_read.
5639 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5640 * regcache.c (supply_register): Remove check for
5641 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5642
7c46b9fb
RC
56432004-04-17 Randolph Chung <tausq@debian.org>
5644
5645 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5646 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5647 (hpread_adjust_stack_address): Move to hpread.c.
5648 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5649 obj_private_struct): Move from tm-hppa.h.
5650 * hpread.c (hppa-tdep.h): Include.
5651 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5652 (hpread_read_function_type, hpread_read_doc_function_type)
5653 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5654 directly.
5655 * pa64solib.c (hppa-tdep.h): Include.
5656 * somsolib.c (hppa-tdep.h): Include.
5657 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5658 inferior_status): Remove unused forward declarations.
5659 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5660 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5661 obj_private_struct): Move to hppa-tdep.h.
5662 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5663
8d153463
RC
56642004-04-17 Randolph Chung <tausq@debian.org>
5665
5666 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5667 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5668 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5669 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5670 Remove forward declaration and make static.
5671 (hppa_reg_struct_has_addr): Remove.
5672
350c2e5b
JB
56732004-04-16 Joel Brobecker <brobecker@gnat.com>
5674
5675 * observer.sh: Move comments in sed command to first column.
5676
bbde78fa
JM
56772004-04-16 Jason Molenda (jmolenda@apple.com)
5678
5679 * frame.c: Minor typeo corrections in comments.
5680
e0270fd9
JB
56812004-04-16 Joel Brobecker <brobecker@gnat.com>
5682
5683 * observer.c (observer_test_first_notification_function): Update
5684 function profile.
5685 (observer_test_second_notification_function): Likewise.
5686 (observer_test_third_notification_function): Likewise.
5687
3d049254
MK
56882004-04-16 Mark Kettenis <kettenis@gnu.org>
5689
5690 From Brian Ford <ford@vss.fsi.com>:
5691 * i386-tdep.c (i386_coff_init_abi): New function.
5692 * i386-tdep.h (i386_coff_init_abi): New prototype.
5693 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5694 register number translation functions for DWARF and DWARF 2.
5695
7867684d
JB
56962004-04-16 Joel Brobecker <brobecker@gnat.com>
5697
5698 * dwarf2read.c: Back out my previous change, it was incorrect.
5699
72bf9492
DJ
57002004-04-16 Daniel Jacobowitz <drow@mvista.com>
5701
5702 * dwarf2read.c: Include "hashtab.h".
5703 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5704 has_namespace_info.
5705 (struct partial_die_info): Add comments. Use bitfields to reduce
5706 memory footprint. Add scope, scope_set, has_specification,
5707 spec_offset, die_parent, die_child, and die_sibling.
5708 (peek_die_abbrev): Add prototype.
5709 (partial_read_comp_unit_head): New function, broken out from
5710 dwarf2_build_psymtabs_hard.
5711 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5712 Use partial_read_comp_unit_head. Initialize the CU and
5713 comp_unit_obstack. Update calls to read_partial_die and
5714 scan_partial_symbols. Use free_stack_comp_unit and
5715 load_partial_dies.
5716 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5717 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5718 Update calls to helper functions. Remove NAMESPACE argument.
5719 Update comments.
5720 (partial_die_parent_scope, partial_die_full_name): New functions.
5721 (add_partial_symbol): Remove namespace argument. Update call to
5722 pdi_needs_namespace. Use partial_die_full_name. Handle
5723 DW_TAG_namespace. Check has_namespace_info flag.
5724 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5725 tag. Handle namespaces.
5726 (add_partial_namespace, add_partial_enumeration): Simplify.
5727 (guess_structure_name): New function, derived from
5728 add_partial_structure.
5729 (add_partial_structure): Remove.
5730 (determine_class_name): Update comment.
5731 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5732 (is_type_tag_for_partial, load_partial_dies): New functions.
5733 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5734 Record specifications instead of following them immediately.
5735 (find_partial_die_in_comp_unit, find_partial_die)
5736 (fixup_partial_die, free_stack_comp_unit)
5737 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5738 (partial_die_hash, partial_die_eq): New functions.
5739 * Makefile.in (hashtab_h): Define.
5740 (dwarf2read.o): Update dependencies.
5741 (observer_inc, observer_h): Move to the correct section.
5742
fdc860a3
JB
57432004-04-15 Joel Brobecker <brobecker@gnat.com>
5744
5745 * dwarf2read.c (dwarf2_attribute_true_p): New function.
5746 (die_is_declaration): Use the function above. Add comment.
5747
dc718098
JB
57482004-04-15 Joel Brobecker <brobecker@gnat.com>
5749
5750 * dwarf2read.c (read_structure_scope): Identify stub types
5751 using die_is_declaration() only.
5752
8718a420
RM
57532004-04-15 Roland McGrath <roland@redhat.com>
5754
5755 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
5756 argument instead of NAME.
5757 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
5758 in call to symbol_file_add_with_addrs_or_offsets.
5759 (build_addr_info): New function, helper for ...
5760 (symbol_file_add_from_memory): New function.
5761 (add_symbol_file_from_memory_command): New function using that.
5762 (_initialize_symfile): Register it for add-symbol-file-from-memory.
5763 (pre_add_symbol_hook): Add const to argument type.
5764 * symfile.h (symbol_file_add_from_memory): Declare it.
5765
8b910bab
MK
57662004-04-15 Mark Kettenis <kettenis@gnu.org>
5767
9f076e7a
MK
5768 * NEWS (New native configurations): Mention OpenBSD/vax.
5769 * configure.host: Add vax-*-openbsd*.
5770 * config/vax/obsd.mh: New file.
5771 * config/vax/nm-obsd.h: New file.
5772
8b910bab
MK
5773 * vax-tdep.c: Include "regset.h".
5774 (vax_supply_gregset): New function.
5775 (vax_gregset): New variable.
5776 (vax_regset_from_core_section): New function.
5777 (vax_gdbarch_init): Set regset_from_core_section.
5778 * Makefile.in (vax-tdep.o): Update dependencies.
5779
7a464420
AC
57802004-04-15 Andrew Cagney <cagney@redhat.com>
5781
5782 * observer.c (normal_stop_subject, observer_notify_normal_stop)
5783 (observer_normal_stop_notification_stub)
5784 (observer_attach_normal_stop, observer_detach_normal_stop):
5785 Delete, replaced by #include "observer.inc".
5786 * infrun.c (normal_stop): Pass "stop_bpstat" to
5787 observer_notify_normal_stop.
5788 * Makefile.in (observer_inc): Define.
5789 (observer.o): Update dependencies.
5790 (observer.h, observer.inc): New rules.
5791 * observer.h: Delete file.
5792 * observer.sh: New file.
5793
e36ad527
MK
57942004-04-15 Mark Kettenis <kettenis@gnu.org>
5795
5796 * vax-tdep.c (vax_frame_cache): Fix typo.
5797
67b441e1
MK
57982004-04-14 Mark Kettenis <kettenis@gnu.org>
5799
6f606e1c
MK
5800 * NEWS (New native configurations): Mention NetBSD/vax.
5801 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
5802 * config/vax/nbsdelf.mh: New file.
5803 * config/vax/nbsdaout.mh: New file.
5804 * config/vax/nm-nbsd.h: New file.
5805 * config/vax/nm-nbsdaout.h: New file.
5806
9c5519a5
MK
5807 * vaxnbsd-tdep.c: New file.
5808 * Makefile.in (vaxnbsd-tdep.o): New dependency.
5809 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
5810 * config/vax/nbsd.mt: New file.
5811 * config/vax/tm-nbsd.h: New file.
5812
4844a614
MK
5813 * Makefile.in (vaxbsd-nat.o): New dependency.
5814
67b441e1
MK
5815 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
5816 * vax-tdep.c (vax_store_arguments): Remove struct_return and
5817 struct_addr arguments. Don't push return value address.
5818 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
5819 arguments to vax_store_arguments. Store return value address in
5820 R1.
5821 (vax_store_struct_return, vax_extract_return_value)
5822 (vax_store_return_value): Remove functions.
5823 (vax_return_value): New function.
5824 (vax_gdbarch_init): Set return value. Don't set
5825 deprecated_store_struct_return, deprecated_extract_struct_return
5826 and deprecated_store_return_value.
5827
6672f2ae
AS
58282004-04-14 Andreas Schwab <schwab@suse.de>
5829
5830 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
5831 value buffer.
5832 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
5833
7346c184
MK
58342004-04-14 Mark Kettenis <kettenis@gnu.org>
5835
5836 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
5837 (vax_unwind_dummy_id): New functions.
5838 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
5839 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
5840 variables.
5841 (vax_fix_call_dummy): Remove function.
5842 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
5843 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
5844 call_dummy_location, deprecated_call_dummy_words,
5845 deprecated_sizeof_call_dummy_words,
5846 deprecated_call_dummy_breakpoint_offset,
5847 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
5848 and deprecated_dummy_write_sp.
5849
58e23df4
DC
58502004-04-13 David Carlton <carlton@kealia.com>
5851
5852 * MAINTAINERS: Move myself to "paper trail" section.
5853
5e6b39ff
MK
58542004-04-12 Mark Kettenis <kettenis@gnu.org>
5855
7def7fef
MK
5856 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
5857 "trad-frame.h".
5858 (vax_frame_init_saved_regs): Remove function.
5859 (vax_sigtramp_saved_pc): Remove function.
5860 (vax_frame_saved_pc): Remove function.
5861 (vax_frame_args_address): Remove function.
5862 (vax_frame_num_args): Rewrite.
5863 (vax_frame_chain): Remove function.
5864 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
5865 VAX_FP_REGNUM.
5866 (vax_pop_frame): Likewise.
5867 (vax_saved_pc_after_call): Remove function.
5868 (struct vax_frame_cache): New structure.
5869 (vax_frame_cache): New function.
5870 (vax_frame_this_id): New function.
5871 (vax_frame_prev_register): New function.
5872 (vax_frame_unwind): New variable.
5873 (vax_frame_sniffer): New function.
5874 (vax_frame_base_address): New function.
5875 (vax_frame_args_address): New function.
5876 (vax_frame_base): New variable.
5877 (vax_unwind_pc): New function.
5878 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
5879 deprecated_fp_regnum, deprecated_saved_pc_after_call,
5880 deprecated_frame_chain, deprecated_frame_saved_pc,
5881 deprecated_frame_args_address and
5882 deprecated_frame_init_saved_regs.
5883 * Makefile.in (vax-tdep.o): Update dependencies.
5884
53284fc1
MK
5885 * vaxbsd-nat.c: New file.
5886
5e6b39ff
MK
5887 * vax-tdep.h: Update copyright year. Adjust comments.
5888 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
5889 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
5890 (vax_regnum): New enum. Replacing...
5891 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
5892 (VAX_PS_REGNUM): ... these removed macros.
5893 * vax-tdep.c (vax_register_name): Remove prototype.
5894 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
5895 (vax_register_byte, vax_register_raw_size,
5896 vax_register_virtual_size, vax_register_virtual_type): Remove
5897 functions.
5898 (vax_register_type): New function.
5899 (vax_breakpoint_from_pc): Reorganize.
5900 (vax_gdbarch_init): Set register_type. Don't set
5901 deprecated_register_size, deprecated_register_bytes,
5902 deprecated_register_byte, deprecated_register_raw_size,
5903 deprecated_max_register_raw_size,
5904 deprecated_register_virtual_size,
5905 deprecated_max_register_virtual_size and
5906 deprecated_register_virtual_type. Add comment on stack direction.
5907
e9c71e9f
MK
59082004-04-11 Mark Kettenis <kettenis@gnu.org>
5909
5910 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
5911 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 5912 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 5913
d46f1176 59142004-04-10 Randolph Chung <tausq@debian.org>
8718a420 5915
d46f1176
RC
5916 * MAINTAINERS (write after approval): Add myself.
5917
a2a84a72
RC
59182004-04-07 Randolph Chung <tausq@debian.org>
5919
5920 * hppa-tdep.c (hppa_inner_than): Remove.
5921 (is_pa_2): Remove unused static variable.
8718a420 5922 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 5923
e85c3284
PH
59242004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
5925
5926 * language.h (language_defn): Add new la_post_parser field.
5927 * parser-defs.h (null_post_parser): New declaration (default for
5928 la_post_parser).
8718a420 5929
e85c3284
PH
5930 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
5931 insert call to that function.
5932 (parse_exp_in_context): New function, including code formerly in
8718a420 5933 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
5934 prefixification.
5935 (parse_expression_in_context): New exported function.
5936 (null_post_parser): New definition.
5937 * expression.h (parse_expression_in_context): Add declaration.
8718a420 5938
e85c3284
PH
5939 * p-lang.c (pascal_language_defn): Add trivial post-parser.
5940 * c-lang.c (c_language_defn): Ditto.
5941 (cplus_language_defn): Ditto.
5942 (asm_language_defn): Ditto.
5943 (minimal_language_defn): Ditto.
5944 * f-lang.c (f_language_defn): Ditto.
5945 * jv-lang.c (java_language_defn): Ditto.
5946 * language.c (unknown_language_defn): Ditto.
5947 (auto_language_defn): Ditto.
5948 (local_language_defn): Ditto.
5949 * m2-lang.c (m2_language_defn): Ditto.
5950 * scm-lang.c (scm_language_defn): Ditto.
5951 * obj-lang.c (objc_language_defn): Ditto.
8718a420 5952
d9f8c85b
MK
59532004-04-10 Mark Kettenis <kettenis@gnu.org>
5954
fa34704a
MK
5955 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
5956 (amd64nbsd_mcontext_addr): New function.
5957 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
5958 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
5959 with amd64nbsd_r_reg_offset, instead of building it on the fly.
5960
403e1656
MK
5961 * corelow.c (core_xfer_partial): Fix coding standards violation.
5962 Add support for TARGET_OBJECT_WCOOKIE.
5963
a57e5a95
MK
5964 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
5965 deprecated_pc_in_sigtramp.
5966 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
5967 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
5968 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
5969 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5970 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
5971 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5972 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
5973
377d9ebd
MK
5974 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
5975 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
5976 Fix typo.
5977
f0ef85a5
MK
5978 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
5979 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
5980 (amd64_collect_fxsave): Likewise.
5981
d9f8c85b
MK
5982 * i386-sol2-tdep.c: Include "gdb_string.h".
5983 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
5984 name.
5985 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5986
75f501b5
MK
59872004-04-10 Mark Kettenis <kettenis@gnu.org>
5988
5989 * i386-sol2-tdep.c: Include "solib-svr4.h".
5990 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5991 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5992 * config/i386/tm-i386sol2.h: Include :solib.h".
5993 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
5994 solib-svr4.o and solib-legacy.o.
5995 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
5996 solib-svr4.o.
5997
b31bc724
MK
59982004-04-09 Mark Kettenis <kettenis@gnu.org>
5999
18bbbd9e
MK
6000 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6001 whether a register is supplied by PTRACE_GETFPREGS.
6002 (store_inferior_registers): Likewise.
6003 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6004 whether a register is supplied by PT_GETFPREGS.
6005 (store_inferior_registers): Likewise.
6006
3c30bf1b
MK
6007 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6008 * config/i386/linux64.mt (TDEPFILES): Likewise.
6009
a4194092
MK
6010 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6011
911bc6ee
MK
6012 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6013 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6014 the program counter is in the range specified by `struct
6015 gdbarch_tdep'.
6016 * amd64-linux-tdep.c: Include "symtab.h".
6017 (amd64_linux_pc_in_sigtramp): Remove function.
6018 (amd64_linux_sigtramp_p): New function.
6019 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6020 deprecated_pc_in_sigtramp.
6021 * amd64nbsd-tdep.c: Include "symtab.h".
6022 (amd64nbsd_sigtramp_p): New function.
6023 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6024 deprecated_pc_in_sigtramp.
6025 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6026 few comments.
6027 (amd64obsd_pc_in_sigtramp): Remove function.
6028 (amd64obsd_sigtramp_p): New function.
6029 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6030 deprecated_pc_in_sigtramp.
6031 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6032 (i386bsd_pc_ins_sigtramp): Remove prototype.
6033 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6034 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6035 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6036 the program counter is in the range specified by `struct
6037 gdbarch_tdep'.
6038 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6039 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6040 (i386_go32_pc_in_sigtramp): Remove function.
6041 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6042 Initialize TDEP->sigtramp_p.
6043 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6044 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6045 deprecated_pc_in_sigtramp.
6046 * i386-linux-tdep.c: Adjust comments.
6047 (i386_linux_pc_in_sigtramp): Remove function.
6048 (i386_linux_sigtramp_p): New function.
6049 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6050 deprecated_pc_in_sigtramp.
6051 * i386-nto-tdep.c: Update copyright year.
6052 (i386nto_pc_in_sigtramp): Remove function.
6053 (i386nto_sigtramp_p): New function.
6054 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6055 SP_REGNUM.
6056 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6057 deprecated_pc_in_sigtramp.
6058 * i386-sol2-tdep.c: Update copyright year.
6059 (i386_sol2_pc_in_sigtramp): Remove function.
6060 (i386_sol2_sigtramp_p): New function.
6061 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6062 deprecated_pc_in_sigtramp.
6063 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6064 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6065 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6066 deprecated_sigtramp_start and deprecated_sigtramp_end.
6067 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6068 (i386nbsd_pc_in_sigtramp): Remove function.
6069 (i386nbsd_sigtramp_p): New function.
6070 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6071 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6072 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6073 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6074 (i386obsd_pc_in_sigtramp): Remove function.
6075 (i386obsd_sigtramp_p): New function.
6076 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6077 functions.
6078 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6079 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6080 TDEP->sigtramp_p.
6081 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6082 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6083 dependencies.
6084
e083e6ec
MK
6085 * config/i386/i386aout.mt: Remove file.
6086
bd153b94
MK
6087 * configure.tgt: Remove i[34567]86-*-go32*,
6088 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6089 and i[34567]86-*-isc*. Set gdb_target to i386 for
6090 i[34567]86-*-netware* and i[34567]86-*-*.
6091 * config/i386/i386.mt: New file.
6092 * config/i386/embed.mt: Remove file.
6093 * config/i386/go32.mt: Remove file.
6094 * config/i386/i386nw.mt: Remove file.
6095 * config/i386/i386v.mt: Remove file.
6096 * config/i386/tm-go32.h: Remove file.
6097
4a1bcc8c
MK
6098 * tui/tui-hooks.c: Include "readline/readline.h" after
6099 "gdb_curses.h" instead of before.
6100 * tui/tui-io.c: Likewise.
6101
f9a79064
MK
6102 * tui/tui.c: Fix typo in comment.
6103
b31bc724
MK
6104 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6105
f83f82bc
AC
61062004-04-08 Andrew Cagney <cagney@redhat.com>
6107
6108 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6109 (deprecated_exception_support_initialized): Declare.
8718a420 6110 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
6111 (initialize_hp_cxx_exception_support)
6112 (child_enable_exception_callback): Update.
6113 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6114 (deprecated_exception_support_initialized): Rename
6115 deprecated_exception_catchpoints_are_fragile and
6116 deprecated_exception_support_initialized.
6117 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6118
6119 * symtab.c (deprecated_hp_som_som_object_present): Rename
6120 hp_som_som_object_present.
6121 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6122 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6123 Update. Delete extern declaration.
6124 * valops.c (hp_som_som_object_present): Ditto.
8718a420 6125 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
6126 (parse_nested_classes_for_hpacc): Ditto.
6127 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 6128 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
6129 (initialize_hp_cxx_exception_support): Ditto.
6130 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 6131 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 6132 (cp_print_class_method): Ditto.
8718a420 6133 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
6134 (c_type_print_base): Ditto.
6135 * c-exp.y (hp_som_som_object_present): Ditto.
6136
fb2be677
AC
61372004-04-08 Andrew Cagney <cagney@redhat.com>
6138
6139 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6140 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6141 (frame_unwind_find_by_frame): Re-implement the unwind code so
6142 that it can both prepend and append sniffers. Replace
6143 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6144 * tramp-frame.c (tramp_frame_append): Use
6145 frame_unwind_prepend_unwinder.
6146 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6147 frame_unwind_register_unwinder.
6148 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6149 tramp_frame_append.
6150 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 6151 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
6152 (mips_linux_init_abi): Update.
6153
67faf007
KB
61542004-04-08 Kevin Buettner <kevinb@redhat.com>
6155
6156 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6157 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6158 file support.
6159
8973ff21
KB
61602004-04-07 Kevin Buettner <kevinb@redhat.com>
6161
6162 * ia64-tdep.c (elf.h): Don't include.
6163 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6164
4a0e2f88
JM
61652004-04-07 Jason Molenda (jmolenda@apple.com)
6166
6167 * frame.h: Typeo corrections in comments.
6168
9872ad24
JB
61692004-04-07 Jim Blandy <jimb@redhat.com>
6170
6171 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6172 %esp and %ebp
6173
70b216c8
MK
61742004-04-07 Mark Kettenis <kettenis@gnu.org>
6175
11d5789c
MK
6176 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6177 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6178 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6179 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6180 and solib-legacy.o.
6181 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6182 solib-svr4.o.
6183 * config/sparc/tm-sol2.h: Update copyright year. Include
6184 "solib.h".
6185
70b216c8
MK
6186 * sparc-sol2-tdep.c: Update copyright year. Include
6187 "solib-svr4.h".
6188 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6189 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6190 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 6191 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
6192 dependencies.
6193
6339dc9e
AC
61942004-04-06 Andrew Cagney <cagney@redhat.com>
6195
6196 * infttrace.c: Include "infttrace.h".
6197 * infttrace.h: Include "target.h".
6198 * Makefile.in (infttrace_h): Update.
6199 (infttrace.o): Update.
8718a420 6200
93449403
AC
62012004-04-06 Andrew Cagney <cagney@redhat.com>
6202
6d518969
AC
6203 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6204 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6205 move extern declarations from here ...
6206 * infttrace.h: ... to here.
6207 * Makefile.in (hppah-nat.o): Update dependencies.
6208
85f4f2d8
AC
6209 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6210 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 6211 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
6212 (hppa_breakpoint_from_pc): Delete.
6213
93449403
AC
6214 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6215
71456ec6
AC
62162004-04-05 Andrew Cagney <cagney@redhat.com>
6217
6218 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6219 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6220 <sys/file.h>.
8718a420 6221
4c02c60c
AC
62222004-04-06 Randolph Chung <tausq@debian.org>
6223
6224 Committed by Andrew Cagney (mechanical change).
6225 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6226 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6227 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6228 child_enable_exception_callback, current_ex_event,
6229 null_symtab_and_line, child_get_current_exception_event,
6230 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6231 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6232 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6233 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6234 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6235 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6236 Move hpux-specific definitions ...
6237 * hppa-hpux-tdep.c: ... to here.
6238
3a515653
AC
62392004-04-05 Andrew Cagney <cagney@redhat.com>
6240
6241 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6242 skip_prologue_using_sal.
6243
c1730d02
AC
62442004-04-05 Andrew Cagney <cagney@redhat.com>
6245
6246 * config/i386/tm-i386.h: Delete file.
6247 * config/i386/tm-vxworks.h: Update copyright, do not include
6248 "tm-i386.h".
6249 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6250 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6251 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6252 * config/i386/ncr3000.mt (TM_FILE): Delete.
6253 * config/i386/interix.mt (TM_FILE): Delete.
6254 * config/i386/i386v.mt (TM_FILE): Delete.
6255 * config/i386/i386nw.mt (TM_FILE): Delete.
6256 * config/i386/i386gnu.mt (TM_FILE): Delete.
6257 * config/i386/i386aout.mt (TM_FILE): Delete.
6258 * config/i386/embed.mt (TM_FILE): Delete.
6259
8b67aa36
KB
62602004-04-05 Kevin Buettner <kevinb@redhat.com>
6261
6262 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6263 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6264 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6265 (accg7_regnum): New constants.
6266 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
6267 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6268 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
6269 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6270 for accg registers.
6271 (frv_register_sim_regno): Update spr_map[].
6272
3c7012f5
AC
62732004-04-04 Andrew Cagney <cagney@redhat.com>
6274
6275 * config/mips/xm-riscos.h: Delete.
6276 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6277 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6278 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6279 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6280 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6281 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6282 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6283 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6284 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6285 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6286 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6287 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6288 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6289 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6290 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6291 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6292 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6293 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6294 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6295 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6296 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6297 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6298 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6299 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6300 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6301 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 6302
3c7012f5
AC
6303 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6304 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6305 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6306 * configure.host: Remove m680[01]0-sun-sunos3*,
6307 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6308 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6309 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6310 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6311 mips-*-riscos*.
6312 * NEWS: Mention removed systems.
6313
99d16a21
AC
63142004-04-04 Andrew Cagney <cagney@redhat.com>
6315
6316 GDB 6.1 release created from 6.1 branch.
6317
6cdf9d98
AC
63182004-04-04 Andrew Cagney <cagney@redhat.com>
6319
98d346c3
AC
6320 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6321 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6322 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6323
6cdf9d98
AC
6324 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6325 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6326 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6327
859a326d
JB
63282004-04-03 Jim Blandy <jimb@redhat.com>
6329
6330 * MAINTAINERS: Chris Faylor has changed employers; add him to
6331 "paper trail" section, and update his E-mail address.
6332
b87178c3
AC
63332004-04-03 Andrew Cagney <cagney@redhat.com>
6334
4ea2acf0
AC
6335 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6336 generic dummy frames.
6337 * dummy-frame.c: Update copyright.
6338 (dummy_frame_sniffer): Delete check for generic dummy frames.
6339
d0bd2d18 6340 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 6341 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
6342 (REG_PARM_STACK_SPACE): Delete.
6343 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6344 Inline reference to REG_PARM_STACK_SPACE.
6345
b87178c3
AC
6346 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6347 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6348 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6349 (FRAME_BASE_BEFORE_SIGTRAMP)
6350 (hppa32_hpux_frame_base_before_sigtramp)
6351 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6352 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6353 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6354 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6355 (FRAME_BASE_BEFORE_SIGTRAMP)
6356 (hppa64_hpux_frame_base_before_sigtramp)
6357 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6358
43e2e1a0
AC
63592004-04-03 Andrew Cagney <cagney@redhat.com>
6360
6361 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6362
ddc135a4
AC
63632004-04-02 Andrew Cagney <cagney@redhat.com>
6364
6365 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6366 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6367 * dummy-frame.h: Delete out-of-date comments.
6368 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6369 * gdbarch.h, gdbarch.c: Re-generate.
6370
d15bfd3a 63712004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 6372
d15bfd3a
AC
6373 Committed by Andrew Cagney <cagney@redhat.com>.
6374 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6375 into account an instruction saving a register if we have already
6376 seen an earlier instruction saving that same register.
6377
f04ceafa
AC
63782004-04-02 Andrew Cagney <cagney@redhat.com>
6379
08be3abd
AC
6380 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6381 * gdbarch.h, gdbarch.c: Re-generate.
6382 * frame.c (legacy_get_prev_frame): Delete references to
6383 DEPRECATED_INIT_FRAME_PC_FIRST.
6384
f04ceafa
AC
6385 * infrun.c (pc_in_sigtramp): Delete function.
6386 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6387 get_frame_type.
6388
08e69816
AC
63892004-04-02 Andrew Cagney <cagney@redhat.com>
6390
6391 * infrun.c (handle_step_into_function): Delete code conditional on
6392 legacy_frame_p.
6393 (handle_inferior_event, step_over_function): Ditto.
6394
adb54772
AC
63952004-04-02 Andrew Cagney <cagney@redhat.com>
6396
6397 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6398 "previous frame inner to this frame" test.
6399
304396fb
AC
64002004-04-02 Andrew Cagney <cagney@redhat.com>
6401
6402 * frame.c (safe_frame_unwind_memory): New function.
6403 * frame.h (safe_frame_unwind_memory): Declare. Update description
6404 of /safe_/ methods.
6405 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6406 "next_frame". Use safe_frame_unwind_memory.
6407 (tramp_frame_sniffer): Update call to tramp_frame_start.
6408
6502dd73
DJ
64092004-04-01 Daniel Jacobowitz <drow@mvista.com>
6410
6411 * dwarf2read.c (dwarf2_objfile_data_key): New.
6412 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6413 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6414 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6415 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6416 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6417 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6418 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6419 Remove variables.
6420 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6421 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6422 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6423 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6424 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6425 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6426 Remove macros.
6427 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6428 data.
6429 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6430 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6431 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6432 (read_partial_die, read_full_die, read_indirect_string)
6433 (dwarf_decode_line_header, dwarf_decode_macros)
6434 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6435 Update uses of removed variables.
6436 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6437 of removed macros.
6438 (_initialize_dwarf2_read): New function.
6439 * symfile.h (dwarf2_has_info): Update prototype.
6440 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6441 * elfread.c (elf_symfile_read): Likewise.
6442
408752b0
JB
64432004-04-01 Jim Blandy <jimb@redhat.com>
6444
9f744501
JB
6445 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6446 function for register numbers on all the rs6000-derived targets.
6447 (rs6000_gdbarch_init): Don't register a separate
6448 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6449 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6450 variants.
6451
408752b0
JB
6452 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6453 numbering.
6454
2de41bce
PH
64552004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6456
6457 * valarith.c: Update copyright notice.
6458 (value_add): Handle range types.
6459 (value_sub): Ditto.
6460 (value_equal): Ditto.
6461 (value_less): Ditto.
6462 (value_neg): Ditto.
6463 (value_complement): Ditto.
8718a420 6464 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 6465 eliminiating unnecessary COERCE_ENUMs.
8718a420 6466
5613d8d3
AC
64672004-03-31 Andrew Cagney <cagney@redhat.com>
6468
6469 * frame.h (frame_unwind_id): Declare.
6470 * frame.c (frame_unwind_id): New function.
6471 (get_prev_frame_1): New function.
6472 (frame_debug_got_null_frame): New function.
6473 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6474 code proper to prev_frame, update description.
6475 * infrun.c (step_over_function): Use frame_unwind_id.
6476
c4557624
JB
64772004-04-31 J. Brobecker <brobecker@gnat.com>
6478
6479 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6480 (hppa64_push_dummy_call): Likewise.
6481
3e6bb910
JB
64822004-03-30 Jim Blandy <jimb@redhat.com>
6483
6484 From Ulrich Weigand:
6485 * utils.c (query): Do not use a va_list variable multiple times.
6486
a2f23071
DJ
64872004-03-29 Daniel Jacobowitz <drow@mvista.com>
6488
6489 * Makefile.in (linux_nat_h): Update dependencies.
6490 * configure.in: Check for <gnu/libc-version.h>.
6491 * configure: Regenerate.
6492 * config.in: Regenerate.
6493 * linux-nat.h: Include "target.h". Add waitstatus field to
6494 struct lwp_info.
6495 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6496 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6497 to.
6498 (lin_lwp_handle_extended): New function. Handle clone events.
6499 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6500 thread exit events.
6501 (child_wait): Handle clone events.
6502 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6503 * linux-nat.c (linux_enable_event_reporting): Turn on
6504 PTRACE_O_TRACECLONE.
6505 (linux_handle_extended_wait): Handle clone events.
6506 * thread-db.c: Include <gnu/libc-version.h>.
6507 (struct private_thread_info): Add dying flag.
6508 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6509 higher.
6510 (attach_thread): Update comments. Handle dying threads.
6511 (detach_thread): Set the dying flag.
6512 (check_event): Always call attach_thread.
6513
8d5f9dcb
DJ
65142004-03-29 Daniel Jacobowitz <drow@mvista.com>
6515
6516 * mips-tdep.c (mips_pdr_data): New.
6517 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6518 (_initialize_mips_tdep): Initialize mips_pdr_data.
6519
66337bb1
CV
65202004-03-29 Corinna Vinschen <vinschen@redhat.com>
6521
6522 * minsyms.c (install_minimal_symbols): Move dropping leading
6523 char from linkage name from here...
6524 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6525 test for "__gnu_compiled*" symbols.
6526
e802b915
JB
65272004-03-28 Jim Blandy <jimb@redhat.com>
6528
6529 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6530 registers to temp register r0 and byte stores as prologue
6531 instructions.
6532
72b56458
AC
65332004-03-28 Andrew Cagney <cagney@redhat.com>
6534
6535 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6536 arm*-*-*.
6537
0bfbda3b
SC
65382004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6539
6540 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6541 and switch the layout to force a display of register window.
6542
5a7225ed
JB
65432004-02-26 J. Brobecker <brobecker@gnat.com>
6544
6545 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6546 of the INTEGER class.
6547
81a07a45
JB
65482004-03-26 Jim Blandy <jimb@redhat.com>
6549
6550 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6551 bytes long on PPC GNU/Linux.
6552
8c691c7a
DC
65532004-03-26 David Carlton <carlton@kealia.com>
6554
6555 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6556
103a0089
AC
65572004-03-25 Andrew Cagney <cagney@redhat.com>
6558
6559 * PROBLEMS: Add general section titles, remove references to
6560 specific releases.
6561
7a5ea0d4
DJ
65622004-03-25 Daniel Jacobowitz <drow@mvista.com>
6563
6564 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6565 INT_REGISTER_SIZE.
6566 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6567 FP_REGISTER_VIRTUAL_SIZE.
6568 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6569 of DEPRECATED_REGISTER_RAW_SIZE.
6570 (arm_register_type): Add gdbarch argument.
6571 (arm_register_raw_size, arm_register_virtual_size): Delete.
6572 (arm_register_byte, arm_extract_return_value)
6573 (arm_store_return_value, arm_get_longjmp_target): Update references
6574 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6575 (arm_gdbarch_init): Likewise. Don't set
6576 deprecated_register_raw_size, deprecated_register_virtual_size,
6577 deprecated_max_register_raw_size,
6578 deprecated_max_register_virtual_size, or
6579 deprecated_max_register_virtual_type. Do set register_type.
6580 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6581 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6582 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6583 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6584 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6585 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6586 INT_REGISTER_SIZE.
6587 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6588 (remote_rdp_store_register): Likewise.
6589
5792a79b
DJ
65902004-03-24 Daniel Jacobowitz <drow@mvista.com>
6591
6592 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6593 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6594 to after osabi initialization.
6595 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6596 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6597 functions.
6598 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6599 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6600 variables.
6601 (mips_linux_init_abi): Append signal trampoline unwinders.
6602
1196bfda
AC
66032004-03-24 Andrew Cagney <cagney@redhat.com>
6604
6605 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6606 * tramp-frame.c: Include "gdb_assert.h".
6607 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6608 correct sizeof.
6609 (tramp_frame_append): Validate the tramp frame's instructions.
6610 * Makefile.in (tramp-frame.o): Update dependencies.
6611
4be282b4
AC
66122004-03-23 Andrew Cagney <cagney@redhat.com>
6613
6614 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6615
69aec09b
AC
66162004-03-23 Andrew Cagney <cagney@redhat.com>
6617
6618 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6619 Nasser as past testsuite/lib/ (and other) maintainers.
6620
63ed89b4
DJ
66212004-03-23 Daniel Jacobowitz <drow@mvista.com>
6622
6623 * infcmd.c (attach_command): Reread symbols if we already have
6624 an exec file.
6625
f3b36427
AC
66262004-03-23 Andrew Cagney <cagney@redhat.com>
6627
6628 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6629
aa2a3f87
AC
66302004-03-23 Andrew Cagney <cagney@redhat.com>
6631
6632 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6633 * gdbarch.h, gdbarch.c: Re-generate.
6634 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6635 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6636 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 6637 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 6638 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 6639 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
6640 (DEPRECATED_SIGTRAMP_START): Update.
6641 * blockframe.c (find_pc_sect_partial_function): Update.
6642 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6643
00cac895
DJ
66442004-03-23 Daniel Jacobowitz <drow@mvista.com>
6645
6646 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6647 if necessary.
6648
f561f026
AC
66492004-03-23 Andrew Cagney <cagney@redhat.com>
6650
6651 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6652 predicate, deprecate.
6653 * gdbarch.h, gdbarch.c: Re-generate.
6654 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6655 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6656 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6657 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6658 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6659 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6660 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6661 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6662 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6663 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6664 * blockframe.c (find_pc_partial_function): Update.
6665 * breakpoint.c (bpstat_what): Update.
6666 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6667 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6668 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6669 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6670 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6671 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6672 * i386-nto-tdep.c (i386nto_init_abi): Update.
6673 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6674 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6675 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6676 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6677 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6678 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6679 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6680 * infrun.c (pc_in_sigtramp): Update.
6681 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6682 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6683 * mips-tdep.c (mips_gdbarch_init): Update.
6684 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6685 * ppc-linux-tdep.c: Update comment.
6686 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6687 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6688 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6689 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6690 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6691 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6692 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6693 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6694 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6695 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 6696
8050c72f
AC
66972004-03-23 Andrew Cagney <cagney@redhat.com>
6698
d2259dd3
AC
6699 * tramp-frame.h, tramp-frame.h: New files.
6700 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6701 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6702
8050c72f
AC
6703 * Makefile.in: Update all dependencies.
6704
0db9b4b7
AC
67052004-03-23 Andrew Cagney <cagney@redhat.com>
6706
6707 * Makefile.in (trad_frame_h): Add $(frame_h).
6708 * trad-frame.h: Update copyright. Include "frame.h".
6709 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6710 (trad_frame_set_id, trad_frame_get_id): Declare.
6711 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6712 * trad-frame.c: Update copyright.
6713 (struct trad_frame_cache): Define.
6714 (trad_frame_cache_zalloc): New function.
6715 (trad_frame_set_id, trad_frame_get_id): New functions.
6716 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 6717
8e645ae7
AC
67182004-03-22 Andrew Cagney <cagney@redhat.com>
6719
6720 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6721 s390_pltstub_unwind_cache.
6722 (s390_stub_frame_unwind_cache): Rename
6723 s390_pltstub_frame_unwind_cache.
6724 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6725 (s390_stub_frame_prev_register): Rename
6726 s390_pltstub_frame_prev_register.
6727 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6728 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6729
6730 From Ulrich Weigand:
6731 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6732 pointer calls like PLT calls.
6733
34fcf120
DJ
67342004-03-22 Daniel Jacobowitz <drow@mvista.com>
6735
6736 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6737 PC rather than the partial function start address. Use the start
6738 address to sanity check the found PDR.
6739
5b917078
DJ
67402004-03-22 Daniel Jacobowitz <drow@mvista.com>
6741
6742 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
6743 linux_handle_extended_wait.
6744
8adf9e78
AC
67452004-03-22 Andrew Cagney <cagney@redhat.com>
6746
c3122434
AC
6747 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
6748 function.
6749
8adf9e78
AC
6750 * frame.h (generic_pop_current_frame): Delete declaration.
6751 (deprecate_pop_dummy_frame): Deprecate
6752 generic_pop_dummy_frame.
6753 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
6754 (generic_pop_current_frame): Delete function.
6755 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
6756 generic_pop_current_frame.
6757 * v850-tdep.c (v850_pop_frame): Update.
6758 * mcore-tdep.c (mcore_pop_frame): Update.
6759 * sh64-tdep.c (sh64_pop_frame): Update.
6760 * h8300-tdep.c (h8300_pop_frame): Update.
6761
90ba813f
AC
67622004-03-22 Andrew Cagney <cagney@redhat.com>
6763
6764 * frame.h (deprecated_pc_in_call_dummy): Rename
6765 generic_pc_in_call_dummy.
6766 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
6767 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
6768 generic_pc_in_call_dummy.
6769 (pc_in_dummy_frame): Make static.
6770 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
6771 * gdbarch.h, gdbarch.c: Re-generate.
6772 * dummy-frame.c (dummy_frame_sniffer): Simplify.
6773 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
6774 (legacy_get_prev_frame): Ditto.
6775 * inferior.h: Delete reference to generic_pc_in_call_dummy in
6776 comment.
8718a420 6777
ca4bb888
AC
67782004-03-21 Andrew Cagney <cagney@redhat.com>
6779
244675f9
AC
6780 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
6781 declaration and out-of-date comment.
6782 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6783 Delete function.
6784 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
6785 deprecated_pc_in_call_dummy.
6786
ca4bb888
AC
6787 * infrun.c (handle_inferior_event): For non legacy frames, use the
6788 frame ID and frame type to identify a signal trampoline. Update
6789 comments.
6790
1777c7b4
NW
67912004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
6792
6793 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
6794 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
6795
82417da5
AC
67962004-03-21 Andrew Cagney <cagney@redhat.com>
6797
6798 * frame-unwind.h: Update copyright.
6799 (struct frame_data): Add opaque declaration.
6800 (frame_sniffer_ftype): Declare.
6801 (struct frame_unwind): Add "unwind_data" and "sniffer".
6802 (frame_unwind_register_unwinder): Declare.
6803 (frame_unwind_find_by_frame): Add parameter "this_cache".
6804 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
6805 (legacy_get_prev_frame, legacy_get_prev_frame)
6806 (get_frame_type): Pass the prologue_cache to
6807 frame_unwind_find_by_frame.
6808 * frame-unwind.c (struct frame_unwind_table_entry): Add field
6809 "unwinder".
6810 (frame_unwind_register_unwinder): New function.
6811 (frame_unwind_find_by_frame): Handle an unwind sniffer.
6812
b2ba182e
PH
68132004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
6814
6815 * bcache.c (print_percentage): Use floating point to avoid
6816 incorrect results when portion*100 overflows.
6817
81332287
KB
68182004-03-19 Kevin Buettner <kevinb@redhat.com>
6819
6820 * ppc_tdep.h (ppc_linux_frame_saved_pc)
6821 (ppc_linux_init_extra_frame_info)
6822 (ppc_linux_frameless_function_invocation)
6823 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
6824 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
6825 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
6826 (rs6000_frame_chain): Delete declarations.
6827 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
6828 (ppc_linux_init_extra_frame_info)
6829 (ppc_linux_frameless_function_invocation)
6830 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
6831 (ppc_linux_init_abi): Remove registration of above deleted functions.
6832 * rs6000-tdep.c (rs6000_init_extra_frame_info)
6833 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
6834 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
6835 (rs6000_pop_frame, rs6000_frameless_function_invocation)
6836 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
6837 (rs6000_gdbarch_init): Remove registration of above deleted functions.
6838 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
6839 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
6840 frame management for all OSABIs.
6841
61a65099
KB
68422004-03-19 Andrew Cagney <cagney@redhat.com>
6843
6844 Committed by Kevin Buettner <kevinb@redhat.com>.
6845
6846 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
6847 Update copyright.
6848 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
6849 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
6850 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
6851 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
6852 unwinders. #ifdef legacy frame code.
6853 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6854 "frame-base.h".
6855 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
6856 (struct rs6000_frame_cache, rs6000_frame_cache)
6857 (rs6000_frame_this_id, rs6000_frame_prev_register)
6858 (rs6000_frame_sniffer, rs6000_frame_unwind)
6859 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
6860 (rs6000_frame_base): Implement a traditional frame unwinder.
6861 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
6862 frame unwinder.
6863
88f7da05
KB
68642004-03-19 Kevin Buettner <kevinb@redhat.com>
6865
6866 * breakpoint.c (adjust_breakpoint_address): Don't adjust
6867 breakpoint address for watchpoints or the catch eventpoints.
6868 Add new paramter ``bptype''. Adjust all callers.
6869
f826dce1
AC
68702004-03-19 Andrew Cagney <cagney@redhat.com>
6871
33cb8b0f
AC
6872 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
6873
f826dce1
AC
6874 * PROBLEMS: Delete note that ARM does not use frame code, problem
6875 fixed.
6876
43b1ab88
AC
68772004-03-18 Andrew Cagney <cagney@redhat.com>
6878
292ab034
AC
6879 * stack.c (return_command): Delete code wrapped in #ifdef
6880 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
6881
43b1ab88
AC
6882 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
6883
dbfe4626
AC
68842004-03-18 Andrew Cagney <cagney@redhat.com>
6885
6886 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
6887 DEPRECATED_IN_SIGTRAMP.
6888 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6889 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
6890 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6891 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6892 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6893 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6894 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6895 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6896 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
6897 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
6898
0cad6aec
AC
68992004-03-18 Andrew Cagney <cagney@redhat.com>
6900
6901 * frame-base.c: Update copyright. Include "gdb_obstack.h".
6902 (struct frame_base_table_entry): Define.
6903 (struct frame_base_table): Re-implement as a linked list.
6904 (frame_base_init): Re-implement.
6905 (frame_base_table): Delete function.
6906 (append_predicate): Delete function.
6907 (frame_base_append_sniffer): Update.
6908 (frame_base_set_default): Update.
6909 (frame_base_find_by_frame): Update.
6910 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
6911 * Makefile.in (frame-base.o): Update dependencies.
6912
9982c2e7
AC
69132004-03-17 Andrew Cagney <cagney@redhat.com>
6914
6915 * frame.c (legacy_get_prev_frame): Pass correct frame to
6916 frame_unwind_find_by_frame.
6917
8dfe8985
DC
69182004-03-17 David Carlton <carlton@kealia.com>
6919
6920 * NEWS: Mention C++ nested types and namespaces
6921
ed47347a
MC
69222004-03-16 Michael Chastain <mec.gnu@mindspring.com>
6923
6924 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
6925 and "Regressions since gdb 5.3.". Add known regressions since
6926 gdb 6.0.
6927
90aeadfc
DC
69282004-03-16 David Carlton <carlton@kealia.com>
6929
6930 * dwarf2read.c (process_structure_scope): Process children even
6931 when we're a declaration.
6932
73912b9b
AC
69332004-03-16 Andrew Cagney <cagney@redhat.com>
6934
6935 * symtab.h (find_pc_sect_partial_function): Delete declaration.
6936 * blockframe.c (find_pc_partial_function)
6937 (find_pc_sect_partial_function): Merge into a single
6938 find_pc_partial_function.
6939
283accbc
MK
69402004-03-16 Mark Kettenis <kettenis@gnu.org>
6941
6942 * i386bsd-nat.c: s/regno/regnum/g.
6943 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
6944 FP0_REGNUM.
6945 (store_inferior_registers): Likewise.
6946
f5b1afdf
MK
69472004-03-16 Mark Kettenis <kettenis@gnu.org>
6948
6949 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
6950 of i387_fill_fsave.
6951 (store_inferior_registers): Call i387_collect_fsave and
6952 i387_collect_fxsave instead of i387_fill_fsave and
6953 i387_fill_fxsave.
6954
41fe5eb3
AC
69552004-03-15 Andrew Cagney <cagney@redhat.com>
6956
6957 * Makefile.in (frame-unwind.o): Update dependencies.
6958 * frame-unwind.c: Include "gdb_obstack.h".
6959 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
6960 parameter.
6961 (append_predicate): Delete function.
6962 (struct frame_unwind_table_entry): New structure.
6963 (struct frame_unwind_table): Replace "sniffer" with "head" and
6964 "tail".
6965 (frame_unwind_append_sniffer): Update.
6966 (frame_unwind_find_by_frame): Update.
6967 (_initialize_frame_unwind): Registe frame_unwind_init using
6968 gdbarch_data_register_pre_init.
6969
3f63813d
MK
69702004-03-15 Mark Kettenis <kettenis@gnu.org>
6971
6972 * i386bsd-nat.c: Update copyright year.
6973 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
6974 define unconditionally.
6975
3248c325 69762004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
6977
6978 * i387-tdep.h (i387_collect_fsave): New prototype.
6979 * i387-tdep.c (i387_collect_fsave): New function containing most
6980 of the code from i387_fill_fsave.
3248c325 6981 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 6982
871fbe6a
MK
69832004-03-15 Mark Kettenis <kettenis@gnu.org>
6984
6985 * i386-linux-tdep.c: Update copyright year.
6986 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
6987 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
6988 svr4_ilp32_link_map_offsets instead of
6989 i386_linux_svr4_fetch_link_map_offsets.
6990
8176b9b8
DC
69912004-03-15 David Carlton <carlton@kealia.com>
6992
6993 Fix for PR c++/1553:
6994 * dwarf2read.c (read_structure_type): Determine type name by
6995 calling determine_class_name.
6996 (determine_class_name): New.
6997 (determine_prefix): Look at TYPE_TAG_NAME and call
6998 determine_class_name when appropriate.
6999 (determine_prefix_aux, class_name): Delete.
9d58e29d 7000 (read_namespace): Set die->type.
8176b9b8 7001
fe8bf7d7
KB
70022004-03-15 Kevin Buettner <kevinb@redhat.com>
7003
7004 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7005 unused macro definition. The definition in target.h (or perhaps
7006 elsewhere) takes precedence.
7007
ed6edd9b
AC
70082004-03-15 Andrew Cagney <cagney@redhat.com>
7009
f9be684a
AC
7010 * ppc-tdep.h: Update copyright.
7011 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7012 function signatures to match "regsets.h".
7013 * ppc-linux-tdep.c: Include "regset.h".
7014 (ELF_GREGSET_SIZE): Delete.
7015 (right_supply_register): New function.
7016 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7017 using right_supply_register.
7018 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7019 functions.
7020 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7021 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7022 (_initialize_ppc_linux_tdep): Do not register
7023 ppc_linux_regset_core_fns.
7024 (ppc_linux_regset_from_core_section): Replace
7025 fetch_core_registers.
7026 (ppc_linux_regset_core_fns): Delete.
7027 * ppc-linux-nat.c: (right_fill_reg): New function.
7028 (supply_gregset): Update call to ppc_linux_supply_gregset.
7029 (fill_gregset): Clear the register set, use right_fill_reg.
7030 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7031 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7032
ed6edd9b
AC
7033 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7034 unsigned.
7035
030f20e1
AC
70362004-03-15 Andrew Cagney <cagney@redhat.com>
7037
7038 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7039 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7040 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7041 and register_gdbarch_data.
7042 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7043 (struct gdbarch_data): Replace "init" by "pre_init" and
7044 "post_init".
7045 * gdbarch.h, gdbarch.c: Re-generate.
7046 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7047 with"obstack", use OBSTACK_ZALLOC.
7048 (dwarf2_frame_ops): Delete.
7049 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7050 (dwarf2_frame_init_reg): Use gdbarch_data.
7051 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 7052 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
7053 (_initialize_svr4_solib): Update.
7054 * user-regs.c (_initialize_user_regs): Update.
7055 * reggroups.c (_initialize_reggroup): Update.
7056 * regcache.c (_initialize_regcache): Update.
7057 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7058 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7059 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7060 * frame-unwind.c (_initialize_frame_unwind): Update.
7061 * frame-base.c (_initialize_frame_base): Update.
7062 * user-regs.c (user_reg_add): Update.
7063 * reggroups.c (reggroup_add): Update.
7064 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7065 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7066 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7067 * frame-base.c (frame_base_table): Update.
7068 * remote.c (_initialize_remote): Update.
7069 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 7070
3111a3fc
AC
70712004-03-15 Andrew Cagney <cagney@redhat.com>
7072
7073 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7074
5ecb7103
KB
70752004-03-15 Kevin Buettner <kevinb@redhat.com>
7076
7077 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7078 * frv-linux-tdep.c: New file.
7079 * frv-tdep.c (struct gdbarch_tdep): Add new field
7080 ``sigcontext_reg_addr''.
7081 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7082 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7083 (frv_sigramp_frame_sniffer): New functions.
7084 (frv_sigtramp_frame_unwind): New static global.
7085 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7086 sniffers.
7087 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7088 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7089
1ccda5e9
KB
70902004-03-15 Kevin Buettner <kevinb@redhat.com>
7091
7092 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7093 but not via a call to error(), when unable to read memory.
7094
b375a0a5
KB
70952004-03-15 Kevin Buettner <kevinb@redhat.com>
7096
7097 * frv-tdep.c (frv_call_dummy_words): Delete.
7098 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7099
4fdf6121
AC
71002004-03-15 Andrew Cagney <cagney@redhat.com>
7101
7102 * infrun.c (handle_step_into_function, step_over_function): Only
7103 update and use STEP_FRAME_ID when the system is using legacy
7104 frames. Update comments.
7105
34021503
MK
71062004-03-14 Mark Kettenis <kettenis@gnu.org>
7107
187e21d1
MK
7108 * amd64-linux-tdep.h: Remove file.
7109 * amd64-linux-tdep.c: Don't include "inferior.h" and
7110 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7111 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7112 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7113 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7114 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7115 macros.
7116 (user_to_gdb_regmap): Remove variable.
7117 (amd64_linux_gregset_reg_offset): New variable.
7118 (amd64_core_fns): Remove variable.
7119 (fetch_core_registers): Remove function.
7120 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7121 functions.
7122 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7123 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7124 * Makefile.in (amd64_linux_tdep_h): Remove.
7125 (amd64-linux-nat.o): Update dependencies.
7126 (amd64-linux-tdep.o): Update dependencies.
7127
99679982
MK
7128 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7129 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7130 functions.
7131 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7132
34021503
MK
7133 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7134 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7135
134d01f1
DJ
71362004-03-14 Daniel Jacobowitz <drow@mvista.com>
7137
7138 * dwarf2read.c (read_structure_type): Rename from
8718a420 7139 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
7140 Return immediately if die->type is set. Call read_type_die before
7141 dwarf2_add_member_fn.
7142 (process_structure_scope): New function.
7143 (read_enumeration_type, process_enumeration_scope): New functions,
7144 broken out from read_enumeration. Don't create the enumeration
7145 type if it has already been created.
7146 (read_enumeration): Removed.
7147 (process_die): Call read_structure_type, process_structure_scope,
7148 read_enumeration_type, and process_enumeration_scope. Just call
7149 new_symbol for base and subrange types. Add a comment about other
7150 type dies.
7151 (read_type_die): Call read_enumeration_type.
7152 (add_partial_structure, new_symbol): Update comments.
7153
65760afb
SC
71542004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7155
7156 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7157
10f59415
SC
71582004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7159
7160 * tui/tui-win.h (tui_get_cmd_list): Declare.
7161 * tui/tui-win.c (tui_command): New function.
7162 (tui_get_cmd_list): New function.
7163 (_initialize_tui_win): Moved initialization of tui command in
7164 tui_get_cmd_list.
7165
7166 * tui/tui-data.c (init_content_element): Setup new data members.
7167 (init_win_info): Likewise.
7168 (free_content_elements): Free it.
7169 * tui/tui-data.h (struct tui_data_element): Store the register
7170 content to print.
7171 (struct tui_data_info): Keep the current register group.
7172
7173 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7174
7175 * tui/tui-regs.h (tui_show_registers): Update prototype.
7176 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7177 (tui_resize_all): No need to calculate anything for register window.
7178 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7179 (tui_set_register_element, tui_set_general_regs_content): Remove.
7180 (tui_set_special_regs_content): Remove.
7181 (tui_set_general_and_special_regs_content): Remove.
7182 (tui_set_float_regs_content): Remove.
7183 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7184 (tui_set_regs_content): Remove.
7185 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7186 (tui_v_show_registers_command_support): Remove.
7187 (tui_show_registers): Use a reggroup to specify the registers to show.
7188 (tui_show_register_group): New function.
7189 (tui_display_registers_from): Compute the layout of register window
7190 and refresh with new API; be sure to delete old register windows.
7191 (tui_check_register_values): Update to use tui_get_register and
7192 tui_display_data.
7193 (tui_display_register): Just refresh the register window part.
7194 (tui_register_format): Format registers and save in tui_data_element.
7195 (tui_get_register): New to combine tui_reg_value_has_changed and
7196 tui_get_register_raw_value; fix to use the new gdb API.
7197 (tui_show_float_command): Renamed tui_reg_float_command.
7198 (tui_show_general_command): Renamed tui_reg_general_command.
7199 (tui_show_special_command): Renamed tui_reg_system_command.
7200 (_initialize_tui_regs): Remove unused commands.
7201
c3364ea4
MK
72022004-03-13 Mark Kettenis <kettenis@gnu.org>
7203
27d1e716
MK
7204 * NEWS (New native configurations): Mention OpenBSD/amd64.
7205
c3364ea4
MK
7206 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7207 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7208 Remove defines.
7209 * config/i386/nm-fbsd64.h: Likewise.
7210 * config/i386/nm-obsd.h: Likewise.
7211 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7212 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7213
b2d6d697
KB
72142004-03-12 Kevin Buettner <kevinb@redhat.com>
7215
7216 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
7217 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7218 New constants.
7219
76e43199
KB
7220 From Richard Sandiford <rsandifo@redhat.com>:
7221 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7222
34ce532e
KB
72232004-03-12 Kevin Buettner <kevinb@redhat.com>
7224
7225 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7226 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7227 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7228 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7229 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7230 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7231 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7232 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7233 definitions from frv-tdep.c to frv-tdep.h.
7234
c4d10515
KB
72352004-03-12 Kevin Buettner <kevinb@redhat.com>
7236
7237 Add shared library support for FR-V FDPIC ABI:
7238 * Makefile.in (solib-frv.o): Add dependencies.
7239 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7240 New functions.
7241 (frv_push_dummy_call): Add support for FDPIC ABI.
7242 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7243 for FDPIC ABI.
7244 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7245 (frv_fdpic_find_canonical_descriptor): Declare.
7246 * solib-frv.c: New file.
7247 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7248 * config/frv/tm-frv.h (solib.h): Include.
7249
ed1bd989
KB
72502004-03-12 Kevin Buettner <kevinb@redhat.com>
7251
7252 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7253 (frv-tdep.o): Update dependencies.
7254 * frv-tdep.h: New file.
7255 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7256 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7257 constants.
7258 (struct gdbarch_tdep): Add new member ``frv_abi''.
7259 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7260 functions.
7261 (new_variant): Set ``frv_abi'' field.
7262 (gdb_arch_init): Detect FDPIC executables.
7263
82b38f72
MK
72642004-03-12 Mark Kettenis <kettenis@gnu.org>
7265
7266 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7267 wrapper.
7268
db1ea9ba
AC
72692004-03-11 Andrew Cagney <cagney@redhat.com>
7270
7271 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7272
f8766ec1
KB
72732004-03-11 Kevin Buettner <kevinb@redhat.com>
7274
7275 * solist.h (master_so_list): New function.
7276 * solib.c (master_so_list): Likewise.
7277 * solib-svr4.c (enable_break): Iterate over so_list entries
7278 obtained from master list instead of entries obtained directly
7279 via svr4_current_sos().
7280
523f6a27
BE
72812004-03-10 Ben Elliston <bje@gnu.org>
7282
7283 * MAINTAINERS: Update my mail address.
7284
37814c18
KI
72852004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7286
7287 * remote-m32r-sdi.c: Support hardware watchpoint.
7288
8b9740d8
DJ
72892004-03-09 Daniel Jacobowitz <drow@mvista.com>
7290
7291 * user-regs.c: Update copyright years.
7292 (struct user_regs): Rename to gdb_user_regs.
7293 (append_user_reg, builtin_user_regs, user_regs_init)
7294 (user_reg_add, user_reg_map_name_to_regnum)
7295 (usernum_to_user_reg): Update.
7296
4bb7a0a7
DJ
72972004-03-09 Daniel Jacobowitz <drow@mvista.com>
7298
7299 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7300 (skip_children): New functions.
7301 (locate_pdi_sibling): Call skip_children.
7302
44e1a9eb
DJ
73032004-03-09 Daniel Jacobowitz <drow@mvista.com>
7304
7305 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7306 * gdbtypes.c (check_typedef): Update comments.
7307
f3dd6933
DJ
73082004-03-09 Daniel Jacobowitz <drow@mvista.com>
7309
7310 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7311 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7312 pointer. Update comment about comp_unit_head.
7313 (struct abbrev_info): Shorten two int flags.
7314 (dwarf_alloc_abbrev): Take a CU argument.
7315 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7316 each time through the loop. Update cleanup argument.
7317 (psymtab_to_symtab_1): Update cleanup call.
7318 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7319 abbrev_obstack.
7320 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7321 Just call obstack_free and clear the pointer.
7322
b40c7d58
DJ
73232004-03-09 Daniel Jacobowitz <drow@mvista.com>
7324
7325 * infrun.c (handle_inferior_event): Remove short-circuit code for
7326 events in a different thread.
7327
333dabeb
DJ
73282004-03-09 Daniel Jacobowitz <drow@mvista.com>
7329
7330 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7331 print the whole transfer.
7332 (initialize_targets): Update description of "set debug target".
7333
aa17d93e
DJ
73342004-03-09 Daniel Jacobowitz <drow@mvista.com>
7335
7336 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7337
0b71f08f
NW
73382004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7339
7340 * MAINTAINERS (write after approval): Add myself.
7341
3930f270
CV
73422004-03-08 Corinna Vinschen <vinschen@redhat.com>
7343
7344 * sh-tdep.c (sh_print_registers_info): Use for loop.
7345 Don't skip multiple registers when a float register is encountered.
7346
a2b4a96c
CV
73472004-03-08 Corinna Vinschen <vinschen@redhat.com>
7348
7349 Fix PR tdep/1291.
7350 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7351 to official SH documentation.
7352
f15a4bc0
AC
73532004-03-07 Andrew Cagney <cagney@redhat.com>
7354
7355 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7356 unused function.
7357
9498281f
DJ
73582004-03-07 Daniel Jacobowitz <drow@mvista.com>
7359
7360 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7361 (arm_get_next_pc): Handle BX and BLX.
7362
449e1137
AC
73632004-03-07 Andrew Cagney <cagney@redhat.com>
7364
eded0a31
AC
7365 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7366 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7367 HPPA_SP_REGNUM.
7368 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7369 (hppa_target_read_fp): Delete.
7370 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7371 register_virtual_size, max_register_raw_size,
7372 max_register_virtual_size, register_byte, register_size,
7373 target_read_fp, fp_regnum, and register_bytes. Set register_type
7374 instead of register_virtual_type.
7375 (hppa32_register_type, hppa64_register_type): Replace
7376 hppa32_register_virtual_type and hppa64_register_virtual_type.
7377 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7378 (HPPA_FP_REGNUM): Define.
7379
f5f907e2
AC
7380 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7381
69b4bbe4
AC
7382 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7383 (pa_do_registers_info): Delete.
7384 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 7385 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 7386 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 7387
78161e48
AC
7388 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7389 GDB_TARGET_IS_HPPA code.
7390 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 7391 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
7392 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7393 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
7394 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7395 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7396 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 7397 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
7398 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7399 (hppa_frameless_function_invocation, hppa64_store_return_value)
7400 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 7401 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 7402 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 7403 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
7404 (find_proc_framesize, deposit_21, restore_pc_queue)
7405 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 7406 (rp_saved, pc_in_linker_stub): Delete.
78161e48 7407
782eae8b
AC
7408 Unconditionally enable 64-bit frame and ABI code.
7409 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7410 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7411 push_dummy_frame, fix_call_dummy, push_arguments,
7412 call_dummy_location, extract_return_value, use_struct_convention,
7413 store_return_value, store_struct_return, saved_pc_after_call,
7414 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7415 frame_chain, frame_chain_valid, frameless_function_invocation,
7416 frame_saved_pc, and pop_frame.
78161e48 7417
449e1137
AC
7418 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7419 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7420 (hppa_gdbarch_init): Do not set PC_REGNUM.
7421
12507572
MK
74222004-03-06 Mark Kettenis <kettenis@gnu.org>
7423
7424 * config/alpha/tm-fbsd.h: Remove file.
7425 * config/alpha/fbsd.mt: Tweak comment.
7426 (TM_FILE): Set to tm-alpha.h.
7427
c107cc1b
AC
74282004-03-05 Andrew Cagney <cagney@redhat.com>
7429
7430 * infrun.c (step_over_function): When non-legacy code, and no
7431 step_frame_id, use the unwinder to get the caller's frame ID.
7432
f2e7c15d
MK
74332004-03-05 Mark Kettenis <kettenis@gnu.org>
7434
8b0c3633
MK
7435 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7436 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7437 bfd_arch_unknown. Adjust comment.
7438
f2e7c15d
MK
7439 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7440 * i386obsd-tdep.c: Correct spelling in comment.
7441 * i386nbsd-tdep.c: Correct spelling in comment.
7442 * sparc-tdep.c: Correct spelling in comments.
7443
1198ecbe
DC
74442004-03-05 David Carlton <carlton@kealia.com>
7445
7446 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7447 bug.
7448
9eb42ed1
MK
74492004-03-05 Mark Kettenis <kettenis@gnu.org>
7450
7451 * sparc-tdep.c: Fix typo in comment.
7452
52b5e991
JB
74532004-03-04 J. Brobecker <brobecker@gnat.com>
7454
7455 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7456
d8151005
DJ
74572004-03-04 Daniel Jacobowitz <drow@mvista.com>
7458
7459 * dwarf2read.c: Add comment describing memory lifetimes.
7460 (struct dwarf2_pinfo): Update comment.
7461 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7462 (read_enumeration, new_symbol): Don't use obsavestring.
7463
cbeae229
MK
74642004-03-04 Mark Kettenis <kettenis@gnu.org>
7465
722d18c2
MK
7466 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7467 instead of amd64_fill_fxsave.
7468 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7469 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7470
cbeae229
MK
7471 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7472 Reorganize code a bit.
7473
b4206d25
OF
74742004-03-04 Orjan Friberg <orjanf@axis.com>
7475
7476 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
7477 when the frame pointer is pushed. Don't set the frame pointer's
7478 address on the stack unless it's actually located there.
b4206d25
OF
7479 Set the SRP's address on the stack correctly when the PC is still in
7480 the prologue.
7481 (cris_return_value): New function.
7482 (cris_gdbarch_init): Clear deprecated store_return_value,
7483 extract_return_value.
7484
49b0b195
JB
74852004-03-02 Jim Blandy <jimb@redhat.com>
7486
7487 * stabsread.c (reg_value_complaint): The maximum register number
7488 is one less than the number of registers.
7489
e9ff708b
AC
74902004-03-02 Andrew Cagney <cagney@redhat.com>
7491
7492 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7493 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7494 trailing comma and redundant assignment of I386_ST0_REGNUM.
7495 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7496 32-bit segment registers.
7497
d4715e41
AC
74982004-03-01 Andrew Cagney <cagney@redhat.com>
7499
7500 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7501 use frame_relative_level and get_next_frame.
7502
3ce2bf18
AC
75032004-02-29 Andrew Cagney <cagney@redhat.com>
7504
7505 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7506 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7507 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7508 Delete macro.
7509
2da6aac3
DJ
75102004-02-29 Daniel Jacobowitz <drow@mvista.com>
7511
7512 * inflow.c (terminal_inferior): Don't give up the terminal if we
7513 previously couldn't get the inferior's terminal state.
7514
6ba34a8d
DJ
75152004-02-29 Daniel Jacobowitz <drow@mvista.com>
7516
7517 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7518 PC_REGNUM.
7519
faae5abe
AC
75202004-02-28 Andrew Cagney <cagney@redhat.com>
7521
7522 * NEWS: Refer to GDB 6.1.
7523 * README: Refer to GDB 6.1.
7524 * PROBLEMS: Refer to GDB 6.1.
7525
2227a3c5
DJ
75262004-02-28 Daniel Jacobowitz <drow@mvista.com>
7527
7528 * thread-db.c (disable_thread_signals): Remove unused function.
7529
80571bff
MK
75302004-02-28 Mark Kettenis <kettenis@gnu.org>
7531
041bd74b
MK
7532 * amd64-nat.c: Include "gdb_string.h".
7533 (amd64_collect_native_gregset): Zero-extend the 32-bit
7534 general-purpose registers and %eip.
7535
3c017e40
MK
7536 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7537 * amd64-tdep.c (amd64_collect_fxsave): New function.
7538 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7539
80571bff
MK
7540 * i387-tdep.h: Update copyright year.
7541 (i387_collect_fxsave): New prototype.
7542 * i387-tdep.c: Update copyright year.
7543 (i387_collect_fxsave): New function containing most of the code
7544 from i387_fill_fxsave.
7545 (i387_fill_fxsave): Call i387_collect_fxsave.
7546
50d71875
AC
75472004-02-28 Andrew Cagney <cagney@redhat.com>
7548
7549 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7550 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7551
4a28816e
MK
75522004-02-28 Mark Kettenis <kettenis@gnu.org>
7553
7554 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7555
dbda9972
AC
75562004-02-28 Andrew Cagney <cagney@redhat.com>
7557
7558 * utils.c: Use "", instead of <>, to include readline.
7559 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7560 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7561 * source.c, solib.c, exec.c, event-top.c: Ditto.
7562 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7563 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7564 * Makefile.in: Update all dependencies.
7565 (readline_tilde_h, readline_history_h): Define.
7566 (readline_headers): Delete.
7567
83277a99
MK
75682004-02-28 Mark Kettenis <kettenis@gnu.org>
7569
91ae4303
MK
7570 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7571 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7572 "config/i386/tm-lx64.h".
7573
83277a99
MK
7574 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7575 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7576 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7577
6e1d7d6c
AC
75782004-02-28 Andrew Cagney <cagney@redhat.com>
7579
ecc9ac84
AC
7580 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7581
6e1d7d6c
AC
7582 * breakpoint.c (_initialize_breakpoint): Use
7583 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7584 Add help to show command.
7585
9671aeef
MK
75862004-02-28 Mark Kettenis <kettenis@gnu.org>
7587
7fa2737c
MK
7588 * i386-nat.c: Reformat to be closer to coding standards.
7589 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7590 `retval'. Make variables `align' and `size' local to while-loop.
7591 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7592 (_initialize_i386_nat): New prototype.
7593
9671aeef
MK
7594 * tui/tui.c: Include <readline/readline.h> instead of
7595 "readline/readline.h". Include it after <term.h> and
7596 "gdb_curses.h".
7597
fca7aa43
AC
75982004-02-27 Andrew Cagney <cagney@redhat.com>
7599
412275d5
AC
7600 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7601 the new frame unwind code.
7602 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7603 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7604 PCOQ_HEAD_REGNUM.
7605
fca7aa43
AC
7606 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7607 "return_value" and "push_dummy_call".
7608 (hppa32_use_struct_convention): Delete unused function.
7609 (hppa32_store_return_value): Delete unused function.
7610 (hppa32_extract_return_value): Delete unused function.
7611 (hppa32_stack_align): Delete function.
7612
e6a8a7d2
EZ
76132004-02-27 Eli Zaretskii <eliz@elta.co.il>
7614
7615 * coffread.c (enter_linenos): Don't let rawptr reference memory
7616 outside linetab[]'s limits.
7617
1797a8f6
AC
76182004-02-27 Andrew Cagney <cagney@redhat.com>
7619
7620 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7621 inferior stack space - the stack needs to grow upwards.
7622 (hppa32_frame_align): New function.
7623 (hppa64_frame_align): Replace hppa_frame_align.
7624 (hppa_gdbarch_init): Update.
7625
2e4b5889
OF
76262004-02-26 Orjan Friberg <orjanf@axis.com>
7627
7628 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7629 (dwarf2-frame.h): Include.
7630 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7631 Remove static variables related to ABI setting.
7632 (struct gdbarch_tdep): Remove cris_abi member.
7633 (struct frame_extra_info): Remove.
7634 (cris_unwind_cache, stack_item): New structs.
7635 (cris_frame_unwind, cris_frame_base): New variables.
7636 (push_stack_item, pop_stack_item)
7637 (cris_frame_unwind_cache, cris_frame_this_id)
7638 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7639 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7640 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7641 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7642 (cris_reg_struct_has_addr): New functions.
7643 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 7644 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
7645 (cris_store_struct_return, cris_frameless_function_invocation)
7646 (cris_pop_frame, cris_skip_prologue_main)
7647 (cris_abi_original_store_return_value)
7648 (cris_abi_v2_store_return_value)
7649 (cris_abi_original_extract_return_value)
7650 (cris_abi_v2_extract_return_value)
7651 (cris_abi_original_reg_struct_has_addr)
7652 (cris_abi_v2_reg_struct_has_addr)
7653 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7654 (cris_push_return_address, cris_abi_update): Remove.
7655 (_initialize_cris_tdep): Remove ABI command.
7656 (cris_dump_tdep): Ditto.
8718a420 7657 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
7658 Set store_return_value, extract_return_value, push_dummy_code,
7659 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7660 frame_unwind_append_sniffer, frame_base_set_default.
7661 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7662 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7663 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 7664 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
7665 init_extra_frame_info, frameless_function_invocation, frame_chain,
7666 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7667 dummy_write_sp.
8718a420 7668
6b9acc27
JJ
76692004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7670
7671 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7672 * valprint.c (print_hex_chars): Change from static to external.
7673 (print_char_chars): New function.
7674 * printcmd.c (print_scalar_formatted): For integer and enum types
7675 that are longer than LONGEST, perform processing via appropriate
7676 print_*_chars routines.
7677
a431654a
AC
76782004-02-26 Andrew Cagney <cagney@redhat.com>
7679
7680 * Makefile.in: Update dependencies.
7681 Changes from Ulrich Weigand,
7682 * s390-tdep.c: Include "dwarf2-frame.h".
7683 (s390_dwarf2_frame_init_reg): New function.
7684 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7685 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7686
fa8d40ab
JJ
76872004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7688
7689 * breakpoint.c (pending_break_support): New setting variable.
7690 (break_command_1): Account for pending_break_support setting
7691 when creating pending breakpoints.
7692 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7693 (_initialize_breakpoint): Add "set breakpoint pending" and
7694 "show breakpoint pending" commands.
7695
0dcd613f
AC
76962004-02-26 Andrew Cagney <cagney@redhat.com>
7697
7698 Fix PR i18n/1570.
7699 * charset.c (backslashable, backslashed, represented): Remove 'e'
7700 from list of escaped characters, not part of ISO-C.
7701
479272a3
JB
77022004-02-25 J. Brobecker <brobecker@gnat.com>
7703
7704 From Peter Schauer <schauer@pdf.de>:
7705 * tui/tui.c: Move system header includes after local includes.
7706 Fixes a build failure on solaris systems.
7707
7613d933
JB
77082004-02-25 J. Brobecker <brobecker@gnat.com>
7709
7710 * configure.in: Refine the previous change.
7711 * configure: Regenerate.
7712
9c1488cb
MK
77132004-02-25 Mark Kettenis <kettenis@gnu.org>
7714
7715 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7716 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7717 "amd64-tdep.h" instead of "x86-64-tdep.h".
7718 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7719 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7720 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7721 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7722 and "x86-64-tdep.c".
7723 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7724 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7725 and "x86-64-tdep.c".
7726 * amd64bsd-nat.c: Update copyright year.
7727 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7728 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7729 "x86-64-tdep.h".
7730 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7731 "x86-64-tdep.h".
7732 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7733 "x86-64-tdep.h".
7734 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7735 "x86-64-tdep.h".
7736 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7737 "x86-64-tdep.h".
7738 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7739 "x86-64-tdep.h".
8718a420 7740 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
7741 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
7742 * Makefile.in (amd64_linux_tdep_h): Renamed from
7743 x86_64_linux_tdep_h.
7744 (amd64_tdep_h): Renamed from x86_64_tdep_h.
7745 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
7746 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
7747 (amd64obsd-tdep.o): Update dependencies.
7748 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
7749 dependencies.
7750 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
7751 dependencies.
7752 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
7753 amd64-linux-nat.c amd64-linux-tdep.c.
7754 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
7755 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
7756 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
7757 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
7758 amd64-tdep.o and amd64-linux-tdep.o.
7759 (TM_FILE): Set to tm-linux64.h.
7760 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
7761 (NAT_FILE): Set to nm-linux64.h.
7762 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
7763 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7764 amd64-tdep.o.
7765 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7766 amd64-tdep.o.
7767 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7768 amd64-tdep.o.
7769
4b8dad4a
RM
77702004-02-25 Roland McGrath <roland@redhat.com>
7771
7772 * remote.c (remote_protocol_qPart_auxv): New variable.
7773 (init_all_packet_configs): Initialize it.
7774 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
7775 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
7776 (show_remote_cmd): Call it.
7777 (_initialize_remote): Initialize commands.
7778 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
7779 service TARGET_OBJECT_AUXV requests.
7780
66745969
JB
77812004-02-25 J. Brobecker <brobecker@gnat.com>
7782
7783 * configure.in: Make sure that the wborder function is available.
7784 Otherwise, search for it in the cur_colr library.
7785 * configure: Regenerate.
7786
79508e1e
AC
77872004-02-25 Andrew Cagney <cagney@redhat.com>
7788
7789 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
7790
571ee600
MK
77912004-02-25 Mark Kettenis <kettenis@gnu.org>
7792
7793 * config/i386/tm-x86-64linux.h: Tweak comments.
7794
2b1b322f 77952004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
7796
7797 * MAINTAINERS: Add self to write-after-approval list.
7798
4d2acc65
AC
77992004-02-25 Andrew Cagney <cagney@redhat.com>
7800
4b8dad4a 7801 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
7802 * cli/cli-script.c (execute_control_command): Unconditionally
7803 install a cleanup. Default "ret" to "invalid_control". Use
7804 "break" instead of "return" to escape from the switch.
7805
4cfcaf21
JB
78062004-02-24 J. Brobecker <brobecker@gnat.com>
7807
7808 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
7809 with the lines macro defined in term.h on AiX.
7810 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
7811 a collision with the label_width macro defined in term.h on AiX.
7812
54a5c8d8
KB
78132004-02-23 David Mosberger <davidm@hpl.hp.com>
7814
7815 Committed by Kevin Buettner <kevinb@redhat.com>.
7816
7817 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
7818 * ia64-tdep.c (ia64_write_pc): Make it a global function.
7819 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
7820 instead of ia64_write_pc().
7821 * ia64-linux-tdep.c (regcache.h): Include.
7822 (ia64_linux_write_pc): New function.
4b8dad4a 7823
8a1dac83
RM
78242004-02-23 Roland McGrath <roland@redhat.com>
7825
7826 * auxv.c (info_auxv_command): Fix typos in error messages.
7827
90f90721
MK
78282004-02-23 Mark Kettenis <kettenis@gnu.org>
7829
8a1dac83 7830 * x86-64-tdep.h: Tweak comment.
90f90721
MK
7831 (enum amd64_regnum): New.
7832 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
7833 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
7834 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
7835 (X86_64_XMM1_REGNUM): Removed.
7836 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
7837 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
7838 prototypes for renamed functions.
7839 * x86-64-tdep.c: Fix typo.
7840 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
7841 register numbers.
7842 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
7843 Use constants from `enum amd64_regnum' for register numbers.
7844 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
7845 (amd64_analyze_prologue, amd64_frame_cache,
7846 amd64_sigtramp_frame_cache): Use constants from `enum
7847 amd64_regnum' for register numbers.
7848 (amd64_supply_fpregset): Adjust for renamed functions.
7849 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
7850 `enum amd64_regnum' for register numbers.
7851 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
7852 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
7853 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
7854 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
7855 (amd64_linux_fill_gregset): Adjust for renamed macros.
7856 (fetch_core_registers): Adjust for renamed functions.
7857 (amd64_linux_init_abi): Adjust for renamed functions.
7858 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
7859 renamed functions.
7860 * amd64-nat.c: Adjust for renamed macros.
7861 * amd64bsd-nat.c (fetch_inferior_registers)
7862 (store_inferior_registers): Use constants from `enum amd64_regnum'
7863 for register numbers. Adjust for renamed variables.
7864 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
7865 renamed variables.
7866 (_initialize_amd64fbsd_nat): Use constants from `enum
7867 amd64_regnum' for register numbers.
7868 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
7869 `enum amd64_regnum' for register numbers.
7870 (amd64fbsd_init_abi): Adjust for renamed functions.
7871 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
7872 `enum amd64_regnum' for register numbers.
7873 (amd64nbsd_init_abi): Adjust for renamed functions.
7874 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
7875 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
7876 `enum amd64_regnum' for register numbers.
7877 (amd64obsd_init_abi): Adjust for renamed functions.
7878 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
7879
d5479188
JJ
78802004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7881
7882 * breakpoint.c (print_one_breakpoint): Do not output spaces
7883 after printing <PENDING> for a pending breakpoint.
7884
81cb7cc9
JJ
78852004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7886
7887 * printcmd.c (print_scalar_formatted): Initialize val_long
7888 to remove compiler warning message.
7889
cbdeadca
JJ
78902004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7891
7892 * defs.h (nquery, yquery): New prototypes.
7893 * breakpoint.c (break_command_1): Use new nquery interface.
7894 * utils.c (defaulted_query, nquery, yquery): New functions.
7895
da6bab63
AC
78962004-02-23 Andrew Cagney <cagney@redhat.com>
7897
2f690297
AC
7898 * hppa-tdep.c (hppa_frame_align): New function.
7899 (hppa32_push_dummy_call): New function.
7900 (hppa64_push_dummy_call): New function.
7901 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
7902 disabled.
8a1dac83 7903
da6bab63
AC
7904 * infcall.c (legacy_push_dummy_code): Don't call deprecated
7905 FIX_CALL_DUMMY when push_dummy_call is available.
7906 (call_function_by_hand, push_dummy_code): Ditto.
7907
abf9b42d
AC
79082004-02-22 Andrew Cagney <cagney@redhat.com>
7909
7910 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
7911 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
7912 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
7913 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
7914 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
7915 call_dummy_location to ON_STACK.
7916
10fc94a4
MK
79172004-02-22 Mark Kettenis <kettenis@gnu.org>
7918
51433e4b
MK
7919 * x86-64-linux-tdep.c: Tweak comment.
7920 (amd64_linux_supply_gregset): Renamed from
7921 x86_64_linux_supply_gresget.
7922 (amd64_linux_fill_gregset): Renamed from
7923 x86_64_linux_fill_gregset.
7924 (fetch_core_registers): Adjust for renamed functions.
7925 (amd64_core_fns): Renamed from x86_64_core_fns.
7926 (amd64_linux_sigtramp_start): Renamed from
7927 x86_64_linux_sigtramp_start.
7928 (amd64_linux_pc_in_sigtramp): Renamed from
7929 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
7930 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
7931 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
7932 (amd64_linux_sigcontext_addr): Renamed from
7933 x86_64_linux_sigcontext_addr.
7934 (amd64_linux_sc_reg_offset): Renamed from
7935 x86_64_linux_sc_reg_offset.
7936 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
7937 Adjust for renamed functions and variables.
7938 (_initialize_amd64_linux_tdep): Renamed from
7939 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
7940 variables.
7941 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
7942 Adjust for renamed functions.
7943
430eaf2e
MK
7944 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
7945 from x86_64_linux_gregset64_reg_offset.
7946 (amd64_linux_gregset32_reg_offset): Rename from
7947 x86_64_linux_gregset64_reg_offset.
7948 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
7949 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
7950 (amd64_linux_dr_set_control): Renamed from
7951 x86_64_linux_dr_set_control. Adjust for renamed functions.
7952 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
7953 Adjust for renamed functions.
7954 (amd64_linux_dr_reset_addr): Renamed from
7955 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
7956 (amd64_linux_dr_get_status): Renamed from
7957 x86_64_linux_dr_get_status. Adjust for renamed functions.
7958 (_initialize_amd64_linux_nat): Renamed from
7959 _initialize_x86_64_linux_nat. Adjust for renamed variables and
7960 functions.
7961 * config/i386/nm-x86-64linux.h: Update copyright year.
7962 Adjust for renamed functions.
7963
10fc94a4
MK
7964 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
7965 amd64fbsd_sigtramp_start.
7966 (amd64fbsd_sigtramp_end_addr): Renamed from
7967 amd64fbsd_sigtramp_end.
7968 (amd64fbsd_init_abi): Adjust for renamed variables.
7969 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
7970 variables.
7971 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
7972 amd64fbsd_sigtramp_start.
7973 (amd64fbsd_sigtramp_end_addr): Renamed from
7974 amd64fbsd_sigtramp_end.
7975
343af405
AC
79762004-02-22 Andrew Cagney <cagney@redhat.com>
7977
537987fc
AC
7978 * hppa-tdep.c (hppa32_return_value): New function.
7979 (hppa64_return_value): New function.
7980 (hppa_gdbarch_init): Set return_value; keep disabled.
7981
fad850b2
AC
7982 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
7983 struct-return and inferior function call methods.
7984
26d08f08
AC
7985 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7986 "frame-base.h".
7987 (struct hppa_frame_cache): Define.
7988 (hppa_frame_cache, hppa_frame_this_id): New functions.
7989 (hppa_frame_prev_register): New function.
7990 (hppa_frame_unwind, hppa_frame_base): New variables.
7991 (hppa_frame_unwind_sniffer): New function.
7992 (hppa_frame_base_address, hppa_unwind_pc): New function.
7993 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
7994 sniffer, and frame base sniffer; keep disabled.
7995 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
7996 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
7997
e7d7bd65
AC
7998 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
7999 to predicates for "seriously old code".
8000
e963316f
AC
8001 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8002 runtime if(0).
8003
56132691
AC
8004 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8005 unsigned.
8006 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 8007
343af405
AC
8008 * config/pa/tm-hppa.h: Update copyright.
8009 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8010 (deprecated_init_frame_pc_default): Delete declaration.
8011 (hppa_frame_init_saved_regs): Delete declaration.
8012 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8013 * hppa-tdep.c: Include "arch-utils.h".
8014 (hppa_gdbarch_init): Set deprecated init_frame_pc
8015 and deprecated frame_init_saved_regs.
8016 (hppa_frame_init_saved_regs): Make static.
8017
f5859b4d
MK
80182004-02-22 Mark Kettenis <kettenis@gnu.org>
8019
86f6f8e7 8020 Remove old 386BSD support.
cf7c5c23 8021 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
8022 * configure.host: Remove i[34567]86-*-bsd*.
8023 * configure.tgt: Remove i[34567]86-*-bsd*.
8024 * i386b-nat.c: Removed.
8025 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
8026 (i386b-nat.o): Remove dependencies.
8027
86f6f8e7
MK
8028 * config/i386/i386bsd.mh: Removed.
8029 * config/i386/i386bsd.mt: Removed.
8030 * config/i386/nm-i386bsd.h: Removed.
8031 * config/i386/tm-i386bsd.h: Removed.
8032 * config/i386/xm-i386bsd.h: Removed.
8033
971218cd
MK
8034 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8035
7e654c37
MK
8036 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8037 (amd64fbsd_init_abi): Set link map offsets.
8038 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8039 (amd64nbsd_init_abi): Set link map offsets.
8040 * amd64obsd-tdep.c: Include "solib-svr4.h".
8041 (amd64obsd_init_abi): Set link map offsets.
8042 * i386fbsd-tdep.c: Include "solib-svr4.h".
8043 (i386fbsd_init_abi): Set link map offsets.
8044 * i386nbsd-tdep.c: Include "solib-svr4.h".
8045 (i386nbsdelf_init_abi): Set link map offsets.
8046 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8047 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8048 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8049 solib-legacy.o and core-aout.o. Reformat.
8050 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8051 solib-svr4.o, solib-legacy.o. Reformat.
8052 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8053 * config/i386/nbsdelf.mh: Reformat.
8054 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8055 solib-svr4.o, solib-legacy.o and corelow.o.
8056 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8057 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8058 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8059 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8060 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8061 (TM_FILE): Set to tm-fbsd.h.
8062 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8063 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8064 solib-svr4.o.
8065 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8066 solib-svr4.o.
8067 (TM_FILE): Set to nm-nbsd.h.
8068 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8069 Simplify shared library support. Don't include "elf/common.h".
8070 (SVR4_SHARED_LIBS): Don't define.
8071 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8072 "solib.h".
8073 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8074 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8075 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8076 Don't include "i386/tm-i386.h". Include "solib.h".
8077 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8078 Don't include "i386/tm-i386.h".
8079 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8080 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8081 Include "i386/xm-i386.h".
8082 (HOST_LONG_DOUBLE_FORMAT): Remove.
8083
5d93ae8c
MK
8084 Fix OpenBSD/i386 sigtramp recognition.
8085 * i386-tdep.h: Update copyright year.
8086 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8087 (i386bsd_sigtramp_end): New prototypes.
8088 (i386fbsd_sigtramp_start_addr): Renamed from
8089 i386fbsd_sigtramp_start.
8090 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8091 (i386obsd_sigtramp_start_addr): Renamed from
8092 i386obsd_sigtramp_start.
8093 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8094 * i386bsd-tdep.c: Update copyright year.
8095 (i386bsd_pc_in_sigtramp): Make public.
8096 * i386fbsd-nat.c: Update copyright year.
8097 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8098 * i386fbsd-tdep.c: Update copyright year.
8099 (i386fbsd_sigtramp_start_addr): Renamed from
8100 i386fbsd_sigtramp_start.
8101 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8102 (i386fbsdaout_init_abi): Adjust for renamed variables.
8103 * i386obsd-nat.c: Update copyright year.
8104 (_initialize_i386obsd_nat): Adjust for renamed variables.
8105 * i386obsd-tdep.c: Include "target.h".
8106 (i386obsd_page_size): New variable.
8107 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8108 (i386obsd_sigtramp_end): New functions.
8109 (i386obsd_sigtramp_start_addr): Renamed from
8110 i386obsd_sigtramp_start.
8111 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8112 (i386obsd_init_abi): Adjust for renamed variables. Set
8113 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8114 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8115
84d04465
MK
8116 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8117 trampoline change in OpenBSD kernel.
8118
b053aceb
MK
8119 * amd64-nat.c: Update copyright year.
8120 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8121 architecture from REGCACHE.
8122
f5859b4d
MK
8123 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8124 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8125
e4bbbda8
MK
81262004-02-21 Mark Kettenis <kettenis@gnu.org>
8127
ba361932
MK
8128 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8129 i[34567]86-*-openbsd3.[0-3].
8130 * config/i386/obsdaout.mh: New file.
8131
d3e48264
MK
8132 * config/i386/obsd.mh (MH_FLAGS): Remove.
8133
60a6eeb6
MK
8134 Fix PR build/1549.
8135 * i386obsd-tdep.c: Update copyright years. Include
8136 "solib-svr4.h".
8137 (i386obsd_init_abi): Don't set regset_from_core_section here.
8138 (i386obsd_aout_init_abi): New function. Set
8139 regset_from_core_section here.
8140 (i386obsd_elf_init_abi): New function.
8141 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8142 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8143 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8144 (TM_FILE): Set to tm-nbsd.h.
8145
8146 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8147 solib-sunos.o.
8148
e4bbbda8
MK
8149 * solib-svr4.h: Update copyright year.
8150 (svr4_ilp32_fetch_link_map_offsets)
8151 (svr4_lp64_fetch_link_map_offsets): New prototype.
8152 * solib-svr4.c: Update copyright year.
8153 (svr4_ilp32_fetch_link_map_offsets)
8154 (svr4_lp64_fetch_link_map_offsets): New function.
8155
f6fe98ef
DJ
81562004-02-20 Daniel Jacobowitz <drow@mvista.com>
8157
8158 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8159 to the partial symbol table.
8160
589ca796
JB
81612004-02-20 J. brobecker <brobecker@gnat.com>
8162
8163 * PROBLEMS: Add description of problem documented under gdb/1560.
8164
2031c21a
MK
81652004-02-20 Mark Kettenis <kettenis@gnu.org>
8166
30b344b1
MK
8167 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8168 comments.
8169 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8170 functions.
8171 (amd64obsd_init_abi): Reorder initializations. Use
8172 amd64obsd_r_reg_offset to initialize the general-purpose register
8173 set details. Set regset_from_core_section.
8174 (_initialize_amd64obsd_tdep): Rename from
8175 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8176 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8177 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8178
2031c21a
MK
8179 * NEWS (New native configurations): Mention OpenBSD/alpha.
8180 * configure.tgt: Add alpha*-*-openbsd*.
8181 * configure.host: Add alpha*-*-openbsd*.
8182 * alphanbsd-tdep.c: Update copyright year.
8183 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8184
42471775
AC
81852004-02-20 Andrew Cagney <cagney@redhat.com>
8186
8187 Fix PR tdep/1372.
8188 * configure.tgt: Delete target "none-*-*".
8189 * configure.host: Delete host "none-*-*".
8190 * config/none/none.mh: Delete file.
8191 * config/none/none.mt: Delete file.
8192 * config/none/xm-none.h: Delete file.
8193 * config/none/tm-none.h: Delete file.
8194 * config/none/nm-none.h: Delete file.
8195
960ccd7d
FF
81962004-02-19 Fred Fish <fnf@redhat.com>
8197
8198 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8199 cache->uses_fp prior to setting it.
8200
5f883edd
FF
82012004-02-19 Fred Fish <fnf@redhat.com>
8202
8203 Fix for PR breakpoint/1558.
8204 * sh-tdep.c (IS_JSR): New macro.
8205 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8206
f98c22d5
JB
82072004-02-19 Jim Blandy <jimb@redhat.com>
8208
8209 * findvar.c (value_from_register): Doc fix.
8210
95051d27
JJ
82112004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8212
8213 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8214 type being greater than sizeof of host's LONGEST. Always use
8215 unpack_long() unless format 'f' chosen.
8216
ccefbec3
EZ
82172004-02-19 Joel Brobecker <brobecker@gnat.com>
8218
8219 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 8220
ccefbec3
EZ
8221 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8222 contains a symbol wich is the best, non-exact match for the given
8223 pc. Update comments.
8224
82252004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8226
2ede629f
EZ
8227 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8228 macro, which was part of the now removed Mach 3 port.
8229 * utils.c (request_quit): Ditto.
8230
567ee972
MK
82312004-02-18 Mark Kettenis <kettenis@gnu.org>
8232
8233 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8234 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8235
50cca7bb
MK
82362004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8237
8238 Committed by Mark Kettenis <kettenis@gnu.org>.
8239
8240 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8241 Define.
8242
226361c4
AC
82432004-02-18 Andrew Cagney <cagney@redhat.com>
8244
8245 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8246 CONFIG_INSTALL and CONFIG_UNINSTALL.
8247 * configure: Re-generate.
8248 * interps.h (INTERP_TUI): Define.
8249 * Makefile.in: Update dependencies.
8250 (TUI): New macro.
8251 (tui-main.o): Specify dependencies.
8252 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8253 * tui/tui-main.c: New file.
8254
49cfa46f
MK
82552004-02-18 Mark Kettenis <kettenis@gnu.org>
8256
e2879ccb
MK
8257 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8258 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8259 dependencies.
8260 * configure.host: Add x86_64-*-openbsd*.
8261 * configure.tgt: Add x86_64-*-openbsd*.
8262 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8263
c43f4bec
MK
8264 * tui/tui.c: Don't include <malloc.h>.
8265
09ae75b6
MK
8266 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8267 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8268 amd64nbsd-tdep.c.
8269
49cfa46f 8270 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 8271 static. Remove extraneous whitespace.
49cfa46f
MK
8272 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8273 static.
8274
05957fdb
JB
82752004-02-17 Jim Blandy <jimb@redhat.com>
8276
8277 * findvar.c (value_from_register): Doc fix.
8278
d0f54f9d
JB
82792004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8280
8281 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 8282
8a1dac83 8283 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
8284 CORE_ADDR as type for selectors. Correct types for GNU run time
8285 message lookup function to use double indirection.
8286 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8287 * objc-lang.h (lookup_child_selector): Adapt prototype.
8288
9cbd5950
JB
8289 * s390-nat.c (SUBOFF): New macro.
8290 (supply_gregset, fill_gregset): Use it to handle debugging
8291 of 32-bit exectuables running under a 64-bit kernel.
8292 * s390-tdep.c: Include "solib-svr4.h".
8293 (s390_svr4_fetch_link_map_offset): New function.
8294 (s390x_svr_fetch_link_map_offset): Likewise.
8295 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8296 * Makefile.in (s390-tdep.o): Update dependencies.
8297
a8c99f38
JB
8298 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8299 "frame-unwind.h".
8300 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8301 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8302 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8303 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8304 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8305 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 8306 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
8307 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8308 (struct frame_extra_info): Remove.
8309 (s390_memset_extra_info): Remove.
f73b1eff
JB
8310 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8311 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8312 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
8313 (is_rse): Renamed to ...
8314 (is_rsy): ... this. Support long displacements.
8315 (is_rxe): Renamed to ...
8316 (is_rxy): ... this. Support long displacements.
8317 (compute_x_addr): Support long displacements.
8318 (struct s390_prologue_data): New data type.
8319 (s390_on_stack): Change API to use struct s390_prologue_data.
8320 (s390_store): Reimplement.
8321 (s390_load): New function.
8322 (s390_get_signal_frame_info): Remove.
8323 (s390_get_frame_info): Remove, replace by ...
8324 (s390_analyze_prolog): ... this new function.
8325 (s390_check_function_end): Remove.
8326 (s390_function_start): Remove.
8327 (s390_frameless_function_invokation): Remove.
8328 (s390_is_sigreturn): Remove.
8329 (s390_init_frame_pc_first): Remove.
8330 (s390_init_frame_extra_info): Remove.
8331 (s390_frame_init_saved_regs): Remove.
8332 (s390_frame_saved_pc_nofix): Remove.
8333 (s390_frame_saved_pc): Remove.
8334 (s390_frame_chain): Remove.
8335 (s390_fp_regnum, s390_read_fp): Remove.
8336 (s390_pop_frame_regular, s390_pop_frame): Remove.
8337 (s390_saved_pc_after_call): Remove.
8338 (s390_skip_prologue): Reimplement.
8339 (s390_in_function_epilogue_p): Support long displacements.
8340 (struct s390_unwind_cache): New data structure.
8341 (s390_frame_unwind_cache): New function.
8342 (s390_prologue_frame_unwind_cache): Likewise.
8343 (s390_backchain_frame_unwind_cache): Likewise.
8344 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8345 (s390_frame_unwind): Define.
8346 (s390_frame_sniffer): New function.
8347 (struct s390_pltstub_unwind_cache): New data structure.
8348 (s390_pltstub_frame_unwind_cache): New function.
8349 (s390_pltstub_frame_this_id): Likewise.
8350 (s390_pltstub_frame_prev_register): Likewise.
8351 (s390_pltstub_frame_unwind): Define.
8352 (s390_pltstub_frame_sniffer): New function.
8353 (struct s390_sigtramp_unwind_cache): New data structure.
8354 (s390_sigtramp_frame_unwind_cache): New function.
8355 (s390_sigtramp_frame_this_id): Likewise.
8356 (s390_sigtramp_frame_prev_register): Likewise.
8357 (s390_sigtramp_frame_unwind): Define.
8358 (s390_sigtramp_frame_sniffer): New function.
8359 (s390_frame_base_address, s390_local_base_address): New functions.
8360 (s390_frame_base): Define.
8361 (s390_unwind_pc, s390_unwind_sp): New function.
8362 (s390_push_dummy_call): Use new frame base location.
8363 (s390_unwind_dummy_id): Likewise.
8364 (s390_gdbarch_init): Remove calls to:
8365 set_gdbarch_frameless_function_invocation,
8366 set_gdbarch_deprecated_init_frame_pc,
8367 set_gdbarch_deprecated_frame_chain,
8368 set_gdbarch_deprecated_frame_init_saved_regs,
8369 set_gdbarch_deprecated_pop_frame,
8370 set_gdbarch_deprecated_init_extra_frame_info,
8371 set_gdbarch_deprecated_init_frame_pc_first,
8372 set_gdbarch_deprecated_target_read_fp,
8373 set_gdbarch_deprecated_frame_saved_pc,
8374 set_gdbarch_deprecated_saved_pc_after_call,
8375 set_gdbarch_deprecated_fp_regnum.
8376 Add calls to:
8377 set_gdbarch_in_solib_call_trampoline,
8378 frame_unwind_append_sniffer,
8379 frame_base_set_default,
8380 set_gdbarch_unwind_pc,
8381 set_gdbarch_unwind_sp.
8382 * Makefile.in (s390-tdep.o): Update dependencies.
8383
b0cf273e
JB
8384 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8385 (S390_STACK_FRAME_OVERHEAD): Remove.
8386 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8387 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8388 (s390_promote_integer_argument): Remove.
8389 (s390_cannot_extract_struct_value_address): Remove.
8390 (s390_use_struct_convention, s390_store_struct_return): Remove.
8391 (s390_extract_return_value, s390_store_return_value): Remove.
8392 (s390_return_value_convention, s390_return_value): New functions.
8393 (is_float_singleton): Handle typedefs.
8a1dac83 8394 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
8395 Remove, replace by ...
8396 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8397 s390_function_arg_integer): ... these new functions.
8398 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8399 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8400 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8401 Fill in tdep->abi.
8402 Remove calls to:
8403 set_gdbarch_deprecated_store_struct_return,
8404 set_gdbarch_deprecated_extract_return_value,
8405 set_gdbarch_deprecated_store_return_value,
8406 set_gdbarch_use_struct_convention,
8407 set_gdbarch_extract_struct_value_address,
8408 set_gdbarch_deprecated_pc_in_call_dummy,
8409 set_gdbarch_deprecated_push_arguments,
8410 set_gdbarch_deprecated_save_dummy_frame_tos,
8411 set_gdbarch_deprecated_push_return_address,
8412 set_gdbarch_deprecated_sizeof_call_dummy_words,
8413 set_gdbarch_deprecated_call_dummy_words,
8414 set_gdbarch_deprecated_dummy_write_sp.
8415 Add calls to:
8416 set_gdbarch_push_dummy_call,
8417 set_gdbarch_unwind_dummy_id,
8418 set_gdbarch_return_value.
8a1dac83 8419
e1457d83
JB
8420 * config/s390/nm-linux.h: Update comments.
8421 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8422 (STOPPED_BY_WATCHPOINT): Redefine.
8423 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8424 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8425 (s390_stopped_by_watchpoint): Likewise.
8426 (watch_area_cnt): Remove.
8427 * s390-nat.c: Update comments.
8428 (watch_area): Remove typedef.
8429 Global replace watch_area by struct watch_area.
8430 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 8431 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
8432 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8433 (s390_fix_watch_points): Remove pid argument,
8434 use s390_inferior_tid. Recompute area spanned by watchpoints.
8435 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8436 argument. Reimplement.
8437
d0f54f9d
JB
8438 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8439 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8440 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 8441 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
8442 core-regset.o.
8443 * config/s390/s390x.mt: Remove.
8444 * config/s390/tm-s390.h: Remove.
8445 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8446 (TARGET_ELF64): Remove.
8447 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8448 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8449 s390*-*-* case; always set gdb_target to s390.
8450 * regformats/reg-s390.dat: Remove control registers.
8451 * regformats/reg-s390x.dat: Likewise.
8452 * s390-tdep.h: New file.
8a1dac83 8453 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
8454 Include "inferior.h" and "s390-tdep.h".
8455 Remove private definition of offsetof.
8456 (s390_register_u_addr): Remove.
8457 (regmap_gregset, regmap_fpregset): Define.
8458 (supply_gregset, fill_gregset): Reimplement.
8459 (supply_fpregset, fill_fpregset): Likewise.
8460 (s390_inferior_tid): New function.
8461 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8462 (fetch_inferior_registers, store_inferior_registers): Likewise.
8463 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8464 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8465 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8466 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8467 (struct gdbarch_tdep): Define.
8468 (struct s390_register_info): Define.
8469 (s390_register_info): New variable.
8470 (s390_register_name): Reimplement.
8471 (s390_register_type): New function.
8472 (s390_register_raw_size, s390x_register_raw_size): Remove.
8473 (s390_cannot_fetch_register): Remove.
8474 (s390_register_byte): Remove.
8475 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8476 (s390_dwarf_regmap): New variable.
8477 (s390_dwarf_reg_to_regnum): New function.
8478 (s390_stab_reg_to_regnum): Remove.
8479 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8480 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8481 (s390_convert_register_p): Likewise.
8482 (s390_register_to_value, s390_value_to_register): Likewise.
8483 (s390_register_reggroup_p): Likewise.
8484 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8485 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8486 (s390_supply_regset, s390_regset_from_core_section): New functions.
8487 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8488 (S390_FPR_SIZE): Likewise.
8489 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8490 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8491 (S390_NUM_GPRS): Move here from tm-s390.h.
8492 (S390_NUM_FPRS): Likewise.
8493 (s390_in_function_epilogue_p): New function.
8494 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8495 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8496 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8497 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8498 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8499 Remove calls to:
8500 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
8501 set_gdbarch_deprecated_max_register_virtual_size,
8502 set_gdbarch_deprecated_register_byte,
d0f54f9d 8503 set_gdbarch_cannot_fetch_register,
8a1dac83 8504 set_gdbarch_cannot_store_register,
d0f54f9d
JB
8505 set_gdbarch_deprecated_register_size,
8506 set_gdbarch_deprecated_register_raw_size,
8507 set_gdbarch_deprecated_register_virtual_size,
8508 set_gdbarch_deprecated_register_virtual_type,
8509 set_gdbarch_deprecated_register_bytes.
8510 Add calls to:
8511 set_gdbarch_num_pseudo_regs,
8512 set_gdbarch_register_type,
8513 set_gdbarch_convert_register_p,
8514 set_gdbarch_register_to_value,
8515 set_gdbarch_value_to_register,
8516 set_gdbarch_register_reggroup_p,
8517 set_gdbarch_regset_from_core_section,
8518 set_gdbarch_pseudo_register_read,
8519 set_gdbarch_pseudo_register_write,
8520 set_gdbarch_in_function_epilogue_p.
8521 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8522 (s390_tdep_h): New variable.
8523
8cfe231d
JB
85242004-02-17 Jim Blandy <jimb@redhat.com>
8525
4589a601
JB
8526 * findvar.c (value_from_register): If the type has no length, just
8527 return an acceptable value --- don't report an internal error.
8528
8cfe231d
JB
8529 * stabsread.c (read_type): If we find any type numbers that are
8530 forward references, complain if the references aren't resolved by
8531 the time we're finished reading.
8532 (cleanup_undefined_types): Make error message more appropriate for
8533 a complaint.
8534
5bf0017e
EZ
85352004-02-17 Elena Zannoni <ezannoni@redhat.com>
8536
9d62932d
EZ
8537 * Makefile.in (defs_h): Remove dependency on progress_h.
8538 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8539 progress.h.
8540 * main.c (captured_main): Delete use of START_PROGRESS and
8541 END_PROGRESS.
8542
85432004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8544
5bf0017e
EZ
8545 * objfiles.c (terminate_minimal_symbol_table): Add back
8546 initialization of MSYMBOL_TYPE.
8547
9fc9f5e2
AC
85482004-02-17 David Mosberger <davidm@hpl.hp.com>
8549
8550 Committed by Andrew Cagney.
8551 * Makefile.in (ia64_tdep_h): New macro.
8552 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8553 (ia64-tdep.o): Likewise.
8554 * ia64-tdep.h: New file.
8555 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8556 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8557 (ia64_aix_sigcontext_register_address): Likewise.
8558 (ia64_linux_getunwind_table): Delete declaration.
8559 * ia64-linux-tdep.c: Likewise.
8560
76cd2bd9
CV
85612004-02-17 Corinna Vinschen <vinschen@redhat.com>
8562
8563 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8564 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8565 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8566
634aa483
AC
85672004-02-17 Andrew Cagney <cagney@redhat.com>
8568
8569 * symtab.c (skip_prologue_using_sal): New function.
8570 * symtab.h (skip_prologue_using_sal): Declare.
8571 * frv-tdep.c: Include "symtab.h".
8572 (skip_prologue_using_sal): Delete function.
8573 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8574 * rs6000-tdep.c (refine_prologue_limit): Mention
8575 skip_prologue_using_sal.
8576 * ia64-tdep.c (refine_prologue_limit): Ditto.
8577 * Makefile.in: Update dependencies.
8578
85792004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 8580
39ce7b3f
AC
8581 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8582 START_INFERIOR_TRAPS_EXPECTED.
8583 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8584 START_INFERIOR_TRAPS_EXPECTED.
8585 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8586 Delete macro.
8587 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8588 macro, moved to "nm-osf.h". Update copyright.
8589 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8590 update copyright.
8591
19772a2c
AC
8592 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8593 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8594 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8595 frameless_look_for_prologue.
8596 * frame.h (legacy_frameless_look_for_prologue): Rename
8597 frameless_look_for_prologue.
8598 * gdbarch.h, gdbarch.c: Re-generate.
8599 * sh64-tdep.c (sh64_gdbarch_init): Update.
8600 * sh-tdep.c (sh_gdbarch_init): Update.
8601 * s390-tdep.c (s390_gdbarch_init): Update.
8602 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8603 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8604 * m68k-tdep.c (m68k_gdbarch_init): Update.
8605 (delta68_frame_args_address): Update.
8606 * m32r-tdep.c (m32r_gdbarch_init): Update.
8607 * hppa-tdep.c (hppa_gdbarch_init): Update.
8608 * h8300-tdep.c (h8300_gdbarch_init): Update.
8609 * frv-tdep.c (frv_gdbarch_init): Update.
8610 (frv_frameless_function_invocation): Update.
8611 * cris-tdep.c (cris_gdbarch_init): Update.
8612 (cris_frameless_function_invocation): Update.
8613 * avr-tdep.c (avr_gdbarch_init): Update.
8614 * arm-tdep.c (arm_gdbarch_init): Update.
8615 * stack.c (frame_info): Update, call predicate.
8616 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8617 * frame.c (legacy_get_prev_frame): Update, call predicate..
8618 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8619 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8620 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8621 invocation.
8622 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8623 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8624 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
8625
8626 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8627 function.
8628
7dcaac91
DJ
86292004-02-16 Daniel Jacobowitz <drow@mvista.com>
8630
8631 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8632 initializations.
8633
88289b6e
AC
86342004-02-16 Andrew Cagney <cagney@redhat.com>
8635
8636 * tui/tui-windata.c: Include "gdb_string.h".
8637 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8638 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8639 * Makefile.in: Update dependencies.
8640
9f976b41
DJ
86412004-02-16 Daniel Jacobowitz <drow@mvista.com>
8642
8643 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8644 * infrun.c: Include "gdb_assert.h".
8645 (singlestep_ptid, saved_singlestep_ptid)
8646 (stepping_past_singlestep_breakpoint): New variables.
8647 (resume): Set singlestep_ptid. Check for singlestep thread
8648 hop.
8649 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8650 (handle_inferior_event): Handle singlestep thread hop.
8651
c324d747
AC
86522004-02-16 Andrew Cagney <cagney@redhat.com>
8653
f090b9b1
AC
8654 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8655 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8656 (dwarf2_frame_init_reg): Ditto.
8657
fd33e6cb
AC
8658 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8659 suggested by Joshua Neuheisel
8660
c324d747
AC
8661 * configure.in: Always check for curses, including pdcurses.
8662 Warn, instead of error, when no curses are found. Enable TUI when
8663 curses is available.
8664 * configure: Re-generate.
8665
b66ba949
CV
86662004-02-16 Corinna Vinschen <vinschen@redhat.com>
8667
8668 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8669 sh_sh4_register_convert_to_virtual.
8670 (sh_register_convert_to_raw): Rename from
8671 sh_sh4_register_convert_to_raw.
8672 (sh_pseudo_register_read): Accomodate above name change.
8673 (sh_pseudo_register_write): Ditto.
8674
b58cbbf2
CV
86752004-02-16 Corinna Vinschen <vinschen@redhat.com>
8676
8677 * sh-tdep.c (sh_generic_register_name): Remove.
8678 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8679
5929a910
AC
86802004-02-15 Andrew Cagney <cagney@redhat.com>
8681
4566dfcf
AC
8682 * configure.in (build_warnings): Add -Wunused-function.
8683 * configure: Re-generate.
8684
db11ed55
AC
8685 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8686 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8687
46ac7a5d
AC
8688 * procfs.c (procfs_init_inferior): Assume that
8689 START_INFERIOR_TRAPS_EXPECTED is defined.
8690 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8691 * config/ns32k/tm-nbsd.h: Delete file,
8692 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8693
ba801595
AC
8694 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8695 * config/vax/tm-vax.h: Delete file.
8696
5929a910
AC
8697 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8698 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8699 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8700 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8701 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8702 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8703 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8704
8f22cb90
MK
87052004-02-15 Mark Kettenis <kettenis@gnu.org>
8706
8707 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8708 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8709 (struct dwarf2_frame_ops): New.
8710 (dwarf2_frame_default_init_reg): New function, based on
8711 dwarf2_frame_init_reg.
8712 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8713 (dwarf2_frame_init_reg): Call architecture-specific function.
8714 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8715 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8716 instead of dwarf2_frame_data.
8717 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8718 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8719
8132723e
AC
87202004-02-15 Andrew Cagney <cagney@redhat.com>
8721
046a4708
AC
8722 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8723 register_gdbarch_swap.
8724 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8725 * f-lang.c (_initialize_f_language): Update, use
8726 DEPRECATED_REGISTER_GDBARCH_SWAP.
8727 * remote.c (_initialize_remote): Ditto.
8728 * regcache.c (_initialize_regcache): Ditto.
8729 * parse.c (_initialize_parse): Ditto.
8730 * infrun.c (_initialize_infrun): Ditto.
8731 * mi/mi-main.c (_initialize_mi_main): Ditto.
8732 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 8733
549c1eea
AC
8734 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8735 poking .cacheable directly.
8736 * symfile.c (symfile_bfd_open): Ditto.
8737
0c0b39de
AC
8738 * Makefile.in: Update all dependencies.
8739
8132723e
AC
8740 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
8741 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
8742 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
8743 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
8744 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 8745
b9d26eb9
AC
87462004-02-14 Andrew Cagney <cagney@redhat.com>
8747
8e1f669a
AC
8748 * arch-utils.c (legacy_convert_register_p): Check
8749 DEPRECATED_REGISTER_CONVERTIBLE_P.
8750 * findvar.c (value_of_register): Ditto.
8751
cd0bfa36
AC
8752 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
8753 * gdbarch.h, gdbarch.c: Re-generate.
8754 * arch-utils.c (deprecated_register_convertible_not): Delete.
8755 * arch-utils.h (deprecated_register_convertible_not): Delete.
8756 * mi/mi-main.c (get_register): Update. Update copyright.
8757 * infcmd.c (default_print_registers_info): Update.
8758
b9d26eb9
AC
8759 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8760 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
8761 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 8762 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
8763 * frame.c (deprecated_get_next_frame_hack): Delete function.
8764 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
8765 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8766 Update.
8767 * infcall.c (call_function_by_hand): Update.
8768
9ab9195f
EZ
87692004-02-14 Elena Zannoni <ezannoni@redhat.com>
8770
8771 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 8772 from here...
9ab9195f
EZ
8773 * objfiles.c (init_entry_point_info, entry_point_address):..to
8774 here.
8775 * symfile.h (init_entry_point_info, entry_point_address): Remove
8776 prototypes.
8777 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 8778 prototypes.
9ab9195f
EZ
8779 * cris-tdep.c: Remove include of symfile.h. Add include of
8780 objfiles.h.
8781 * infcall.c: Ditto.
8782 * mcore-tdep.c: Ditto.
8783 * mn10300-tdep.c: Ditto.
8784 * sh64-tdep.c: Ditto.
8785 * v850-tdep.c: Ditto.
8786 * arm-tdep.c: Remove include of symfile.h.
8787 * blockframe.c: Ditto.
8788 * coffread.c: Ditto.
8789 * dbxread.c: Ditto.
8790 * dwarf2read.c: Ditto.
8791 * dwarfread.c: Ditto.
8a1dac83 8792 * frv-tdep.c: Ditto.
9ab9195f
EZ
8793 * ia64-tdep.c: Ditto.
8794 * mdebugread.c: Ditto.
8795 * mipsread.c: Ditto.
8a1dac83 8796 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
8797 * s390-tdep.c: Ditto.
8798 * sh-tdep.c: Ditto.
8a1dac83 8799 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
8800 * gdbarch.sh: Remove include of symfile.h.
8801 * gdbarch.c: Regenerate.
8802 * solib-irix.c (enable_break): Use entry_point_address().
8803 Add comment about include file.
8804 * xcoffread.c: Add comment about include file.
8a1dac83
RM
8805 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
8806 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
8807 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
8808 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
8809 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
8810
c4c5b7ba
AC
88112004-02-13 Andrew Cagney <cagney@redhat.com>
8812
8813 * corelow.c (core_xfer_partial): Use "struct bfd_section".
8814 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
8815 copyright.
8816 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
8817
3e7879de
FF
88182004-02-12 Fred Fish <fnf@redhat.com>
8819
8820 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
8821 set_gdbarch_store_return_value.
8822
6a7760b6
AC
88232004-02-12 Andrew Cagney <cagney@redhat.com>
8824
8825 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
8826 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
8827 (interrupt_query): Ditto.
8828 (ofunc): Delete unused variable.
8829 * cris-tdep.c (cris_abi): Delete unused function.
8830 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
8831 (cris_get_wide_opcode, cris_get_short_size): Ditto.
8832 (cris_get_asr_quick_shift_steps): Ditto.
8833 (cris_skip_prologue_frameless_p): Ditto.
8834 * arm-tdep.c (arm_push_return_address): Delete unused function.
8835 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
8836 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
8837 * s390-tdep.c (s390_function_start): Delete unused function.
8838
31687c3c
AC
88392004-02-12 Andrew Cagney <cagney@redhat.com>
8840
8841 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
8842 gdbarch.h, gdbarch.c: Re-generate.
8843 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
8844 to generic_prologue_frameless_p.
8845 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
8846 * arch-utils.c (generic_prologue_frameless_p): Delete function.
8847
6de918a6
DJ
88482004-02-11 Daniel Jacobowitz <drow@mvista.com>
8849
8850 * mips-linux-tdep.c: Include "frame.h".
8851 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
8852 (mips_linux_skip_resolver): New functions.
8853 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
8854 and set_gdbarch_in_solib_call_trampoline.
8855 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
8856 to after set_gdbarch_in_solib_return_trampoline. Only set the
8857 solib hooks to mips16 functions if the OS ABI is unknown.
8858 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
8859 including "config/tm-linux.h".
8860 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
8861 * Makefile.in (mips-linux-tdep.o): Update.
8862
87b3ede8
DC
88632004-02-11 David Carlton <carlton@kealia.com>
8864
8865 * linespec.c (decode_compound): Only look for a class symbol when
8866 considering all but the rightmost component.
8867
5979bc46
AC
88682004-02-11 Andrew Cagney <cagney@redhat.com>
8869
8870 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
8871 abi code are are separatly grouped.
8872
5867a2fb
AC
88732004-02-11 Andrew Cagney <cagney@redhat.com>
8874
8875 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
8876 * gdbarch.h, gdbarch.c: Re-generate.
8877 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8878 * v850-tdep.c (v850_gdbarch_init): Update.
8879 * sh64-tdep.c (sh64_gdbarch_init): Update.
8880 * sh-tdep.c (sh_gdbarch_init): Update.
8881 * s390-tdep.c (s390_gdbarch_init): Update.
8882 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8883 * mips-tdep.c (mips_gdbarch_init): Update.
8884 * mcore-tdep.c (mcore_gdbarch_init): Update.
8885 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8886 * m32r-tdep.c (m32r_gdbarch_init): Update.
8887 * ia64-tdep.c (ia64_gdbarch_init): Update.
8888 * hppa-tdep.c (hppa_gdbarch_init): Update.
8889 * h8300-tdep.c (h8300_gdbarch_init): Update.
8890 * frv-tdep.c (frv_gdbarch_init): Update.
8891 * d10v-tdep.c (d10v_gdbarch_init): Update.
8892 * cris-tdep.c (cris_gdbarch_init): Update.
8893 * avr-tdep.c (avr_gdbarch_init): Update.
8894 * arm-tdep.c (arm_gdbarch_init): Update.
8895 * alpha-tdep.c (alpha_gdbarch_init): Update.
8896
026a72f8
CV
88972004-02-11 Corinna Vinschen <vinschen@redhat.com>
8898
8899 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
8900 comma.
8901 (sh_sh4al_dsp_register_name): Ditto.
8902
3903d437
AC
89032004-02-10 Andrew Cagney <cagney@redhat.com>
8904
8905 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
8906 (mips_init_frame_pc_first): Delete function.
8907 (mips_frame_saved_pc): Delete function.
8908 (mips_frame_chain): Delete function.
8909 (mips_init_extra_frame_info): Delete function.
8910 (mips_xfer_register): Delete unused variable "reg".
8911 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
8912 (mips_n32n64_return_value): Delete unused variable "reg".
8913 (mips_n32n64_return_value): Delete unused variable "pos".
8914 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
8915 (mips_o32_return_value): Delete unused variable "pos".
8916 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
8917 (mips_print_fp_register): Delete unused variable "namelen"
8918 (mips_print_fp_register): Delete unused variable "flt2"
8919 (get_frame_pointer): Delete function.
8920 (cached_proc_desc): Delete static variable.
8921 (mips_pop_frame): Delete function.
8922 (mips_find_saved_regs): Delete function.
8923 (mips_get_saved_register): Delete function.
8924 (mips_saved_pc_after_call): Delete function.
8925 (SIGFRAME_BASE): Delete macro.
8926 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
8927 (SIGFRAME_PC_OFF): Delete macro.
8928 (SIGFRAME_REGSAVE_OFF): Delete macro.
8929 (mips_dump_tdep): Do not print deleted macro definitions.
8930
b9fb98bd
AC
89312004-02-10 Andrew Cagney <cagney@redhat.com>
8932
8933 * Makefile.in (SFILES): Remove explictly listed tui files.
8934 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
8935
78ced177 89362004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 8937
78ced177
JJ
8938 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
8939 to use paddr functions to format ia64 addresses and long values.
8940 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
8941 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
8942 (get_kernel_table, ia64_find_proc_info_x): Ditto.
8943 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
8944 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
8945
6a83354a
AC
89462004-02-10 Andrew Cagney <cagney@redhat.com>
8947
8948 * defs.h: Do not include "tui.h".
8949 * gdb_curses.h: New file.
8950 * tui/tui-hooks.h: New file.
8951 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
8952 (tui_install_hooks, tui_remove_hooks): Delete declarations.
8953 (tui_initialize_io): Delete declaration.
8954 (tui_initialize_readline: Delete redundant declaration.
8955 (struct tui_point): Delete definition.
8956 * tui/tui-data.h (struct tui_point): Define.
8957 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
8958 * utils.c: Include "tui/tui.h".
8959 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
8960 * printcmd.c [TUI]: Include "tui/tui.h".
8961 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
8962 * tui/tui-command.c: Include "gdb_curses.h".
8963 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
8964 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
8965 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
8966 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
8967 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
8968 * Makefile.in: Update all dependencies.
8969 (tui_hooks_h, gdb_curses_h): Define.
8970 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
8971
997470ef
EZ
89722004-02-10 Elena Zannoni <ezannoni@redhat.com>
8973
8974 * objfiles.h (struct objfile): Remove unused fields auxf1 and
8975 auxf2. Add comments about some other rarely used fields.
8976
4ff2cc4d
AC
89772004-02-10 Andrew Cagney <cagney@redhat.com>
8978
8979 * Makefile.in (init.c): Fix script removing duplicates. Problem
8980 reported by Peter Schauer.
8981
1ab21617
EZ
89822004-02-09 Elena Zannoni <ezannoni@redhat.com>
8983
8984 * bcache.c (bcache_xmalloc): Use obstack_init instead of
8985 obstack_specify_allocation.
8986 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 8987 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
8988 (allocate_rt_common_objfile): Ditto.
8989 * symfile.c (reread_symbols): Ditto.
8990 * gdb_obstack.h: Add comment.
8991
17763fd9
EZ
89922004-02-09 Elena Zannoni <ezannoni@redhat.com>
8993
8994 * linespec.c (decode_line_1, locate_first_half)
8995 (decode_compound, lookup_prefix_sym): Update comments. Delete old
8996 commented out code.
8997
ec5cdd75
DJ
89982004-02-09 Daniel Jacobowitz <drow@mvista.com>
8999
9000 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9001 obstack_free.
9002
43b54b88
AC
90032004-02-09 Andrew Cagney <cagney@redhat.com>
9004
9005 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9006 fails, try find_pc_section. Fix PR c++/1267.
9007 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9008 instead of find_pc_mapped_section.
9009 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9010 not default to the section containing PC. Fix PR symtab/1519.
9011
edfae063
AC
90122004-02-09 Andrew Cagney <cagney@redhat.com>
9013
9014 * Makefile.in (mips-tdep.o): Update dependencies.
9015 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9016 "trad-frame.h".
9017 (mips_unwind_pc): Return the pseudo PC register.
9018 (mips_unwind_dummy_id): New function.
9019 (mips16_fetch_instruction): New function.
9020 (mips32_fetch_instruction): New function.
9021 (struct mips_frame_cache): Define.
9022 (mips_mdebug_frame_cache): New function.
9023 (mips_mdebug_frame_this_id): New function.
9024 (mips_mdebug_frame_prev_register): New function.
9025 (mips_mdebug_frame_unwind): Define.
9026 (mips_mdebug_frame_sniffer): New function.
9027 (mips_mdebug_frame_base_address): New function.
9028 (mips_mdebug_frame_base): Define.
9029 (mips_mdebug_frame_base_sniffer): New function.
9030 (mips_gdbarch_init): Append unwind and base sniffers. Set
9031 unwind_dummy_id.
9032
defc864c
AC
90332004-02-08 Andrew Cagney <cagney@redhat.com>
9034
6764ddad
AC
9035 * frame.c: Print both the register number and name.
9036
defc864c
AC
9037 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9038 and a sed into a single sed. Make .c and .o patterns more robust.
9039 (OBS): Delete.
9040 (INIT_FILES): Replace OBS with COMMON_OBS.
9041 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9042
645d6d10
MK
90432004-02-08 Mark Kettenis <kettenis@gnu.org>
9044
9045 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9046 the PT_WCOOKIE request.
9047
23e3c3fc
AC
90482004-02-08 Andrew Cagney <cagney@redhat.com>
9049
58dfe9ff
AC
9050 * mips-tdep.c (mips_unwind_pc): New function.
9051 (mips_gdbarch_init): Set mips_unwind_pc.
9052
1152e35e
AC
9053 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9054 (get_frame_id): Allow the UNKNOWN_FRAME.
9055 (frame_register_unwind, get_frame_type): Ditto.
9056
31b75dbf
AC
9057 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9058 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9059 unwind_dummy_id indicates a legacy frame.
9060
3483b318
AC
9061 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9062 * configure: Re-generate.
9063
23e3c3fc
AC
9064 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9065 methods.
9066
33f8ca73
AC
90672004-02-08 Andrew Cagney <cagney@redhat.com>
9068
9069 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9070 makefile macro.
9071 * configure: Re-generate.
9072 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9073 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9074 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9075 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9076 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9077 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9078 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9079 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9080 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9081 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9082
6ba8e26f 90832004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 9084
20d286a5
AC
9085 * Makefile.in: Update all dependencies.
9086
d836ee13
AC
9087 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9088 * configure: Re-generate.
9089 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9090 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9091 (COMMON_OBS): Add "main.o" and "annotate.o".
9092 (ANNOTATE_OBS): Delete.
9093 (OBS): Remove ANNOTATE_OBS.
9094 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9095 CONFIG_INITS.
9096 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9097 against CONFIG_OBS and "main.o".
9098 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9099 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9100
d02c80cd
AC
9101 * tui/tui-command.c: Include "gdb_string.h", delete register
9102 attribute, use ISO-C function signatures.
9103 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9104 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9105 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9106 * tui/tui.c: Ditto.
6ba8e26f
AC
9107
9108 * tui/tui-command.c: Change variable and function names to lower
9109 case.
9110 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9111 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9112 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9113 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9114 * tui/tui-winsource.c, tui/tui.c: Ditto.
9115
4a146b47
EZ
91162004-02-07 Elena Zannoni <ezannoni@redhat.com>
9117
9118 * buildsym.c (free_pending_blocks, finish_block)
9119 (record_pending_block, make_blockvector, end_symtab): Replace
9120 symbol_obstack with objfile_obstack.
8a1dac83 9121 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 9122 (coff_read_enum_type): Ditto.
8a1dac83 9123 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 9124 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 9125 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
9126 (dwarf2_symbol_mark_computed): Ditto.
9127 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9128 * elfread.c (elf_symtab_read): Ditto.
9129 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9130 (hpread_read_enum_type, hpread_read_function_type)
9131 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9132 Ditto.
8a1dac83 9133 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 9134 (java_link_class_type): Ditto.
8a1dac83 9135 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
9136 (new_symbol): Ditto.
9137 * minsyms.c (install_minimal_symbols): Ditto.
9138 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9139 (terminate_minimal_symbol_table): Replace symbol_obstack with
9140 objfile_obstack.
9141 (free_objfile): Remove freeing of symbol_obstack.
9142 * objfiles.h: Remove symbol_obstack field.
9143 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9144 objfile_obstack.
9145 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9146 symbol_obstack.
9147 (solib_add_common_symbols): Replace symbol_obstack with
9148 objfile_obstack.
9149 * somsolib.c (som_solib_add): Ditto.
9150 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9151 (common_block_start, common_block_end): Ditto.
9152 * symfile.c (reread_symbols): Remove freeing and init of
9153 symbol_obstack.
9154 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9155 * symfile.h: Update comment.
9156 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9157 stats printing.
9158 * symtab.c (symbol_set_names): Replace symbol_obstack with
9159 objfile_obstack.
9160 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9161 Update comments.
9162 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9163 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9164 objfile_obstack.
9165
6d012f14
AC
91662004-02-07 Andrew Cagney <cagney@redhat.com>
9167
9168 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9169 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9170 fields and variables.
9171 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9172 (m_beInvisible): Delete macro.
9173 * tui/tui-data.h: Fix case case fields and variables.
9174 (m_genWinPtrIsNull): Delete macro.
9175 (tui_win_list): Rename winList.
9176 (TUI_SRC_WIN): Rename srcWin.
9177 (TUI_DISASM_WIN): Rename disassemWin.
9178 (TUI_DATA_WIN): Rename dataWin.
9179 (TUI_CMD_WIN): Rename cmdWin.
9180 (m_genWinPtrNotNull): Delete macro.
9181 (m_winPtrIsNull): Delete macro.
9182 (m_winPtrNotNull): Delete macro.
9183 (tui_win_is_source_type): Replace m_winIsSourceType
9184 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9185 (tui_win_has_locator): Replace m_hasLocator.
9186 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9187 m_setWinHighlightOff.
9188 * tui/tui-data.c: Update references.
9189 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9190 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9191 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9192 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9193 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9194 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9195 * tui/tui-winsource.c, tui/tui.c: Ditto.
9196
7d34766b
MK
91972004-02-07 Mark Kettenis <kettenis@gnu.org>
9198
1c800673
MK
9199 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9200 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9201 StackGhost.
9202
7d34766b
MK
9203 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9204 variable `i6' to `i7'.
9205 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9206
22940a24
AC
92072004-02-07 Andrew Cagney <cagney@redhat.com>
9208
9209 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9210 (TuiPoint, TuiPointPtr): Ditto.
9211 (TuiStatus, TuiStatusPtr): Ditto.
9212 (TuiWinType, TuiWinTypePtr): Ditto.
9213 (struct tui_point): Rename _TuiPoint.
9214 (tui_get_low_disassembly_address): Rename
9215 tuiGetLowDisassemblyAddress.
9216 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9217 (tuiFree): Delete declaration.
9218 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9219 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9220 * tui/tui.c (tuiFree): Delete function.
9221 * cli/cli-cmds.c (disassemble_command): Update references.
9222 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9223 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9224 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9225 * tui/tui-winsource.c: Ditto.
9226
8b92e4d5
EZ
92272004-02-07 Elena Zannoni <ezannoni@redhat.com>
9228
9229 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9230 coffstab_build_psymtabs, elfstab_build_psymtabs)
9231 (stabsect_build_psymtabs): Replace psymbol_obstack with
9232 objfile_obstack.
9233 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9234 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9235 Ditto.
9236 * dwarfread.c (scan_compilation_units): Ditto.
9237 * elfread.c (elfstab_offset_sections): Ditto.
9238 * hppa-tdep.c (read_unwind_info): Ditto.
9239 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9240 (hpread_end_psymtab): Ditto.
9241 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9242 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9243 Ditto.
9244 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 9245 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
9246 (build_objfile_section_table): Ditto.
9247 (allocate_objfile): Remove init of psymbol_obstack.
9248 (free_objfile): Remove freeing of psymbol_obstack.
9249 * objfiles.h (struct objfile): Remove field
9250 psymbol_obstack. Update comments.
9251 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9252 psymbol_obstack with objfile_obstack.
9253 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9254 psymbol_obstack.
9255 * somread.c (som_symfile_offsets, init_import_symbols)
9256 (init_export_symbols): Replace psymbol_obstack with
9257 objfile_obstack.
9258 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9259 * symfile.c (default_symfile_offsets, syms_from_objfile)
9260 (reread_symbols): Remove freeing and init of psymbol_obstack.
9261 (cashier_psymtab): Update comment.
9262 * symmisc.c (print_objfile_statistics): Don't report stats for
9263 psymbol obstack.
9264 * symtab.h (struct general_symbol_info, struct partial_symtab):
9265 Update comments.
9266 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9267 (xcoff_symfile_offsets): Replace psymbol_obstack with
9268 objfile_obstack.
9269
b99607ea
EZ
92702004-02-07 Elena Zannoni <ezannoni@redhat.com>
9271
9272 * objfiles.h (struct objfile): Add objfile_obstack field.
9273 Remove type_obstack field.
9274
9275 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9276 read_structure_scope read_enumeration, new_symbol): Replace
9277 type_obstack with objfile_obstack.
9278 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 9279 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
9280 (lookup_fundamental_type): Ditto.
9281 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
9282 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9283 (hpread_read_doc_function_type, hpread_read_struct_type)
9284 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 9285 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 9286 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
9287 (java_link_class_type): Ditto.
9288 * mdebugread.c (parse_type): Ditto.
9289 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9290 * solib-sunos.c (solib_add_common_symbols): Ditto.
9291 * stabsread.c (define_symbol, read_type, read_member_functions,
9292 read_cpp_abbrev, read_one_struct_field): Ditto.
9293 * symfile.c (reread_symbols): Ditto.
9294 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 9295
2a8854a7
AC
92962004-02-07 Andrew Cagney <cagney@redhat.com>
9297
9298 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9299 (tui_exec_info_content): Rename TuiExecInfoContent.
9300 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9301 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9302 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9303 (TuiList, TuiListPtr): Ditto.
9304 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9305 (TuiDataType, TuiDataTypePtr): Ditto.
9306 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9307 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9308 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9309 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9310 (TuiDataElement, TuiDataElementPtr): Ditto.
9311 (TuiWinElement, TuiWinElementPtr): Ditto.
9312 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9313 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9314 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9315 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9316 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9317 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9318 * tui/tui-command.c, tui/tui-data.c: Update references.
9319 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9320 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9321 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9322 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 9323
05cbe71a
MK
93242004-02-07 Mark Kettenis <kettenis@gnu.org>
9325
9326 * dwarf2-frame.h: Update copyright.
9327 (enum dwarf2_frame_reg_rule): New.
9328 (struct dwarf2_frame_state_reg): New.
9329 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9330 * dwarf2-frame.c: Update copyright.
9331 (enum dwarf2_reg_rule): Remove.
9332 (struct dwarf2_frame_state): Remove defenition of `struct
9333 dwarf2_frame_state_reg'.
9334 (read_reg): Call get_frame_arch to get the architecture instead of
9335 using CURRENT_GDBARCH.
9336 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9337 DWARF2_FRAME_.
9338 (dwarf2_frame_init_reg): New function.
9339 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9340 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9341 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9342 tags with DWARF2_FRAME_.
9343 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9344 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9345 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9346
ec7d9e56
AC
93472004-02-06 Andrew Cagney <cagney@redhat.com>
9348
dd1abb8c
AC
9349 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9350 (enum tui_data_type): Rename _TuiDataType.
9351 (struct tui_layout_def): Rename _TuiLayoutDef.
9352 (struct tui_source_element): Rename _TuiSourceElement.
9353 (struct tui_data_element): Rename _TuiDataElement.
9354 (struct tui_command_element): Rename _TuiCommandElement.
9355 (struct tui_locator_element): Rename _TuiLocatorElement.
9356 (union tui_which_element): Define.
9357 (struct tui_win_element): Rename _TuiWinElement.
9358 (struct tui_data_info): Rename _TuiDataInfo.
9359 (struct tui_source_info): Rename _TuiSourceInfo.
9360 (struct tui_command_info): Rename _TuiCommandInfo.
9361 (tui_initialize_static_data): Rename initializeStaticData.
9362 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9363 (tui_alloc_win_info): Rename allocWinInfo.
9364 (tui_init_generic_part): Rename initGenericPart.
9365 (tui_init_win_info): Rename initWinInfo.
9366 (tui_alloc_content): Rename allocContent.
9367 (tui_add_content_elements): Rename addContentElements.
9368 (tui_init_content_element): Rename initContentElement.
9369 (tui_free_window): Rename freeWindow.
9370 (tui_free_win_content): Rename freeWinContent.
9371 (tui_free_data_content): Rename freeDataContent.
9372 (tui_free_all_source_wins_content): Rename
9373 freeAllSourceWinsContent.
9374 (tui_del_window): Rename tuiDelWindow.
9375 (tui_del_data_windows): Rename tuiDelDataWindows.
9376 (tui_partial_win_by_name): Rename partialWinByName.
9377 (tui_win_name): Rename winName.
9378 (tui_current_layout): Rename currentLayout.
9379 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9380 (tui_term_height): Rename termHeight.
9381 (tui_set_term_height_to): Rename setTermHeightTo.
9382 (tui_term_width): Rename termWidth.
9383 (tui_set_term_width_to): Rename setTermWidthTo.
9384 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9385 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9386 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9387 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9388 (tui_source_windows): Rename sourceWindows.
9389 (tui_clear_source_windows): Rename clearSourceWindows.
9390 (tui_clear_source_windows_detail): Rename
9391 clearSourceWindowsDetail.
9392 (tui_clear_win_detail): Rename clearWinDetail.
9393 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9394 (tui_default_tab_len): Rename tuiDefaultTabLen.
9395 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9396 (tui_win_with_focus): Rename tuiWinWithFocus.
9397 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9398 (tui_layout_def): Rename tuiLayoutDef.
9399 (tui_win_resized): Rename tuiWinResized.
9400 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9401 (tui_next_win): Rename tuiNextWin.
9402 (tui_prev_win): Rename tuiPrevWin.
9403 (tui_add_to_source_windows): Rename addToSourceWindows.
9404 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9405 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9406 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9407 * tui/tui.c, tui/tui-data.c: Ditto.
9408 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9409 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9410
a358af15
AC
9411 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9412 (struct symtab): Declare.
9413 (tui_set_source_content): Rename tuiSetSourceContent.
9414 (tui_show_symtab_source): Rename tuiShowSource.
9415 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9416 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9417 * tui/tui-source.c: Update copyright. Update references.
9418 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9419 * tui/tui-stack.c: Update references.
9420
a21fcd8f
AC
9421 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9422 (struct tui_win_info): Declare.
9423 (tui_scroll_forward): Rename tuiScrollForward.
9424 (tui_scroll_backward): Rename tuiScrollBackward.
9425 (tui_scroll_left): Rename tuiScrollLeft.
9426 (tui_scroll_right): Rename tuiScrollRight.
9427 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9428 (tui_resize_all): Rename tuiResizeAll.
9429 (tui_refresh_all_win): Rename tuiRefreshAll.
9430 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9431 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9432 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9433 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9434
edae1ccf
AC
9435 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9436 (tui_erase_data_content): Rename tuiEraseDataContent.
9437 (tui_display_all_data): Rename tuiDisplayAllData.
9438 (tui_check_data_values): Rename tuiCheckDataValues.
9439 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9440 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9441 (tui_first_data_element_no_in_line): Rename
9442 tuiFirstDataElementNoInLine.
9443 (tui_delete_data_content_windows): Rename
9444 tuiDeleteDataContentWindows.
9445 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9446 (tui_display_data_from): Rename tuiDisplayDataFrom.
9447 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9448 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9449 * tui/tui-win.c, tui/tui-regs.c: Update references.
9450 * tui/tui-layout.c, tui/tui.c: Update references.
9451
ec7d9e56
AC
9452 * tui/tui-wingeneral.h: Update copyright.
9453 (m_allBeVisible): Delete macro.
8a1dac83 9454 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
9455 (struct tui_gen_win_info): Declare.
9456 (struct tui_win_info): Declare.
9457 (tui_unhighlight_win): Rename unhighlightWin.
9458 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9459 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9460 (tui_make_window): Rename makeWindow.
9461 (tui_copy_win): Rename copyWin.
9462 (tui_box_win): Rename boxWin.
9463 (tui_highlight_win): Rename highlightWin.
9464 (tui_check_and_display_highlight_if_needed): Rename
9465 checkAndDisplayHighlightIfNeeded.
9466 (tui_refresh_all): Rename refreshAll.
9467 (tui_delete_win): Rename tuiDelwin.
9468 (tui_refresh_win): Rename tuiRefreshWin.
9469 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9470 (tui_make_visible, tui_make_invisible): New functions.
9471 (tui_make_all_visible, tui_make_all_invisible): New functions.
9472 (make_all_visible): Rename makeAllVisible.
9473 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9474 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9475 * tui/tui-windata.c, tui/tui-win.c: Update references.
9476 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9477 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9478
1e52e2eb
MK
94792004-02-06 Mark Kettenis <kettenis@gnu.org>
9480
9481 * proc-api.c (write_with_trace): Initialize local variable to
9482 silence compiler warning.
9483
f80bda8e
AC
94842004-02-06 Andrew Cagney <cagney@redhat.com>
9485
9486 * tui/tui-source.h: Do not include "defs.h".
9487 (struct tui_win_info): Declare.
9488 (tui_set_source_content_nil): Declare.
9489 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9490 (union tui_line_or_address): Rename _TuiLineOrAddress.
9491 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9492 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9493 (tui_update_source_window_as_is): Rename
9494 tuiUpdateSourceWindowAsIs.
9495 (tui_update_source_windows_with_addr): Rename
9496 tuiUpdateSourceWindowsWithAddr.
9497 (tui_update_source_windows_with_line): Rename
9498 tuiUpdateSourceWindowsWithLine.
9499 (tui_clear_source_content): Rename tuiClearSourceContent.
9500 (tui_erase_source_content): Rename tuiEraseSourceContent.
9501 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9502 (tui_show_source_content): Rename tuiShowSourceContent.
9503 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9504 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9505 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9506 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9507 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9508 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9509 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9510 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9511 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9512 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9513 (struct tui_win_info): Declare.
9514 * tui/tui-stack.c: Update references.
9515 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9516 * tui/tui-win.c, tui/tui-source.c: Ditto.
9517 * tui/tui.c, tui/tui-disasm.c: Ditto.
9518
9fbfb822
MK
95192004-02-06 Mark Kettenis <kettenis@gnu.org>
9520
9521 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9522 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9523
03cebad2
MK
95242004-02-05 Mark Kettenis <kettenis@gnu.org>
9525
9526 * infrun.c (handle_inferior_event): Allow for breakpoint
9527 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9528 and SIGEMT. Update comments.
9529 * NEWS (Revised SPARC target): Mention support for non-executable
9530 stack.
9531
290281b1
MK
95322004-02-04 Mark Kettenis <kettenis@gnu.org>
9533
9534 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9535 * inftarg.c: Update copyright year.
9536 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9537 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9538 (sparc_xfer_wcookie): New function.
9539 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9540 * Makefile.in (sparc-nat.o): Update dependencies.
9541 * config/sparc/nm-nbsd.h: Include "target.h".
9542 (NATIVE_XFER_WCOOKIE): New define.
9543 (sparc_xfer_wcookie): New prototype.
9544
212161df
AC
95452004-02-04 Andrew Cagney <cagney@redhat.com>
9546
9547 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9548 SYSCALL_TRAP function.
9549 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9550
6e4c6c91
DJ
95512004-02-04 Andrew Cagney <cagney@redhat.com>
9552 Daniel Jacobowitz <drow@mvista.com>
9553
9554 * objfiles.h: Delete comments refering to inside_entry_func and
9555 DEPRECATED_FRAME_CHAIN_VALID.
9556 * defs.h (inside_entry_func): Update prototype..
9557 * blockframe.c (inside_entry_func): Rename to
9558 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9559 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9560
cae688ec
JJ
95612004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9562
9563 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9564 outside of #ifdef SOLIB_ADD region.
9565 (do_restore_lang_radix_cleanup): Ditto.
9566 (resolve_pending_breakpoint): Ditto.
9567
19217676
AC
95682004-02-03 Andrew Cagney <cagney@redhat.com>
9569
9570 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9571 (process_note_abi_tag_sections): Delete unused function.
9572 (ia64_read_fp): Delete unused function.
9573 (gdbarch_extract_struct_value_address): Delete declaration.
9574
876753be
AC
95752004-02-02 Andrew Cagney <cagney@redhat.com>
9576
9577 * vax-tdep.c (vax_frame_chain): Delete call to
9578 deprecated_inside_entry_file.
9579 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9580
d4f10bf2
MK
95812004-02-02 Mark Kettenis <kettenis@gnu.org>
9582
9583 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9584 column that's "empty" or "same value" when eliminating REG_RA
9585 rules.
9586
cae688ec
JJ
95872004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9588
9589 * NEWS: Add information about new pending breakpoint support.
9590
0101ce28
JJ
95912004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9592
9593 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9594 and pending fields for pending breakpoint support.
9595 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9596 (condition_command): Only parse condition if not a pending
9597 breakpoint.
9598 (print_one_breakpoint): Add support for pending breakpoints.
9599 (describe_other_breakpoints): Add checks to verify we are not
9600 dealing with pending breakpoints.
9601 (check_duplicates): Don't check pending breakpoints.
9602 (set_raw_breakpoint): Initialize pending flag.
9603 (do_restore_lang_radix_cleanup): New cleanup routine.
9604 (resolve_pending_breakpoint): New function.
9605 (re_enable_breakpoints_in_shlibs): Try and resolve any
9606 pending breakpoints via resolve_pending_breakpoint.
9607 (mention): Add pending breakpoint support.
9608 (parse_breakpoint_sals): Add new parameter to pass to
9609 decode_line_1 to indicate silent errors when files or functions
9610 are not found. Change all callers.
9611 (do_captured_parse_breakpoint): New function.
9612 (break_command_1): Change prototype to return an rc value and to
9613 take an optional pending breakpoint pointer. Support creating
9614 a pending breakpoint if a "not found" form of error occurs when
9615 parsing the breakpoint. Also support resolving an existing pending
9616 breakpoint and be silent if the resolution fails.
9617 (create_breakpoints): Change prototype to take pending breakpoint
9618 pointer. When resolving a pending breakpoint, use the new pointer
9619 to provide a conditional or commands added by the end-user.
9620 (delete_breakpoint): Add appropriate check for pending.
9621 (breakpoint_re_set_one): Ditto.
9622 (do_enable_breakpoint): Ditto.
9623
8d577d32
DC
96242004-02-02 David Carlton <carlton@kealia.com>
9625
9626 * valops.c (enum oload_classification): New.
9627 (find_overload_match): Break implementation into separate
9628 functions; delete #if 0'd code; look for symbols within
9629 namespaces.
9630 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9631 (find_oload_champ,oload_method_static,classify_oload_match): New.
9632 * cp-support.h: Add declaration for cp_func_name; update
9633 declaration for make_symbol_overload_list.
9634 * cp-support.c (cp_func_name): New.
9635 (overload_list_add_symbol): Fix comment, use
9636 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9637 (make_symbol_overload_list): Take a function name and a namespace
9638 instead of a symbol; change implementation.
9639 (make_symbol_overload_list_using): New.
9640 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9641
22e8e3c7
FF
96422004-02-02 Fred Fish <fnf@redhat.com>
9643
9644 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 9645 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
9646 * remote-sim.c (gdb_os_write_stderr): Write output to
9647 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9648 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 9649 gdb_stderr stream and update copyright years.
22e8e3c7 9650
6b753f60
DJ
96512004-02-01 Daniel Jacobowitz <drow@mvista.com>
9652
9653 * Makefile.in (mips-linux-nat.o): Update dependencies.
9654 * mips-linux-nat.c: Include mips-tdep.h.
9655
96562004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
9657
9658 * sol-thread.c (sol_thread_xfer_partial): New function.
9659 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9660 (init_sol_core_ops): Likewise.
9661
9662 * procfs.c (procfs_xfer_partial): New function.
9663 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9664 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9665
9666 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9667 procfs_xfer_auxv function.
9668
9669 * procfs.c (procfs_make_note_section): If we can read
9670 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9671 * linux-proc.c (linux_make_note_section): Likewise.
9672
9673 * auxv.h: New file.
9674 * auxv.c: New file.
9675 * Makefile.in (auxv_h): New variable.
9676 (COMMON_OBS): Add auxv.o here.
9677 (auxv.o): New target.
9678
9679 * corelow.c (core_xfer_partial): New function.
9680 (init_core_ops): Use it for core_ops.to_xfer_partial.
9681
9682 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9683 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9684 macro if that is defined.
9685
fa5281d0
DJ
96862004-02-01 Daniel Jacobowitz <drow@mvista.com>
9687
9688 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9689 and check the specified thread for each breakpoint.
9690 * breakpoint.h (bpstat_stop_status): Update prototype.
9691 * infrun.c (handle_inferior_event): Update calls to
9692 bpstat_stop_status.
9693
26ee262d
DJ
96942004-02-01 Daniel Jacobowitz <drow@mvista.com>
9695
9696 * Makefile.in (cli-cmds.o): Add $(readline_h).
9697
d9b52655
DJ
96982004-02-01 Daniel Jacobowitz <drow@mvista.com>
9699
9700 * cli/cli-cmds.c: Include readline.h.
9701 (complete_command): Pass the start of the last word to
9702 complete_line.
9703
9709f61c
DJ
97042004-01-31 Daniel Jacobowitz <drow@mvista.com>
9705
9706 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9707 argument, and change first argument to a CORE_ADDR.
9708 * breakpoint.h (bpstat_stop_status): Update prototype.
9709 * infrun.c (adjust_pc_after_break): Add a new comment.
9710 (handle_inferior_event): Update calls to bpstat_stop_status.
9711
4f1280bb
DJ
97122004-01-31 Daniel Jacobowitz <drow@mvista.com>
9713
9714 * breakpoint.h: Update copyright years.
9715
4fa8626c
DJ
97162004-01-31 Daniel Jacobowitz <drow@mvista.com>
9717
9718 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9719 (bpstat_stop_status): Don't decrement PC.
9720 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9721 prototype.
9722 * infrun.c (adjust_pc_after_break): New function.
9723 (handle_inferior_event): Call it, early. Remove later references
9724 to DECR_PC_AFTER_BREAK.
9725 (normal_stop): Add commentary.
9726
fad0733a
DJ
97272004-01-31 Daniel Jacobowitz <drow@mvista.com>
9728
9729 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9730 2004-01-27 double-free fix.
9731
42cdca6c
MK
97322004-01-31 Mark Kettenis <kettenis@gnu.org>
9733
9734 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9735 (sparc32_frame_prev_register): Handle StackGhost.
9736 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9737
932d5416
RM
97382004-01-29 Roland McGrath <roland@redhat.com>
9739
9740 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
9741 * configure: Regenerated.
9742
9743 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
9744 * Makefile.in (procfs.o): Add dep.
9745
47d3492a
AC
97462004-01-28 Andrew Cagney <cagney@redhat.com>
9747
9748 * tui/tui-stack.h: Update copyright.
9749 (struct frame_info): Add opaque declaration.
9750 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
9751 (tui_show_locator_content): Rename tuiShowLocatorContent.
9752 (tui_show_frame_info): Rename tuiShowFrameInfo.
9753 * tui/tui-stack.c: Update copyright. Update references.
9754 * tui/tui-winsource.c: Update references.
9755 * tui/tui-win.c: Update references.
9756 * tui/tui-layout.c: Update references.
9757 * tui/tui-hooks.c: Update copyright, update references.
9758 * tui/tui.c: Update copyright, update references.
9759 * tui/tui-disasm.c: Update references.
9760
5d51ca54
DC
97612004-01-28 David Carlton <carlton@kealia.com>
9762
9763 * dwarf2read.c (add_partial_structure): Use demangled name if
9764 namespace equals "".
9765
086ed43d
JB
97662004-01-27 Jim Blandy <jimb@redhat.com>
9767
9768 Clean up misapplied patch:
9769 * dwarf2read.c (determine_prefix): Change one of the two forward
9770 declarations for 'determine_prefix_aux' to a declaration for this.
9771 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
9772 argument to 'die_specification'.
9773
2a35147e
JB
9774 * dwarf2read.c (read_func_scope): Re-indent comment.
9775
a355c7de 97762004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 9777
a355c7de
AC
9778 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
9779 b->exp to NULL after freeing so that error during re-parsing or
9780 evaluation of expressions associated with breakpoint don't
9781 eventually lead to re-freeing of storage.
9782 Committed by Andrew Cagney.
9783
63ff5125
AC
97842004-01-27 Andrew Cagney <cagney@redhat.com>
9785
9786 * source.c (ambiguous_line_spec): Delete undefined declaration.
9787 * m32r-rom.c (m32r_set_board_address): Delete unused function.
9788 (m32r_set_server_address, m32r_set_download_path): Ditto.
9789 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
9790
e142c38c
DJ
97912004-01-27 Daniel Jacobowitz <drow@mvista.com>
9792
9793 * dwarf2read.c: Update calls to changed and renamed functions, and
9794 references to moved variables.
9795
9796 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
9797 language, language_defn, list_in_scope, and ftypes members.
9798 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
9799 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
9800 (baseaddr): Remove globals.
9801
9802 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
9803 (set_cu_language, die_is_declaration, die_specification)
9804 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
9805 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
9806 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
9807 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
9808
9809 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
9810 cu.list_in_scope. Don't initialize cu_header_offset.
9811 (add_partial_symbol): Add local baseaddr.
9812 (psymtab_to_symtab_1): Add local baseaddr. Use
9813 objfile->section_offsets for consistency. Don't initialize
9814 cu_header_offset; do initialize cu.header.offset and
9815 cu.list_in_scope.
9816 (read_file_scope, read_func_scope, read_lexical_block_scope)
9817 (dwarf_decode_lines, new_symbol): Add local baseaddr.
9818
c6e06ede
MC
98192004-01-27 Michael Chastain <mec.gnu@mindspring.com>
9820
fb328ecc 9821 * PROBLEMS: Add gdb/1516.
c6e06ede 9822
48184fd4
AC
98232003-12-29 Robert Millan <robertmh@gnu.org>
9824
9825 Patch committed by Andrw Cagney.
9826 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
9827 * configure.tgt: Match knetbsd*-gnu.
9828
c1321b30
AC
98292004-01-26 Andrew Cagney <cagney@redhat.com>
9830
f3699be3
AC
9831 * breakpoint.c (catch_command_1): Delete #ifdef code.
9832 (catch_fork_command_1): Delete #ifdef wrapper.
9833 (catch_exec_command_1): Ditto.
9834 (catch_load_command_1): Ditto.
9835 (catch_unload_command_1): Ditto.
9836
c1321b30
AC
9837 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
9838 (catch_breakpoint): Delete #if0ed function.
9839 (disable_catch_breakpoint): Ditto.
9840 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
9841 (disable_catch, enable_catch, delete_catch): Ditto.
9842
b4501125
AC
98432004-01-26 Andrew Cagney <cagney@redhat.com>
9844
9845 * remote.c (echo_check, quit_flag): Delete variables.
9846 (cisco_kernel_mode): Delete variable.
9847 (minitelnet_return, tty_input, escape_count): Delete variables.
9848 (remote_cisco_mode): Delete variable.
9849 (remote_cisco_open, remote_cisco_close): Delete function.
9850 (remote_cisco_mourn, remote_cisco_wait): Delete function.
9851 (init_remote_cisco_ops): Delete function.
9852 (_initialize_remote): Do not install "remote cisco" code.
9853 (read_frame): Delete cisco specific code.
9854 (remote_info_process): Delete function.
9855 (remote_wait): Delete cisco specific code.
9856 (remote_cisco_section_offsets): Delete function.
9857 (remote_cisco_objfile_relocate): Delete function.
9858 (remote_async_wait): Delete cisco specific code.
9859 (minitelnet, readtty, readsocket): Delete function.
9860
74055713
AC
98612004-01-26 Andrew Cagney <cagney@redhat.com>
9862
9863 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
9864 comments mentioning extract_returned_value_address.
9865 * infcmd.c (print_return_value): Update. Add comments on
9866 extract_returned_value_address.
9867 * stack.c (return_command): Add comments on
9868 extract_returned_value_address.
9869 * values.c: Update comment.
9870 * m32r-tdep.c: Update comment.
9871 * sparc-tdep.c: Update comment.
9872 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
9873 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9874 * sh64-tdep.c (sh64_gdbarch_init): Update.
9875 * sh-tdep.c (sh_gdbarch_init): Update.
9876 * s390-tdep.c (s390_gdbarch_init): Update.
9877 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9878 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9879 * m68k-tdep.c (m68k_gdbarch_init): Update.
9880 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9881 * m32r-tdep.c (m32r_gdbarch_init): Update.
9882 * ia64-tdep.c (ia64_gdbarch_init): Update.
9883 * h8300-tdep.c (h8300_gdbarch_init): Update.
9884 * frv-tdep.c (frv_gdbarch_init): Update.
9885 * arm-tdep.c (arm_gdbarch_init): Update.
9886 * alpha-tdep.c (alpha_gdbarch_init): Update.
9887
a67af2b9
AC
98882004-01-26 Andrew Cagney <cagney@redhat.com>
9889
9890 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
9891 SYMBOL_LOCATION_FUNCS
9892 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
9893 "struct symbol_ops".
9894 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
9895 type to "struct symbol_ops".
9896 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
9897 (struct symbol): Replace ".aux_value.loc.funcs" and
9898 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
9899 (SYMBOL_OBJFILE): Delete macro.
9900 (SYMBOL_LOCATION_FUNCS): Delete macro.
9901 (SYMBOL_LOCATION_BATON): Update.
9902 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
9903 intead of SYMBOL_LOCATION_FUNCS.
9904 * ax-gdb.c (gen_var_ref): Ditto.
9905 * printcmd.c (address_info): Ditto.
9906 * findvar.c (read_var_value): Ditto.
9907 (symbol_read_needs_frame): Ditto.
9908
c034e007
AC
99092004-01-26 Andrew Cagney <cagney@redhat.com>
9910
9911 * dwarf2read.c (read_func_scope): Document frame-base hack.
9912
bb472c1e
MK
99132004-01-25 Mark Kettenis <kettenis@gnu.org>
9914
9915 * infcmd.c (print_return_value): Plug memory leak; delete
9916 ui_stream object. Rename argument `structure_return' to
9917 `struct_return'.
9918
c8e737d5
MK
99192004-01-25 Mark Kettenis <kettenis@gnu.org>
9920
f941662f
MK
9921 * infcmd.c (print_return_value): Wrap long lines.
9922 (finish_command_continuation, finish_command): Remove unused
9923 variable `funcaddr'. Fix some coding-standards problems.
9924
c558d81a 9925 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 9926 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
9927 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
9928 TDEP->fpregset to zero.
9929
bf1e5861 9930 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
9931 floating-point registers for traditional NetBSD core files.
9932 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
9933 TDEP->sizeof_fpregset here.
9934
4c72d57a
MK
99352004-01-25 Mark Kettenis <kettenis@gnu.org>
9936
566626fa
MK
9937 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
9938 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
9939 function with code split out from
9940 sparc32nbsd_sigcontext_frame_cache.
9941 (sparc32nbsd_sigcontext_frame_cache): Use
9942 sparc32nbsd_sigcontext_saved_regs.
9943 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
9944 OpenBSD.
9945 * sparcobsd-tdep.c: New file.
9946 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
9947 (sparcobsd-tdep.o): New dependency.
9948 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
9949 * config/sparc/obsd.mt: New file.
9950
4c72d57a
MK
9951 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
9952 TDEP->fpregset to be initialized to enable core file register
9953 sets.
9954
7e5e9f88
MK
99552004-01-24 Mark Kettenis <kettenis@gnu.org>
9956
f0f207fd 9957 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
9958 Add opaque declarations.
9959 (sparc64nbsd_sigcontext_saved_regs): New prototype.
9960 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
9961 function with code split out from
9962 sparc64nbsd_sigcontext_frame_cache.
9963 (sparc64nbsd_sigcontext_frame_cache): Use
9964 sparc64nbsd_sigcontext_saved_regs.
9965 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
9966 OpenBSD.
9967 * sparc64obsd-tdep.c: New file.
9968 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
9969 (sparc64obsd-tdep.o): New dependency.
9970 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
9971 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
9972 * config/sparc/obsd64.mt: New file.
9973
690668cc
MK
9974 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
9975 read the instruction at PC.
9976
7e5e9f88
MK
9977 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
9978 value of GDB_OSABI_DEFAULT.
9979 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
9980 instead of GDB_OSABI_NETBSD_AOUT.
9981
68b6dce9
NR
99822004-01-24 Nick Roberts <nick@nick.uklinux.net>
9983
9984 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
9985 copyright.
9986
080ce8c0
AC
99872004-01-23 Andrew Cagney <cagney@redhat.com>
9988
9989 * printcmd.c (display_command): Replace tui_set_display call with
9990 tui_set_layout_for_display_command.
9991 * tui/tui.h (enum tui_win_type): Define.
9992 (tui_set_layout): Delete declaration.
9993 (tui_set_layout_for_display_command): Rename set_tui_layout.
9994 * tui/tui-data.h (enum tui_layout_type): Define.
9995 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
9996 "tui.h".
9997 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
9998 (tui_default_win_height): Rename tuiDefaultWinHeight.
9999 (tui_default_win_viewport_height): Rename
10000 tuiDefaultWinViewportHeight.
10001 (tui_set_layout): RenametuiSetLayout.
10002 * tui/tui-layout.c: Update references.
10003 * tui/tui.c: Update references.
10004 * tui/tui-disasm.c: Update references.
10005
b368761e
DC
100062004-01-23 David Carlton <carlton@kealia.com>
10007
10008 Partial workaround for PR c++/1511:
10009 * cp-namespace.c: Include frame.h.
10010 (cp_lookup_transparent_type): New
10011 (cp_lookup_transparent_type_loop): New.
10012 * cp-support.h: Declare cp_lookup_transparent_type.
10013 * symtab.c (basic_lookup_transparent_type): Renamed from
10014 lookup_transparent_type.
10015 (lookup_transparent_type): Replace old body by a call to
10016 current_language->la_lookup_transparent_type.
10017 * symtab.h: Update copyright. Declare
10018 basic_lookup_transparent_type.
10019 * language.h: Update copyright.
10020 (struct language_defn): Add la_lookup_transparent_type.
10021 * language.c: Update copyright.
10022 (unknown_language_defn): Add basic_lookup_transparent_type.
10023 (auto_language_defn): Add basic_lookup_transparent_type.
10024 (local_language_defn): Add basic_lookup_transparent_type.
10025 * ada-lang.c: Update copyright.
10026 (ada_language_defn): Add basic_lookup_transparent_type.
10027 * c-lang.c: Update copyright.
10028 (c_language_defn): Add basic_lookup_transparent_type.
10029 (cplus_language_defn): Add basic_lookup_transparent_type.
10030 (asm_language_defn): Add basic_lookup_transparent_type.
10031 (minimal_language_defn): Add basic_lookup_transparent_type.
10032 * f-lang.c: Update copyright.
10033 (f_language_defn): Add basic_lookup_transparent_type.
10034 * jv-lang.c: Update copyright.
10035 (java_language_defn): Add basic_lookup_transparent_type.
10036 * m2-lang.c: Update copyright.
10037 (m2_language_defn): Add basic_lookup_transparent_type.
10038 * objc-lang.c: Update copyright.
10039 (objc_language_defn): Add basic_lookup_transparent_type.
10040 * p-lang.c: Update copyright.
10041 (p_language_defn): Add basic_lookup_transparent_type.
10042 * scm-lang.c: Update copyright.
10043 (scm_language_defn): Add basic_lookup_transparent_type.
10044 * Makefile.in (cp-namespace.o): Depend on frame.h.
10045
fdde2d81
DC
100462004-01-23 David Carlton <carlton@kealia.com>
10047
10048 Patch for PR c++/1520:
10049 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10050 properly if we have a specification die.
10051 (determine_prefix_aux): Rename from determine_prefix.
10052 (determine_prefix): Like the old determine_prefix, but never
10053 returns NULL.
10054
5b828b6b
TR
100552004-01-23 Theodore A. Roth <troth@openavr.org>
10056
10057 * avr-tdep.c: Update copyright.
10058 (avr_iaddr_p): Delete unused function.
10059 (avr_saddr_p): Delete unused function.
10060
a1b8c067
DC
100612004-01-23 David Carlton <carlton@kealia.com>
10062
10063 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10064 Fix for PR symtab/1534.
10065
f2cab569
MK
100662004-01-23 Mark Kettenis <kettenis@gnu.org>
10067
10068 * NEWS (New native configurations): Mention OpenBSD/sparc and
10069 OpenBSD/sparc64.
10070 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10071 * configure.host: Likewise.
10072 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10073 handler for OpenBSD.
10074 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10075
642d8300
MK
100762004-01-22 Mark Kettenis <kettenis@gnu.org>
10077
89aac506
MK
10078 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10079 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10080
36662fde
MK
10081 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10082 * cli/cli-cmds.c (shell_escape): Likewise.
10083
642d8300
MK
10084 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10085 OpenBSD .note.openbsd.ident sections.
10086
fae299cd
DC
100872004-01-22 David Carlton <carlton@kealia.com>
10088
10089 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10090 get_scope_pc_bounds.
10091 (read_file_scope): Ditto.
10092 (get_scope_pc_bounds): New function, produced by extracting code
10093 from the above two functions, consolidating it, and adding support
10094 for DW_TAG_namespace.
10095
a49d618c
MK
100962004-01-22 Mark Kettenis <kettenis@gnu.org>
10097
10098 * osabi.c (MAX_NOTESZ): New define.
10099 (check_note): New function.
10100 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10101 check_note.
10102
fe61caab
RM
101032004-01-21 Roland McGrath <roland@redhat.com>
10104
10105 * MAINTAINERS (write after approval): Add myself.
10106
ec145965
EZ
101072004-01-21 Eli Zaretskii <eliz@gnu.org>
10108
10109 * utils.c (init_page_info): Move declarations of `rows' and
10110 `cols' before the __GO32__-specific code. Move the closing brace
10111 outside the #ifdef __GO32__..#endif block.
10112 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10113
877522db
PB
101142004-01-21 Paul Brook <paul@codesourcery.com>
10115
10116 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10117 BPSTAT_WHAT_CHECK_SHLIBS.
10118
dbf5be1c
PB
101192004-01-21 Paul Brook <paul@codesourcery.com>
10120
10121 * MAINTAINERS: Add myself to write-after-approval.
10122
81f08b92
AC
101232004-01-20 Andrew Cagney <cagney@redhat.com>
10124
5a1efed7
AC
10125 * ax-gdb.c (print_axs_value): Delete unused function.
10126 * jv-lang.c (java_lookup_type): Delete unused function.
10127 * cli/cli-dump.c (dump_filetype): Delete unused function.
10128 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10129 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10130 (mips_getstring): Delete unused function.
10131 (pmon_insert_breakpoint): Delete #if0ed function.
10132 (PMON_MAX_BP): Delete #if0ed MACRO.
10133 (mips_pmon_bp_info): Delete #if0ed variable.
10134 (pmon_remove_breakpoint): Delete #if0ed function.
10135 * monitor.c (monitor_write_even_block): Delete unused function.
10136 (monitor_write_memory_block): Delete #if0ed code.
10137 * dink32-rom.c (dink32_load): Delete unused function.
10138 (_initialize_dink32_rom): Delete #if0ed code.
10139 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10140
b0a30fce
AC
10141 * tui/tui-command.c: Update references.
10142 * tui/tui-io.c: Update references.
10143 * tui/tui-command.h: Update copyright.
10144 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10145
81f08b92
AC
10146 * source.c (ambiguous_line_spec): Delete never-defined function.
10147 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10148 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10149 * cli/cli-cmds.c (validate_comname): Ditto.
10150
65f05602
AC
10151 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10152 "tui-data.h".
10153 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10154 (tui_show_disassem): Rename tuiShowDisassem.
10155 (tui_show_disassem_and_update_source): Rename
10156 tuiVerticalDisassemScroll.
10157 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10158 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10159 * tui/tui.h: Update copyright.
10160 (enum tui_status): Define.
10161 * tui/tui-data.h (enum tui_scroll_direction): Define.
10162 * tui/tui-disasm.c: Update copyright. Update references.
10163 * tui/tui-winsource.c: Update copyright. Update references.
10164 * tui/tui-win.c: Update references.
10165 * tui/tui-layout.c: Update references.
10166
6bb0384f
AC
101672004-01-20 Andrew Cagney <cagney@redhat.com>
10168
10169 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10170 sym2 to start of block.
10171
9175c9a3
MC
101722004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10173
10174 * MAINTAINERS: Delete mmalloc.
10175 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10176 * NEWS: Mention removal of --with-malloc.
10177 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10178 * config.in: Regenerate.
10179 * configure: Regenerate.
6bb0384f
AC
10180 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10181 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
10182 * gdbinit.in: Remove mmalloc.
10183 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10184 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10185 * config/i386/go32.mh: Likewise.
10186 * config/i386/interix.mh: Likewise.
10187 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10188
4fcef00a
JJ
101892004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10190
10191 * linespec.c (decode_variable, symtab_from_filename): Call
10192 error_silent with error message instead of throwing an exception
10193 directly.
10194 * defs.h (error_silent, error_output_message): Add prototypes.
10195 (catch_exceptions_with_msg): Ditto.
10196 * utils.c (error_silent, error_output_message): New functions.
10197 * top.c (catch_exceptions_with_msg): New function.
10198
8e94b928
NR
101992004-01-20 Nick Roberts <nick@nick.uklinux.net>
10200
10201 * mi/mi-cmds.h (enum print_values): Add definition.
10202
10203 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10204 type and value for simple data types and just the name and type
10205 for complex ones, if required.
10206
10207 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10208 children, if required.
10209
a02d6af8
KB
102102004-01-19 Kevin Buettner <kevinb@redhat.com>
10211
10212 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10213 unused declarations.
10214
78a4a9b9
AC
102152004-01-19 Andrew Cagney <cagney@redhat.com>
10216
10217 * top.h (mapped_symbol_files): Delete declaration.
10218 * main.c (captured_main): Delete option "m" and "mapped".
10219 * objfiles.c (mapped_symbol_files): Delete variable.
10220 * symfile.c (symbol_file_command): Delete mmap code.
10221 (symbol_file_add_with_addrs_or_offsets): Ditto.
10222 (add_symbol_file_command, reread_separate_symbols): Ditto.
10223 * objfiles.h (OBJF_MAPPED): Delete.
10224 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10225 (free_objfile) [USE_MMALLOC]: Ditto.
10226 (open_existing_mapped_file): Delete function.
10227 (open_mapped_file): Delete function.
10228 (map_to_file): Delete function.
10229
2dbd5e30
KB
102302004-01-19 Kevin Buettner <kevinb@redhat.com>
10231
10232 * infrun.c (step_into_function): Account for possible breakpoint
10233 adjustment when computing ``stop_func_start''.
10234
437b434f
KB
102352004-01-19 Kevin Buettner <kevinb@redhat.com>
10236
10237 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10238 the region size against the size of a pointer, not the size of
10239 a register as given by DEPRECATED_REGISTER_SIZE.
10240
55fb0713
AC
102412004-01-19 Andrew Cagney <cagney@redhat.com>
10242
10243 * tui/tui-regs.h: Include "tui-data.h".
10244 (tuiFirstRegElementNoInLine): Delete declaration.
10245 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10246 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10247 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10248 (tui_calculate_regs_column_count): Rename
10249 tuiCalculateRegsColumnCount.
10250 (tui_check_register_values): Rename tuiCheckRegisterValues.
10251 (tui_show_registers): Rename tuiShowRegisters.
10252 (tui_display_registers_from_line): Rename
10253 tuiDisplayRegistersFromLine.
10254 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10255 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10256 (tui_first_reg_element_no_inline): Rename
10257 tuiFirstRegElementNoInLine.
10258 * tui/tui-data.h: Update copyright.
10259 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10260 * tui/tui-windata.c: Update copyright, update references.
10261 * tui/tui-regs.c: Update copyright, update references.
10262 * tui/tui-win.c: Update copyright, update references.
10263 * tui/tui-layout.c: Update copyright, update references.
fe61caab 10264
cebe9500
AC
102652004-01-18 Andrew Cagney <cagney@redhat.com>
10266
bcdf1568
AC
10267 * tui/tui-io.c: Update copyright.
10268 (key_is_end_sequence, key_is_backspace): New functions.
10269 (key_is_command_char, key_is_start_sequence): New function.
10270 (tui_getc): Update references.
10271 * tui/tui-io.h: Update copyright.
10272 (m_tuiStartNewLine): Delete macro.
10273 (m_isBackspace, m_isDeleteChar): Delete macros.
10274 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10275 (m_isNextPage, m_isPrevPage): Delete macros.
10276 (m_isLeftArrow, m_isRightArrow): Delete macros.
10277 (m_isXdbStyleCommandChar): Delete macro.
10278 (key_is_start_sequence): Declare, replace m_isStartSequence.
10279 (key_is_end_sequence): Declare, replace m_isEndSequence.
10280 (key_is_backspace): Declare ,replace m_isBackspace.
10281 (key_is_command_char): Declare, replace m_isCommandChar.
10282 * tui/tui-command.c: Update copyright.
10283 (tuiDispatchCtrlChar): Update references.
10284
130d87e6
AC
10285 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10286 tuiSourceWin.h.
10287
d7b2e967
AC
10288 * tui/tui-command.c: Rename tui/tuiCommand.c.
10289 * tui/tui-command.h: Rename tui/tuiCommand.h.
10290 * tui/tui-data.c: Rename tui/tuiData.c.
10291 * tui/tui-data.h: Rename tui/tuiData.h.
10292 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10293 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10294 * tui/tui-io.c: Rename tui/tuiIO.c.
10295 * tui/tui-io.h: Rename tui/tuiIO.h.
10296 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10297 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10298 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10299 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10300 * tui/tui-source.c: Rename tui/tuiSource.c.
10301 * tui/tui-source.h: Rename tui/tuiSource.h.
10302 * tui/tui-stack.c: Rename tui/tuiStack.c.
10303 * tui/tui-stack.h: Rename tui/tuiStack.h.
10304 * tui/tui-win.c: Rename tui/tuiWin.c.
10305 * tui/tui-win.h: Rename tui/tuiWin.h.
10306 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10307 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10308 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10309 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10310 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10311 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10312 * tui/tui-file.c: Update includes.
10313 * tui/tui-hooks.c: Update includes.
10314 * tui/tui-interp.c: Update includes.
10315 * tui/tui.c: Update includes.
10316 * Makefile.in: Update all tui/ dependencies.
10317 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10318
b2100910
AC
10319 * Makefile.in: Update copyright. Update dependencies.
10320
cebe9500
AC
10321 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10322 problem.
10323
c6f0559b
AC
103242004-01-18 Andrew Cagney <cagney@redhat.com>
10325
43e9390b
AC
10326 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10327 instead of register_gdbarch_init.
10328
c6f0559b
AC
10329 * remote-sds.c (tohex): Delete unused function. Update copyright.
10330 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10331 * v850-tdep.c (v850_register_virtual_size): Ditto.
10332 * target.c (normal_target_post_startup_inferior): Ditto.
10333 * source.c (ambiguous_line_spec): Ditto.
10334 * remote.c (adapt_remote_get_threadinfo): Ditto.
10335 * mi/mi-out.c (out_field_fmt): Ditto.
10336 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10337 (output_control_change_notification): Ditto.
10338 * m68k-tdep.c (m68k_register_byte): Ditto.
10339 (m68k_remote_breakpoint_from_pc): Ditto.
10340 * ui-out.c (init_ui_out_state): Delete unused declaration.
10341 * stabsread.c (search_value): Ditto.
10342 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10343 * maint.c (print_section_table): Ditto.
10344 * infrun.c (set_follow_fork_mode_command): Ditto.
10345
a8504492
MK
103462004-01-18 Mark Kettenis <kettenis@gnu.org>
10347
10348 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10349 DW_CFA_def_cfa_exporession. Add support for
10350 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10351 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10352
0bd8997e
AC
103532004-01-18 Andrew Cagney <cagney@redhat.com>
10354
10355 * ocd.c: Update copyright.
10356 (bdm_read_register_command): Delete unused function.
10357 (_initialize_remote_ocd): Delete commented out reference.
10358 (get_quoted_char, reset_packet): Delete #if0ed function.
10359 (output_packet, put_quoted_char): Delete #if0ed function.
10360 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10361 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10362 (BDM_BREAKPOINT): Delete #if0ed macro.
10363 (remote_timeout): Delete #if0ed variable.
10364
31bb40e4
MK
103652004-01-18 Mark Kettenis <kettenis@gnu.org>
10366
10367 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10368 (core-sol2.o): Remove dependency.
10369 * core-sol2.c: Remove file.
10370
887432a5
AC
103712004-01-17 Andrew Cagney <cagney@redhat.com>
10372
10373 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10374 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10375 enums.
10376
29182b13
DJ
103772004-01-17 Daniel Jacobowitz <drow@mvista.com>
10378
10379 * remote.c: Update copyright years.
10380
2963ee1d
DJ
103812004-01-17 Daniel Jacobowitz <drow@mvista.com>
10382
10383 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10384
79d45cd4
AC
103852004-01-17 Andrew Cagney <cagney@redhat.com>
10386
ee300cd4
AC
10387 * mdebugread.c: Update copyright.
10388 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10389 (parse_type, parse_procedure): Ditto.
10390 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10391
fcacc9c2
AC
10392 * cris-tdep.c (cris_store_struct_return): Put back accidently
10393 deleted function.
10394
79d45cd4
AC
10395 * gdbarch.sh: Update copyright year.
10396 * gdbarch.h, gdbarch.c: Re-generate.
10397
b263358a
DJ
103982004-01-17 Daniel Jacobowitz <drow@mvista.com>
10399
10400 Suggested by George Anzinger.
10401 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10402 correct stack offset. Include unknown opcode numbers in the error
10403 message.
10404
931aecf5
AC
104052004-01-17 Andrew Cagney <cagney@redhat.com>
10406
10407 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10408 extract_struct_value_address, i386 does not set it.
10409 * sparc64-tdep.c (sparc64_init_abi): Do not set
10410 extract_struct_value_address, never called.
10411 (sparc64_extract_struct_value_address): Delete function.
10412 * m68hc11-tdep.c: Update copyright.
10413 (m68hc11_gdbarch_init): Delete redundant assignment of
10414 extract_struct_value_address.
10415 * i386-tdep.c: Update copyright.
10416 (i386_gdbarch_init): Do not set extract_struct_value_address,
10417 never called.
10418 (i386_extract_struct_value_address): Delete function.
10419 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10420 extract_struct_value_address, never called.
10421 (sparc32_extract_struct_value_address): #if 0 function. Add
10422 comments explaining its future.
10423
756fe439
DJ
104242004-01-17 Daniel Jacobowitz <drow@mvista.com>
10425
10426 * arm-tdep.c (arm_write_pc): New function.
10427 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10428
e74f0f02
DJ
104292004-01-17 Daniel Jacobowitz <drow@mvista.com>
10430
10431 * breakpoint.c (must_shift_inst_regs): Delete.
10432 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10433 and SHIFT_INST_REGS.
10434 * infcmd.c (step_1, step_1_continuation): Delete references to
10435 SHIFT_INST_REGS.
10436 * infrun.c (keep_going): Likewise.
10437 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10438 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10439
b6cb9035
AC
104402004-01-17 Andrew Cagney <cagney@redhat.com>
10441
444a1e2e
AC
10442 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10443 * gdbarch.h, gdbarch.c: Re-generate.
10444 * infcmd.c (print_return_value): Delete reference to
10445 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10446
def7e6ed
AC
10447 * cris-tdep.c (cris_gdbarch_init): Do not set
10448 deprecated_extract_struct_value_address.
10449
07be497a
AC
10450 * xstormy16-tdep.c: Update copyright.
10451 (xstormy16_extract_struct_value_address): Update to current
10452 extract struct value address interface.
10453 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10454 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10455 current extract struct value address interface.
10456 (sh64_gdbarch_init): Set extract_struct_value_address.
10457
6b4d5c91
AC
10458 * cris-tdep.c: Update copyright.
10459 (cris_extract_struct_value_address): Delete function.
10460 (struct_return_address): Delete variable.
10461 (cris_store_struct_return): Do not set struct_return_address.
10462
464e0365
AC
10463 * mcore-tdep.c: Update copyright.
10464 (mcore_extract_struct_value_address): Delete function. Update
10465 comments.
10466 (mcore_gdbarch_init): Update.
10467 * mn10300-tdep.c: Update copyright.
10468 (mn10300_extract_struct_value_address): Delete function.
10469 (mn10300_gdbarch_init): Update.
10470 * v850-tdep.c: Update copyright.
10471 (v850_extract_struct_value_address): Delete.
10472 (v850_gdbarch_init): Update.
10473 * ns32k-tdep.c: Update copyright.
10474 (ns32k_extract_struct_value_address): Delete.
10475 (ns32k_gdbarch_init): Update.
10476 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10477 (hppa_gdbarch_init): Update.
10478 * vax-tdep.c: Update copyright.
10479 (vax_extract_struct_value_address): Delete.
10480 (vax_gdbarch_init): Update.
10481
afb18d0f
AC
10482 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10483 * gdbarch.h, gdbarch.c: Re-generate.
10484 * procfs.c (procfs_fetch_registers): Delete reference to
10485 DEPRECATED_NPC_REGNUM.
10486 (procfs_store_registers): Ditto.
10487 * regcache.c (generic_target_write_pc): Simplify.
10488 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10489
a698f53e
AC
10490 * core-sol2.c (fetch_core_registers): Replace
10491 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10492
adc11376
AC
10493 * hppa-tdep.c: Update copyright year.
10494 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10495 NPC_REGNUM.
10496 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10497
b6cb9035
AC
10498 * mips-tdep.c (mips_write_pc): New function.
10499 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10500 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10501 (mips_find_saved_regs, mips_software_single_step: Ditto.
10502 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10503 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10504
6d82d43b
AC
105052004-01-17 Andrew Cagney <cagney@redhat.com>
10506
10507 * mips-tdep.c: Re-indent. Group functions by ABI.
10508
71bd6bd4
AC
105092004-01-17 Andrew Cagney <cagney@redhat.com>
10510
10511 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10512 * gdbarch.c: Re-generate.
10513 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10514 DECR_PC_AFTER_BREAK to zero.
10515 * vax-tdep.c (vax_gdbarch_init): Ditto.
10516 * v850-tdep.c (v850_gdbarch_init): Ditto.
10517 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10518 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10519 * sh-tdep.c (sh_gdbarch_init): Ditto.
10520 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10521 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10522 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10523 * mips-tdep.c (mips_gdbarch_init): Ditto.
10524 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10525 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10526 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10527 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10528 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10529 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10530 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10531 * frv-tdep.c (frv_gdbarch_init): Ditto.
10532 * cris-tdep.c (cris_gdbarch_init): Ditto.
10533 * avr-tdep.c (avr_gdbarch_init): Ditto.
10534 * arm-tdep.c (arm_gdbarch_init): Ditto.
10535 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10536
a02abb62
JB
105372004-01-17 J. Brobecker <brobecker@gnat.com>
10538
10539 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10540 Delete, no longer used.
10541 (read_subrange_type): New function, mostly extracted from
10542 read_array_type().
10543 (read_array_type): Replace extracted code by call to
10544 read_subrange_type().
10545 (dwarf2_get_attr_constant_value): New function.
10546 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10547 (add_partial_symbol): Likewise.
10548 (process_die): Likewise.
10549 (new_symbol): Likewise.
10550 (read_type_die): Likewise.
10551
cf5b2f1b
AC
105522004-01-16 Andrew Cagney <cagney@redhat.com>
10553
10554 * symfile.c: Update copyright year.
10555 (compare_symbols): Delete unused function.
10556 * stabsread.c: Update copyright year.
10557 (lrs_general_complaint): Delete unused function.
10558 (ref_search_value): Ditto.
10559 (get_substring): Delete declaration.
10560 * sh64-tdep.c: Update copyright year.
10561 (sh64_get_gdb_regnum): Delete unused function.
10562 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10563 Delete unused function.
10564
d33b9831
MK
105652004-01-17 Mark Kettenis <kettenis@gnu.org>
10566
10567 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10568 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10569
7aea86e6
AC
105702004-01-16 Andrew Cagney <cagney@redhat.com>
10571
10572 Changes from Peter Schauer.
10573 * rs6000-tdep.c: Update copyright year.
10574 (rs6000_push_dummy_call): Update the stack pointer before
10575 accessing the corresponding stack region.
10576 * rs6000-nat.c: Update copyright year.
10577 (set_host_arch): Set "info.abfd" to "exec_bfd".
10578
26b0da32
MK
105792004-01-15 Mark Kettenis <kettenis@gnu.org>
10580
10581 * blockframe.c: Update copyright year.
10582 (inside_entry_func): Don't treat a zero PC specially.
10583
86fbe6cc
EZ
105842004-01-14 Elena Zannoni <ezannoni@redhat.com>
10585
10586 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10587 variable.
10588 (gcore_create_callback): Ditto. Skip any memory segment that has
10589 no permissions set.
10590
63d06c5c
DC
105912004-01-14 David Carlton <carlton@kealia.com>
10592
10593 Change symbols for C++ nested types to contain the fully qualified
10594 name, if possible. (At least in the DWARF-2 case.) Partial fix
10595 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10596 c++/895.
10597 * c-exp.y (qualified_type): Handle types nested within classes.
10598 * cp-namespace.c: Update comments.
10599 (cp_set_block_scope): Delete #if 0.
10600 (cp_lookup_nested_type): Handle types nested within classes.
10601 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10602 when appropriate.
10603 (add_partial_symbol): Add the name of the enclosing namespace to
10604 types.
10605 (pdi_needs_namespace): New.
10606 (add_partial_namespace): Tweak comment.
10607 (add_partial_structure): New.
10608 (psymtab_to_symtab_1): Initialize processing_current_prefix
10609 here...
10610 (process_die): instead of here.
10611 (read_structure_scope): Try to figure out the name of the class or
10612 namespace that the structure might be defined within.
10613 (read_enumeration): Generate fully-qualified names, if possible.
10614 (read_namespace): Don't set name to NULL.
10615 (die_specification): New.
10616 (new_symbol): Generate fully-qualified names for types.
10617 (read_type_die): Determine appropriate prefix.
10618 (determine_prefix): New.
10619 (typename_concat): New.
10620 (class_name): New.
10621 * valops.c (value_aggregate_elt): Pass NOSIDE to
10622 value_struct_elt_for_reference.
10623 (value_struct_elt_for_reference): Make static, add NOSIDE
10624 parameter, call value_maybe_namespace_elt as a last resort.
10625 (value_namespace_elt): Break out code into
10626 value_maybe_namespace_elt.
10627 (value_maybe_namespace_elt): New.
10628
87783b8b
AC
106292004-01-12 Andrew Cagney <cagney@redhat.com>
10630
10631 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10632 cooked floating-point registers.
10633 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10634 and value_to_register.
10635
6503b91e
AC
106362004-01-13 Andrew Cagney <cagney@redhat.com>
10637
10638 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10639 * gdbarch.c: Re-generate.
10640 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10641 FUNCTION_START_OFFSET.
10642 * v850-tdep.c (v850_gdbarch_init): Ditto.
10643 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10644 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10645 * sh-tdep.c (sh_gdbarch_init): Ditto.
10646 * s390-tdep.c (s390_gdbarch_init): Ditto.
10647 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10648 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10649 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10650 * mips-tdep.c (mips_gdbarch_init): Ditto.
10651 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10652 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10653 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10654 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10655 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10656 * i386-tdep.c (i386_gdbarch_init): Ditto.
10657 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10658 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10659 * frv-tdep.c (frv_gdbarch_init): Ditto.
10660 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10661 * cris-tdep.c (cris_gdbarch_init): Ditto.
10662 * avr-tdep.c (avr_gdbarch_init): Ditto.
10663 * arm-tdep.c (arm_gdbarch_init): Ditto.
10664 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10665
ea1dd7bc
DJ
106662004-01-13 Daniel Jacobowitz <drow@mvista.com>
10667
10668 * infrun.c (follow_fork_mode_ask): Remove.
10669 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10670 (follow_fork): Simplify and remove internal error for
10671 follow_fork_mode_ask.
10672 (_initialize_infrun): Update "set follow-fork-mode" help text.
10673
0f0cffd2
AC
106742004-01-13 Andrew Cagney <cagney@redhat.com>
10675
10676 * configure.in: Update copyright year.
10677 (build_warnings): Add -Wunused-label.
10678 * configure: Re-generate.
10679
de38af99
AC
106802004-01-12 Andrew Cagney <cagney@redhat.com>
10681
954a7fba
AC
10682 * exec.h (exec_ops): Make "extern".
10683
de38af99
AC
10684 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10685 the function is void.
10686 (mips_pseudo_register_write): Ditto.
10687
1a111ce3
AC
106882004-01-12 Andrew Cagney <cagney@redhat.com>
10689
10690 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10691 call. Never defined.
10692 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10693 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10694 (struct sparc_gregset, struct regcache): Ditto.
10695 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10696
48efe704
AC
106972004-01-12 Andrew Cagney <cagney@redhat.com>
10698
10699 * mi/ChangeLog: Delete file. Renamed to ...
10700 * mi/ChangeLog-1999-2003: New file.
10701 * tui/ChangeLog: Delete file. Renamed to ...
10702 * tui/ChangeLog-1998-2003: New file.
fe61caab 10703
a54124c5
MK
107042004-01-11 Mark Kettenis <kettenis@gnu.org>
10705
2ca62865
MK
10706 * sparc64nbsd-tdep.c: Include "regset.h".
10707 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10708 Remove variables.
10709 (fetch_core_registers): Remove function.
10710 (sparc64nbsd_core_fns): Remove variable.
10711 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10712 functions.
10713 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10714 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10715 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10716
ca9d58e9
MK
10717 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10718 sparc_extract_struct_value_address.
10719 (sparc32_gdbarch_init): Set extract_struct_value_address.
10720 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10721 function.
10722 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10723 return_value_on_stack.
10724
3cc87ec0
MK
10725 * NEWS: Mention that %cs and %ss have been added to the AMD64
10726 configurations
10727
5bf00f29
MK
10728 * frame.c: Update copyright year.
10729 (get_prev_frame): Improve comment.
10730
4f7ec84e
MK
10731 * sparc64fbsd-tdep.c: Include "regset.h".
10732 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10733 Remove variables.
10734 (fetch_core_registers): Remove function.
10735 (sparc64fbsd_core_fns): Remove variable.
10736 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10737 functions.
10738 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10739 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 10740 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 10741
4e7b0cd3
MK
10742 * sparcnbsd-tdep.c: Include "regset.h".
10743 (fetch_core_registers): Remove function.
10744 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
10745 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
10746 functions.
10747 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
10748 TDEP->fpregset.
46b58ce9 10749 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 10750
a54124c5
MK
10751 * sparc-tdep.h (struct regset): Provide opaque declaration.
10752 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
10753 fpregset and sizeof_fpregset members.
10754 * sparc-tdep.c (struct regset): Provide opaque declaration.
10755 (sparc_regset_from_core_section): New function.
10756 (sparc32_gdbarch_init): Initialize TDEP->gregset,
10757 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
10758 Set regset_from_core_section when appropriate.
10759
29ff87c5
MK
107602004-01-10 Mark Kettenis <kettenis@gnu.org>
10761
79b1ab3d
MK
10762 * x86-64-tdep.c (amd64_non_pod_p): New function.
10763 (amd64_classify_aggregate): Return class memory for non-POD
10764 C++ structure types.
10765
6470d250
MK
10766 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
10767 argument. Use it to reserve a register if necessary.
10768 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
10769 amd64_push_arguments.
10770
562c50c2
MK
10771 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
10772
af233647
MK
10773 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
10774 register numbers in comments.
10775 * x86-64-tdep.h: Update copyright year.
10776 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
10777 Adjust for addition of %cs and %ss.
10778 * amd64fbsd-nat.c: Update copyright year.
10779 (reg_offset): Add register offsets for %cs and %ss.
10780 * amd64fbsd-tdep.c: Update copyright year.
10781 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
10782 (amd64fbsd_sc_reg_offset): Likewise.
10783 * x86-64-linux-nat.c: Update copyright year.
10784 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
10785 and %ss.
10786 * amd64nbsd-nat.c: Update copyright year.
10787 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
10788 * amd64nbsd-tdep.c: Update copyright year.
10789 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
10790 * x86-64-linux-tdep.c: Update copyright year.
10791 (user_to_gdb_regmap): Add mapping for %cs and %ss.
10792 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
10793 * regformats/reg-x86-64.dat: Add %cs and %ss.
10794
29ff87c5
MK
10795 * blockframe.c (inside_entry_func): Reformat. Introduce new local
10796 variables to prevent long lines. Update comments to reflect
10797 reality.
10798
38d518c9
EZ
107992004-01-09 David Carlton <carlton@kealia.com>
10800
10801 Checked in by Elena Zannoni <ezannoni@redhat.com>.
10802 * dwarf2read.c (read_namespace): Pull out name-generating code
10803 into namespace_name. Rename previous_namespace to previous_prefix
10804 and processing_current_namespace to processing_current_prefix..
10805 (namespace_name): New function.
10806 (add_partial_symbol): Substitute uses of pdi->name with
10807 actual_name.
10808 * cp-support.h: Rename processing_current_namespace to
10809 processing_current_prefix.
10810 Update copyright year.
10811 * cp-namespace.c: Rename processing_current_namespace to
10812 processing_current_prefix.
10813 Update copyright year.
fe61caab 10814
1e4728e7
AC
108152004-01-09 Andrew Cagney <cagney@redhat.com>
10816
10817 * jv-valprint.c, ser-unix.c: Add missing copyright years.
10818
c77c642a
MK
108192004-01-09 Mark Kettenis <kettenis@gnu.org>
10820
10821 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
10822 complaining.
10823 (process_one_symbol): Deal with N_PATCH stabs.
10824
b44e9041
EZ
108252004-01-09 Elena Zannoni <ezannoni@redhat.com>
10826
10827 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
10828 ifdeffed code.
10829 Update copyright year.
38d518c9 10830
eccfb640
MC
108312004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10832
10833 * config/pa/tm-hppa.h: Update extern declarations for
10834 hppa32_hpux_frame_saved_pc_in_sigtramp,
10835 hppa32_hpux_frame_base_before_sigtramp, and
10836 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
10837
848c5feb
MC
108382004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10839
10840 * config/pa/tm-hppah.h: Update copyright years.
10841
3cc5d663
AC
108422004-01-08 Andrew Cagney <cagney@redhat.com>
10843
10844 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
10845 (mips_o32_reg_struct_has_addr): Delete function.
10846 (mips_gdbarch_init): Update.
10847 (mips_extract_struct_value_address): Delete function.
10848
bfec0b41
JJ
108492004-01-08 David Mosberger <davidm@hpl.hp.com>
10850
10851 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
10852 reality.
10853
16e109ca
AC
108542004-01-07 Andrew Cagney <cagney@redhat.com>
10855
6214a8a1
AC
10856 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
10857 architecture's elf flags (when available).
10858
8d5838b5
AC
10859 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
10860 FPU to the start, check the MIPS FPU when looking for an old
10861 architecture.
10862 (set_mipsfpu_single_command): Update the architecture.
10863 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
10864
480d3dd2
AC
10865 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
10866 (mips_mask_address_p): Add "tdep" parameter.
10867 (show_mask_address, mips_addr_bits_remove): Update.
10868 (mips_dump_tdep): Update.
10869 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
10870 (MIPS_STACK_ARGSIZE): Delete macro.
10871 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
10872 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
10873 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
10874 (mips_dump_tdep): Update.
10875 (MIPS_SAVED_REGSIZE): Delete macro.
10876 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
10877 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
10878 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
10879 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
10880 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
10881 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
10882 (mips_pop_frame, return_value_location): Update.
10883 (mips_n32n64_return_value, mips_dump_tdep): Update.
10884
ec03c1ac
AC
10885 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
10886 MIPS ABI.
10887
16e109ca
AC
10888 * mips-tdep.c: Update copyright.
10889 (mips_gdbarch_init): Merge two code blocks handling the register
10890 name and number layout.
10891
15255275
MS
108922004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
10893
10894 * tracepoint.c (validate_actionline): Fix segv at EOF
10895
9f9057da
MC
108962004-01-07 Michael Chastain <mec.gnu@mindspring.com>
10897
10898 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
10899 properly for static fields.
10900
0127c0d3 109012004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 10902 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
10903
10904 * disasm.c: Update copyright to include 2004.
10905 (do_mixed_source_and_assembly): For uiout asm list
10906 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 10907 NULL and do so prior to loop. Only reset when we close off
0127c0d3 10908 the tuple/list. Move check for whether to close off the
fe61caab 10909 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
10910 on each loop iteration.
10911
5269965e
AC
109122004-01-05 Andrew Cagney <cagney@redhat.com>
10913
54f1137d
AC
10914 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
10915 should be a switch case and not a label.
10916 * mips-tdep.c (mips32_next_pc): Delete unused labels
10917 "greater_equal_branch" and "less_zero_branch".
10918 * jv-valprint.c (java_print_value_fields): Delete unused label
10919 "flush_it".
10920
5269965e
AC
10921 * target.c (unpush_target): Only close a target that is in the
10922 target stack.
10923
dbc22fa1
MK
109242004-01-05 Mark Kettenis <kettenis@gnu.org>
10925
9515395e
MK
10926 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
10927 address from [sp + 64] instead of %o2.
10928
dbc22fa1
MK
10929 * frame.c (get_prev_frame): Don't try to unwind the PC. This
10930 fixes PR backtrace/1476.
10931
5439edaa
AC
109322004-01-05 Andrew Cagney <cagney@redhat.com>
10933
10934 * libunwind-frame.h (struct frame_id): Add opaque declaration,
10935 move to start of file.
10936 * i386-tdep.h (struct regcache): Add opaque declaration.
10937 * config/ia64/nm-linux.h (struct target_ops): Add opaque
10938 declaration.
10939 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
10940 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
10941 * win32-nat.c (fake_create_process): Use ISO C style definition.
10942 * stabsread.c (define_symbol): Delete #ifndef
10943 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
10944 stabs_argument_has_addr call, macro never defined.
10945
19061abe
MC
109462004-01-04 Michael Chastain <mec.gnu@mindspring.com>
10947
10948 * op50-rom.c: Delete.
10949 * w89k-rom.c: Delete.
10950 * Makefile.in: Remove references.
10951
e53bef9f
MK
109522004-01-04 Mark Kettenis <kettenis@gnu.org>
10953
10954 * x86-64-tdep.c: Update copyright year.
10955 (struct amd64_register_info): Rename from x86_64_register_info.
10956 (amd64_register_info): Rename from x86_64_register_info.
10957 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
10958 (amd64_register_name): Rename from x86_64_register_name.
10959 (amd64_register_type): Rename from x86_64_register_type.
10960 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
10961 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
10962 (amd64_dwarf_reg_to_regnum): Rename from
10963 x86_64_dwarf_reg_to_regnum.
10964 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
10965 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
10966 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
10967 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
10968 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
10969 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
10970 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
10971 (amd64_frame_cache): Rename from x86_64_frame_cache.
10972 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
10973 (amd64_frame_prev_register): Rename from
10974 x86_64_frame_prev_register.
10975 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
10976 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
10977 (amd64_sigtramp_frame_cache): Rename from
10978 x86_64_sigtramp_frame_cache.
10979 (amd64_sigtramp_frame_prev_register): Rename from
10980 x86_64_sigtramp_frame_prev_register.
10981 (amd64_sigtramp_frame_unwind): Rename from
10982 x86_64_sigtramp_frame_unwind.
10983 (amd64_sigtramp_frame_sniffer): Rename from
10984 x86_64_sigtramp_frame_sniffer.
10985 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
10986 (amd64_frame_base): Rename from x86_64_frame_base.
10987 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
10988 (amd64_frame_align): Rename from x86_64_frame_align.
10989 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
10990 (amd64_regset_from_core_section): Rename from
10991 x86_64_regset_from_core_section.
10992 (x86_64_init_abi): Update comments.
10993
fca6aa58
NR
109942004-01-04 Nick Roberts <nick@nick.uklinux.net>
10995
10996 * MAINTAINERS (write after approval): Add myself.
10997
8ada74e3
MK
109982004-01-04 Mark Kettenis <kettenis@gnu.org>
10999
11000 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11001 `float' arguments.
11002
5154b0cd
MK
110032004-01-04 Mark Kettenis <kettenis@gnu.org>
11004
11005 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11006 such that it mentions a specific version of GCC that exhibits this
11007 bug.
11008
fb316966
MK
110092004-01-03 Mark Kettenis <kettenis@gnu.org>
11010
200cc553
MK
11011 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11012 structure that has a single `float' member, store it in %f1 in
11013 addition to %f0.
11014
e226a4a0
MK
11015 * sparc-sol2-nat.c: Add missing '\'.
11016
b9d4c5ed
MK
11017 * sparc-tdep.c (sparc32_return_value): New function.
11018 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11019 Remove functions.
11020 (sparc32_gdbarch_init): Set return_value, don't set
11021 extract_return_value, store_return_value, use_struct_convention
11022 and return_value_on_stack.
11023
fb316966
MK
11024 * sparc-sol2-nat.c: Add missing ')'.
11025
1af510a8
JB
110262004-01-03 J. Brobecker <brobecker@gnat.com>
11027
11028 * infrun.c (handle_step_into_function): New function.
11029 (handle_inferior_event): Extract out some code into the new
11030 function above.
11031
5cf4d23a
JB
110322004-01-03 J. Brobecker <brobecker@gnat.com>
11033
11034 * infrun.c (handle_inferior_event): Move the declaration of
11035 real_stop_pc inside the if blocks where it is used.
11036
60af1db2
MK
110372004-01-03 Mark Kettenis <kettenis@gnu.org>
11038
11039 * sparc64-tdep.c (sparc64_16_byte_align_p)
11040 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11041 Use check_typedef to get subtypes of structures and unions.
11042 (sparc64_store_return_value): Fix calculation of the appropriate
11043 offset into VALBUF when storing a structure or union.
11044 (sparc64_return_value): New function.
11045 (sparc64_use_struct_convention): Remove function.
11046 (sparc64_init_abi): Set return_value, don't set
11047 extract_return_value, store_return_value and
11048 use_struct_convention.
11049
1a901d3f
EZ
110502004-01-03 Eli Zaretskii <eliz@elta.co.il>
11051
11052 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11053 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11054 gdb/config/alpha/xm-alphaosf.h,
11055 gdb/config/powerpc/tm-ppcle-eabi.h,
11056 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11057 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11058 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11059 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11060 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11061 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11062 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11063 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11064 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11065 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11066 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11067 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11068 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11069 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11070 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11071 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11072 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11073 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11074 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11075 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11076 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11077 Remove lines for .cvsignore files.
11078
ef52e463
JB
110792004-01-03 J. Brobecker <brobecker@gnat.com>
11080
11081 * infrun.c: Back out the previous change.
11082
cb1bf9dc
MK
110832004-01-03 Mark Kettenis <kettenis@gnu.org>
11084
f0424ef6
MK
11085 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11086 sparc-*-sunos4* to the list of REMOVED configurations.
11087
cb1bf9dc
MK
11088 * configure.tgt: Add back sparc-*-vxworks*.
11089 * remote-vxsparc.c: Remove all includes except for "defs.h",
11090 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11091 Include "sparc-tdep.h".
11092 (SPARC_R_G1): New define.
11093 (vxsparc_gregset): New variable.
11094 (ext_format_sparc): Remove extern declaration.
11095 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11096 sparc32_supply_fpregset.
11097 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11098 sparc_collect_rwindow and sparc32_collect_fpregset.
11099 * config/sparc/tm-vxworks.h: New file, based on recently removed
11100 tm-vxsparc.h.
11101 * config/sparc/vxworks.mt: New file, based on recently removed
11102 vxworks.mt.
fe61caab 11103
5e938f9f
JB
111042004-01-03 J. Brobecker <brobecker@gnat.com>
11105
11106 * infrun.c (handle_step_into_function): New function.
11107 (handle_inferior_event): Extract out some code into the new
11108 function above.
11109
386c036b
MK
111102004-01-02 Mark Kettenis <kettenis@gnu.org>
11111
11112 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11113 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11114 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11115 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11116 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11117 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11118 (sparc_nat_h): New variable.
11119 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11120 (tm-sun4os4.h): Remove dependency.
11121 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11122 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11123 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11124 sparc-tdep.o): Update dependencies.
11125 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11126 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11127 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11128 dependencies.
11129 * configure.host: Remove existing sparc-*-lynxos*,
11130 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11131 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11132 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11133 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11134 triplets.
11135 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11136 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11137 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11138 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11139 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11140 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11141 sparc64-*-solaris2* and sparc64-*-* triplets.
11142 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11143 "symtab.h" and "objfiles.h".
11144 (BIAS): Remove define.
11145 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11146 (X_DISP19): Remove macros.
11147 (sparc_fetch_instruction): Remove function.
11148 (struct gdbarch_tdep): Remove definition.
11149 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11150 (sparc_breakpoint_from_pc): Remove function.
11151 (struct sparc64_frame_cache): Remove definition.
11152 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11153 sparc64_unwind_pc): Remove functions.
11154 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11155 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11156 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11157 (sparc64_frame_cache): Change return type to `struct
11158 sparc_frame_cache *'. Simply call sparc_frame_cache.
11159 (sparc64_frame_this_id, sparc64_frame_prev_register,
11160 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11161 instead of `struct sparc64_frame_cache.
11162 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11163 sparc_analyze_control_transfer, sparc_software_single_step,
11164 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11165 _initialize_sparc64_tdep): Remove functions.
11166 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11167 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11168 macros.
11169 (sparc64_supply_gregset, sparc64_collect_gregset,
11170 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11171 (sparc64_init_abi): New function.
11172 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11173 inclusion guard. Include "sparc-tdep.h".
11174 (BIAS): Define.
11175 (r_tstate_offset, r_fprs_offset): New defines.
11176 (enum sparc_regnum): Remove defenition.
11177 (enum sparc64_regnum): Reformat.
11178 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11179 (sparc64_init_abi, sparc64_supply_gregset,
11180 sparc64_collect_gregset, sparc64_supply_fpregset,
11181 sparc64_collect_fpregset): New prototypes.
11182 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11183 Add extern declarations.
11184 (sparc64_sol2_init_abi): New prototype.
11185 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11186 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11187 prototypes.
11188 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11189 "sparnbsd-nat.h".
11190 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11191 functions.
11192 (_initialize_sparc64fbsd_nat): Remove initialization of
11193 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11194 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 11195 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
11196 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11197 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11198 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11199 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11200 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11201 (sparc64fbsd_r_y_offset): Remove variables.
11202 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11203 Make static and const.
11204 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11205 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11206 functions.
11207 (sparc64fbsd_gregset): New variable.
11208 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11209 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11210 and sparc64_supply_fpregset.
11211 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11212 (sparc64fbsd_sigtramp_frame_this_id)
11213 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11214 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11215 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11216 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11217 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11218 * sparcnbsd-tdep.c: Update copyright year. Include
11219 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11220 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11221 "value.h" and "sparcnbsd-tdep.h".
11222 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11223 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11224 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11225 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11226 defines.
11227 (sparcnbsd_gregset): New variable.
11228 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11229 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11230 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11231 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11232 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11233 variables.
11234 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11235 (sparc32nbsd_sigcontext_frame_this_id)
11236 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11237 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11238 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11239 (sparcnbsd_get_longjmp_target_32,
11240 sparcnbsd_get_longjmp_target_64): Remove functions.
11241 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11242 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11243 sparcnbsd_init_elf): Remove.
11244 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11245 (sparcnbsd_elf_init_abi): New functions.
11246 (_initialize_sparcnbsd_tdep): New prototype.
11247 (_initialize_sparnbsd_tdep): Update.
11248 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11249 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11250 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11251 * config/sparc/linux.mh: Update comment.
11252 (XM_FILE, HOST_IPC): Remove variables.
11253 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11254 sparc-linux-nat.o.
11255 * config/sparc/linux.mt: Update comment.
11256 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11257 * config/sparc/nbsd.mt: Reformat.
11258 * config/sparc/nbsd64.mh: Update comment.
11259 (NATDEPFILES): Add sparc-nat.o.
11260 * config/sparc/nbsd64.mt: Update comment.
11261 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11262 (TM_FILE): Set to tm-nbsd.h.
11263 * config/sparc/nbsdelf.mh: Update comment.
11264 (NATDEPFILES): Add sparc-nat.o.
11265 (XM_FILE): Delete.
11266 * config/sparc/nbsdaout.mh: Update comment.
11267 (NATDEPFILES): Add sparc-nat.o
11268 (XM_FILE): Delete.
11269 * config/sparc/nm-linux.h: Update copyright year. Don't include
11270 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11271 inclusion.
11272 (KERNEL_U_SIZE): Remove define.
11273 (kernel_u_size): Remove prototype.
11274 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11275 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11276 "regcache.h".
11277 (CHILD_PREPARE_TO_STORE): Remove define.
11278 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11279 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11280 sparcnbsd-nat.c: Rewrite files.
11281 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11282 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11283 sparcnbsd-tdep.h: Remove files.
11284 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11285 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11286 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11287 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11288 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11289 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11290 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11291 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11292 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11293 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11294 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11295 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11296 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11297 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11298 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11299 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11300 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11301 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11302 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11303
ee84457a
AC
113042004-01-02 Andrew Cagney <cagney@redhat.com>
11305
11306 From 2003-12-18 Kazuhiro Inaoka:
11307 * configure.host: Add m32r-linux target.
11308
0bc2134e
MC
113092004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11310
11311 * top.c (print_gdb_version): Update year to 2004.
11312
89a72f9c
MM
113132004-01-02 Mark Mitchell <mark@codesourcery.com>
11314
11315 * MAINTAINERS: Add myself to the write-after-approval category.
11316
86b013ed
DJ
113172004-01-02 Daniel Jacobowitz <drow@mvista.com>
11318
11319 From Bernardo Innocenti <bernie@develer.com>:
11320 * configure.tgt: Add uClinux target.
11321
e42c9534
AC
113222004-01-02 Andrew Cagney <cagney@redhat.com>
11323
11324 * utils.c (do_my_cleanups): Make static, add forward declaration.
11325 * defs.h (do_my_cleanups): Delete declaration.
11326
162467d3
EZ
113272004-01-02 Eli Zaretskii <eliz@elta.co.il>
11328
11329 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11330 bfd/ChangeLog-0203.
11331
78434e59
MK
113322004-01-02 Mark Kettenis <kettenis@gnu.org>
11333
11334 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11335 in <machine/reg.h>.
11336 * configure, config.in: Regenerate.
11337
48efe704
AC
11338For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11339tui/ChangeLog-1998-2003.
c906108c
SS
11340\f
11341Local Variables:
11342mode: change-log
11343left-margin: 8
11344fill-column: 74
11345version-control: never
11346End:
This page took 1.442034 seconds and 4 git commands to generate.