2004-09-12 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-09-12 Andrew Cagney <cagney@gnu.org>
2
3 * ppcnbsd-nat.c: Include "inf-ptrace.h".
4 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
5 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
6 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
7 target.
8 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
9 inf-ptrace.o and inf-child.o.
10 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
11 * Makefile.in: Update dependencies.
12
13 2004-09-11 Andrew Cagney <cagney@gnu.org>
14
15 * language.c (hex_string, hex_string_custom): Move from here ...
16 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
17 (CELLSIZE): Increase to 50.
18 * language.h (hex_string, hex_string_custom): Move from here ...
19 * defs.h: ... to here.
20 * Makefile.in: Update all dependencies.
21
22 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
23
24 * language.c (local_hex_format_custom): Remove.
25 (local_hex_string): Rename to hex_string, use C format, and move to
26 utils.c
27 (local_hex_string_custom): Rename to hex_string_custom and change
28 interface. Now uses C format. Move to utils.c
29 (local_octal_format_custom): Remove.
30 (local_decimal_format_custom): Remove.
31 (unknown_language_defn): Remove language-specific number
32 formatting entries.
33 (auto_language_defn): Ditto.
34 (local_language_defn): Ditto.
35 * language.h (struct language_format_info): Delete declaration.
36 (struct language_defn): Remove language_format_info fields
37 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
38 (local_binary_format): Remove macro.
39 (local_binary_format_prefix): Remove macro.
40 (local_binary_format_specifier): Remove macro.
41 (local_binary_format_suffix): Remove macro.
42 (local_octal_format): Remove macro.
43 (local_octal_format_prefix): Remove macro.
44 (local_octal_format_specifier): Remove macro.
45 (local_octal_format_suffix): Remove macro.
46 (local_decimal_format): Remove macro.
47 (local_decimal_format_prefix): Remove macro.
48 (local_decimal_format_specifier): Remove macro.
49 (local_decimal_format_suffix): Remove macro.
50 (local_hex_format): Remove macro.
51 (local_hex_format_prefix): Remove macro.
52 (local_hex_format_specifier): Remove macro.
53 (local_hex_format_suffix): Remove macro.
54 (local_decimal_format_custom): Remove.
55 (local_octal_format_custom): Remove.
56 (local_hex_format_custom): Remove.
57 (local_hex_string): Rename to hex_string and move to defs.h.
58 (local_hex_string_custom): Rename to hex_string_custom, change
59 interface, and move to defs.h.
60 * utils.c: (int_string): New function.
61 (hex_string): New function (from language.c).
62 (hex_string_custom): New function (from language.c).
63 (octal2str): New function.
64 (decimal2str): Add width parameter.
65 (paddr_u): Use new decimal2str interface.
66 (paddr_d): Ditto.
67 * defs.h (hex_string): Declare.
68 (hex_string_custom): Declare.
69 (int_string): Declare.
70 * printcmd.c (print_scalar_formatted): Remove localized binary
71 formatting.
72 * valprint.c (print_longest): Use int_string.
73 (print_floating): Use C hex format.
74 (print_hex_chars): Ditto.
75 (print_binary_chars): Remove language-specific formatting.
76 (print_octal_chars): Use C octal format.
77 (print_decimal_chars): Delocalize format.
78 (print_decimal): Remove.
79 * ada-lang.c (ada_language_defn): Remove language-specific number
80 formatting entries.
81 * p-lang.c (pascal_language_defn): Ditto.
82 * c-lang.c (c_language_defn): Ditto.
83 (cplus_language_defn): Ditto.
84 (asm_language_defn): Ditto.
85 (minimal_language_defn): Ditto.
86 * f-lang.c (f_language_defn): Ditto.
87 * jv-lang.c (java_language_defn): Ditto.
88 * m2-lang.c (m2_language_defn): Ditto.
89 * scm-lang.c (scm_language_defn): Ditto.
90 * objc-lang.c (objc_language_defn): Ditto.
91 * memattr.c (mem_info_command): Use renamed hex_string_custom with
92 new interface.
93 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
94 * ui-out.c (ui_out_field_core_addr): Ditto.
95 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
96 * exec.c (print_section_info): Ditto.
97 * i387-tdep.c (print_i387_status_word): Ditto.
98 (print_i387_control_word): Ditto.
99 (i387_print_float_info): Ditto.
100 * maint.c (maint_print_section_info): Ditto.
101 * solib.c (info_sharedlibrary_command): Ditto.
102 * somsolib.c (som_sharedlibrary_info_command): Ditto.
103 * symtab.c (print_msymbol_info): Ditto.
104 * tracepoint.c (tracepoints_info): Ditto.
105 * solib-frv.c (lm_base): Ditto.
106 (frv_current_sos): Ditto.
107 (enable_break2): Ditto.
108 (enable_break): Ditto.
109 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
110 (process_one_symbol): Ditto.
111 * infcmd.c (program_info): Ditto.
112 * mdebugread.c (parse_partial_symbols): Ditto.
113 * symfile.c (add_symbol_file_command): Ditto.
114 * cli/cli-cmds.c (edit_command): Ditto.
115 (list_command): Ditto.
116 * infcall.c (call_function_by_hand): Ditto.
117 * remote-vx.c (vx_run_files_info): Ditto.
118 (vx_wait): Ditto.
119 (vx_attach): Ditto.
120 (vx_detach): Ditto.
121 (vx_kill): Ditto.
122 * aix-thread.c (pdc_symbol_addrs): Ditto.
123 (pdc_read_regs): Ditto.
124 (pdc_write_regs): Ditto.
125 (pdc_read_data): Ditto.
126 (pdc_write_data): Ditto.
127 * d10v-tdep.c (display_trace): Ditto.
128 * rs6000-nat.c (find_toc_address): Ditto.
129 * aix-thread.c: Don't include language.h.
130 * buildsym.c: Ditto.
131 * dbxread.c: Ditto.
132 * mdebugread.c: Ditto.
133 * rs6000-nat.c: Ditto.
134 * buildsym.c (make_blockvector): Use renamed hex_string.
135
136 2004-09-10 Jason Molenda (jmolenda@apple.com)
137
138 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
139 chars after 'if' or 'while' commands in user-defined commands.
140
141 2004-09-08 Jim Blandy <jimb@redhat.com>
142
143 Fix bug reported and analyzed by Olivier Crete:
144 * symfile.c (copy_section_addr_info): New function.
145 (symbol_file_add_with_addrs_or_offsets): Use it to save the
146 original set of address arguments, instead of handwritten code
147 that uses one length to allocate and a different length to
148 initialize. Use make_cleanup_free_section_addr_info.
149 * symfile.h (copy_section_addr_info): New declaration.
150 * utils.c: #include "symfile.h".
151 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
152 New functions.
153 * defs.h (make_cleanup_free_section_addr_info): New declaration.
154 * Makefile.in (utils.o): Update dependencies.
155
156 2004-09-08 Andrew Cagney <cagney@gnu.org>
157
158 * thread-db.c (keep_thread_db): Delete.
159 (thread_db_new_objfile, thread_db_create_inferior)
160 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
161
162 2004-09-08 Mark Kettenis <kettenis@gnu.org>
163
164 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
165 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
166 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
167 (i386_frameless_signal_p): Remove prototype.
168 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
169 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
170 I386_SSE_NUM_REGS.
171 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
172 instead of FP0_REGNUM.
173 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
174 of FP0_REGNUM and FPC_REGNUM.
175
176 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
177 (sunos_solib_create_inferior_hook): Don't call
178 sunos_relocate_main_executable.
179
180 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
181 solib_svr4_fetch_link_map_offsets to
182 svr4_ilp32_fetch_link_map_offsets.
183 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
184 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
185 svr4_ilp32_fetch_link_map_offsets.
186 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
187
188 2004-09-07 Jim Blandy <jimb@redhat.com>
189
190 * frame.h (frame_register): Doc fix.
191
192 2004-09-07 Andrew Cagney <cagney@gnu.org>
193
194 * vx-share/wait.h: Delete #ifdef USG.
195 * utils.c (request_quit): Ditto.
196 * tui/tui.c (tui_reset): Ditto.
197 * remote.c: Ditto.
198 * remote-sds.c: Ditto.
199 * remote-rdi.c: Ditto.
200 * mdebugread.c: Ditto.
201 * m68klinux-nat.c: Ditto.
202 * infttrace.c: Ditto.
203 * infptrace.c: Ditto.
204 * i386v-nat.c: Ditto.
205 * exec.c: Ditto.
206 * dbxread.c: Ditto.
207 * core-aout.c: Ditto.
208
209 2004-09-05 Joel Brobecker <brobecker@gnat.com>
210
211 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
212 heuristic_proc_desc.
213 (mips_insn32_frame_cache): Likewise.
214
215 2004-09-04 Joel Brobecker <brobecker@gnat.com>
216
217 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
218 left behind by error.
219
220 2004-09-04 Joel Brobecker <brobecker@gnat.com>
221
222 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
223 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
224
225 2004-09-04 Joel Brobecker <brobecker@gnat.com>
226
227 * config/rs6000/xm-aix4.h: Remove this file.
228 * config/rs6000/aix4.mh (XM_FILE): Delete.
229
230 2004-09-04 Joel Brobecker <brobecker@gnat.com>
231
232 * config/rs6000/xm-rs6000.h: Remove this file.
233 * config/rs6000/rs6000.mh (XM_FILE): Remove.
234
235 2004-09-03 Andrew Cagney <cagney@gnu.org>
236
237 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
238 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
239 only use.
240
241 * mips-tdep.c (temp_saved_regs): Delete.
242 (set_reg_offset): Replace saved_regs parameter with this_cache.
243 (heuristic_proc_desc, mips16_heuristic_proc_desc)
244 (mips32_heuristic_proc_desc): Add this_cache parameter.
245 (mips_insn32_frame_cache, mips_insn16_frame_cache)
246 (after_prologue): Pass a NULL this_cache.
247
248 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
249 non-kernel trap prologues.
250
251 * mips-tdep.c (find_proc_desc): Delete function.
252 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
253 simplify.
254 (mips_insn16_frame_cache): Replace find_proc_desc with code from
255 mips_insn32_frame_cache.
256
257 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
258 Simplify as NEXT_FRAME is NULL.
259 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
260
261 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
262 local variable.
263 (mips_skip_prologue): Update.
264
265 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
266 "cur_frame" parameter.
267 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
268 (mips_insn32_frame_cache, find_proc_desc): Update
269
270 * config/vax/nm-obsd.h: Delete file.
271 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
272 * config/vax/nm-nbsd.h: Delete file.
273 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
274 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
275 * config/sh/nm-nbsd.h: Delete file.
276 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
277 * config/rs6000/nm-rs6000ly.h: Delete file.
278 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
279 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
280 * config/powerpc/nm-obsd.h: Delete file.
281 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
282 * config/powerpc/nm-nbsd.h: Delete file.
283 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
284 * config/pa/nm-obsd.h: Delete file.
285 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
286 * config/mips/nm-nbsd.h: Delete file.
287 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
288 * config/m88k/nm-obsd.h: Delete file.
289 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
290 * config/m68k/nm-nbsd.h: Delete file.
291 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
292 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
293 * config/i386/nm-nbsd.h: Delete file.
294 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
295 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
296 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
297 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
298 * config/i386/nm-i386lynx.h: Delete file.
299 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
300 * config/arm/nm-nbsd.h: Delete file.
301 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
302 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
303
304 * config/i386/tm-fbsd.h: Delete file.
305 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
306 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
307
308 * config/rs6000/tm-rs6000-aix4.h: Delete file.
309 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
310 * config/rs6000/aix4.mt (TM_FILE): Set to
311 config/rs6000/tm-rs6000.h.
312 * config/powerpc/tm-ppc-aix.h: Delete file.
313 * config/powerpc/aix.mt (TM_FILE): Set to
314 config/rs6000/tm-rs6000.h.
315 * config/m68k/tm-linux.h: Delete file.
316 * config/m68k/linux.mt (TM_FILE): Set to solib.h
317 * config/i386/tm-linux64.h: Delete file.
318 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
319 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
320
321 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
322 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
323 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
324 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
325 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
326 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
327 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
328 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
329 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
330
331 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
332 gdb_host_cpu.
333
334 2004-09-02 Joel Brobecker <brobecker@gnat.com>
335
336 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
337 Minor reformatting. Some code factoring.
338
339 2004-09-02 Andrew Cagney <cagney@gnu.org>
340
341 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
342 * config/vax/tm-nbsd.h: Delete file.
343 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
344 * config/sparc/tm-vxworks.h: Delete file.
345 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
346 * config/sparc/tm-nbsd.h: Delete file.
347 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
348 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
349 * config/sparc/tm-linux.h: Delete file.
350 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
351 * config/s390/tm-linux.h: Delete file.
352 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
353 * config/pa/tm-bsd.h: Delete file.
354 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
355 * config/m68k/tm-obsd.h: Delete file.
356 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
357 * config/m68k/tm-nbsd.h: Delete file.
358 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
359 * config/i386/tm-vxworks.h: Delete file.
360 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
361 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
362 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
363 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
364 * config/i386/tm-nbsd.h: Delete file.
365 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
366 * config/i386/tm-i386lynx.h: Delete file.
367 * config/cris/cris.mt (TM_FILE): Set to solib.h.
368 * config/cris/tm-cris.h: Delete file.
369
370 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
371 * configure: Re-generate.
372 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
373 * config/arm/tm-nbsd.h: Delete file.
374
375 * config/powerpc/tm-ppcle-sim.h: Delete.
376 * config/powerpc/tm-ppcle-eabi.h: Delete.
377 * config/powerpc/tm-nbsd.h: Delete.
378 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
379 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
380 tm-ppcle-eabi.h.
381
382 * config/i386/nto.mh (NAT_FILE): Delete.
383 * config/i386/nm-nto.h: Delete.
384
385 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
386 * config/m68k/tm-os68k.h: Ditto.
387 * config/m68k/tm-monitor.h: Ditto.
388 * config/m68k/tm-cisco.h: Ditto.
389 * config/m68k/st2000.mt (TM_FILE): Delete.
390 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
391 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
392 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
393 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
394
395 * config/m68k/tm-st2000.h: Delete.
396 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
397 * config/sparc/fbsd.mt (TM_FILE): Delete.
398 * config/sparc/tm-fbsd.h: Delete.
399
400 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
401 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
402 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
403
404 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
405 GDB_TM_FILE and GDB_XM_FILE.
406 * gdbarch.c: Re-generate.
407 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
408 quotes in macro definition.
409 * configure.in: Re-generate.
410
411 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
412 validating architecture methods.
413 * gdbarch.c: Re-generate.
414
415 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
416 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
417 GDB_MULTI_ARCH_PARTIAL.
418 * gdbarch.h: Re-generate.
419
420 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
421 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
422 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
423 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
424 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
425 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
426 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
427 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
428 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
429 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
430 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
431 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
432
433 2004-09-01 Andrew Cagney <cagney@gnu.org>
434
435 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
436 and main_func_highpc.
437 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
438 * objfiles.c (init_entry_point_info, objfile_relocate): Update
439 * nlmread.c (nlm_symfile_read): Update.
440
441 2004-09-01 Joel Brobecker <brobecker@gnat.com>
442
443 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
444 (mips_insn32_frame_cache): Inline call to find_proc_desc.
445 (find_proc_desc): Remove dead code.
446
447 2004-09-01 Joel Brobecker <brobecker@gnat.com>
448
449 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
450
451 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
452
453 * observer.sh: Add struct so_list declaration.
454 * Makefile.in: Add dependencies on observer.h for solib.c and
455 breakpoint.c.
456 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
457 function.
458 (_initialize_breakpoint): Register
459 disable_breakpoints_in_unloaded_shlib as an observer of the
460 "solib unloaded" observation event.
461 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
462 call decode_line_1 so unfound breakpoint errors are silent.
463 * solib.c (update_solib_list): When a solib is discovered to have
464 been unloaded by the program, notify all observers of the
465 "solib unloaded" observation event.
466
467 2004-09-01 Andrew Cagney <cagney@gnu.org>
468
469 * frame.c: Include "objfiles.h".
470 (inside_main_func): New function.
471 (get_prev_frame): Use new inside_main_func.
472 * Makefile.in (frame.o): Update dependencies.
473 * defs.h (inside_main_func): Delete declaration.
474 * blockframe.c (inside_main_func): Delete function.
475
476 2004-08-31 Jim Blandy <jimb@redhat.com>
477
478 * dwarf2read.c (is_vtable_name): New function, based on logic from
479 read_structure_type, but passing the correct length to strncmp,
480 and using 'sizeof' instead of 'strlen'.
481 (read_structure_type): Call it.
482
483 2004-08-31 Joel Brobecker <brobecker@gnat.com>
484
485 * config/powerpc/aix.mh: Add comment.
486
487 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
488
489 * MAINTAINERS: Add self to Write-After-Approval.
490
491 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
492
493 * MAINTAINERS: Add self to Write-After-Approval.
494
495 2004-08-30 Andrew Cagney <cagney@gnu.org>
496
497 Fix PR breakpoints/1757.
498 * infrun.c (struct execution_control_state): Replace
499 remove_breakpoints_on_following_step with
500 step_after_step_resume_breakpoint.
501 (init_execution_control_state): Update.
502 (handle_inferior_event): For signals, when stepping off a
503 breakpoint, set step_after_step_resume_breakpoint. When
504 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
505 (keep_going): Delete code handling
506 remove_breakpoints_on_following_step.
507
508 2004-08-29 David Lecomber <david@streamline-computing.com>
509
510 Fix PR gdb/648
511 * language.h (enum array_ordering): New enum.
512 * language.h (struct language_defn): New la_array_ordering
513 attribute.
514 * language.c (unknown_language_defn, auto_language_defn)
515 (local_language_defn): Ditto.
516 * ada-lang.c (ada_language_defn): Ditto.
517 * c-lang.c (c_language_defn, cplus_language_defn)
518 (asm_language_defn, minimal_language_defn): Ditto.
519 * f-lang.c (f_language_defn): Ditto.
520 * jv-lang.c (java_language_defn): Ditto.
521 * m2-lang.c (f_language_defn): Ditto.
522 * objc-lang.c (objc_language_defn): Ditto.
523 * p-lang.c (pascal_language_defn): Ditto.
524 * scm-lang.c (scm_language_defn): Ditto.
525 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
526 oriented large to small in type structure.
527 * dwarf2read.c (read_array_order): New function.
528 (read_array_type): Use read_array_order to check row/column
529 major ordering.
530
531 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
532
533 * target.c (target_resize_to_sections): Check
534 current_target.to_sections for an old value when updating.
535
536 2004-08-27 Joel Brobecker <brobecker@gnat.com>
537
538 * procfs.c (dbx_link_bpt_addr): New static global variable.
539 (dbx_link_shadow_contents): New static global variable.
540 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
541 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
542 if we just hit it.
543 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
544 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
545 from run to run.
546 (procfs_create_inferior): Remove syssgi syscall-exit notifications
547 after the inferior has been forked.
548 (remove_dbx_link_breakpoint): New function.
549 (dbx_link_addr): New function.
550 (insert_dbx_link_bpt_in_file): New function.
551 (insert_dbx_link_bpt_in_region): New function.
552 (insert_dbx_link_breakpoint): New function.
553 (proc_trace_syscalls_1): New function, extracted from
554 proc_trace_syscalls.
555 (proc_trace_syscalls): Replace extract code by call to
556 proc_trace_syscalls_1.
557 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
558 is no longer valid.
559
560 2004-08-25 Jim Blandy <jimb@redhat.com>
561
562 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
563
564 2004-08-25 Andrew Cagney <cagney@gnu.org>
565
566 * infrun.c (struct execution_control_state): Delete field
567 "stepping_through_sigtramp".
568 (init_execution_control_state): Do not set same.
569 (context_switch): Do not pass same to save_infrun_state and
570 load_infrun_state.
571 * gdbthread.h (struct thread_info): Delete field
572 stepping_through_sigtramp.
573 (save_infrun_state, load_infrun_state): Delete parameter
574 stepping_through_sigtramp.
575 * thread.c (load_infrun_state, save_infrun_state): Update.
576
577 * infrun.c: Re-indent. Move expression operators to the beginning
578 of the line. Remove long disabled #if 0 code.
579
580 2004-08-24 Andrew Cagney <cagney@gnu.org>
581
582 * doublest.h (floatformat_ieee_quad): Rename
583 floatformat_ia64_quad.
584 * doublest.c (floatformat_ieee_quad): Rename
585 floatformat_ia64_quad.
586 (_initialize_doublest): Update.
587
588 2004-08-24 Jim Blandy <jimb@redhat.com>
589
590 * dwarf2expr.h (struct dwarf_expr_context): New members
591 'num_pieces' and 'pieces', for returning the result of an
592 expression that uses DW_OP_piece.
593 (struct dwarf_expr_piece): New struct type.
594 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
595 pieces.
596 (free_dwarf_expr_context): Free pieces, if any.
597 (add_piece): New function.
598 (execute_stack_op): Implement DW_OP_piece.
599 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
600 expression is a list of pieces, print an error message.
601 (dwarf2_loc_desc_needs_frame): If the expression yields
602 pieces, and any piece is in a register, then we need a frame.
603
604 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
605 the stack until we've decided what sort of result the evaluation
606 has produced. Use separate variables, with more specific names.
607
608 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
609
610 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
611 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
612 (arm_netbsd_init_abi_common): Register them.
613
614 2004-08-22 Mark Kettenis <kettenis@gnu.org>
615
616 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
617
618 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
619 safe_frame_unwind_memory instead of target_read_memory.
620
621 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
622 Reorder includes.
623 (fetch_register, store_register): Remove prototypes.
624 (child_resume): Reorganize code and comments such that it is
625 grouped a bit more logically.
626 (attach): Explicitly compare errno against 0.
627 (detach): Likewise. Use perror_with_name instead of
628 print_sys_errmsg.
629 * Makefile.in (infptrace.o): Update dependencies.
630
631 * ia64-linux-nat.c: Update copyright year.
632 (fetch_debug_register, store_debug_register)
633 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
634 PTRACE_TYPE_ARG3.
635 * config/ia64/nm-linux.h: Update copyright year.
636 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
637
638 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
639 from CORE_ADDR to struct frame_info *. Use
640 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
641 (amd64_linux_sigtramp_p): Adjust for changed signature of
642 and64_linux_sigtramp_start
643
644 * gdb_ptrace.h: GNU/Linux.
645
646 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
647 Remove defines.
648
649 * infptrace.c: Include "gdb_assert.h".
650 (PTRACE_XFER_TYPE): Remove define.
651 (offsetof): Only define if U_REGS_OFFSET isn't defined.
652 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
653 Tweak comment.
654 (fetch_inferior_registers, store_inferior_registers): Remove
655 redundant culry braces. Tweak comment. s/regno/regnum.
656 * Makefile.in (infptrace.o): Update dependencies.
657
658 * configure.in: Change test for return type of ptrace to default
659 to `long' instead of `int'.
660 * configure: Regenerate.
661
662 2004-08-21 Mark Kettenis <kettenis@gnu.org>
663
664 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
665
666 * configure.in: Check for ttrace function.
667 * configure, config.in: Regenerate.
668
669 * gdb_ptrace.h: New file.
670 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
671 <sys/ptrace.h>.
672 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
673 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
674 (attach): Don't define PT_ATTACH.
675 (detach): Don't define PT_DETACH.
676 * Makefile.in (gdb_ptrace_h): New variable.
677 (infptrace.o): Update dependencies.
678
679 2004-08-16 Mark Kettenis <kettenis@gnu.org>
680
681 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
682 instead of `int' if not already defined.
683 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
684 PTRACE_TYPE_ARG3.
685 * infptrace.c (call_ptrace): Revert change that replaced
686 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
687
688 2004-08-15 Mark Kettenis <kettenis@gnu.org>
689
690 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
691 Remove defines.
692
693 * linux-nat.c (kill_inferior): Add missing third and fourth
694 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
695
696 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
697 PTRACE_TYPE_RET.
698
699 * proc-why.c (proc_prettyfprint_why): Fix format string.
700
701 * solib-osf.c (osf_current_sos): Remove unsused label.
702
703 * configure.in: Add <ncurses/ncurses.h> to the list of possible
704 curses headers.
705 * configure, config.in: Regenerate.
706 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
707 <ncurses/ncurses.h>.
708
709 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
710 * config/nm-nbsd.h: Update copyright year.
711 (PTRACE_ARG3_TYPE): Remove define.
712
713 * sparc-nat.c (fetch_inferior_registers)
714 (store_inferior_registers, sparc_xfer_wcookie):
715 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
716
717 * alphabsd-nat.c (fetch_inferior_registers):
718 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
719 PTRACE_TYPE_ARG3.
720 * amd64bsd-nat.c (fetch_inferior_registers)
721 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
722 PTRACE_TYPE_ARG3.
723 * armnbsd-nat.c: Update copyright year.
724 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
725 (store_register, store_regs, store_fp_register, store_fp_regs):
726 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
727 * hppabsd-nat.c (fetch_inferior_registers)
728 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
729 PTRACE_TYPE_ARG3.
730 * i386bsd-nat.c (fetch_inferior_registers)
731 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
732 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
733 * m68kbsd-nat.c (fetch_inferior_registers)
734 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
735 PTRACE_TYPE_ARG3.
736 * m88kbsd-nat.c (fetch_inferior_registers)
737 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
738 PTRACE_TYPE_ARG3.
739 * mipsnbsd-nat.c: Update copyright year.
740 (fetch_inferior_registers, store_inferior_registers):
741 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
742 * ns32knbsd-nat.c: Update copyright year.
743 (fetch_inferior_registers, store_inferior_registers):
744 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
745 * ppcnbsd-nat.c (fetch_inferior_registers):
746 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
747 PTRACE_TYPE_ARG3.
748 * ppcobsd-nat.c (fetch_inferior_registers):
749 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
750 PTRACE_TYPE_ARG3.
751 * shnbsd-nat.c: Update copyright year.
752 (fetch_inferior_registers, store_inferior_registers):
753 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
754 * vaxbsd-nat.c (fetch_inferior_registers)
755 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
756 PTRACE_TYPE_ARG3.
757
758 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
759 PTRACE_TYPE_ARG3.
760 * infptrace.c (call_ptrace, child_resume, attach, detach)
761 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
762 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
763 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
764 PTRACE_TYPE_ARG3.
765
766 2004-08-14 Mark Kettenis <kettenis@gnu.org>
767
768 * defs.h: Remove out-of-date comment.
769 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
770 [!GETENV_PROVIDED] (getenv): Remove prototype.
771
772 * standalone.c: Remove file.
773 * Makefile.in (standalone.o): Remove dependency.
774
775 * i386-linux-nat.c (dummy_sse_values): Remove function and
776 prototype.
777 (i386_linux_dr_get): Fix typo in comment.
778 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
779
780 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
781
782 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
783 from declaration.
784 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
785 from definition.
786
787 2004-08-13 Mark Kettenis <kettenis@gnu.org>
788
789 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
790 parenthesis in definition.
791 * configure: Regenerated.
792
793 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
794
795 * PROBLEMS: Mention build/1411.
796
797 2004-08-09 Robert Millan <robertmh@gnu.org>
798
799 Committed by Nathanael Nerode.
800 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
801 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
802
803 2004-08-12 Andrew Cagney <cagney@gnu.org>
804
805 * NEWS: Mention fixes in GDB 6.2.1.
806 * PROBLEMS: Remove mention of mips-irix.
807
808 2004-08-11 Joel Brobecker <brobecker@gnat.com>
809
810 * config/powerpc/xm-aix.h: Delete.
811 * config/powerpc/aix.mh (MH_FILE): Remove.
812 * config/powerpc/aix432.mh (MH_FILE): Remove.
813
814 2004-08-11 Joel Brobecker <brobecker@gnat.com>
815
816 * config/powerpc/aix.mh: Remove obsolete comment.
817 * config/powerpc/aix432.mh: Likewise.
818
819 2004-08-11 Joel Brobecker <brobecker@gnat.com>
820
821 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
822
823 2004-08-11 Joel Brobecker <brobecker@gnat.com>
824
825 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
826 this file is now empty.
827 * config/xm-aix4.h: Remove, this file is no longer included
828 anywhere.
829
830 2004-08-11 Joel Brobecker <brobecker@gnat.com>
831
832 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
833 that file is now empty.
834 (termdef): Remove prototype, function no longer used.
835
836 2004-08-11 Joel Brobecker <brobecker@gnat.com>
837
838 * doc/gdbint.texinfo (Host Definition): Remove documentation
839 for USE_O_NOCTTY, no longer used.
840 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
841 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
842
843 2004-08-11 Joel Brobecker <brobecker@gnat.com>
844
845 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
846 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
847 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
848
849 2004-08-11 Mark Kettenis <kettenis@gnu.org>
850
851 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
852 instead of FIVE_ARG_PTRACE.
853
854 * inflow.c (O_NOCTTY): Define to zero if not already defined.
855 (new_tty): Use O_NOCTTY unconditionally.
856
857 2004-08-10 Mark Kettenis <kettenis@gnu.org>
858
859 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
860 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
861 fflush on stdout.
862
863 2004-08-10 Joel Brobecker <brobecker@gnat.com>
864
865 * xcoff_symfile_finish: Replace last call to xmfree by call
866 to xfree.
867
868 2004-08-10 Andrew Cagney <cagney@gnu.org>
869
870 * main.c (captured_main): Delete call to init_malloc.
871 * defs.h (init_malloc): Delete declaration.
872 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
873 (init_malloc): Delete functions.
874
875 * defs.h (xmfree): Delete.
876 * utils.c (xmfree): Delete function.
877 (xfree): Inline calls to xmfree and mfree.
878 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
879 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
880 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
881 * somread.c (som_symfile_finish): Ditto.
882 * objfiles.c (allocate_objfile, free_objfile):
883 * nlmread.c (nlm_symfile_finish): Ditto.
884 * hpread.c (hpread_symfile_finish): Ditto.
885 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
886 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
887 * coffread.c (coff_symfile_finish): Ditto.
888
889 * defs.h (xmcalloc): Delete declaration.
890 * utils.c (xmcalloc): Delete.
891 (xcalloc): Inline calls to xmcalloc and mcalloc.
892 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
893 xcalloc and xfree.
894 * symtab.c (create_demangled_names_hash): Ditto.
895
896 * defs.h (xmrealloc): Delete.
897 * utils.c (xmrealloc): Delete.
898 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
899 * symmisc.c (extend_psymbol_list): Use xrealloc.
900 * source.c (find_source_lines): Ditto.
901 * hpread.c (hpread_lookup_type): Ditto.
902 * dbxread.c (add_bincl_to_list): Ditto.
903
904 * utils.c (xmmalloc): Delete.
905 (xmalloc): Inline xmmalloc and mmalloc calls.
906 (msavestring): Use xmalloc.
907 * defs.h (xmmalloc): Delete declaration.
908 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
909 xmmalloc.
910 * symmisc.c (extend_psymbol_list): Ditto.
911 * symfile.c (init_psymbol_list): Ditto.
912 * source.c (find_source_lines): Ditto.
913 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
914 * elfread.c (elf_symtab_read): Ditto.
915 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
916 * coffread.c (coff_symfile_init): Ditto.
917
918 2004-08-10 David Carlton <carlton@bactrian.org>
919
920 * MAINTAINERS: Remove David Carlton from c++ testsuite
921 maintainers.
922
923 2004-08-10 Jerome Guitton <guitton@gnat.com>
924
925 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
926 print a line feed before the prompt.
927
928 2004-08-10 Mark Kettenis <kettenis@gnu.org>
929
930 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
931
932 2004-08-09 Joel Brobecker <brobecker@gnat.com>
933
934 General cleanup of the AIX xm include file:
935 * config/xm-aix4.h (fd_set): Remove undefine.
936 Remove include of <sys/select.h>.
937 (HAVE_TERMIO): Remove define.
938 (USG): Likewise.
939 (NULL): Remove redefine.
940 (alloca): Remove #pragma.
941 (vfork): Remove define.
942 (termdef): Remove.
943 (SIGWINCH_HANDLER): Remove.
944 (SIGWINCH_HANDLER_BODY): Remove.
945
946 2004-08-09 Mark Kettenis <kettenis@gnu.org>
947
948 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
949 GDB_OSABI_OPENBSD_ELF.
950
951 2004-08-07 Robert Millan <robertmh@gnu.org>
952
953 * bsd-kvm.c: Check for nlist.h before including it.
954
955 2004-08-09 Mark Kettenis <kettenis@gnu.org>
956
957 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
958 sigcontext' offset consistency checks for ancient BSD.
959
960 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
961
962 * configure.in: Check for <sys/types.h>. Check return and
963 argument types of ptrace.
964 * configure, config.in: Regenerate.
965
966 2004-08-09 Jim Blandy <jimb@redhat.com>
967
968 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
969 rs6000_register_sim_regno): Doc fixes.
970
971 2004-08-08 Joel Brobecker <brobecker@gnat.com>
972
973 * mips-tdep.c: Include "floatformat.h".
974 (n32n64_floatformat_always_valid): New function.
975 (floatformat_n32n64_long_double_big): New constant.
976 (mips_gdbarch_init): Set size and format of long double
977 for N32 and N64 ABIs.
978 * Makefile.in (mips-tdep.o): Update dependencies.
979
980 2004-08-08 Andrew Cagney <cagney@gnu.org>
981
982 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
983 print. Improve script's error messages.
984 * gdbarch.h: Re-generate.
985
986 * gdbarch.sh (pformat): New function.
987 (float_format, double_format, long_double_format): List with bit
988 members. Use pformat when printing.
989 * gdbarch.c, gdbarch.h: Re-generate.
990
991 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
992
993 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
994 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
995 (ppcnbsd_supply_pcb): New function.
996 (_initialize_ppcnbsd_nat): New prototype and function.
997 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
998 (LOADLIBES): New variable.
999 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1000
1001 2004-08-08 Andrew Cagney <cagney@gnu.org>
1002
1003 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1004 (builtin_type_ieee_double, builtin_type_ia64_quad)
1005 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1006 BE/LE floating-point types.
1007 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1008 (builtin_type_ieee_double, builtin_type_ia64_quad)
1009 (builtin_type_ia64_spill): Declare.
1010 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1011 (floatformat_ieee_double, floatformat_arm_ext)
1012 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1013 of LE/BE floatformats.
1014 * doublest.h: (struct floatformat, floatformat_ieee_single)
1015 (floatformat_ieee_double, floatformat_arm_ext)
1016 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1017
1018 2004-08-08 Mark Kettenis <kettenis@gnu.org>
1019
1020 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1021
1022 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1023 instead of regcache_raw_supply when storing the registers.
1024
1025 * i386gnu-nat.c: Update copyright year.
1026 (gnu_store_registers): Don't use deprecated_registers and
1027 deprecated_registers_valid. Use regcache_valid_p and
1028 regcache_raw_supply instead.
1029
1030 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1031 frame_pc_unwind.
1032
1033 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1034 variables. Incapitalized "process".
1035
1036 * configure.in: Add cursesX to the list of possible curses libs.
1037 Add cursesX.h to the list of possible curses headers.
1038 * configure, config.in: Regenerate.
1039
1040 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1041
1042 * configure.in: Test for struct lwp in <sys/lwp.h>.
1043 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1044 the offset of l_addr in struct lwp.
1045
1046 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1047
1048 * bsd-kvm.c: Include "gdbcore.h"
1049 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
1050
1051 2004-08-07 Andrew Cagney <cagney@gnu.org>
1052
1053 * gdbtypes.c (build_flt, build_complex): New functions.
1054 (gdbtypes_post_init): Use.
1055
1056 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
1057
1058 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
1059 through to builtin_type_uint128.
1060
1061 * c-exp.y: Use builtin_type function to obtain builtin types.
1062
1063 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
1064 builtin_uint128.
1065 * gdbtypes.c (gdbtypes_post_init): Update.
1066 (build_gdbtypes): Move initialization of builtin_type_int0
1067 through to builtin_type_uint128 from here ...
1068 (_initialize_gdbtypes): ... to here.
1069 * d10v-tdep.c (d10v_register_type): Update.
1070
1071 * doublest.c: Update copyright.
1072 (floatformat_from_length): Call error when floatformat is NULL.
1073 (extract_floating_by_length): Remove NULL fmt check.
1074 (store_floating_by_length): Ditto.
1075
1076 2004-08-07 Andrew Cagney <cagney@gnu.org>
1077
1078 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
1079 that the register is valid.
1080
1081 2004-08-05 Mark Kettenis <kettenis@chello.nl>
1082
1083 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1084 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
1085 struct frame_info *. Use safe_frame_unwind_memory instead of
1086 deprecated_read_memory_nobpt.
1087 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
1088 changed signature of i386_linux_sigtramp_start and
1089 i386_linux_rt_sigtramp_start.
1090
1091 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
1092 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
1093 instead of deprecated_read_memory_nobpt.
1094 (i386nbsd_sigtramp_p): Adjust for changed signature of
1095 i386nbsd_sigtramp_offset.
1096
1097 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
1098 safe_frame_unwind_memory instead of target_read_memory.
1099
1100 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1101 !NO_SYS_FILE.
1102 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
1103 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
1104 (_initialize_kernel_u_addr): Remove prototype and function.
1105 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1106 !NO_SYS_FILE.
1107 * xcoffread.c: Likewise.
1108
1109 2004-08-06 Mark Kettenis <kettenis@gnu.org>
1110
1111 * vax-nat.c: New file.
1112 * vaxbsd-nat.c: Tweak comment.
1113 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
1114 vaxnbsd-tdep.c.
1115 (vax-nat.o): New dependency.
1116 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
1117 (vax-*-ultrix2*): Remove.
1118 * config/vax/vax.mh: New file.
1119 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
1120 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
1121 (vax_register_u_addr): New prototype.
1122 (REGISTER_U_ADDR): Define using vax_register_u_addr.
1123 * config/vax/vaxult2.mh: Remove file.
1124 * config/vax/vaxult.mh: Remove file.
1125 * config/vax/vaxbsd.mh: Remove file.
1126 * config/vax/vax.mt (TM_FILE): Remove.
1127 * config/vax/tm-vaxbsd.h: Remove file.
1128
1129 2004-08-06 Joel Brobecker <brobecker@gnat.com>
1130
1131 * aix-thread.c (get_signaled_thread): New function.
1132 (iter_trap): Delete, no longer used.
1133 (iter_tid): New function.
1134 (pd_update): Find the thread that received the SIGTRAP signal
1135 by first locating the kernel thread, and then finding its
1136 associated thread.
1137
1138 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
1139
1140 * lin-lwp.c (child_wait): Continue inferior after processing
1141 PTRACE_EVENT_CLONE event.
1142
1143 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
1144
1145 * MAINTAINERS: Add self to Write-After-Approval.
1146
1147 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
1148
1149 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
1150 libunwind-xxxx.so" where xxxx is UNW_TARGET.
1151
1152 2004-08-05 Andrew Cagney <cagney@gnu.org>
1153
1154 * config/xm-sysv4.h: Delete file.
1155 * config/mips/xm-irix5.h: Delete file.
1156 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
1157 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
1158 * config/ia64/xm-aix.h: Delete file.
1159 * config/ia64/aix.mh (XM_FILE): Delete.
1160 * config/pa/xm-hppah.h: Delete file.
1161 * config/pa/hpux11w.mh (XM_FILE): Delete.
1162 * config/pa/hpux11.mh (XM_FILE): Delete.
1163 * config/pa/hpux1020.mh (XM_FILE): Delete.
1164 * config/pa/hppahpux.mh (XM_FILE): Delete.
1165
1166 * config/alpha/xm-alphalinux.h: Delete file.
1167 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
1168 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
1169 * config/alpha/xm-alphaosf.h: Delete file.
1170 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
1171 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
1172 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
1173 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
1174
1175 * config/i386/xm-i386v.h: Delete file.
1176 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
1177 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
1178 * config/i386/xm-i386sco.h: Delete file.
1179 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
1180 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
1181 * config/i386/xm-i386v4.h: Delete file.
1182 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
1183 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
1184 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
1185 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
1186
1187 * config/vax/xm-vax.h: Delete file.
1188 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1189 * config/vax/xm-vaxult2.h: Delete file.
1190 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1191 * config/vax/vaxult2.mh (XM_FILE): Delete.
1192 * config/vax/xm-vaxult.h: Delete file.
1193 * config/vax/vaxult.mh (XM_FILE): Delete.
1194 * config/vax/xm-vaxbsd.h: Delete file.
1195 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1196
1197 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1198 * gdbarch.h, gdbarch.c: Re-generate.
1199 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1200 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1201 * frame.h: Delete deprecated_read_fp from comments.
1202 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1203 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1204
1205 2004-08-04 Mark Kettenis <kettenis@gnu.org>
1206
1207 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
1208 trampoline in OpenBSD 3.5-current.
1209
1210 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
1211 SSE registers.
1212
1213 * Makefile.in: Remove embedded page breaks.
1214
1215 2004-08-04 Jim Blandy <jimb@redhat.com>
1216
1217 * regcache.c (regcache_raw_read): Assert that, after calling
1218 target_fetch_registers, the register we're reading is cached.
1219
1220 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1221 a call to 'internal_error', with a more helpful error message.
1222 * rs6000-tdep.c (e500_pseudo_register_read,
1223 e500_pseudo_register_write, rs6000_store_return_value): Same.
1224
1225 2004-08-04 Andrew Cagney <cagney@gnu.org>
1226
1227 * Makefile.in: Update dependencies.
1228
1229 2004-08-04 Jim Blandy <jimb@redhat.com>
1230
1231 Change the layout of the PowerPC E500 raw register cache to allow
1232 the lower 32-bit halves of the GPRS to be their own raw registers,
1233 not pseudoregisters.
1234 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1235 add ppc_ev0_upper_regnum flag.
1236 * rs6000-tdep.c: #include "reggroups.h".
1237 (spe_register_p): Recognize the ev upper half registers as SPE
1238 registers.
1239 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1240 registers.
1241 (e500_move_ev_register): New function.
1242 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1243 vector registers are the pseudo-registers now, formed by splicing
1244 together the gprs and the upper-half registers.
1245 (e500_register_reggroup_p): New function.
1246 (P): Macro deleted.
1247 (P8, A4): New macro.
1248 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1249 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1250 macros.
1251 (registers_e500): Rearrange register set so that the raw register
1252 set contains 32-bit GPRs and upper-half registers, and the SPE
1253 vector registers become pseudo-registers.
1254 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1255 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1256 register numbers are now the same for the E500 as they are for
1257 other PowerPC variants. Register e500_register_reggroup_p as the
1258 register group function for the E500.
1259 * Makefile.in (rs6000-tdep.o): Update dependencies.
1260
1261 Adapt PPC E500 native support to the new raw regcache layout.
1262 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1263 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1264 (fetch_spe_register, store_spe_register): Handle fetching/storing
1265 all the SPE registers at once, if regno == -1. These now take
1266 over the job of fetch_spe_registers and store_spe_registers.
1267 (fetch_spe_registers, store_spe_registers): Deleted.
1268 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1269 unconditionally; they're always raw. Fetch/store SPE upper half
1270 registers, if present, instead of ev registers.
1271 (fetch_register, store_register): Remove sanity checks: gprs are
1272 never pseudo-registers now, so we never need to even mention any
1273 registers that are ever pseudoregisters.
1274
1275 Use a fixed register numbering when communicating with the PowerPC
1276 simulator.
1277 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1278 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1279 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1280 New functions.
1281 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1282 init_sim_regno_table.
1283 * Makefile.in (gdb_sim_ppc_h): New variable.
1284 (rs6000-tdep.o): Update dependencies.
1285
1286 2004-08-02 Andrew Cagney <cagney@gnu.org>
1287
1288 * cris-tdep.c (cris_register_size): Restore function, still used
1289 locally.
1290
1291 * gdbarch.sh (deprecated_target_read_fp)
1292 (deprecated_frame_locals_address, deprecated_frame_args_address)
1293 (deprecated_frame_chain_valid, deprecated_frame_chain)
1294 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1295 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1296 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1297 * gdbarch.h, gdbarch.c: Re-generate.
1298 * regcache.c (deprecated_read_fp): Do not call
1299 DEPRECATED_TARGET_READ_FP_P.
1300 * infcmd.c (default_print_registers_info): Do not call
1301 DEPRECATED_DO_REGISTERS_INFO.
1302 * frame-base.c (default_frame_locals_address): Do not call
1303 DEPRECATED_FRAME_LOCALS_ADDRESS.
1304 (default_frame_args_address): Do not call
1305 DEPRECATED_FRAME_ARGS_ADDRESS.
1306
1307 * gdbarch.sh (deprecated_register_raw_size)
1308 (deprecated_register_virtual_size:int): Delete.
1309 * gdbarch.h, gdbarch.c: Re-generate.
1310 * cris-tdep.c (cris_register_size): Delete.
1311 (cris_gdbarch_init): Update.
1312 * alpha-tdep.c (alpha_register_raw_size)
1313 (alpha_register_virtual_size): Delete.
1314 (alpha_gdbarch_init): Update.
1315
1316 * gdbarch.sh (deprecated_register_virtual_type)
1317 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1318 (deprecated_dummy_write_sp): Delete.
1319 * gdbarch.h, gdbarch.c: Re-generate.
1320
1321 * gdbarch.sh (deprecated_register_bytes): Delete.
1322 * gdbarch.h, gdbarch.c: Re-generate.
1323 * regcache.c (deprecated_register_bytes): New function.
1324 * regcache.h (deprecated_register_bytes): Declare.
1325 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1326 * v850-tdep.c (v850_gdbarch_init): Update.
1327 * sh64-tdep.c (sh64_gdbarch_init): Update.
1328 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1329 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1330 * mcore-tdep.c (mcore_gdbarch_init): Update.
1331 * cris-tdep.c (cris_gdbarch_init): Update.
1332 * arm-tdep.c (arm_gdbarch_init): Update.
1333 * remote.c (init_remote_state): Update.
1334 * remote-vx.c (vx_prepare_to_store): Update.
1335 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1336 * irix5-nat.c (fetch_core_registers): Update.
1337 * cris-tdep.c (cris_register_bytes_ok): Update.
1338 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1339
1340 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1341 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1342 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1343 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1344 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1345 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1346 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1347 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1348 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1349 with mips_insn16 and mips_insn32.
1350
1351 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1352 * rs6000-tdep.c (rs6000_push_dummy_call)
1353 (rs6000_extract_return_value): Use register_size.
1354 * xstormy16-tdep.c (xstormy16_get_saved_register)
1355 (xstormy16_extract_return_value): Ditto.
1356 * valops.c (value_assign): Ditto.
1357 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1358 * v850-tdep.c (v850_extract_return_value): Ditto.
1359 * tracepoint.c (collect_symbol): Ditto.
1360 * target.c (debug_print_register): Ditto.
1361 * stack.c (frame_info): Ditto.
1362 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1363 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1364 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1365 (store_register_using_P): Ditto.
1366 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1367 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1368 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1369 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1370 * regcache.c (deprecated_read_register_bytes)
1371 (deprecated_write_register_bytes, read_register)
1372 (write_register): Ditto.
1373 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1374 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1375 * monitor.c (monitor_supply_register, monitor_fetch_register)
1376 (monitor_store_register): Ditto.
1377 * mn10300-tdep.c (mn10300_pop_frame_regular)
1378 (mn10300_print_register): Ditto.
1379 * mipsv4-nat.c (fill_fpregset): Ditto.
1380 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1381 (mips64_fill_fpregset): Ditto.
1382 * mi/mi-main.c (register_changed_p, get_register)
1383 (mi_cmd_data_write_register_values): Ditto.
1384 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1385 * irix5-nat.c (fill_gregset, fetch_core_registers):
1386 * infrun.c (write_inferior_status_register): Ditto.
1387 * infptrace.c (fetch_register, store_register): Ditto.
1388 * infcmd.c (default_print_registers_info): Ditto.
1389 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1390 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1391 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1392 * hpux-thread.c (hpux_thread_fetch_registers)
1393 (hpux_thread_store_registers): Ditto.
1394 * hppah-nat.c (store_inferior_registers, fetch_register):
1395 * findvar.c (value_from_register): Ditto.
1396 * dve3900-rom.c (fetch_bitmapped_register):
1397 * cris-tdep.c (cris_gdbarch_init): Ditto.
1398 * alpha-tdep.h: Ditto.
1399 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1400
1401 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1402 DEPRECATED_REGISTER_RAW_SIZE from comments.
1403 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1404 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1405 DEPRECATED_REGISTER_RAW_SIZE.
1406 * findvar.c (value_of_register): Simplify by assuming that the
1407 registers raw and virtual sizes are identical.
1408 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1409 comment.
1410 * arch-utils.c (generic_register_size): Simplify by assuming
1411 register_type.
1412
1413 * regcache.c (legacy_read_register_gen, real_register)
1414 (legacy_write_register_gen): Delete, not used.
1415
1416 * regcache.c (struct regcache_descr): Delete legacy_p.
1417 (init_legacy_regcache_descr): Delete function.
1418 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1419 Do not use deprecated register functions.
1420 (regcache_raw_read, deprecated_write_register_gen):
1421 (deprecated_read_register_gen, regcache_raw_write): Delete code
1422 predicated on legacy_p.
1423 (register_size): Delete check against register raw size.
1424
1425 * cris-tdep.c (cris_register_type): Replace
1426 cris_register_virtual_type.
1427 (cris_gdbarch_init): Update, set register_type.
1428
1429 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1430 * gdbarch.h, gdbarch.c: Re-generate.
1431 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1432 (arm_gdbarch_init) Do not set frameless function invocation.
1433 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1434 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1435 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1436 (frv_gdbarch_init): Do not set frameless function invocation.
1437 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1438 * sh-tdep.c (sh_gdbarch_init): Ditto.
1439 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1440 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1441 * avr-tdep.c (avr_gdbarch_init): Ditto.
1442
1443 * blockframe.c (legacy_frame_chain_valid): Delete function.
1444
1445 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1446 and pc. Update comments.
1447 (pc_in_dummy_frame): Delete function.
1448 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1449 use the "id".
1450 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1451 call_hi, top and pc, use the id.
1452 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1453
1454 * dummy-frame.c: Include "gdb_string.h".
1455 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1456 (generic_save_dummy_frame_tos): Delete.
1457 (dummy_frame_push): New function, replaces above.
1458 * dummy-frame.h: Update copyright.
1459 (dummy_frame_push): Declare.
1460 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1461 (generic_save_call_dummy_addr): Delete declarations.
1462 * infcall.c: Include "dummy-frame.h".
1463 (call_function_by_hand): Add locals caller_regcache,
1464 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1465 with call to frame_save_as_regcache plus cleanup. Delete calls to
1466 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1467 Move clear_proceed_status to just before the resume, add call to
1468 dummy_frame_push (discard cleanup).
1469 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1470 (dummy-frame.o): Add $(gdb_string_h).
1471
1472 2004-08-01 Andrew Cagney <cagney@gnu.org>
1473
1474 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1475 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1476 * dummy-frame.c (find_dummy_frame): Delete.
1477 (struct dummy_frame_cache, dummy_frame_sniffer)
1478 (dummy_frame_prev_register, dummy_frame_this_id)
1479 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1480 frame unwinder using a dummy_frame_cache.
1481
1482 2004-08-01 Andrew Cagney <cagney@gnu.org>
1483
1484 * frame.h (frame_save_as_regcache): Declare.
1485 * frame.c (frame_save_as_regcache): New function.
1486 (do_frame_read_register): Replace do_frame_unwind_register.
1487 (frame_pop): Use frame_save_as_regcache.
1488 * dummy-frame.c (generic_push_dummy_frame): Use
1489 frame_save_as_regcache.
1490
1491 2004-08-01 Joel Brobecker <brobecker@gnat.com>
1492
1493 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1494 file as included until we record the first line in the linetable.
1495
1496 2004-08-01 Andrew Cagney <cagney@gnu.org>
1497
1498 * frame.h (deprecated_pop_dummy_frame)
1499 (deprecated_read_register_dummy)
1500 (deprecated_generic_find_dummy_frame): Delete.
1501 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1502 (deprecated_read_register_dummy)
1503 (deprecated_find_dummy_frame_regcache)
1504 (discard_innermost_dummy)
1505 (deprecated_pop_dummy_frame): Delete.
1506 (dummy_frame_this_id): Simplify.
1507 (struct dummy_frame): Delete "fp" and "sp".
1508 (find_dummy_frame): Simplify.
1509 (generic_push_dummy_frame): Do not set "fp" or "sp".
1510 (fprint_dummy_frames): Do not print "fp" and "sp"
1511
1512 2004-08-01 Mark Kettenis <kettenis@gnu.org>
1513
1514 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1515 (struct i386_insn): New structure.
1516 (i386_match_insn): New function.
1517 (i386_frame_setup_skip_insns): New variable.
1518 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1519 array i386_frame_setup_insns of instructions that should be
1520 skipped inside the frame setup sequence.
1521
1522 2004-08-01 Andrew Cagney <cagney@gnu.org>
1523
1524 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1525 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1526 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1527 * stack.c (frame_info): Delete references to
1528 DEPRECATED_FRAME_INIT_SAVED_REGS and
1529 deprecated_get_frame_saved_regs.
1530 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1531 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1532 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1533 (frame_unwind_register_signed)
1534 (frame_unwind_register_unsigned)
1535 (frame_unwind_unsigned_register): Use register_size.
1536 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1537 (deprecated_frame_xmalloc_with_cleanup)
1538 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1539 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1540
1541 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1542 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1543 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1544 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1545
1546 * infcall.c (call_function_by_hand): Do not use
1547 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1548 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1549 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1550 DEPRECATED_STACK_ALIGN.
1551
1552 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1553
1554 Committed by Andrew Cagney.
1555 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1556
1557 2004-08-01 Andrew Cagney <cagney@gnu.org>
1558
1559 * mips-tdep.c (mips16_frame_cache)
1560 (mips16_frame_this_id, mips16_frame_prev_register)
1561 (mips16_frame_unwind, mips16_frame_sniffer)
1562 (mips16_frame_base_address, mips16_frame_base)
1563 (mips16_frame_base_sniffer, mips32_frame_cache)
1564 (mips32_frame_this_id, mips32_frame_prev_register)
1565 (mips32_frame_unwind, mips32_frame_sniffer)
1566 (mips32_frame_base_address, mips32_frame_base)
1567 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1568 separate heuristic mips16 and mips32 unwinders.
1569 (mips_stub_frame_cache, mips_stub_frame_this_id)
1570 (mips_stub_frame_prev_register)
1571 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1572 (mips_stub_frame_base_address, mips_stub_frame_base)
1573 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1574 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1575 match true mdebug frames.
1576 (non_heuristic_proc_desc): Add forward declaration.
1577
1578 2004-08-01 Andrew Cagney <cagney@gnu.org>
1579
1580 * config/mips/tm-irix6.h: Delete file.
1581 * config/mips/tm-irix5.h: Delete file.
1582 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1583 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1584
1585 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1586 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1587 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1588 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1589 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1590 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1591 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1592 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1593 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1594 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1595 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1596 (TARGET_SIGNAL_RAW_VALUES): Delete.
1597 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1598 Delete.
1599 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1600 (TARGET_HW_WATCH_LIMIT): Delete.
1601 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1602 * minimon.h: Delete file.
1603
1604 * trad-frame.c (trad_frame_get_this_base)
1605 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1606 functions.
1607 * trad-frame.h (trad_frame_set_this_base)
1608 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1609
1610 2004-07-31 Andrew Cagney <cagney@gnu.org>
1611
1612 * trad-frame.c (trad_frame_get_prev_register): Rename
1613 trad_frame_get_prev_register.
1614 * vax-tdep.c (vax_frame_prev_register): Update.
1615 * trad-frame.h: Update.
1616 * trad-frame.c (trad_frame_get_register): Update.
1617 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1618 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1619 Update.
1620 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1621 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1622 Update.
1623 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1624 Update.
1625 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1626 Update.
1627 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1628 Update.
1629 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1630 Update.
1631 * s390-tdep.c (s390_frame_prev_register)
1632 (s390_stub_frame_prev_register)
1633 (s390_sigtramp_frame_prev_register): Update.
1634 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1635 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1636 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1637 * m88k-tdep.c (m88k_frame_prev_register)
1638 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1639 * m32r-tdep.c (m32r_frame_prev_register): Update.
1640 * hppa-tdep.c (hppa_frame_prev_register_helper)
1641 * frv-tdep.c (frv_frame_prev_register): Update.
1642 * d10v-tdep.c (d10v_frame_prev_register): Update.
1643 * cris-tdep.c (cris_frame_prev_register): Update.
1644 * avr-tdep.c (avr_frame_prev_register): Update.
1645 * arm-tdep.c (arm_prologue_prev_register)
1646 (arm_sigtramp_prev_register): Update.
1647
1648 2004-07-31 Andrew Cagney <cagney@gnu.org>
1649
1650 * frame.h (legacy_saved_regs_unwind)
1651 (legacy_frame_chain_valid, legacy_frame_p)
1652 (enum frame_type): Delete UNKNOWN_FRAME.
1653 * dummy-frame.c (dummy_frame_this_id): Simplify.
1654 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
1655 * frame.c (struct frame_info): Delete the field "type".
1656 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1657 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1658 (legacy_saved_regs_unwind, legacy_frame_p)
1659 (frame_type_from_pc): Delete.
1660 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1661 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1662
1663 2004-07-31 Mark Kettenis <kettenis@gnu.org>
1664
1665 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1666 indentation.
1667
1668 * mips-nat.c: Remove file.
1669 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1670 (mips-nat.o): Remove dependency.
1671
1672 * infptrace.c: Update copyright year.
1673 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1674 explicitly setting the buffer to all zeroes.
1675
1676 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1677 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1678
1679 2004-07-30 Andrew Cagney <cagney@gnu.org>
1680
1681 * GDB 6.2 released from gdb_6_2-branch.
1682
1683 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1684
1685 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1686
1687 * exec.c (exec_file_attach):
1688 * nto-tdep.c (nto_find_and_open_solib):
1689 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1690 * solib.c (solib_open):
1691 * somsolib.c (som_solib_sizeof_symbol_table):
1692 * source.c (is_regular_file, openp, open_source_file):
1693 * symfile.c (symfile_bfd_open):
1694 * wince.c (upload_to_device): Differentiate between the search for
1695 binary and source files.
1696
1697 2004-07-30 Andrew Cagney <cagney@gnu.org>
1698
1699 * complaints.c (_initialize_complaints): Pass NULL to
1700 add_setshow_zinteger_cmd for help_doc.
1701 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1702
1703 2004-07-30 Andrew Cagney <cagney@gnu.org>
1704
1705 Fix PR i18n/761.
1706 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1707 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1708 $(PACKAGE).pot and update-po.
1709 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1710 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1711 (update-po): New rules.
1712 (localedir): Define using autoconf.
1713 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1714 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1715 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1716 * configure.in: Generate CATALOGS and LINGUAS from contents of
1717 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1718 * configure: Re-generate.
1719 * po/gdbtext: New file
1720
1721 2004-07-30 Jerome Guitton <guitton@gnat.com>
1722
1723 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1724 order.
1725
1726 2004-07-30 David Lecomber <dsl@sources.redhat.com>
1727
1728 * dwarf2read.c (read_file_scope): Set producer if attribute
1729 present.
1730 (struct dwarf2_cu): Added new member producer.
1731
1732 2004-07-30 Jerome Guitton <guitton@gnat.com>
1733
1734 * inflow.c (kill_command): release file handles in BFD.
1735 * exec.c (exec_file_attach): Ditto.
1736 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1737
1738 2004-07-29 Andrew Cagney <cagney@gnu.org>
1739
1740 * PROBLEMS (mips-irix): Note that it is broken.
1741
1742 2004-07-29 Andrew Cagney <cagney@gnu.org>
1743
1744 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1745 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1746
1747 * config/xm-nbsd.h: Delete file.
1748 * config/arm/xm-nbsd.h: Delete file.
1749 * config/i386/xm-nbsd.h: Delete file.
1750 * config/ns32k/xm-nbsd.h: Delete file.
1751 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1752 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1753 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1754 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1755 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1756
1757 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1758 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1759 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1760 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1761 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1762 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1763
1764 * config/powerpc/xm-linux.h: Delete empty file.
1765 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1766 * config/powerpc/linux.mh (XM_FILE): Delete.
1767 * config/m68k/xm-linux.h: Delete empty file.
1768 * config/m68k/linux.mh (XM_FILE): Delete.
1769 * config/ia64/xm-linux.h: Delete empty file.
1770 * config/ia64/linux.mh (XM_FILE): Delete.
1771 * config/arm/xm-linux.h: Delete empty file.
1772 * config/arm/linux.mh (XM_FILE): Delete.
1773
1774 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1775 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1776 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1777 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1778 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1779 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1780 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1781 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1782
1783 * config/m68k/xm-m68k.h: Delete file.
1784 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1785 copyright.
1786 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1787 * config/pa/xm-linux.h: Delete empty file.
1788 * config/pa/linux.mh (XM_FILE): Delete.
1789 * config/i386/xm-i386.h: Delete empty file.
1790 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1791 "i386/xm-i386.h".
1792 * config/i386/obsdaout.mh (XM_FILE): Delete.
1793 * config/i386/obsd64.mh (XM_FILE): Delete.
1794 * config/i386/fbsd64.mh (XM_FILE): Delete.
1795 * config/i386/nto.mh (XM_FILE): Delete.
1796 * config/i386/obsd.mh (XM_FILE): Delete.
1797 * config/i386/linux64.mh (XM_FILE): Delete.
1798 * config/i386/linux.mh (XM_FILE): Delete.
1799 * config/i386/i386sol2.mh (XM_FILE): Delete.
1800 * config/i386/i386gnu.mh (XM_FILE): Delete.
1801 * config/i386/fbsd.mh (XM_FILE): Delete.
1802 * config/i386/nbsd64.mh (XM_FILE): Delete.
1803
1804 2004-07-29 Andrew Cagney <cagney@gnu.org>
1805
1806 * config/pa/xm-linux.h: Do not include "floatformat.h".
1807 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1808 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1809 * config/i386/xm-i386.h: Do not include "floatformat.h".
1810 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1811 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1812 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1813 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1814 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1815 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1816 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1817 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1818 * configure, config.in: Regenerate.
1819 * configure.host (gdb_host_float_format, gdb_host_double_format)
1820 (gdb_host_long_double_format): Set according to the host.
1821
1822 2004-07-29 Andrew Cagney <cagney@gnu.org>
1823
1824 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1825
1826 2004-07-28 Andrew Cagney <cagney@gnu.org>
1827
1828 * PROBLEMS: Mention threads/1650.
1829 * NEWS: Mention the NPTL fix.
1830
1831 2004-07-28 Andrew Cagney <cagney@gnu.org>
1832
1833 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1834 (add_setshow_cmd_full): Make static.
1835 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1836 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1837 * cli/cli-decode.c (add_setshow_filename_cmd)
1838 (add_setshow_string_cmd): New functions.
1839 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1840 * mips-tdep.c (_initialize_mips_tdep): Update.
1841 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1842 * cli/cli-logging.c (_initialize_cli_logging): Update.
1843 * complaints.c (_initialize_complaints): Update.
1844 * remote.c (_initialize_remote): Update.
1845
1846 2004-07-28 Andrew Cagney <cagney@gnu.org>
1847
1848 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1849 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1850 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1851 print parameters. Make string parameters constant.
1852 * command.h: Update. Update copyright.
1853 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1854 * observer.c (_initialize_observer): Ditto.
1855 * frame.c (_initialize_frame): Ditto.
1856 * complaints.c (_initialize_complaints): Ditto.
1857 * maint.c (_initialize_maint_cmds): Ditto.
1858 * target.c (initialize_targets): Ditto.
1859 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1860 * infcall.c (_initialize_infcall): Ditto.
1861 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1862 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1863 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1864 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1865 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1866
1867 2004-07-28 Andrew Cagney <cagney@gnu.org>
1868
1869 * gdbtypes.c (lookup_primitive_typename): Delete function.
1870 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1871 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1872 * gdbtypes.c (lookup_typename): Ditto.
1873 * f-exp.y (yylex): Ditto.
1874 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1875
1876 * scm-lang.c (c_builtin_types): Delete extern declaration.
1877 (scm_language_defn): Replace
1878 string_char_type and primitive_type_vector with
1879 la_language_arch_info.
1880 * jv-lang.c (java_language_defn): Replace
1881 string_char_type and primitive_type_vector with
1882 la_language_arch_info.
1883 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1884 c_builtin_types in comment.
1885 * c-lang.h (struct language_arch_info): Declare opaque.
1886 (c_language_arch_info): Declare.
1887 (c_builtin_types): Delete declaration.
1888 * c-lang.c (c_language_arch_info): Set string_char_type to
1889 builtin_char, not builtin_true_char. Make global.
1890 (c_builtin_types): Delete array.
1891 (asm_language_defn, minimal_language_defn): Replace
1892 string_char_type and primitive_type_vector with
1893 la_language_arch_info.
1894
1895 2004-07-28 Andrew Cagney <cagney@gnu.org>
1896
1897 * gdbtypes.h (struct builtin_type): Rename true_char to
1898 builtin_true_char.
1899 * gdbtypes.c (gdbtypes_post_init): Update.
1900 * c-lang.c (arch_info): New function.
1901 (enum c_primitive_types): New enum.
1902 (c_language_defn): Instead of string_char_type and
1903 primitive_type_vector set la_language_arch_info.
1904
1905 2004-07-28 Andrew Cagney <cagney@gnu.org>
1906
1907 * language.h (struct language_arch_info): Fix typo
1908 s/primative/primitive/.
1909 * gdbtypes.c (lookup_primitive_typename): Ditto.
1910 * language.c (language_lookup_primitive_type_by_name)
1911 (unknown_language_arch_info): Ditto.
1912
1913 2004-07-27 Andrew Cagney <cagney@gnu.org>
1914
1915 * defs.h (enum language): Add nr_languages.
1916 * language.h (struct language_arch_info): Define.
1917 (struct language_defn): Add la_language_arch_info.
1918 (language_lookup_primative_type_by_name): Declare.
1919 (language_string_char_type): Declare.
1920 * language.c (_initialize_language, language_gdbarch_post_init)
1921 (struct language_gdbarch, language_gdbarch_data): Implement
1922 per-architecture language information.
1923 (unknown_language_arch_info, language_string_char_type)
1924 (language_lookup_primative_type_by_name): New functions.
1925 (unknown_language_defn, auto_language_defn)
1926 (local_language_defn): Set la_language_arch_info to
1927 unknown_language_arch_info.
1928 (unknown_builtin_types): Delete.
1929 * gdbtypes.c (lookup_primitive_typename): Use
1930 language_lookup_primative_type_by_name.
1931 (create_string_type): Use language_string_char_type.
1932 * values.c (value_from_string): Use language_string_char_type.
1933 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1934 * p-lang.c (pascal_language_defn): Ditto.
1935 * m2-lang.c (m2_language_defn): Ditto.
1936 * jv-lang.c (java_language_defn): Ditto.
1937 * objc-lang.c (objc_language_defn): Ditto.
1938 * f-lang.c (f_language_defn): Ditto.
1939 * c-lang.c (c_language_defn, cplus_language_defn)
1940 (asm_language_defn, minimal_language_defn): Ditto.
1941
1942 2004-07-27 Andrew Cagney <cagney@gnu.org>
1943
1944 * gdbtypes.h (struct builtin_type): Declare.
1945 (builtin_type): Declare.
1946 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1947 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1948 (gdbtypes_post_init): New function.
1949 (builtin_type): New function.
1950
1951 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1952
1953 * remote-m32r-sdi.c: Fix breakpoint bug.
1954 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1955 recv_char_data, recv_long_data): New functions to replace communication
1956 sequences.
1957
1958 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1959
1960 Document PR threads/1650.
1961 * PROBLEMS (Threads): Document problem with many threads
1962
1963 2004-07-26 Andrew Cagney <cagney@gnu.org>
1964
1965 * gdb-mi.el: Move from here ...
1966 * mi/gdb-mi.el: ... to here.
1967
1968 2004-07-26 Andrew Cagney <cagney@gnu.org>
1969
1970 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1971 * main.c (captured_main): When in batch mode always detach.
1972
1973 2004-07-26 Andrew Cagney <cagney@gnu.org>
1974
1975 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1976 and h8300 as broken.
1977 * NEWS: END-OF-LIFE frame compatibility module.
1978 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1979 specific comments.
1980
1981 2004-07-26 Andrew Cagney <cagney@gnu.org>
1982
1983 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1984 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1985 * wince.c (_initialize_wince): Update.
1986 * win32-nat.c (_initialize_win32_nat): Update.
1987 * varobj.c (_initialize_varobj): Update.
1988 * valops.c (_initialize_valops): Update.
1989 * utils.c (initialize_utils, initialize_utils): Update.
1990 * tui/tui-win.c (_initialize_tui_win): Update.
1991 * top.c (init_main): Update.
1992 * symfile.c (_initialize_symfile): Update.
1993 * source.c (_initialize_source): Update.
1994 * somsolib.c (_initialize_som_solib): Update.
1995 * solib.c (_initialize_solib): Update.
1996 * solib-frv.c (_initialize_frv_solib): Update.
1997 * serial.c (_initialize_serial): Update.
1998 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1999 * remote.c (_initialize_remote, _initialize_remote): Update.
2000 * remote-vx.c (_initialize_vx): Update.
2001 * remote-utils.c (_initialize_sr_support): Update.
2002 * remote-sds.c (_initialize_remote_sds): Update.
2003 * remote-mips.c (_initialize_remote_mips): Update.
2004 * remote-e7000.c (_initialize_remote_e7000): Update.
2005 * proc-api.c (_initialize_proc_api): Update.
2006 * printcmd.c: Update.
2007 * parse.c (_initialize_parse): Update.
2008 * pa64solib.c (_initialize_pa64_solib): Update.
2009 * p-valprint.c (_initialize_pascal_valprint): Update.
2010 * monitor.c (_initialize_remote_monitors): Update.
2011 * mips-tdep.c (_initialize_mips_tdep): Update.
2012 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2013 * maint.c (_initialize_maint_cmds): Update.
2014 * lin-lwp.c (_initialize_lin_lwp): Update.
2015 * language.c (_initialize_language): Update.
2016 * kod.c (_initialize_kod): Update.
2017 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2018 * i386-tdep.c (_initialize_i386_tdep): Update.
2019 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2020 * gdbarch.sh: Update.
2021 * gdbarch.c: Re-generate.
2022 * gdb-events.sh: Update.
2023 * gdb-events.c: Re-generate.
2024 * frame.c (_initialize_frame): Update.
2025 * exec.c: Update.
2026 * demangle.c (_initialize_demangler): Update.
2027 * dcache.c (_initialize_dcache): Update.
2028 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2029 * cp-valprint.c (_initialize_cp_valprint): Update.
2030 * corefile.c (_initialize_core): Update.
2031 * command.h: Update.
2032 * cli/cli-decode.h: Update.
2033 * cli/cli-cmds.c (init_cli_cmds): Update.
2034 * charset.c (_initialize_charset): Update.
2035 * breakpoint.c (_initialize_breakpoint): Update.
2036 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2037 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2038 * aix-thread.c (_initialize_aix_thread): Update.
2039
2040 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2041
2042 Partial fix for PR backtrace/1718.
2043 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2044 that GCC migrates into the prolugue. Don't handle any
2045 instructions that clobber %ebx.
2046
2047 2004-07-23 Andrew Cagney <cagney@gnu.org>
2048
2049 Use regcache_raw_collect instead of regcache_collect.
2050 * regcache.h (regcache_collect): Delete declaration.
2051 * regcache.c (regcache_colect): Delete function.
2052 * win32-nat.c (do_child_store_inferior_registers): Update.
2053 * sol-thread.c (sol_thread_store_registers): Update.
2054 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
2055 * rs6000-nat.c (store_register): Update.
2056 * remote.c (store_register_using_P, remote_store_registers): Update.
2057 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
2058 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
2059 (fill_vrregset, store_spe_registers, fill_gregset)
2060 (fill_gregset): Update.
2061 * nto-procfs.c (procfs_store_registers): Update.
2062 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
2063 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
2064 * m68klinux-nat.c (store_register, fill_gregset): Update.
2065 * m68k-tdep.c (fill_gregset): Update.
2066 * infptrace.c (store_register): Update.
2067 * i386-nto-tdep.c (i386nto_regset_fill): Update.
2068 * i386-linux-nat.c (store_register, fill_gregset): Update.
2069 * hppa-linux-nat.c (fill_gregset): Update.
2070 * go32-nat.c (store_register): Update.
2071 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
2072 (store_fp_regs): Update.
2073 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
2074 (store_nwfpe_extended, store_fpregister, store_fpregs)
2075 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
2076 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
2077 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
2078 (store_regs_user_thread, store_regs_kernel_thread): Update.
2079
2080 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2081
2082 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
2083 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
2084 encoding.
2085 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
2086 member of `struct comp_unit'.
2087
2088 2004-07-23 Andrew Cagney <cagney@gnu.org>
2089
2090 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
2091 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
2092
2093 2004-07-23 Martin Hunt <hunt@redhat.com>
2094 Kevin Buettner <kevinb@redhat.com>
2095
2096 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
2097 alignment was being added to the offset instead of multiplied.
2098
2099 2004-07-23 Mark Kettenis <kettenis@gnu.org>
2100
2101 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
2102 changed signal trampoline in OpenBSD 3.5-current.
2103
2104 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
2105 <machine/pcb.h> and "bsd-kvm.h".
2106 (sparc64nbsd_supply_pcb): New function.
2107 (_initialize_sparc64nbsd_nat): Renamed from
2108 _initialize_sparcnbsd_nat. Enable libkvm interface.
2109 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2110 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
2111 (LOADLIBES): New variable.
2112
2113 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
2114
2115 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
2116
2117 2004-07-21 Andrew Cagney <cagney@gnu.org>
2118
2119 Use regcache_raw_supply instead of supply_register.
2120 * regcache.h (supply_register): Delete declaration.
2121 * regcache.c (supply_register): Delete function.
2122 * wince.c (do_child_fetch_inferior_registers): Update.
2123 * win32-nat.c (do_child_fetch_inferior_registers)
2124 (fetch_elf_core_registers): Update.
2125 * v850ice.c (v850ice_fetch_registers): Update.
2126 * thread-db.c (thread_db_store_registers): Update.
2127 * sol-thread.c (sol_thread_store_registers): Update.
2128 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
2129 * rs6000-nat.c (fetch_register): Update.
2130 * rom68k-rom.c (rom68k_supply_one_register): Update.
2131 * remote.c (remote_wait, remote_async_wait): Update.
2132 * remote-st.c (get_hex_regs): Update.
2133 * remote-sim.c (gdbsim_fetch_register): Update.
2134 * remote-sds.c (sds_fetch_registers): Update.
2135 * remote-rdp.c (remote_rdp_fetch_register): Update.
2136 * remote-rdi.c (arm_rdi_fetch_registers): Update.
2137 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
2138 * remote-m32r-sdi.c (m32r_fetch_register): Update.
2139 * remote-hms.c (init_hms_cmds): Update.
2140 * remote-est.c (init_est_cmds): Update.
2141 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
2142 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
2143 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
2144 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
2145 (fetch_register, supply_vrregset, supply_vrregset)
2146 (fetch_spe_registers): Update.
2147 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
2148 * monitor.c (monitor_supply_register): Update.
2149 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
2150 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
2151 (mipsnbsd_supply_fpreg): Update.
2152 * mips-nat.c (fetch_inferior_registers)
2153 (fetch_core_registers): Update.
2154 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
2155 (supply_fpregset, mips64_supply_gregset)
2156 (mips64_supply_fpregset): Update.
2157 * m68klinux-nat.c (fetch_register, supply_gregset)
2158 (supply_fpregset): Update.
2159 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
2160 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
2161 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
2162 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
2163 * infptrace.c (fetch_register): Update.
2164 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
2165 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
2166 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
2167 (gnu_fetch_registers, gnu_store_registers): Update.
2168 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
2169 * i386-linux-nat.c (fetch_register, supply_gregset)
2170 (dummy_sse_values): Update.
2171 * hpux-thread.c (hpux_thread_fetch_registers): Update.
2172 * hppah-nat.c (fetch_register): Update.
2173 * hppa-linux-nat.c (fetch_register, supply_gregset)
2174 (supply_fpregset): Update.
2175 * go32-nat.c (fetch_register): Update.
2176 * dve3900-rom.c (fetch_bitmapped_register)
2177 (_initialize_r3900_rom): Update.
2178 * cris-tdep.c (supply_gregset): Update.
2179 * abug-rom.c (init_abug_cmds): Update.
2180 * core-aout.c (fetch_core_registers): Update.
2181 * armnbsd-nat.c (supply_gregset, supply_fparegset)
2182 (fetch_register, fetch_fp_register): Update.
2183 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
2184 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
2185 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
2186 * alphanbsd-tdep.c (fetch_core_registers): Update.
2187 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2188 * alpha-nat.c (fetch_osf_core_registers)
2189 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2190 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2191 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2192
2193 2004-07-21 Andrew Cagney <cagney@gnu.org>
2194
2195 * PROBLEMS: Mention breakpoints/1702.
2196 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2197 that is known to work.
2198
2199 2004-07-21 Andrew Cagney <cagney@gnu.org>
2200
2201 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2202 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2203 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2204 (handle_inferior_event): Wrap call to deprecated
2205 IGNORE_HELPER_CALL in #ifdef.
2206 * config/mips/tm-nbsd.h: Update.
2207
2208 2004-07-20 Jim Blandy <jimb@redhat.com>
2209
2210 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
2211 bfd_mach_ppc has no segment registers.
2212
2213 Include PowerPC SPR numbers for special-purpose registers.
2214 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2215 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2216 new member in initializer.
2217 (S, S4, SN4, S64): New macros for defining special-purpose
2218 registers.
2219 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2220 registers_403, registers_403GC, registers_505, registers_860,
2221 registers_601, registers_602, registers_603, registers_604,
2222 registers_750, registers_e500): Use them.
2223
2224 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2225 replace references with expression used to initialize variable.
2226
2227 2004-07-20 Andrew Cagney <cagney@gnu.org>
2228
2229 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2230 read_memory_nobpt.
2231 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2232 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2233 (s390_sigtramp_frame_sniffer): Update.
2234 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2235 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2236 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2237 (mips32_fetch_instruction): Update.
2238 * mcore-tdep.c (get_insn): Update.
2239 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2240 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2241 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2242 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2243 (i386_linux_rt_sigtramp_start): Update.
2244 * i386-linux-nat.c (child_resume): Update.
2245 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2246 * hppa-linux-tdep.c (insns_match_pattern): Update.
2247 * gdbcore.h: Update.
2248 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2249 * frame.c (safe_frame_unwind_memory): Update.
2250 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2251 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2252 * alpha-tdep.c (alpha_read_insn): Update.
2253
2254 2004-07-20 Andrew Cagney <cagney@gnu.org>
2255
2256 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2257 containing both bytes and mask. Add "frame_type".
2258 * tramp-frame.c (tramp_frame_start): Update.
2259 (tramp_frame_prepend_unwinder): Update.
2260 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2261 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2262 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2263 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2264
2265 2004-07-19 Eli Zaretskii <eliz@gnu.org>
2266
2267 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2268 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2269 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2270 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2271
2272 2004-07-17 Andrew Cagney <cagney@gnu.org>
2273
2274 * NEWS, PROBLEMS: Update for 6.2.
2275
2276 * README: Update to 6.2.
2277
2278 * utils.c (xvasprintf): Call xstrvprintf.
2279
2280 * parse.c: Update copyright.
2281 (null_post_parser): Eliminate ARGSUSED.
2282
2283 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2284 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2285 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2286
2287 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2288 * ppc-linux-nat.c: Use "Linux kernel".
2289 * hppa-linux-tdep.c: Use GNU/Linux.
2290 * hppa-linux-nat.c: Use GNU/Linux.
2291 * dwarfread.c: Add [sic] to use of Linux.
2292
2293 * hppa-linux-nat.c: Do not include <string.h>.
2294 (supply_fpregset): Remove "register" attribute.
2295
2296 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2297
2298 2004-07-17 Mark Kettenis <kettenis@gnu.org>
2299
2300 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2301 * configure, config.in: Regenerated.
2302
2303 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2304 "bsd-kvm.h".
2305 (vaxbsd_supply_pcb): New function.
2306 (_initialize_vaxbsd_nat): New prototype and function.
2307 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2308 solib-sunos.o.
2309 (LOADLIBES): New variable.
2310 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2311 (LOADLIBES): New variable.
2312 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2313 (LOADLIBES): New variable.
2314 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2315
2316 2004-07-16 Andrew Cagney <cagney@gnu.org>
2317
2318 * defs.h (event_loop_p): Replace variable declaration with macro,
2319 always 1.
2320 * main.c (captured_main): Delete options "-async" and "-noasync".
2321 (event_loop_p): Delete variable.
2322 * NEWS: Mention that "-async" and "-noasync" were removed.
2323
2324 2004-07-16 Andrew Cagney <cagney@gnu.org>
2325
2326 * remote-m32r-sdi.c: Re-indent.
2327
2328 2004-07-16 Jim Blandy <jimb@redhat.com>
2329
2330 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2331 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2332 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2333 missing MPC823 SPRs.
2334 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2335 incorrect. (This was corrected in GDB's register name tables on
2336 2004-07-14.)
2337
2338 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2339 should be "esasrr" ("ESA Save and Restore Register").
2340
2341 2004-07-16 Andrew Cagney <cagney@gnu.org>
2342
2343 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2344 calls, no longer applicable. Update comments and rename parameter
2345 "step_frame" to "return_frame".
2346
2347 2004-07-16 Andrew Cagney <cagney@gnu.org>
2348
2349 * frame.c (fprint_field): New function.
2350 (fprint_frame_id): Use fprint_field.
2351
2352 2004-07-15 Joel Brobecker <brobecker@gnat.com>
2353
2354 * ada-lang.c (ada_language_defn): Remove commented out code.
2355
2356 2004-07-15 Jim Blandy <jimb@redhat.com>
2357
2358 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2359 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2360
2361 2004-07-14 Jim Blandy <jimb@redhat.com>
2362
2363 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2364
2365 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2366
2367 * ppc-tdep.h (ppc_num_srs): New enum constant.
2368
2369 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2370 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2371 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2372 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2373 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2374 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2375 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2376 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2377 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2378 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2379 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2380 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2381 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2382 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2383 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2384 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2385 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2386 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2387 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2388 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2389 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2390 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2391 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2392 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2393 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2394 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2395 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2396 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2397 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2398 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2399 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2400 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2401 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2402 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2403 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2404 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2405 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2406 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2407 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2408 special-purpose register numbers.
2409
2410 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2411 manual mentions 'md_twb', but many mention 'm_twb', and at that
2412 point in the register list.)
2413
2414 2004-07-14 Andrew Cagney <cagney@gnu.org>
2415
2416 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2417 instead of "internal-error".
2418
2419 2004-07-10 Joel Brobecker <brobecker@gnat.com>
2420
2421 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2422 that was inserted inside a comment.
2423
2424 2004-07-10 Randolph Chung <tausq@debian.org>
2425
2426 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2427 function.
2428 (hppa_hpux_push_dummy_code): New function.
2429 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2430 Set find_global_pointer method.
2431
2432 2004-07-10 Mark Kettenis <kettenis@gnu.org>
2433
2434 * NEWS: Mention BSD libkvm interface.
2435
2436 2004-07-10 Michael Snyder <msnyder@redhat.com>
2437
2438 * symfile.c (generic_load): Comment typo.
2439 * stack.c (get_selected_block): Ditto.
2440 * regcache.c (regcache_cooked_read): Ditto.
2441 * monitor.c (monitor_debug): Ditto.
2442 * mips-tdep.c (mips_read_pc): Ditto.
2443 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2444 * gdb_mbuild.sh: Ditto.
2445 * gdbarch.sh: Ditto.
2446 * gdbarch.h: Ditto.
2447
2448 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2449
2450 * ada-tasks.c: Remove file.
2451
2452 Remove ARI problems:
2453
2454 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2455 beginning of line.
2456
2457 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2458 Add comment.
2459 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2460 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2461 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2462 (UMIN_OF_SIZE): Remove.
2463 (max_of_type): New function to replace orphan macro in gdbtypes.h
2464 (min_of_type): Ditto.
2465 (discrete_type_high_bound): Use max_of_type.
2466 (discrete_type_low_bound): Use min_of_type.
2467 (possible_user_operator_p): Move operator to beginning of line.
2468 (ada_is_variant_part): Ditto.
2469 (ensure_lval): Rewrite to avoid deprecated operations.
2470 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2471 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2472 (ada_enum_name): Remove assignments in 'if' statements.
2473 (build_ada_types): Add gdbarch parameter.
2474 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2475 with gdbarch_data_register_post_init.
2476 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2477 add_show_from_set.
2478
2479 * ada-valprint.c (inspect_it): Remove declaration.
2480 (repeat_count_threshold): Remove declaration.
2481 (ada_print_floating): Remove assignments in 'if' statements.
2482 (print_str): Move operator to beginning of line.
2483
2484 2004-07-08 Jim Blandy <jimb@redhat.com>
2485
2486 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2487
2488 2004-07-08 Bob Rossi <bob@brasko.net>
2489
2490 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2491
2492 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2493
2494 * language.h (struct_language_defn): Add new function pointer:
2495 la_class_name_from_physname. Also add new prototype for
2496 language_class_name_from_physname.
2497 * language.c (language_class_name_from_physname): New function.
2498 (unk_lang_class_name): Ditto.
2499 (unknown_language_defn, auto_language_defn): Change
2500 to add unk_lang_class_name function pointer for
2501 la_class_name_from_physname.
2502 (local_language_defn): Ditto.
2503 * dwarf2read.c (guess_structure_name): Change to call
2504 language_class_name_from_physname.
2505 (determine_class_name): Ditto.
2506 * cp-support.c (class_name_from_physname): Renamed.
2507 (cp_class_name_from_physname): New name of function.
2508 * cp-support.h: Ditto.
2509 * c-lang.c (c_language_defn): Change to add NULL
2510 for class_name_from_physname function pointer.
2511 (cplus_language_defn): Change to add cp_class_name_from_physname.
2512 * jv-lang.c (java_class_name_physname): New function.
2513 (java_find_last_component): New static routine.
2514 (java_language_defn): Add java_class_name_from_physname pointer.
2515 * ada-lang.c (ada_language_defn): Change to add NULL
2516 for class_name_from_physname function pointer.
2517 * f-lang.c (f_language_defn): Ditto.
2518 * m2-lang.c (m2_language_defn): Ditto.
2519 * objc-lang.c (objc_language_defn): Ditto.
2520 * p-lang.c (pascal_language_defn): Ditto.
2521 * scm-lang.c (scm_language_defn): Ditto.
2522
2523 2004-07-06 Andrew Cagney <cagney@gnu.org>
2524
2525 Patch from Bart Robinson.
2526 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2527 (O_LARGEFILE): Define to 0, if not defined.
2528
2529 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2530
2531 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2532 <machine/pcb.h> and "bsd-kvm.h".
2533 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2534 (m68kbsd_supply_pcb): New function.
2535 (_initialize_m68kbsd_nat): New prototype and function.
2536 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2537 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2538 (LOADLIBES): New variable.
2539 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2540 (LOADLIBES): New variable.
2541
2542 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2543
2544 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2545
2546 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2547 <sys/proc.h>.
2548 (bsd_kvm_cmdlist): New variable.
2549 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2550 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2551 command and "kvm proc" command.
2552 * Makefile.in (bsd-kvm.o): Update dependencies.
2553
2554 2004-07-02 Mark Kettenis <kettenis@gnu.org>
2555
2556 * osabi.c: Update copyright year.
2557 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2558 notes if EI_OSABI is set to ELFOSABI_HPUX.
2559
2560 2004-07-01 Michael Snyder <msnyder@redhat.com>
2561
2562 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2563 that seems to have gotten whacked out of line.
2564
2565 2004-07-01 Mark Kettenis <kettenis@gnu.org>
2566
2567 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2568 code.
2569
2570 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2571
2572 * ada-lang.c (decode_packed_array): Minor change to comment.
2573 (ada_value_slice_ptr): New function.
2574 (ada_value_slice): New function.
2575 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2576 test. Don't know why it is there.
2577 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2578 to avoid dereferencing huge arrays from which one is slicing.
2579 (empty_array): Correct to return an array rather than
2580 a subrange value.
2581 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2582 on empty arrays (let'em use 'FIRST instead).
2583
2584 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2585
2586 Address complaints from gdb_ari.sh:
2587
2588 * ada-exp.y: Include gdb_string.h rather than string.h.
2589 (convert_char_literal): Reformat declaration.
2590 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2591 * ada-lex.l: Change use of free to xfree (the macro would do so
2592 anyway, but this is harmless).
2593 Include gdb_string.h rather than string.h.
2594 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2595
2596 * ada-lang.c (parse): Remove K&Rism in parameter list.
2597 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2598
2599 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2600
2601 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2602 dead code.
2603
2604 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2605
2606 * alphabsd-nat.c: Update copyright year.
2607 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2608
2609 2004-06-29 Joel Brobecker <brobecker@gnat.com>
2610
2611 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
2612 (i386_cygwin_in_solib_call_trampoline): New function.
2613 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2614 and skip_trampoline_code gdbarch methods.
2615
2616 2004-06-29 Jim Blandy <jimb@redhat.com>
2617
2618 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2619 name actually used in the dependency lists.
2620
2621 2004-06-29 Randolph Chung <tausq@debian.org>
2622
2623 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2624
2625 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2626
2627 * win32-nat.c (child_pid_to_exec_file): New function.
2628 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
2629 functionality.
2630
2631 2004-06-28 Andrew Cagney <cagney@gnu.org>
2632
2633 * defs.h (xstrvprintf): Declare.
2634 * utils.c (xstrvprintf): New function.
2635 (internal_vproblem, xstrprintf, xasprintf)
2636 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2637 * serial.c (serial_printf): Ditto.
2638 * complaints.c (vcomplaint): Ditto.
2639
2640 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2641
2642 * infcmd.c (attach_command): Move call to target_terminal_inferior
2643 behind loading symbol table.
2644
2645 2004-06-28 Andrew Cagney <cagney@gnu.org>
2646
2647 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2648 change - add back extern deprecated_ui_loop_hook declaration.
2649
2650 2004-06-28 Andrew Cagney <cagney@gnu.org>
2651
2652 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2653 xstrprintf.
2654 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2655 (c_value_of_variable): Ditto.
2656 * utils.c (internal_vproblem): Ditto.
2657 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2658 * remote.c (add_packet_config_cmd): Ditto.
2659 * remote-rdp.c (rdp_set_command_line): Ditto.
2660 * regcache.c (regcache_dump): Ditto.
2661 * frv-tdep.c (new_variant, new_variant): Ditto.
2662 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2663 (fbsd_find_memory_regions): Ditto.
2664 * breakpoint.c (create_thread_event_breakpoint)
2665 (create_breakpoints): Ditto.
2666 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2667 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2668
2669 2004-06-28 Joel Brobecker <brobecker@gnat.com>
2670
2671 * ada-lang.c: Re-indent file, with some massaging to help indent
2672 a bit when the result is otherwise really too ugly.
2673
2674 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2675
2676 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2677 code_addr_p and special_addr_p to 'unsigned int'.
2678
2679 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2680
2681 * i386v4-nat.c: Update copyright year and tweak comment.
2682 (regmap): Remove trailing comma.
2683 (supply_gregset): Rename local variable i to regnum. Call
2684 regcache_raw_supply instead of supply_register.
2685 (fill_gregset): Rename argument regno to regnum. Call
2686 regcache_raw_collect instead of regcache_collect.
2687
2688 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2689
2690 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2691 and special_addr_p.
2692 (frame_id_build, frame_id_build_special): Update comments.
2693 (frame_id_build_wild): New prototype.
2694 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2695 struct frame_id fields.
2696 (frame_id_build_wild): New function.
2697 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2698
2699 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2700
2701 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2702 hppabsd-tdep.c.
2703
2704 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2705
2706 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2707
2708 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2709
2710 * ada-lang.c: Re-indent file.
2711
2712 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2713
2714 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2715 (no_symtab_msg): Likewise.
2716
2717 2004-06-27 Andreas Schwab <schwab@suse.de>
2718
2719 * source.c: Fix whitespace.
2720
2721 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2722
2723 * configure.in: Include <sys/param.h> for td_pcb test.
2724 * configure: Regenerated.
2725
2726 * i386nbsd-nat.c: New file.
2727 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2728 i386obsd-nat.c and i386obsd-tdep.c.
2729 (i386nbsd-nat.o): New dependency.
2730 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2731 bsd-kvm.o.
2732 (LOADLIBES): New variable.
2733 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2734 bsd-kvm.o.
2735 (LOADLIBES): New variable.
2736
2737 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2738 (LOADLIBES): New variable.
2739
2740 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2741 fetching from BSD_KVM_PADDR. Correctly lookup address for
2742 "_thread0".
2743
2744 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2745 "bsd-kvm.h".
2746 (amd64fbsd_supply_pcb): New funcion.
2747 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2748
2749 2004-06-27 <david@streamline-computing.com>
2750
2751 Partial fix for PR cli/1056.
2752 * valarith.c: Check for zero in division and remainder
2753 evaluation.
2754
2755 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2756
2757 * i387-tdep.c: Remove excessive whitespace.
2758
2759 2004-06-26 Andrew Cagney <cagney@gnu.org>
2760
2761 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2762 * gdb-events.h, gdb-events.c: Re-generate.
2763 * tui/tui-hooks.c (tui_install_hooks): Update.
2764 (tui_remove_hooks): Update.
2765 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2766
2767 2004-06-26 Mark Kettenis <kettenis@gnu.org>
2768
2769 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2770 (gregset_t, fpregset_t): Remove typedefs.
2771 (REG_OFFSET): Rename argument.
2772 (amd64bsd_r_reg_offset): Rename from reg_offset.
2773 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2774 Remove functions.
2775 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2776 of reg_offset.
2777 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2778
2779 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2780
2781 * vax-tdep.c: Tweak comment.
2782
2783 Add OpenBSD/hppa support.
2784 * NEWS (New native configurations): Mention OpenBSD/hppa.
2785 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2786 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2787 files.
2788 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2789 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2790 * configure.host: Add hppa*-*-openbsd*.
2791 * configure.tgt: Add hppa*-*-openbsd*.
2792
2793 2004-06-25 Andrew Cagney <cagney@gnu.org>
2794
2795 * defs.h (deprecated_ui_loop_hook): Deprecated.
2796 * wince.c (child_wait): Update.
2797 * win32-nat.c (child_wait): Update.
2798 * v850ice.c (v850ice_wait): Update.
2799 * top.c (deprecated_ui_loop_hook): Update.
2800 * serial.h: Update.
2801 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2802 (do_unix_readchar): Update.
2803 * ser-tcp.c (net_open): Update.
2804 * remote-sim.c (gdb_os_poll_quit): Update.
2805 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2806
2807 2004-06-24 Andrew Cagney <cagney@gnu.org>
2808
2809 * defs.h (deprecated_pre_add_symbol_hook)
2810 (deprecated_post_add_symbol_hook): Deprecated.
2811 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2812 (symbol_file_add_with_addrs_or_offsets): Update references.
2813
2814 2004-06-24 Andrew Cagney <cagney@gnu.org>
2815
2816 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2817 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2818 * wince.c (ui_loop_hook): Delete extern declaration.
2819 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2820 * v850ice.c (ui_loop_hook): Delete extern declaration..
2821 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2822 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2823 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2824 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2825 ui_loop_hook declaration.
2826
2827 2004-06-24 Andrew Cagney <cagney@gnu.org>
2828
2829 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2830 entry_func_highpc fields.
2831 * objfiles.c (init_entry_point_info): Do not clear
2832 entry_func_lowpc and entry_func_highpc.
2833 (objfile_relocate): Do not relocate entry_func_lowpc and
2834 entry_func_highpc.
2835 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2836 entry_func_highpc.
2837 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2838 entry_func_highpc.
2839 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2840 entry_func_lowpc and entry_func_highpc with call to
2841 inside_entry_func.
2842
2843 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2844
2845 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2846 quad-precision floating point arguments in registers.
2847
2848 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2849
2850 From Michael Mueller <m.mueller99@kay-mueller.de>:
2851 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2852 account.
2853
2854 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2855
2856 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2857 to -1.
2858 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2859 untriggered watchpoints to a separate if clause. Update function
2860 comment regarding STOPPED_BY_WATCHPOINT argument.
2861
2862 2004-06-22 Jim Blandy <jimb@redhat.com>
2863
2864 * gdbarch.sh: Doc fix.
2865
2866 2004-06-21 Martin Hunt <hunt@redhat.com>
2867 Kevin Buettner <kevinb@redhat.com>
2868
2869 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2870 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2871 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2872 to set_gdbarch_sp_regnum(). Use cooked register number.
2873 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2874
2875 2004-06-21 Andrew Cagney <cagney@gnu.org>
2876
2877 * gdbarch.sh: When the macro field is empty, do not generate a
2878 macro definition. When the macro field is "=", generate the macro
2879 name from the upper-case function name.
2880 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2881 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2882 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2883 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2884 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2885 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2886 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2887 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2888 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2889 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2890 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2891 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2892 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2893 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2894 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2895 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2896 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2897 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2898 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2899 (DEPRECATED_USE_STRUCT_CONVENTION)
2900 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2901 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2902 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2903 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2904 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2905 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2906 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2907 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2908 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2909 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2910 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2911 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2912 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2913 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2914 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2915 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2916 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2917 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2918
2919 2004-06-21 Andrew Cagney <cagney@gnu.org>
2920
2921 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2922 macro name, and the function rather than macro value. Only wrap
2923 macro print statements in #ifdef. Move format logic to where it
2924 is needed.
2925 * gdbarch.c: Re-generate.
2926
2927 * gdbarch.sh (read): Delete "print_p" and "description", add
2928 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2929 Delete references to print_p.
2930 (TARGET_ARCHITECTURE): Delete print predicate.
2931 * gdbarch.c: Re-generate.
2932
2933 * gdbarch.sh: Check that multi-arch methods do not provide a
2934 macro.
2935 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2936 (print_registers_info, print_float_info, print_vector_info)
2937 (adjust_breakpoint_address, remote_translate_xfer_address)
2938 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2939 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2940 name from the multi-arch definition.
2941
2942 2004-06-20 Andrew Cagney <cagney@gnu.org>
2943
2944 * gdbarch.sh: Sort by the function, instead of macro name.
2945 * gdbarch.c: Re-generate.
2946
2947 2004-06-20 Andrew Cagney <cagney@gnu.org>
2948
2949 * gdbarch.sh: Use the function, instead of macro name in
2950 errors and the log file.
2951 (return_value): Remove stray ":" in spec.
2952
2953 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2954 * gdbarch.h, gdbarch.c: Re-generate.
2955 * Makefile.in (arch-utils.o): Update dependencies.
2956 * values.c (using_struct_return): Move code calling
2957 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2958 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2959 to legacy_return_value, simplify.
2960 * infcmd.c (print_return_value): Move code calling
2961 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2962 to legacy_return_value, simplify.
2963 * infcall.c (call_function_by_hand): Move code calling
2964 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2965 * arch-utils.c: Update copyright. Include "gdbcore.h".
2966 (legacy_return_value): New function.
2967 * arch-utils.h: Update copyright.
2968 (legacy_return_value): Declare.
2969
2970 2004-06-20 Andrew Cagney <cagney@gnu.org>
2971
2972 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2973 * gdbarch.h, gdbarch.c: Re-generate.
2974 * values.c (using_struct_return): Update call.
2975 * mcore-tdep.c: Update comment.
2976 * infcall.c (call_function_by_hand): Update comment.
2977 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2978 * arch-utils.h (always_use_struct_convention): Update.
2979 * v850-tdep.c (v850_gdbarch_init): Update.
2980 * sh64-tdep.c (sh64_gdbarch_init): Update.
2981 * sh-tdep.c (sh_gdbarch_init): Update.
2982 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2983 * mips-tdep.c (mips_gdbarch_init): Update.
2984 * mcore-tdep.c (mcore_gdbarch_init): Update.
2985 * m32r-tdep.c (m32r_gdbarch_init): Update.
2986 * ia64-tdep.c (ia64_gdbarch_init): Update.
2987 * h8300-tdep.c (h8300_gdbarch_init): Update.
2988 * frv-tdep.c (frv_gdbarch_init): Update.
2989 * cris-tdep.c (cris_gdbarch_init): Update.
2990 * arm-tdep.c (arm_gdbarch_init): Update.
2991 * alpha-tdep.c (alpha_gdbarch_init): Update.
2992
2993 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2994
2995 * PROBLEMS: Add more specific information, and a work-around,
2996 for PR gdb/1458.
2997
2998 2004-06-18 Andrew Cagney <cagney@gnu.org>
2999
3000 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3001 * gdbarch.h, gdbarch.c: Re-generate.
3002 * ada-lang.c (ada_finish_decode_line_1): Update.
3003 * infrun.c (handle_inferior_event): Update.
3004 * infcall.c (find_function_addr): Update.
3005 * linespec.c (minsym_found): Update.
3006 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3007 Update.
3008 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3009 * cli/cli-cmds.c (disassemble_command): Update.
3010 * vax-tdep.c (vax_gdbarch_init): Update.
3011
3012 2004-06-18 Mark Kettenis <kettenis@gnu.org>
3013
3014 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3015
3016 2004-06-17 Andrew Cagney <cagney@gnu.org>
3017
3018 GDB 6.1.1 released from the GDB 6.1 branch.
3019 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3020 * PROBLEMS: Ditto.
3021
3022 2004-06-16 Daniel Jacobowitz <dan@debian.org>
3023
3024 PR gdb/1658
3025 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3026 operation as a uleb128. Found by Michael Coulter.
3027
3028 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3029
3030 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3031 make it non-static.
3032 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3033 to ada-lang.h; this is needed to be able to implement the kill command
3034 in multi-task mode.
3035 (task_ptid): Ditto.
3036 (task_entry): Ditto.
3037 (task_list): Ditto.
3038 (ada_build_task_list): Ditto.
3039
3040 * ada-lang.c: Conditionalize routines and data structures related
3041 to breakpoints, exceptions, completion, and symbol caching on
3042 GNAT_GDB, since these are not yet used in the submitted public sources.
3043 (ada_main_name): Editorial: Move definition out of exception-related
3044 code.
3045
3046 2004-06-15 Andrew Cagney <cagney@gnu.org>
3047
3048 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
3049 deprecated_pc_in_call_dummy.
3050
3051 2004-06-15 Alan Modra <amodra@bigpond.net.au>
3052
3053 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
3054 bfd_get_section_size_before_reloc or _raw_size.
3055 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3056 * dwarf2read.c (dwarf2_locate_sections): Likewise.
3057 (dwarf2_read_section): Likewise.
3058 * elfread.c (elf_locate_sections): Likewise.
3059 * gcore.c (derive_heap_segment): Likewise.
3060 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3061 * remote-e7000.c (e7000_load): Likewise.
3062 * remote-m32r-sdi.c (m32r_load): Likewise.
3063 * remote-mips.c (mips_load_srec): Likewise.
3064 (pmon_load_fast): Likewise.
3065 * remote.c (compare_sections_command): Likewise.
3066 * symfile.c (add_section_size_callback): Likewise.
3067 (load_section_callback): Likewise.
3068 (pc_in_unmapped_range): Likewise.
3069 (pc_in_mapped_range): Likewise.
3070 (sections_overlap): Likewise.
3071 (list_overlays_command): Likewise.
3072 (simple_overlay_update_1): Likewise.
3073 (simple_overlay_update): Likewise.
3074 * tracepoint.c (remote_set_transparent_ranges): Likewise.
3075 * win32-nat.c (core_section_load_dll_symbols): Likewise.
3076
3077 2004-06-14 Randolph Chung <tausq@debian.org>
3078
3079 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
3080 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
3081 static.
3082 (hppa_hpux_inferior_created): New function.
3083 (hppa_hpux_init_abi): Register observer.
3084 * symfile.c (hp_cxx_exception_support_initialized)
3085 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
3086 (symbol_file_add_main_1, symbol_file_clear): Likewise.
3087
3088 2004-06-14 Randolph Chung <tausq@debian.org>
3089
3090 * MAINTAINERS (Write After Approval): Alphabetize my entry
3091 correctly.
3092
3093 2004-06-14 Andrew Cagney <cagney@gnu.org>
3094
3095 * MAINTAINERS (testsuite): List Michael Chastain as the lead
3096 testsuite maintainer.
3097
3098 2004-06-13 Andrew Cagney <cagney@gnu.org>
3099
3100 * infcmd.c (print_return_value): Fix logic, allow
3101 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
3102
3103 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
3104 defining any macros.
3105 * gdbarch.h: Re-generate.
3106
3107 * gdbarch.sh: Delete "level" attribute. Only check for a macro
3108 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
3109 * gdbarch.h: Re-generate.
3110
3111 * values.c (generic_use_struct_convention): Don't check gcc_p.
3112
3113 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3114 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
3115 * gdbarch.h, gdbarch.c: Regenerate.
3116 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
3117 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
3118 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3119 deprecated_max_register_raw_size and
3120 deprecated_max_register_virtual_size.
3121 * v850-tdep.c (v850_gdbarch_init): Ditto.
3122 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3123 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3124 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3125 * cris-tdep.c (cris_gdbarch_init): Ditto.
3126
3127 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
3128 * gdbarch.h, gdbarch.c: Re-generate.
3129 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
3130 (m68hc11_use_struct_convention): Delete function.
3131 (m68hc11_extract_struct_value_address): Delete function.
3132 (m68hc11_return_value): New function.
3133 (m68hc11_gdbarch_init): Instead of store_return_value,
3134 extract_return_value, return_value_on_stack,
3135 deprecated_extract_struct_value_address and use_struct_convention,
3136 set return_value.
3137 * values.c (using_struct_return): Do not call
3138 RETURN_VALUE_ON_STACK.
3139 * arch-utils.h (generic_return_value_on_stack_not): Delete
3140 declaration.
3141 * arch-utils.c (generic_return_value_on_stack_not): Delete
3142 function.
3143
3144 2004-06-12 Andrew Cagney <cagney@gnu.org>
3145
3146 * values.c (register_value_being_returned): Delete function.
3147 * infcmd.c (legacy_return_value): Delete function.
3148 * infcall.c (call_function_by_hand): Inline
3149 "register_value_being_returned", simplify.
3150 * values.c (using_struct_return): Update comment, refer to
3151 print_return_value instead of register_value_being_returned.
3152 * infcmd.c (print_return_value): Inline calls to
3153 register_value_being_returned and legacy_return_value. Simplify.
3154
3155 2004-06-11 Randolph Chung <tausq@debian.org>
3156
3157 * somread.c (som_symtab_read): Exclude gcc local symbols.
3158
3159 2004-06-11 Randolph Chung <tausq@debian.org>
3160
3161 * infrun.c (handle_inferior_event): Handle the case when a
3162 trampoline ends up in the runtime resolver, and if the trampoline
3163 has no name. Rearrange the code so that all the trampoline
3164 processing happens before other step-out-of-range handling.
3165
3166 2004-06-11 Martin Hunt <hunt@redhat.com>
3167
3168 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
3169 has no fpu.
3170
3171 2004-06-10 Andrew Cagney <cagney@gnu.org>
3172
3173 * blockframe.c (legacy_inside_entry_func): Delete.
3174 (legacy_frame_chain_valid): Inline call to
3175 legacy_inside_entry_func, simplify.
3176
3177 2004-06-10 Bob Rossi <bob@brasko.net>
3178
3179 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3180 * dwarf2read.c (partial_die_info): Add dirname field.
3181 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
3182 (read_partial_die): Save away DW_AT_comp_dir.
3183 * defs.h (symtab_to_filename): Removed.
3184 * source.c (find_and_open_source): Added.
3185 (open_source_file): Just calls find_and_open_source.
3186 (symtab_to_filename): Removed.
3187 (symtab_to_fullname, psymtab_to_fullname): Added.
3188 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3189 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3190 symtab_to_filename.
3191 * symtab.h (partial_symtab): Add dirname field.
3192 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3193 (mi_cmd_file_list_exec_source_file): Call new function
3194 symtab_to_fullname to find fullname.
3195 (mi_cmd_file_list_exec_source_files): Added.
3196 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
3197 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3198
3199 2004-06-10 Andrew Cagney <cagney@gnu.org>
3200
3201 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3202 to generic_use_struct_convention, the default value.
3203
3204 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3205 of abort.
3206
3207 * ns32k-tdep.c (ns32k_push_arguments): New function.
3208 (ns32k_gdbarch_init): Set deprecated_push_arguments.
3209 * infcall.c (call_function_by_hand): Call error instead of
3210 legacy_push_arguments.
3211 * value.h (legacy_push_arguments): Delete declaration.
3212 * valops.c (legacy_push_arguments): Delete function.
3213 (value_push): Delete function.
3214
3215 2004-06-10 Brian Ford <ford@vss.fsi.com>
3216
3217 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3218 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3219 info.
3220 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3221
3222 2004-06-10 Andrew Cagney <cagney@gnu.org>
3223
3224 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3225 * gdbarch.h, gdbarch.c: Re-generate.
3226 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3227 parameters.
3228 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3229 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3230 deprecated_pc_in_call_dummy instead of
3231 DEPRECATED_PC_IN_CALL_DUMMY.
3232 (arm_skip_prologue): Ditto.
3233 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3234 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3235 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3236 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3237 Ditto.
3238 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3239 (sh64_init_extra_frame_info, sh64_get_saved_register)
3240 (sh64_pop_frame): Ditto.
3241 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3242 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3243 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3244 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3245 (h8300_pop_frame): Ditto.
3246 * blockframe.c (legacy_inside_entry_func)
3247 (legacy_frame_chain_valid): Ditto.
3248 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3249 to deprecated_pc_in_call_dummy.
3250
3251 2004-06-09 Andrew Cagney <cagney@gnu.org>
3252
3253 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3254 provide a default value.
3255 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3256 * gdbarch.h, gdbarch.c: Re-generate.
3257 * arch-utils.c (generic_convert_register_p): Rename
3258 legacy_convert_register_p
3259 (legacy_register_to_value, legacy_value_to_register): Delete
3260 functions.
3261 * arch-utils.h (generic_convert_register_p): Rename
3262 legacy_convert_register_p.
3263 (legacy_register_to_value, legacy_value_to_register): Delete
3264 declarations.
3265
3266 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3267 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3268 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3269 * gdbarch.h, gdbarch.c: Re-generate.
3270 * infcmd.c (default_print_registers_info): Simplify.
3271 * findvar.c (value_of_register): Simplify.
3272 * mi/mi-main.c (get_register): Simplify.
3273 * arch-utils.c (legacy_convert_register_p): Always return 0.
3274 (legacy_register_to_value, legacy_value_to_register): Always call
3275 internal_error.
3276
3277 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3278 #ifdef CLEAR_INSN_CACHE code.
3279 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3280 Delete #ifdef CLEAR_DEFERRED_STORES code.
3281
3282 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3283
3284 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3285 copyright.
3286 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3287
3288 * config/mips/mipsv4.mh: Delete file.
3289
3290 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3291 unreferenced macro.
3292 (hpread_adjust_stack_address): Delete declaration.
3293
3294 2004-06-08 Andrew Cagney <cagney@gnu.org>
3295
3296 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3297 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3298 PTRACE_ATTACH / PTRACE_DETACH available call error.
3299 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3300 * infttrace.c (update_thread_state_after_attach, attach, detach):
3301 Remove #ifdef wrappers.
3302 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3303 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3304 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3305 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3306 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3307 * config/nm-linux.h (ATTACH_DETACH): Delete.
3308 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3309 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3310 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3311 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3312 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3313
3314 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
3315
3316 * configure.in: Set $configdir to the right OS specific value.
3317 Use value when setting $tcldir and $tkdir.
3318 * configure: Regenerate.
3319
3320 2004-06-06 Paul Brook <paul@codesourcery.com>
3321
3322 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3323 records.
3324
3325 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3326
3327 * ada-lang.c (lookup_symbol_in_language): New function to allow
3328 re-use of another language's symbol lookup code. (Placed here
3329 temporarily while Ada support is being integrated into the public
3330 tree).
3331 (restore_language): New auxiliary function for
3332 lookup_symbol_in_language.
3333 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3334 temporarily while Ada support is being integrated into the public
3335 tree).
3336
3337 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
3338
3339 * Makefile.in (check//%): New.
3340
3341 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3342 (mn10300_store_return_value): Rewrite.
3343 (mn10300_type_align): New.
3344 (mn10300_use_struct_convention): Rewrite.
3345 (mn10300_return_value): New, using all of the above.
3346 (mn10300_pop_frame_regular): Add saved_regs_size.
3347 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3348
3349 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3350 regs if PC is on movm.
3351
3352 2004-06-07 Jim Blandy <jimb@redhat.com>
3353
3354 Add native Linux support for the PowerPC E500.
3355 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3356 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3357 all architectures except the E500.
3358 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3359 #definitions.
3360 (struct gdb_evrregset_t): New type.
3361 (have_ptrace_getsetevrregs): New variable.
3362 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3363 fetch_spe_registers): New functions.
3364 (fetch_register): Call fetch_spe_register as appropriate.
3365 Assert that we're only passed raw register numbers.
3366 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3367 Don't fetch gprs if they're pseudoregisters.
3368 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3369 store_spe_registers): New functions.
3370 (store_register): Call store_spe_register as appropriate.
3371 Assert that we're only passed raw register numbers.
3372 (store_ppc_registers): Call store_spe_registers as appropriate.
3373 Don't store gprs if they're pseudoregisters.
3374
3375 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3376
3377 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3378 struct if one exists, even if we are dealing with a zombie thread.
3379
3380 2004-06-07 Andrew Cagney <cagney@gnu.org>
3381
3382 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3383 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3384 Rename PC_REQUIRES_RUN_BEFORE_USE.
3385 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3386 #ifdef.
3387
3388 2004-06-07 Randolph Chung <tausq@debian.org>
3389
3390 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3391 unwinding after sp has been saved to the stack but before the end
3392 of the prologue, and after the fp has been modified but before it has
3393 been saved to the stack.
3394 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3395 Remove superfluous definitions.
3396 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3397
3398 2004-06-07 Guy Martin <gmsoft@gentoo.org>
3399
3400 Committed by Randolph Chung.
3401 * hppa-linux-nat.c: Include the correct version of the header file
3402 depending on the kernel version.
3403
3404 2004-06-06 Randolph Chung <tausq@debian.org>
3405
3406 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3407 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3408
3409 2004-06-06 Randolph Chung <tausq@debian.org>
3410
3411 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3412 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3413 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3414 * hppa-tdep.c (hppa_symbol_address): New function definition.
3415 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3416
3417 2004-06-06 Randolph Chung <tausq@debian.org>
3418
3419 * hppa-tdep.h (struct value): Forward declaration.
3420 (gdbarch_tdep): Define tdep find_global_pointer method.
3421 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3422 associated with the function we are trying to call, and write it
3423 to the gp register.
3424 (hppa32_convert_from_funct_ptr_addr): New function.
3425 (hppa_find_global_pointer): New function.
3426 (hppa_gdbarch_init): Set default find_global_pointer method; set
3427 convert_from_func_ptr_addr method.
3428 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3429 (hppa_linux_init_abi): Set find_global_pointer method.
3430 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3431
3432 2004-06-06 Randolph Chung <tausq@debian.org>
3433
3434 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3435 to struct value *function.
3436 * gdbarch.c: Regenerate.
3437 * gdbarch.h: Likewise.
3438 * infcall.c (call_function_by_hand): Pass entire function value
3439 to push_dummy_call.
3440
3441 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3442 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3443 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3444 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3445 * arm-tdep.c (arm_push_dummy_call): Likewise.
3446 * avr-tdep.c (avr_push_dummy_call): Likewise.
3447 * cris-tdep.c (cris_push_dummy_call): Likewise.
3448 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3449 * frv-tdep.c (frv_push_dummy_call): Likewise.
3450 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3451 * hppa-tdep.c (hppa32_push_dummy_call)
3452 (hppa64_push_dummy_call): Likewise.
3453 * i386-tdep.c (i386_push_dummy_call): Likewise.
3454 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3455 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3456 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3457 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3458 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3459 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3460 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3461 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3462 (ppc64_sysv_abi_push_dummy_call): Likewise.
3463 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3464 (ppc64_sysv_abi_push_dummy_call): Likewise.
3465 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3466 * s390-tdep.c (s390_push_dummy_call): Likewise.
3467 * sh-tdep.c (sh_push_dummy_call_fpu)
3468 (sh_push_dummy_call_nofpu): Likewise.
3469 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3470 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3471 * vax-tdep.c (vax_push_dummy_call): Likewise.
3472
3473 2004-06-04 Jim Blandy <jimb@redhat.com>
3474
3475 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3476 gdbarch argument to register_size.
3477
3478 * rs6000-tdep.c (rs6000_store_return_value): Use
3479 regcache_cooked_write_part instead of
3480 deprecated_write_register_bytes.
3481 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3482 not gdbarch_deprecated_store_return_value.
3483
3484 * ppc-linux-nat.c (store_register, fetch_register): Remove
3485 incorrect assertions. Simplify and generalize handling of
3486 transfers whose sizes are not multiples of, or less than, sizeof
3487 (PTRACE_XFER_TYPE).
3488
3489 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3490
3491 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3492 as a new thread event.
3493 * thread-db.c (thread_get_info_callback): If the thread is a
3494 zombie, return TD_THR_ZOMBIE.
3495 (thread_from_lwp): If thread_get_info_callback returns
3496 TD_THR_ZOMBIE, check if the thread is still on the thread list
3497 and return a -1 ptid if not found.
3498 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3499 change the status to TARGET_WAITKIND_SPURIOUS.
3500
3501 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
3502
3503 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3504 double values in little endian mode.
3505
3506 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3507
3508 Committed by Andrew Cagney.
3509 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3510 after last enum constant to avoid error from IBM C
3511 compiler.
3512
3513 2004-06-02 Jim Blandy <jimb@redhat.com>
3514
3515 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3516 to 'message', and make it local to the lone block that uses it.
3517
3518 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3519
3520 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3521
3522 * ada-exp.y: Update copyright notice.
3523 Include block.h.
3524
3525 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3526 SPECIAL_VARIABLE and unify the treatment of these cases.
3527
3528 (write_attribute_call0): Remove.
3529 (write_attribute_call1): Remove.
3530 (write_attribute_calln): Remove.
3531 (save_qualifier): Add missing semicolon.
3532
3533 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3534 temporarily disabled to allow compilation with FSF head version.
3535
3536 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3537 use individual operators (OP_*) for all attributes.
3538 (exp syntax): Use write_int.
3539 Handle STRING literals with OP_STRING.
3540 (variable syntax): Add limit parameter to calls to
3541 write_object_renaming.
3542
3543 (temp_parse_space): New definition to hold entities that need
3544 only live until the next call to ada_parse.
3545 (string_to_operator): Rename fields of ada_opname_table entries.
3546
3547 (write_var_from_sym): Record block.
3548 (write_var_from_name): Minor reformatting.
3549 Make sure saved name is properly encoded in the case of multiple
3550 matches, and set its language to Ada.
3551 Update comment.
3552 Modify to indicate unresolved name as symbol in the UNRESOLVED
3553 namespace, allocated in temp_parse_space.
3554 (write_int): New function.
3555
3556 (write_object_renaming): Add max_depth parameter to limit
3557 chains of object renamings.
3558 Handle case where root of renaming expression is itself a renaming.
3559 Use temp_parse_space for temporary name buffer.
3560 Handle renamings to dereferenced pointers (___XEXA suffices).
3561
3562 (ada_parse, yyerror, string_to_operator,
3563 write_var_from_sym, write_var_from_name, write_attribute_call0,
3564 write_attribute_call1, write_attribute_calln,
3565 write_object_renaming): Protoize.
3566
3567 (_initialize_ada_exp): New function.
3568
3569 * ada-lang.c: Update copyright notice.
3570 General terminology change to conform to GNAT compiler usage:
3571 mangle => encode, demangle => decode
3572 Include gdb_obstack.h.
3573 Include gdb_regex.h
3574 Include frame.h
3575 Include hashtab.h
3576 Include completer.h
3577 Include gdb_stat.h
3578 Include block.h
3579 Include infcall.h
3580
3581 (ADA_RETAIN_DOTS): Make sure this is defined.
3582 (TRUNCATION_TOWARDS_ZERO): Define.
3583 (struct string_vector): Define.
3584 (unresolved_names): Remove definition.
3585 (xnew_string_vector): New function.
3586 (string_vector_append): New function.
3587 (extract_string): Make static.
3588 (ada_unqualified_name): New function.
3589 (add_angle_brackets): New function.
3590 (function_name_from_pc): New function.
3591 (place_on_stack): Rename to ensure_lval.
3592
3593 (ensure_lval): Renamed from place_on_stack.
3594 Make identity on lvals.
3595 Update comment.
3596 (is_nonfunction): New interface.
3597 Only symbols in LOC_CONST class can be enumerals.
3598 (fill_in_ada_prototype): Remove; now independent of language.
3599 (add_defn_to_vec): Add obstack and symtab arguments.
3600 Use obstack to hold collected definitions.
3601 (num_defns_collected): New function.
3602 (defns_collected): New function.
3603 (ada_resolve_subexp): Rename to resolve_subexp.
3604 (resolve_subexp): Renamed from ada_resolve_subexp.
3605 (ada_op_name): Return non-const result.
3606 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3607 other purposes.
3608
3609 (to_fixed_array_type): Add declaration.
3610 (coerce_unspec_val_to_type): Remove offset parameter.
3611 (find_sal_from_funcs_and_line): New interface.
3612 (find_line_in_linetable): Ditto.
3613
3614 (all_sals_for_line): Rename to ada_sals_for_line and make
3615 global.
3616 Add new parameter. When set, do not ask the user to choose the
3617 instance, but use the first one found instead.
3618 Use given line number in returned sals.
3619 Fix comment.
3620 Skip the prologue if funfirstline is set.
3621 Correct for memory leak when 0 lines found.
3622
3623 (value_pos_atr): Use pos_atr.
3624 (pos_atr): New function.
3625 (standard_lookup): Add block parameter.
3626
3627 (makeTimeStart): Remove declaration and uses.
3628 (makeTimeStop): Remove declaration and uses.
3629
3630 (ada_completer_word_break_characters): Allow for VMS.
3631 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3632 (raise_sym_name): New constant.
3633 (raise_unhandled_sym_name): New constant.
3634 (raise_assert_sym_name): New constant.
3635 (process_raise_exception_name): New constant.
3636 (longest_exception_template): New constant.
3637 (warning_limit): New variable to limit warnings during expression
3638 evaluation.
3639 (warnings_issued): New variable to keep track of warnings issued.
3640 (known_runtime_file_name_patterns): New constant.
3641 (known_auxiliary_function_name_patterns): New constant.
3642 (symbol_list_obstack): New variable.
3643
3644 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3645 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3646 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3647 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3648 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3649 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3650 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3651 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3652 and strcmp.
3653
3654 (ada_get_field_index): New function.
3655 (lim_warning): New function.
3656 (ada_translate_error_message): New function.
3657 (MAX_OF_SIZE): New function.
3658 (MIN_OF_SIZE): New function.
3659 (UMAX_OF_SIZE): New function.
3660 (UMIN_OF_SIZE): New function.
3661 (discrete_type_high_bound): New function.
3662 (discrete_type_low_bound): New function.
3663 (base_type): New function.
3664 (do_command): Remove.
3665
3666 (ada_update_initial_language): Use language_ada, not language_unknown.
3667 (ada_encode): Renamed from ada_mangle.
3668 Obey ADA_RETAIN_DOTS.
3669 (ada_decode): Renamed from ada_demangle.
3670 Update coding conventions.
3671 (decoded_names_store): New hash table.
3672 (ada_decode_symbol): New function.
3673 (ada_la_decode): New function.
3674
3675 (modify_general_field): Correct computations of offset and bit
3676 position.
3677 (desc_base_type): Handle ref types, too.
3678 (ada_is_direct_array_type): New function.
3679
3680 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3681 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3682 (ada_is_bogus_array_descriptor,ada_type_of_array,
3683 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3684 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3685 ada_is_array_descriptor_type.
3686
3687 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3688 (ada_is_packed_array_type): Handle pointers or
3689 references to packed arrays as well.
3690 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3691 (decode_packed_array_type): Search for the packed array type
3692 symbol in the currently selected block and associated
3693 superblocks too.
3694 Use lookup_symbol again.
3695
3696 (decode_packed_array): Handle pointers and references.
3697 Update call to coerce_unspec_val_to_type.
3698 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3699 (ada_value_primitive_packed_val): Improve comment.
3700
3701 (ada_index_type): Substitute int type for "undefined".
3702 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3703 ada_array_langth, ada_is_string_type): Use renamed
3704 ada_is_simple_array_type.
3705 (empty_array): New function.
3706
3707 (ada_resolve): Rename to resolve.
3708 (resolve): Make static.
3709 Call renamed resolve_subexp.
3710 Update comment.
3711 (ada_resolve_subexp): Rename to resolve_subexp.
3712 (resolve_subexp): Update comment.
3713 Decomment disabled code.
3714 Add LOC_COMPUTED* cases.
3715 Modify to use temporary struct symbols (marked as being in
3716 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3717 OP_UNRESOLVED_VALUE.
3718 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3719 Add OP_STRING case.
3720 Remove OP_ARRAY.
3721 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3722 Use new ada_lookup_symbol_list interface.
3723 Use new ada_resolve_function interface.
3724 Remove OP_TYPE case.
3725
3726 (ada_args_match): Idiot proof against null actuals.
3727 Use intermediate variables to clarify.
3728 (ada_resolve_function): Update comment and interface.
3729 (mangled_ordered_before): Rename to encoded_ordered_before and
3730 update comment.
3731 (sort_choices): Update comment and interface.
3732 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3733 (user_select_syms): New interface.
3734 Use new sort_choices interface.
3735 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3736 (possible_user_operator_p): Idiot-proof against null values.
3737 (ada_simple_renamed_entity): Don't make cleanup; rely on
3738 caller to free result string.
3739 Remove const from return type.
3740 (make_array_descriptor): Rename uses of place_on_stack to
3741 ensure_lval.
3742 Make sure that arrays are on stack.
3743
3744 (HASH_SIZE): Define.
3745 (struct cache_entry): Define.
3746 (cache_space): Define.
3747 (cache): Define.
3748 (clear_ada_sym_cache): New function.
3749 (find_entry): New function.
3750 (lookup_cached_symbol): New function.
3751 (defn_vector_size): Define.
3752 (cache_symbol): New function.
3753 (defn_symbols): Remove.
3754
3755 (standard_lookup): Use lookup_symbol_in_language to get effect of
3756 C lookup.
3757 Cache results.
3758
3759 (symbol_completion_match): New function.
3760 (symbol_completion_add): New function.
3761 (ada_make_symbol_completion_list): New function.
3762
3763 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3764 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3765 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3766 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3767
3768 (ada_lookup_simple_minsym): New function.
3769 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3770
3771 (add_symbols_from_enclosing_procs): New interface.
3772 Conditionalize more helpfully.
3773 Don't bother if program isn't running.
3774 Use new interface to get_frame_block.
3775 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3776
3777 (remove_extra_symbols): New interface.
3778 (xget_renaming_scope): New function.
3779 (is_package_name): New function.
3780 (renaming_is_visible): New function.
3781 (remove_out_of_scope_renamings): New function.
3782
3783 (ada_lookup_symbol_list): New interface.
3784 Properly reinitialize the symbol list obstack.
3785 Don't call add_symbols_from_enclosing_procs if we start from a
3786 static or global block.
3787 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3788 add_symbols_from_enclosing_procs.
3789 Add symtab data to cached entries.
3790 Handle symbols prefixed with
3791 "standard__" specially; strip prefix and don't look in local symbols.
3792 Do not include out of scope renaming symbols in list of
3793 symbols returned.
3794 Add const to block parameter.
3795 Move check for non-local, non-global symbols earlier.
3796 Remove timing stuff.
3797 (ada_lookup_symbol): New interface.
3798 Find symtab as well.
3799 (ada_lookup_symbol_nonlocal): New function.
3800
3801 (is_name_suffix): Enhance suffix detection to recognize
3802 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3803 (is_dot_digits_suffix): New function.
3804 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3805
3806 (ada_add_block_symbols): New interface. Use obstack to return results
3807 in a vector of struct ada_symbol_infos. Add symtab argument.
3808 Use new interface to add_defn_to_vec.
3809 Remove calls to fill_in_ada_prototype.
3810 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3811
3812 (ada_finish_decode_line_1): Add const qualification to local to fix
3813 warning.
3814 Start looking in static block for functions to avoid attempts
3815 to search frame chain for up-level variables.
3816 Adapt to new ada_sals_for_line interface.
3817 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3818 Handle quoting of the function name inside the spec string.
3819 Skip prologue when funfirstline is set and update the
3820 function documentation to that effect.
3821
3822 (debug_print_lines, debug_print_block, debug_print_blocks,
3823 debug_print_symtab): Remove.
3824
3825 (ada_main_name): New function.
3826 (ada_exception_breakpoint_type): New function.
3827 (is_known_support_routine): New function.
3828 (ada_find_printable_frame): Renamed from find_printable_frame and made
3829 global.
3830 Remove level parameter.
3831 Use new interface to select_frame.
3832
3833 (begin_command): Remove.
3834 (ada_adjust_exception_stop): New function.
3835 (ada_print_exception_stop): New function.
3836 (exception_name_from_cond): New function.
3837 (ada_report_exception_break): Replace disabled code with
3838 conditionalization on GNAT_GDB.
3839 Get the exception name from the condition string.
3840 Remove and move functionality into new functions
3841 ada_print_exception_breakpoint_task and
3842 ada_print_exception_breakpoint_nontask.
3843 (error_breakpoint_runtime_sym_not_found): New function.
3844 (is_runtime_sym_defined): New function.
3845 (ada_breakpoint_rewrite): Uncomment suppressed code.
3846 Use symbolic error-message and runtime-symbol names.
3847 Surround runtime symbol names in quotes.
3848 Allow non-specific breakpoints on exceptions and assertions before
3849 program starts.
3850
3851 (ada_is_tagged_type): Add parameter.
3852 (ada_is_tag_type): New function.
3853 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3854 (ada_variant_discrim_type): Ditto.
3855 (value_tag_from_contents_and_address): New function.
3856 (type_from_tag): New function.
3857 (struct tag_args): New structure used to communicate with
3858 ada_tag_name_1.
3859 (ada_tag_name_1): New function.
3860 (ada_tag_name): New function.
3861
3862 (ada_scan_number): Update comment.
3863 (find_struct_field): New function.
3864 (ada_search_struct_field): Make static.
3865 (ada_value_struct_elt): New version that returns references when
3866 given pointers or references to structs.
3867 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3868 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3869 interface.
3870 (ada_value_ind): Use new ada_to_fixed_value interface.
3871 (ada_coerce_ref): Ditto.
3872 (field_offset): Remove.
3873
3874 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3875 (ada_find_renaming_symbol): New function.
3876 (ada_prefer_type): Prefer named types over unnamed ones.
3877 (variant_field_index): New function.
3878 (contains_variant_part): Removed: subsumed by variant_field_index.
3879 (ada_template_to_fixed_record_type): New function, mostly from
3880 template_to_fixed_record_type.
3881 (template_to_fixed_record_type):
3882 Do not scan the type fields beyond the last one; prevents a
3883 potential SEGV.
3884 Handle case where variant field is listed BEFORE discriminant it
3885 depends on.
3886 Fix calculation of record length when bit length is
3887 not evenly divisible by char length.
3888 Move code to ada_template_to_fixed_record_type and call it.
3889
3890 (template_to_static_fixed_type): Revise comment.
3891 Modify to work on ordinary record types as well as templates,
3892 so as to handle fields that use ___XVE or ___XVU encodings.
3893 (to_record_with_fixed_variant_part): Fill out comment.
3894 Initialize C++ stuff in right type.
3895 Allow case where DVAL is null.
3896 Handle case where variant field is not last.
3897 Fix typo concerning record length.
3898 (to_fixed_record_type): Decomment disabled code.
3899 (to_fixed_record_type): Use variant_field_index instead of
3900 contains_variant_part.
3901 (to_fixed_variant_branch_type): Ditto.
3902 (to_fixed_array_type): Decomment disabled code.
3903 (ada_to_fixed_type): Convert tagged types to the specific type.
3904 Deactivate the size-check for array types in order to avoid
3905 some false size alarms.
3906 (to_static_fixed_type): Decomment disabled code.
3907 Modify to call template_to_static_fixed_type
3908 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3909 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3910 Remove valaddr argument, as it is never really used.
3911 (ada_to_fixed_value): Change interface to act on single struct value*
3912 operand.
3913 (adjust_pc_past_prologue): New function.
3914 (ada_attribute_name): Modify to take enum exp_opcode argument.
3915
3916 (ada_enum_name): Recognize new homonym-distinguishing convention.
3917 Adjust local variable's type to remove compiler warning.
3918 Fix a small problem in the part that unqualifies the enumeration name.
3919 (ada_value_binop): New function.
3920 (ada_value_equal): New function.
3921
3922 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3923 Don't give error message when not doing normal evaluation
3924 and a tagged type doesn't seem to contain a structure member.
3925 Give error message for packed arrays.
3926 For indexing arrays, handle pointers to packed arrays correctly.
3927 Handle case of 'first and 'last attributes of bare integral type
3928 without encoded subtype info.
3929 Remove some unnecessary casts.
3930 Fix uninitialized value of type in computing 'first, 'last, or 'length
3931 of array object.
3932 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3933 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3934 calls.
3935 Attributes are now exp_opcode values.
3936 Correct treatment of 'modulus.
3937 Better error message for taking 'length of wrong kind of type;
3938 improve comment.
3939 Change EVAL_NORMAL to noside for consistency.
3940 Use ada_value_binop for DIV, MOD, REM.
3941 Make special case out of array of length 0, since an argument
3942 of 0 upsets some platforms' malloc.
3943 Use OP_STRING instead of OP_ARRAY.
3944 For slice, add check that we have an array type before extracting
3945 a slice out of it. Avoids a SEGV.
3946 When evaluating an array slice, if the array type is a reference to
3947 an aligner type, then replace the aligner type by the actual type.
3948 Decomment disabled code.
3949 Remove some dead code.
3950 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3951 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3952 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3953 and UNOP_MBR to UNOP_IN_RANGE.
3954 If an array type has a parallel ___XVE type, then use it.
3955 Turn arrays into pointers for lvalue arrays.
3956 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3957 bounds error and handle 0-length slices.
3958 Use lim_warning.
3959 When selecting fields, apply ada_to_fixed_value (because the fields
3960 might have ___XVU or ___XVE encodings even if not dynamic.)
3961 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3962 (ada_is_system_address_type): New function.
3963
3964 (get_var_value): Use new interface to ada_lookup_symbol_list.
3965 (get_int_var_value): New interface.
3966 (to_fixed_range_type): Allow unknown bound, with warning.
3967 (ada_is_modular_type): Decomment disabled code.
3968 (ADA_OPERATORS): New definition.
3969 (ada_operator_length): New function.
3970 (ada_expr_op_name): New function.
3971 (ada_forward_operator_length): New function.
3972 (ada_dump_subexp_body): New function.
3973 (ada_print_subexp): New function.
3974 (ada_exp_descriptor): New constant.
3975 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3976 (ada_language_defn): Add ada_exp_descriptor entry.
3977 Change ada_parse => parse.
3978 Add post-parser entry.
3979 Use ada-specific non-local symbol lookup.
3980 Don't use C-style arrays.
3981 String lower-bound is 1.
3982 Decomment disabled code.
3983 (parse): New function.
3984 New fields ada_translate_error_message, ada_lookup_symbol,
3985 ada_lookup_minimal_symbol.
3986
3987 * ada-lang.h: Update copyright dates.
3988 Replace the mangle/demangle terminology throughout by the
3989 more appropriate encode/decode one.
3990 Include breakpoint.h.
3991 Forward declare struct partial_symbol, struct block.
3992 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3993 (EXTRACT_ADDRESS): Remove.
3994 (EXTRACT_INT): Remove.
3995 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3996 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3997 (MAX_RENAMING_CHAIN_LENGTH): Define.
3998 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3999
4000 (enum task_states): Remove.
4001 ada_task_states: Remove.
4002 (fat_string): Remove.
4003 (struct entry_call): Remove.
4004 (struct task_fields): Remove.
4005 (struct task_entry): Remove.
4006
4007 (struct ada_symbol_info): Define.
4008 (enum ada_attribute): Remove.
4009 (enum ada_operator): Define.
4010
4011 (ada_get_field_index): Declare.
4012 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4013 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4014 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4015 (ada_lookup_symbol_list): New interface.
4016 (ada_decode_symbol): Declare.
4017 (ada_decode): Declare.
4018 (ada_lookup_symbol): New interface.
4019 (ada_update_initial_language): Declare.
4020 (ada_lookup_simple_minsym): Declare.
4021 (user_select_syms): New interface.
4022 (ada_sals_for_line): Declare.
4023 (ada_is_tagged_type): New interface.
4024 (ada_tag_name): Declare.
4025 (ada_lookup_struct_elt_type): Remove declaration.
4026 (ada_search_struct_field): Remove declaration.
4027 (ada_attribute_name): New interface.
4028 (ada_is_system_address_type): Declare.
4029 (ada_to_fixed_value): Remove declaration.
4030 (ada_template_to_fixed_record_type_1): Declare.
4031 (get_int_var_value): New interface.
4032 (ada_find_any_symbol): Declare.
4033 (ada_find_renaming_symbol): Declare.
4034 (ada_mangle): Rename to ada_encode.
4035 (ada_simple_renamed_entity): Remove const.
4036 (ada_main_name): Declare.
4037 (get_current_task): Rename to ada_get_current_task.
4038 (get_entry_number): Remove declaration.
4039 (ada_report_exception_break): Remove declaration.
4040 (ada_print_exception_breakpoint_nontask): Declare.
4041 (ada_print_exception_breakpoint_task): Declare.
4042 (ada_find_printable_frame): Declare.
4043
4044 * ada-lex.l: Update copyright notices.
4045 Use xmalloc and xfree instead of malloc and free.
4046 Use new interface to name_lookup.
4047 Use new interface to
4048 ada_mangle=>ada_encode.
4049 Redo handling of '$...' variable to parallel current treatment
4050 in c-exp.y.
4051 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
4052 digit_to_int, strtoulst, processInt, processReal, processId,
4053 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
4054 yywrap): Protoize.
4055
4056 (processInt): Use cast to remove harmless warning.
4057 (processReal): Modify to get rid of compiler warning on scan formats.
4058
4059 (processId): Replace xmalloc with obstack_alloc for name and remove
4060 call to ada_name_string_cleanup.
4061 Remove obsolete disabled code.
4062 (name_lookup): Ditto.
4063 New interface.
4064 Use obsavestring on temp_parse_space instead of savestring
4065 on name, and remove call to ada_name_string_cleanup.
4066 Free string returned from ada_simple_renamed_entity.
4067 Use new interface to ada_lookup_symbol_list.
4068 Decomment disabled code.
4069 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
4070 not types.
4071 When a type name lookup succeeds as a result of
4072 lookup_primitive_typename, check for regular type entry that has not
4073 yet been read in.
4074 Limit length of chain of renamed symbols we are willing to follow.
4075 Do not break names beginning with "standard__" into segments.
4076 (block_lookup): Use new interface to ada_lookup_symbol_list.
4077
4078 * ada-typeprint.c: Update copyright notice.
4079 (demangled_type_name): Rename to decoded_type_name.
4080 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
4081 (print_range_bound): Correct handling of negative
4082 bounds that make the index type looked unsigned under STABS.
4083 (print_dynamic_range_bound): Use new interface to get_int_var_value.
4084 (print_range_type_named): Use the builtin int type if no type
4085 corresponding to the given type name could be found.
4086 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
4087 Add some bullet-proofing.
4088 (print_variant_clauses): Allow for variant branches with ___XVU
4089 encodings that are not dynamic fields.
4090 Use new interface to ada_is_tagged_type.
4091 (print_record_type): Allow for fields with ___XVE encodings that
4092 are not dynamic fields.
4093 Use new interface to ada_is_tagged_type.
4094 (ada_print_type): ada_is_array_descriptor =>
4095 ada_is_array_descriptor_type.
4096
4097 * ada-valprint.c: Update copyright notice.
4098 Include gdb_string.h
4099 Include infcall.h
4100 (ui_memcpy): New function.
4101 (ada_print_floating): New function.
4102 (ada_print_str): Order arguments correctly.
4103 Correct handling of empty arrays and arrays of 0-length items.
4104 ada_is_array_descriptor => ada_is_array_descriptor_type
4105 Print values of type System.Address in hexadecimal format.
4106 Use ada_print_floating to print floating-point numbers in Ada format.
4107 Print class tag values with type names.
4108 No longer print the address of reference values. Avoids
4109 a potential confusion.
4110 (ada_value_print): Stop printing the object type for reference
4111 values, but preserve that behavior for access types. Avoids
4112 a potential confusion.
4113 Simplify one conditional expression, as the first part is now
4114 necessarily true.
4115 ada_is_array_descriptor => ada_is_array_descriptor_type
4116 Add check for arrays for null records, and print them by hand.
4117
4118 2004-06-01 Jim Blandy <jimb@redhat.com>
4119
4120 * ppc-tdep.h: Delete unused 'regoff' member.
4121 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
4122
4123 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
4124
4125 Fix PR symtab/1661.
4126 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
4127 (hpread_read_struct_type): Likewise.
4128
4129 2004-06-01 Andrew Cagney <cagney@gnu.org>
4130
4131 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
4132 instead of xasprintf.
4133 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
4134 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4135 (mi_cmd_data_list_register_names)
4136 (mi_cmd_data_list_changed_registers)
4137 (mi_cmd_data_list_register_values)
4138 (get_register, mi_cmd_data_write_register_values)
4139 (mi_cmd_data_write_register_values)
4140 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
4141 (mi_cmd_target_download, mi_cmd_target_select)
4142 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
4143 (mi_execute_cli_command, mi_execute_async_cli_command)
4144 (mi_execute_async_cli_command): Ditto.
4145 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
4146 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
4147
4148 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
4149 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
4150 error_last_message instead of mi_error_last_message.
4151 * mi/mi-main.c (mi_error_last_message): Delete function.
4152
4153 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
4154 "invalid number of columns" error. Delete redundant "out of
4155 memory" check.
4156
4157 2004-05-31 Mark Kettenis <kettenis@gnu.org>
4158
4159 * i386bsd-nat.c: Don't include <sys/procfs.h>.
4160 (gregset_t, fpregset_t): Remove typedefs.
4161 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
4162 (REG_OFFSET): Rename argument.
4163 (i386bsd_r_reg_offset): Rename from reg_offset.
4164 (REG_ADDR): Remove macro.
4165 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
4166 functions.
4167 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
4168 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
4169 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
4170 instead of supply_gregset.
4171 (store_inferior_registers): Use `struct reg' and `struct fpreg'
4172 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
4173 instead of fill_gregset.
4174 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
4175
4176 * i386bsd-nat.c: Don't include "gregset.h".
4177 (supply_gregset, fill_gregset): Make static.
4178 (supply_fpregset, fill_fpregset): Remove.
4179 * Makefile.in (i386bsd-nat.o): Update dependencies.
4180
4181 2004-05-30 Mark Kettenis <kettenis@gnu.org>
4182
4183 * fbsd-proc.c: Include "regcache.h", "regset.h" and
4184 "gdb_assert.h". Con't include "gregset.h".
4185 (fbsd_make_corefile_notes): Use regset-based core file support
4186 instead off fill_gregset and fill_fpregset.
4187 * Makefile.in (fbsd-proc.o): Update dependencies.
4188
4189 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4190 instructions.
4191 (m88k_frame_prev_register): Simplify code a bit.
4192
4193 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4194 (amd64_collect_fpregset): New function.
4195 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4196
4197 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4198
4199 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4200 (i386_collect_gregset): New function.
4201 (i386_supply_fpregset): Adjust comment.
4202 (i386_collect_fpregset): New function.
4203 (i386_regset_from_core_section): Use i386_collect_gregset and
4204 i386_collect_fpregset.
4205
4206 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4207 handle VALUEP being null.
4208
4209 * regset.h (collect_regset_ftype): Unconstify fourth argument.
4210
4211 2004-05-29 Mark Kettenis <kettenis@gnu.org>
4212
4213 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4214
4215 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4216 assembler in OpenBSD 3.5-current.
4217 (amd64obsd_sigcontext_addr): Likewise.
4218
4219 2004-05-28 Jim Blandy <jimb@redhat.com>
4220
4221 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4222 register set, so our regcache isn't declared "legacy" and our E500
4223 pseudoregister read and write functions aren't ignored.
4224 (rs6000_register_byte, rs6000_register_raw_size,
4225 rs6000_register_virtual_type, rs6000_register_convertible,
4226 rs6000_register_convert_to_virtual,
4227 rs6000_register_convert_to_raw): Deleted.
4228 (rs6000_register_type, rs6000_convert_register_p,
4229 rs6000_register_to_value, rs6000_value_to_register): New
4230 functions.
4231 (rs6000_gdbarch_init): Don't register
4232 gdbarch_deprecated_register_size,
4233 gdbarch_deprecated_register_bytes,
4234 gdbarch_deprecated_register_byte,
4235 gdbarch_deprecated_register_raw_size,
4236 gdbarch_deprecated_register_virtual_type,
4237 gdbarch_deprecated_register_convertible,
4238 gdbarch_deprecated_register_convert_to_virtual, or
4239 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4240 register gdbarch_register_type, gdbarch_convert_register_p,
4241 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4242
4243 2004-05-26 Jim Blandy <jimb@redhat.com>
4244
4245 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4246 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4247 functions, updated to match the register numberings used in GCC.
4248 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4249 rs6000_dwarf2_reg_to_regnum as register number conversions
4250 functions for STABS and Dwarf2.
4251
4252 2004-05-26 Randolph Chung <tausq@debian.org>
4253
4254 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4255 in header file.
4256
4257 2004-05-25 Joel Brobecker <brobecker@gnat.com>
4258
4259 * NEWS: Document new "start" command.
4260
4261 2004-05-25 Randolph Chung <tausq@debian.org>
4262
4263 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4264 hppa-linux.
4265
4266 2004-05-25 Randolph Chung <tausq@debian.org>
4267
4268 * hppa-hpux-tdep.c (offsetof): Define.
4269 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4270 (hppa32_hpux_frame_base_before_sigtramp)
4271 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4272 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4273 (hppa64_hpux_frame_base_before_sigtramp)
4274 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4275 functions.
4276 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4277 (hppa_hpux_sigtramp_frame_unwind_cache)
4278 (hppa_hpux_sigtramp_frame_this_id)
4279 (hppa_hpux_sigtramp_frame_prev_register)
4280 (hppa_hpux_sigtramp_frame_unwind)
4281 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4282 (hppa_hpux_init_abi): Register sigtramp unwinder.
4283 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4284
4285 2004-05-25 Randolph Chung <tausq@debian.org>
4286
4287 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4288 and multiple stack unwinds.
4289 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4290
4291 2004-05-25 Andrew Cagney <cagney@gnu.org>
4292
4293 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4294 * symfile-mem.h: Delete file.
4295 * symfile-mem.c: Do not include "symfile-mem.h".
4296 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4297 "struct bfd_section". When an error do not bother returning NULL.
4298 (add_symbol_file_from_memory_command): Use "struct bfd" and
4299 "struct bfd_section".
4300 * Makefile.in (symfile_mem_h): Delete.
4301 (symfile-mem.o): Update dependencies.
4302
4303 2004-05-25 Nick Roberts <nickrob@gnu.org>
4304
4305 * gdb-mi.el: New file.
4306
4307 2004-05-25 Andrew Cagney <cagney@gnu.org>
4308
4309 * inftarg.c: Include "observer.h".
4310 (child_attach, child_create_inferior): Notify inferior_created.
4311 * corelow.c: Include "observer.h".
4312 (core_open): Notify inferior_created.
4313 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4314
4315 2004-05-25 Andrew Cagney <cagney@gnu.org>
4316
4317 * target.h (struct target_ops): Add from_tty to
4318 to_create_inferior.
4319 (target_create_inferior, find_default_create_inferior): Update.
4320 * infcmd.c (run_command): Update.
4321 * wince.c (child_create_inferior): Update.
4322 * win32-nat.c (child_create_inferior): Update.
4323 * uw-thread.c (uw_thread_create_inferior): Update.
4324 * thread-db.c (thread_db_create_inferior): Update.
4325 * target.c (debug_to_create_inferior)
4326 (find_default_create_inferior): Update.
4327 (maybe_kill_then_create_inferior): Update.
4328 * sol-thread.c (sol_thread_create_inferior): Update.
4329 * remote.c (extended_remote_async_create_inferior)
4330 (extended_remote_create_inferior): Update.
4331 * remote-vx.c (vx_create_inferior): Update.
4332 * remote-st.c (st2000_create_inferior): Update.
4333 * remote-sim.c (gdbsim_create_inferior): Update.
4334 * remote-sds.c (sds_create_inferior): Update.
4335 * remote-rdp.c (remote_rdp_create_inferior): Update.
4336 * remote-rdi.c (arm_rdi_create_inferior): Update.
4337 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4338 * remote-e7000.c (e7000_create_inferior): Update.
4339 * procfs.c (procfs_create_inferior): Update.
4340 * ocd.c (ocd_create_inferior): Update.
4341 * ocd.h (ocd_create_inferior): Update.
4342 * nto-procfs.c (procfs_create_inferior): Update.
4343 * monitor.c (monitor_create_inferior): Update.
4344 * lin-lwp.c (lin_lwp_create_inferior): Update.
4345 * inftarg.c (child_create_inferior): Update.
4346 * hpux-thread.c (hpux_thread_create_inferior): Update.
4347 * gnu-nat.c (gnu_create_inferior): Update.
4348
4349 2004-05-25 Andrew Cagney <cagney@gnu.com>
4350
4351 * MAINTAINERS: Update e-mail address.
4352
4353 2004-05-24 Randolph Chung <tausq@debian.org>
4354
4355 * thread.c (info_threads_command, thread_apply_all_command)
4356 (thread_apply_command, thread_command, do_captured_thread_select):
4357 Remove HPUXHPPA-specific code.
4358
4359 2004-05-24 Randolph Chung <tausq@debian.org>
4360
4361 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4362 unused symbols.
4363 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4364 references.
4365
4366 2004-05-24 Joel Brobecker <brobecker@gnat.com>
4367
4368 * infcmd.c (kill_if_already_running): New function, extracted
4369 from run_command().
4370 (run_command): Replace extracted code by call to
4371 kill_if_already_running().
4372 (start_command): New function.
4373 (_initialize_infcmd): Add "start" command.
4374
4375 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4376
4377 Add OpenBSD/m88k support.
4378 * NEWS (New native configurations): Mention OpenBSD/m88k.
4379 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4380 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4381 * Makefile.in (m88k_tdep_h): New variable.
4382 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4383 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4384 * configure.host: Add m88*-*-openbsd*.
4385 * configure.tgt: Add m88*-*-openbsd*.
4386
4387 2004-05-24 Jim Blandy <jimb@redhat.com>
4388
4389 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4390 to approve changes.
4391
4392 2004-05-24 Kevin Buettner <kevinb@redhat.com>
4393
4394 * symtab.c (fixup_section): Search section table when lookup by
4395 name fails.
4396
4397 2004-05-24 Randolph Chung <tausq@debian.org>
4398
4399 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4400 be "small_struct".
4401
4402 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4403
4404 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4405 register number in regcache_raw_collect call.
4406 (m68kbsd_collect_fpregset): Likewise.
4407 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4408
4409 * regset.h (struct regset): Add back `regset' member.
4410
4411 2004-05-23 Mark Kettenis <kettenis@gnu.org>
4412
4413 * configure.in: Check for td_pcb in `struct thread'.
4414 * configure, config.in: Regenerated.
4415
4416 * dpx2-nat.c: Remove file.
4417 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4418 (dpx2-nat.o): Remove dependencies.
4419
4420 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4421 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4422 (amd64obsd_supply_pcb): New function.
4423 (_initialize_amd64obsd_nat): Enable libkvm interface.
4424 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4425 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4426 (LOADLIBES): New variable.
4427
4428 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4429 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4430 (sparc32nbsd_supply_pcb): New function.
4431 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4432 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4433 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4434 (LOADLIBES): New variable.
4435
4436 2004-05-22 Mark Kettenis <kettenis@gnu.org>
4437
4438 * bsd-kvm.c, bsd-kvm.h: New files.
4439 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4440 "bsd-kvm.h".
4441 (i386fbsd_supply_pcb): New function.
4442 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4443 (i386fbsd-nat.o): Update dependencies.
4444 (bsd_kvm_h): New variable.
4445 (bsd-kvm.o): New dependency.
4446 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4447 (LOADLIBES): New variable.
4448
4449 * regset.c: Tweak comment.
4450 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4451 macro.
4452 * regset.h: Update copyright year.
4453 (struct regset): Remove `descr' member, add `gdbarch' member.
4454 (regset_alloc): Adjust prototype and comment.
4455 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4456 (i386_supply_fpregset): Likewise.
4457 (i386_regset_from_core_section): Update call to regset_alloc.
4458 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4459 REGSET->arch.
4460 (i386obsd_aout_regset_from_core_section): Update call to
4461 regset_alloc.
4462 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4463 REGSET->arch.
4464 (i386nbsd_aout_regset_from_core_section): Update call to
4465 regset_alloc.
4466 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4467 REGSET->arch.
4468 (amd64_regset_from_core_section): Update call to regset_alloc.
4469 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4470 REGSET->arch.
4471 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4472 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4473 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4474 (sparc32nbsd_init_abi): Update call to regset_alloc.
4475 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4476 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4477 (sparc64obsd_init_abi): Update call to regset_alloc.
4478 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4479 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4480 (sparc64nbsd_init_abi): Update call to regset_alloc.
4481 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4482 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4483 (sparc64fbsd_init_abi): Update call to regset_alloc.
4484
4485 2004-05-22 Jim Blandy <jimb@redhat.com>
4486
4487 * ppc-tdep.h (spe_register_p): New declaration.
4488 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4489 ppc_spefscr_regnum.
4490 * rs6000-tdep.c (spe_register_p): New function.
4491 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4492 spefscr.
4493 (rs6000_gdbarch_init): Initialize the new members of the tdep
4494 structure.
4495
4496 2004-05-21 Jim Blandy <jimb@redhat.com>
4497
4498 * ppc-linux-nat.c (fetch_register): Move code back to be next
4499 to the comment that describes it. (Moved code, instead of
4500 comment, for symmetry with store_register.)
4501
4502 Allocate regset structures in the gdbarch's obstack, not using
4503 xmalloc.
4504 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4505 Add 'arch' argument. Allocate the regset on arch's obstack, not
4506 using xmalloc.
4507 * regset.h (regset_alloc): Update declaration.
4508 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4509 gdbarch argument.
4510 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4511 * i386-tdep.c (i386_regset_from_core_section): Same.
4512 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4513 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4514 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4515 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4516 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4517 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4518
4519 2004-05-21 Joel Brobecker <brobecker@gnat.com>
4520
4521 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4522
4523 2004-05-21 Jim Blandy <jimb@redhat.com>
4524
4525 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4526 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4527
4528 2004-05-20 Jim Blandy <jimb@redhat.com>
4529
4530 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4531
4532 2004-05-20 Mark Kettenis <kettenis@gnu.org>
4533
4534 * regset.h: Make prototype const-correct.
4535 * regset.c (regset_xmalloc): Make const-correct.
4536
4537 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4538
4539 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4540 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4541 (symbol_search_name): Declare.
4542
4543 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4544 (iter_name_next_hashed): Ditto.
4545 (iter_name_next_linear): Ditto.
4546 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4547
4548 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4549 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4550 (symbol_search_name): New function.
4551
4552 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4553
4554 * minsyms.c (build_minimal_symbol_hash_tables): Change
4555 test for adding to demangled hash table to check for difference
4556 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4557
4558 2004-05-19 Jim Blandy <jimb@redhat.com>
4559
4560 Use a constructor function to create regset structures.
4561 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4562 (struct regset): Use supply_regset_ftype. Add new
4563 'collect_regset' member.
4564 (regset_xmalloc): New declaration.
4565 * regset.c: New file.
4566 * am64-tdep.c (amd64_regset_from_core_section): Use
4567 regset_xmalloc to construct regset structures.
4568 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4569 * i386-tdep.c (i386_regset_from_core_section): Same.
4570 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4571 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4572 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4573 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4574 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4575 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4576 * Makefile.in (COMMON_OBS): Add regset.o.
4577 (regset.o): New rule.
4578
4579 2004-05-19 Joel Brobecker <brobecker@gnat.com>
4580
4581 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4582 and pthread_cond_wait.c.
4583
4584 2004-05-18 Jim Blandy <jimb@redhat.com>
4585
4586 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4587 before the mach-specific switch, and then let the individual cases
4588 override the defaults, rather than leaving them uninitialized
4589 until the switch and then setting them in each case.
4590
4591 2004-05-18 Randolph Chung <tausq@debian.org>
4592
4593 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4594 millicode functions.
4595
4596 2004-05-18 Randolph Chung <tausq@debian.org>
4597
4598 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4599 references to dld_flags_buffer consistent.
4600
4601 2004-05-18 Randolph Chung <tausq@debian.org>
4602
4603 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4604 it for unwinding the stack.
4605
4606 2004-05-18 Randolph Chung <tausq@debian.org>
4607
4608 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4609 Undefine these so we can overide them using gdbarch.
4610
4611 2004-05-18 Randolph Chung <tausq@debian.org>
4612
4613 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4614 handling for 64-bit HPUX (elf).
4615
4616 2004-05-18 Daniel Jacobowitz <dan@debian.org>
4617
4618 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4619 constants.
4620 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4621 * ia64-tdep.c (examine_prologue): Likewise.
4622 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4623 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4624
4625 2004-05-18 Mark Kettenis <kettenis@gnu.org>
4626
4627 * vax-tdep.c (vax_return_value): Implement
4628 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4629
4630 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4631
4632 * vax-tdep.c (vax_return_value): Fix typo.
4633
4634 2004-05-17 Andrew Cagney <cagney@redhat.com>
4635
4636 * MAINTAINERS: Mark Salter was also responsible for
4637 testsuite/config/
4638
4639 * NEWS: Mention signal fixes.
4640
4641 2004-05-17 Randolph Chung <tausq@debian.org>
4642
4643 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4644 check to see if we are unwinding an export stub. Export stubs clobber
4645 the %rp in the call path and stores the original rp in a stack slot.
4646
4647 2004-05-17 Jim Blandy <jimb@redhat.com>
4648
4649 * MAINTAINERS: Update address for J.T. Conklin.
4650
4651 2004-05-17 Randolph Chung <tausq@debian.org>
4652
4653 * hppa-tdep.c: Remove superfluous #include's.
4654 * Makefile.in (hppa-tdep.o): Update dependencies.
4655
4656 2004-05-17 Randolph Chung <tausq@debian.org>
4657
4658 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4659 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4660 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4661 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4662 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4663 Remove static function declarations.
4664
4665 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4666
4667 * alphabsd-nat.c: Update copyright year.
4668 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4669
4670 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4671 and M68K_A2_REGNUM.
4672
4673 * m68k-tdep.c (m68k_svr4_return_value): Implement
4674 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4675
4676 2004-05-16 Mark Kettenis <kettenis@gnu.org>
4677
4678 * sol-thread.c Update copyright year. Fix various coding
4679 standards violations. Tweak a few comments.
4680 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4681 Delete prototypes.
4682
4683 2004-05-15 Randolph Chung <tausq@debian.org>
4684
4685 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4686 as pointer instead of array reference since HPUX compiler does
4687 not accept unsized array arguments.
4688 * somsolib.c (dld_flags_buffer): Use constant array size.
4689
4690 2004-05-15 Mark Kettenis <kettenis@gnu.org>
4691
4692 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4693 offset with decimal offset.
4694 (amd64obsd_sigcontext_addr): Return correct address for entire
4695 signal trampoline.
4696
4697 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4698 instead of get_frame_base.
4699
4700 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4701 (fill_gregset): Use regcache_raw_collect.
4702
4703 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4704 ppcobsd-tdep.c.
4705
4706 * config/sparc/tm-nbsd64.h: Remove file.
4707 * config/tm-sunos.h: Remove file.
4708
4709 2004-05-15 Joel Brobecker <brobecker@gnat.com>
4710
4711 * rs6000-tdep.c (store_param_on_stack_p): New function,
4712 an improved version of some code extracted from skip_prologue().
4713 (skip_prologue): Use store_param_on_stack_p() to detect
4714 instructions saving a parameter on the stack. Detect when r0
4715 is used to save a parameter.
4716 Do not mark "li rx, SIMM" instructions as part of the prologue,
4717 unless the following instruction is also part of the prologue.
4718
4719 2004-05-14 Andrew Cagney <cagney@redhat.com>
4720
4721 * infrun.c (handle_inferior_event): Simplify
4722 STEP_OVER_UNDEBUGGABLE.
4723
4724 * infrun.c (handle_step_into_function): Delete function.
4725 (handle_inferior_event): Inline calls to
4726 handle_step_into_function.
4727
4728 2004-05-14 Jerome Guitton <guitton@gnat.com>
4729
4730 * rs6000-nat.c: Fix a comment.
4731
4732 2004-05-12 David Anderson <davea@sgi.com>
4733
4734 Committed by Jim Blandy <jimb@redhat.com>:
4735 * regcache.c (struct regcache_descr): fix comment spelling.
4736
4737 2004-05-13 J. Brobecker <brobecker@gnat.com>
4738
4739 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4740 Fixes a link link failure.
4741
4742 2004-05-13 J. Brobecker <brobecker@gnat.com>
4743
4744 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4745 error that was causing the build to fail.
4746
4747 2004-05-13 J. Brobecker <brobecker@gnat.com>
4748
4749 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4750 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4751
4752 2004-05-13 Andrew Cagney <cagney@redhat.com>
4753
4754 * infrun.c (handle_inferior_event): Check for
4755 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4756 calls. Update comments.
4757
4758 2004-05-13 Jim Blandy <jimb@redhat.com>
4759
4760 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4761 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4762 (store_regs_user_thread, store_regs_kernel_thread): Use
4763 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4764 * ppc-linux-nat.c (fill_gregset): Same.
4765 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4766 (ppc_linux_sigtramp_cache): Same.
4767 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4768 (ppcnbsd_sigtramp_cache_init): Same.
4769 * rs6000-nat.c (fetch_core_registers): Same.
4770 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4771 (rs6000_frame_cache): Same.
4772
4773 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4774 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4775 of assuming that the gprs are numbered starting with zero.
4776 * ppc-linux-nat.c (fill_gregset): Same.
4777 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4778 * ppcnbsd-nat.c (getregs_supplies): Same.
4779 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4780 * rs6000-nat.c (fetch_core_registers): Same.
4781 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4782
4783 2004-05-07 Michael Snyder <msnyder@redhat.com>
4784
4785 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4786 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4787
4788 2004-05-13 Andrew Cagney <cagney@redhat.com>
4789
4790 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4791
4792 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4793
4794 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4795 base_address for shared libraries.
4796
4797 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4798
4799 * MAINTAINERS (write after approval): Add myself.
4800
4801 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4802
4803 * breakpoint.c (bpstat_stop_status): Add new argument
4804 STOPPED_BY_WATCHPOINT. Use it instead of testing
4805 target_stopped_data_address agaist 0 to check whether
4806 or not we stopped due to a hardware watchpoint.
4807 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4808 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4809 with new argument.
4810
4811 2004-05-12 Jim Blandy <jimb@redhat.com>
4812
4813 * configure.in: When checking whether we should use the -bbigtoc
4814 option, don't forget to restore the original value of LDFLAGS.
4815 * configure: Regenerated.
4816
4817 2004-05-12 Andrew Cagney <cagney@redhat.com>
4818
4819 * thread.c (load_infrun_state): Delete step_sp.
4820 * infrun.c (context_switch): Ditto.
4821 * inferior.h (step_sp): Ditto.
4822 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4823 * gdbthread.h (struct thread_info, save_infrun_state)
4824 (restore_infrun_state): Ditto.
4825
4826 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4827
4828 * MAINTAINERS (write after approval): Add myself.
4829
4830 2004-05-12 Andrew Cagney <cagney@redhat.com>
4831
4832 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4833 eliminate reference to step_sp.
4834 (struct execution_control_state, init_execution_control_state)
4835 (handle_inferior_event, keep_going): Delete update_step_sp and
4836 step_sp.
4837 * infcmd.c (step_sp): Note that variable is unused.
4838
4839 2004-05-11 Andrew Cagney <cagney@redhat.com>
4840
4841 * infrun.c (step_over_function): Delete function.
4842 (handle_step_into_function): Use insert_step_resume_breakpoint.
4843 (insert_step_resume_breakpoint): Fix assertion.
4844
4845 2004-05-11 Nick Roberts <nickrob@gnu.org>
4846
4847 * utils.c (defaulted_query): Just use the normal query input type
4848 when printing the annotations.
4849
4850 2004-05-11 Andrew Cagney <cagney@redhat.com>
4851
4852 * infrun.c (handle_inferior_event): Simplify code handling
4853 step-into or return-from a signal trampoline.
4854
4855 2004-05-11 Andrew Cagney <cagney@redhat.com>
4856
4857 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4858 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4859
4860 2004-05-10 Jim Blandy <jimb@redhat.com>
4861
4862 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4863 with a call to internal_error.
4864
4865 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4866 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4867 processor variant lacks those registers.
4868 (ppc_floating_point_unit_p): Change description to make it clear
4869 that this returns info about the ISA, not the ABI.
4870 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4871 return true or false by checking tdep->ppc_fp0_regnum and
4872 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4873 arch/mach switching done in rs6000_gdbarch_init; it's better to
4874 keep that logic there, and just check the results here.
4875 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4876 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4877 floating-point registers.
4878 (ppc_supply_fpregset, ppc_collect_fpregset)
4879 (rs6000_push_dummy_call, rs6000_extract_return_value)
4880 (rs6000_store_return_value): Assert that we have floating-point
4881 registers.
4882 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4883 (rs6000_frame_cache): Don't note the locations at which
4884 floating-point registers were saved if we have no fprs.
4885 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4886 registers.
4887 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4888 (store_regs_user_thread, store_regs_kernel_thread): Only call
4889 supply_fprs / fill_fprs if we actually have floating-point
4890 registers.
4891 (special_register_p): Check ppc_fpscr_regnum before matching
4892 against it.
4893 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4894 supply / collect fpscr if we don't have it.
4895 * ppc-bdm.c: #include "gdb_assert.h".
4896 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4897 have floating-point registers, since I can't test this code on
4898 FP-free systems to adapt it.
4899 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4900 fpscr and floating point register numbers if they don't exist.
4901 (fetch_register): Assert that we have floating-point registers
4902 before we reach the code that handles them.
4903 (store_register): Same. And use tdep instead of calling
4904 gdbarch_tdep again.
4905 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4906 don't have them.
4907 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4908 fprs and fpscr if we don't have them.
4909 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4910 don't have them.
4911 * ppcnbsd-nat.c: #include "gdb_assert.h".
4912 (getfpregs_supplies): Assert that we have floating-point registers.
4913 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4914 * ppcobsd-tdep.c: #include "gdb_assert.h".
4915 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4916 have floating-point registers.
4917 * rs6000-nat.c (regmap): Don't match against the fpscr and
4918 floating point register numbers if they don't exist.
4919 (fetch_inferior_registers, store_inferior_registers,
4920 fetch_core_registers): Only fetch / store / supply the
4921 floating-point registers and the fpscr if we have them.
4922 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4923 (ppcobsd-tdep.o): Update dependencies.
4924
4925 2004-05-10 Andrew Cagney <cagney@redhat.com>
4926
4927 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4928 (context_switch): Do not switch through_sigtramp_breakpoint.
4929 * gdbthread.h (save_infrun_state, load_infrun_state)
4930 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4931 and structure member.
4932 * thread.c (load_infrun_state, save_infrun_state): Update.
4933
4934 2004-05-10 Mark Kettenis <kettenis@gnu.org>
4935
4936 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4937
4938 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4939
4940 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4941 throughout.
4942 * aclocal.m4: Regenerate.
4943
4944 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4945
4946 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4947
4948 2004-05-10 Andrew Cagney <cagney@redhat.com>
4949
4950 * infrun.c (check_sigtramp2): Delete function.
4951 (handle_inferior_event): When single stepping, and taking a
4952 signal, set a breakpoint at the signal return address. Delete
4953 redundant calls to check_sigtramp2.
4954 (insert_step_resume_breakpoint): New function.
4955 (through_sigtramp_breakpoint, handle_inferior_event)
4956 (follow_exec, wait_for_inferior, fetch_inferior_event)
4957 (currently_stepping, keep_going): Delete most uses of
4958 through_sigtramp_breakpoint, not that it should be deleted.
4959 (delete_breakpoint_current_contents): Delete function.
4960
4961 2004-05-10 Randolph Chung <tausq@debian.org>
4962
4963 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4964 target.
4965 * config/pa/tm-linux.h: New file.
4966
4967 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
4968
4969 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4970 of prefixes. Don't print the prefix twice in the CLI.
4971
4972 2004-05-10 Jim Blandy <jimb@redhat.com>
4973
4974 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4975 collect all the gprs.
4976
4977 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4978 loop collecting gprs.
4979
4980 2004-05-09 Andrew Cagney <cagney@redhat.com>
4981
4982 * remote-vx.c (net_step): Delete step-range code.
4983 * remote.c (remote_resume, init_all_packet_configs)
4984 (set_remote_protocol_E_packet_cmd)
4985 (show_remote_protocol_E_packet_cmd)
4986 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4987 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4988 (show_remote_protocol_e_packet_cmd): Ditto.
4989
4990 2004-05-09 Mark Kettenis <kettenis@gnu.org>
4991
4992 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4993
4994 * hppa-tdep.h: Update copyright year.
4995 (struct trad_frame_saved_reg): Add opaque declaration.
4996
4997 * amd64-tdep.c (amd64_return_value): Implement
4998 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4999
5000 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5001 (m68k_value_to_register): New functions.
5002 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5003 value_to_register.
5004
5005 * defs.h (enum return_value_convention): Add
5006 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5007 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5008 * infcmd.c (legacy_return_value): New function.
5009 (print_return_value): Rwerite to implement
5010 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5011 * values.c (using_struct_return): Check for inequality to
5012 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5013 RETURN_VALUE_STRUCT_CONVENTION.
5014 * i386-tdep.c (i386_return_value): Implement
5015 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5016
5017 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5018 include "symtab.h", "opcode/vax.h" and "inferior.h".
5019 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5020 to read_memory_unsigned_integer.
5021 (vax_gdbarch_init): Reorder.
5022 (_initialize_vax_tdep): Spell out prototype.
5023 * Makefile.in (vax-tdep.o): Update dependencies.
5024
5025 2004-05-08 Andrew Cagney <cagney@redhat.com>
5026
5027 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5028 * target.c (target_detach, target_disconnect): Ditto.
5029
5030 * infcall.c (call_function_by_hand): When no
5031 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5032 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5033 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5034 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5035 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5036
5037 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5038 * gdbarch.h, gdbarch.c: Re-generate.
5039 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5040 deprecated_fix_call_dummy.
5041 * v850-tdep.c (v850_gdbarch_init): Ditto.
5042 * infcall.c (call_function_by_hand): Do not call
5043 DEPRECATED_FIX_CALL_DUMMY.
5044
5045 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
5046 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
5047 * gdbarch.h, gdbarch.c: Re-generate.
5048 * arm-linux-tdep.c (arm_linux_call_dummy_words)
5049 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
5050 deprecated_sizeof_call_dummy_words.
5051 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
5052 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5053 * v850-tdep.c (v850_gdbarch_init): Ditto.
5054 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5055 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
5056 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5057 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5058 * arch-utils.h (legacy_call_dummy_words)
5059 (legacy_sizeof_call_dummy_words): Delete declarations.
5060 * arch-utils.c (legacy_call_dummy_words)
5061 (legacy_sizeof_call_dummy_words): Delete variables.
5062
5063 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
5064 * gdbarch.h, gdbarch.c: Re-generate.
5065 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
5066 * infcall.c (call_function_by_hand): Eliminate call to
5067 DEPRECATED_PUSH_DUMMY_FRAME.
5068 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5069 push_dummy_frame.
5070 (ns32k_push_dummy_frame): Delete function.
5071
5072 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5073 deprecated_call_dummy_breakpoint_offset or
5074 deprecated_call_dummy_start_offset.
5075 * dummy-frame.c, arm-tdep.c: Update comments.
5076 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
5077 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
5078 * gdbarch.h, gdbarch.c: Re-generate.
5079
5080 * infcall.c (legacy_push_dummy_code): Delete function.
5081 (push_dummy_code): Delete call.
5082
5083 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
5084 * gdbarch.h, gdbarch.c: Re-generate.
5085 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
5086 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
5087 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
5088 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
5089
5090 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
5091 (struct frame_info): Delete opaque declaration.
5092 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
5093 * frame.c (get_frame_type): Delete call.
5094
5095 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5096 pc_in_call_dummy.
5097 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
5098 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
5099
5100 2004-05-08 Mark Kettenis <kettenis@gnu.org>
5101
5102 * alphanbsd-tdep.c: Include "gdb_string.h".
5103 * armnbsd-tdep.c: Update copyright year.
5104 Include "gdb_string.h".
5105 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
5106 dependencies.
5107
5108 * delta68-nat.c: Remove file.
5109 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
5110 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
5111 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
5112 (delta68-nat.o): Remove dependency.
5113
5114 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
5115 function.
5116 (m68k_gdbarch_init): Don't set
5117 deprecated_frameless_function_invocation.
5118
5119 2004-05-07 Randolph Chung <tausq@debian.org>
5120
5121 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
5122 read_memory_nobpt for code reading when doing frame unwinding.
5123 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
5124
5125 2004-05-07 Randolph Chung <tausq@debian.org>
5126
5127 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
5128 instead of sp, handle sigaltstack case.
5129 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
5130 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
5131 signal handler and not that of the caller.
5132 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
5133 hppa_linux_sigtramp_find_sigcontext.
5134
5135 2004-05-07 Randolph Chung <tausq@debian.org>
5136
5137 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
5138 hppa-linux-nat.c.
5139 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
5140 * hppa-linux-nat.c (fetch_register, store_register): Define.
5141 (fetch_inferior_registers, store_inferior_registers): Define.
5142 (supply_gregset): Add comment and clean up some unneeded code.
5143 (fill_gregset): Add comment and fix so that it saves registers in
5144 the right place in the gregset.
5145 (fill_fpregset): Fix buffer overrun problem.
5146 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5147
5148 2004-05-07 Randolph Chung <tausq@debian.org>
5149
5150 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
5151 do common handling of the pcoqt register.
5152 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
5153 to use helper function.
5154 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
5155 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
5156 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
5157 generic fallback unwinder when all else fails.
5158 (hppa_gdbarch_init): Add fallback sniffer.
5159 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
5160 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
5161 to use helper function.
5162
5163 2004-05-08 Joel Brobecker <brobecker@gnat.com>
5164
5165 * config/djgpp/fnchange.lst: Add translation rules for
5166 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
5167
5168 2004-05-08 Mark Kettenis <kettenis@gnu.org>
5169
5170 * frame.c (get_prev_frame_1): Work around GCC bug.
5171 * frame.h: Add comment about GCC bug.
5172
5173 2004-05-07 Andrew Cagney <cagney@redhat.com>
5174
5175 * observer.c: Include "commands.h" and "gdbcmd.h".
5176 (observer_debug, _initialize_observer): Add the
5177 command "set/show debug observer".
5178 * observer.sh: When observer debugging, log notify calls.
5179 * Makefile.in (observer.o): Update dependencies.
5180
5181 2004-05-07 Jason Molenda (jmolenda@apple.com)
5182
5183 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
5184
5185 2004-05-07 Jim Blandy <jimb@redhat.com>
5186
5187 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5188 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5189 to recognize gpr regnums, instead of assuming that
5190 tdep->ppc_fp0_regnum marks the end of the general-purpose
5191 registers.
5192
5193 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5194 the given architecture has floating-point registers.
5195
5196 2004-05-07 Andrew Cagney <cagney@redhat.com>
5197
5198 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5199 macro defined to 1.
5200 * gdbarch.h, gdbarch.c: Re-generate.
5201 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5202 deprecated_use_generic_dummy_frames.
5203
5204 2004-05-07 Brian Ford <ford@vss.fsi.com>
5205
5206 * NEWS: Mention Cygwin DWARF 2 support.
5207
5208 2004-05-07 Andrew Cagney <cagney@redhat.com>
5209
5210 * objfiles.h (struct entry_info): Delete unused fields
5211 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
5212 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
5213 * mipsread.c (mipscoff_symfile_read): Update.
5214 * mdebugread.c (parse_partial_symbols): Update.
5215 * dwarfread.c (read_file_scope): Update.
5216 * dwarf2read.c (read_file_scope): Update.
5217 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5218 * coffread.c (complete_symtab): Update.
5219
5220 2004-05-07 Mark Kettenis <kettenis@gnu.org>
5221
5222 * infcall.c (_initialize_infcall): Fix typo.
5223
5224 2004-05-07 Andrew Cagney <cagney@redhat.com>
5225
5226 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5227 * command.h (add_setshow_zinteger_cmd): Declare.
5228
5229 2004-05-06 Randolph Chung <tausq@debian.org>
5230
5231 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5232 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5233 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5234 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5235 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5236 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5237 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5238 definitions ...
5239 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5240 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5241 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5242 (hppa64_hpux_frame_find_saved_regs_in_sig)
5243 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5244 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5245 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5246 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5247 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5248 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5249 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5250 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5251 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5252 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5253 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5254 (hppa32_register_type, hppa_cannot_store_register)
5255 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5256 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5257 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5258 * pa64solib.c (pa64_solib_have_load_event)
5259 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5260 (pa64_solib_unloaded_library_pathname): Likewise.
5261 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5262 (som_solib_library_pathname): Likewise.
5263
5264 2004-05-05 Jim Ingham <jingham@apple.com>
5265
5266 * breakpoint.c (create_breakpoints): Copy the ignore count and
5267 thread id over from the pended breakpoint to the actual
5268 breakpoint.
5269
5270 2004-05-05 Andrew Cagney <cagney@redhat.com>
5271
5272 * gdbarch.sh (PARM_BOUNDARY): Delete.
5273 gdbarch.h, gdbarch.c: Re-generate.
5274 * valops.c (PARM_BOUNDARY): Delete macro.
5275 (value_push): Delete PARM_BOUNDARY code.
5276 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5277
5278 2004-05-04 Jim Blandy <jimb@redhat.com>
5279
5280 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5281 Don't assume that the gprs, fprs, and UISA sprs are
5282 contiguous, start at register number zero, and end with fpscr.
5283 Instead, use the numbers from the tdep structure.
5284
5285 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5286 should no longer be used in code specific to the RS6000 and its
5287 derivatives.
5288 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5289 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5290 tdep->ppc_fp0_regnum.
5291 (ppc_supply_fpregset, ppc_collect_fpregset)
5292 (rs6000_push_dummy_call, rs6000_extract_return_value)
5293 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5294 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5295 FP0_REGNUM.
5296 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5297 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5298 Same.
5299 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5300 bdm_ppc_store_registers): Same.
5301 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5302 (store_register, fill_fpregset): Same.
5303 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5304 (ppc_linux_supply_fpregset): Same.
5305 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5306 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5307 Same.
5308 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5309 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5310 ppc64_sysv_abi_return_value): Same.
5311 * rs6000-nat.c (regmap, fetch_inferior_registers)
5312 (store_inferior_registers, fetch_core_registers): Same.
5313
5314 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5315
5316 * m68knbsd-nat.c: Remove file.
5317 * m68knbsd-tdep.c: Remove file.
5318 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5319 dependencies.
5320 * configure.host: Add m68k-*-netbsdelf*.
5321 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5322 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5323 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5324 (XM_FILE): Remove.
5325 * config/m68k/nbsdelf.mh: New file.
5326 * config/m68k/nbsd.mt: New file.
5327 * config/m68k/nbsdaout.mt: Remove file.
5328 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5329 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5330 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5331 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5332 (use_struct_convention): Remove prototype.
5333 (USE_STRUCT_CONVENTION): Remove define.
5334 * config/m68k/xm-nbsd.h: Remove file.
5335
5336 2004-05-04 Michael Snyder <msnyder@redhat.com>
5337
5338 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5339 reg_struct_return method (as gcc usually does for cross targets).
5340
5341 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5342
5343 Committed by Andrew Cagney.
5344 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5345 alignment padding when accessing ucontext struct members.
5346
5347 2004-05-04 Jim Blandy <jimb@redhat.com>
5348
5349 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5350 'ppc_gplast_regnum' member.
5351 (ppc_num_gprs): New enum constant.
5352 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5353 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5354 * rs6000-nat.c (regmap, fetch_inferior_registers,
5355 store_inferior_registers): Same.
5356 * rs6000-tdep.c (e500_pseudo_register_read)
5357 (e500_pseudo_register_write): Same.
5358 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5359
5360 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5361 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5362 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5363 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5364 FPLAST_REGNUM.
5365 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5366 Same.
5367 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5368 * rs6000-nat.c (regmap, fetch_inferior_registers)
5369 (store_inferior_registers): Same.
5370
5371 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5372 with FPLAST_REGNUM.
5373
5374 2004-05-03 Joel Brobecker <brobecker@gnat.com>
5375
5376 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5377 failure detected by recent versions of GCC.
5378 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5379 to be consistent with the usage in dwarf2_create_include_psymtab.
5380
5381 2004-05-03 Michael Snyder <msnyder@redhat.com>
5382
5383 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5384 (heuristic_proc_start): Whitespace cleanup.
5385
5386 2004-05-04 Mark Kettenis <kettenis@gnu.org>
5387
5388 * sun3-nat.c: Remove file.
5389 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5390 dependencies.
5391 (ALLDEPFILES): Remove sun3-nat.c.
5392 (sun3-nat.o): Remove dependencies.
5393
5394 * i386-interix-nat.c, i386-interix-tdep.c,
5395 config/i386/nm-interix.h, config/i386/interix.mh,
5396 config/i386/interix.mt: Remove files.
5397 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5398 dependencies.
5399
5400 2004-05-03 Mark Kettenis <kettenis@gnu.org>
5401
5402 * m68k-tdep.h (struct gdbarch_tdep): Add member
5403 struct_value_regnum.
5404 (m68k_svr4_init_abi): New prototype.
5405 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5406 different calling conventions.
5407 (m68k_extract_return_value): Remove code dealing with single-field
5408 structs.
5409 (m68k_store_return_value): Remove code dealing with single-field
5410 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5411 (m68k_extract_struct_value_address): Remove function.
5412 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5413 (m68k_reg_struct_return_p, m68k_return_value)
5414 (m68k_svr4_return_value): New functions.
5415 (m68k_use_struct_convention): Remove function.
5416 (m68k_push_dummy_call): Use new struct_value_regnum member of
5417 `struct gdbarch_tdep' instead of hardcoded register number to
5418 store STRUCT_ADDR.
5419 (m68k_svr4_init_abi): New function.
5420 (m68k_gdbarch_init): Don't set extract_return_value,
5421 store_return_values, deprecated_extract_struct_value_address and
5422 use_struct_convention. Set return_value instead. Initialize new
5423 struct_value_regnum member of `struct gdbarch_tdep'.
5424 * m68klinux-tdep.c: Update copyright year.
5425 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5426 (m68k_linux_extract_struct_value_address): Remove function.
5427 (m68k_linux_init_abi): Don't set extract_return_value,
5428 store_return_values, deprecated_extract_struct_value_address and
5429 use_struct_convention. Call m68k_svr4_init_abi but override the
5430 new struct_value_regnum member of `struct gdbarch_tdep'.
5431 * Makefile.in (m68k-tdep.o): Update dependencies.
5432
5433 2004-05-03 J. Brobecker <brobecker@gnat.com>
5434
5435 * dwarf2read.c (line_header): Add new included_p field in
5436 field file_names.
5437 (partial_die_info): New field has_stmt_list. New field line_offset.
5438 (dwarf2_create_include_psymtab): New function.
5439 (dwarf2_build_include_psymtabs): New function.
5440 (add_file_name): Add forward declaration. Initialize new field.
5441 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5442 to be able to determine the list of files included by the
5443 given unit, and build their associated psymtabs.
5444 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5445 files as well.
5446 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5447 (read_file_scope): Update call to dwarf_decode_lines.
5448 (read_partial_die): Handle DW_AT_stmt_list attributes.
5449
5450 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5451
5452 Unfix PR gdb/1626.
5453 * configure.in: Revert special case for osf5.*.
5454 * configure: Regenerate.
5455
5456 2004-05-02 Jim Blandy <jimb@redhat.com>
5457
5458 Move the symbol-file-from-memory functions into their own file.
5459 * symfile-mem.c, symfile-mem.h: New files.
5460 * symfile.c (symbol_file_add_from_bfd): New function.
5461 (symbol_file_add): Call symbol_file_add_from_bfd.
5462 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5463 Moved to symfile-mem.c.
5464 (_initialize_symfile): Move definition of
5465 add-symbol-file-from-memory command to symfile-mem.c.
5466 * symfile.h (symbol_file_add_from_bfd): New declaration.
5467 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5468 * config/powerpc/linux.mt (TDEPFILES): Same.
5469 * Makefile.in (SFILES): Add symfile-mem.c.
5470 (symfile_mem_h): New variable.
5471 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5472 (symfile-mem.o): New rule.
5473
5474 2004-05-01 Andrew Cagney <cagney@redhat.com>
5475
5476 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5477 frame_find_by_id instead of frame_relative_level.
5478 (do_enable_breakpoint): Ditto.
5479 * thread.c: Update copyright.
5480 (info_threads_command): Ditto, simplify.
5481
5482 * frame.c (deprecated_generic_get_saved_register): Delete
5483 function, moved to "xstormy16-tdep.c".
5484 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5485 deprecated_generic_get_saved_register from "frame.c".
5486 (xstormy16_frame_saved_register): Call
5487 xstormy16_get_saved_register.
5488 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5489 static.
5490 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5491 * frame.h (deprecated_generic_get_saved_register): Delete.
5492
5493 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5494
5495 * dwarfread.c: Update documentation on the state of dwarf-1.
5496
5497 2004-05-01 Andrew Cagney <cagney@redhat.com>
5498
5499 * stack.c (select_frame_command): Delete call to
5500 frame_relative_level.
5501 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5502 Delete #if0 code.
5503 (frame_info): Do not print FRAMELESS.
5504 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5505 (catch_info): Delete #if0 code.
5506
5507 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5508 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5509 of frame_relative_level.
5510 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5511 to SENTINEL_FRAME.
5512 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5513 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5514 frame_relative_level.
5515
5516 * frame.h (deprecated_set_frame_type): Delete declaration.
5517 * frame.c (deprecated_set_frame_type): Delete function, update
5518 comments.
5519
5520 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5521 * gdbarch.h, gdbarch.c: Re-generate.
5522 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5523 (shnbsd_pc_in_sigtramp): Delete.
5524 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5525 pc_in_sigtramp.
5526 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5527 pc_in_sigtramp.
5528 * frame.h: Update comments.
5529 * ppc-linux-tdep.c: Update comments.
5530 * breakpoint.c (bpstat_what): Update comments.
5531
5532 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5533 m68klinux-tdep.o's dependencies, were previously added to
5534 m68klinux-nat.o.
5535
5536 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5537 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5538 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5539 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5540 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5541
5542 * Makefile.in (m68klinux-nat.o): Update dependencies.
5543 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5544 (m68k_linux_sigtramp_frame_cache)
5545 (m68k_linux_sigtramp_frame_this_id)
5546 (m68k_linux_sigtramp_frame_prev_register)
5547 (m68k_linux_sigtramp_frame_unwind)
5548 (m68k_linux_sigtramp_frame_sniffer)
5549 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5550 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5551 names, use trad-frame.h.
5552 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5553 (struct m68k_sigtramp_info): Delete.
5554 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5555 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5556 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5557 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5558 "m68klinux-tdep.c".
5559
5560 * infrun.c (check_sigtramp2): Delete check for
5561 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5562
5563 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5564
5565 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5566
5567 2004-05-01 Andrew Cagney <cagney@redhat.com>
5568
5569 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5570 (frv_linux_sigtramp_frame_cache)
5571 (frv_linux_sigtramp_frame_this_id)
5572 (frv_linux_sigtramp_frame_prev_register)
5573 (frv_linux_sigtramp_frame_unwind)
5574 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5575 include "linux" in function and variable names, directly call
5576 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5577 the latest trad-frame code.
5578 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5579 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5580 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5581 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5582 * frv-tdep.c (frv_sigtramp_frame_cache)
5583 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5584 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5585 frv-linux-tdep.c.
5586 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5587 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5588 (frv_set_sigcontext_reg_addr): Delete function.
5589
5590 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5591 (DEPRECATED_SIGTRAMP_END): Delete.
5592 * gdbarch.h, gdbarch.c: Re-generate.
5593 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5594 * config/vax/tm-vaxbsd.h: Update copyright.
5595 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5596 (DEPRECATED_IN_SIGTRAMP): Define.
5597 * config/m68k/tm-nbsd.h: Update copyright.
5598 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5599 (DEPRECATED_IN_SIGTRAMP): Define.
5600
5601 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5602
5603 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5604 encondings. Fixes PR gdb/1628.
5605
5606 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5607 DW_CFA_restore state without a matching DW_CFA_remember_state
5608 instead of aborting. Fixes PR backtrace/1589.
5609
5610 2004-04-30 Joel Brobecker <brobecker@gnat.com>
5611
5612 * MAINTAINERS: Add self as AIX maintainer.
5613 Update my e-mail address in write-after-approval section.
5614
5615 2004-04-30 Andrew Cagney <cagney@redhat.com>
5616
5617 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5618 (legacy_get_prev_frame): Ditto.
5619
5620 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5621 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5622 * mipsread.c (sigtramp_address): Delete extern variable.
5623 (mipscoff_new_init): Delete reference.
5624 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5625 (fixup_sigtramp): Delete function.
5626 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5627 (fixup_sigtramp): Delete declarations.
5628
5629 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5630 deprecated_pc_in_sigtramp.
5631 (ppcnbsd_pc_in_sigtramp): Delete function.
5632
5633 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5634
5635 * config/m68k/nm-nbsd.h: Tweak comments.
5636 * config/m68k/nm-nbsdaout.h: Likewise.
5637
5638 2004-04-30 Andrew Cagney <cagney@redhat.com>
5639
5640 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5641 legacy_pc_in_sigtramp.
5642 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5643
5644 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5645
5646 Add OpenBSD/m68k support.
5647 * NEWS (New native configurations): Mention OpenBSD/m68k.
5648 * m68kbsd-tdep.c: New file.
5649 * m68kbsd-nat.c: New file.
5650 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5651 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5652 * configure.host: Add m68k-*-openbsd.
5653 * configure.tgt: Add m68k-*-openbsd.
5654 * config/m68k/tm-obsd.h: New file.
5655 * config/m68k/obsd.mt: New file.
5656 * config/m68k/obsd.mh: New file.
5657 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5658 m68kbsd-tdep.c.
5659
5660 2004-04-30 Andrew Cagney <cagney@redhat.com>
5661
5662 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5663 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5664
5665 2004-04-30 Mark Kettenis <kettenis@gnu.org>
5666
5667 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5668 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5669
5670 2004-04-30 Brian Ford <ford@vss.fsi.com>
5671
5672 Revert 2004-04-16 change.
5673 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5674 (i386_coff_init_abi): Remove.
5675 * i386-tdep.h (i386_coff_init_abi): Remove.
5676 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5677
5678 2004-04-30 Andrew Cagney <cagney@redhat.com>
5679
5680 * blockframe.c (find_pc_partial_function): Delete use of
5681 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5682 DEPRECATED_SIGTRAMP_END.
5683
5684 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5685 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5686 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5687 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5688 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5689
5690 * defs.h (deprecated_inside_entry_file): Delete declaration.
5691 * blockframe.c (deprecated_inside_entry_file): Delete function.
5692 (legacy_frame_chain_valid): Delete call.
5693 * sh64-tdep.c (sh64_frame_chain): Delete call.
5694 * objfiles.h: Update comments.
5695 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5696 call.
5697 * frame.c (get_prev_frame): Delete call, update comments.
5698
5699 2004-04-30 Brian Ford <ford@vss.fsi.com>
5700
5701 * MAINTAINERS (Write After Approval): Add myself.
5702
5703 2004-04-30 Andrew Cagney <cagney@redhat.com>
5704
5705 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5706 * gdbarch.h, gdbarch.c: Re-generate.
5707 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5708 code.
5709
5710 2004-04-30 Andrew Cagney <cagney@redhat.com>
5711
5712 * gdb-events.sh (selected_thread_changed)
5713 (selected_frame_level_changed, target_changed): Delete.
5714 * gdb-events.h, gdb-events.c: Re-generate.
5715 * valops.c (value_assign): Update.
5716 * stack.c (select_frame_command, up_silently_base)
5717 (down_silently_base): Update.
5718
5719 2004-04-29 Andrew Cagney <cagney@redhat.com>
5720
5721 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5722 registers correctly.
5723 (print_gp_register_row, mips32_heuristic_proc_desc)
5724 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5725 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5726 references to mips_isa_regsize.
5727
5728 2004-04-29 Andrew Cagney <cagney@redhat.com>
5729
5730 * mips-tdep.c (struct gdbarch_tdep): Delete
5731 mips_fp_register_double.
5732 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5733 mips_abi_regsize.
5734 (mips_gdbarch_init): Do not set mips_fp_register_double.
5735 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5736
5737 2004-04-29 Joel Brobecker <brobecker@gnat.com>
5738
5739 Committed by Andrew Cagney.
5740 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5741 function calls.
5742
5743 2004-04-29 Andrew Cagney <cagney@redhat.com>
5744
5745 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5746 gdbarch, use mips_abi, update callers.
5747 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5748 mips_abi_regsize, update callers.
5749 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5750 mips_default_abi_regsize.
5751 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5752 mips_default_abi_regsize.
5753
5754 2004-04-29 Andrew Cagney <cagney@redhat.com>
5755
5756 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5757 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5758 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5759 mips_default_abi_regsize.
5760 (mips_isa_regsize): Rename mips_regisze.
5761 * mipsnbsd-tdep.c: Update.
5762 * mips-linux-tdep.c: Update.
5763 * irix5-nat.c: Update.
5764 * mips-tdep.h (mips_isa_regsize): Update.
5765
5766 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5767 Delete all disabled code.
5768 * gdb-events.h, gdb-events.c: Re-generate.
5769
5770 2004-04-19 Jerome Guitton <guitton@gnat.com>
5771 Mark Kettenis <kettenis@gnu.org>
5772
5773 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5774 the function begins with a branch instruction.
5775
5776 2004-04-29 Mark Kettenis <kettenis@gnu.org>
5777
5778 * i386-tdep.c: Fix spelling mistakes.
5779
5780 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5781 Andrew Cagney <cagney@redhat.com>
5782
5783 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5784 <sys/proc.h>.
5785 * acconfig.h: Provide default _KMEMUSER value.
5786 * config.in, configure: Re-generate.
5787 * NEWS: Mention fix.
5788
5789 2004-04-24 Randolph Chung <tausq@debian.org>
5790
5791 * configure.host (hppa*-*-linux*): New target.
5792 * configure.tgt (hppa*-*-linux*): Likewise.
5793 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5794 gdbarch_init_osabi() call earlier so that osabi-specific frame
5795 unwinders can be registered first.
5796 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5797 hppa-linux-nat.c.
5798 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5799 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5800 * config/pa/linux.mh: New file.
5801 * config/pa/linux.mt: New file.
5802 * config/pa/nm-linux.h: New file.
5803 * config/pa/xm-linux.h: New file.
5804 * hppa-linux-nat.c: New file.
5805 * hppa-linux-tdep.c: New file.
5806
5807 2004-04-28 Randolph Chung <tausq@debian.org>
5808
5809 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5810 return values.
5811 (hppa32_push_dummy_call): Fix small struct and floating point argument
5812 passing, and make sure the stack frame is properly aligned.
5813
5814 2004-04-28 Andrew Cagney <cagney@redhat.com>
5815
5816 * stack.c (print_stack_frame): Fix description.
5817
5818 * NEWS: Mention gdb/gdbserver/configure execute permission
5819 changed. PR server/519.
5820
5821 2004-04-28 Andrew Cagney <cagney@redhat.com>
5822
5823 * stack.c (print_stack_frame_stub): Delete declaration.
5824 (struct print_stack_frame_args, print_stack_frame)
5825 (print_frame_info, print_frame): Replace "source" with print what.
5826 Replace "print" with "print_level". Replace "args" with
5827 "print_args".
5828 * frame.h (show_and_print_stack_frame, print_stack_frame)
5829 (print_frame_info): Update declarations.
5830 * stack.c (select_and_print_frame, frame_command)
5831 (current_frame_command, up_command, down_command): Update calls -
5832 use get_selected_frame, pass "enum print_what" for source, do not
5833 call frame_relative_level.
5834 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5835 * remote-rdp.c (remote_rdp_open): Ditto.
5836 * remote-mips.c (common_open): Ditto.
5837 * remote-e7000.c (e7000_start_remote): Ditto.
5838 * ocd.c (ocd_start_remote): Ditto.
5839 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5840 * infrun.c (normal_stop): Ditto.
5841 * inflow.c (kill_command): Ditto.
5842 * infcmd.c (finish_command): Ditto.
5843 * corelow.c (core_open): Ditto.
5844 * tracepoint.c (finish_tfind_command): Ditto.
5845 * thread.c (info_threads_command, info_threads_command)
5846 (restore_current_thread, do_captured_thread_select): Ditto.
5847 * ada-tasks.c (task_command): Ditto.
5848
5849 2004-04-26 Orjan Friberg <orjanf@axis.com>
5850
5851 * frame.c: Include "observer.h".
5852 (frame_observer_target_changed): New function.
5853 (_initialize_frame): Attach target_changed observer.
5854 * regcache.c: Include "observer.h".
5855 (regcache_observer_target_changed): New function.
5856 (_initialize_regcache): Attach target_changed observer.
5857 * valops.c: Include "observer.h".
5858 (value_assign): Notify target_changed event when modifying register.
5859 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5860
5861 2004-04-26 Orjan Friberg <orjanf@axis.com>
5862
5863 From Paul Koning <pkoning@equallogic.com>:
5864 * breakpoint.c (free_valchain): New function.
5865 (insert_bp_location, delete_breakpoint): Use free_valchain.
5866 (remove_breakpoint): Do not remove the valchain.
5867 (bpstat_stop_status): If not stopped by watchpoint, skip
5868 watchpoints when generating stop status list.
5869 * infrun.c (handle_inferior_event): Make
5870 stepped_after_stopped_by_watchpoint a global variable.
5871 * remote.c (remote_stopped_data_address): Return watch data
5872 address rather than zero if stepped_after_stopped_by_watchpoint is
5873 set.
5874
5875 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5876
5877 Fix PR gdb/1626.
5878 * configure.in: Check for curses after termcap.
5879 On osf5.*, do not check for ncurses.
5880 * configure: Regenerate.
5881
5882 2004-04-25 Mark Kettenis <kettenis@gnu.org>
5883
5884 * ppcobsd-nat.c: Include "ppc-tdep.h".
5885 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5886
5887 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5888 Fixes PR tdep/1623 and PR tdep/1624.
5889
5890 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5891
5892 * xmodem.h, xmodem.c: Remove files.
5893 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5894
5895 2004-04-23 Randolph Chung <tausq@debian.org>
5896
5897 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5898 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5899 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5900 for handling stackless frames.
5901 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5902
5903 2004-04-23 Randolph Chung <tausq@debian.org>
5904
5905 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5906 starts at a pc before the frame is created.
5907
5908 2004-04-23 Joel Brobecker <brobecker@gnat.com>
5909
5910 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5911
5912 2004-04-23 Jerome Guitton <guitton@gnat.com>
5913
5914 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5915 use convert_typed_floating to get the appropriate format.
5916
5917 2004-04-22 Randolph Chung <tausq@debian.org>
5918
5919 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5920 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5921 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5922 (hppa_sign_extend): Add prototype.
5923 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5924 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5925 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5926 hppa targets will also use these functions.
5927 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5928 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5929 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5930 (hppa_gdbarch_init): Remove gdbarch setting of
5931 skip_trampoline_code, in_solib_call_trampoline and
5932 in_solib_return_trampoline.
5933 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5934 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5935 hppa_in_solib_call_trampoline.
5936 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5937 Moved from hppa-tdep.c.
5938 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5939 in_solib_call_trampoline and in_solib_return_trampoline.
5940
5941 2004-04-22 Randolph Chung <tausq@debian.org>
5942
5943 * hppa-tdep.c (hppa_debug): New variable.
5944 (find_unwind_entry, hppa_frame_cache): Add debug output.
5945 (_initialize_hppa_tdep): Add command to set debug flag.
5946
5947 2004-04-22 Andrew Cagney <cagney@redhat.com>
5948
5949 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5950 "trad-frame.h".
5951 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5952 signal trampoline unwinder.
5953 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5954
5955 2004-04-22 Mark Kettenis <kettenis@gnu.org>
5956
5957 Add OpenBSD/powerpc support.
5958 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5959 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5960 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5961 (ppc_collect_fpregset): New prototypes.
5962 * ppcobsd-nat.c: New file.
5963 * ppcobsd-tdep.c: New file.
5964 * ppcobsd-tdep.h: New file.
5965 * rs6000-tdep.c: Include "regset.h".
5966 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5967 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5968 New functions.
5969 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5970 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5971 (rs6000-tdep.o): Update dependencies.
5972 * configure.host: Add powerpc-*-openbsd.
5973 * configure.tgt: Add powerpc-*-openbsd.
5974 * config/powerpc/obsd.mh: New file.
5975 * config/powerpc/nm-obsd.h: New file.
5976 * config/powerpc/obsd.mt: New file.
5977
5978 2004-04-22 Andrew Cagney <cagney@redhat.com>
5979
5980 * frame.h (show_frame_info): Delete declaration.
5981
5982 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5983 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5984 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5985 * frv-tdep.c (frv_frame_this_id): Ditto.
5986 * avr-tdep.c (avr_frame_this_id): Ditto.
5987
5988 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
5989
5990 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5991
5992 2004-04-22 Jim Blandy <jimb@redhat.com>
5993
5994 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5995 register number zero.
5996
5997 2004-04-21 Michael Snyder <msnyder@redhat.com>
5998
5999 * mips-tdep.c (heuristic_proc_start):
6000 Warning() already prefixes "Warning: ".
6001
6002 2004-04-21 Andrew Cagney <cagney@redhat.com>
6003
6004 * annotate.h (deprecated_annotate_starting_hook)
6005 (deprecated_annotate_stopped_hook)
6006 (deprecated_annotate_exited_hook)
6007 (deprecated_annotate_signal_hook)
6008 (deprecated_annotate_signalled_hook): Deprecate.
6009 * tracepoint.h (deprecated_create_tracepoint_hook)
6010 (deprecated_delete_tracepoint_hook)
6011 (deprecated_modify_tracepoint_hook)
6012 (deprecated_trace_find_hook)
6013 (deprecated_trace_start_stop_hook): Deprecate.
6014 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6015 * remote.h (deprecated_target_resume_hook)
6016 (deprecated_target_wait_loop_hook): Deprecate.
6017 * gdbcore.h (deprecated_exec_file_display_hook)
6018 (deprecated_file_changed_hook): Deprecate.
6019 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6020 * defs.h (deprecated_modify_breakpoint_hook)
6021 (deprecated_command_loop_hook, deprecated_show_load_progress)
6022 (deprecated_print_frame_info_listing_hook)
6023 (deprecated_query_hook, deprecated_warning_hook)
6024 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6025 (deprecated_delete_breakpoint_hook)
6026 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6027 (deprecated_readline_begin_hook, deprecated_readline_hook)
6028 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6029 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6030 (deprecated_context_hook, deprecated_target_wait_hook)
6031 (deprecated_attach_hook, deprecated_detach_hook)
6032 (deprecated_call_command_hook, deprecated_set_hook)
6033 (deprecated_error_hook, deprecated_error_begin_hook)
6034 (deprecated_ui_load_progress_hook): Deprecate.
6035 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6036 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6037 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6038 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6039 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6040 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6041 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6042 * annotate.c, aix-thread.c: Update.
6043
6044 2004-04-21 Andrew Cagney <cagney@redhat.com>
6045
6046 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
6047 * vaxnbsd-tdep.c: Include "gdb_string.h".
6048
6049 * symfile.c (symbol_file_add_from_memory): #if 0 function.
6050 (add_symbol_file_from_memory_command): #if 0 function body, call
6051 error instead.
6052
6053 2004-04-21 Andrew Cagney <cagney@redhat.com>
6054
6055 * gdbcore.h: Update copyright.
6056 (deprecated_add_core_fns): Rename add_core_fns.
6057 * win32-nat.c (_initialize_core_win32): Update.
6058 * sun3-nat.c (_initialize_core_sun3): Update.
6059 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
6060 * rs6000-nat.c (_initialize_core_rs6000): Update.
6061 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
6062 * nto-tdep.c (_initialize_nto_tdep): Update.
6063 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
6064 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
6065 * mips-nat.c (_initialize_core_mips): Update.
6066 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6067 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
6068 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
6069 * lynx-nat.c (_initialize_core_lynx): Update.
6070 * irix5-nat.c (_initialize_core_irix5): Update.
6071 * i386-interix-nat.c (_initialize_core_interix): Update.
6072 * cris-tdep.c (_initialize_cris_tdep): Update.
6073 * corelow.c (deprecated_add_core_fns): Update.
6074 * core-regset.c (_initialize_core_regset): Update.
6075 * core-aout.c (_initialize_core_aout): Update.
6076 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
6077 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
6078 * alpha-nat.c (_initialize_core_alpha): Update.
6079
6080 2004-04-21 Jim Blandy <jimb@redhat.com>
6081
6082 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
6083
6084 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
6085
6086 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
6087 Delete.
6088 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
6089 (read_attribute_value): Update calls to dwarf_alloc_block.
6090 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
6091 dwarf2_tmp_obstack.
6092 (psymtab_to_symtab_1): Likewise. Clean up using
6093 free_stack_comp_unit.
6094 (add_to_cu_func_list): Use the comp_unit_obstack.
6095
6096 2004-04-19 Joel Brobecker <brobecker@gnat.com>
6097
6098 * dwarf2read.c (dwarf2_flag_true_p): New function.
6099 (die_is_declaration): Use the function above. Add some comments.
6100
6101 2004-04-19 Mark Kettenis <kettenis@gnu.org>
6102
6103 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
6104 architecture when registering sparcnbsd_core_osabi_sniffer.
6105 Adjust comment.
6106
6107 2004-04-18 Mark Kettenis <kettenis@gnu.org>
6108
6109 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
6110 return value.
6111
6112 Based on a patch from Brian Ford <ford@vss.fsi.com>:
6113 * i386-tdep.c: Correct register numbering scheme comments
6114 throughout.
6115 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
6116 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
6117 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
6118 (i386_gdb_arch_init): Likewise.
6119
6120 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
6121 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
6122 ppcnbsd-tdep.o.
6123
6124 * m68k-tdep.h: Tweak comments.
6125 * m68k-tdep.c: Tweak comment.
6126
6127 2004-04-17 Randolph Chung <tausq@debian.org>
6128
6129 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
6130 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
6131 (hppa_hpux_som_init_abi): Set is_elf to 0.
6132 (hppa_hpux_elf_init_abi): Set is_elf to 1.
6133 * hppa-tdep.c (low_text_segment_address): Remove global.
6134 (record_text_segment_lowaddr): Pass in low address as parameter. Use
6135 section offset to calculate segment address.
6136 (internalize_unwinds): Define low_text_segment_address as local and
6137 pass to record_text_segment_lowaddr for ELF targets.
6138 (hppa_gdbarch_init): Zero fill tdep structure.
6139 (hppa_dump_tdep): Print tdep structure.
6140 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
6141
6142 2004-04-17 Randolph Chung <tausq@debian.org>
6143
6144 * hppa-tdep.c (hppa_pseudo_register_read): Define.
6145 (hppa_gdbarch_init): Set pseudo_register_read.
6146 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
6147 * regcache.c (supply_register): Remove check for
6148 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
6149
6150 2004-04-17 Randolph Chung <tausq@debian.org>
6151
6152 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
6153 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
6154 (hpread_adjust_stack_address): Move to hpread.c.
6155 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6156 obj_private_struct): Move from tm-hppa.h.
6157 * hpread.c (hppa-tdep.h): Include.
6158 (hpread_adjust_stack_address): Move from hppa-tdep.c.
6159 (hpread_read_function_type, hpread_read_doc_function_type)
6160 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
6161 directly.
6162 * pa64solib.c (hppa-tdep.h): Include.
6163 * somsolib.c (hppa-tdep.h): Include.
6164 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
6165 inferior_status): Remove unused forward declarations.
6166 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
6167 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6168 obj_private_struct): Move to hppa-tdep.h.
6169 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
6170
6171 2004-04-17 Randolph Chung <tausq@debian.org>
6172
6173 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
6174 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
6175 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
6176 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
6177 Remove forward declaration and make static.
6178 (hppa_reg_struct_has_addr): Remove.
6179
6180 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6181
6182 * observer.sh: Move comments in sed command to first column.
6183
6184 2004-04-16 Jason Molenda (jmolenda@apple.com)
6185
6186 * frame.c: Minor typeo corrections in comments.
6187
6188 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6189
6190 * observer.c (observer_test_first_notification_function): Update
6191 function profile.
6192 (observer_test_second_notification_function): Likewise.
6193 (observer_test_third_notification_function): Likewise.
6194
6195 2004-04-16 Mark Kettenis <kettenis@gnu.org>
6196
6197 From Brian Ford <ford@vss.fsi.com>:
6198 * i386-tdep.c (i386_coff_init_abi): New function.
6199 * i386-tdep.h (i386_coff_init_abi): New prototype.
6200 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6201 register number translation functions for DWARF and DWARF 2.
6202
6203 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6204
6205 * dwarf2read.c: Back out my previous change, it was incorrect.
6206
6207 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
6208
6209 * dwarf2read.c: Include "hashtab.h".
6210 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
6211 has_namespace_info.
6212 (struct partial_die_info): Add comments. Use bitfields to reduce
6213 memory footprint. Add scope, scope_set, has_specification,
6214 spec_offset, die_parent, die_child, and die_sibling.
6215 (peek_die_abbrev): Add prototype.
6216 (partial_read_comp_unit_head): New function, broken out from
6217 dwarf2_build_psymtabs_hard.
6218 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6219 Use partial_read_comp_unit_head. Initialize the CU and
6220 comp_unit_obstack. Update calls to read_partial_die and
6221 scan_partial_symbols. Use free_stack_comp_unit and
6222 load_partial_dies.
6223 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6224 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6225 Update calls to helper functions. Remove NAMESPACE argument.
6226 Update comments.
6227 (partial_die_parent_scope, partial_die_full_name): New functions.
6228 (add_partial_symbol): Remove namespace argument. Update call to
6229 pdi_needs_namespace. Use partial_die_full_name. Handle
6230 DW_TAG_namespace. Check has_namespace_info flag.
6231 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6232 tag. Handle namespaces.
6233 (add_partial_namespace, add_partial_enumeration): Simplify.
6234 (guess_structure_name): New function, derived from
6235 add_partial_structure.
6236 (add_partial_structure): Remove.
6237 (determine_class_name): Update comment.
6238 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6239 (is_type_tag_for_partial, load_partial_dies): New functions.
6240 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6241 Record specifications instead of following them immediately.
6242 (find_partial_die_in_comp_unit, find_partial_die)
6243 (fixup_partial_die, free_stack_comp_unit)
6244 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6245 (partial_die_hash, partial_die_eq): New functions.
6246 * Makefile.in (hashtab_h): Define.
6247 (dwarf2read.o): Update dependencies.
6248 (observer_inc, observer_h): Move to the correct section.
6249
6250 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6251
6252 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6253 (die_is_declaration): Use the function above. Add comment.
6254
6255 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6256
6257 * dwarf2read.c (read_structure_scope): Identify stub types
6258 using die_is_declaration() only.
6259
6260 2004-04-15 Roland McGrath <roland@redhat.com>
6261
6262 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6263 argument instead of NAME.
6264 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6265 in call to symbol_file_add_with_addrs_or_offsets.
6266 (build_addr_info): New function, helper for ...
6267 (symbol_file_add_from_memory): New function.
6268 (add_symbol_file_from_memory_command): New function using that.
6269 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6270 (pre_add_symbol_hook): Add const to argument type.
6271 * symfile.h (symbol_file_add_from_memory): Declare it.
6272
6273 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6274
6275 * NEWS (New native configurations): Mention OpenBSD/vax.
6276 * configure.host: Add vax-*-openbsd*.
6277 * config/vax/obsd.mh: New file.
6278 * config/vax/nm-obsd.h: New file.
6279
6280 * vax-tdep.c: Include "regset.h".
6281 (vax_supply_gregset): New function.
6282 (vax_gregset): New variable.
6283 (vax_regset_from_core_section): New function.
6284 (vax_gdbarch_init): Set regset_from_core_section.
6285 * Makefile.in (vax-tdep.o): Update dependencies.
6286
6287 2004-04-15 Andrew Cagney <cagney@redhat.com>
6288
6289 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6290 (observer_normal_stop_notification_stub)
6291 (observer_attach_normal_stop, observer_detach_normal_stop):
6292 Delete, replaced by #include "observer.inc".
6293 * infrun.c (normal_stop): Pass "stop_bpstat" to
6294 observer_notify_normal_stop.
6295 * Makefile.in (observer_inc): Define.
6296 (observer.o): Update dependencies.
6297 (observer.h, observer.inc): New rules.
6298 * observer.h: Delete file.
6299 * observer.sh: New file.
6300
6301 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6302
6303 * vax-tdep.c (vax_frame_cache): Fix typo.
6304
6305 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6306
6307 * NEWS (New native configurations): Mention NetBSD/vax.
6308 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6309 * config/vax/nbsdelf.mh: New file.
6310 * config/vax/nbsdaout.mh: New file.
6311 * config/vax/nm-nbsd.h: New file.
6312 * config/vax/nm-nbsdaout.h: New file.
6313
6314 * vaxnbsd-tdep.c: New file.
6315 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6316 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6317 * config/vax/nbsd.mt: New file.
6318 * config/vax/tm-nbsd.h: New file.
6319
6320 * Makefile.in (vaxbsd-nat.o): New dependency.
6321
6322 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6323 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6324 struct_addr arguments. Don't push return value address.
6325 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6326 arguments to vax_store_arguments. Store return value address in
6327 R1.
6328 (vax_store_struct_return, vax_extract_return_value)
6329 (vax_store_return_value): Remove functions.
6330 (vax_return_value): New function.
6331 (vax_gdbarch_init): Set return value. Don't set
6332 deprecated_store_struct_return, deprecated_extract_struct_return
6333 and deprecated_store_return_value.
6334
6335 2004-04-14 Andreas Schwab <schwab@suse.de>
6336
6337 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6338 value buffer.
6339 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6340
6341 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6342
6343 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6344 (vax_unwind_dummy_id): New functions.
6345 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6346 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6347 variables.
6348 (vax_fix_call_dummy): Remove function.
6349 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6350 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6351 call_dummy_location, deprecated_call_dummy_words,
6352 deprecated_sizeof_call_dummy_words,
6353 deprecated_call_dummy_breakpoint_offset,
6354 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6355 and deprecated_dummy_write_sp.
6356
6357 2004-04-13 David Carlton <carlton@kealia.com>
6358
6359 * MAINTAINERS: Move myself to "paper trail" section.
6360
6361 2004-04-12 Mark Kettenis <kettenis@gnu.org>
6362
6363 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6364 "trad-frame.h".
6365 (vax_frame_init_saved_regs): Remove function.
6366 (vax_sigtramp_saved_pc): Remove function.
6367 (vax_frame_saved_pc): Remove function.
6368 (vax_frame_args_address): Remove function.
6369 (vax_frame_num_args): Rewrite.
6370 (vax_frame_chain): Remove function.
6371 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6372 VAX_FP_REGNUM.
6373 (vax_pop_frame): Likewise.
6374 (vax_saved_pc_after_call): Remove function.
6375 (struct vax_frame_cache): New structure.
6376 (vax_frame_cache): New function.
6377 (vax_frame_this_id): New function.
6378 (vax_frame_prev_register): New function.
6379 (vax_frame_unwind): New variable.
6380 (vax_frame_sniffer): New function.
6381 (vax_frame_base_address): New function.
6382 (vax_frame_args_address): New function.
6383 (vax_frame_base): New variable.
6384 (vax_unwind_pc): New function.
6385 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6386 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6387 deprecated_frame_chain, deprecated_frame_saved_pc,
6388 deprecated_frame_args_address and
6389 deprecated_frame_init_saved_regs.
6390 * Makefile.in (vax-tdep.o): Update dependencies.
6391
6392 * vaxbsd-nat.c: New file.
6393
6394 * vax-tdep.h: Update copyright year. Adjust comments.
6395 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6396 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6397 (vax_regnum): New enum. Replacing...
6398 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6399 (VAX_PS_REGNUM): ... these removed macros.
6400 * vax-tdep.c (vax_register_name): Remove prototype.
6401 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6402 (vax_register_byte, vax_register_raw_size,
6403 vax_register_virtual_size, vax_register_virtual_type): Remove
6404 functions.
6405 (vax_register_type): New function.
6406 (vax_breakpoint_from_pc): Reorganize.
6407 (vax_gdbarch_init): Set register_type. Don't set
6408 deprecated_register_size, deprecated_register_bytes,
6409 deprecated_register_byte, deprecated_register_raw_size,
6410 deprecated_max_register_raw_size,
6411 deprecated_register_virtual_size,
6412 deprecated_max_register_virtual_size and
6413 deprecated_register_virtual_type. Add comment on stack direction.
6414
6415 2004-04-11 Mark Kettenis <kettenis@gnu.org>
6416
6417 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6418 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
6419 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
6420
6421 2004-04-10 Randolph Chung <tausq@debian.org>
6422
6423 * MAINTAINERS (write after approval): Add myself.
6424
6425 2004-04-07 Randolph Chung <tausq@debian.org>
6426
6427 * hppa-tdep.c (hppa_inner_than): Remove.
6428 (is_pa_2): Remove unused static variable.
6429 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
6430
6431 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6432
6433 * language.h (language_defn): Add new la_post_parser field.
6434 * parser-defs.h (null_post_parser): New declaration (default for
6435 la_post_parser).
6436
6437 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6438 insert call to that function.
6439 (parse_exp_in_context): New function, including code formerly in
6440 parse_exp_1. Calls language-dependent post-parser after
6441 prefixification.
6442 (parse_expression_in_context): New exported function.
6443 (null_post_parser): New definition.
6444 * expression.h (parse_expression_in_context): Add declaration.
6445
6446 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6447 * c-lang.c (c_language_defn): Ditto.
6448 (cplus_language_defn): Ditto.
6449 (asm_language_defn): Ditto.
6450 (minimal_language_defn): Ditto.
6451 * f-lang.c (f_language_defn): Ditto.
6452 * jv-lang.c (java_language_defn): Ditto.
6453 * language.c (unknown_language_defn): Ditto.
6454 (auto_language_defn): Ditto.
6455 (local_language_defn): Ditto.
6456 * m2-lang.c (m2_language_defn): Ditto.
6457 * scm-lang.c (scm_language_defn): Ditto.
6458 * obj-lang.c (objc_language_defn): Ditto.
6459
6460 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6461
6462 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6463 (amd64nbsd_mcontext_addr): New function.
6464 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6465 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6466 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6467
6468 * corelow.c (core_xfer_partial): Fix coding standards violation.
6469 Add support for TARGET_OBJECT_WCOOKIE.
6470
6471 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6472 deprecated_pc_in_sigtramp.
6473 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6474 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6475 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6476 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6477 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6478 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6479 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6480
6481 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6482 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6483 Fix typo.
6484
6485 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6486 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6487 (amd64_collect_fxsave): Likewise.
6488
6489 * i386-sol2-tdep.c: Include "gdb_string.h".
6490 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6491 name.
6492 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6493
6494 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6495
6496 * i386-sol2-tdep.c: Include "solib-svr4.h".
6497 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6498 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6499 * config/i386/tm-i386sol2.h: Include :solib.h".
6500 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6501 solib-svr4.o and solib-legacy.o.
6502 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6503 solib-svr4.o.
6504
6505 2004-04-09 Mark Kettenis <kettenis@gnu.org>
6506
6507 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6508 whether a register is supplied by PTRACE_GETFPREGS.
6509 (store_inferior_registers): Likewise.
6510 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6511 whether a register is supplied by PT_GETFPREGS.
6512 (store_inferior_registers): Likewise.
6513
6514 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6515 * config/i386/linux64.mt (TDEPFILES): Likewise.
6516
6517 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6518
6519 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6520 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6521 the program counter is in the range specified by `struct
6522 gdbarch_tdep'.
6523 * amd64-linux-tdep.c: Include "symtab.h".
6524 (amd64_linux_pc_in_sigtramp): Remove function.
6525 (amd64_linux_sigtramp_p): New function.
6526 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6527 deprecated_pc_in_sigtramp.
6528 * amd64nbsd-tdep.c: Include "symtab.h".
6529 (amd64nbsd_sigtramp_p): New function.
6530 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6531 deprecated_pc_in_sigtramp.
6532 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6533 few comments.
6534 (amd64obsd_pc_in_sigtramp): Remove function.
6535 (amd64obsd_sigtramp_p): New function.
6536 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6537 deprecated_pc_in_sigtramp.
6538 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6539 (i386bsd_pc_ins_sigtramp): Remove prototype.
6540 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6541 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6542 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6543 the program counter is in the range specified by `struct
6544 gdbarch_tdep'.
6545 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6546 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6547 (i386_go32_pc_in_sigtramp): Remove function.
6548 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6549 Initialize TDEP->sigtramp_p.
6550 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6551 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6552 deprecated_pc_in_sigtramp.
6553 * i386-linux-tdep.c: Adjust comments.
6554 (i386_linux_pc_in_sigtramp): Remove function.
6555 (i386_linux_sigtramp_p): New function.
6556 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6557 deprecated_pc_in_sigtramp.
6558 * i386-nto-tdep.c: Update copyright year.
6559 (i386nto_pc_in_sigtramp): Remove function.
6560 (i386nto_sigtramp_p): New function.
6561 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6562 SP_REGNUM.
6563 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6564 deprecated_pc_in_sigtramp.
6565 * i386-sol2-tdep.c: Update copyright year.
6566 (i386_sol2_pc_in_sigtramp): Remove function.
6567 (i386_sol2_sigtramp_p): New function.
6568 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6569 deprecated_pc_in_sigtramp.
6570 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6571 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6572 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6573 deprecated_sigtramp_start and deprecated_sigtramp_end.
6574 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6575 (i386nbsd_pc_in_sigtramp): Remove function.
6576 (i386nbsd_sigtramp_p): New function.
6577 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6578 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6579 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6580 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6581 (i386obsd_pc_in_sigtramp): Remove function.
6582 (i386obsd_sigtramp_p): New function.
6583 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6584 functions.
6585 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6586 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6587 TDEP->sigtramp_p.
6588 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6589 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6590 dependencies.
6591
6592 * config/i386/i386aout.mt: Remove file.
6593
6594 * configure.tgt: Remove i[34567]86-*-go32*,
6595 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6596 and i[34567]86-*-isc*. Set gdb_target to i386 for
6597 i[34567]86-*-netware* and i[34567]86-*-*.
6598 * config/i386/i386.mt: New file.
6599 * config/i386/embed.mt: Remove file.
6600 * config/i386/go32.mt: Remove file.
6601 * config/i386/i386nw.mt: Remove file.
6602 * config/i386/i386v.mt: Remove file.
6603 * config/i386/tm-go32.h: Remove file.
6604
6605 * tui/tui-hooks.c: Include "readline/readline.h" after
6606 "gdb_curses.h" instead of before.
6607 * tui/tui-io.c: Likewise.
6608
6609 * tui/tui.c: Fix typo in comment.
6610
6611 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6612
6613 2004-04-08 Andrew Cagney <cagney@redhat.com>
6614
6615 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6616 (deprecated_exception_support_initialized): Declare.
6617 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
6618 (initialize_hp_cxx_exception_support)
6619 (child_enable_exception_callback): Update.
6620 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6621 (deprecated_exception_support_initialized): Rename
6622 deprecated_exception_catchpoints_are_fragile and
6623 deprecated_exception_support_initialized.
6624 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6625
6626 * symtab.c (deprecated_hp_som_som_object_present): Rename
6627 hp_som_som_object_present.
6628 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6629 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6630 Update. Delete extern declaration.
6631 * valops.c (hp_som_som_object_present): Ditto.
6632 * parse.c (deprecated_hp_som_som_object_present)
6633 (parse_nested_classes_for_hpacc): Ditto.
6634 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
6635 * hppa-hpux-tdep.c (hp_som_som_object_present)
6636 (initialize_hp_cxx_exception_support): Ditto.
6637 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
6638 * cp-valprint.c (hp_som_som_object_present)
6639 (cp_print_class_method): Ditto.
6640 * c-typeprint.c (hp_som_som_object_present):
6641 (c_type_print_base): Ditto.
6642 * c-exp.y (hp_som_som_object_present): Ditto.
6643
6644 2004-04-08 Andrew Cagney <cagney@redhat.com>
6645
6646 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6647 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6648 (frame_unwind_find_by_frame): Re-implement the unwind code so
6649 that it can both prepend and append sniffers. Replace
6650 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6651 * tramp-frame.c (tramp_frame_append): Use
6652 frame_unwind_prepend_unwinder.
6653 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6654 frame_unwind_register_unwinder.
6655 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6656 tramp_frame_append.
6657 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
6658 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
6659 (mips_linux_init_abi): Update.
6660
6661 2004-04-08 Kevin Buettner <kevinb@redhat.com>
6662
6663 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6664 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6665 file support.
6666
6667 2004-04-07 Kevin Buettner <kevinb@redhat.com>
6668
6669 * ia64-tdep.c (elf.h): Don't include.
6670 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6671
6672 2004-04-07 Jason Molenda (jmolenda@apple.com)
6673
6674 * frame.h: Typeo corrections in comments.
6675
6676 2004-04-07 Jim Blandy <jimb@redhat.com>
6677
6678 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6679 %esp and %ebp
6680
6681 2004-04-07 Mark Kettenis <kettenis@gnu.org>
6682
6683 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6684 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6685 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6686 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6687 and solib-legacy.o.
6688 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6689 solib-svr4.o.
6690 * config/sparc/tm-sol2.h: Update copyright year. Include
6691 "solib.h".
6692
6693 * sparc-sol2-tdep.c: Update copyright year. Include
6694 "solib-svr4.h".
6695 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6696 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6697 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6698 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
6699 dependencies.
6700
6701 2004-04-06 Andrew Cagney <cagney@redhat.com>
6702
6703 * infttrace.c: Include "infttrace.h".
6704 * infttrace.h: Include "target.h".
6705 * Makefile.in (infttrace_h): Update.
6706 (infttrace.o): Update.
6707
6708 2004-04-06 Andrew Cagney <cagney@redhat.com>
6709
6710 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6711 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6712 move extern declarations from here ...
6713 * infttrace.h: ... to here.
6714 * Makefile.in (hppah-nat.o): Update dependencies.
6715
6716 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6717 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
6718 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
6719 (hppa_breakpoint_from_pc): Delete.
6720
6721 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6722
6723 2004-04-05 Andrew Cagney <cagney@redhat.com>
6724
6725 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6726 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6727 <sys/file.h>.
6728
6729 2004-04-06 Randolph Chung <tausq@debian.org>
6730
6731 Committed by Andrew Cagney (mechanical change).
6732 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6733 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6734 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6735 child_enable_exception_callback, current_ex_event,
6736 null_symtab_and_line, child_get_current_exception_event,
6737 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6738 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6739 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6740 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6741 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6742 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6743 Move hpux-specific definitions ...
6744 * hppa-hpux-tdep.c: ... to here.
6745
6746 2004-04-05 Andrew Cagney <cagney@redhat.com>
6747
6748 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6749 skip_prologue_using_sal.
6750
6751 2004-04-05 Andrew Cagney <cagney@redhat.com>
6752
6753 * config/i386/tm-i386.h: Delete file.
6754 * config/i386/tm-vxworks.h: Update copyright, do not include
6755 "tm-i386.h".
6756 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6757 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6758 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6759 * config/i386/ncr3000.mt (TM_FILE): Delete.
6760 * config/i386/interix.mt (TM_FILE): Delete.
6761 * config/i386/i386v.mt (TM_FILE): Delete.
6762 * config/i386/i386nw.mt (TM_FILE): Delete.
6763 * config/i386/i386gnu.mt (TM_FILE): Delete.
6764 * config/i386/i386aout.mt (TM_FILE): Delete.
6765 * config/i386/embed.mt (TM_FILE): Delete.
6766
6767 2004-04-05 Kevin Buettner <kevinb@redhat.com>
6768
6769 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6770 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6771 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6772 (accg7_regnum): New constants.
6773 (last_spr_regnum, last_pseudo_regnum): Update.
6774 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6775 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
6776 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6777 for accg registers.
6778 (frv_register_sim_regno): Update spr_map[].
6779
6780 2004-04-04 Andrew Cagney <cagney@redhat.com>
6781
6782 * config/mips/xm-riscos.h: Delete.
6783 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6784 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6785 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6786 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6787 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6788 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6789 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6790 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6791 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6792 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6793 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6794 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6795 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6796 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6797 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6798 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6799 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6800 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6801 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6802 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6803 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6804 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6805 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6806 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6807 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6808 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
6809
6810 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6811 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6812 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6813 * configure.host: Remove m680[01]0-sun-sunos3*,
6814 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6815 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6816 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6817 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6818 mips-*-riscos*.
6819 * NEWS: Mention removed systems.
6820
6821 2004-04-04 Andrew Cagney <cagney@redhat.com>
6822
6823 GDB 6.1 release created from 6.1 branch.
6824
6825 2004-04-04 Andrew Cagney <cagney@redhat.com>
6826
6827 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6828 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6829 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6830
6831 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6832 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6833 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6834
6835 2004-04-03 Jim Blandy <jimb@redhat.com>
6836
6837 * MAINTAINERS: Chris Faylor has changed employers; add him to
6838 "paper trail" section, and update his E-mail address.
6839
6840 2004-04-03 Andrew Cagney <cagney@redhat.com>
6841
6842 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6843 generic dummy frames.
6844 * dummy-frame.c: Update copyright.
6845 (dummy_frame_sniffer): Delete check for generic dummy frames.
6846
6847 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
6848 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
6849 (REG_PARM_STACK_SPACE): Delete.
6850 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6851 Inline reference to REG_PARM_STACK_SPACE.
6852
6853 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6854 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6855 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6856 (FRAME_BASE_BEFORE_SIGTRAMP)
6857 (hppa32_hpux_frame_base_before_sigtramp)
6858 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6859 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6860 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6861 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6862 (FRAME_BASE_BEFORE_SIGTRAMP)
6863 (hppa64_hpux_frame_base_before_sigtramp)
6864 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6865
6866 2004-04-03 Andrew Cagney <cagney@redhat.com>
6867
6868 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6869
6870 2004-04-02 Andrew Cagney <cagney@redhat.com>
6871
6872 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6873 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6874 * dummy-frame.h: Delete out-of-date comments.
6875 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6876 * gdbarch.h, gdbarch.c: Re-generate.
6877
6878 2004-04-02 Joel Brobecker <brobecker@gnat.com>
6879
6880 Committed by Andrew Cagney <cagney@redhat.com>.
6881 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6882 into account an instruction saving a register if we have already
6883 seen an earlier instruction saving that same register.
6884
6885 2004-04-02 Andrew Cagney <cagney@redhat.com>
6886
6887 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6888 * gdbarch.h, gdbarch.c: Re-generate.
6889 * frame.c (legacy_get_prev_frame): Delete references to
6890 DEPRECATED_INIT_FRAME_PC_FIRST.
6891
6892 * infrun.c (pc_in_sigtramp): Delete function.
6893 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6894 get_frame_type.
6895
6896 2004-04-02 Andrew Cagney <cagney@redhat.com>
6897
6898 * infrun.c (handle_step_into_function): Delete code conditional on
6899 legacy_frame_p.
6900 (handle_inferior_event, step_over_function): Ditto.
6901
6902 2004-04-02 Andrew Cagney <cagney@redhat.com>
6903
6904 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6905 "previous frame inner to this frame" test.
6906
6907 2004-04-02 Andrew Cagney <cagney@redhat.com>
6908
6909 * frame.c (safe_frame_unwind_memory): New function.
6910 * frame.h (safe_frame_unwind_memory): Declare. Update description
6911 of /safe_/ methods.
6912 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6913 "next_frame". Use safe_frame_unwind_memory.
6914 (tramp_frame_sniffer): Update call to tramp_frame_start.
6915
6916 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
6917
6918 * dwarf2read.c (dwarf2_objfile_data_key): New.
6919 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6920 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6921 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6922 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6923 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6924 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6925 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6926 Remove variables.
6927 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6928 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6929 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6930 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6931 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6932 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6933 Remove macros.
6934 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6935 data.
6936 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6937 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6938 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6939 (read_partial_die, read_full_die, read_indirect_string)
6940 (dwarf_decode_line_header, dwarf_decode_macros)
6941 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6942 Update uses of removed variables.
6943 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6944 of removed macros.
6945 (_initialize_dwarf2_read): New function.
6946 * symfile.h (dwarf2_has_info): Update prototype.
6947 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6948 * elfread.c (elf_symfile_read): Likewise.
6949
6950 2004-04-01 Jim Blandy <jimb@redhat.com>
6951
6952 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6953 function for register numbers on all the rs6000-derived targets.
6954 (rs6000_gdbarch_init): Don't register a separate
6955 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6956 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6957 variants.
6958
6959 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6960 numbering.
6961
6962 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6963
6964 * valarith.c: Update copyright notice.
6965 (value_add): Handle range types.
6966 (value_sub): Ditto.
6967 (value_equal): Ditto.
6968 (value_less): Ditto.
6969 (value_neg): Ditto.
6970 (value_complement): Ditto.
6971 (value_binop): Simplify slightly by using is_integral_type and
6972 eliminiating unnecessary COERCE_ENUMs.
6973
6974 2004-03-31 Andrew Cagney <cagney@redhat.com>
6975
6976 * frame.h (frame_unwind_id): Declare.
6977 * frame.c (frame_unwind_id): New function.
6978 (get_prev_frame_1): New function.
6979 (frame_debug_got_null_frame): New function.
6980 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6981 code proper to prev_frame, update description.
6982 * infrun.c (step_over_function): Use frame_unwind_id.
6983
6984 2004-04-31 J. Brobecker <brobecker@gnat.com>
6985
6986 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6987 (hppa64_push_dummy_call): Likewise.
6988
6989 2004-03-30 Jim Blandy <jimb@redhat.com>
6990
6991 From Ulrich Weigand:
6992 * utils.c (query): Do not use a va_list variable multiple times.
6993
6994 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6995
6996 * Makefile.in (linux_nat_h): Update dependencies.
6997 * configure.in: Check for <gnu/libc-version.h>.
6998 * configure: Regenerate.
6999 * config.in: Regenerate.
7000 * linux-nat.h: Include "target.h". Add waitstatus field to
7001 struct lwp_info.
7002 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7003 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7004 to.
7005 (lin_lwp_handle_extended): New function. Handle clone events.
7006 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7007 thread exit events.
7008 (child_wait): Handle clone events.
7009 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7010 * linux-nat.c (linux_enable_event_reporting): Turn on
7011 PTRACE_O_TRACECLONE.
7012 (linux_handle_extended_wait): Handle clone events.
7013 * thread-db.c: Include <gnu/libc-version.h>.
7014 (struct private_thread_info): Add dying flag.
7015 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7016 higher.
7017 (attach_thread): Update comments. Handle dying threads.
7018 (detach_thread): Set the dying flag.
7019 (check_event): Always call attach_thread.
7020
7021 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7022
7023 * mips-tdep.c (mips_pdr_data): New.
7024 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7025 (_initialize_mips_tdep): Initialize mips_pdr_data.
7026
7027 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
7028
7029 * minsyms.c (install_minimal_symbols): Move dropping leading
7030 char from linkage name from here...
7031 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7032 test for "__gnu_compiled*" symbols.
7033
7034 2004-03-28 Jim Blandy <jimb@redhat.com>
7035
7036 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7037 registers to temp register r0 and byte stores as prologue
7038 instructions.
7039
7040 2004-03-28 Andrew Cagney <cagney@redhat.com>
7041
7042 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7043 arm*-*-*.
7044
7045 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7046
7047 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
7048 and switch the layout to force a display of register window.
7049
7050 2004-02-26 J. Brobecker <brobecker@gnat.com>
7051
7052 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
7053 of the INTEGER class.
7054
7055 2004-03-26 Jim Blandy <jimb@redhat.com>
7056
7057 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
7058 bytes long on PPC GNU/Linux.
7059
7060 2004-03-26 David Carlton <carlton@kealia.com>
7061
7062 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
7063
7064 2004-03-25 Andrew Cagney <cagney@redhat.com>
7065
7066 * PROBLEMS: Add general section titles, remove references to
7067 specific releases.
7068
7069 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
7070
7071 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
7072 INT_REGISTER_SIZE.
7073 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
7074 FP_REGISTER_VIRTUAL_SIZE.
7075 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
7076 of DEPRECATED_REGISTER_RAW_SIZE.
7077 (arm_register_type): Add gdbarch argument.
7078 (arm_register_raw_size, arm_register_virtual_size): Delete.
7079 (arm_register_byte, arm_extract_return_value)
7080 (arm_store_return_value, arm_get_longjmp_target): Update references
7081 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
7082 (arm_gdbarch_init): Likewise. Don't set
7083 deprecated_register_raw_size, deprecated_register_virtual_size,
7084 deprecated_max_register_raw_size,
7085 deprecated_max_register_virtual_size, or
7086 deprecated_max_register_virtual_type. Do set register_type.
7087 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
7088 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
7089 (FP_REGISTER_VIRTUAL_SIZE): Delete.
7090 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
7091 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
7092 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
7093 INT_REGISTER_SIZE.
7094 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
7095 (remote_rdp_store_register): Likewise.
7096
7097 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
7098
7099 * Makefile.in (mips-linux-tdep.o): Update dependencies.
7100 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
7101 to after osabi initialization.
7102 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
7103 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
7104 functions.
7105 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
7106 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
7107 variables.
7108 (mips_linux_init_abi): Append signal trampoline unwinders.
7109
7110 2004-03-24 Andrew Cagney <cagney@redhat.com>
7111
7112 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
7113 * tramp-frame.c: Include "gdb_assert.h".
7114 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
7115 correct sizeof.
7116 (tramp_frame_append): Validate the tramp frame's instructions.
7117 * Makefile.in (tramp-frame.o): Update dependencies.
7118
7119 2004-03-23 Andrew Cagney <cagney@redhat.com>
7120
7121 * trad-frame.h (trad_frame_set_reg_addr): Declare.
7122
7123 2004-03-23 Andrew Cagney <cagney@redhat.com>
7124
7125 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
7126 Nasser as past testsuite/lib/ (and other) maintainers.
7127
7128 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
7129
7130 * infcmd.c (attach_command): Reread symbols if we already have
7131 an exec file.
7132
7133 2004-03-23 Andrew Cagney <cagney@redhat.com>
7134
7135 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
7136
7137 2004-03-23 Andrew Cagney <cagney@redhat.com>
7138
7139 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
7140 * gdbarch.h, gdbarch.c: Re-generate.
7141 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7142 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7143 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7144 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
7145 (DEPRECATED_SIGTRAMP_START): Update.
7146 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
7147 (DEPRECATED_SIGTRAMP_START): Update.
7148 * blockframe.c (find_pc_sect_partial_function): Update.
7149 * arch-utils.c (legacy_pc_in_sigtramp): Update.
7150
7151 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
7152
7153 * remote.c (remote_open_1): Reopen the exec file and reread symbols
7154 if necessary.
7155
7156 2004-03-23 Andrew Cagney <cagney@redhat.com>
7157
7158 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
7159 predicate, deprecate.
7160 * gdbarch.h, gdbarch.c: Re-generate.
7161 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7162 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7163 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
7164 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7165 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
7166 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
7167 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
7168 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
7169 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
7170 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
7171 * blockframe.c (find_pc_partial_function): Update.
7172 * breakpoint.c (bpstat_what): Update.
7173 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
7174 * frv-linux-tdep.c (frv_linux_init_abi): Update.
7175 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
7176 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
7177 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7178 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7179 * i386-nto-tdep.c (i386nto_init_abi): Update.
7180 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
7181 * i386-tdep.c (i386_sigtramp_frame_sniffer)
7182 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
7183 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7184 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7185 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7186 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7187 * infrun.c (pc_in_sigtramp): Update.
7188 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7189 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7190 * mips-tdep.c (mips_gdbarch_init): Update.
7191 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7192 * ppc-linux-tdep.c: Update comment.
7193 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7194 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7195 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7196 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7197 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7198 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7199 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7200 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7201 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7202 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
7203
7204 2004-03-23 Andrew Cagney <cagney@redhat.com>
7205
7206 * tramp-frame.h, tramp-frame.h: New files.
7207 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
7208 Update rules to include "tramp-frame.h" and "tramp-frame.c".
7209
7210 * Makefile.in: Update all dependencies.
7211
7212 2004-03-23 Andrew Cagney <cagney@redhat.com>
7213
7214 * Makefile.in (trad_frame_h): Add $(frame_h).
7215 * trad-frame.h: Update copyright. Include "frame.h".
7216 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7217 (trad_frame_set_id, trad_frame_get_id): Declare.
7218 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7219 * trad-frame.c: Update copyright.
7220 (struct trad_frame_cache): Define.
7221 (trad_frame_cache_zalloc): New function.
7222 (trad_frame_set_id, trad_frame_get_id): New functions.
7223 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
7224
7225 2004-03-22 Andrew Cagney <cagney@redhat.com>
7226
7227 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7228 s390_pltstub_unwind_cache.
7229 (s390_stub_frame_unwind_cache): Rename
7230 s390_pltstub_frame_unwind_cache.
7231 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7232 (s390_stub_frame_prev_register): Rename
7233 s390_pltstub_frame_prev_register.
7234 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7235 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7236
7237 From Ulrich Weigand:
7238 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7239 pointer calls like PLT calls.
7240
7241 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7242
7243 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7244 PC rather than the partial function start address. Use the start
7245 address to sanity check the found PDR.
7246
7247 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7248
7249 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7250 linux_handle_extended_wait.
7251
7252 2004-03-22 Andrew Cagney <cagney@redhat.com>
7253
7254 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7255 function.
7256
7257 * frame.h (generic_pop_current_frame): Delete declaration.
7258 (deprecate_pop_dummy_frame): Deprecate
7259 generic_pop_dummy_frame.
7260 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7261 (generic_pop_current_frame): Delete function.
7262 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7263 generic_pop_current_frame.
7264 * v850-tdep.c (v850_pop_frame): Update.
7265 * mcore-tdep.c (mcore_pop_frame): Update.
7266 * sh64-tdep.c (sh64_pop_frame): Update.
7267 * h8300-tdep.c (h8300_pop_frame): Update.
7268
7269 2004-03-22 Andrew Cagney <cagney@redhat.com>
7270
7271 * frame.h (deprecated_pc_in_call_dummy): Rename
7272 generic_pc_in_call_dummy.
7273 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7274 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7275 generic_pc_in_call_dummy.
7276 (pc_in_dummy_frame): Make static.
7277 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7278 * gdbarch.h, gdbarch.c: Re-generate.
7279 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7280 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7281 (legacy_get_prev_frame): Ditto.
7282 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7283 comment.
7284
7285 2004-03-21 Andrew Cagney <cagney@redhat.com>
7286
7287 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7288 declaration and out-of-date comment.
7289 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7290 Delete function.
7291 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7292 deprecated_pc_in_call_dummy.
7293
7294 * infrun.c (handle_inferior_event): For non legacy frames, use the
7295 frame ID and frame type to identify a signal trampoline. Update
7296 comments.
7297
7298 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7299
7300 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7301 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7302
7303 2004-03-21 Andrew Cagney <cagney@redhat.com>
7304
7305 * frame-unwind.h: Update copyright.
7306 (struct frame_data): Add opaque declaration.
7307 (frame_sniffer_ftype): Declare.
7308 (struct frame_unwind): Add "unwind_data" and "sniffer".
7309 (frame_unwind_register_unwinder): Declare.
7310 (frame_unwind_find_by_frame): Add parameter "this_cache".
7311 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7312 (legacy_get_prev_frame, legacy_get_prev_frame)
7313 (get_frame_type): Pass the prologue_cache to
7314 frame_unwind_find_by_frame.
7315 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7316 "unwinder".
7317 (frame_unwind_register_unwinder): New function.
7318 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7319
7320 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7321
7322 * bcache.c (print_percentage): Use floating point to avoid
7323 incorrect results when portion*100 overflows.
7324
7325 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7326
7327 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7328 (ppc_linux_init_extra_frame_info)
7329 (ppc_linux_frameless_function_invocation)
7330 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7331 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7332 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7333 (rs6000_frame_chain): Delete declarations.
7334 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7335 (ppc_linux_init_extra_frame_info)
7336 (ppc_linux_frameless_function_invocation)
7337 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7338 (ppc_linux_init_abi): Remove registration of above deleted functions.
7339 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7340 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7341 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7342 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7343 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7344 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7345 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7346 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7347 frame management for all OSABIs.
7348
7349 2004-03-19 Andrew Cagney <cagney@redhat.com>
7350
7351 Committed by Kevin Buettner <kevinb@redhat.com>.
7352
7353 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7354 Update copyright.
7355 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7356 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7357 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7358 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7359 unwinders. #ifdef legacy frame code.
7360 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7361 "frame-base.h".
7362 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7363 (struct rs6000_frame_cache, rs6000_frame_cache)
7364 (rs6000_frame_this_id, rs6000_frame_prev_register)
7365 (rs6000_frame_sniffer, rs6000_frame_unwind)
7366 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7367 (rs6000_frame_base): Implement a traditional frame unwinder.
7368 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7369 frame unwinder.
7370
7371 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7372
7373 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7374 breakpoint address for watchpoints or the catch eventpoints.
7375 Add new paramter ``bptype''. Adjust all callers.
7376
7377 2004-03-19 Andrew Cagney <cagney@redhat.com>
7378
7379 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7380
7381 * PROBLEMS: Delete note that ARM does not use frame code, problem
7382 fixed.
7383
7384 2004-03-18 Andrew Cagney <cagney@redhat.com>
7385
7386 * stack.c (return_command): Delete code wrapped in #ifdef
7387 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7388
7389 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7390
7391 2004-03-18 Andrew Cagney <cagney@redhat.com>
7392
7393 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7394 DEPRECATED_IN_SIGTRAMP.
7395 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7396 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7397 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7398 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7399 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7400 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7401 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7402 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7403 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7404 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7405
7406 2004-03-18 Andrew Cagney <cagney@redhat.com>
7407
7408 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7409 (struct frame_base_table_entry): Define.
7410 (struct frame_base_table): Re-implement as a linked list.
7411 (frame_base_init): Re-implement.
7412 (frame_base_table): Delete function.
7413 (append_predicate): Delete function.
7414 (frame_base_append_sniffer): Update.
7415 (frame_base_set_default): Update.
7416 (frame_base_find_by_frame): Update.
7417 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7418 * Makefile.in (frame-base.o): Update dependencies.
7419
7420 2004-03-17 Andrew Cagney <cagney@redhat.com>
7421
7422 * frame.c (legacy_get_prev_frame): Pass correct frame to
7423 frame_unwind_find_by_frame.
7424
7425 2004-03-17 David Carlton <carlton@kealia.com>
7426
7427 * NEWS: Mention C++ nested types and namespaces
7428
7429 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7430
7431 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7432 and "Regressions since gdb 5.3.". Add known regressions since
7433 gdb 6.0.
7434
7435 2004-03-16 David Carlton <carlton@kealia.com>
7436
7437 * dwarf2read.c (process_structure_scope): Process children even
7438 when we're a declaration.
7439
7440 2004-03-16 Andrew Cagney <cagney@redhat.com>
7441
7442 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7443 * blockframe.c (find_pc_partial_function)
7444 (find_pc_sect_partial_function): Merge into a single
7445 find_pc_partial_function.
7446
7447 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7448
7449 * i386bsd-nat.c: s/regno/regnum/g.
7450 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7451 FP0_REGNUM.
7452 (store_inferior_registers): Likewise.
7453
7454 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7455
7456 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7457 of i387_fill_fsave.
7458 (store_inferior_registers): Call i387_collect_fsave and
7459 i387_collect_fxsave instead of i387_fill_fsave and
7460 i387_fill_fxsave.
7461
7462 2004-03-15 Andrew Cagney <cagney@redhat.com>
7463
7464 * Makefile.in (frame-unwind.o): Update dependencies.
7465 * frame-unwind.c: Include "gdb_obstack.h".
7466 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7467 parameter.
7468 (append_predicate): Delete function.
7469 (struct frame_unwind_table_entry): New structure.
7470 (struct frame_unwind_table): Replace "sniffer" with "head" and
7471 "tail".
7472 (frame_unwind_append_sniffer): Update.
7473 (frame_unwind_find_by_frame): Update.
7474 (_initialize_frame_unwind): Registe frame_unwind_init using
7475 gdbarch_data_register_pre_init.
7476
7477 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7478
7479 * i386bsd-nat.c: Update copyright year.
7480 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7481 define unconditionally.
7482
7483 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7484
7485 * i387-tdep.h (i387_collect_fsave): New prototype.
7486 * i387-tdep.c (i387_collect_fsave): New function containing most
7487 of the code from i387_fill_fsave.
7488 (i387_fill_fsave): Call i387_collect_fsave.
7489
7490 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7491
7492 * i386-linux-tdep.c: Update copyright year.
7493 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7494 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7495 svr4_ilp32_link_map_offsets instead of
7496 i386_linux_svr4_fetch_link_map_offsets.
7497
7498 2004-03-15 David Carlton <carlton@kealia.com>
7499
7500 Fix for PR c++/1553:
7501 * dwarf2read.c (read_structure_type): Determine type name by
7502 calling determine_class_name.
7503 (determine_class_name): New.
7504 (determine_prefix): Look at TYPE_TAG_NAME and call
7505 determine_class_name when appropriate.
7506 (determine_prefix_aux, class_name): Delete.
7507 (read_namespace): Set die->type.
7508
7509 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7510
7511 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7512 unused macro definition. The definition in target.h (or perhaps
7513 elsewhere) takes precedence.
7514
7515 2004-03-15 Andrew Cagney <cagney@redhat.com>
7516
7517 * ppc-tdep.h: Update copyright.
7518 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7519 function signatures to match "regsets.h".
7520 * ppc-linux-tdep.c: Include "regset.h".
7521 (ELF_GREGSET_SIZE): Delete.
7522 (right_supply_register): New function.
7523 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7524 using right_supply_register.
7525 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7526 functions.
7527 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7528 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7529 (_initialize_ppc_linux_tdep): Do not register
7530 ppc_linux_regset_core_fns.
7531 (ppc_linux_regset_from_core_section): Replace
7532 fetch_core_registers.
7533 (ppc_linux_regset_core_fns): Delete.
7534 * ppc-linux-nat.c: (right_fill_reg): New function.
7535 (supply_gregset): Update call to ppc_linux_supply_gregset.
7536 (fill_gregset): Clear the register set, use right_fill_reg.
7537 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7538 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7539
7540 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7541 unsigned.
7542
7543 2004-03-15 Andrew Cagney <cagney@redhat.com>
7544
7545 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7546 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7547 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7548 and register_gdbarch_data.
7549 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7550 (struct gdbarch_data): Replace "init" by "pre_init" and
7551 "post_init".
7552 * gdbarch.h, gdbarch.c: Re-generate.
7553 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7554 with"obstack", use OBSTACK_ZALLOC.
7555 (dwarf2_frame_ops): Delete.
7556 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7557 (dwarf2_frame_init_reg): Use gdbarch_data.
7558 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
7559 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
7560 (_initialize_svr4_solib): Update.
7561 * user-regs.c (_initialize_user_regs): Update.
7562 * reggroups.c (_initialize_reggroup): Update.
7563 * regcache.c (_initialize_regcache): Update.
7564 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7565 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7566 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7567 * frame-unwind.c (_initialize_frame_unwind): Update.
7568 * frame-base.c (_initialize_frame_base): Update.
7569 * user-regs.c (user_reg_add): Update.
7570 * reggroups.c (reggroup_add): Update.
7571 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7572 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7573 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7574 * frame-base.c (frame_base_table): Update.
7575 * remote.c (_initialize_remote): Update.
7576 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
7577
7578 2004-03-15 Andrew Cagney <cagney@redhat.com>
7579
7580 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7581
7582 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7583
7584 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7585 * frv-linux-tdep.c: New file.
7586 * frv-tdep.c (struct gdbarch_tdep): Add new field
7587 ``sigcontext_reg_addr''.
7588 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7589 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7590 (frv_sigramp_frame_sniffer): New functions.
7591 (frv_sigtramp_frame_unwind): New static global.
7592 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7593 sniffers.
7594 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7595 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7596
7597 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7598
7599 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7600 but not via a call to error(), when unable to read memory.
7601
7602 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7603
7604 * frv-tdep.c (frv_call_dummy_words): Delete.
7605 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7606
7607 2004-03-15 Andrew Cagney <cagney@redhat.com>
7608
7609 * infrun.c (handle_step_into_function, step_over_function): Only
7610 update and use STEP_FRAME_ID when the system is using legacy
7611 frames. Update comments.
7612
7613 2004-03-14 Mark Kettenis <kettenis@gnu.org>
7614
7615 * amd64-linux-tdep.h: Remove file.
7616 * amd64-linux-tdep.c: Don't include "inferior.h" and
7617 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7618 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7619 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7620 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7621 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7622 macros.
7623 (user_to_gdb_regmap): Remove variable.
7624 (amd64_linux_gregset_reg_offset): New variable.
7625 (amd64_core_fns): Remove variable.
7626 (fetch_core_registers): Remove function.
7627 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7628 functions.
7629 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7630 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7631 * Makefile.in (amd64_linux_tdep_h): Remove.
7632 (amd64-linux-nat.o): Update dependencies.
7633 (amd64-linux-tdep.o): Update dependencies.
7634
7635 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7636 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7637 functions.
7638 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7639
7640 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7641 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7642
7643 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
7644
7645 * dwarf2read.c (read_structure_type): Rename from
7646 read_structure_scope. Don't create a symbol or call process_die.
7647 Return immediately if die->type is set. Call read_type_die before
7648 dwarf2_add_member_fn.
7649 (process_structure_scope): New function.
7650 (read_enumeration_type, process_enumeration_scope): New functions,
7651 broken out from read_enumeration. Don't create the enumeration
7652 type if it has already been created.
7653 (read_enumeration): Removed.
7654 (process_die): Call read_structure_type, process_structure_scope,
7655 read_enumeration_type, and process_enumeration_scope. Just call
7656 new_symbol for base and subrange types. Add a comment about other
7657 type dies.
7658 (read_type_die): Call read_enumeration_type.
7659 (add_partial_structure, new_symbol): Update comments.
7660
7661 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7662
7663 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7664
7665 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7666
7667 * tui/tui-win.h (tui_get_cmd_list): Declare.
7668 * tui/tui-win.c (tui_command): New function.
7669 (tui_get_cmd_list): New function.
7670 (_initialize_tui_win): Moved initialization of tui command in
7671 tui_get_cmd_list.
7672
7673 * tui/tui-data.c (init_content_element): Setup new data members.
7674 (init_win_info): Likewise.
7675 (free_content_elements): Free it.
7676 * tui/tui-data.h (struct tui_data_element): Store the register
7677 content to print.
7678 (struct tui_data_info): Keep the current register group.
7679
7680 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7681
7682 * tui/tui-regs.h (tui_show_registers): Update prototype.
7683 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7684 (tui_resize_all): No need to calculate anything for register window.
7685 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7686 (tui_set_register_element, tui_set_general_regs_content): Remove.
7687 (tui_set_special_regs_content): Remove.
7688 (tui_set_general_and_special_regs_content): Remove.
7689 (tui_set_float_regs_content): Remove.
7690 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7691 (tui_set_regs_content): Remove.
7692 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7693 (tui_v_show_registers_command_support): Remove.
7694 (tui_show_registers): Use a reggroup to specify the registers to show.
7695 (tui_show_register_group): New function.
7696 (tui_display_registers_from): Compute the layout of register window
7697 and refresh with new API; be sure to delete old register windows.
7698 (tui_check_register_values): Update to use tui_get_register and
7699 tui_display_data.
7700 (tui_display_register): Just refresh the register window part.
7701 (tui_register_format): Format registers and save in tui_data_element.
7702 (tui_get_register): New to combine tui_reg_value_has_changed and
7703 tui_get_register_raw_value; fix to use the new gdb API.
7704 (tui_show_float_command): Renamed tui_reg_float_command.
7705 (tui_show_general_command): Renamed tui_reg_general_command.
7706 (tui_show_special_command): Renamed tui_reg_system_command.
7707 (_initialize_tui_regs): Remove unused commands.
7708
7709 2004-03-13 Mark Kettenis <kettenis@gnu.org>
7710
7711 * NEWS (New native configurations): Mention OpenBSD/amd64.
7712
7713 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7714 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7715 Remove defines.
7716 * config/i386/nm-fbsd64.h: Likewise.
7717 * config/i386/nm-obsd.h: Likewise.
7718 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7719 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7720
7721 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7722
7723 * frv-tdep.c (set_variant_scratch_registers): New function.
7724 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7725 New constants.
7726
7727 From Richard Sandiford <rsandifo@redhat.com>:
7728 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7729
7730 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7731
7732 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7733 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7734 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7735 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7736 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7737 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7738 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7739 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7740 definitions from frv-tdep.c to frv-tdep.h.
7741
7742 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7743
7744 Add shared library support for FR-V FDPIC ABI:
7745 * Makefile.in (solib-frv.o): Add dependencies.
7746 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7747 New functions.
7748 (frv_push_dummy_call): Add support for FDPIC ABI.
7749 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7750 for FDPIC ABI.
7751 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7752 (frv_fdpic_find_canonical_descriptor): Declare.
7753 * solib-frv.c: New file.
7754 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7755 * config/frv/tm-frv.h (solib.h): Include.
7756
7757 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7758
7759 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7760 (frv-tdep.o): Update dependencies.
7761 * frv-tdep.h: New file.
7762 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7763 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7764 constants.
7765 (struct gdbarch_tdep): Add new member ``frv_abi''.
7766 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7767 functions.
7768 (new_variant): Set ``frv_abi'' field.
7769 (gdb_arch_init): Detect FDPIC executables.
7770
7771 2004-03-12 Mark Kettenis <kettenis@gnu.org>
7772
7773 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7774 wrapper.
7775
7776 2004-03-11 Andrew Cagney <cagney@redhat.com>
7777
7778 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7779
7780 2004-03-11 Kevin Buettner <kevinb@redhat.com>
7781
7782 * solist.h (master_so_list): New function.
7783 * solib.c (master_so_list): Likewise.
7784 * solib-svr4.c (enable_break): Iterate over so_list entries
7785 obtained from master list instead of entries obtained directly
7786 via svr4_current_sos().
7787
7788 2004-03-10 Ben Elliston <bje@gnu.org>
7789
7790 * MAINTAINERS: Update my mail address.
7791
7792 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7793
7794 * remote-m32r-sdi.c: Support hardware watchpoint.
7795
7796 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7797
7798 * user-regs.c: Update copyright years.
7799 (struct user_regs): Rename to gdb_user_regs.
7800 (append_user_reg, builtin_user_regs, user_regs_init)
7801 (user_reg_add, user_reg_map_name_to_regnum)
7802 (usernum_to_user_reg): Update.
7803
7804 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7805
7806 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7807 (skip_children): New functions.
7808 (locate_pdi_sibling): Call skip_children.
7809
7810 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7811
7812 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7813 * gdbtypes.c (check_typedef): Update comments.
7814
7815 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7816
7817 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7818 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7819 pointer. Update comment about comp_unit_head.
7820 (struct abbrev_info): Shorten two int flags.
7821 (dwarf_alloc_abbrev): Take a CU argument.
7822 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7823 each time through the loop. Update cleanup argument.
7824 (psymtab_to_symtab_1): Update cleanup call.
7825 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7826 abbrev_obstack.
7827 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7828 Just call obstack_free and clear the pointer.
7829
7830 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7831
7832 * infrun.c (handle_inferior_event): Remove short-circuit code for
7833 events in a different thread.
7834
7835 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7836
7837 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7838 print the whole transfer.
7839 (initialize_targets): Update description of "set debug target".
7840
7841 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7842
7843 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7844
7845 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7846
7847 * MAINTAINERS (write after approval): Add myself.
7848
7849 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7850
7851 * sh-tdep.c (sh_print_registers_info): Use for loop.
7852 Don't skip multiple registers when a float register is encountered.
7853
7854 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7855
7856 Fix PR tdep/1291.
7857 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7858 to official SH documentation.
7859
7860 2004-03-07 Andrew Cagney <cagney@redhat.com>
7861
7862 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7863 unused function.
7864
7865 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
7866
7867 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7868 (arm_get_next_pc): Handle BX and BLX.
7869
7870 2004-03-07 Andrew Cagney <cagney@redhat.com>
7871
7872 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7873 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7874 HPPA_SP_REGNUM.
7875 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7876 (hppa_target_read_fp): Delete.
7877 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7878 register_virtual_size, max_register_raw_size,
7879 max_register_virtual_size, register_byte, register_size,
7880 target_read_fp, fp_regnum, and register_bytes. Set register_type
7881 instead of register_virtual_type.
7882 (hppa32_register_type, hppa64_register_type): Replace
7883 hppa32_register_virtual_type and hppa64_register_virtual_type.
7884 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7885 (HPPA_FP_REGNUM): Define.
7886
7887 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7888
7889 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7890 (pa_do_registers_info): Delete.
7891 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
7892 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
7893 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
7894
7895 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7896 GDB_TARGET_IS_HPPA code.
7897 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
7898 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
7899 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7900 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
7901 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7902 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7903 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
7904 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
7905 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7906 (hppa_frameless_function_invocation, hppa64_store_return_value)
7907 (hppa_store_struct_return, hppa64_extract_return_value)
7908 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
7909 (hppa32_call_dummy_length, hppa64_call_dummy_length)
7910 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
7911 (find_proc_framesize, deposit_21, restore_pc_queue)
7912 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
7913 (rp_saved, pc_in_linker_stub): Delete.
7914
7915 Unconditionally enable 64-bit frame and ABI code.
7916 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7917 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7918 push_dummy_frame, fix_call_dummy, push_arguments,
7919 call_dummy_location, extract_return_value, use_struct_convention,
7920 store_return_value, store_struct_return, saved_pc_after_call,
7921 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7922 frame_chain, frame_chain_valid, frameless_function_invocation,
7923 frame_saved_pc, and pop_frame.
7924
7925 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7926 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7927 (hppa_gdbarch_init): Do not set PC_REGNUM.
7928
7929 2004-03-06 Mark Kettenis <kettenis@gnu.org>
7930
7931 * config/alpha/tm-fbsd.h: Remove file.
7932 * config/alpha/fbsd.mt: Tweak comment.
7933 (TM_FILE): Set to tm-alpha.h.
7934
7935 2004-03-05 Andrew Cagney <cagney@redhat.com>
7936
7937 * infrun.c (step_over_function): When non-legacy code, and no
7938 step_frame_id, use the unwinder to get the caller's frame ID.
7939
7940 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7941
7942 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7943 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7944 bfd_arch_unknown. Adjust comment.
7945
7946 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7947 * i386obsd-tdep.c: Correct spelling in comment.
7948 * i386nbsd-tdep.c: Correct spelling in comment.
7949 * sparc-tdep.c: Correct spelling in comments.
7950
7951 2004-03-05 David Carlton <carlton@kealia.com>
7952
7953 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7954 bug.
7955
7956 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7957
7958 * sparc-tdep.c: Fix typo in comment.
7959
7960 2004-03-04 J. Brobecker <brobecker@gnat.com>
7961
7962 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7963
7964 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
7965
7966 * dwarf2read.c: Add comment describing memory lifetimes.
7967 (struct dwarf2_pinfo): Update comment.
7968 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7969 (read_enumeration, new_symbol): Don't use obsavestring.
7970
7971 2004-03-04 Mark Kettenis <kettenis@gnu.org>
7972
7973 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7974 instead of amd64_fill_fxsave.
7975 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7976 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7977
7978 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7979 Reorganize code a bit.
7980
7981 2004-03-04 Orjan Friberg <orjanf@axis.com>
7982
7983 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
7984 when the frame pointer is pushed. Don't set the frame pointer's
7985 address on the stack unless it's actually located there.
7986 Set the SRP's address on the stack correctly when the PC is still in
7987 the prologue.
7988 (cris_return_value): New function.
7989 (cris_gdbarch_init): Clear deprecated store_return_value,
7990 extract_return_value.
7991
7992 2004-03-02 Jim Blandy <jimb@redhat.com>
7993
7994 * stabsread.c (reg_value_complaint): The maximum register number
7995 is one less than the number of registers.
7996
7997 2004-03-02 Andrew Cagney <cagney@redhat.com>
7998
7999 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8000 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8001 trailing comma and redundant assignment of I386_ST0_REGNUM.
8002 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8003 32-bit segment registers.
8004
8005 2004-03-01 Andrew Cagney <cagney@redhat.com>
8006
8007 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8008 use frame_relative_level and get_next_frame.
8009
8010 2004-02-29 Andrew Cagney <cagney@redhat.com>
8011
8012 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8013 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8014 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8015 Delete macro.
8016
8017 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8018
8019 * inflow.c (terminal_inferior): Don't give up the terminal if we
8020 previously couldn't get the inferior's terminal state.
8021
8022 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8023
8024 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8025 PC_REGNUM.
8026
8027 2004-02-28 Andrew Cagney <cagney@redhat.com>
8028
8029 * NEWS: Refer to GDB 6.1.
8030 * README: Refer to GDB 6.1.
8031 * PROBLEMS: Refer to GDB 6.1.
8032
8033 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
8034
8035 * thread-db.c (disable_thread_signals): Remove unused function.
8036
8037 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8038
8039 * amd64-nat.c: Include "gdb_string.h".
8040 (amd64_collect_native_gregset): Zero-extend the 32-bit
8041 general-purpose registers and %eip.
8042
8043 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8044 * amd64-tdep.c (amd64_collect_fxsave): New function.
8045 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
8046
8047 * i387-tdep.h: Update copyright year.
8048 (i387_collect_fxsave): New prototype.
8049 * i387-tdep.c: Update copyright year.
8050 (i387_collect_fxsave): New function containing most of the code
8051 from i387_fill_fxsave.
8052 (i387_fill_fxsave): Call i387_collect_fxsave.
8053
8054 2004-02-28 Andrew Cagney <cagney@redhat.com>
8055
8056 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
8057 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
8058
8059 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8060
8061 * amd64-tdep.c (amd64_frame_cache): Fix comment.
8062
8063 2004-02-28 Andrew Cagney <cagney@redhat.com>
8064
8065 * utils.c: Use "", instead of <>, to include readline.
8066 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
8067 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
8068 * source.c, solib.c, exec.c, event-top.c: Ditto.
8069 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
8070 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
8071 * Makefile.in: Update all dependencies.
8072 (readline_tilde_h, readline_history_h): Define.
8073 (readline_headers): Delete.
8074
8075 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8076
8077 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
8078 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
8079 "config/i386/tm-lx64.h".
8080
8081 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
8082 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
8083 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
8084
8085 2004-02-28 Andrew Cagney <cagney@redhat.com>
8086
8087 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
8088
8089 * breakpoint.c (_initialize_breakpoint): Use
8090 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
8091 Add help to show command.
8092
8093 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8094
8095 * i386-nat.c: Reformat to be closer to coding standards.
8096 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
8097 `retval'. Make variables `align' and `size' local to while-loop.
8098 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
8099 (_initialize_i386_nat): New prototype.
8100
8101 * tui/tui.c: Include <readline/readline.h> instead of
8102 "readline/readline.h". Include it after <term.h> and
8103 "gdb_curses.h".
8104
8105 2004-02-27 Andrew Cagney <cagney@redhat.com>
8106
8107 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
8108 the new frame unwind code.
8109 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
8110 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
8111 PCOQ_HEAD_REGNUM.
8112
8113 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
8114 "return_value" and "push_dummy_call".
8115 (hppa32_use_struct_convention): Delete unused function.
8116 (hppa32_store_return_value): Delete unused function.
8117 (hppa32_extract_return_value): Delete unused function.
8118 (hppa32_stack_align): Delete function.
8119
8120 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
8121
8122 * coffread.c (enter_linenos): Don't let rawptr reference memory
8123 outside linetab[]'s limits.
8124
8125 2004-02-27 Andrew Cagney <cagney@redhat.com>
8126
8127 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
8128 inferior stack space - the stack needs to grow upwards.
8129 (hppa32_frame_align): New function.
8130 (hppa64_frame_align): Replace hppa_frame_align.
8131 (hppa_gdbarch_init): Update.
8132
8133 2004-02-26 Orjan Friberg <orjanf@axis.com>
8134
8135 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
8136 (dwarf2-frame.h): Include.
8137 (enum cris_regnums): New enum CRIS_FP_REGNUM.
8138 Remove static variables related to ABI setting.
8139 (struct gdbarch_tdep): Remove cris_abi member.
8140 (struct frame_extra_info): Remove.
8141 (cris_unwind_cache, stack_item): New structs.
8142 (cris_frame_unwind, cris_frame_base): New variables.
8143 (push_stack_item, pop_stack_item)
8144 (cris_frame_unwind_cache, cris_frame_this_id)
8145 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
8146 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
8147 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
8148 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
8149 (cris_reg_struct_has_addr): New functions.
8150 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8151 (cris_frame_saved_pc, cris_saved_pc_after_call,
8152 (cris_store_struct_return, cris_frameless_function_invocation)
8153 (cris_pop_frame, cris_skip_prologue_main)
8154 (cris_abi_original_store_return_value)
8155 (cris_abi_v2_store_return_value)
8156 (cris_abi_original_extract_return_value)
8157 (cris_abi_v2_extract_return_value)
8158 (cris_abi_original_reg_struct_has_addr)
8159 (cris_abi_v2_reg_struct_has_addr)
8160 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
8161 (cris_push_return_address, cris_abi_update): Remove.
8162 (_initialize_cris_tdep): Remove ABI command.
8163 (cris_dump_tdep): Ditto.
8164 (cris_gdbarch_init): Remove ABI command.
8165 Set store_return_value, extract_return_value, push_dummy_code,
8166 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
8167 frame_unwind_append_sniffer, frame_base_set_default.
8168 Clear deprecated init_frame_pc, push_arguments, store_return_value,
8169 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
8170 sizeof_call_dummy_words, get_saved_register, push_return_address,
8171 pop_frame, store_struct_return, frame_init_saved_regs,
8172 init_extra_frame_info, frameless_function_invocation, frame_chain,
8173 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
8174 dummy_write_sp.
8175
8176 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8177
8178 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
8179 * valprint.c (print_hex_chars): Change from static to external.
8180 (print_char_chars): New function.
8181 * printcmd.c (print_scalar_formatted): For integer and enum types
8182 that are longer than LONGEST, perform processing via appropriate
8183 print_*_chars routines.
8184
8185 2004-02-26 Andrew Cagney <cagney@redhat.com>
8186
8187 * Makefile.in: Update dependencies.
8188 Changes from Ulrich Weigand,
8189 * s390-tdep.c: Include "dwarf2-frame.h".
8190 (s390_dwarf2_frame_init_reg): New function.
8191 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8192 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8193
8194 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8195
8196 * breakpoint.c (pending_break_support): New setting variable.
8197 (break_command_1): Account for pending_break_support setting
8198 when creating pending breakpoints.
8199 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8200 (_initialize_breakpoint): Add "set breakpoint pending" and
8201 "show breakpoint pending" commands.
8202
8203 2004-02-26 Andrew Cagney <cagney@redhat.com>
8204
8205 Fix PR i18n/1570.
8206 * charset.c (backslashable, backslashed, represented): Remove 'e'
8207 from list of escaped characters, not part of ISO-C.
8208
8209 2004-02-25 J. Brobecker <brobecker@gnat.com>
8210
8211 From Peter Schauer <schauer@pdf.de>:
8212 * tui/tui.c: Move system header includes after local includes.
8213 Fixes a build failure on solaris systems.
8214
8215 2004-02-25 J. Brobecker <brobecker@gnat.com>
8216
8217 * configure.in: Refine the previous change.
8218 * configure: Regenerate.
8219
8220 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8221
8222 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8223 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8224 "amd64-tdep.h" instead of "x86-64-tdep.h".
8225 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8226 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8227 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8228 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8229 and "x86-64-tdep.c".
8230 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8231 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8232 and "x86-64-tdep.c".
8233 * amd64bsd-nat.c: Update copyright year.
8234 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8235 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8236 "x86-64-tdep.h".
8237 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8238 "x86-64-tdep.h".
8239 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8240 "x86-64-tdep.h".
8241 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8242 "x86-64-tdep.h".
8243 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8244 "x86-64-tdep.h".
8245 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8246 "x86-64-tdep.h".
8247 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
8248 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8249 * Makefile.in (amd64_linux_tdep_h): Renamed from
8250 x86_64_linux_tdep_h.
8251 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8252 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8253 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8254 (amd64obsd-tdep.o): Update dependencies.
8255 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8256 dependencies.
8257 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8258 dependencies.
8259 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8260 amd64-linux-nat.c amd64-linux-tdep.c.
8261 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8262 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8263 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8264 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8265 amd64-tdep.o and amd64-linux-tdep.o.
8266 (TM_FILE): Set to tm-linux64.h.
8267 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8268 (NAT_FILE): Set to nm-linux64.h.
8269 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8270 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8271 amd64-tdep.o.
8272 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8273 amd64-tdep.o.
8274 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8275 amd64-tdep.o.
8276
8277 2004-02-25 Roland McGrath <roland@redhat.com>
8278
8279 * remote.c (remote_protocol_qPart_auxv): New variable.
8280 (init_all_packet_configs): Initialize it.
8281 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8282 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8283 (show_remote_cmd): Call it.
8284 (_initialize_remote): Initialize commands.
8285 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8286 service TARGET_OBJECT_AUXV requests.
8287
8288 2004-02-25 J. Brobecker <brobecker@gnat.com>
8289
8290 * configure.in: Make sure that the wborder function is available.
8291 Otherwise, search for it in the cur_colr library.
8292 * configure: Regenerate.
8293
8294 2004-02-25 Andrew Cagney <cagney@redhat.com>
8295
8296 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8297
8298 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8299
8300 * config/i386/tm-x86-64linux.h: Tweak comments.
8301
8302 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
8303
8304 * MAINTAINERS: Add self to write-after-approval list.
8305
8306 2004-02-25 Andrew Cagney <cagney@redhat.com>
8307
8308 PR cli/1566. Problem found, and fix suggested by David Allan.
8309 * cli/cli-script.c (execute_control_command): Unconditionally
8310 install a cleanup. Default "ret" to "invalid_control". Use
8311 "break" instead of "return" to escape from the switch.
8312
8313 2004-02-24 J. Brobecker <brobecker@gnat.com>
8314
8315 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8316 with the lines macro defined in term.h on AiX.
8317 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8318 a collision with the label_width macro defined in term.h on AiX.
8319
8320 2004-02-23 David Mosberger <davidm@hpl.hp.com>
8321
8322 Committed by Kevin Buettner <kevinb@redhat.com>.
8323
8324 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8325 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8326 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8327 instead of ia64_write_pc().
8328 * ia64-linux-tdep.c (regcache.h): Include.
8329 (ia64_linux_write_pc): New function.
8330
8331 2004-02-23 Roland McGrath <roland@redhat.com>
8332
8333 * auxv.c (info_auxv_command): Fix typos in error messages.
8334
8335 2004-02-23 Mark Kettenis <kettenis@gnu.org>
8336
8337 * x86-64-tdep.h: Tweak comment.
8338 (enum amd64_regnum): New.
8339 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8340 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8341 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8342 (X86_64_XMM1_REGNUM): Removed.
8343 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8344 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8345 prototypes for renamed functions.
8346 * x86-64-tdep.c: Fix typo.
8347 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8348 register numbers.
8349 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8350 Use constants from `enum amd64_regnum' for register numbers.
8351 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8352 (amd64_analyze_prologue, amd64_frame_cache,
8353 amd64_sigtramp_frame_cache): Use constants from `enum
8354 amd64_regnum' for register numbers.
8355 (amd64_supply_fpregset): Adjust for renamed functions.
8356 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8357 `enum amd64_regnum' for register numbers.
8358 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8359 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8360 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8361 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8362 (amd64_linux_fill_gregset): Adjust for renamed macros.
8363 (fetch_core_registers): Adjust for renamed functions.
8364 (amd64_linux_init_abi): Adjust for renamed functions.
8365 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8366 renamed functions.
8367 * amd64-nat.c: Adjust for renamed macros.
8368 * amd64bsd-nat.c (fetch_inferior_registers)
8369 (store_inferior_registers): Use constants from `enum amd64_regnum'
8370 for register numbers. Adjust for renamed variables.
8371 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8372 renamed variables.
8373 (_initialize_amd64fbsd_nat): Use constants from `enum
8374 amd64_regnum' for register numbers.
8375 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8376 `enum amd64_regnum' for register numbers.
8377 (amd64fbsd_init_abi): Adjust for renamed functions.
8378 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8379 `enum amd64_regnum' for register numbers.
8380 (amd64nbsd_init_abi): Adjust for renamed functions.
8381 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8382 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8383 `enum amd64_regnum' for register numbers.
8384 (amd64obsd_init_abi): Adjust for renamed functions.
8385 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8386
8387 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8388
8389 * breakpoint.c (print_one_breakpoint): Do not output spaces
8390 after printing <PENDING> for a pending breakpoint.
8391
8392 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8393
8394 * printcmd.c (print_scalar_formatted): Initialize val_long
8395 to remove compiler warning message.
8396
8397 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8398
8399 * defs.h (nquery, yquery): New prototypes.
8400 * breakpoint.c (break_command_1): Use new nquery interface.
8401 * utils.c (defaulted_query, nquery, yquery): New functions.
8402
8403 2004-02-23 Andrew Cagney <cagney@redhat.com>
8404
8405 * hppa-tdep.c (hppa_frame_align): New function.
8406 (hppa32_push_dummy_call): New function.
8407 (hppa64_push_dummy_call): New function.
8408 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8409 disabled.
8410
8411 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8412 FIX_CALL_DUMMY when push_dummy_call is available.
8413 (call_function_by_hand, push_dummy_code): Ditto.
8414
8415 2004-02-22 Andrew Cagney <cagney@redhat.com>
8416
8417 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8418 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8419 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8420 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8421 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8422 call_dummy_location to ON_STACK.
8423
8424 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8425
8426 * x86-64-linux-tdep.c: Tweak comment.
8427 (amd64_linux_supply_gregset): Renamed from
8428 x86_64_linux_supply_gresget.
8429 (amd64_linux_fill_gregset): Renamed from
8430 x86_64_linux_fill_gregset.
8431 (fetch_core_registers): Adjust for renamed functions.
8432 (amd64_core_fns): Renamed from x86_64_core_fns.
8433 (amd64_linux_sigtramp_start): Renamed from
8434 x86_64_linux_sigtramp_start.
8435 (amd64_linux_pc_in_sigtramp): Renamed from
8436 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8437 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8438 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8439 (amd64_linux_sigcontext_addr): Renamed from
8440 x86_64_linux_sigcontext_addr.
8441 (amd64_linux_sc_reg_offset): Renamed from
8442 x86_64_linux_sc_reg_offset.
8443 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8444 Adjust for renamed functions and variables.
8445 (_initialize_amd64_linux_tdep): Renamed from
8446 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8447 variables.
8448 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8449 Adjust for renamed functions.
8450
8451 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8452 from x86_64_linux_gregset64_reg_offset.
8453 (amd64_linux_gregset32_reg_offset): Rename from
8454 x86_64_linux_gregset64_reg_offset.
8455 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8456 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8457 (amd64_linux_dr_set_control): Renamed from
8458 x86_64_linux_dr_set_control. Adjust for renamed functions.
8459 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8460 Adjust for renamed functions.
8461 (amd64_linux_dr_reset_addr): Renamed from
8462 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8463 (amd64_linux_dr_get_status): Renamed from
8464 x86_64_linux_dr_get_status. Adjust for renamed functions.
8465 (_initialize_amd64_linux_nat): Renamed from
8466 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8467 functions.
8468 * config/i386/nm-x86-64linux.h: Update copyright year.
8469 Adjust for renamed functions.
8470
8471 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8472 amd64fbsd_sigtramp_start.
8473 (amd64fbsd_sigtramp_end_addr): Renamed from
8474 amd64fbsd_sigtramp_end.
8475 (amd64fbsd_init_abi): Adjust for renamed variables.
8476 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8477 variables.
8478 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8479 amd64fbsd_sigtramp_start.
8480 (amd64fbsd_sigtramp_end_addr): Renamed from
8481 amd64fbsd_sigtramp_end.
8482
8483 2004-02-22 Andrew Cagney <cagney@redhat.com>
8484
8485 * hppa-tdep.c (hppa32_return_value): New function.
8486 (hppa64_return_value): New function.
8487 (hppa_gdbarch_init): Set return_value; keep disabled.
8488
8489 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8490 struct-return and inferior function call methods.
8491
8492 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8493 "frame-base.h".
8494 (struct hppa_frame_cache): Define.
8495 (hppa_frame_cache, hppa_frame_this_id): New functions.
8496 (hppa_frame_prev_register): New function.
8497 (hppa_frame_unwind, hppa_frame_base): New variables.
8498 (hppa_frame_unwind_sniffer): New function.
8499 (hppa_frame_base_address, hppa_unwind_pc): New function.
8500 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8501 sniffer, and frame base sniffer; keep disabled.
8502 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8503 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8504
8505 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8506 to predicates for "seriously old code".
8507
8508 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8509 runtime if(0).
8510
8511 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8512 unsigned.
8513 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
8514
8515 * config/pa/tm-hppa.h: Update copyright.
8516 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8517 (deprecated_init_frame_pc_default): Delete declaration.
8518 (hppa_frame_init_saved_regs): Delete declaration.
8519 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8520 * hppa-tdep.c: Include "arch-utils.h".
8521 (hppa_gdbarch_init): Set deprecated init_frame_pc
8522 and deprecated frame_init_saved_regs.
8523 (hppa_frame_init_saved_regs): Make static.
8524
8525 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8526
8527 Remove old 386BSD support.
8528 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
8529 * configure.host: Remove i[34567]86-*-bsd*.
8530 * configure.tgt: Remove i[34567]86-*-bsd*.
8531 * i386b-nat.c: Removed.
8532 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
8533 (i386b-nat.o): Remove dependencies.
8534
8535 * config/i386/i386bsd.mh: Removed.
8536 * config/i386/i386bsd.mt: Removed.
8537 * config/i386/nm-i386bsd.h: Removed.
8538 * config/i386/tm-i386bsd.h: Removed.
8539 * config/i386/xm-i386bsd.h: Removed.
8540
8541 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8542
8543 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8544 (amd64fbsd_init_abi): Set link map offsets.
8545 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8546 (amd64nbsd_init_abi): Set link map offsets.
8547 * amd64obsd-tdep.c: Include "solib-svr4.h".
8548 (amd64obsd_init_abi): Set link map offsets.
8549 * i386fbsd-tdep.c: Include "solib-svr4.h".
8550 (i386fbsd_init_abi): Set link map offsets.
8551 * i386nbsd-tdep.c: Include "solib-svr4.h".
8552 (i386nbsdelf_init_abi): Set link map offsets.
8553 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8554 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8555 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8556 solib-legacy.o and core-aout.o. Reformat.
8557 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8558 solib-svr4.o, solib-legacy.o. Reformat.
8559 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8560 * config/i386/nbsdelf.mh: Reformat.
8561 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8562 solib-svr4.o, solib-legacy.o and corelow.o.
8563 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8564 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8565 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8566 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8567 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8568 (TM_FILE): Set to tm-fbsd.h.
8569 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8570 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8571 solib-svr4.o.
8572 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8573 solib-svr4.o.
8574 (TM_FILE): Set to nm-nbsd.h.
8575 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8576 Simplify shared library support. Don't include "elf/common.h".
8577 (SVR4_SHARED_LIBS): Don't define.
8578 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8579 "solib.h".
8580 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8581 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8582 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8583 Don't include "i386/tm-i386.h". Include "solib.h".
8584 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8585 Don't include "i386/tm-i386.h".
8586 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8587 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8588 Include "i386/xm-i386.h".
8589 (HOST_LONG_DOUBLE_FORMAT): Remove.
8590
8591 Fix OpenBSD/i386 sigtramp recognition.
8592 * i386-tdep.h: Update copyright year.
8593 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8594 (i386bsd_sigtramp_end): New prototypes.
8595 (i386fbsd_sigtramp_start_addr): Renamed from
8596 i386fbsd_sigtramp_start.
8597 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8598 (i386obsd_sigtramp_start_addr): Renamed from
8599 i386obsd_sigtramp_start.
8600 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8601 * i386bsd-tdep.c: Update copyright year.
8602 (i386bsd_pc_in_sigtramp): Make public.
8603 * i386fbsd-nat.c: Update copyright year.
8604 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8605 * i386fbsd-tdep.c: Update copyright year.
8606 (i386fbsd_sigtramp_start_addr): Renamed from
8607 i386fbsd_sigtramp_start.
8608 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8609 (i386fbsdaout_init_abi): Adjust for renamed variables.
8610 * i386obsd-nat.c: Update copyright year.
8611 (_initialize_i386obsd_nat): Adjust for renamed variables.
8612 * i386obsd-tdep.c: Include "target.h".
8613 (i386obsd_page_size): New variable.
8614 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8615 (i386obsd_sigtramp_end): New functions.
8616 (i386obsd_sigtramp_start_addr): Renamed from
8617 i386obsd_sigtramp_start.
8618 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8619 (i386obsd_init_abi): Adjust for renamed variables. Set
8620 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8621 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8622
8623 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8624 trampoline change in OpenBSD kernel.
8625
8626 * amd64-nat.c: Update copyright year.
8627 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8628 architecture from REGCACHE.
8629
8630 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8631 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8632
8633 2004-02-21 Mark Kettenis <kettenis@gnu.org>
8634
8635 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8636 i[34567]86-*-openbsd3.[0-3].
8637 * config/i386/obsdaout.mh: New file.
8638
8639 * config/i386/obsd.mh (MH_FLAGS): Remove.
8640
8641 Fix PR build/1549.
8642 * i386obsd-tdep.c: Update copyright years. Include
8643 "solib-svr4.h".
8644 (i386obsd_init_abi): Don't set regset_from_core_section here.
8645 (i386obsd_aout_init_abi): New function. Set
8646 regset_from_core_section here.
8647 (i386obsd_elf_init_abi): New function.
8648 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8649 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8650 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8651 (TM_FILE): Set to tm-nbsd.h.
8652
8653 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8654 solib-sunos.o.
8655
8656 * solib-svr4.h: Update copyright year.
8657 (svr4_ilp32_fetch_link_map_offsets)
8658 (svr4_lp64_fetch_link_map_offsets): New prototype.
8659 * solib-svr4.c: Update copyright year.
8660 (svr4_ilp32_fetch_link_map_offsets)
8661 (svr4_lp64_fetch_link_map_offsets): New function.
8662
8663 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
8664
8665 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8666 to the partial symbol table.
8667
8668 2004-02-20 J. brobecker <brobecker@gnat.com>
8669
8670 * PROBLEMS: Add description of problem documented under gdb/1560.
8671
8672 2004-02-20 Mark Kettenis <kettenis@gnu.org>
8673
8674 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8675 comments.
8676 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8677 functions.
8678 (amd64obsd_init_abi): Reorder initializations. Use
8679 amd64obsd_r_reg_offset to initialize the general-purpose register
8680 set details. Set regset_from_core_section.
8681 (_initialize_amd64obsd_tdep): Rename from
8682 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8683 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8684 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8685
8686 * NEWS (New native configurations): Mention OpenBSD/alpha.
8687 * configure.tgt: Add alpha*-*-openbsd*.
8688 * configure.host: Add alpha*-*-openbsd*.
8689 * alphanbsd-tdep.c: Update copyright year.
8690 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8691
8692 2004-02-20 Andrew Cagney <cagney@redhat.com>
8693
8694 Fix PR tdep/1372.
8695 * configure.tgt: Delete target "none-*-*".
8696 * configure.host: Delete host "none-*-*".
8697 * config/none/none.mh: Delete file.
8698 * config/none/none.mt: Delete file.
8699 * config/none/xm-none.h: Delete file.
8700 * config/none/tm-none.h: Delete file.
8701 * config/none/nm-none.h: Delete file.
8702
8703 2004-02-19 Fred Fish <fnf@redhat.com>
8704
8705 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8706 cache->uses_fp prior to setting it.
8707
8708 2004-02-19 Fred Fish <fnf@redhat.com>
8709
8710 Fix for PR breakpoint/1558.
8711 * sh-tdep.c (IS_JSR): New macro.
8712 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8713
8714 2004-02-19 Jim Blandy <jimb@redhat.com>
8715
8716 * findvar.c (value_from_register): Doc fix.
8717
8718 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8719
8720 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8721 type being greater than sizeof of host's LONGEST. Always use
8722 unpack_long() unless format 'f' chosen.
8723
8724 2004-02-19 Joel Brobecker <brobecker@gnat.com>
8725
8726 Committed by Elena Zannoni <ezannoni@redhat.com>
8727
8728 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8729 contains a symbol wich is the best, non-exact match for the given
8730 pc. Update comments.
8731
8732 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
8733
8734 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8735 macro, which was part of the now removed Mach 3 port.
8736 * utils.c (request_quit): Ditto.
8737
8738 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8739
8740 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8741 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8742
8743 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8744
8745 Committed by Mark Kettenis <kettenis@gnu.org>.
8746
8747 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8748 Define.
8749
8750 2004-02-18 Andrew Cagney <cagney@redhat.com>
8751
8752 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8753 CONFIG_INSTALL and CONFIG_UNINSTALL.
8754 * configure: Re-generate.
8755 * interps.h (INTERP_TUI): Define.
8756 * Makefile.in: Update dependencies.
8757 (TUI): New macro.
8758 (tui-main.o): Specify dependencies.
8759 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8760 * tui/tui-main.c: New file.
8761
8762 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8763
8764 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8765 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8766 dependencies.
8767 * configure.host: Add x86_64-*-openbsd*.
8768 * configure.tgt: Add x86_64-*-openbsd*.
8769 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8770
8771 * tui/tui.c: Don't include <malloc.h>.
8772
8773 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8774 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8775 amd64nbsd-tdep.c.
8776
8777 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8778 static. Remove extraneous whitespace.
8779 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8780 static.
8781
8782 2004-02-17 Jim Blandy <jimb@redhat.com>
8783
8784 * findvar.c (value_from_register): Doc fix.
8785
8786 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8787
8788 Committed by Jim Blandy <jimb@redhat.com>.
8789
8790 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
8791 CORE_ADDR as type for selectors. Correct types for GNU run time
8792 message lookup function to use double indirection.
8793 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8794 * objc-lang.h (lookup_child_selector): Adapt prototype.
8795
8796 * s390-nat.c (SUBOFF): New macro.
8797 (supply_gregset, fill_gregset): Use it to handle debugging
8798 of 32-bit exectuables running under a 64-bit kernel.
8799 * s390-tdep.c: Include "solib-svr4.h".
8800 (s390_svr4_fetch_link_map_offset): New function.
8801 (s390x_svr_fetch_link_map_offset): Likewise.
8802 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8803 * Makefile.in (s390-tdep.o): Update dependencies.
8804
8805 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8806 "frame-unwind.h".
8807 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8808 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8809 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8810 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8811 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8812 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8813 S390_SIGNAL_FRAMESIZE,
8814 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8815 (struct frame_extra_info): Remove.
8816 (s390_memset_extra_info): Remove.
8817 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8818 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8819 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
8820 (is_rse): Renamed to ...
8821 (is_rsy): ... this. Support long displacements.
8822 (is_rxe): Renamed to ...
8823 (is_rxy): ... this. Support long displacements.
8824 (compute_x_addr): Support long displacements.
8825 (struct s390_prologue_data): New data type.
8826 (s390_on_stack): Change API to use struct s390_prologue_data.
8827 (s390_store): Reimplement.
8828 (s390_load): New function.
8829 (s390_get_signal_frame_info): Remove.
8830 (s390_get_frame_info): Remove, replace by ...
8831 (s390_analyze_prolog): ... this new function.
8832 (s390_check_function_end): Remove.
8833 (s390_function_start): Remove.
8834 (s390_frameless_function_invokation): Remove.
8835 (s390_is_sigreturn): Remove.
8836 (s390_init_frame_pc_first): Remove.
8837 (s390_init_frame_extra_info): Remove.
8838 (s390_frame_init_saved_regs): Remove.
8839 (s390_frame_saved_pc_nofix): Remove.
8840 (s390_frame_saved_pc): Remove.
8841 (s390_frame_chain): Remove.
8842 (s390_fp_regnum, s390_read_fp): Remove.
8843 (s390_pop_frame_regular, s390_pop_frame): Remove.
8844 (s390_saved_pc_after_call): Remove.
8845 (s390_skip_prologue): Reimplement.
8846 (s390_in_function_epilogue_p): Support long displacements.
8847 (struct s390_unwind_cache): New data structure.
8848 (s390_frame_unwind_cache): New function.
8849 (s390_prologue_frame_unwind_cache): Likewise.
8850 (s390_backchain_frame_unwind_cache): Likewise.
8851 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8852 (s390_frame_unwind): Define.
8853 (s390_frame_sniffer): New function.
8854 (struct s390_pltstub_unwind_cache): New data structure.
8855 (s390_pltstub_frame_unwind_cache): New function.
8856 (s390_pltstub_frame_this_id): Likewise.
8857 (s390_pltstub_frame_prev_register): Likewise.
8858 (s390_pltstub_frame_unwind): Define.
8859 (s390_pltstub_frame_sniffer): New function.
8860 (struct s390_sigtramp_unwind_cache): New data structure.
8861 (s390_sigtramp_frame_unwind_cache): New function.
8862 (s390_sigtramp_frame_this_id): Likewise.
8863 (s390_sigtramp_frame_prev_register): Likewise.
8864 (s390_sigtramp_frame_unwind): Define.
8865 (s390_sigtramp_frame_sniffer): New function.
8866 (s390_frame_base_address, s390_local_base_address): New functions.
8867 (s390_frame_base): Define.
8868 (s390_unwind_pc, s390_unwind_sp): New function.
8869 (s390_push_dummy_call): Use new frame base location.
8870 (s390_unwind_dummy_id): Likewise.
8871 (s390_gdbarch_init): Remove calls to:
8872 set_gdbarch_frameless_function_invocation,
8873 set_gdbarch_deprecated_init_frame_pc,
8874 set_gdbarch_deprecated_frame_chain,
8875 set_gdbarch_deprecated_frame_init_saved_regs,
8876 set_gdbarch_deprecated_pop_frame,
8877 set_gdbarch_deprecated_init_extra_frame_info,
8878 set_gdbarch_deprecated_init_frame_pc_first,
8879 set_gdbarch_deprecated_target_read_fp,
8880 set_gdbarch_deprecated_frame_saved_pc,
8881 set_gdbarch_deprecated_saved_pc_after_call,
8882 set_gdbarch_deprecated_fp_regnum.
8883 Add calls to:
8884 set_gdbarch_in_solib_call_trampoline,
8885 frame_unwind_append_sniffer,
8886 frame_base_set_default,
8887 set_gdbarch_unwind_pc,
8888 set_gdbarch_unwind_sp.
8889 * Makefile.in (s390-tdep.o): Update dependencies.
8890
8891 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8892 (S390_STACK_FRAME_OVERHEAD): Remove.
8893 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8894 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8895 (s390_promote_integer_argument): Remove.
8896 (s390_cannot_extract_struct_value_address): Remove.
8897 (s390_use_struct_convention, s390_store_struct_return): Remove.
8898 (s390_extract_return_value, s390_store_return_value): Remove.
8899 (s390_return_value_convention, s390_return_value): New functions.
8900 (is_float_singleton): Handle typedefs.
8901 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
8902 Remove, replace by ...
8903 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8904 s390_function_arg_integer): ... these new functions.
8905 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8906 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8907 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8908 Fill in tdep->abi.
8909 Remove calls to:
8910 set_gdbarch_deprecated_store_struct_return,
8911 set_gdbarch_deprecated_extract_return_value,
8912 set_gdbarch_deprecated_store_return_value,
8913 set_gdbarch_use_struct_convention,
8914 set_gdbarch_extract_struct_value_address,
8915 set_gdbarch_deprecated_pc_in_call_dummy,
8916 set_gdbarch_deprecated_push_arguments,
8917 set_gdbarch_deprecated_save_dummy_frame_tos,
8918 set_gdbarch_deprecated_push_return_address,
8919 set_gdbarch_deprecated_sizeof_call_dummy_words,
8920 set_gdbarch_deprecated_call_dummy_words,
8921 set_gdbarch_deprecated_dummy_write_sp.
8922 Add calls to:
8923 set_gdbarch_push_dummy_call,
8924 set_gdbarch_unwind_dummy_id,
8925 set_gdbarch_return_value.
8926
8927 * config/s390/nm-linux.h: Update comments.
8928 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8929 (STOPPED_BY_WATCHPOINT): Redefine.
8930 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8931 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8932 (s390_stopped_by_watchpoint): Likewise.
8933 (watch_area_cnt): Remove.
8934 * s390-nat.c: Update comments.
8935 (watch_area): Remove typedef.
8936 Global replace watch_area by struct watch_area.
8937 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8938 (s390_stopped_by_watchpoint): Remove pid argument,
8939 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8940 (s390_fix_watch_points): Remove pid argument,
8941 use s390_inferior_tid. Recompute area spanned by watchpoints.
8942 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8943 argument. Reimplement.
8944
8945 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8946 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8947 (FETCH_INFERIOR_REGISTERS): Define.
8948 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
8949 core-regset.o.
8950 * config/s390/s390x.mt: Remove.
8951 * config/s390/tm-s390.h: Remove.
8952 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8953 (TARGET_ELF64): Remove.
8954 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8955 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8956 s390*-*-* case; always set gdb_target to s390.
8957 * regformats/reg-s390.dat: Remove control registers.
8958 * regformats/reg-s390x.dat: Likewise.
8959 * s390-tdep.h: New file.
8960 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
8961 Include "inferior.h" and "s390-tdep.h".
8962 Remove private definition of offsetof.
8963 (s390_register_u_addr): Remove.
8964 (regmap_gregset, regmap_fpregset): Define.
8965 (supply_gregset, fill_gregset): Reimplement.
8966 (supply_fpregset, fill_fpregset): Likewise.
8967 (s390_inferior_tid): New function.
8968 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8969 (fetch_inferior_registers, store_inferior_registers): Likewise.
8970 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8971 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8972 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8973 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8974 (struct gdbarch_tdep): Define.
8975 (struct s390_register_info): Define.
8976 (s390_register_info): New variable.
8977 (s390_register_name): Reimplement.
8978 (s390_register_type): New function.
8979 (s390_register_raw_size, s390x_register_raw_size): Remove.
8980 (s390_cannot_fetch_register): Remove.
8981 (s390_register_byte): Remove.
8982 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8983 (s390_dwarf_regmap): New variable.
8984 (s390_dwarf_reg_to_regnum): New function.
8985 (s390_stab_reg_to_regnum): Remove.
8986 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8987 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8988 (s390_convert_register_p): Likewise.
8989 (s390_register_to_value, s390_value_to_register): Likewise.
8990 (s390_register_reggroup_p): Likewise.
8991 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8992 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8993 (s390_supply_regset, s390_regset_from_core_section): New functions.
8994 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8995 (S390_FPR_SIZE): Likewise.
8996 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8997 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8998 (S390_NUM_GPRS): Move here from tm-s390.h.
8999 (S390_NUM_FPRS): Likewise.
9000 (s390_in_function_epilogue_p): New function.
9001 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9002 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9003 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9004 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9005 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9006 Remove calls to:
9007 set_gdbarch_deprecated_max_register_raw_size,
9008 set_gdbarch_deprecated_max_register_virtual_size,
9009 set_gdbarch_deprecated_register_byte,
9010 set_gdbarch_cannot_fetch_register,
9011 set_gdbarch_cannot_store_register,
9012 set_gdbarch_deprecated_register_size,
9013 set_gdbarch_deprecated_register_raw_size,
9014 set_gdbarch_deprecated_register_virtual_size,
9015 set_gdbarch_deprecated_register_virtual_type,
9016 set_gdbarch_deprecated_register_bytes.
9017 Add calls to:
9018 set_gdbarch_num_pseudo_regs,
9019 set_gdbarch_register_type,
9020 set_gdbarch_convert_register_p,
9021 set_gdbarch_register_to_value,
9022 set_gdbarch_value_to_register,
9023 set_gdbarch_register_reggroup_p,
9024 set_gdbarch_regset_from_core_section,
9025 set_gdbarch_pseudo_register_read,
9026 set_gdbarch_pseudo_register_write,
9027 set_gdbarch_in_function_epilogue_p.
9028 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9029 (s390_tdep_h): New variable.
9030
9031 2004-02-17 Jim Blandy <jimb@redhat.com>
9032
9033 * findvar.c (value_from_register): If the type has no length, just
9034 return an acceptable value --- don't report an internal error.
9035
9036 * stabsread.c (read_type): If we find any type numbers that are
9037 forward references, complain if the references aren't resolved by
9038 the time we're finished reading.
9039 (cleanup_undefined_types): Make error message more appropriate for
9040 a complaint.
9041
9042 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9043
9044 * Makefile.in (defs_h): Remove dependency on progress_h.
9045 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
9046 progress.h.
9047 * main.c (captured_main): Delete use of START_PROGRESS and
9048 END_PROGRESS.
9049
9050 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9051
9052 * objfiles.c (terminate_minimal_symbol_table): Add back
9053 initialization of MSYMBOL_TYPE.
9054
9055 2004-02-17 David Mosberger <davidm@hpl.hp.com>
9056
9057 Committed by Andrew Cagney.
9058 * Makefile.in (ia64_tdep_h): New macro.
9059 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
9060 (ia64-tdep.o): Likewise.
9061 * ia64-tdep.h: New file.
9062 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
9063 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
9064 (ia64_aix_sigcontext_register_address): Likewise.
9065 (ia64_linux_getunwind_table): Delete declaration.
9066 * ia64-linux-tdep.c: Likewise.
9067
9068 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
9069
9070 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
9071 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
9072 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
9073
9074 2004-02-17 Andrew Cagney <cagney@redhat.com>
9075
9076 * symtab.c (skip_prologue_using_sal): New function.
9077 * symtab.h (skip_prologue_using_sal): Declare.
9078 * frv-tdep.c: Include "symtab.h".
9079 (skip_prologue_using_sal): Delete function.
9080 * mips-tdep.c (skip_prologue_using_sal): Delete function.
9081 * rs6000-tdep.c (refine_prologue_limit): Mention
9082 skip_prologue_using_sal.
9083 * ia64-tdep.c (refine_prologue_limit): Ditto.
9084 * Makefile.in: Update dependencies.
9085
9086 2004-02-16 Andrew Cagney <cagney@redhat.com>
9087
9088 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
9089 START_INFERIOR_TRAPS_EXPECTED.
9090 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
9091 START_INFERIOR_TRAPS_EXPECTED.
9092 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
9093 Delete macro.
9094 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
9095 macro, moved to "nm-osf.h". Update copyright.
9096 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
9097 update copyright.
9098
9099 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
9100 and function replacing FRAMELESS_FUNCTION_INVOCATION.
9101 * blockframe.c (legacy_frameless_look_for_prologue): Rename
9102 frameless_look_for_prologue.
9103 * frame.h (legacy_frameless_look_for_prologue): Rename
9104 frameless_look_for_prologue.
9105 * gdbarch.h, gdbarch.c: Re-generate.
9106 * sh64-tdep.c (sh64_gdbarch_init): Update.
9107 * sh-tdep.c (sh_gdbarch_init): Update.
9108 * s390-tdep.c (s390_gdbarch_init): Update.
9109 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9110 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9111 * m68k-tdep.c (m68k_gdbarch_init): Update.
9112 (delta68_frame_args_address): Update.
9113 * m32r-tdep.c (m32r_gdbarch_init): Update.
9114 * hppa-tdep.c (hppa_gdbarch_init): Update.
9115 * h8300-tdep.c (h8300_gdbarch_init): Update.
9116 * frv-tdep.c (frv_gdbarch_init): Update.
9117 (frv_frameless_function_invocation): Update.
9118 * cris-tdep.c (cris_gdbarch_init): Update.
9119 (cris_frameless_function_invocation): Update.
9120 * avr-tdep.c (avr_gdbarch_init): Update.
9121 * arm-tdep.c (arm_gdbarch_init): Update.
9122 * stack.c (frame_info): Update, call predicate.
9123 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
9124 * frame.c (legacy_get_prev_frame): Update, call predicate..
9125 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
9126 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
9127 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
9128 invocation.
9129 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9130 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9131 * vax-tdep.c (vax_gdbarch_init): Ditto.
9132
9133 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
9134 function.
9135
9136 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
9137
9138 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
9139 initializations.
9140
9141 2004-02-16 Andrew Cagney <cagney@redhat.com>
9142
9143 * tui/tui-windata.c: Include "gdb_string.h".
9144 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
9145 * tui/tui-layout.c, tui/tui-command.c: Ditto.
9146 * Makefile.in: Update dependencies.
9147
9148 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
9149
9150 * Makefile.in (infrun.o): Add $(gdb_assert_h).
9151 * infrun.c: Include "gdb_assert.h".
9152 (singlestep_ptid, saved_singlestep_ptid)
9153 (stepping_past_singlestep_breakpoint): New variables.
9154 (resume): Set singlestep_ptid. Check for singlestep thread
9155 hop.
9156 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
9157 (handle_inferior_event): Handle singlestep thread hop.
9158
9159 2004-02-16 Andrew Cagney <cagney@redhat.com>
9160
9161 * dwarf2-frame.c (dwarf2_frame_ops): New function.
9162 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
9163 (dwarf2_frame_init_reg): Ditto.
9164
9165 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
9166 suggested by Joshua Neuheisel
9167
9168 * configure.in: Always check for curses, including pdcurses.
9169 Warn, instead of error, when no curses are found. Enable TUI when
9170 curses is available.
9171 * configure: Re-generate.
9172
9173 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9174
9175 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
9176 sh_sh4_register_convert_to_virtual.
9177 (sh_register_convert_to_raw): Rename from
9178 sh_sh4_register_convert_to_raw.
9179 (sh_pseudo_register_read): Accomodate above name change.
9180 (sh_pseudo_register_write): Ditto.
9181
9182 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9183
9184 * sh-tdep.c (sh_generic_register_name): Remove.
9185 (sh_gdbarch_init): Use sh_sh_register_name in default case.
9186
9187 2004-02-15 Andrew Cagney <cagney@redhat.com>
9188
9189 * configure.in (build_warnings): Add -Wunused-function.
9190 * configure: Re-generate.
9191
9192 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9193 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9194
9195 * procfs.c (procfs_init_inferior): Assume that
9196 START_INFERIOR_TRAPS_EXPECTED is defined.
9197 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9198 * config/ns32k/tm-nbsd.h: Delete file,
9199 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9200
9201 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9202 * config/vax/tm-vax.h: Delete file.
9203
9204 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9205 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9206 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9207 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9208 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
9209 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9210 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
9211
9212 2004-02-15 Mark Kettenis <kettenis@gnu.org>
9213
9214 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9215 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9216 (struct dwarf2_frame_ops): New.
9217 (dwarf2_frame_default_init_reg): New function, based on
9218 dwarf2_frame_init_reg.
9219 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9220 (dwarf2_frame_init_reg): Call architecture-specific function.
9221 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9222 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9223 instead of dwarf2_frame_data.
9224 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9225 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9226
9227 2004-02-15 Andrew Cagney <cagney@redhat.com>
9228
9229 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9230 register_gdbarch_swap.
9231 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9232 * f-lang.c (_initialize_f_language): Update, use
9233 DEPRECATED_REGISTER_GDBARCH_SWAP.
9234 * remote.c (_initialize_remote): Ditto.
9235 * regcache.c (_initialize_regcache): Ditto.
9236 * parse.c (_initialize_parse): Ditto.
9237 * infrun.c (_initialize_infrun): Ditto.
9238 * mi/mi-main.c (_initialize_mi_main): Ditto.
9239 * gdbtypes.c (_initialize_gdbtypes): Ditto.
9240
9241 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9242 poking .cacheable directly.
9243 * symfile.c (symfile_bfd_open): Ditto.
9244
9245 * Makefile.in: Update all dependencies.
9246
9247 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9248 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9249 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9250 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9251 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
9252
9253 2004-02-14 Andrew Cagney <cagney@redhat.com>
9254
9255 * arch-utils.c (legacy_convert_register_p): Check
9256 DEPRECATED_REGISTER_CONVERTIBLE_P.
9257 * findvar.c (value_of_register): Ditto.
9258
9259 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9260 * gdbarch.h, gdbarch.c: Re-generate.
9261 * arch-utils.c (deprecated_register_convertible_not): Delete.
9262 * arch-utils.h (deprecated_register_convertible_not): Delete.
9263 * mi/mi-main.c (get_register): Update. Update copyright.
9264 * infcmd.c (default_print_registers_info): Update.
9265
9266 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9267 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9268 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
9269 * gdbarch.h, gdbarch.c: Re-generate.
9270 * frame.c (deprecated_get_next_frame_hack): Delete function.
9271 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9272 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9273 Update.
9274 * infcall.c (call_function_by_hand): Update.
9275
9276 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
9277
9278 * symfile.c (init_entry_point_info, entry_point_address): Move
9279 from here...
9280 * objfiles.c (init_entry_point_info, entry_point_address):..to
9281 here.
9282 * symfile.h (init_entry_point_info, entry_point_address): Remove
9283 prototypes.
9284 * objfiles.h (init_entry_point_info, entry_point_address):Add
9285 prototypes.
9286 * cris-tdep.c: Remove include of symfile.h. Add include of
9287 objfiles.h.
9288 * infcall.c: Ditto.
9289 * mcore-tdep.c: Ditto.
9290 * mn10300-tdep.c: Ditto.
9291 * sh64-tdep.c: Ditto.
9292 * v850-tdep.c: Ditto.
9293 * arm-tdep.c: Remove include of symfile.h.
9294 * blockframe.c: Ditto.
9295 * coffread.c: Ditto.
9296 * dbxread.c: Ditto.
9297 * dwarf2read.c: Ditto.
9298 * dwarfread.c: Ditto.
9299 * frv-tdep.c: Ditto.
9300 * ia64-tdep.c: Ditto.
9301 * mdebugread.c: Ditto.
9302 * mipsread.c: Ditto.
9303 * rs6000-tdep.c: Ditto.
9304 * s390-tdep.c: Ditto.
9305 * sh-tdep.c: Ditto.
9306 * xstormy16-tdep.c: Ditto.
9307 * gdbarch.sh: Remove include of symfile.h.
9308 * gdbarch.c: Regenerate.
9309 * solib-irix.c (enable_break): Use entry_point_address().
9310 Add comment about include file.
9311 * xcoffread.c: Add comment about include file.
9312 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9313 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9314 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9315 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9316 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9317
9318 2004-02-13 Andrew Cagney <cagney@redhat.com>
9319
9320 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9321 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9322 copyright.
9323 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9324
9325 2004-02-12 Fred Fish <fnf@redhat.com>
9326
9327 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9328 set_gdbarch_store_return_value.
9329
9330 2004-02-12 Andrew Cagney <cagney@redhat.com>
9331
9332 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9333 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9334 (interrupt_query): Ditto.
9335 (ofunc): Delete unused variable.
9336 * cris-tdep.c (cris_abi): Delete unused function.
9337 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9338 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9339 (cris_get_asr_quick_shift_steps): Ditto.
9340 (cris_skip_prologue_frameless_p): Ditto.
9341 * arm-tdep.c (arm_push_return_address): Delete unused function.
9342 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9343 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9344 * s390-tdep.c (s390_function_start): Delete unused function.
9345
9346 2004-02-12 Andrew Cagney <cagney@redhat.com>
9347
9348 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9349 gdbarch.h, gdbarch.c: Re-generate.
9350 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9351 to generic_prologue_frameless_p.
9352 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9353 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9354
9355 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
9356
9357 * mips-linux-tdep.c: Include "frame.h".
9358 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9359 (mips_linux_skip_resolver): New functions.
9360 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9361 and set_gdbarch_in_solib_call_trampoline.
9362 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9363 to after set_gdbarch_in_solib_return_trampoline. Only set the
9364 solib hooks to mips16 functions if the OS ABI is unknown.
9365 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9366 including "config/tm-linux.h".
9367 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9368 * Makefile.in (mips-linux-tdep.o): Update.
9369
9370 2004-02-11 David Carlton <carlton@kealia.com>
9371
9372 * linespec.c (decode_compound): Only look for a class symbol when
9373 considering all but the rightmost component.
9374
9375 2004-02-11 Andrew Cagney <cagney@redhat.com>
9376
9377 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9378 abi code are are separatly grouped.
9379
9380 2004-02-11 Andrew Cagney <cagney@redhat.com>
9381
9382 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9383 * gdbarch.h, gdbarch.c: Re-generate.
9384 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9385 * v850-tdep.c (v850_gdbarch_init): Update.
9386 * sh64-tdep.c (sh64_gdbarch_init): Update.
9387 * sh-tdep.c (sh_gdbarch_init): Update.
9388 * s390-tdep.c (s390_gdbarch_init): Update.
9389 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9390 * mips-tdep.c (mips_gdbarch_init): Update.
9391 * mcore-tdep.c (mcore_gdbarch_init): Update.
9392 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9393 * m32r-tdep.c (m32r_gdbarch_init): Update.
9394 * ia64-tdep.c (ia64_gdbarch_init): Update.
9395 * hppa-tdep.c (hppa_gdbarch_init): Update.
9396 * h8300-tdep.c (h8300_gdbarch_init): Update.
9397 * frv-tdep.c (frv_gdbarch_init): Update.
9398 * d10v-tdep.c (d10v_gdbarch_init): Update.
9399 * cris-tdep.c (cris_gdbarch_init): Update.
9400 * avr-tdep.c (avr_gdbarch_init): Update.
9401 * arm-tdep.c (arm_gdbarch_init): Update.
9402 * alpha-tdep.c (alpha_gdbarch_init): Update.
9403
9404 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
9405
9406 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9407 comma.
9408 (sh_sh4al_dsp_register_name): Ditto.
9409
9410 2004-02-10 Andrew Cagney <cagney@redhat.com>
9411
9412 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9413 (mips_init_frame_pc_first): Delete function.
9414 (mips_frame_saved_pc): Delete function.
9415 (mips_frame_chain): Delete function.
9416 (mips_init_extra_frame_info): Delete function.
9417 (mips_xfer_register): Delete unused variable "reg".
9418 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9419 (mips_n32n64_return_value): Delete unused variable "reg".
9420 (mips_n32n64_return_value): Delete unused variable "pos".
9421 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9422 (mips_o32_return_value): Delete unused variable "pos".
9423 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9424 (mips_print_fp_register): Delete unused variable "namelen"
9425 (mips_print_fp_register): Delete unused variable "flt2"
9426 (get_frame_pointer): Delete function.
9427 (cached_proc_desc): Delete static variable.
9428 (mips_pop_frame): Delete function.
9429 (mips_find_saved_regs): Delete function.
9430 (mips_get_saved_register): Delete function.
9431 (mips_saved_pc_after_call): Delete function.
9432 (SIGFRAME_BASE): Delete macro.
9433 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9434 (SIGFRAME_PC_OFF): Delete macro.
9435 (SIGFRAME_REGSAVE_OFF): Delete macro.
9436 (mips_dump_tdep): Do not print deleted macro definitions.
9437
9438 2004-02-10 Andrew Cagney <cagney@redhat.com>
9439
9440 * Makefile.in (SFILES): Remove explictly listed tui files.
9441 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9442
9443 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
9444
9445 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9446 to use paddr functions to format ia64 addresses and long values.
9447 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9448 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9449 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9450 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9451 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9452
9453 2004-02-10 Andrew Cagney <cagney@redhat.com>
9454
9455 * defs.h: Do not include "tui.h".
9456 * gdb_curses.h: New file.
9457 * tui/tui-hooks.h: New file.
9458 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9459 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9460 (tui_initialize_io): Delete declaration.
9461 (tui_initialize_readline: Delete redundant declaration.
9462 (struct tui_point): Delete definition.
9463 * tui/tui-data.h (struct tui_point): Define.
9464 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9465 * utils.c: Include "tui/tui.h".
9466 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9467 * printcmd.c [TUI]: Include "tui/tui.h".
9468 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9469 * tui/tui-command.c: Include "gdb_curses.h".
9470 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9471 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9472 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9473 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9474 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9475 * Makefile.in: Update all dependencies.
9476 (tui_hooks_h, gdb_curses_h): Define.
9477 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9478
9479 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
9480
9481 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9482 auxf2. Add comments about some other rarely used fields.
9483
9484 2004-02-10 Andrew Cagney <cagney@redhat.com>
9485
9486 * Makefile.in (init.c): Fix script removing duplicates. Problem
9487 reported by Peter Schauer.
9488
9489 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9490
9491 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9492 obstack_specify_allocation.
9493 * objfiles.c (allocate_objfile): Ditto.
9494 * solib-sunos.c (solib_add_common_symbols)
9495 (allocate_rt_common_objfile): Ditto.
9496 * symfile.c (reread_symbols): Ditto.
9497 * gdb_obstack.h: Add comment.
9498
9499 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9500
9501 * linespec.c (decode_line_1, locate_first_half)
9502 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9503 commented out code.
9504
9505 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
9506
9507 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9508 obstack_free.
9509
9510 2004-02-09 Andrew Cagney <cagney@redhat.com>
9511
9512 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9513 fails, try find_pc_section. Fix PR c++/1267.
9514 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9515 instead of find_pc_mapped_section.
9516 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9517 not default to the section containing PC. Fix PR symtab/1519.
9518
9519 2004-02-09 Andrew Cagney <cagney@redhat.com>
9520
9521 * Makefile.in (mips-tdep.o): Update dependencies.
9522 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9523 "trad-frame.h".
9524 (mips_unwind_pc): Return the pseudo PC register.
9525 (mips_unwind_dummy_id): New function.
9526 (mips16_fetch_instruction): New function.
9527 (mips32_fetch_instruction): New function.
9528 (struct mips_frame_cache): Define.
9529 (mips_mdebug_frame_cache): New function.
9530 (mips_mdebug_frame_this_id): New function.
9531 (mips_mdebug_frame_prev_register): New function.
9532 (mips_mdebug_frame_unwind): Define.
9533 (mips_mdebug_frame_sniffer): New function.
9534 (mips_mdebug_frame_base_address): New function.
9535 (mips_mdebug_frame_base): Define.
9536 (mips_mdebug_frame_base_sniffer): New function.
9537 (mips_gdbarch_init): Append unwind and base sniffers. Set
9538 unwind_dummy_id.
9539
9540 2004-02-08 Andrew Cagney <cagney@redhat.com>
9541
9542 * frame.c: Print both the register number and name.
9543
9544 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9545 and a sed into a single sed. Make .c and .o patterns more robust.
9546 (OBS): Delete.
9547 (INIT_FILES): Replace OBS with COMMON_OBS.
9548 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9549
9550 2004-02-08 Mark Kettenis <kettenis@gnu.org>
9551
9552 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9553 the PT_WCOOKIE request.
9554
9555 2004-02-08 Andrew Cagney <cagney@redhat.com>
9556
9557 * mips-tdep.c (mips_unwind_pc): New function.
9558 (mips_gdbarch_init): Set mips_unwind_pc.
9559
9560 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9561 (get_frame_id): Allow the UNKNOWN_FRAME.
9562 (frame_register_unwind, get_frame_type): Ditto.
9563
9564 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9565 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9566 unwind_dummy_id indicates a legacy frame.
9567
9568 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9569 * configure: Re-generate.
9570
9571 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9572 methods.
9573
9574 2004-02-08 Andrew Cagney <cagney@redhat.com>
9575
9576 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9577 makefile macro.
9578 * configure: Re-generate.
9579 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9580 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9581 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9582 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9583 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9584 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9585 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9586 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9587 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9588 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9589
9590 2004-02-07 Andrew Cagney <cagney@redhat.com>
9591
9592 * Makefile.in: Update all dependencies.
9593
9594 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9595 * configure: Re-generate.
9596 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9597 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9598 (COMMON_OBS): Add "main.o" and "annotate.o".
9599 (ANNOTATE_OBS): Delete.
9600 (OBS): Remove ANNOTATE_OBS.
9601 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9602 CONFIG_INITS.
9603 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9604 against CONFIG_OBS and "main.o".
9605 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9606 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9607
9608 * tui/tui-command.c: Include "gdb_string.h", delete register
9609 attribute, use ISO-C function signatures.
9610 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9611 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9612 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9613 * tui/tui.c: Ditto.
9614
9615 * tui/tui-command.c: Change variable and function names to lower
9616 case.
9617 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9618 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9619 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9620 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9621 * tui/tui-winsource.c, tui/tui.c: Ditto.
9622
9623 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9624
9625 * buildsym.c (free_pending_blocks, finish_block)
9626 (record_pending_block, make_blockvector, end_symtab): Replace
9627 symbol_obstack with objfile_obstack.
9628 * coffread.c (process_coff_symbol, coff_read_struct_type)
9629 (coff_read_enum_type): Ditto.
9630 * cp-namespace.c (initialize_namespace_symtab)
9631 (check_one_possible_namespace_symbol): Ditto.
9632 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
9633 (dwarf2_symbol_mark_computed): Ditto.
9634 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9635 * elfread.c (elf_symtab_read): Ditto.
9636 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9637 (hpread_read_enum_type, hpread_read_function_type)
9638 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9639 Ditto.
9640 * jv-lang.c (get_java_class_symtab, add_class_symbol)
9641 (java_link_class_type): Ditto.
9642 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
9643 (new_symbol): Ditto.
9644 * minsyms.c (install_minimal_symbols): Ditto.
9645 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9646 (terminate_minimal_symbol_table): Replace symbol_obstack with
9647 objfile_obstack.
9648 (free_objfile): Remove freeing of symbol_obstack.
9649 * objfiles.h: Remove symbol_obstack field.
9650 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9651 objfile_obstack.
9652 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9653 symbol_obstack.
9654 (solib_add_common_symbols): Replace symbol_obstack with
9655 objfile_obstack.
9656 * somsolib.c (som_solib_add): Ditto.
9657 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9658 (common_block_start, common_block_end): Ditto.
9659 * symfile.c (reread_symbols): Remove freeing and init of
9660 symbol_obstack.
9661 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9662 * symfile.h: Update comment.
9663 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9664 stats printing.
9665 * symtab.c (symbol_set_names): Replace symbol_obstack with
9666 objfile_obstack.
9667 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9668 Update comments.
9669 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9670 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9671 objfile_obstack.
9672
9673 2004-02-07 Andrew Cagney <cagney@redhat.com>
9674
9675 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9676 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9677 fields and variables.
9678 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9679 (m_beInvisible): Delete macro.
9680 * tui/tui-data.h: Fix case case fields and variables.
9681 (m_genWinPtrIsNull): Delete macro.
9682 (tui_win_list): Rename winList.
9683 (TUI_SRC_WIN): Rename srcWin.
9684 (TUI_DISASM_WIN): Rename disassemWin.
9685 (TUI_DATA_WIN): Rename dataWin.
9686 (TUI_CMD_WIN): Rename cmdWin.
9687 (m_genWinPtrNotNull): Delete macro.
9688 (m_winPtrIsNull): Delete macro.
9689 (m_winPtrNotNull): Delete macro.
9690 (tui_win_is_source_type): Replace m_winIsSourceType
9691 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9692 (tui_win_has_locator): Replace m_hasLocator.
9693 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9694 m_setWinHighlightOff.
9695 * tui/tui-data.c: Update references.
9696 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9697 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9698 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9699 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9700 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9701 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9702 * tui/tui-winsource.c, tui/tui.c: Ditto.
9703
9704 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9705
9706 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9707 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9708 StackGhost.
9709
9710 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9711 variable `i6' to `i7'.
9712 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9713
9714 2004-02-07 Andrew Cagney <cagney@redhat.com>
9715
9716 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9717 (TuiPoint, TuiPointPtr): Ditto.
9718 (TuiStatus, TuiStatusPtr): Ditto.
9719 (TuiWinType, TuiWinTypePtr): Ditto.
9720 (struct tui_point): Rename _TuiPoint.
9721 (tui_get_low_disassembly_address): Rename
9722 tuiGetLowDisassemblyAddress.
9723 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9724 (tuiFree): Delete declaration.
9725 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9726 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9727 * tui/tui.c (tuiFree): Delete function.
9728 * cli/cli-cmds.c (disassemble_command): Update references.
9729 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9730 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9731 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9732 * tui/tui-winsource.c: Ditto.
9733
9734 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9735
9736 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9737 coffstab_build_psymtabs, elfstab_build_psymtabs)
9738 (stabsect_build_psymtabs): Replace psymbol_obstack with
9739 objfile_obstack.
9740 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9741 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9742 Ditto.
9743 * dwarfread.c (scan_compilation_units): Ditto.
9744 * elfread.c (elfstab_offset_sections): Ditto.
9745 * hppa-tdep.c (read_unwind_info): Ditto.
9746 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9747 (hpread_end_psymtab): Ditto.
9748 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9749 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9750 Ditto.
9751 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
9752 * objfiles.c (add_to_objfile_sections)
9753 (build_objfile_section_table): Ditto.
9754 (allocate_objfile): Remove init of psymbol_obstack.
9755 (free_objfile): Remove freeing of psymbol_obstack.
9756 * objfiles.h (struct objfile): Remove field
9757 psymbol_obstack. Update comments.
9758 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9759 psymbol_obstack with objfile_obstack.
9760 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9761 psymbol_obstack.
9762 * somread.c (som_symfile_offsets, init_import_symbols)
9763 (init_export_symbols): Replace psymbol_obstack with
9764 objfile_obstack.
9765 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9766 * symfile.c (default_symfile_offsets, syms_from_objfile)
9767 (reread_symbols): Remove freeing and init of psymbol_obstack.
9768 (cashier_psymtab): Update comment.
9769 * symmisc.c (print_objfile_statistics): Don't report stats for
9770 psymbol obstack.
9771 * symtab.h (struct general_symbol_info, struct partial_symtab):
9772 Update comments.
9773 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9774 (xcoff_symfile_offsets): Replace psymbol_obstack with
9775 objfile_obstack.
9776
9777 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9778
9779 * objfiles.h (struct objfile): Add objfile_obstack field.
9780 Remove type_obstack field.
9781
9782 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9783 read_structure_scope read_enumeration, new_symbol): Replace
9784 type_obstack with objfile_obstack.
9785 * dwarfread.c (struct_type, enum_type): Ditto.
9786 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
9787 (lookup_fundamental_type): Ditto.
9788 * gdbtypes.h (TYPE_ALLOC): Ditto.
9789 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9790 (hpread_read_doc_function_type, hpread_read_struct_type)
9791 (fix_static_member_physnames, hpread_read_array_type)
9792 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
9793 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
9794 (java_link_class_type): Ditto.
9795 * mdebugread.c (parse_type): Ditto.
9796 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9797 * solib-sunos.c (solib_add_common_symbols): Ditto.
9798 * stabsread.c (define_symbol, read_type, read_member_functions,
9799 read_cpp_abbrev, read_one_struct_field): Ditto.
9800 * symfile.c (reread_symbols): Ditto.
9801 * symmisc.c (print_objfile_statistics): Ditto.
9802
9803 2004-02-07 Andrew Cagney <cagney@redhat.com>
9804
9805 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9806 (tui_exec_info_content): Rename TuiExecInfoContent.
9807 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9808 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9809 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9810 (TuiList, TuiListPtr): Ditto.
9811 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9812 (TuiDataType, TuiDataTypePtr): Ditto.
9813 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9814 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9815 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9816 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9817 (TuiDataElement, TuiDataElementPtr): Ditto.
9818 (TuiWinElement, TuiWinElementPtr): Ditto.
9819 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9820 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9821 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9822 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9823 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9824 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9825 * tui/tui-command.c, tui/tui-data.c: Update references.
9826 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9827 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9828 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9829 * tui/tui-winsource.c, tui/tui.c: Ditto.
9830
9831 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9832
9833 * dwarf2-frame.h: Update copyright.
9834 (enum dwarf2_frame_reg_rule): New.
9835 (struct dwarf2_frame_state_reg): New.
9836 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9837 * dwarf2-frame.c: Update copyright.
9838 (enum dwarf2_reg_rule): Remove.
9839 (struct dwarf2_frame_state): Remove defenition of `struct
9840 dwarf2_frame_state_reg'.
9841 (read_reg): Call get_frame_arch to get the architecture instead of
9842 using CURRENT_GDBARCH.
9843 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9844 DWARF2_FRAME_.
9845 (dwarf2_frame_init_reg): New function.
9846 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9847 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9848 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9849 tags with DWARF2_FRAME_.
9850 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9851 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9852 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9853
9854 2004-02-06 Andrew Cagney <cagney@redhat.com>
9855
9856 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9857 (enum tui_data_type): Rename _TuiDataType.
9858 (struct tui_layout_def): Rename _TuiLayoutDef.
9859 (struct tui_source_element): Rename _TuiSourceElement.
9860 (struct tui_data_element): Rename _TuiDataElement.
9861 (struct tui_command_element): Rename _TuiCommandElement.
9862 (struct tui_locator_element): Rename _TuiLocatorElement.
9863 (union tui_which_element): Define.
9864 (struct tui_win_element): Rename _TuiWinElement.
9865 (struct tui_data_info): Rename _TuiDataInfo.
9866 (struct tui_source_info): Rename _TuiSourceInfo.
9867 (struct tui_command_info): Rename _TuiCommandInfo.
9868 (tui_initialize_static_data): Rename initializeStaticData.
9869 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9870 (tui_alloc_win_info): Rename allocWinInfo.
9871 (tui_init_generic_part): Rename initGenericPart.
9872 (tui_init_win_info): Rename initWinInfo.
9873 (tui_alloc_content): Rename allocContent.
9874 (tui_add_content_elements): Rename addContentElements.
9875 (tui_init_content_element): Rename initContentElement.
9876 (tui_free_window): Rename freeWindow.
9877 (tui_free_win_content): Rename freeWinContent.
9878 (tui_free_data_content): Rename freeDataContent.
9879 (tui_free_all_source_wins_content): Rename
9880 freeAllSourceWinsContent.
9881 (tui_del_window): Rename tuiDelWindow.
9882 (tui_del_data_windows): Rename tuiDelDataWindows.
9883 (tui_partial_win_by_name): Rename partialWinByName.
9884 (tui_win_name): Rename winName.
9885 (tui_current_layout): Rename currentLayout.
9886 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9887 (tui_term_height): Rename termHeight.
9888 (tui_set_term_height_to): Rename setTermHeightTo.
9889 (tui_term_width): Rename termWidth.
9890 (tui_set_term_width_to): Rename setTermWidthTo.
9891 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9892 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9893 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9894 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9895 (tui_source_windows): Rename sourceWindows.
9896 (tui_clear_source_windows): Rename clearSourceWindows.
9897 (tui_clear_source_windows_detail): Rename
9898 clearSourceWindowsDetail.
9899 (tui_clear_win_detail): Rename clearWinDetail.
9900 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9901 (tui_default_tab_len): Rename tuiDefaultTabLen.
9902 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9903 (tui_win_with_focus): Rename tuiWinWithFocus.
9904 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9905 (tui_layout_def): Rename tuiLayoutDef.
9906 (tui_win_resized): Rename tuiWinResized.
9907 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9908 (tui_next_win): Rename tuiNextWin.
9909 (tui_prev_win): Rename tuiPrevWin.
9910 (tui_add_to_source_windows): Rename addToSourceWindows.
9911 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9912 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9913 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9914 * tui/tui.c, tui/tui-data.c: Ditto.
9915 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9916 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9917
9918 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9919 (struct symtab): Declare.
9920 (tui_set_source_content): Rename tuiSetSourceContent.
9921 (tui_show_symtab_source): Rename tuiShowSource.
9922 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9923 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9924 * tui/tui-source.c: Update copyright. Update references.
9925 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9926 * tui/tui-stack.c: Update references.
9927
9928 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9929 (struct tui_win_info): Declare.
9930 (tui_scroll_forward): Rename tuiScrollForward.
9931 (tui_scroll_backward): Rename tuiScrollBackward.
9932 (tui_scroll_left): Rename tuiScrollLeft.
9933 (tui_scroll_right): Rename tuiScrollRight.
9934 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9935 (tui_resize_all): Rename tuiResizeAll.
9936 (tui_refresh_all_win): Rename tuiRefreshAll.
9937 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9938 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9939 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9940 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9941
9942 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9943 (tui_erase_data_content): Rename tuiEraseDataContent.
9944 (tui_display_all_data): Rename tuiDisplayAllData.
9945 (tui_check_data_values): Rename tuiCheckDataValues.
9946 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9947 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9948 (tui_first_data_element_no_in_line): Rename
9949 tuiFirstDataElementNoInLine.
9950 (tui_delete_data_content_windows): Rename
9951 tuiDeleteDataContentWindows.
9952 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9953 (tui_display_data_from): Rename tuiDisplayDataFrom.
9954 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9955 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9956 * tui/tui-win.c, tui/tui-regs.c: Update references.
9957 * tui/tui-layout.c, tui/tui.c: Update references.
9958
9959 * tui/tui-wingeneral.h: Update copyright.
9960 (m_allBeVisible): Delete macro.
9961 (m_allBeInvisible): Delete macro.
9962 (struct tui_gen_win_info): Declare.
9963 (struct tui_win_info): Declare.
9964 (tui_unhighlight_win): Rename unhighlightWin.
9965 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9966 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9967 (tui_make_window): Rename makeWindow.
9968 (tui_copy_win): Rename copyWin.
9969 (tui_box_win): Rename boxWin.
9970 (tui_highlight_win): Rename highlightWin.
9971 (tui_check_and_display_highlight_if_needed): Rename
9972 checkAndDisplayHighlightIfNeeded.
9973 (tui_refresh_all): Rename refreshAll.
9974 (tui_delete_win): Rename tuiDelwin.
9975 (tui_refresh_win): Rename tuiRefreshWin.
9976 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9977 (tui_make_visible, tui_make_invisible): New functions.
9978 (tui_make_all_visible, tui_make_all_invisible): New functions.
9979 (make_all_visible): Rename makeAllVisible.
9980 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9981 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9982 * tui/tui-windata.c, tui/tui-win.c: Update references.
9983 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9984 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9985
9986 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9987
9988 * proc-api.c (write_with_trace): Initialize local variable to
9989 silence compiler warning.
9990
9991 2004-02-06 Andrew Cagney <cagney@redhat.com>
9992
9993 * tui/tui-source.h: Do not include "defs.h".
9994 (struct tui_win_info): Declare.
9995 (tui_set_source_content_nil): Declare.
9996 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9997 (union tui_line_or_address): Rename _TuiLineOrAddress.
9998 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9999 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10000 (tui_update_source_window_as_is): Rename
10001 tuiUpdateSourceWindowAsIs.
10002 (tui_update_source_windows_with_addr): Rename
10003 tuiUpdateSourceWindowsWithAddr.
10004 (tui_update_source_windows_with_line): Rename
10005 tuiUpdateSourceWindowsWithLine.
10006 (tui_clear_source_content): Rename tuiClearSourceContent.
10007 (tui_erase_source_content): Rename tuiEraseSourceContent.
10008 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10009 (tui_show_source_content): Rename tuiShowSourceContent.
10010 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10011 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10012 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10013 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10014 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10015 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10016 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10017 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10018 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10019 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10020 (struct tui_win_info): Declare.
10021 * tui/tui-stack.c: Update references.
10022 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10023 * tui/tui-win.c, tui/tui-source.c: Ditto.
10024 * tui/tui.c, tui/tui-disasm.c: Ditto.
10025
10026 2004-02-06 Mark Kettenis <kettenis@gnu.org>
10027
10028 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10029 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10030
10031 2004-02-05 Mark Kettenis <kettenis@gnu.org>
10032
10033 * infrun.c (handle_inferior_event): Allow for breakpoint
10034 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10035 and SIGEMT. Update comments.
10036 * NEWS (Revised SPARC target): Mention support for non-executable
10037 stack.
10038
10039 2004-02-04 Mark Kettenis <kettenis@gnu.org>
10040
10041 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10042 * inftarg.c: Update copyright year.
10043 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10044 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10045 (sparc_xfer_wcookie): New function.
10046 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10047 * Makefile.in (sparc-nat.o): Update dependencies.
10048 * config/sparc/nm-nbsd.h: Include "target.h".
10049 (NATIVE_XFER_WCOOKIE): New define.
10050 (sparc_xfer_wcookie): New prototype.
10051
10052 2004-02-04 Andrew Cagney <cagney@redhat.com>
10053
10054 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
10055 SYSCALL_TRAP function.
10056 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
10057
10058 2004-02-04 Andrew Cagney <cagney@redhat.com>
10059 Daniel Jacobowitz <drow@mvista.com>
10060
10061 * objfiles.h: Delete comments refering to inside_entry_func and
10062 DEPRECATED_FRAME_CHAIN_VALID.
10063 * defs.h (inside_entry_func): Update prototype..
10064 * blockframe.c (inside_entry_func): Rename to
10065 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
10066 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
10067
10068 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
10069
10070 * breakpoint.c (struct captured_parse_breakpoint_args): Move
10071 outside of #ifdef SOLIB_ADD region.
10072 (do_restore_lang_radix_cleanup): Ditto.
10073 (resolve_pending_breakpoint): Ditto.
10074
10075 2004-02-03 Andrew Cagney <cagney@redhat.com>
10076
10077 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
10078 (process_note_abi_tag_sections): Delete unused function.
10079 (ia64_read_fp): Delete unused function.
10080 (gdbarch_extract_struct_value_address): Delete declaration.
10081
10082 2004-02-02 Andrew Cagney <cagney@redhat.com>
10083
10084 * vax-tdep.c (vax_frame_chain): Delete call to
10085 deprecated_inside_entry_file.
10086 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
10087
10088 2004-02-02 Mark Kettenis <kettenis@gnu.org>
10089
10090 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
10091 column that's "empty" or "same value" when eliminating REG_RA
10092 rules.
10093
10094 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10095
10096 * NEWS: Add information about new pending breakpoint support.
10097
10098 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10099
10100 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
10101 and pending fields for pending breakpoint support.
10102 * breakpoint.c (breakpoint_enabled): Add check for not pending.
10103 (condition_command): Only parse condition if not a pending
10104 breakpoint.
10105 (print_one_breakpoint): Add support for pending breakpoints.
10106 (describe_other_breakpoints): Add checks to verify we are not
10107 dealing with pending breakpoints.
10108 (check_duplicates): Don't check pending breakpoints.
10109 (set_raw_breakpoint): Initialize pending flag.
10110 (do_restore_lang_radix_cleanup): New cleanup routine.
10111 (resolve_pending_breakpoint): New function.
10112 (re_enable_breakpoints_in_shlibs): Try and resolve any
10113 pending breakpoints via resolve_pending_breakpoint.
10114 (mention): Add pending breakpoint support.
10115 (parse_breakpoint_sals): Add new parameter to pass to
10116 decode_line_1 to indicate silent errors when files or functions
10117 are not found. Change all callers.
10118 (do_captured_parse_breakpoint): New function.
10119 (break_command_1): Change prototype to return an rc value and to
10120 take an optional pending breakpoint pointer. Support creating
10121 a pending breakpoint if a "not found" form of error occurs when
10122 parsing the breakpoint. Also support resolving an existing pending
10123 breakpoint and be silent if the resolution fails.
10124 (create_breakpoints): Change prototype to take pending breakpoint
10125 pointer. When resolving a pending breakpoint, use the new pointer
10126 to provide a conditional or commands added by the end-user.
10127 (delete_breakpoint): Add appropriate check for pending.
10128 (breakpoint_re_set_one): Ditto.
10129 (do_enable_breakpoint): Ditto.
10130
10131 2004-02-02 David Carlton <carlton@kealia.com>
10132
10133 * valops.c (enum oload_classification): New.
10134 (find_overload_match): Break implementation into separate
10135 functions; delete #if 0'd code; look for symbols within
10136 namespaces.
10137 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
10138 (find_oload_champ,oload_method_static,classify_oload_match): New.
10139 * cp-support.h: Add declaration for cp_func_name; update
10140 declaration for make_symbol_overload_list.
10141 * cp-support.c (cp_func_name): New.
10142 (overload_list_add_symbol): Fix comment, use
10143 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
10144 (make_symbol_overload_list): Take a function name and a namespace
10145 instead of a symbol; change implementation.
10146 (make_symbol_overload_list_using): New.
10147 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
10148
10149 2004-02-02 Fred Fish <fnf@redhat.com>
10150
10151 * main.c (gdb_stdtarg): Move definition to group with other
10152 gdb_stdtarg definitions and update copyright years.
10153 * remote-sim.c (gdb_os_write_stderr): Write output to
10154 gdb_stdtargerr stream instead of gdb_stdtarg stream.
10155 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
10156 gdb_stderr stream and update copyright years.
10157
10158 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10159
10160 * Makefile.in (mips-linux-nat.o): Update dependencies.
10161 * mips-linux-nat.c: Include mips-tdep.h.
10162
10163 2004-02-01 Roland McGrath <roland@redhat.com>
10164
10165 * sol-thread.c (sol_thread_xfer_partial): New function.
10166 (init_sol_thread_ops): Use that for to_xfer_partial hook.
10167 (init_sol_core_ops): Likewise.
10168
10169 * procfs.c (procfs_xfer_partial): New function.
10170 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
10171 * Makefile.in (procfs.o): Add $(auxv_h) dep.
10172
10173 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
10174 procfs_xfer_auxv function.
10175
10176 * procfs.c (procfs_make_note_section): If we can read
10177 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
10178 * linux-proc.c (linux_make_note_section): Likewise.
10179
10180 * auxv.h: New file.
10181 * auxv.c: New file.
10182 * Makefile.in (auxv_h): New variable.
10183 (COMMON_OBS): Add auxv.o here.
10184 (auxv.o): New target.
10185
10186 * corelow.c (core_xfer_partial): New function.
10187 (init_core_ops): Use it for core_ops.to_xfer_partial.
10188
10189 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10190 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10191 macro if that is defined.
10192
10193 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10194
10195 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10196 and check the specified thread for each breakpoint.
10197 * breakpoint.h (bpstat_stop_status): Update prototype.
10198 * infrun.c (handle_inferior_event): Update calls to
10199 bpstat_stop_status.
10200
10201 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10202
10203 * Makefile.in (cli-cmds.o): Add $(readline_h).
10204
10205 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10206
10207 * cli/cli-cmds.c: Include readline.h.
10208 (complete_command): Pass the start of the last word to
10209 complete_line.
10210
10211 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10212
10213 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10214 argument, and change first argument to a CORE_ADDR.
10215 * breakpoint.h (bpstat_stop_status): Update prototype.
10216 * infrun.c (adjust_pc_after_break): Add a new comment.
10217 (handle_inferior_event): Update calls to bpstat_stop_status.
10218
10219 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10220
10221 * breakpoint.h: Update copyright years.
10222
10223 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10224
10225 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10226 (bpstat_stop_status): Don't decrement PC.
10227 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10228 prototype.
10229 * infrun.c (adjust_pc_after_break): New function.
10230 (handle_inferior_event): Call it, early. Remove later references
10231 to DECR_PC_AFTER_BREAK.
10232 (normal_stop): Add commentary.
10233
10234 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10235
10236 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10237 2004-01-27 double-free fix.
10238
10239 2004-01-31 Mark Kettenis <kettenis@gnu.org>
10240
10241 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10242 (sparc32_frame_prev_register): Handle StackGhost.
10243 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10244
10245 2004-01-29 Roland McGrath <roland@redhat.com>
10246
10247 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10248 * configure: Regenerated.
10249
10250 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10251 * Makefile.in (procfs.o): Add dep.
10252
10253 2004-01-28 Andrew Cagney <cagney@redhat.com>
10254
10255 * tui/tui-stack.h: Update copyright.
10256 (struct frame_info): Add opaque declaration.
10257 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10258 (tui_show_locator_content): Rename tuiShowLocatorContent.
10259 (tui_show_frame_info): Rename tuiShowFrameInfo.
10260 * tui/tui-stack.c: Update copyright. Update references.
10261 * tui/tui-winsource.c: Update references.
10262 * tui/tui-win.c: Update references.
10263 * tui/tui-layout.c: Update references.
10264 * tui/tui-hooks.c: Update copyright, update references.
10265 * tui/tui.c: Update copyright, update references.
10266 * tui/tui-disasm.c: Update references.
10267
10268 2004-01-28 David Carlton <carlton@kealia.com>
10269
10270 * dwarf2read.c (add_partial_structure): Use demangled name if
10271 namespace equals "".
10272
10273 2004-01-27 Jim Blandy <jimb@redhat.com>
10274
10275 Clean up misapplied patch:
10276 * dwarf2read.c (determine_prefix): Change one of the two forward
10277 declarations for 'determine_prefix_aux' to a declaration for this.
10278 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10279 argument to 'die_specification'.
10280
10281 * dwarf2read.c (read_func_scope): Re-indent comment.
10282
10283 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
10284
10285 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10286 b->exp to NULL after freeing so that error during re-parsing or
10287 evaluation of expressions associated with breakpoint don't
10288 eventually lead to re-freeing of storage.
10289 Committed by Andrew Cagney.
10290
10291 2004-01-27 Andrew Cagney <cagney@redhat.com>
10292
10293 * source.c (ambiguous_line_spec): Delete undefined declaration.
10294 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10295 (m32r_set_server_address, m32r_set_download_path): Ditto.
10296 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10297
10298 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
10299
10300 * dwarf2read.c: Update calls to changed and renamed functions, and
10301 references to moved variables.
10302
10303 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10304 language, language_defn, list_in_scope, and ftypes members.
10305 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10306 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10307 (baseaddr): Remove globals.
10308
10309 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10310 (set_cu_language, die_is_declaration, die_specification)
10311 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10312 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10313 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10314 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10315
10316 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10317 cu.list_in_scope. Don't initialize cu_header_offset.
10318 (add_partial_symbol): Add local baseaddr.
10319 (psymtab_to_symtab_1): Add local baseaddr. Use
10320 objfile->section_offsets for consistency. Don't initialize
10321 cu_header_offset; do initialize cu.header.offset and
10322 cu.list_in_scope.
10323 (read_file_scope, read_func_scope, read_lexical_block_scope)
10324 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10325
10326 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10327
10328 * PROBLEMS: Add gdb/1516.
10329
10330 2003-12-29 Robert Millan <robertmh@gnu.org>
10331
10332 Patch committed by Andrw Cagney.
10333 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10334 * configure.tgt: Match knetbsd*-gnu.
10335
10336 2004-01-26 Andrew Cagney <cagney@redhat.com>
10337
10338 * breakpoint.c (catch_command_1): Delete #ifdef code.
10339 (catch_fork_command_1): Delete #ifdef wrapper.
10340 (catch_exec_command_1): Ditto.
10341 (catch_load_command_1): Ditto.
10342 (catch_unload_command_1): Ditto.
10343
10344 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10345 (catch_breakpoint): Delete #if0ed function.
10346 (disable_catch_breakpoint): Ditto.
10347 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10348 (disable_catch, enable_catch, delete_catch): Ditto.
10349
10350 2004-01-26 Andrew Cagney <cagney@redhat.com>
10351
10352 * remote.c (echo_check, quit_flag): Delete variables.
10353 (cisco_kernel_mode): Delete variable.
10354 (minitelnet_return, tty_input, escape_count): Delete variables.
10355 (remote_cisco_mode): Delete variable.
10356 (remote_cisco_open, remote_cisco_close): Delete function.
10357 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10358 (init_remote_cisco_ops): Delete function.
10359 (_initialize_remote): Do not install "remote cisco" code.
10360 (read_frame): Delete cisco specific code.
10361 (remote_info_process): Delete function.
10362 (remote_wait): Delete cisco specific code.
10363 (remote_cisco_section_offsets): Delete function.
10364 (remote_cisco_objfile_relocate): Delete function.
10365 (remote_async_wait): Delete cisco specific code.
10366 (minitelnet, readtty, readsocket): Delete function.
10367
10368 2004-01-26 Andrew Cagney <cagney@redhat.com>
10369
10370 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10371 comments mentioning extract_returned_value_address.
10372 * infcmd.c (print_return_value): Update. Add comments on
10373 extract_returned_value_address.
10374 * stack.c (return_command): Add comments on
10375 extract_returned_value_address.
10376 * values.c: Update comment.
10377 * m32r-tdep.c: Update comment.
10378 * sparc-tdep.c: Update comment.
10379 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10380 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10381 * sh64-tdep.c (sh64_gdbarch_init): Update.
10382 * sh-tdep.c (sh_gdbarch_init): Update.
10383 * s390-tdep.c (s390_gdbarch_init): Update.
10384 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10385 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10386 * m68k-tdep.c (m68k_gdbarch_init): Update.
10387 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10388 * m32r-tdep.c (m32r_gdbarch_init): Update.
10389 * ia64-tdep.c (ia64_gdbarch_init): Update.
10390 * h8300-tdep.c (h8300_gdbarch_init): Update.
10391 * frv-tdep.c (frv_gdbarch_init): Update.
10392 * arm-tdep.c (arm_gdbarch_init): Update.
10393 * alpha-tdep.c (alpha_gdbarch_init): Update.
10394
10395 2004-01-26 Andrew Cagney <cagney@redhat.com>
10396
10397 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10398 SYMBOL_LOCATION_FUNCS
10399 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10400 "struct symbol_ops".
10401 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10402 type to "struct symbol_ops".
10403 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10404 (struct symbol): Replace ".aux_value.loc.funcs" and
10405 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10406 (SYMBOL_OBJFILE): Delete macro.
10407 (SYMBOL_LOCATION_FUNCS): Delete macro.
10408 (SYMBOL_LOCATION_BATON): Update.
10409 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10410 intead of SYMBOL_LOCATION_FUNCS.
10411 * ax-gdb.c (gen_var_ref): Ditto.
10412 * printcmd.c (address_info): Ditto.
10413 * findvar.c (read_var_value): Ditto.
10414 (symbol_read_needs_frame): Ditto.
10415
10416 2004-01-26 Andrew Cagney <cagney@redhat.com>
10417
10418 * dwarf2read.c (read_func_scope): Document frame-base hack.
10419
10420 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10421
10422 * infcmd.c (print_return_value): Plug memory leak; delete
10423 ui_stream object. Rename argument `structure_return' to
10424 `struct_return'.
10425
10426 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10427
10428 * infcmd.c (print_return_value): Wrap long lines.
10429 (finish_command_continuation, finish_command): Remove unused
10430 variable `funcaddr'. Fix some coding-standards problems.
10431
10432 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
10433 SECT_SIZE is large enough, not whether it's exactly the right size.
10434 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10435 TDEP->fpregset to zero.
10436
10437 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
10438 floating-point registers for traditional NetBSD core files.
10439 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10440 TDEP->sizeof_fpregset here.
10441
10442 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10443
10444 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10445 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10446 function with code split out from
10447 sparc32nbsd_sigcontext_frame_cache.
10448 (sparc32nbsd_sigcontext_frame_cache): Use
10449 sparc32nbsd_sigcontext_saved_regs.
10450 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10451 OpenBSD.
10452 * sparcobsd-tdep.c: New file.
10453 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10454 (sparcobsd-tdep.o): New dependency.
10455 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10456 * config/sparc/obsd.mt: New file.
10457
10458 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10459 TDEP->fpregset to be initialized to enable core file register
10460 sets.
10461
10462 2004-01-24 Mark Kettenis <kettenis@gnu.org>
10463
10464 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
10465 Add opaque declarations.
10466 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10467 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10468 function with code split out from
10469 sparc64nbsd_sigcontext_frame_cache.
10470 (sparc64nbsd_sigcontext_frame_cache): Use
10471 sparc64nbsd_sigcontext_saved_regs.
10472 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10473 OpenBSD.
10474 * sparc64obsd-tdep.c: New file.
10475 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10476 (sparc64obsd-tdep.o): New dependency.
10477 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10478 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10479 * config/sparc/obsd64.mt: New file.
10480
10481 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10482 read the instruction at PC.
10483
10484 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10485 value of GDB_OSABI_DEFAULT.
10486 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10487 instead of GDB_OSABI_NETBSD_AOUT.
10488
10489 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
10490
10491 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10492 copyright.
10493
10494 2004-01-23 Andrew Cagney <cagney@redhat.com>
10495
10496 * printcmd.c (display_command): Replace tui_set_display call with
10497 tui_set_layout_for_display_command.
10498 * tui/tui.h (enum tui_win_type): Define.
10499 (tui_set_layout): Delete declaration.
10500 (tui_set_layout_for_display_command): Rename set_tui_layout.
10501 * tui/tui-data.h (enum tui_layout_type): Define.
10502 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10503 "tui.h".
10504 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10505 (tui_default_win_height): Rename tuiDefaultWinHeight.
10506 (tui_default_win_viewport_height): Rename
10507 tuiDefaultWinViewportHeight.
10508 (tui_set_layout): RenametuiSetLayout.
10509 * tui/tui-layout.c: Update references.
10510 * tui/tui.c: Update references.
10511 * tui/tui-disasm.c: Update references.
10512
10513 2004-01-23 David Carlton <carlton@kealia.com>
10514
10515 Partial workaround for PR c++/1511:
10516 * cp-namespace.c: Include frame.h.
10517 (cp_lookup_transparent_type): New
10518 (cp_lookup_transparent_type_loop): New.
10519 * cp-support.h: Declare cp_lookup_transparent_type.
10520 * symtab.c (basic_lookup_transparent_type): Renamed from
10521 lookup_transparent_type.
10522 (lookup_transparent_type): Replace old body by a call to
10523 current_language->la_lookup_transparent_type.
10524 * symtab.h: Update copyright. Declare
10525 basic_lookup_transparent_type.
10526 * language.h: Update copyright.
10527 (struct language_defn): Add la_lookup_transparent_type.
10528 * language.c: Update copyright.
10529 (unknown_language_defn): Add basic_lookup_transparent_type.
10530 (auto_language_defn): Add basic_lookup_transparent_type.
10531 (local_language_defn): Add basic_lookup_transparent_type.
10532 * ada-lang.c: Update copyright.
10533 (ada_language_defn): Add basic_lookup_transparent_type.
10534 * c-lang.c: Update copyright.
10535 (c_language_defn): Add basic_lookup_transparent_type.
10536 (cplus_language_defn): Add basic_lookup_transparent_type.
10537 (asm_language_defn): Add basic_lookup_transparent_type.
10538 (minimal_language_defn): Add basic_lookup_transparent_type.
10539 * f-lang.c: Update copyright.
10540 (f_language_defn): Add basic_lookup_transparent_type.
10541 * jv-lang.c: Update copyright.
10542 (java_language_defn): Add basic_lookup_transparent_type.
10543 * m2-lang.c: Update copyright.
10544 (m2_language_defn): Add basic_lookup_transparent_type.
10545 * objc-lang.c: Update copyright.
10546 (objc_language_defn): Add basic_lookup_transparent_type.
10547 * p-lang.c: Update copyright.
10548 (p_language_defn): Add basic_lookup_transparent_type.
10549 * scm-lang.c: Update copyright.
10550 (scm_language_defn): Add basic_lookup_transparent_type.
10551 * Makefile.in (cp-namespace.o): Depend on frame.h.
10552
10553 2004-01-23 David Carlton <carlton@kealia.com>
10554
10555 Patch for PR c++/1520:
10556 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10557 properly if we have a specification die.
10558 (determine_prefix_aux): Rename from determine_prefix.
10559 (determine_prefix): Like the old determine_prefix, but never
10560 returns NULL.
10561
10562 2004-01-23 Theodore A. Roth <troth@openavr.org>
10563
10564 * avr-tdep.c: Update copyright.
10565 (avr_iaddr_p): Delete unused function.
10566 (avr_saddr_p): Delete unused function.
10567
10568 2004-01-23 David Carlton <carlton@kealia.com>
10569
10570 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10571 Fix for PR symtab/1534.
10572
10573 2004-01-23 Mark Kettenis <kettenis@gnu.org>
10574
10575 * NEWS (New native configurations): Mention OpenBSD/sparc and
10576 OpenBSD/sparc64.
10577 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10578 * configure.host: Likewise.
10579 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10580 handler for OpenBSD.
10581 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10582
10583 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10584
10585 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10586 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10587
10588 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10589 * cli/cli-cmds.c (shell_escape): Likewise.
10590
10591 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10592 OpenBSD .note.openbsd.ident sections.
10593
10594 2004-01-22 David Carlton <carlton@kealia.com>
10595
10596 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10597 get_scope_pc_bounds.
10598 (read_file_scope): Ditto.
10599 (get_scope_pc_bounds): New function, produced by extracting code
10600 from the above two functions, consolidating it, and adding support
10601 for DW_TAG_namespace.
10602
10603 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10604
10605 * osabi.c (MAX_NOTESZ): New define.
10606 (check_note): New function.
10607 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10608 check_note.
10609
10610 2004-01-21 Roland McGrath <roland@redhat.com>
10611
10612 * MAINTAINERS (write after approval): Add myself.
10613
10614 2004-01-21 Eli Zaretskii <eliz@gnu.org>
10615
10616 * utils.c (init_page_info): Move declarations of `rows' and
10617 `cols' before the __GO32__-specific code. Move the closing brace
10618 outside the #ifdef __GO32__..#endif block.
10619 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10620
10621 2004-01-21 Paul Brook <paul@codesourcery.com>
10622
10623 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10624 BPSTAT_WHAT_CHECK_SHLIBS.
10625
10626 2004-01-21 Paul Brook <paul@codesourcery.com>
10627
10628 * MAINTAINERS: Add myself to write-after-approval.
10629
10630 2004-01-20 Andrew Cagney <cagney@redhat.com>
10631
10632 * ax-gdb.c (print_axs_value): Delete unused function.
10633 * jv-lang.c (java_lookup_type): Delete unused function.
10634 * cli/cli-dump.c (dump_filetype): Delete unused function.
10635 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10636 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10637 (mips_getstring): Delete unused function.
10638 (pmon_insert_breakpoint): Delete #if0ed function.
10639 (PMON_MAX_BP): Delete #if0ed MACRO.
10640 (mips_pmon_bp_info): Delete #if0ed variable.
10641 (pmon_remove_breakpoint): Delete #if0ed function.
10642 * monitor.c (monitor_write_even_block): Delete unused function.
10643 (monitor_write_memory_block): Delete #if0ed code.
10644 * dink32-rom.c (dink32_load): Delete unused function.
10645 (_initialize_dink32_rom): Delete #if0ed code.
10646 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10647
10648 * tui/tui-command.c: Update references.
10649 * tui/tui-io.c: Update references.
10650 * tui/tui-command.h: Update copyright.
10651 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10652
10653 * source.c (ambiguous_line_spec): Delete never-defined function.
10654 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10655 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10656 * cli/cli-cmds.c (validate_comname): Ditto.
10657
10658 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10659 "tui-data.h".
10660 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10661 (tui_show_disassem): Rename tuiShowDisassem.
10662 (tui_show_disassem_and_update_source): Rename
10663 tuiVerticalDisassemScroll.
10664 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10665 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10666 * tui/tui.h: Update copyright.
10667 (enum tui_status): Define.
10668 * tui/tui-data.h (enum tui_scroll_direction): Define.
10669 * tui/tui-disasm.c: Update copyright. Update references.
10670 * tui/tui-winsource.c: Update copyright. Update references.
10671 * tui/tui-win.c: Update references.
10672 * tui/tui-layout.c: Update references.
10673
10674 2004-01-20 Andrew Cagney <cagney@redhat.com>
10675
10676 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10677 sym2 to start of block.
10678
10679 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10680
10681 * MAINTAINERS: Delete mmalloc.
10682 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10683 * NEWS: Mention removal of --with-malloc.
10684 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10685 * config.in: Regenerate.
10686 * configure: Regenerate.
10687 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10688 USE_MMALLOC, MMCHECK_FORCE.
10689 * gdbinit.in: Remove mmalloc.
10690 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10691 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10692 * config/i386/go32.mh: Likewise.
10693 * config/i386/interix.mh: Likewise.
10694 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10695
10696 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10697
10698 * linespec.c (decode_variable, symtab_from_filename): Call
10699 error_silent with error message instead of throwing an exception
10700 directly.
10701 * defs.h (error_silent, error_output_message): Add prototypes.
10702 (catch_exceptions_with_msg): Ditto.
10703 * utils.c (error_silent, error_output_message): New functions.
10704 * top.c (catch_exceptions_with_msg): New function.
10705
10706 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
10707
10708 * mi/mi-cmds.h (enum print_values): Add definition.
10709
10710 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10711 type and value for simple data types and just the name and type
10712 for complex ones, if required.
10713
10714 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10715 children, if required.
10716
10717 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10718
10719 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10720 unused declarations.
10721
10722 2004-01-19 Andrew Cagney <cagney@redhat.com>
10723
10724 * top.h (mapped_symbol_files): Delete declaration.
10725 * main.c (captured_main): Delete option "m" and "mapped".
10726 * objfiles.c (mapped_symbol_files): Delete variable.
10727 * symfile.c (symbol_file_command): Delete mmap code.
10728 (symbol_file_add_with_addrs_or_offsets): Ditto.
10729 (add_symbol_file_command, reread_separate_symbols): Ditto.
10730 * objfiles.h (OBJF_MAPPED): Delete.
10731 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10732 (free_objfile) [USE_MMALLOC]: Ditto.
10733 (open_existing_mapped_file): Delete function.
10734 (open_mapped_file): Delete function.
10735 (map_to_file): Delete function.
10736
10737 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10738
10739 * infrun.c (step_into_function): Account for possible breakpoint
10740 adjustment when computing ``stop_func_start''.
10741
10742 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10743
10744 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10745 the region size against the size of a pointer, not the size of
10746 a register as given by DEPRECATED_REGISTER_SIZE.
10747
10748 2004-01-19 Andrew Cagney <cagney@redhat.com>
10749
10750 * tui/tui-regs.h: Include "tui-data.h".
10751 (tuiFirstRegElementNoInLine): Delete declaration.
10752 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10753 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10754 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10755 (tui_calculate_regs_column_count): Rename
10756 tuiCalculateRegsColumnCount.
10757 (tui_check_register_values): Rename tuiCheckRegisterValues.
10758 (tui_show_registers): Rename tuiShowRegisters.
10759 (tui_display_registers_from_line): Rename
10760 tuiDisplayRegistersFromLine.
10761 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10762 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10763 (tui_first_reg_element_no_inline): Rename
10764 tuiFirstRegElementNoInLine.
10765 * tui/tui-data.h: Update copyright.
10766 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10767 * tui/tui-windata.c: Update copyright, update references.
10768 * tui/tui-regs.c: Update copyright, update references.
10769 * tui/tui-win.c: Update copyright, update references.
10770 * tui/tui-layout.c: Update copyright, update references.
10771
10772 2004-01-18 Andrew Cagney <cagney@redhat.com>
10773
10774 * tui/tui-io.c: Update copyright.
10775 (key_is_end_sequence, key_is_backspace): New functions.
10776 (key_is_command_char, key_is_start_sequence): New function.
10777 (tui_getc): Update references.
10778 * tui/tui-io.h: Update copyright.
10779 (m_tuiStartNewLine): Delete macro.
10780 (m_isBackspace, m_isDeleteChar): Delete macros.
10781 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10782 (m_isNextPage, m_isPrevPage): Delete macros.
10783 (m_isLeftArrow, m_isRightArrow): Delete macros.
10784 (m_isXdbStyleCommandChar): Delete macro.
10785 (key_is_start_sequence): Declare, replace m_isStartSequence.
10786 (key_is_end_sequence): Declare, replace m_isEndSequence.
10787 (key_is_backspace): Declare ,replace m_isBackspace.
10788 (key_is_command_char): Declare, replace m_isCommandChar.
10789 * tui/tui-command.c: Update copyright.
10790 (tuiDispatchCtrlChar): Update references.
10791
10792 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10793 tuiSourceWin.h.
10794
10795 * tui/tui-command.c: Rename tui/tuiCommand.c.
10796 * tui/tui-command.h: Rename tui/tuiCommand.h.
10797 * tui/tui-data.c: Rename tui/tuiData.c.
10798 * tui/tui-data.h: Rename tui/tuiData.h.
10799 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10800 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10801 * tui/tui-io.c: Rename tui/tuiIO.c.
10802 * tui/tui-io.h: Rename tui/tuiIO.h.
10803 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10804 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10805 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10806 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10807 * tui/tui-source.c: Rename tui/tuiSource.c.
10808 * tui/tui-source.h: Rename tui/tuiSource.h.
10809 * tui/tui-stack.c: Rename tui/tuiStack.c.
10810 * tui/tui-stack.h: Rename tui/tuiStack.h.
10811 * tui/tui-win.c: Rename tui/tuiWin.c.
10812 * tui/tui-win.h: Rename tui/tuiWin.h.
10813 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10814 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10815 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10816 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10817 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10818 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10819 * tui/tui-file.c: Update includes.
10820 * tui/tui-hooks.c: Update includes.
10821 * tui/tui-interp.c: Update includes.
10822 * tui/tui.c: Update includes.
10823 * Makefile.in: Update all tui/ dependencies.
10824 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10825
10826 * Makefile.in: Update copyright. Update dependencies.
10827
10828 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10829 problem.
10830
10831 2004-01-18 Andrew Cagney <cagney@redhat.com>
10832
10833 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10834 instead of register_gdbarch_init.
10835
10836 * remote-sds.c (tohex): Delete unused function. Update copyright.
10837 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10838 * v850-tdep.c (v850_register_virtual_size): Ditto.
10839 * target.c (normal_target_post_startup_inferior): Ditto.
10840 * source.c (ambiguous_line_spec): Ditto.
10841 * remote.c (adapt_remote_get_threadinfo): Ditto.
10842 * mi/mi-out.c (out_field_fmt): Ditto.
10843 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10844 (output_control_change_notification): Ditto.
10845 * m68k-tdep.c (m68k_register_byte): Ditto.
10846 (m68k_remote_breakpoint_from_pc): Ditto.
10847 * ui-out.c (init_ui_out_state): Delete unused declaration.
10848 * stabsread.c (search_value): Ditto.
10849 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10850 * maint.c (print_section_table): Ditto.
10851 * infrun.c (set_follow_fork_mode_command): Ditto.
10852
10853 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10854
10855 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10856 DW_CFA_def_cfa_exporession. Add support for
10857 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10858 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10859
10860 2004-01-18 Andrew Cagney <cagney@redhat.com>
10861
10862 * ocd.c: Update copyright.
10863 (bdm_read_register_command): Delete unused function.
10864 (_initialize_remote_ocd): Delete commented out reference.
10865 (get_quoted_char, reset_packet): Delete #if0ed function.
10866 (output_packet, put_quoted_char): Delete #if0ed function.
10867 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10868 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10869 (BDM_BREAKPOINT): Delete #if0ed macro.
10870 (remote_timeout): Delete #if0ed variable.
10871
10872 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10873
10874 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10875 (core-sol2.o): Remove dependency.
10876 * core-sol2.c: Remove file.
10877
10878 2004-01-17 Andrew Cagney <cagney@redhat.com>
10879
10880 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10881 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10882 enums.
10883
10884 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10885
10886 * remote.c: Update copyright years.
10887
10888 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10889
10890 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10891
10892 2004-01-17 Andrew Cagney <cagney@redhat.com>
10893
10894 * mdebugread.c: Update copyright.
10895 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10896 (parse_type, parse_procedure): Ditto.
10897 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10898
10899 * cris-tdep.c (cris_store_struct_return): Put back accidently
10900 deleted function.
10901
10902 * gdbarch.sh: Update copyright year.
10903 * gdbarch.h, gdbarch.c: Re-generate.
10904
10905 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10906
10907 Suggested by George Anzinger.
10908 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10909 correct stack offset. Include unknown opcode numbers in the error
10910 message.
10911
10912 2004-01-17 Andrew Cagney <cagney@redhat.com>
10913
10914 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10915 extract_struct_value_address, i386 does not set it.
10916 * sparc64-tdep.c (sparc64_init_abi): Do not set
10917 extract_struct_value_address, never called.
10918 (sparc64_extract_struct_value_address): Delete function.
10919 * m68hc11-tdep.c: Update copyright.
10920 (m68hc11_gdbarch_init): Delete redundant assignment of
10921 extract_struct_value_address.
10922 * i386-tdep.c: Update copyright.
10923 (i386_gdbarch_init): Do not set extract_struct_value_address,
10924 never called.
10925 (i386_extract_struct_value_address): Delete function.
10926 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10927 extract_struct_value_address, never called.
10928 (sparc32_extract_struct_value_address): #if 0 function. Add
10929 comments explaining its future.
10930
10931 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10932
10933 * arm-tdep.c (arm_write_pc): New function.
10934 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10935
10936 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10937
10938 * breakpoint.c (must_shift_inst_regs): Delete.
10939 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10940 and SHIFT_INST_REGS.
10941 * infcmd.c (step_1, step_1_continuation): Delete references to
10942 SHIFT_INST_REGS.
10943 * infrun.c (keep_going): Likewise.
10944 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10945 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10946
10947 2004-01-17 Andrew Cagney <cagney@redhat.com>
10948
10949 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10950 * gdbarch.h, gdbarch.c: Re-generate.
10951 * infcmd.c (print_return_value): Delete reference to
10952 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10953
10954 * cris-tdep.c (cris_gdbarch_init): Do not set
10955 deprecated_extract_struct_value_address.
10956
10957 * xstormy16-tdep.c: Update copyright.
10958 (xstormy16_extract_struct_value_address): Update to current
10959 extract struct value address interface.
10960 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10961 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10962 current extract struct value address interface.
10963 (sh64_gdbarch_init): Set extract_struct_value_address.
10964
10965 * cris-tdep.c: Update copyright.
10966 (cris_extract_struct_value_address): Delete function.
10967 (struct_return_address): Delete variable.
10968 (cris_store_struct_return): Do not set struct_return_address.
10969
10970 * mcore-tdep.c: Update copyright.
10971 (mcore_extract_struct_value_address): Delete function. Update
10972 comments.
10973 (mcore_gdbarch_init): Update.
10974 * mn10300-tdep.c: Update copyright.
10975 (mn10300_extract_struct_value_address): Delete function.
10976 (mn10300_gdbarch_init): Update.
10977 * v850-tdep.c: Update copyright.
10978 (v850_extract_struct_value_address): Delete.
10979 (v850_gdbarch_init): Update.
10980 * ns32k-tdep.c: Update copyright.
10981 (ns32k_extract_struct_value_address): Delete.
10982 (ns32k_gdbarch_init): Update.
10983 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10984 (hppa_gdbarch_init): Update.
10985 * vax-tdep.c: Update copyright.
10986 (vax_extract_struct_value_address): Delete.
10987 (vax_gdbarch_init): Update.
10988
10989 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10990 * gdbarch.h, gdbarch.c: Re-generate.
10991 * procfs.c (procfs_fetch_registers): Delete reference to
10992 DEPRECATED_NPC_REGNUM.
10993 (procfs_store_registers): Ditto.
10994 * regcache.c (generic_target_write_pc): Simplify.
10995 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10996
10997 * core-sol2.c (fetch_core_registers): Replace
10998 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10999
11000 * hppa-tdep.c: Update copyright year.
11001 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11002 NPC_REGNUM.
11003 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11004
11005 * mips-tdep.c (mips_write_pc): New function.
11006 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11007 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11008 (mips_find_saved_regs, mips_software_single_step: Ditto.
11009 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11010 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11011
11012 2004-01-17 Andrew Cagney <cagney@redhat.com>
11013
11014 * mips-tdep.c: Re-indent. Group functions by ABI.
11015
11016 2004-01-17 Andrew Cagney <cagney@redhat.com>
11017
11018 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11019 * gdbarch.c: Re-generate.
11020 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11021 DECR_PC_AFTER_BREAK to zero.
11022 * vax-tdep.c (vax_gdbarch_init): Ditto.
11023 * v850-tdep.c (v850_gdbarch_init): Ditto.
11024 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11025 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11026 * sh-tdep.c (sh_gdbarch_init): Ditto.
11027 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11028 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11029 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11030 * mips-tdep.c (mips_gdbarch_init): Ditto.
11031 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11032 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11033 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11034 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11035 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11036 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11037 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11038 * frv-tdep.c (frv_gdbarch_init): Ditto.
11039 * cris-tdep.c (cris_gdbarch_init): Ditto.
11040 * avr-tdep.c (avr_gdbarch_init): Ditto.
11041 * arm-tdep.c (arm_gdbarch_init): Ditto.
11042 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11043
11044 2004-01-17 J. Brobecker <brobecker@gnat.com>
11045
11046 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
11047 Delete, no longer used.
11048 (read_subrange_type): New function, mostly extracted from
11049 read_array_type().
11050 (read_array_type): Replace extracted code by call to
11051 read_subrange_type().
11052 (dwarf2_get_attr_constant_value): New function.
11053 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
11054 (add_partial_symbol): Likewise.
11055 (process_die): Likewise.
11056 (new_symbol): Likewise.
11057 (read_type_die): Likewise.
11058
11059 2004-01-16 Andrew Cagney <cagney@redhat.com>
11060
11061 * symfile.c: Update copyright year.
11062 (compare_symbols): Delete unused function.
11063 * stabsread.c: Update copyright year.
11064 (lrs_general_complaint): Delete unused function.
11065 (ref_search_value): Ditto.
11066 (get_substring): Delete declaration.
11067 * sh64-tdep.c: Update copyright year.
11068 (sh64_get_gdb_regnum): Delete unused function.
11069 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
11070 Delete unused function.
11071
11072 2004-01-17 Mark Kettenis <kettenis@gnu.org>
11073
11074 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
11075 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
11076
11077 2004-01-16 Andrew Cagney <cagney@redhat.com>
11078
11079 Changes from Peter Schauer.
11080 * rs6000-tdep.c: Update copyright year.
11081 (rs6000_push_dummy_call): Update the stack pointer before
11082 accessing the corresponding stack region.
11083 * rs6000-nat.c: Update copyright year.
11084 (set_host_arch): Set "info.abfd" to "exec_bfd".
11085
11086 2004-01-15 Mark Kettenis <kettenis@gnu.org>
11087
11088 * blockframe.c: Update copyright year.
11089 (inside_entry_func): Don't treat a zero PC specially.
11090
11091 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
11092
11093 * gcore.c (gcore_copy_callback): Use paddr_d to print size
11094 variable.
11095 (gcore_create_callback): Ditto. Skip any memory segment that has
11096 no permissions set.
11097
11098 2004-01-14 David Carlton <carlton@kealia.com>
11099
11100 Change symbols for C++ nested types to contain the fully qualified
11101 name, if possible. (At least in the DWARF-2 case.) Partial fix
11102 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
11103 c++/895.
11104 * c-exp.y (qualified_type): Handle types nested within classes.
11105 * cp-namespace.c: Update comments.
11106 (cp_set_block_scope): Delete #if 0.
11107 (cp_lookup_nested_type): Handle types nested within classes.
11108 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
11109 when appropriate.
11110 (add_partial_symbol): Add the name of the enclosing namespace to
11111 types.
11112 (pdi_needs_namespace): New.
11113 (add_partial_namespace): Tweak comment.
11114 (add_partial_structure): New.
11115 (psymtab_to_symtab_1): Initialize processing_current_prefix
11116 here...
11117 (process_die): instead of here.
11118 (read_structure_scope): Try to figure out the name of the class or
11119 namespace that the structure might be defined within.
11120 (read_enumeration): Generate fully-qualified names, if possible.
11121 (read_namespace): Don't set name to NULL.
11122 (die_specification): New.
11123 (new_symbol): Generate fully-qualified names for types.
11124 (read_type_die): Determine appropriate prefix.
11125 (determine_prefix): New.
11126 (typename_concat): New.
11127 (class_name): New.
11128 * valops.c (value_aggregate_elt): Pass NOSIDE to
11129 value_struct_elt_for_reference.
11130 (value_struct_elt_for_reference): Make static, add NOSIDE
11131 parameter, call value_maybe_namespace_elt as a last resort.
11132 (value_namespace_elt): Break out code into
11133 value_maybe_namespace_elt.
11134 (value_maybe_namespace_elt): New.
11135
11136 2004-01-12 Andrew Cagney <cagney@redhat.com>
11137
11138 * mips-tdep.c (mips_convert_register_p): Handle both raw and
11139 cooked floating-point registers.
11140 (mips_gdbarch_init): Set convert_register_p, register_to_value,
11141 and value_to_register.
11142
11143 2004-01-13 Andrew Cagney <cagney@redhat.com>
11144
11145 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
11146 * gdbarch.c: Re-generate.
11147 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11148 FUNCTION_START_OFFSET.
11149 * v850-tdep.c (v850_gdbarch_init): Ditto.
11150 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11151 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11152 * sh-tdep.c (sh_gdbarch_init): Ditto.
11153 * s390-tdep.c (s390_gdbarch_init): Ditto.
11154 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11155 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11156 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11157 * mips-tdep.c (mips_gdbarch_init): Ditto.
11158 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11159 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11160 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11161 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11162 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11163 * i386-tdep.c (i386_gdbarch_init): Ditto.
11164 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11165 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11166 * frv-tdep.c (frv_gdbarch_init): Ditto.
11167 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11168 * cris-tdep.c (cris_gdbarch_init): Ditto.
11169 * avr-tdep.c (avr_gdbarch_init): Ditto.
11170 * arm-tdep.c (arm_gdbarch_init): Ditto.
11171 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11172
11173 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
11174
11175 * infrun.c (follow_fork_mode_ask): Remove.
11176 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
11177 (follow_fork): Simplify and remove internal error for
11178 follow_fork_mode_ask.
11179 (_initialize_infrun): Update "set follow-fork-mode" help text.
11180
11181 2004-01-13 Andrew Cagney <cagney@redhat.com>
11182
11183 * configure.in: Update copyright year.
11184 (build_warnings): Add -Wunused-label.
11185 * configure: Re-generate.
11186
11187 2004-01-12 Andrew Cagney <cagney@redhat.com>
11188
11189 * exec.h (exec_ops): Make "extern".
11190
11191 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11192 the function is void.
11193 (mips_pseudo_register_write): Ditto.
11194
11195 2004-01-12 Andrew Cagney <cagney@redhat.com>
11196
11197 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11198 call. Never defined.
11199 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11200 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11201 (struct sparc_gregset, struct regcache): Ditto.
11202 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11203
11204 2004-01-12 Andrew Cagney <cagney@redhat.com>
11205
11206 * mi/ChangeLog: Delete file. Renamed to ...
11207 * mi/ChangeLog-1999-2003: New file.
11208 * tui/ChangeLog: Delete file. Renamed to ...
11209 * tui/ChangeLog-1998-2003: New file.
11210
11211 2004-01-11 Mark Kettenis <kettenis@gnu.org>
11212
11213 * sparc64nbsd-tdep.c: Include "regset.h".
11214 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11215 Remove variables.
11216 (fetch_core_registers): Remove function.
11217 (sparc64nbsd_core_fns): Remove variable.
11218 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11219 functions.
11220 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11221 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11222 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11223
11224 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11225 sparc_extract_struct_value_address.
11226 (sparc32_gdbarch_init): Set extract_struct_value_address.
11227 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11228 function.
11229 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11230 return_value_on_stack.
11231
11232 * NEWS: Mention that %cs and %ss have been added to the AMD64
11233 configurations
11234
11235 * frame.c: Update copyright year.
11236 (get_prev_frame): Improve comment.
11237
11238 * sparc64fbsd-tdep.c: Include "regset.h".
11239 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11240 Remove variables.
11241 (fetch_core_registers): Remove function.
11242 (sparc64fbsd_core_fns): Remove variable.
11243 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11244 functions.
11245 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11246 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11247 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
11248
11249 * sparcnbsd-tdep.c: Include "regset.h".
11250 (fetch_core_registers): Remove function.
11251 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11252 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11253 functions.
11254 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11255 TDEP->fpregset.
11256 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
11257
11258 * sparc-tdep.h (struct regset): Provide opaque declaration.
11259 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11260 fpregset and sizeof_fpregset members.
11261 * sparc-tdep.c (struct regset): Provide opaque declaration.
11262 (sparc_regset_from_core_section): New function.
11263 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11264 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11265 Set regset_from_core_section when appropriate.
11266
11267 2004-01-10 Mark Kettenis <kettenis@gnu.org>
11268
11269 * x86-64-tdep.c (amd64_non_pod_p): New function.
11270 (amd64_classify_aggregate): Return class memory for non-POD
11271 C++ structure types.
11272
11273 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11274 argument. Use it to reserve a register if necessary.
11275 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11276 amd64_push_arguments.
11277
11278 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11279
11280 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11281 register numbers in comments.
11282 * x86-64-tdep.h: Update copyright year.
11283 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11284 Adjust for addition of %cs and %ss.
11285 * amd64fbsd-nat.c: Update copyright year.
11286 (reg_offset): Add register offsets for %cs and %ss.
11287 * amd64fbsd-tdep.c: Update copyright year.
11288 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11289 (amd64fbsd_sc_reg_offset): Likewise.
11290 * x86-64-linux-nat.c: Update copyright year.
11291 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11292 and %ss.
11293 * amd64nbsd-nat.c: Update copyright year.
11294 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11295 * amd64nbsd-tdep.c: Update copyright year.
11296 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11297 * x86-64-linux-tdep.c: Update copyright year.
11298 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11299 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11300 * regformats/reg-x86-64.dat: Add %cs and %ss.
11301
11302 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11303 variables to prevent long lines. Update comments to reflect
11304 reality.
11305
11306 2004-01-09 David Carlton <carlton@kealia.com>
11307
11308 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11309 * dwarf2read.c (read_namespace): Pull out name-generating code
11310 into namespace_name. Rename previous_namespace to previous_prefix
11311 and processing_current_namespace to processing_current_prefix..
11312 (namespace_name): New function.
11313 (add_partial_symbol): Substitute uses of pdi->name with
11314 actual_name.
11315 * cp-support.h: Rename processing_current_namespace to
11316 processing_current_prefix.
11317 Update copyright year.
11318 * cp-namespace.c: Rename processing_current_namespace to
11319 processing_current_prefix.
11320 Update copyright year.
11321
11322 2004-01-09 Andrew Cagney <cagney@redhat.com>
11323
11324 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11325
11326 2004-01-09 Mark Kettenis <kettenis@gnu.org>
11327
11328 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11329 complaining.
11330 (process_one_symbol): Deal with N_PATCH stabs.
11331
11332 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
11333
11334 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11335 ifdeffed code.
11336 Update copyright year.
11337
11338 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11339
11340 * config/pa/tm-hppa.h: Update extern declarations for
11341 hppa32_hpux_frame_saved_pc_in_sigtramp,
11342 hppa32_hpux_frame_base_before_sigtramp, and
11343 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11344
11345 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11346
11347 * config/pa/tm-hppah.h: Update copyright years.
11348
11349 2004-01-08 Andrew Cagney <cagney@redhat.com>
11350
11351 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11352 (mips_o32_reg_struct_has_addr): Delete function.
11353 (mips_gdbarch_init): Update.
11354 (mips_extract_struct_value_address): Delete function.
11355
11356 2004-01-08 David Mosberger <davidm@hpl.hp.com>
11357
11358 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11359 reality.
11360
11361 2004-01-07 Andrew Cagney <cagney@redhat.com>
11362
11363 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11364 architecture's elf flags (when available).
11365
11366 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11367 FPU to the start, check the MIPS FPU when looking for an old
11368 architecture.
11369 (set_mipsfpu_single_command): Update the architecture.
11370 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11371
11372 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11373 (mips_mask_address_p): Add "tdep" parameter.
11374 (show_mask_address, mips_addr_bits_remove): Update.
11375 (mips_dump_tdep): Update.
11376 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11377 (MIPS_STACK_ARGSIZE): Delete macro.
11378 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11379 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11380 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11381 (mips_dump_tdep): Update.
11382 (MIPS_SAVED_REGSIZE): Delete macro.
11383 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11384 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11385 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11386 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11387 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11388 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11389 (mips_pop_frame, return_value_location): Update.
11390 (mips_n32n64_return_value, mips_dump_tdep): Update.
11391
11392 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11393 MIPS ABI.
11394
11395 * mips-tdep.c: Update copyright.
11396 (mips_gdbarch_init): Merge two code blocks handling the register
11397 name and number layout.
11398
11399 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11400
11401 * tracepoint.c (validate_actionline): Fix segv at EOF
11402
11403 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11404
11405 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11406 properly for static fields.
11407
11408 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
11409 Jason Molenda <jmolenda@apple.com>
11410
11411 * disasm.c: Update copyright to include 2004.
11412 (do_mixed_source_and_assembly): For uiout asm list
11413 and tuple cleanups, initialize to null_cleanup instead of
11414 NULL and do so prior to loop. Only reset when we close off
11415 the tuple/list. Move check for whether to close off the
11416 asm tuple/list to after dump_insns call where it will be run
11417 on each loop iteration.
11418
11419 2004-01-05 Andrew Cagney <cagney@redhat.com>
11420
11421 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11422 should be a switch case and not a label.
11423 * mips-tdep.c (mips32_next_pc): Delete unused labels
11424 "greater_equal_branch" and "less_zero_branch".
11425 * jv-valprint.c (java_print_value_fields): Delete unused label
11426 "flush_it".
11427
11428 * target.c (unpush_target): Only close a target that is in the
11429 target stack.
11430
11431 2004-01-05 Mark Kettenis <kettenis@gnu.org>
11432
11433 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11434 address from [sp + 64] instead of %o2.
11435
11436 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11437 fixes PR backtrace/1476.
11438
11439 2004-01-05 Andrew Cagney <cagney@redhat.com>
11440
11441 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11442 move to start of file.
11443 * i386-tdep.h (struct regcache): Add opaque declaration.
11444 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11445 declaration.
11446 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11447 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11448 * win32-nat.c (fake_create_process): Use ISO C style definition.
11449 * stabsread.c (define_symbol): Delete #ifndef
11450 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11451 stabs_argument_has_addr call, macro never defined.
11452
11453 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11454
11455 * op50-rom.c: Delete.
11456 * w89k-rom.c: Delete.
11457 * Makefile.in: Remove references.
11458
11459 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11460
11461 * x86-64-tdep.c: Update copyright year.
11462 (struct amd64_register_info): Rename from x86_64_register_info.
11463 (amd64_register_info): Rename from x86_64_register_info.
11464 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11465 (amd64_register_name): Rename from x86_64_register_name.
11466 (amd64_register_type): Rename from x86_64_register_type.
11467 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11468 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11469 (amd64_dwarf_reg_to_regnum): Rename from
11470 x86_64_dwarf_reg_to_regnum.
11471 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11472 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11473 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11474 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11475 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11476 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11477 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11478 (amd64_frame_cache): Rename from x86_64_frame_cache.
11479 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11480 (amd64_frame_prev_register): Rename from
11481 x86_64_frame_prev_register.
11482 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11483 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11484 (amd64_sigtramp_frame_cache): Rename from
11485 x86_64_sigtramp_frame_cache.
11486 (amd64_sigtramp_frame_prev_register): Rename from
11487 x86_64_sigtramp_frame_prev_register.
11488 (amd64_sigtramp_frame_unwind): Rename from
11489 x86_64_sigtramp_frame_unwind.
11490 (amd64_sigtramp_frame_sniffer): Rename from
11491 x86_64_sigtramp_frame_sniffer.
11492 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11493 (amd64_frame_base): Rename from x86_64_frame_base.
11494 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11495 (amd64_frame_align): Rename from x86_64_frame_align.
11496 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11497 (amd64_regset_from_core_section): Rename from
11498 x86_64_regset_from_core_section.
11499 (x86_64_init_abi): Update comments.
11500
11501 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
11502
11503 * MAINTAINERS (write after approval): Add myself.
11504
11505 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11506
11507 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11508 `float' arguments.
11509
11510 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11511
11512 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11513 such that it mentions a specific version of GCC that exhibits this
11514 bug.
11515
11516 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11517
11518 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11519 structure that has a single `float' member, store it in %f1 in
11520 addition to %f0.
11521
11522 * sparc-sol2-nat.c: Add missing '\'.
11523
11524 * sparc-tdep.c (sparc32_return_value): New function.
11525 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11526 Remove functions.
11527 (sparc32_gdbarch_init): Set return_value, don't set
11528 extract_return_value, store_return_value, use_struct_convention
11529 and return_value_on_stack.
11530
11531 * sparc-sol2-nat.c: Add missing ')'.
11532
11533 2004-01-03 J. Brobecker <brobecker@gnat.com>
11534
11535 * infrun.c (handle_step_into_function): New function.
11536 (handle_inferior_event): Extract out some code into the new
11537 function above.
11538
11539 2004-01-03 J. Brobecker <brobecker@gnat.com>
11540
11541 * infrun.c (handle_inferior_event): Move the declaration of
11542 real_stop_pc inside the if blocks where it is used.
11543
11544 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11545
11546 * sparc64-tdep.c (sparc64_16_byte_align_p)
11547 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11548 Use check_typedef to get subtypes of structures and unions.
11549 (sparc64_store_return_value): Fix calculation of the appropriate
11550 offset into VALBUF when storing a structure or union.
11551 (sparc64_return_value): New function.
11552 (sparc64_use_struct_convention): Remove function.
11553 (sparc64_init_abi): Set return_value, don't set
11554 extract_return_value, store_return_value and
11555 use_struct_convention.
11556
11557 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
11558
11559 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11560 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11561 gdb/config/alpha/xm-alphaosf.h,
11562 gdb/config/powerpc/tm-ppcle-eabi.h,
11563 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11564 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11565 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11566 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11567 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11568 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11569 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11570 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11571 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11572 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11573 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11574 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11575 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11576 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11577 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11578 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11579 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11580 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11581 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11582 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11583 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11584 Remove lines for .cvsignore files.
11585
11586 2004-01-03 J. Brobecker <brobecker@gnat.com>
11587
11588 * infrun.c: Back out the previous change.
11589
11590 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11591
11592 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11593 sparc-*-sunos4* to the list of REMOVED configurations.
11594
11595 * configure.tgt: Add back sparc-*-vxworks*.
11596 * remote-vxsparc.c: Remove all includes except for "defs.h",
11597 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11598 Include "sparc-tdep.h".
11599 (SPARC_R_G1): New define.
11600 (vxsparc_gregset): New variable.
11601 (ext_format_sparc): Remove extern declaration.
11602 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11603 sparc32_supply_fpregset.
11604 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11605 sparc_collect_rwindow and sparc32_collect_fpregset.
11606 * config/sparc/tm-vxworks.h: New file, based on recently removed
11607 tm-vxsparc.h.
11608 * config/sparc/vxworks.mt: New file, based on recently removed
11609 vxworks.mt.
11610
11611 2004-01-03 J. Brobecker <brobecker@gnat.com>
11612
11613 * infrun.c (handle_step_into_function): New function.
11614 (handle_inferior_event): Extract out some code into the new
11615 function above.
11616
11617 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11618
11619 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11620 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11621 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11622 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11623 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11624 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11625 (sparc_nat_h): New variable.
11626 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11627 (tm-sun4os4.h): Remove dependency.
11628 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11629 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11630 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11631 sparc-tdep.o): Update dependencies.
11632 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11633 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11634 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11635 dependencies.
11636 * configure.host: Remove existing sparc-*-lynxos*,
11637 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11638 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11639 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11640 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11641 triplets.
11642 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11643 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11644 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11645 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11646 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11647 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11648 sparc64-*-solaris2* and sparc64-*-* triplets.
11649 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11650 "symtab.h" and "objfiles.h".
11651 (BIAS): Remove define.
11652 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11653 (X_DISP19): Remove macros.
11654 (sparc_fetch_instruction): Remove function.
11655 (struct gdbarch_tdep): Remove definition.
11656 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11657 (sparc_breakpoint_from_pc): Remove function.
11658 (struct sparc64_frame_cache): Remove definition.
11659 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11660 sparc64_unwind_pc): Remove functions.
11661 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11662 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11663 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11664 (sparc64_frame_cache): Change return type to `struct
11665 sparc_frame_cache *'. Simply call sparc_frame_cache.
11666 (sparc64_frame_this_id, sparc64_frame_prev_register,
11667 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11668 instead of `struct sparc64_frame_cache.
11669 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11670 sparc_analyze_control_transfer, sparc_software_single_step,
11671 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11672 _initialize_sparc64_tdep): Remove functions.
11673 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11674 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11675 macros.
11676 (sparc64_supply_gregset, sparc64_collect_gregset,
11677 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11678 (sparc64_init_abi): New function.
11679 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11680 inclusion guard. Include "sparc-tdep.h".
11681 (BIAS): Define.
11682 (r_tstate_offset, r_fprs_offset): New defines.
11683 (enum sparc_regnum): Remove defenition.
11684 (enum sparc64_regnum): Reformat.
11685 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11686 (sparc64_init_abi, sparc64_supply_gregset,
11687 sparc64_collect_gregset, sparc64_supply_fpregset,
11688 sparc64_collect_fpregset): New prototypes.
11689 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11690 Add extern declarations.
11691 (sparc64_sol2_init_abi): New prototype.
11692 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11693 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11694 prototypes.
11695 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11696 "sparnbsd-nat.h".
11697 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11698 functions.
11699 (_initialize_sparc64fbsd_nat): Remove initialization of
11700 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11701 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
11702 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
11703 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11704 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11705 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11706 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11707 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11708 (sparc64fbsd_r_y_offset): Remove variables.
11709 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11710 Make static and const.
11711 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11712 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11713 functions.
11714 (sparc64fbsd_gregset): New variable.
11715 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11716 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11717 and sparc64_supply_fpregset.
11718 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11719 (sparc64fbsd_sigtramp_frame_this_id)
11720 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11721 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11722 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11723 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11724 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11725 * sparcnbsd-tdep.c: Update copyright year. Include
11726 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11727 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11728 "value.h" and "sparcnbsd-tdep.h".
11729 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11730 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11731 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11732 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11733 defines.
11734 (sparcnbsd_gregset): New variable.
11735 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11736 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11737 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11738 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11739 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11740 variables.
11741 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11742 (sparc32nbsd_sigcontext_frame_this_id)
11743 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11744 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11745 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11746 (sparcnbsd_get_longjmp_target_32,
11747 sparcnbsd_get_longjmp_target_64): Remove functions.
11748 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11749 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11750 sparcnbsd_init_elf): Remove.
11751 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11752 (sparcnbsd_elf_init_abi): New functions.
11753 (_initialize_sparcnbsd_tdep): New prototype.
11754 (_initialize_sparnbsd_tdep): Update.
11755 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11756 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11757 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11758 * config/sparc/linux.mh: Update comment.
11759 (XM_FILE, HOST_IPC): Remove variables.
11760 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11761 sparc-linux-nat.o.
11762 * config/sparc/linux.mt: Update comment.
11763 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11764 * config/sparc/nbsd.mt: Reformat.
11765 * config/sparc/nbsd64.mh: Update comment.
11766 (NATDEPFILES): Add sparc-nat.o.
11767 * config/sparc/nbsd64.mt: Update comment.
11768 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11769 (TM_FILE): Set to tm-nbsd.h.
11770 * config/sparc/nbsdelf.mh: Update comment.
11771 (NATDEPFILES): Add sparc-nat.o.
11772 (XM_FILE): Delete.
11773 * config/sparc/nbsdaout.mh: Update comment.
11774 (NATDEPFILES): Add sparc-nat.o
11775 (XM_FILE): Delete.
11776 * config/sparc/nm-linux.h: Update copyright year. Don't include
11777 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11778 inclusion.
11779 (KERNEL_U_SIZE): Remove define.
11780 (kernel_u_size): Remove prototype.
11781 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11782 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11783 "regcache.h".
11784 (CHILD_PREPARE_TO_STORE): Remove define.
11785 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11786 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11787 sparcnbsd-nat.c: Rewrite files.
11788 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11789 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11790 sparcnbsd-tdep.h: Remove files.
11791 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11792 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11793 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11794 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11795 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11796 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11797 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11798 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11799 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11800 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11801 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11802 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11803 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11804 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11805 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11806 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11807 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11808 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11809 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11810
11811 2004-01-02 Andrew Cagney <cagney@redhat.com>
11812
11813 From 2003-12-18 Kazuhiro Inaoka:
11814 * configure.host: Add m32r-linux target.
11815
11816 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11817
11818 * top.c (print_gdb_version): Update year to 2004.
11819
11820 2004-01-02 Mark Mitchell <mark@codesourcery.com>
11821
11822 * MAINTAINERS: Add myself to the write-after-approval category.
11823
11824 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
11825
11826 From Bernardo Innocenti <bernie@develer.com>:
11827 * configure.tgt: Add uClinux target.
11828
11829 2004-01-02 Andrew Cagney <cagney@redhat.com>
11830
11831 * utils.c (do_my_cleanups): Make static, add forward declaration.
11832 * defs.h (do_my_cleanups): Delete declaration.
11833
11834 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
11835
11836 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11837 bfd/ChangeLog-0203.
11838
11839 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11840
11841 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11842 in <machine/reg.h>.
11843 * configure, config.in: Regenerate.
11844
11845 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11846 tui/ChangeLog-1998-2003.
11847 \f
11848 Local Variables:
11849 mode: change-log
11850 left-margin: 8
11851 fill-column: 74
11852 version-control: never
11853 End:
This page took 0.655574 seconds and 5 git commands to generate.