2004-09-14 Andrew Cagney <cagney@gnu.org>
[binutils-gdb.git] / gdb / ChangeLog
1 2004-09-14 Andrew Cagney <cagney@gnu.org>
2
3 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
4 maintainer.
5
6 * thread-db.c (thread_db_new_objfile): Assume that there is a
7 child process.
8
9 2004-09-13 Jim Blandy <jimb@redhat.com>
10
11 * valops.c (value_assign): Move 'buffer' to the enclosing block,
12 so that its storage isn't referenced after its lifetime ends.
13
14 * valops.c (value_assign): 'use_buffer' is initialized to zero,
15 and never assigned to. Delete it, and the 'if (use_buffer)'
16 clauses. Delete 'raw_buffer', since it is now unused.
17
18 2004-09-13 Andrew Cagney <cagney@gnu.org>
19
20 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
21 * configure: Re-generate.
22 * nlm/Makefile.in (TAGS): Update.
23 * Makefile.in (TAGS): Update.
24 * config/vax/nbsd.mt (TM_FILE): Update.
25 * config/sparc/vxworks.mt (TM_FILE): Update.
26 * config/sparc/sol2.mt (TM_FILE): Update.
27 * config/sparc/sol2-64.mt (TM_FILE): Update.
28 * config/sparc/obsd64.mt (TM_FILE): Update.
29 * config/sparc/obsd.mt (TM_FILE): Update.
30 * config/sparc/nbsd64.mt (TM_FILE): Update.
31 * config/sparc/nbsd.mt (TM_FILE): Update.
32 * config/sparc/linux64.mt (TM_FILE): Update.
33 * config/sparc/linux.mt (TM_FILE): Update.
34 * config/sparc/fbsd.mt (TM_FILE): Update.
35 * config/sh/wince.mt (TM_FILE): Update.
36 * config/sh/nbsd.mt (TM_FILE): Update.
37 * config/sh/linux.mt (TM_FILE): Update.
38 * config/sh/embed.mt (TM_FILE): Update.
39 * config/s390/s390.mt (TM_FILE): Update.
40 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
41 * config/rs6000/rs6000.mt (TM_FILE): Update.
42 * config/rs6000/aix4.mt (TM_FILE): Update.
43 * config/powerpc/vxworks.mt (TM_FILE): Update.
44 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
45 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
46 * config/powerpc/obsd.mt (TM_FILE): Update.
47 * config/powerpc/nbsd.mt (TM_FILE): Update.
48 * config/powerpc/linux.mt (TM_FILE): Update.
49 * config/powerpc/aix.mt (TM_FILE): Update.
50 * config/pa/obsd.mt (TM_FILE): Update.
51 * config/pa/linux.mt (TM_FILE): Update.
52 * config/pa/hppahpux.mt (TM_FILE): Update.
53 * config/pa/hppa64.mt (TM_FILE): Update.
54 * config/pa/hppa.mt (TM_FILE): Update.
55 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
56 * config/mips/wince.mt (TM_FILE): Update.
57 * config/mips/vxmips.mt (TM_FILE): Update.
58 * config/mips/nbsd.mt (TM_FILE): Update.
59 * config/mips/linux.mt (TM_FILE): Update.
60 * config/mips/irix6.mt (TM_FILE): Update.
61 * config/mips/irix5.mt (TM_FILE): Update.
62 * config/mips/embed.mt (TM_FILE): Update.
63 * config/m68k/vxworks68.mt (TM_FILE): Update.
64 * config/m68k/st2000.mt (TM_FILE): Update.
65 * config/m68k/os68k.mt (TM_FILE): Update.
66 * config/m68k/obsd.mt (TM_FILE): Update.
67 * config/m68k/nbsd.mt (TM_FILE): Update.
68 * config/m68k/monitor.mt (TM_FILE): Update.
69 * config/m68k/linux.mt (TM_FILE): Update.
70 * config/m68k/cisco.mt (TM_FILE): Update.
71 * config/ia64/linux.mt (TM_FILE): Update.
72 * config/ia64/aix.mt (TM_FILE): Update.
73 * config/ia64/ia64.mt (TM_FILE): Update.
74 * config/i386/vxworks.mt (TM_FILE): Update.
75 * config/i386/obsd64.mt (TM_FILE): Update.
76 * config/i386/obsd.mt (TM_FILE): Update.
77 * config/i386/nto.mt (TM_FILE): Update.
78 * config/i386/nbsd64.mt (TM_FILE): Update.
79 * config/i386/nbsd.mt (TM_FILE): Update.
80 * config/i386/linux64.mt (TM_FILE): Update.
81 * config/i386/linux.mt (TM_FILE): Update.
82 * config/i386/i386sol2.mt (TM_FILE): Update.
83 * config/i386/i386lynx.mt (TM_FILE): Update.
84 * config/i386/fbsd64.mt (TM_FILE): Update.
85 * config/i386/fbsd.mt (TM_FILE): Update.
86 * config/i386/cygwin.mt (TM_FILE): Update.
87 * config/h8300/h8300.mt (TM_FILE): Update.
88 * config/frv/frv.mt (TM_FILE): Update.
89 * config/cris/cris.mt (TM_FILE): Update.
90 * config/arm/wince.mt (TM_FILE): Update.
91 * config/arm/nbsd.mt (TM_FILE): Update.
92 * config/arm/linux.mt (TM_FILE): Update.
93 * config/arm/embed.mt (TM_FILE): Update.
94 * config/alpha/nbsd.mt (TM_FILE): Update.
95 * config/alpha/fbsd.mt (TM_FILE): Update.
96 * config/alpha/alpha.mt (TM_FILE): Update.
97 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
98 * config/alpha/alpha-linux.mt (TM_FILE): Update.
99
100 Eliminate event_loop_p, always has the value 1.
101 * defs.h (event_loop_p): Delete macro.
102 * breakpoint.c (until_break_command): Simplify.
103 * utils.c (prompt_for_continue): Simplify.
104 * tracepoint.c (read_actions): Simplify.
105 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
106 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
107 (set_prompt, init_main): Simplify.
108 (init_signals, disconnect): Delete, unused.
109 * remote.c (remote_async_resume)
110 (extended_remote_async_create_inferior): Simplify.
111 * mi/mi-interp.c (mi_input): Delete, unused.
112 (mi_interpreter_resume, mi_command_loop): Simplify.
113 * interps.c (current_interp_command_loop): Simplify.
114 * infrun.c (proceed): Simplify.
115 * infcmd.c (run_command, continue_command, step_1, jump_command)
116 (until_command, advance_command, finish_command)
117 (interrupt_target_command): Simplify.
118 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
119
120 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
121 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
122 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
123 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
124 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
125 * mips-tdep.c (mips_dump_tdep): Do not print same.
126
127 2004-09-12 Andrew Cagney <cagney@gnu.org>
128
129 * valprint.c (print_longest): Use fputs_filtered. Make "val"
130 const.
131 * Makefile.in (valprint.o): Delete explict rule.
132
133 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
134 reported by Dave Anderson.
135
136 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
137
138 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
139
140 2004-09-12 Salvador E. Tropea <set@users.sf.net>
141 Andrew Cagney <cagney@gnu.org>
142
143 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
144 (mi_cmd_data_list_register_values)
145 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
146 the register number computation.
147
148 2004-09-12 Andrew Cagney <cagney@gnu.org>
149
150 * ppcnbsd-nat.c: Include "inf-ptrace.h".
151 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
152 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
153 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
154 target.
155 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
156 inf-ptrace.o and inf-child.o.
157 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
158 * Makefile.in: Update dependencies.
159
160 2004-09-11 Andrew Cagney <cagney@gnu.org>
161
162 * language.c (hex_string, hex_string_custom): Move from here ...
163 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
164 (CELLSIZE): Increase to 50.
165 * language.h (hex_string, hex_string_custom): Move from here ...
166 * defs.h: ... to here.
167 * Makefile.in: Update all dependencies.
168
169 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
170
171 * language.c (local_hex_format_custom): Remove.
172 (local_hex_string): Rename to hex_string, use C format, and move to
173 utils.c
174 (local_hex_string_custom): Rename to hex_string_custom and change
175 interface. Now uses C format. Move to utils.c
176 (local_octal_format_custom): Remove.
177 (local_decimal_format_custom): Remove.
178 (unknown_language_defn): Remove language-specific number
179 formatting entries.
180 (auto_language_defn): Ditto.
181 (local_language_defn): Ditto.
182 * language.h (struct language_format_info): Delete declaration.
183 (struct language_defn): Remove language_format_info fields
184 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
185 (local_binary_format): Remove macro.
186 (local_binary_format_prefix): Remove macro.
187 (local_binary_format_specifier): Remove macro.
188 (local_binary_format_suffix): Remove macro.
189 (local_octal_format): Remove macro.
190 (local_octal_format_prefix): Remove macro.
191 (local_octal_format_specifier): Remove macro.
192 (local_octal_format_suffix): Remove macro.
193 (local_decimal_format): Remove macro.
194 (local_decimal_format_prefix): Remove macro.
195 (local_decimal_format_specifier): Remove macro.
196 (local_decimal_format_suffix): Remove macro.
197 (local_hex_format): Remove macro.
198 (local_hex_format_prefix): Remove macro.
199 (local_hex_format_specifier): Remove macro.
200 (local_hex_format_suffix): Remove macro.
201 (local_decimal_format_custom): Remove.
202 (local_octal_format_custom): Remove.
203 (local_hex_format_custom): Remove.
204 (local_hex_string): Rename to hex_string and move to defs.h.
205 (local_hex_string_custom): Rename to hex_string_custom, change
206 interface, and move to defs.h.
207 * utils.c: (int_string): New function.
208 (hex_string): New function (from language.c).
209 (hex_string_custom): New function (from language.c).
210 (octal2str): New function.
211 (decimal2str): Add width parameter.
212 (paddr_u): Use new decimal2str interface.
213 (paddr_d): Ditto.
214 * defs.h (hex_string): Declare.
215 (hex_string_custom): Declare.
216 (int_string): Declare.
217 * printcmd.c (print_scalar_formatted): Remove localized binary
218 formatting.
219 * valprint.c (print_longest): Use int_string.
220 (print_floating): Use C hex format.
221 (print_hex_chars): Ditto.
222 (print_binary_chars): Remove language-specific formatting.
223 (print_octal_chars): Use C octal format.
224 (print_decimal_chars): Delocalize format.
225 (print_decimal): Remove.
226 * ada-lang.c (ada_language_defn): Remove language-specific number
227 formatting entries.
228 * p-lang.c (pascal_language_defn): Ditto.
229 * c-lang.c (c_language_defn): Ditto.
230 (cplus_language_defn): Ditto.
231 (asm_language_defn): Ditto.
232 (minimal_language_defn): Ditto.
233 * f-lang.c (f_language_defn): Ditto.
234 * jv-lang.c (java_language_defn): Ditto.
235 * m2-lang.c (m2_language_defn): Ditto.
236 * scm-lang.c (scm_language_defn): Ditto.
237 * objc-lang.c (objc_language_defn): Ditto.
238 * memattr.c (mem_info_command): Use renamed hex_string_custom with
239 new interface.
240 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
241 * ui-out.c (ui_out_field_core_addr): Ditto.
242 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
243 * exec.c (print_section_info): Ditto.
244 * i387-tdep.c (print_i387_status_word): Ditto.
245 (print_i387_control_word): Ditto.
246 (i387_print_float_info): Ditto.
247 * maint.c (maint_print_section_info): Ditto.
248 * solib.c (info_sharedlibrary_command): Ditto.
249 * somsolib.c (som_sharedlibrary_info_command): Ditto.
250 * symtab.c (print_msymbol_info): Ditto.
251 * tracepoint.c (tracepoints_info): Ditto.
252 * solib-frv.c (lm_base): Ditto.
253 (frv_current_sos): Ditto.
254 (enable_break2): Ditto.
255 (enable_break): Ditto.
256 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
257 (process_one_symbol): Ditto.
258 * infcmd.c (program_info): Ditto.
259 * mdebugread.c (parse_partial_symbols): Ditto.
260 * symfile.c (add_symbol_file_command): Ditto.
261 * cli/cli-cmds.c (edit_command): Ditto.
262 (list_command): Ditto.
263 * infcall.c (call_function_by_hand): Ditto.
264 * remote-vx.c (vx_run_files_info): Ditto.
265 (vx_wait): Ditto.
266 (vx_attach): Ditto.
267 (vx_detach): Ditto.
268 (vx_kill): Ditto.
269 * aix-thread.c (pdc_symbol_addrs): Ditto.
270 (pdc_read_regs): Ditto.
271 (pdc_write_regs): Ditto.
272 (pdc_read_data): Ditto.
273 (pdc_write_data): Ditto.
274 * d10v-tdep.c (display_trace): Ditto.
275 * rs6000-nat.c (find_toc_address): Ditto.
276 * aix-thread.c: Don't include language.h.
277 * buildsym.c: Ditto.
278 * dbxread.c: Ditto.
279 * mdebugread.c: Ditto.
280 * rs6000-nat.c: Ditto.
281 * buildsym.c (make_blockvector): Use renamed hex_string.
282
283 2004-09-10 Jason Molenda (jmolenda@apple.com)
284
285 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
286 chars after 'if' or 'while' commands in user-defined commands.
287
288 2004-09-08 Jim Blandy <jimb@redhat.com>
289
290 Fix bug reported and analyzed by Olivier Crete:
291 * symfile.c (copy_section_addr_info): New function.
292 (symbol_file_add_with_addrs_or_offsets): Use it to save the
293 original set of address arguments, instead of handwritten code
294 that uses one length to allocate and a different length to
295 initialize. Use make_cleanup_free_section_addr_info.
296 * symfile.h (copy_section_addr_info): New declaration.
297 * utils.c: #include "symfile.h".
298 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
299 New functions.
300 * defs.h (make_cleanup_free_section_addr_info): New declaration.
301 * Makefile.in (utils.o): Update dependencies.
302
303 2004-09-08 Andrew Cagney <cagney@gnu.org>
304
305 * thread-db.c (keep_thread_db): Delete.
306 (thread_db_new_objfile, thread_db_create_inferior)
307 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
308
309 2004-09-08 Mark Kettenis <kettenis@gnu.org>
310
311 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
312 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
313 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
314 (i386_frameless_signal_p): Remove prototype.
315 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
316 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
317 I386_SSE_NUM_REGS.
318 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
319 instead of FP0_REGNUM.
320 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
321 of FP0_REGNUM and FPC_REGNUM.
322
323 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
324 (sunos_solib_create_inferior_hook): Don't call
325 sunos_relocate_main_executable.
326
327 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
328 solib_svr4_fetch_link_map_offsets to
329 svr4_ilp32_fetch_link_map_offsets.
330 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
331 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
332 svr4_ilp32_fetch_link_map_offsets.
333 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
334
335 2004-09-07 Jim Blandy <jimb@redhat.com>
336
337 * frame.h (frame_register): Doc fix.
338
339 2004-09-07 Andrew Cagney <cagney@gnu.org>
340
341 * vx-share/wait.h: Delete #ifdef USG.
342 * utils.c (request_quit): Ditto.
343 * tui/tui.c (tui_reset): Ditto.
344 * remote.c: Ditto.
345 * remote-sds.c: Ditto.
346 * remote-rdi.c: Ditto.
347 * mdebugread.c: Ditto.
348 * m68klinux-nat.c: Ditto.
349 * infttrace.c: Ditto.
350 * infptrace.c: Ditto.
351 * i386v-nat.c: Ditto.
352 * exec.c: Ditto.
353 * dbxread.c: Ditto.
354 * core-aout.c: Ditto.
355
356 2004-09-05 Joel Brobecker <brobecker@gnat.com>
357
358 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
359 heuristic_proc_desc.
360 (mips_insn32_frame_cache): Likewise.
361
362 2004-09-04 Joel Brobecker <brobecker@gnat.com>
363
364 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
365 left behind by error.
366
367 2004-09-04 Joel Brobecker <brobecker@gnat.com>
368
369 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
370 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
371
372 2004-09-04 Joel Brobecker <brobecker@gnat.com>
373
374 * config/rs6000/xm-aix4.h: Remove this file.
375 * config/rs6000/aix4.mh (XM_FILE): Delete.
376
377 2004-09-04 Joel Brobecker <brobecker@gnat.com>
378
379 * config/rs6000/xm-rs6000.h: Remove this file.
380 * config/rs6000/rs6000.mh (XM_FILE): Remove.
381
382 2004-09-03 Andrew Cagney <cagney@gnu.org>
383
384 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
385 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
386 only use.
387
388 * mips-tdep.c (temp_saved_regs): Delete.
389 (set_reg_offset): Replace saved_regs parameter with this_cache.
390 (heuristic_proc_desc, mips16_heuristic_proc_desc)
391 (mips32_heuristic_proc_desc): Add this_cache parameter.
392 (mips_insn32_frame_cache, mips_insn16_frame_cache)
393 (after_prologue): Pass a NULL this_cache.
394
395 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
396 non-kernel trap prologues.
397
398 * mips-tdep.c (find_proc_desc): Delete function.
399 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
400 simplify.
401 (mips_insn16_frame_cache): Replace find_proc_desc with code from
402 mips_insn32_frame_cache.
403
404 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
405 Simplify as NEXT_FRAME is NULL.
406 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
407
408 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
409 local variable.
410 (mips_skip_prologue): Update.
411
412 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
413 "cur_frame" parameter.
414 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
415 (mips_insn32_frame_cache, find_proc_desc): Update
416
417 * config/vax/nm-obsd.h: Delete file.
418 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
419 * config/vax/nm-nbsd.h: Delete file.
420 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
421 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
422 * config/sh/nm-nbsd.h: Delete file.
423 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
424 * config/rs6000/nm-rs6000ly.h: Delete file.
425 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
426 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
427 * config/powerpc/nm-obsd.h: Delete file.
428 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
429 * config/powerpc/nm-nbsd.h: Delete file.
430 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
431 * config/pa/nm-obsd.h: Delete file.
432 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
433 * config/mips/nm-nbsd.h: Delete file.
434 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
435 * config/m88k/nm-obsd.h: Delete file.
436 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
437 * config/m68k/nm-nbsd.h: Delete file.
438 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
439 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
440 * config/i386/nm-nbsd.h: Delete file.
441 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
442 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
443 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
444 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
445 * config/i386/nm-i386lynx.h: Delete file.
446 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
447 * config/arm/nm-nbsd.h: Delete file.
448 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
449 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
450
451 * config/i386/tm-fbsd.h: Delete file.
452 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
453 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
454
455 * config/rs6000/tm-rs6000-aix4.h: Delete file.
456 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
457 * config/rs6000/aix4.mt (TM_FILE): Set to
458 config/rs6000/tm-rs6000.h.
459 * config/powerpc/tm-ppc-aix.h: Delete file.
460 * config/powerpc/aix.mt (TM_FILE): Set to
461 config/rs6000/tm-rs6000.h.
462 * config/m68k/tm-linux.h: Delete file.
463 * config/m68k/linux.mt (TM_FILE): Set to solib.h
464 * config/i386/tm-linux64.h: Delete file.
465 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
466 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
467
468 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
469 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
470 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
471 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
472 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
473 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
474 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
475 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
476 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
477
478 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
479 gdb_host_cpu.
480
481 2004-09-02 Joel Brobecker <brobecker@gnat.com>
482
483 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
484 Minor reformatting. Some code factoring.
485
486 2004-09-02 Andrew Cagney <cagney@gnu.org>
487
488 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
489 * config/vax/tm-nbsd.h: Delete file.
490 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
491 * config/sparc/tm-vxworks.h: Delete file.
492 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
493 * config/sparc/tm-nbsd.h: Delete file.
494 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
495 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
496 * config/sparc/tm-linux.h: Delete file.
497 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
498 * config/s390/tm-linux.h: Delete file.
499 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
500 * config/pa/tm-bsd.h: Delete file.
501 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
502 * config/m68k/tm-obsd.h: Delete file.
503 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
504 * config/m68k/tm-nbsd.h: Delete file.
505 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
506 * config/i386/tm-vxworks.h: Delete file.
507 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
508 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
509 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
510 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
511 * config/i386/tm-nbsd.h: Delete file.
512 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
513 * config/i386/tm-i386lynx.h: Delete file.
514 * config/cris/cris.mt (TM_FILE): Set to solib.h.
515 * config/cris/tm-cris.h: Delete file.
516
517 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
518 * configure: Re-generate.
519 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
520 * config/arm/tm-nbsd.h: Delete file.
521
522 * config/powerpc/tm-ppcle-sim.h: Delete.
523 * config/powerpc/tm-ppcle-eabi.h: Delete.
524 * config/powerpc/tm-nbsd.h: Delete.
525 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
526 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
527 tm-ppcle-eabi.h.
528
529 * config/i386/nto.mh (NAT_FILE): Delete.
530 * config/i386/nm-nto.h: Delete.
531
532 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
533 * config/m68k/tm-os68k.h: Ditto.
534 * config/m68k/tm-monitor.h: Ditto.
535 * config/m68k/tm-cisco.h: Ditto.
536 * config/m68k/st2000.mt (TM_FILE): Delete.
537 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
538 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
539 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
540 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
541
542 * config/m68k/tm-st2000.h: Delete.
543 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
544 * config/sparc/fbsd.mt (TM_FILE): Delete.
545 * config/sparc/tm-fbsd.h: Delete.
546
547 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
548 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
549 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
550
551 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
552 GDB_TM_FILE and GDB_XM_FILE.
553 * gdbarch.c: Re-generate.
554 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
555 quotes in macro definition.
556 * configure.in: Re-generate.
557
558 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
559 validating architecture methods.
560 * gdbarch.c: Re-generate.
561
562 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
563 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
564 GDB_MULTI_ARCH_PARTIAL.
565 * gdbarch.h: Re-generate.
566
567 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
568 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
569 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
570 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
571 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
572 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
573 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
574 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
575 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
576 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
577 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
578 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
579
580 2004-09-01 Andrew Cagney <cagney@gnu.org>
581
582 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
583 and main_func_highpc.
584 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
585 * objfiles.c (init_entry_point_info, objfile_relocate): Update
586 * nlmread.c (nlm_symfile_read): Update.
587
588 2004-09-01 Joel Brobecker <brobecker@gnat.com>
589
590 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
591 (mips_insn32_frame_cache): Inline call to find_proc_desc.
592 (find_proc_desc): Remove dead code.
593
594 2004-09-01 Joel Brobecker <brobecker@gnat.com>
595
596 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
597
598 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
599
600 * observer.sh: Add struct so_list declaration.
601 * Makefile.in: Add dependencies on observer.h for solib.c and
602 breakpoint.c.
603 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
604 function.
605 (_initialize_breakpoint): Register
606 disable_breakpoints_in_unloaded_shlib as an observer of the
607 "solib unloaded" observation event.
608 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
609 call decode_line_1 so unfound breakpoint errors are silent.
610 * solib.c (update_solib_list): When a solib is discovered to have
611 been unloaded by the program, notify all observers of the
612 "solib unloaded" observation event.
613
614 2004-09-01 Andrew Cagney <cagney@gnu.org>
615
616 * frame.c: Include "objfiles.h".
617 (inside_main_func): New function.
618 (get_prev_frame): Use new inside_main_func.
619 * Makefile.in (frame.o): Update dependencies.
620 * defs.h (inside_main_func): Delete declaration.
621 * blockframe.c (inside_main_func): Delete function.
622
623 2004-08-31 Jim Blandy <jimb@redhat.com>
624
625 * dwarf2read.c (is_vtable_name): New function, based on logic from
626 read_structure_type, but passing the correct length to strncmp,
627 and using 'sizeof' instead of 'strlen'.
628 (read_structure_type): Call it.
629
630 2004-08-31 Joel Brobecker <brobecker@gnat.com>
631
632 * config/powerpc/aix.mh: Add comment.
633
634 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
635
636 * MAINTAINERS: Add self to Write-After-Approval.
637
638 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
639
640 * MAINTAINERS: Add self to Write-After-Approval.
641
642 2004-08-30 Andrew Cagney <cagney@gnu.org>
643
644 Fix PR breakpoints/1757.
645 * infrun.c (struct execution_control_state): Replace
646 remove_breakpoints_on_following_step with
647 step_after_step_resume_breakpoint.
648 (init_execution_control_state): Update.
649 (handle_inferior_event): For signals, when stepping off a
650 breakpoint, set step_after_step_resume_breakpoint. When
651 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
652 (keep_going): Delete code handling
653 remove_breakpoints_on_following_step.
654
655 2004-08-29 David Lecomber <david@streamline-computing.com>
656
657 Fix PR gdb/648
658 * language.h (enum array_ordering): New enum.
659 * language.h (struct language_defn): New la_array_ordering
660 attribute.
661 * language.c (unknown_language_defn, auto_language_defn)
662 (local_language_defn): Ditto.
663 * ada-lang.c (ada_language_defn): Ditto.
664 * c-lang.c (c_language_defn, cplus_language_defn)
665 (asm_language_defn, minimal_language_defn): Ditto.
666 * f-lang.c (f_language_defn): Ditto.
667 * jv-lang.c (java_language_defn): Ditto.
668 * m2-lang.c (f_language_defn): Ditto.
669 * objc-lang.c (objc_language_defn): Ditto.
670 * p-lang.c (pascal_language_defn): Ditto.
671 * scm-lang.c (scm_language_defn): Ditto.
672 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
673 oriented large to small in type structure.
674 * dwarf2read.c (read_array_order): New function.
675 (read_array_type): Use read_array_order to check row/column
676 major ordering.
677
678 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
679
680 * target.c (target_resize_to_sections): Check
681 current_target.to_sections for an old value when updating.
682
683 2004-08-27 Joel Brobecker <brobecker@gnat.com>
684
685 * procfs.c (dbx_link_bpt_addr): New static global variable.
686 (dbx_link_shadow_contents): New static global variable.
687 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
688 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
689 if we just hit it.
690 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
691 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
692 from run to run.
693 (procfs_create_inferior): Remove syssgi syscall-exit notifications
694 after the inferior has been forked.
695 (remove_dbx_link_breakpoint): New function.
696 (dbx_link_addr): New function.
697 (insert_dbx_link_bpt_in_file): New function.
698 (insert_dbx_link_bpt_in_region): New function.
699 (insert_dbx_link_breakpoint): New function.
700 (proc_trace_syscalls_1): New function, extracted from
701 proc_trace_syscalls.
702 (proc_trace_syscalls): Replace extract code by call to
703 proc_trace_syscalls_1.
704 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
705 is no longer valid.
706
707 2004-08-25 Jim Blandy <jimb@redhat.com>
708
709 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
710
711 2004-08-25 Andrew Cagney <cagney@gnu.org>
712
713 * infrun.c (struct execution_control_state): Delete field
714 "stepping_through_sigtramp".
715 (init_execution_control_state): Do not set same.
716 (context_switch): Do not pass same to save_infrun_state and
717 load_infrun_state.
718 * gdbthread.h (struct thread_info): Delete field
719 stepping_through_sigtramp.
720 (save_infrun_state, load_infrun_state): Delete parameter
721 stepping_through_sigtramp.
722 * thread.c (load_infrun_state, save_infrun_state): Update.
723
724 * infrun.c: Re-indent. Move expression operators to the beginning
725 of the line. Remove long disabled #if 0 code.
726
727 2004-08-24 Andrew Cagney <cagney@gnu.org>
728
729 * doublest.h (floatformat_ieee_quad): Rename
730 floatformat_ia64_quad.
731 * doublest.c (floatformat_ieee_quad): Rename
732 floatformat_ia64_quad.
733 (_initialize_doublest): Update.
734
735 2004-08-24 Jim Blandy <jimb@redhat.com>
736
737 * dwarf2expr.h (struct dwarf_expr_context): New members
738 'num_pieces' and 'pieces', for returning the result of an
739 expression that uses DW_OP_piece.
740 (struct dwarf_expr_piece): New struct type.
741 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
742 pieces.
743 (free_dwarf_expr_context): Free pieces, if any.
744 (add_piece): New function.
745 (execute_stack_op): Implement DW_OP_piece.
746 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
747 expression is a list of pieces, print an error message.
748 (dwarf2_loc_desc_needs_frame): If the expression yields
749 pieces, and any piece is in a register, then we need a frame.
750
751 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
752 the stack until we've decided what sort of result the evaluation
753 has produced. Use separate variables, with more specific names.
754
755 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
756
757 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
758 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
759 (arm_netbsd_init_abi_common): Register them.
760
761 2004-08-22 Mark Kettenis <kettenis@gnu.org>
762
763 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
764
765 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
766 safe_frame_unwind_memory instead of target_read_memory.
767
768 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
769 Reorder includes.
770 (fetch_register, store_register): Remove prototypes.
771 (child_resume): Reorganize code and comments such that it is
772 grouped a bit more logically.
773 (attach): Explicitly compare errno against 0.
774 (detach): Likewise. Use perror_with_name instead of
775 print_sys_errmsg.
776 * Makefile.in (infptrace.o): Update dependencies.
777
778 * ia64-linux-nat.c: Update copyright year.
779 (fetch_debug_register, store_debug_register)
780 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
781 PTRACE_TYPE_ARG3.
782 * config/ia64/nm-linux.h: Update copyright year.
783 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
784
785 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
786 from CORE_ADDR to struct frame_info *. Use
787 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
788 (amd64_linux_sigtramp_p): Adjust for changed signature of
789 and64_linux_sigtramp_start
790
791 * gdb_ptrace.h: GNU/Linux.
792
793 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
794 Remove defines.
795
796 * infptrace.c: Include "gdb_assert.h".
797 (PTRACE_XFER_TYPE): Remove define.
798 (offsetof): Only define if U_REGS_OFFSET isn't defined.
799 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
800 Tweak comment.
801 (fetch_inferior_registers, store_inferior_registers): Remove
802 redundant culry braces. Tweak comment. s/regno/regnum.
803 * Makefile.in (infptrace.o): Update dependencies.
804
805 * configure.in: Change test for return type of ptrace to default
806 to `long' instead of `int'.
807 * configure: Regenerate.
808
809 2004-08-21 Mark Kettenis <kettenis@gnu.org>
810
811 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
812
813 * configure.in: Check for ttrace function.
814 * configure, config.in: Regenerate.
815
816 * gdb_ptrace.h: New file.
817 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
818 <sys/ptrace.h>.
819 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
820 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
821 (attach): Don't define PT_ATTACH.
822 (detach): Don't define PT_DETACH.
823 * Makefile.in (gdb_ptrace_h): New variable.
824 (infptrace.o): Update dependencies.
825
826 2004-08-16 Mark Kettenis <kettenis@gnu.org>
827
828 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
829 instead of `int' if not already defined.
830 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
831 PTRACE_TYPE_ARG3.
832 * infptrace.c (call_ptrace): Revert change that replaced
833 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
834
835 2004-08-15 Mark Kettenis <kettenis@gnu.org>
836
837 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
838 Remove defines.
839
840 * linux-nat.c (kill_inferior): Add missing third and fourth
841 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
842
843 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
844 PTRACE_TYPE_RET.
845
846 * proc-why.c (proc_prettyfprint_why): Fix format string.
847
848 * solib-osf.c (osf_current_sos): Remove unsused label.
849
850 * configure.in: Add <ncurses/ncurses.h> to the list of possible
851 curses headers.
852 * configure, config.in: Regenerate.
853 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
854 <ncurses/ncurses.h>.
855
856 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
857 * config/nm-nbsd.h: Update copyright year.
858 (PTRACE_ARG3_TYPE): Remove define.
859
860 * sparc-nat.c (fetch_inferior_registers)
861 (store_inferior_registers, sparc_xfer_wcookie):
862 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
863
864 * alphabsd-nat.c (fetch_inferior_registers):
865 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
866 PTRACE_TYPE_ARG3.
867 * amd64bsd-nat.c (fetch_inferior_registers)
868 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
869 PTRACE_TYPE_ARG3.
870 * armnbsd-nat.c: Update copyright year.
871 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
872 (store_register, store_regs, store_fp_register, store_fp_regs):
873 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
874 * hppabsd-nat.c (fetch_inferior_registers)
875 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
876 PTRACE_TYPE_ARG3.
877 * i386bsd-nat.c (fetch_inferior_registers)
878 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
879 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
880 * m68kbsd-nat.c (fetch_inferior_registers)
881 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
882 PTRACE_TYPE_ARG3.
883 * m88kbsd-nat.c (fetch_inferior_registers)
884 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
885 PTRACE_TYPE_ARG3.
886 * mipsnbsd-nat.c: Update copyright year.
887 (fetch_inferior_registers, store_inferior_registers):
888 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
889 * ns32knbsd-nat.c: Update copyright year.
890 (fetch_inferior_registers, store_inferior_registers):
891 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
892 * ppcnbsd-nat.c (fetch_inferior_registers):
893 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
894 PTRACE_TYPE_ARG3.
895 * ppcobsd-nat.c (fetch_inferior_registers):
896 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
897 PTRACE_TYPE_ARG3.
898 * shnbsd-nat.c: Update copyright year.
899 (fetch_inferior_registers, store_inferior_registers):
900 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
901 * vaxbsd-nat.c (fetch_inferior_registers)
902 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
903 PTRACE_TYPE_ARG3.
904
905 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
906 PTRACE_TYPE_ARG3.
907 * infptrace.c (call_ptrace, child_resume, attach, detach)
908 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
909 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
910 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
911 PTRACE_TYPE_ARG3.
912
913 2004-08-14 Mark Kettenis <kettenis@gnu.org>
914
915 * defs.h: Remove out-of-date comment.
916 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
917 [!GETENV_PROVIDED] (getenv): Remove prototype.
918
919 * standalone.c: Remove file.
920 * Makefile.in (standalone.o): Remove dependency.
921
922 * i386-linux-nat.c (dummy_sse_values): Remove function and
923 prototype.
924 (i386_linux_dr_get): Fix typo in comment.
925 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
926
927 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
928
929 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
930 from declaration.
931 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
932 from definition.
933
934 2004-08-13 Mark Kettenis <kettenis@gnu.org>
935
936 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
937 parenthesis in definition.
938 * configure: Regenerated.
939
940 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
941
942 * PROBLEMS: Mention build/1411.
943
944 2004-08-09 Robert Millan <robertmh@gnu.org>
945
946 Committed by Nathanael Nerode.
947 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
948 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
949
950 2004-08-12 Andrew Cagney <cagney@gnu.org>
951
952 * NEWS: Mention fixes in GDB 6.2.1.
953 * PROBLEMS: Remove mention of mips-irix.
954
955 2004-08-11 Joel Brobecker <brobecker@gnat.com>
956
957 * config/powerpc/xm-aix.h: Delete.
958 * config/powerpc/aix.mh (MH_FILE): Remove.
959 * config/powerpc/aix432.mh (MH_FILE): Remove.
960
961 2004-08-11 Joel Brobecker <brobecker@gnat.com>
962
963 * config/powerpc/aix.mh: Remove obsolete comment.
964 * config/powerpc/aix432.mh: Likewise.
965
966 2004-08-11 Joel Brobecker <brobecker@gnat.com>
967
968 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
969
970 2004-08-11 Joel Brobecker <brobecker@gnat.com>
971
972 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
973 this file is now empty.
974 * config/xm-aix4.h: Remove, this file is no longer included
975 anywhere.
976
977 2004-08-11 Joel Brobecker <brobecker@gnat.com>
978
979 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
980 that file is now empty.
981 (termdef): Remove prototype, function no longer used.
982
983 2004-08-11 Joel Brobecker <brobecker@gnat.com>
984
985 * doc/gdbint.texinfo (Host Definition): Remove documentation
986 for USE_O_NOCTTY, no longer used.
987 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
988 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
989
990 2004-08-11 Joel Brobecker <brobecker@gnat.com>
991
992 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
993 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
994 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
995
996 2004-08-11 Mark Kettenis <kettenis@gnu.org>
997
998 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
999 instead of FIVE_ARG_PTRACE.
1000
1001 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1002 (new_tty): Use O_NOCTTY unconditionally.
1003
1004 2004-08-10 Mark Kettenis <kettenis@gnu.org>
1005
1006 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1007 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1008 fflush on stdout.
1009
1010 2004-08-10 Joel Brobecker <brobecker@gnat.com>
1011
1012 * xcoff_symfile_finish: Replace last call to xmfree by call
1013 to xfree.
1014
1015 2004-08-10 Andrew Cagney <cagney@gnu.org>
1016
1017 * main.c (captured_main): Delete call to init_malloc.
1018 * defs.h (init_malloc): Delete declaration.
1019 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1020 (init_malloc): Delete functions.
1021
1022 * defs.h (xmfree): Delete.
1023 * utils.c (xmfree): Delete function.
1024 (xfree): Inline calls to xmfree and mfree.
1025 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1026 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1027 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1028 * somread.c (som_symfile_finish): Ditto.
1029 * objfiles.c (allocate_objfile, free_objfile):
1030 * nlmread.c (nlm_symfile_finish): Ditto.
1031 * hpread.c (hpread_symfile_finish): Ditto.
1032 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1033 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1034 * coffread.c (coff_symfile_finish): Ditto.
1035
1036 * defs.h (xmcalloc): Delete declaration.
1037 * utils.c (xmcalloc): Delete.
1038 (xcalloc): Inline calls to xmcalloc and mcalloc.
1039 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1040 xcalloc and xfree.
1041 * symtab.c (create_demangled_names_hash): Ditto.
1042
1043 * defs.h (xmrealloc): Delete.
1044 * utils.c (xmrealloc): Delete.
1045 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1046 * symmisc.c (extend_psymbol_list): Use xrealloc.
1047 * source.c (find_source_lines): Ditto.
1048 * hpread.c (hpread_lookup_type): Ditto.
1049 * dbxread.c (add_bincl_to_list): Ditto.
1050
1051 * utils.c (xmmalloc): Delete.
1052 (xmalloc): Inline xmmalloc and mmalloc calls.
1053 (msavestring): Use xmalloc.
1054 * defs.h (xmmalloc): Delete declaration.
1055 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1056 xmmalloc.
1057 * symmisc.c (extend_psymbol_list): Ditto.
1058 * symfile.c (init_psymbol_list): Ditto.
1059 * source.c (find_source_lines): Ditto.
1060 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
1061 * elfread.c (elf_symtab_read): Ditto.
1062 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
1063 * coffread.c (coff_symfile_init): Ditto.
1064
1065 2004-08-10 David Carlton <carlton@bactrian.org>
1066
1067 * MAINTAINERS: Remove David Carlton from c++ testsuite
1068 maintainers.
1069
1070 2004-08-10 Jerome Guitton <guitton@gnat.com>
1071
1072 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
1073 print a line feed before the prompt.
1074
1075 2004-08-10 Mark Kettenis <kettenis@gnu.org>
1076
1077 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
1078
1079 2004-08-09 Joel Brobecker <brobecker@gnat.com>
1080
1081 General cleanup of the AIX xm include file:
1082 * config/xm-aix4.h (fd_set): Remove undefine.
1083 Remove include of <sys/select.h>.
1084 (HAVE_TERMIO): Remove define.
1085 (USG): Likewise.
1086 (NULL): Remove redefine.
1087 (alloca): Remove #pragma.
1088 (vfork): Remove define.
1089 (termdef): Remove.
1090 (SIGWINCH_HANDLER): Remove.
1091 (SIGWINCH_HANDLER_BODY): Remove.
1092
1093 2004-08-09 Mark Kettenis <kettenis@gnu.org>
1094
1095 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
1096 GDB_OSABI_OPENBSD_ELF.
1097
1098 2004-08-07 Robert Millan <robertmh@gnu.org>
1099
1100 * bsd-kvm.c: Check for nlist.h before including it.
1101
1102 2004-08-09 Mark Kettenis <kettenis@gnu.org>
1103
1104 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
1105 sigcontext' offset consistency checks for ancient BSD.
1106
1107 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
1108
1109 * configure.in: Check for <sys/types.h>. Check return and
1110 argument types of ptrace.
1111 * configure, config.in: Regenerate.
1112
1113 2004-08-09 Jim Blandy <jimb@redhat.com>
1114
1115 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
1116 rs6000_register_sim_regno): Doc fixes.
1117
1118 2004-08-08 Joel Brobecker <brobecker@gnat.com>
1119
1120 * mips-tdep.c: Include "floatformat.h".
1121 (n32n64_floatformat_always_valid): New function.
1122 (floatformat_n32n64_long_double_big): New constant.
1123 (mips_gdbarch_init): Set size and format of long double
1124 for N32 and N64 ABIs.
1125 * Makefile.in (mips-tdep.o): Update dependencies.
1126
1127 2004-08-08 Andrew Cagney <cagney@gnu.org>
1128
1129 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
1130 print. Improve script's error messages.
1131 * gdbarch.h: Re-generate.
1132
1133 * gdbarch.sh (pformat): New function.
1134 (float_format, double_format, long_double_format): List with bit
1135 members. Use pformat when printing.
1136 * gdbarch.c, gdbarch.h: Re-generate.
1137
1138 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1139
1140 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1141 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1142 (ppcnbsd_supply_pcb): New function.
1143 (_initialize_ppcnbsd_nat): New prototype and function.
1144 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1145 (LOADLIBES): New variable.
1146 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1147
1148 2004-08-08 Andrew Cagney <cagney@gnu.org>
1149
1150 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1151 (builtin_type_ieee_double, builtin_type_ia64_quad)
1152 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1153 BE/LE floating-point types.
1154 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1155 (builtin_type_ieee_double, builtin_type_ia64_quad)
1156 (builtin_type_ia64_spill): Declare.
1157 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1158 (floatformat_ieee_double, floatformat_arm_ext)
1159 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1160 of LE/BE floatformats.
1161 * doublest.h: (struct floatformat, floatformat_ieee_single)
1162 (floatformat_ieee_double, floatformat_arm_ext)
1163 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1164
1165 2004-08-08 Mark Kettenis <kettenis@gnu.org>
1166
1167 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1168
1169 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1170 instead of regcache_raw_supply when storing the registers.
1171
1172 * i386gnu-nat.c: Update copyright year.
1173 (gnu_store_registers): Don't use deprecated_registers and
1174 deprecated_registers_valid. Use regcache_valid_p and
1175 regcache_raw_supply instead.
1176
1177 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1178 frame_pc_unwind.
1179
1180 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1181 variables. Incapitalized "process".
1182
1183 * configure.in: Add cursesX to the list of possible curses libs.
1184 Add cursesX.h to the list of possible curses headers.
1185 * configure, config.in: Regenerate.
1186
1187 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1188
1189 * configure.in: Test for struct lwp in <sys/lwp.h>.
1190 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1191 the offset of l_addr in struct lwp.
1192
1193 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1194
1195 * bsd-kvm.c: Include "gdbcore.h"
1196 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
1197
1198 2004-08-07 Andrew Cagney <cagney@gnu.org>
1199
1200 * gdbtypes.c (build_flt, build_complex): New functions.
1201 (gdbtypes_post_init): Use.
1202
1203 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
1204
1205 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
1206 through to builtin_type_uint128.
1207
1208 * c-exp.y: Use builtin_type function to obtain builtin types.
1209
1210 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
1211 builtin_uint128.
1212 * gdbtypes.c (gdbtypes_post_init): Update.
1213 (build_gdbtypes): Move initialization of builtin_type_int0
1214 through to builtin_type_uint128 from here ...
1215 (_initialize_gdbtypes): ... to here.
1216 * d10v-tdep.c (d10v_register_type): Update.
1217
1218 * doublest.c: Update copyright.
1219 (floatformat_from_length): Call error when floatformat is NULL.
1220 (extract_floating_by_length): Remove NULL fmt check.
1221 (store_floating_by_length): Ditto.
1222
1223 2004-08-07 Andrew Cagney <cagney@gnu.org>
1224
1225 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
1226 that the register is valid.
1227
1228 2004-08-05 Mark Kettenis <kettenis@chello.nl>
1229
1230 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1231 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
1232 struct frame_info *. Use safe_frame_unwind_memory instead of
1233 deprecated_read_memory_nobpt.
1234 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
1235 changed signature of i386_linux_sigtramp_start and
1236 i386_linux_rt_sigtramp_start.
1237
1238 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
1239 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
1240 instead of deprecated_read_memory_nobpt.
1241 (i386nbsd_sigtramp_p): Adjust for changed signature of
1242 i386nbsd_sigtramp_offset.
1243
1244 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
1245 safe_frame_unwind_memory instead of target_read_memory.
1246
1247 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1248 !NO_SYS_FILE.
1249 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
1250 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
1251 (_initialize_kernel_u_addr): Remove prototype and function.
1252 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1253 !NO_SYS_FILE.
1254 * xcoffread.c: Likewise.
1255
1256 2004-08-06 Mark Kettenis <kettenis@gnu.org>
1257
1258 * vax-nat.c: New file.
1259 * vaxbsd-nat.c: Tweak comment.
1260 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
1261 vaxnbsd-tdep.c.
1262 (vax-nat.o): New dependency.
1263 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
1264 (vax-*-ultrix2*): Remove.
1265 * config/vax/vax.mh: New file.
1266 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
1267 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
1268 (vax_register_u_addr): New prototype.
1269 (REGISTER_U_ADDR): Define using vax_register_u_addr.
1270 * config/vax/vaxult2.mh: Remove file.
1271 * config/vax/vaxult.mh: Remove file.
1272 * config/vax/vaxbsd.mh: Remove file.
1273 * config/vax/vax.mt (TM_FILE): Remove.
1274 * config/vax/tm-vaxbsd.h: Remove file.
1275
1276 2004-08-06 Joel Brobecker <brobecker@gnat.com>
1277
1278 * aix-thread.c (get_signaled_thread): New function.
1279 (iter_trap): Delete, no longer used.
1280 (iter_tid): New function.
1281 (pd_update): Find the thread that received the SIGTRAP signal
1282 by first locating the kernel thread, and then finding its
1283 associated thread.
1284
1285 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
1286
1287 * lin-lwp.c (child_wait): Continue inferior after processing
1288 PTRACE_EVENT_CLONE event.
1289
1290 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
1291
1292 * MAINTAINERS: Add self to Write-After-Approval.
1293
1294 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
1295
1296 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
1297 libunwind-xxxx.so" where xxxx is UNW_TARGET.
1298
1299 2004-08-05 Andrew Cagney <cagney@gnu.org>
1300
1301 * config/xm-sysv4.h: Delete file.
1302 * config/mips/xm-irix5.h: Delete file.
1303 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
1304 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
1305 * config/ia64/xm-aix.h: Delete file.
1306 * config/ia64/aix.mh (XM_FILE): Delete.
1307 * config/pa/xm-hppah.h: Delete file.
1308 * config/pa/hpux11w.mh (XM_FILE): Delete.
1309 * config/pa/hpux11.mh (XM_FILE): Delete.
1310 * config/pa/hpux1020.mh (XM_FILE): Delete.
1311 * config/pa/hppahpux.mh (XM_FILE): Delete.
1312
1313 * config/alpha/xm-alphalinux.h: Delete file.
1314 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
1315 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
1316 * config/alpha/xm-alphaosf.h: Delete file.
1317 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
1318 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
1319 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
1320 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
1321
1322 * config/i386/xm-i386v.h: Delete file.
1323 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
1324 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
1325 * config/i386/xm-i386sco.h: Delete file.
1326 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
1327 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
1328 * config/i386/xm-i386v4.h: Delete file.
1329 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
1330 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
1331 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
1332 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
1333
1334 * config/vax/xm-vax.h: Delete file.
1335 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1336 * config/vax/xm-vaxult2.h: Delete file.
1337 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1338 * config/vax/vaxult2.mh (XM_FILE): Delete.
1339 * config/vax/xm-vaxult.h: Delete file.
1340 * config/vax/vaxult.mh (XM_FILE): Delete.
1341 * config/vax/xm-vaxbsd.h: Delete file.
1342 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1343
1344 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1345 * gdbarch.h, gdbarch.c: Re-generate.
1346 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1347 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1348 * frame.h: Delete deprecated_read_fp from comments.
1349 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1350 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1351
1352 2004-08-04 Mark Kettenis <kettenis@gnu.org>
1353
1354 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
1355 trampoline in OpenBSD 3.5-current.
1356
1357 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
1358 SSE registers.
1359
1360 * Makefile.in: Remove embedded page breaks.
1361
1362 2004-08-04 Jim Blandy <jimb@redhat.com>
1363
1364 * regcache.c (regcache_raw_read): Assert that, after calling
1365 target_fetch_registers, the register we're reading is cached.
1366
1367 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1368 a call to 'internal_error', with a more helpful error message.
1369 * rs6000-tdep.c (e500_pseudo_register_read,
1370 e500_pseudo_register_write, rs6000_store_return_value): Same.
1371
1372 2004-08-04 Andrew Cagney <cagney@gnu.org>
1373
1374 * Makefile.in: Update dependencies.
1375
1376 2004-08-04 Jim Blandy <jimb@redhat.com>
1377
1378 Change the layout of the PowerPC E500 raw register cache to allow
1379 the lower 32-bit halves of the GPRS to be their own raw registers,
1380 not pseudoregisters.
1381 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1382 add ppc_ev0_upper_regnum flag.
1383 * rs6000-tdep.c: #include "reggroups.h".
1384 (spe_register_p): Recognize the ev upper half registers as SPE
1385 registers.
1386 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1387 registers.
1388 (e500_move_ev_register): New function.
1389 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1390 vector registers are the pseudo-registers now, formed by splicing
1391 together the gprs and the upper-half registers.
1392 (e500_register_reggroup_p): New function.
1393 (P): Macro deleted.
1394 (P8, A4): New macro.
1395 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1396 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1397 macros.
1398 (registers_e500): Rearrange register set so that the raw register
1399 set contains 32-bit GPRs and upper-half registers, and the SPE
1400 vector registers become pseudo-registers.
1401 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1402 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1403 register numbers are now the same for the E500 as they are for
1404 other PowerPC variants. Register e500_register_reggroup_p as the
1405 register group function for the E500.
1406 * Makefile.in (rs6000-tdep.o): Update dependencies.
1407
1408 Adapt PPC E500 native support to the new raw regcache layout.
1409 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1410 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1411 (fetch_spe_register, store_spe_register): Handle fetching/storing
1412 all the SPE registers at once, if regno == -1. These now take
1413 over the job of fetch_spe_registers and store_spe_registers.
1414 (fetch_spe_registers, store_spe_registers): Deleted.
1415 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1416 unconditionally; they're always raw. Fetch/store SPE upper half
1417 registers, if present, instead of ev registers.
1418 (fetch_register, store_register): Remove sanity checks: gprs are
1419 never pseudo-registers now, so we never need to even mention any
1420 registers that are ever pseudoregisters.
1421
1422 Use a fixed register numbering when communicating with the PowerPC
1423 simulator.
1424 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1425 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1426 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1427 New functions.
1428 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1429 init_sim_regno_table.
1430 * Makefile.in (gdb_sim_ppc_h): New variable.
1431 (rs6000-tdep.o): Update dependencies.
1432
1433 2004-08-02 Andrew Cagney <cagney@gnu.org>
1434
1435 * cris-tdep.c (cris_register_size): Restore function, still used
1436 locally.
1437
1438 * gdbarch.sh (deprecated_target_read_fp)
1439 (deprecated_frame_locals_address, deprecated_frame_args_address)
1440 (deprecated_frame_chain_valid, deprecated_frame_chain)
1441 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1442 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1443 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1444 * gdbarch.h, gdbarch.c: Re-generate.
1445 * regcache.c (deprecated_read_fp): Do not call
1446 DEPRECATED_TARGET_READ_FP_P.
1447 * infcmd.c (default_print_registers_info): Do not call
1448 DEPRECATED_DO_REGISTERS_INFO.
1449 * frame-base.c (default_frame_locals_address): Do not call
1450 DEPRECATED_FRAME_LOCALS_ADDRESS.
1451 (default_frame_args_address): Do not call
1452 DEPRECATED_FRAME_ARGS_ADDRESS.
1453
1454 * gdbarch.sh (deprecated_register_raw_size)
1455 (deprecated_register_virtual_size:int): Delete.
1456 * gdbarch.h, gdbarch.c: Re-generate.
1457 * cris-tdep.c (cris_register_size): Delete.
1458 (cris_gdbarch_init): Update.
1459 * alpha-tdep.c (alpha_register_raw_size)
1460 (alpha_register_virtual_size): Delete.
1461 (alpha_gdbarch_init): Update.
1462
1463 * gdbarch.sh (deprecated_register_virtual_type)
1464 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1465 (deprecated_dummy_write_sp): Delete.
1466 * gdbarch.h, gdbarch.c: Re-generate.
1467
1468 * gdbarch.sh (deprecated_register_bytes): Delete.
1469 * gdbarch.h, gdbarch.c: Re-generate.
1470 * regcache.c (deprecated_register_bytes): New function.
1471 * regcache.h (deprecated_register_bytes): Declare.
1472 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1473 * v850-tdep.c (v850_gdbarch_init): Update.
1474 * sh64-tdep.c (sh64_gdbarch_init): Update.
1475 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1476 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1477 * mcore-tdep.c (mcore_gdbarch_init): Update.
1478 * cris-tdep.c (cris_gdbarch_init): Update.
1479 * arm-tdep.c (arm_gdbarch_init): Update.
1480 * remote.c (init_remote_state): Update.
1481 * remote-vx.c (vx_prepare_to_store): Update.
1482 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1483 * irix5-nat.c (fetch_core_registers): Update.
1484 * cris-tdep.c (cris_register_bytes_ok): Update.
1485 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1486
1487 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1488 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1489 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1490 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1491 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1492 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1493 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1494 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1495 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1496 with mips_insn16 and mips_insn32.
1497
1498 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1499 * rs6000-tdep.c (rs6000_push_dummy_call)
1500 (rs6000_extract_return_value): Use register_size.
1501 * xstormy16-tdep.c (xstormy16_get_saved_register)
1502 (xstormy16_extract_return_value): Ditto.
1503 * valops.c (value_assign): Ditto.
1504 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1505 * v850-tdep.c (v850_extract_return_value): Ditto.
1506 * tracepoint.c (collect_symbol): Ditto.
1507 * target.c (debug_print_register): Ditto.
1508 * stack.c (frame_info): Ditto.
1509 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1510 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1511 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1512 (store_register_using_P): Ditto.
1513 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1514 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1515 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1516 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1517 * regcache.c (deprecated_read_register_bytes)
1518 (deprecated_write_register_bytes, read_register)
1519 (write_register): Ditto.
1520 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1521 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1522 * monitor.c (monitor_supply_register, monitor_fetch_register)
1523 (monitor_store_register): Ditto.
1524 * mn10300-tdep.c (mn10300_pop_frame_regular)
1525 (mn10300_print_register): Ditto.
1526 * mipsv4-nat.c (fill_fpregset): Ditto.
1527 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1528 (mips64_fill_fpregset): Ditto.
1529 * mi/mi-main.c (register_changed_p, get_register)
1530 (mi_cmd_data_write_register_values): Ditto.
1531 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1532 * irix5-nat.c (fill_gregset, fetch_core_registers):
1533 * infrun.c (write_inferior_status_register): Ditto.
1534 * infptrace.c (fetch_register, store_register): Ditto.
1535 * infcmd.c (default_print_registers_info): Ditto.
1536 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1537 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1538 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1539 * hpux-thread.c (hpux_thread_fetch_registers)
1540 (hpux_thread_store_registers): Ditto.
1541 * hppah-nat.c (store_inferior_registers, fetch_register):
1542 * findvar.c (value_from_register): Ditto.
1543 * dve3900-rom.c (fetch_bitmapped_register):
1544 * cris-tdep.c (cris_gdbarch_init): Ditto.
1545 * alpha-tdep.h: Ditto.
1546 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1547
1548 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1549 DEPRECATED_REGISTER_RAW_SIZE from comments.
1550 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1551 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1552 DEPRECATED_REGISTER_RAW_SIZE.
1553 * findvar.c (value_of_register): Simplify by assuming that the
1554 registers raw and virtual sizes are identical.
1555 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1556 comment.
1557 * arch-utils.c (generic_register_size): Simplify by assuming
1558 register_type.
1559
1560 * regcache.c (legacy_read_register_gen, real_register)
1561 (legacy_write_register_gen): Delete, not used.
1562
1563 * regcache.c (struct regcache_descr): Delete legacy_p.
1564 (init_legacy_regcache_descr): Delete function.
1565 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1566 Do not use deprecated register functions.
1567 (regcache_raw_read, deprecated_write_register_gen):
1568 (deprecated_read_register_gen, regcache_raw_write): Delete code
1569 predicated on legacy_p.
1570 (register_size): Delete check against register raw size.
1571
1572 * cris-tdep.c (cris_register_type): Replace
1573 cris_register_virtual_type.
1574 (cris_gdbarch_init): Update, set register_type.
1575
1576 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1577 * gdbarch.h, gdbarch.c: Re-generate.
1578 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1579 (arm_gdbarch_init) Do not set frameless function invocation.
1580 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1581 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1582 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1583 (frv_gdbarch_init): Do not set frameless function invocation.
1584 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1585 * sh-tdep.c (sh_gdbarch_init): Ditto.
1586 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1587 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1588 * avr-tdep.c (avr_gdbarch_init): Ditto.
1589
1590 * blockframe.c (legacy_frame_chain_valid): Delete function.
1591
1592 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1593 and pc. Update comments.
1594 (pc_in_dummy_frame): Delete function.
1595 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1596 use the "id".
1597 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1598 call_hi, top and pc, use the id.
1599 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1600
1601 * dummy-frame.c: Include "gdb_string.h".
1602 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1603 (generic_save_dummy_frame_tos): Delete.
1604 (dummy_frame_push): New function, replaces above.
1605 * dummy-frame.h: Update copyright.
1606 (dummy_frame_push): Declare.
1607 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1608 (generic_save_call_dummy_addr): Delete declarations.
1609 * infcall.c: Include "dummy-frame.h".
1610 (call_function_by_hand): Add locals caller_regcache,
1611 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1612 with call to frame_save_as_regcache plus cleanup. Delete calls to
1613 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1614 Move clear_proceed_status to just before the resume, add call to
1615 dummy_frame_push (discard cleanup).
1616 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1617 (dummy-frame.o): Add $(gdb_string_h).
1618
1619 2004-08-01 Andrew Cagney <cagney@gnu.org>
1620
1621 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1622 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1623 * dummy-frame.c (find_dummy_frame): Delete.
1624 (struct dummy_frame_cache, dummy_frame_sniffer)
1625 (dummy_frame_prev_register, dummy_frame_this_id)
1626 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1627 frame unwinder using a dummy_frame_cache.
1628
1629 2004-08-01 Andrew Cagney <cagney@gnu.org>
1630
1631 * frame.h (frame_save_as_regcache): Declare.
1632 * frame.c (frame_save_as_regcache): New function.
1633 (do_frame_read_register): Replace do_frame_unwind_register.
1634 (frame_pop): Use frame_save_as_regcache.
1635 * dummy-frame.c (generic_push_dummy_frame): Use
1636 frame_save_as_regcache.
1637
1638 2004-08-01 Joel Brobecker <brobecker@gnat.com>
1639
1640 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1641 file as included until we record the first line in the linetable.
1642
1643 2004-08-01 Andrew Cagney <cagney@gnu.org>
1644
1645 * frame.h (deprecated_pop_dummy_frame)
1646 (deprecated_read_register_dummy)
1647 (deprecated_generic_find_dummy_frame): Delete.
1648 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1649 (deprecated_read_register_dummy)
1650 (deprecated_find_dummy_frame_regcache)
1651 (discard_innermost_dummy)
1652 (deprecated_pop_dummy_frame): Delete.
1653 (dummy_frame_this_id): Simplify.
1654 (struct dummy_frame): Delete "fp" and "sp".
1655 (find_dummy_frame): Simplify.
1656 (generic_push_dummy_frame): Do not set "fp" or "sp".
1657 (fprint_dummy_frames): Do not print "fp" and "sp"
1658
1659 2004-08-01 Mark Kettenis <kettenis@gnu.org>
1660
1661 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1662 (struct i386_insn): New structure.
1663 (i386_match_insn): New function.
1664 (i386_frame_setup_skip_insns): New variable.
1665 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1666 array i386_frame_setup_insns of instructions that should be
1667 skipped inside the frame setup sequence.
1668
1669 2004-08-01 Andrew Cagney <cagney@gnu.org>
1670
1671 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1672 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1673 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1674 * stack.c (frame_info): Delete references to
1675 DEPRECATED_FRAME_INIT_SAVED_REGS and
1676 deprecated_get_frame_saved_regs.
1677 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1678 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1679 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1680 (frame_unwind_register_signed)
1681 (frame_unwind_register_unsigned)
1682 (frame_unwind_unsigned_register): Use register_size.
1683 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1684 (deprecated_frame_xmalloc_with_cleanup)
1685 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1686 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1687
1688 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1689 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1690 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1691 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1692
1693 * infcall.c (call_function_by_hand): Do not use
1694 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1695 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1696 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1697 DEPRECATED_STACK_ALIGN.
1698
1699 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1700
1701 Committed by Andrew Cagney.
1702 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1703
1704 2004-08-01 Andrew Cagney <cagney@gnu.org>
1705
1706 * mips-tdep.c (mips16_frame_cache)
1707 (mips16_frame_this_id, mips16_frame_prev_register)
1708 (mips16_frame_unwind, mips16_frame_sniffer)
1709 (mips16_frame_base_address, mips16_frame_base)
1710 (mips16_frame_base_sniffer, mips32_frame_cache)
1711 (mips32_frame_this_id, mips32_frame_prev_register)
1712 (mips32_frame_unwind, mips32_frame_sniffer)
1713 (mips32_frame_base_address, mips32_frame_base)
1714 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1715 separate heuristic mips16 and mips32 unwinders.
1716 (mips_stub_frame_cache, mips_stub_frame_this_id)
1717 (mips_stub_frame_prev_register)
1718 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1719 (mips_stub_frame_base_address, mips_stub_frame_base)
1720 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1721 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1722 match true mdebug frames.
1723 (non_heuristic_proc_desc): Add forward declaration.
1724
1725 2004-08-01 Andrew Cagney <cagney@gnu.org>
1726
1727 * config/mips/tm-irix6.h: Delete file.
1728 * config/mips/tm-irix5.h: Delete file.
1729 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1730 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1731
1732 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1733 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1734 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1735 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1736 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1737 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1738 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1739 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1740 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1741 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1742 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1743 (TARGET_SIGNAL_RAW_VALUES): Delete.
1744 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1745 Delete.
1746 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1747 (TARGET_HW_WATCH_LIMIT): Delete.
1748 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1749 * minimon.h: Delete file.
1750
1751 * trad-frame.c (trad_frame_get_this_base)
1752 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1753 functions.
1754 * trad-frame.h (trad_frame_set_this_base)
1755 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1756
1757 2004-07-31 Andrew Cagney <cagney@gnu.org>
1758
1759 * trad-frame.c (trad_frame_get_prev_register): Rename
1760 trad_frame_get_prev_register.
1761 * vax-tdep.c (vax_frame_prev_register): Update.
1762 * trad-frame.h: Update.
1763 * trad-frame.c (trad_frame_get_register): Update.
1764 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1765 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1766 Update.
1767 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1768 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1769 Update.
1770 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1771 Update.
1772 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1773 Update.
1774 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1775 Update.
1776 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1777 Update.
1778 * s390-tdep.c (s390_frame_prev_register)
1779 (s390_stub_frame_prev_register)
1780 (s390_sigtramp_frame_prev_register): Update.
1781 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1782 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1783 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1784 * m88k-tdep.c (m88k_frame_prev_register)
1785 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1786 * m32r-tdep.c (m32r_frame_prev_register): Update.
1787 * hppa-tdep.c (hppa_frame_prev_register_helper)
1788 * frv-tdep.c (frv_frame_prev_register): Update.
1789 * d10v-tdep.c (d10v_frame_prev_register): Update.
1790 * cris-tdep.c (cris_frame_prev_register): Update.
1791 * avr-tdep.c (avr_frame_prev_register): Update.
1792 * arm-tdep.c (arm_prologue_prev_register)
1793 (arm_sigtramp_prev_register): Update.
1794
1795 2004-07-31 Andrew Cagney <cagney@gnu.org>
1796
1797 * frame.h (legacy_saved_regs_unwind)
1798 (legacy_frame_chain_valid, legacy_frame_p)
1799 (enum frame_type): Delete UNKNOWN_FRAME.
1800 * dummy-frame.c (dummy_frame_this_id): Simplify.
1801 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
1802 * frame.c (struct frame_info): Delete the field "type".
1803 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1804 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1805 (legacy_saved_regs_unwind, legacy_frame_p)
1806 (frame_type_from_pc): Delete.
1807 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1808 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1809
1810 2004-07-31 Mark Kettenis <kettenis@gnu.org>
1811
1812 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1813 indentation.
1814
1815 * mips-nat.c: Remove file.
1816 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1817 (mips-nat.o): Remove dependency.
1818
1819 * infptrace.c: Update copyright year.
1820 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1821 explicitly setting the buffer to all zeroes.
1822
1823 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1824 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1825
1826 2004-07-30 Andrew Cagney <cagney@gnu.org>
1827
1828 * GDB 6.2 released from gdb_6_2-branch.
1829
1830 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1831
1832 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1833
1834 * exec.c (exec_file_attach):
1835 * nto-tdep.c (nto_find_and_open_solib):
1836 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1837 * solib.c (solib_open):
1838 * somsolib.c (som_solib_sizeof_symbol_table):
1839 * source.c (is_regular_file, openp, open_source_file):
1840 * symfile.c (symfile_bfd_open):
1841 * wince.c (upload_to_device): Differentiate between the search for
1842 binary and source files.
1843
1844 2004-07-30 Andrew Cagney <cagney@gnu.org>
1845
1846 * complaints.c (_initialize_complaints): Pass NULL to
1847 add_setshow_zinteger_cmd for help_doc.
1848 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1849
1850 2004-07-30 Andrew Cagney <cagney@gnu.org>
1851
1852 Fix PR i18n/761.
1853 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1854 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1855 $(PACKAGE).pot and update-po.
1856 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1857 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1858 (update-po): New rules.
1859 (localedir): Define using autoconf.
1860 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1861 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1862 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1863 * configure.in: Generate CATALOGS and LINGUAS from contents of
1864 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1865 * configure: Re-generate.
1866 * po/gdbtext: New file
1867
1868 2004-07-30 Jerome Guitton <guitton@gnat.com>
1869
1870 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1871 order.
1872
1873 2004-07-30 David Lecomber <dsl@sources.redhat.com>
1874
1875 * dwarf2read.c (read_file_scope): Set producer if attribute
1876 present.
1877 (struct dwarf2_cu): Added new member producer.
1878
1879 2004-07-30 Jerome Guitton <guitton@gnat.com>
1880
1881 * inflow.c (kill_command): release file handles in BFD.
1882 * exec.c (exec_file_attach): Ditto.
1883 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1884
1885 2004-07-29 Andrew Cagney <cagney@gnu.org>
1886
1887 * PROBLEMS (mips-irix): Note that it is broken.
1888
1889 2004-07-29 Andrew Cagney <cagney@gnu.org>
1890
1891 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1892 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1893
1894 * config/xm-nbsd.h: Delete file.
1895 * config/arm/xm-nbsd.h: Delete file.
1896 * config/i386/xm-nbsd.h: Delete file.
1897 * config/ns32k/xm-nbsd.h: Delete file.
1898 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1899 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1900 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1901 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1902 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1903
1904 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1905 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1906 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1907 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1908 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1909 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1910
1911 * config/powerpc/xm-linux.h: Delete empty file.
1912 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1913 * config/powerpc/linux.mh (XM_FILE): Delete.
1914 * config/m68k/xm-linux.h: Delete empty file.
1915 * config/m68k/linux.mh (XM_FILE): Delete.
1916 * config/ia64/xm-linux.h: Delete empty file.
1917 * config/ia64/linux.mh (XM_FILE): Delete.
1918 * config/arm/xm-linux.h: Delete empty file.
1919 * config/arm/linux.mh (XM_FILE): Delete.
1920
1921 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1922 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1923 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1924 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1925 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1926 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1927 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1928 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1929
1930 * config/m68k/xm-m68k.h: Delete file.
1931 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1932 copyright.
1933 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1934 * config/pa/xm-linux.h: Delete empty file.
1935 * config/pa/linux.mh (XM_FILE): Delete.
1936 * config/i386/xm-i386.h: Delete empty file.
1937 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1938 "i386/xm-i386.h".
1939 * config/i386/obsdaout.mh (XM_FILE): Delete.
1940 * config/i386/obsd64.mh (XM_FILE): Delete.
1941 * config/i386/fbsd64.mh (XM_FILE): Delete.
1942 * config/i386/nto.mh (XM_FILE): Delete.
1943 * config/i386/obsd.mh (XM_FILE): Delete.
1944 * config/i386/linux64.mh (XM_FILE): Delete.
1945 * config/i386/linux.mh (XM_FILE): Delete.
1946 * config/i386/i386sol2.mh (XM_FILE): Delete.
1947 * config/i386/i386gnu.mh (XM_FILE): Delete.
1948 * config/i386/fbsd.mh (XM_FILE): Delete.
1949 * config/i386/nbsd64.mh (XM_FILE): Delete.
1950
1951 2004-07-29 Andrew Cagney <cagney@gnu.org>
1952
1953 * config/pa/xm-linux.h: Do not include "floatformat.h".
1954 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1955 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1956 * config/i386/xm-i386.h: Do not include "floatformat.h".
1957 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1958 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1959 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1960 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1961 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1962 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1963 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1964 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1965 * configure, config.in: Regenerate.
1966 * configure.host (gdb_host_float_format, gdb_host_double_format)
1967 (gdb_host_long_double_format): Set according to the host.
1968
1969 2004-07-29 Andrew Cagney <cagney@gnu.org>
1970
1971 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1972
1973 2004-07-28 Andrew Cagney <cagney@gnu.org>
1974
1975 * PROBLEMS: Mention threads/1650.
1976 * NEWS: Mention the NPTL fix.
1977
1978 2004-07-28 Andrew Cagney <cagney@gnu.org>
1979
1980 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1981 (add_setshow_cmd_full): Make static.
1982 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1983 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1984 * cli/cli-decode.c (add_setshow_filename_cmd)
1985 (add_setshow_string_cmd): New functions.
1986 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1987 * mips-tdep.c (_initialize_mips_tdep): Update.
1988 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1989 * cli/cli-logging.c (_initialize_cli_logging): Update.
1990 * complaints.c (_initialize_complaints): Update.
1991 * remote.c (_initialize_remote): Update.
1992
1993 2004-07-28 Andrew Cagney <cagney@gnu.org>
1994
1995 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1996 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1997 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1998 print parameters. Make string parameters constant.
1999 * command.h: Update. Update copyright.
2000 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2001 * observer.c (_initialize_observer): Ditto.
2002 * frame.c (_initialize_frame): Ditto.
2003 * complaints.c (_initialize_complaints): Ditto.
2004 * maint.c (_initialize_maint_cmds): Ditto.
2005 * target.c (initialize_targets): Ditto.
2006 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2007 * infcall.c (_initialize_infcall): Ditto.
2008 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2009 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2010 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2011 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2012 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2013
2014 2004-07-28 Andrew Cagney <cagney@gnu.org>
2015
2016 * gdbtypes.c (lookup_primitive_typename): Delete function.
2017 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2018 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2019 * gdbtypes.c (lookup_typename): Ditto.
2020 * f-exp.y (yylex): Ditto.
2021 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2022
2023 * scm-lang.c (c_builtin_types): Delete extern declaration.
2024 (scm_language_defn): Replace
2025 string_char_type and primitive_type_vector with
2026 la_language_arch_info.
2027 * jv-lang.c (java_language_defn): Replace
2028 string_char_type and primitive_type_vector with
2029 la_language_arch_info.
2030 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2031 c_builtin_types in comment.
2032 * c-lang.h (struct language_arch_info): Declare opaque.
2033 (c_language_arch_info): Declare.
2034 (c_builtin_types): Delete declaration.
2035 * c-lang.c (c_language_arch_info): Set string_char_type to
2036 builtin_char, not builtin_true_char. Make global.
2037 (c_builtin_types): Delete array.
2038 (asm_language_defn, minimal_language_defn): Replace
2039 string_char_type and primitive_type_vector with
2040 la_language_arch_info.
2041
2042 2004-07-28 Andrew Cagney <cagney@gnu.org>
2043
2044 * gdbtypes.h (struct builtin_type): Rename true_char to
2045 builtin_true_char.
2046 * gdbtypes.c (gdbtypes_post_init): Update.
2047 * c-lang.c (arch_info): New function.
2048 (enum c_primitive_types): New enum.
2049 (c_language_defn): Instead of string_char_type and
2050 primitive_type_vector set la_language_arch_info.
2051
2052 2004-07-28 Andrew Cagney <cagney@gnu.org>
2053
2054 * language.h (struct language_arch_info): Fix typo
2055 s/primative/primitive/.
2056 * gdbtypes.c (lookup_primitive_typename): Ditto.
2057 * language.c (language_lookup_primitive_type_by_name)
2058 (unknown_language_arch_info): Ditto.
2059
2060 2004-07-27 Andrew Cagney <cagney@gnu.org>
2061
2062 * defs.h (enum language): Add nr_languages.
2063 * language.h (struct language_arch_info): Define.
2064 (struct language_defn): Add la_language_arch_info.
2065 (language_lookup_primative_type_by_name): Declare.
2066 (language_string_char_type): Declare.
2067 * language.c (_initialize_language, language_gdbarch_post_init)
2068 (struct language_gdbarch, language_gdbarch_data): Implement
2069 per-architecture language information.
2070 (unknown_language_arch_info, language_string_char_type)
2071 (language_lookup_primative_type_by_name): New functions.
2072 (unknown_language_defn, auto_language_defn)
2073 (local_language_defn): Set la_language_arch_info to
2074 unknown_language_arch_info.
2075 (unknown_builtin_types): Delete.
2076 * gdbtypes.c (lookup_primitive_typename): Use
2077 language_lookup_primative_type_by_name.
2078 (create_string_type): Use language_string_char_type.
2079 * values.c (value_from_string): Use language_string_char_type.
2080 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
2081 * p-lang.c (pascal_language_defn): Ditto.
2082 * m2-lang.c (m2_language_defn): Ditto.
2083 * jv-lang.c (java_language_defn): Ditto.
2084 * objc-lang.c (objc_language_defn): Ditto.
2085 * f-lang.c (f_language_defn): Ditto.
2086 * c-lang.c (c_language_defn, cplus_language_defn)
2087 (asm_language_defn, minimal_language_defn): Ditto.
2088
2089 2004-07-27 Andrew Cagney <cagney@gnu.org>
2090
2091 * gdbtypes.h (struct builtin_type): Declare.
2092 (builtin_type): Declare.
2093 * d10v-tdep.c (d10v_register_type): Use builtin_type.
2094 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
2095 (gdbtypes_post_init): New function.
2096 (builtin_type): New function.
2097
2098 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
2099
2100 * remote-m32r-sdi.c: Fix breakpoint bug.
2101 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
2102 recv_char_data, recv_long_data): New functions to replace communication
2103 sequences.
2104
2105 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
2106
2107 Document PR threads/1650.
2108 * PROBLEMS (Threads): Document problem with many threads
2109
2110 2004-07-26 Andrew Cagney <cagney@gnu.org>
2111
2112 * gdb-mi.el: Move from here ...
2113 * mi/gdb-mi.el: ... to here.
2114
2115 2004-07-26 Andrew Cagney <cagney@gnu.org>
2116
2117 Problem reported by Ashley Pittman <ashley@quadrics.com>.
2118 * main.c (captured_main): When in batch mode always detach.
2119
2120 2004-07-26 Andrew Cagney <cagney@gnu.org>
2121
2122 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
2123 and h8300 as broken.
2124 * NEWS: END-OF-LIFE frame compatibility module.
2125 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
2126 specific comments.
2127
2128 2004-07-26 Andrew Cagney <cagney@gnu.org>
2129
2130 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
2131 * xcoffsolib.c (_initialize_xcoffsolib): Update.
2132 * wince.c (_initialize_wince): Update.
2133 * win32-nat.c (_initialize_win32_nat): Update.
2134 * varobj.c (_initialize_varobj): Update.
2135 * valops.c (_initialize_valops): Update.
2136 * utils.c (initialize_utils, initialize_utils): Update.
2137 * tui/tui-win.c (_initialize_tui_win): Update.
2138 * top.c (init_main): Update.
2139 * symfile.c (_initialize_symfile): Update.
2140 * source.c (_initialize_source): Update.
2141 * somsolib.c (_initialize_som_solib): Update.
2142 * solib.c (_initialize_solib): Update.
2143 * solib-frv.c (_initialize_frv_solib): Update.
2144 * serial.c (_initialize_serial): Update.
2145 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2146 * remote.c (_initialize_remote, _initialize_remote): Update.
2147 * remote-vx.c (_initialize_vx): Update.
2148 * remote-utils.c (_initialize_sr_support): Update.
2149 * remote-sds.c (_initialize_remote_sds): Update.
2150 * remote-mips.c (_initialize_remote_mips): Update.
2151 * remote-e7000.c (_initialize_remote_e7000): Update.
2152 * proc-api.c (_initialize_proc_api): Update.
2153 * printcmd.c: Update.
2154 * parse.c (_initialize_parse): Update.
2155 * pa64solib.c (_initialize_pa64_solib): Update.
2156 * p-valprint.c (_initialize_pascal_valprint): Update.
2157 * monitor.c (_initialize_remote_monitors): Update.
2158 * mips-tdep.c (_initialize_mips_tdep): Update.
2159 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2160 * maint.c (_initialize_maint_cmds): Update.
2161 * lin-lwp.c (_initialize_lin_lwp): Update.
2162 * language.c (_initialize_language): Update.
2163 * kod.c (_initialize_kod): Update.
2164 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2165 * i386-tdep.c (_initialize_i386_tdep): Update.
2166 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2167 * gdbarch.sh: Update.
2168 * gdbarch.c: Re-generate.
2169 * gdb-events.sh: Update.
2170 * gdb-events.c: Re-generate.
2171 * frame.c (_initialize_frame): Update.
2172 * exec.c: Update.
2173 * demangle.c (_initialize_demangler): Update.
2174 * dcache.c (_initialize_dcache): Update.
2175 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2176 * cp-valprint.c (_initialize_cp_valprint): Update.
2177 * corefile.c (_initialize_core): Update.
2178 * command.h: Update.
2179 * cli/cli-decode.h: Update.
2180 * cli/cli-cmds.c (init_cli_cmds): Update.
2181 * charset.c (_initialize_charset): Update.
2182 * breakpoint.c (_initialize_breakpoint): Update.
2183 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2184 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2185 * aix-thread.c (_initialize_aix_thread): Update.
2186
2187 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2188
2189 Partial fix for PR backtrace/1718.
2190 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2191 that GCC migrates into the prolugue. Don't handle any
2192 instructions that clobber %ebx.
2193
2194 2004-07-23 Andrew Cagney <cagney@gnu.org>
2195
2196 Use regcache_raw_collect instead of regcache_collect.
2197 * regcache.h (regcache_collect): Delete declaration.
2198 * regcache.c (regcache_colect): Delete function.
2199 * win32-nat.c (do_child_store_inferior_registers): Update.
2200 * sol-thread.c (sol_thread_store_registers): Update.
2201 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
2202 * rs6000-nat.c (store_register): Update.
2203 * remote.c (store_register_using_P, remote_store_registers): Update.
2204 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
2205 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
2206 (fill_vrregset, store_spe_registers, fill_gregset)
2207 (fill_gregset): Update.
2208 * nto-procfs.c (procfs_store_registers): Update.
2209 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
2210 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
2211 * m68klinux-nat.c (store_register, fill_gregset): Update.
2212 * m68k-tdep.c (fill_gregset): Update.
2213 * infptrace.c (store_register): Update.
2214 * i386-nto-tdep.c (i386nto_regset_fill): Update.
2215 * i386-linux-nat.c (store_register, fill_gregset): Update.
2216 * hppa-linux-nat.c (fill_gregset): Update.
2217 * go32-nat.c (store_register): Update.
2218 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
2219 (store_fp_regs): Update.
2220 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
2221 (store_nwfpe_extended, store_fpregister, store_fpregs)
2222 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
2223 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
2224 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
2225 (store_regs_user_thread, store_regs_kernel_thread): Update.
2226
2227 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2228
2229 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
2230 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
2231 encoding.
2232 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
2233 member of `struct comp_unit'.
2234
2235 2004-07-23 Andrew Cagney <cagney@gnu.org>
2236
2237 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
2238 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
2239
2240 2004-07-23 Martin Hunt <hunt@redhat.com>
2241 Kevin Buettner <kevinb@redhat.com>
2242
2243 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
2244 alignment was being added to the offset instead of multiplied.
2245
2246 2004-07-23 Mark Kettenis <kettenis@gnu.org>
2247
2248 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
2249 changed signal trampoline in OpenBSD 3.5-current.
2250
2251 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
2252 <machine/pcb.h> and "bsd-kvm.h".
2253 (sparc64nbsd_supply_pcb): New function.
2254 (_initialize_sparc64nbsd_nat): Renamed from
2255 _initialize_sparcnbsd_nat. Enable libkvm interface.
2256 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2257 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
2258 (LOADLIBES): New variable.
2259
2260 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
2261
2262 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
2263
2264 2004-07-21 Andrew Cagney <cagney@gnu.org>
2265
2266 Use regcache_raw_supply instead of supply_register.
2267 * regcache.h (supply_register): Delete declaration.
2268 * regcache.c (supply_register): Delete function.
2269 * wince.c (do_child_fetch_inferior_registers): Update.
2270 * win32-nat.c (do_child_fetch_inferior_registers)
2271 (fetch_elf_core_registers): Update.
2272 * v850ice.c (v850ice_fetch_registers): Update.
2273 * thread-db.c (thread_db_store_registers): Update.
2274 * sol-thread.c (sol_thread_store_registers): Update.
2275 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
2276 * rs6000-nat.c (fetch_register): Update.
2277 * rom68k-rom.c (rom68k_supply_one_register): Update.
2278 * remote.c (remote_wait, remote_async_wait): Update.
2279 * remote-st.c (get_hex_regs): Update.
2280 * remote-sim.c (gdbsim_fetch_register): Update.
2281 * remote-sds.c (sds_fetch_registers): Update.
2282 * remote-rdp.c (remote_rdp_fetch_register): Update.
2283 * remote-rdi.c (arm_rdi_fetch_registers): Update.
2284 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
2285 * remote-m32r-sdi.c (m32r_fetch_register): Update.
2286 * remote-hms.c (init_hms_cmds): Update.
2287 * remote-est.c (init_est_cmds): Update.
2288 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
2289 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
2290 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
2291 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
2292 (fetch_register, supply_vrregset, supply_vrregset)
2293 (fetch_spe_registers): Update.
2294 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
2295 * monitor.c (monitor_supply_register): Update.
2296 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
2297 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
2298 (mipsnbsd_supply_fpreg): Update.
2299 * mips-nat.c (fetch_inferior_registers)
2300 (fetch_core_registers): Update.
2301 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
2302 (supply_fpregset, mips64_supply_gregset)
2303 (mips64_supply_fpregset): Update.
2304 * m68klinux-nat.c (fetch_register, supply_gregset)
2305 (supply_fpregset): Update.
2306 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
2307 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
2308 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
2309 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
2310 * infptrace.c (fetch_register): Update.
2311 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
2312 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
2313 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
2314 (gnu_fetch_registers, gnu_store_registers): Update.
2315 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
2316 * i386-linux-nat.c (fetch_register, supply_gregset)
2317 (dummy_sse_values): Update.
2318 * hpux-thread.c (hpux_thread_fetch_registers): Update.
2319 * hppah-nat.c (fetch_register): Update.
2320 * hppa-linux-nat.c (fetch_register, supply_gregset)
2321 (supply_fpregset): Update.
2322 * go32-nat.c (fetch_register): Update.
2323 * dve3900-rom.c (fetch_bitmapped_register)
2324 (_initialize_r3900_rom): Update.
2325 * cris-tdep.c (supply_gregset): Update.
2326 * abug-rom.c (init_abug_cmds): Update.
2327 * core-aout.c (fetch_core_registers): Update.
2328 * armnbsd-nat.c (supply_gregset, supply_fparegset)
2329 (fetch_register, fetch_fp_register): Update.
2330 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
2331 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
2332 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
2333 * alphanbsd-tdep.c (fetch_core_registers): Update.
2334 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2335 * alpha-nat.c (fetch_osf_core_registers)
2336 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2337 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2338 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2339
2340 2004-07-21 Andrew Cagney <cagney@gnu.org>
2341
2342 * PROBLEMS: Mention breakpoints/1702.
2343 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2344 that is known to work.
2345
2346 2004-07-21 Andrew Cagney <cagney@gnu.org>
2347
2348 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2349 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2350 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2351 (handle_inferior_event): Wrap call to deprecated
2352 IGNORE_HELPER_CALL in #ifdef.
2353 * config/mips/tm-nbsd.h: Update.
2354
2355 2004-07-20 Jim Blandy <jimb@redhat.com>
2356
2357 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
2358 bfd_mach_ppc has no segment registers.
2359
2360 Include PowerPC SPR numbers for special-purpose registers.
2361 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2362 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2363 new member in initializer.
2364 (S, S4, SN4, S64): New macros for defining special-purpose
2365 registers.
2366 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2367 registers_403, registers_403GC, registers_505, registers_860,
2368 registers_601, registers_602, registers_603, registers_604,
2369 registers_750, registers_e500): Use them.
2370
2371 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2372 replace references with expression used to initialize variable.
2373
2374 2004-07-20 Andrew Cagney <cagney@gnu.org>
2375
2376 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2377 read_memory_nobpt.
2378 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2379 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2380 (s390_sigtramp_frame_sniffer): Update.
2381 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2382 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2383 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2384 (mips32_fetch_instruction): Update.
2385 * mcore-tdep.c (get_insn): Update.
2386 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2387 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2388 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2389 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2390 (i386_linux_rt_sigtramp_start): Update.
2391 * i386-linux-nat.c (child_resume): Update.
2392 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2393 * hppa-linux-tdep.c (insns_match_pattern): Update.
2394 * gdbcore.h: Update.
2395 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2396 * frame.c (safe_frame_unwind_memory): Update.
2397 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2398 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2399 * alpha-tdep.c (alpha_read_insn): Update.
2400
2401 2004-07-20 Andrew Cagney <cagney@gnu.org>
2402
2403 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2404 containing both bytes and mask. Add "frame_type".
2405 * tramp-frame.c (tramp_frame_start): Update.
2406 (tramp_frame_prepend_unwinder): Update.
2407 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2408 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2409 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2410 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2411
2412 2004-07-19 Eli Zaretskii <eliz@gnu.org>
2413
2414 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2415 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2416 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2417 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2418
2419 2004-07-17 Andrew Cagney <cagney@gnu.org>
2420
2421 * NEWS, PROBLEMS: Update for 6.2.
2422
2423 * README: Update to 6.2.
2424
2425 * utils.c (xvasprintf): Call xstrvprintf.
2426
2427 * parse.c: Update copyright.
2428 (null_post_parser): Eliminate ARGSUSED.
2429
2430 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2431 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2432 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2433
2434 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2435 * ppc-linux-nat.c: Use "Linux kernel".
2436 * hppa-linux-tdep.c: Use GNU/Linux.
2437 * hppa-linux-nat.c: Use GNU/Linux.
2438 * dwarfread.c: Add [sic] to use of Linux.
2439
2440 * hppa-linux-nat.c: Do not include <string.h>.
2441 (supply_fpregset): Remove "register" attribute.
2442
2443 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2444
2445 2004-07-17 Mark Kettenis <kettenis@gnu.org>
2446
2447 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2448 * configure, config.in: Regenerated.
2449
2450 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2451 "bsd-kvm.h".
2452 (vaxbsd_supply_pcb): New function.
2453 (_initialize_vaxbsd_nat): New prototype and function.
2454 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2455 solib-sunos.o.
2456 (LOADLIBES): New variable.
2457 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2458 (LOADLIBES): New variable.
2459 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2460 (LOADLIBES): New variable.
2461 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2462
2463 2004-07-16 Andrew Cagney <cagney@gnu.org>
2464
2465 * defs.h (event_loop_p): Replace variable declaration with macro,
2466 always 1.
2467 * main.c (captured_main): Delete options "-async" and "-noasync".
2468 (event_loop_p): Delete variable.
2469 * NEWS: Mention that "-async" and "-noasync" were removed.
2470
2471 2004-07-16 Andrew Cagney <cagney@gnu.org>
2472
2473 * remote-m32r-sdi.c: Re-indent.
2474
2475 2004-07-16 Jim Blandy <jimb@redhat.com>
2476
2477 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2478 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2479 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2480 missing MPC823 SPRs.
2481 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2482 incorrect. (This was corrected in GDB's register name tables on
2483 2004-07-14.)
2484
2485 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2486 should be "esasrr" ("ESA Save and Restore Register").
2487
2488 2004-07-16 Andrew Cagney <cagney@gnu.org>
2489
2490 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2491 calls, no longer applicable. Update comments and rename parameter
2492 "step_frame" to "return_frame".
2493
2494 2004-07-16 Andrew Cagney <cagney@gnu.org>
2495
2496 * frame.c (fprint_field): New function.
2497 (fprint_frame_id): Use fprint_field.
2498
2499 2004-07-15 Joel Brobecker <brobecker@gnat.com>
2500
2501 * ada-lang.c (ada_language_defn): Remove commented out code.
2502
2503 2004-07-15 Jim Blandy <jimb@redhat.com>
2504
2505 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2506 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2507
2508 2004-07-14 Jim Blandy <jimb@redhat.com>
2509
2510 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2511
2512 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2513
2514 * ppc-tdep.h (ppc_num_srs): New enum constant.
2515
2516 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2517 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2518 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2519 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2520 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2521 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2522 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2523 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2524 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2525 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2526 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2527 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2528 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2529 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2530 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2531 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2532 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2533 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2534 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2535 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2536 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2537 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2538 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2539 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2540 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2541 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2542 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2543 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2544 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2545 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2546 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2547 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2548 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2549 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2550 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2551 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2552 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2553 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2554 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2555 special-purpose register numbers.
2556
2557 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2558 manual mentions 'md_twb', but many mention 'm_twb', and at that
2559 point in the register list.)
2560
2561 2004-07-14 Andrew Cagney <cagney@gnu.org>
2562
2563 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2564 instead of "internal-error".
2565
2566 2004-07-10 Joel Brobecker <brobecker@gnat.com>
2567
2568 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2569 that was inserted inside a comment.
2570
2571 2004-07-10 Randolph Chung <tausq@debian.org>
2572
2573 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2574 function.
2575 (hppa_hpux_push_dummy_code): New function.
2576 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2577 Set find_global_pointer method.
2578
2579 2004-07-10 Mark Kettenis <kettenis@gnu.org>
2580
2581 * NEWS: Mention BSD libkvm interface.
2582
2583 2004-07-10 Michael Snyder <msnyder@redhat.com>
2584
2585 * symfile.c (generic_load): Comment typo.
2586 * stack.c (get_selected_block): Ditto.
2587 * regcache.c (regcache_cooked_read): Ditto.
2588 * monitor.c (monitor_debug): Ditto.
2589 * mips-tdep.c (mips_read_pc): Ditto.
2590 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2591 * gdb_mbuild.sh: Ditto.
2592 * gdbarch.sh: Ditto.
2593 * gdbarch.h: Ditto.
2594
2595 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2596
2597 * ada-tasks.c: Remove file.
2598
2599 Remove ARI problems:
2600
2601 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2602 beginning of line.
2603
2604 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2605 Add comment.
2606 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2607 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2608 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2609 (UMIN_OF_SIZE): Remove.
2610 (max_of_type): New function to replace orphan macro in gdbtypes.h
2611 (min_of_type): Ditto.
2612 (discrete_type_high_bound): Use max_of_type.
2613 (discrete_type_low_bound): Use min_of_type.
2614 (possible_user_operator_p): Move operator to beginning of line.
2615 (ada_is_variant_part): Ditto.
2616 (ensure_lval): Rewrite to avoid deprecated operations.
2617 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2618 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2619 (ada_enum_name): Remove assignments in 'if' statements.
2620 (build_ada_types): Add gdbarch parameter.
2621 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2622 with gdbarch_data_register_post_init.
2623 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2624 add_show_from_set.
2625
2626 * ada-valprint.c (inspect_it): Remove declaration.
2627 (repeat_count_threshold): Remove declaration.
2628 (ada_print_floating): Remove assignments in 'if' statements.
2629 (print_str): Move operator to beginning of line.
2630
2631 2004-07-08 Jim Blandy <jimb@redhat.com>
2632
2633 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2634
2635 2004-07-08 Bob Rossi <bob@brasko.net>
2636
2637 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2638
2639 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2640
2641 * language.h (struct_language_defn): Add new function pointer:
2642 la_class_name_from_physname. Also add new prototype for
2643 language_class_name_from_physname.
2644 * language.c (language_class_name_from_physname): New function.
2645 (unk_lang_class_name): Ditto.
2646 (unknown_language_defn, auto_language_defn): Change
2647 to add unk_lang_class_name function pointer for
2648 la_class_name_from_physname.
2649 (local_language_defn): Ditto.
2650 * dwarf2read.c (guess_structure_name): Change to call
2651 language_class_name_from_physname.
2652 (determine_class_name): Ditto.
2653 * cp-support.c (class_name_from_physname): Renamed.
2654 (cp_class_name_from_physname): New name of function.
2655 * cp-support.h: Ditto.
2656 * c-lang.c (c_language_defn): Change to add NULL
2657 for class_name_from_physname function pointer.
2658 (cplus_language_defn): Change to add cp_class_name_from_physname.
2659 * jv-lang.c (java_class_name_physname): New function.
2660 (java_find_last_component): New static routine.
2661 (java_language_defn): Add java_class_name_from_physname pointer.
2662 * ada-lang.c (ada_language_defn): Change to add NULL
2663 for class_name_from_physname function pointer.
2664 * f-lang.c (f_language_defn): Ditto.
2665 * m2-lang.c (m2_language_defn): Ditto.
2666 * objc-lang.c (objc_language_defn): Ditto.
2667 * p-lang.c (pascal_language_defn): Ditto.
2668 * scm-lang.c (scm_language_defn): Ditto.
2669
2670 2004-07-06 Andrew Cagney <cagney@gnu.org>
2671
2672 Patch from Bart Robinson.
2673 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2674 (O_LARGEFILE): Define to 0, if not defined.
2675
2676 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2677
2678 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2679 <machine/pcb.h> and "bsd-kvm.h".
2680 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2681 (m68kbsd_supply_pcb): New function.
2682 (_initialize_m68kbsd_nat): New prototype and function.
2683 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2684 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2685 (LOADLIBES): New variable.
2686 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2687 (LOADLIBES): New variable.
2688
2689 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2690
2691 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2692
2693 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2694 <sys/proc.h>.
2695 (bsd_kvm_cmdlist): New variable.
2696 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2697 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2698 command and "kvm proc" command.
2699 * Makefile.in (bsd-kvm.o): Update dependencies.
2700
2701 2004-07-02 Mark Kettenis <kettenis@gnu.org>
2702
2703 * osabi.c: Update copyright year.
2704 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2705 notes if EI_OSABI is set to ELFOSABI_HPUX.
2706
2707 2004-07-01 Michael Snyder <msnyder@redhat.com>
2708
2709 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2710 that seems to have gotten whacked out of line.
2711
2712 2004-07-01 Mark Kettenis <kettenis@gnu.org>
2713
2714 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2715 code.
2716
2717 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2718
2719 * ada-lang.c (decode_packed_array): Minor change to comment.
2720 (ada_value_slice_ptr): New function.
2721 (ada_value_slice): New function.
2722 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2723 test. Don't know why it is there.
2724 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2725 to avoid dereferencing huge arrays from which one is slicing.
2726 (empty_array): Correct to return an array rather than
2727 a subrange value.
2728 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2729 on empty arrays (let'em use 'FIRST instead).
2730
2731 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2732
2733 Address complaints from gdb_ari.sh:
2734
2735 * ada-exp.y: Include gdb_string.h rather than string.h.
2736 (convert_char_literal): Reformat declaration.
2737 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2738 * ada-lex.l: Change use of free to xfree (the macro would do so
2739 anyway, but this is harmless).
2740 Include gdb_string.h rather than string.h.
2741 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2742
2743 * ada-lang.c (parse): Remove K&Rism in parameter list.
2744 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2745
2746 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2747
2748 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2749 dead code.
2750
2751 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2752
2753 * alphabsd-nat.c: Update copyright year.
2754 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2755
2756 2004-06-29 Joel Brobecker <brobecker@gnat.com>
2757
2758 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
2759 (i386_cygwin_in_solib_call_trampoline): New function.
2760 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2761 and skip_trampoline_code gdbarch methods.
2762
2763 2004-06-29 Jim Blandy <jimb@redhat.com>
2764
2765 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2766 name actually used in the dependency lists.
2767
2768 2004-06-29 Randolph Chung <tausq@debian.org>
2769
2770 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2771
2772 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2773
2774 * win32-nat.c (child_pid_to_exec_file): New function.
2775 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
2776 functionality.
2777
2778 2004-06-28 Andrew Cagney <cagney@gnu.org>
2779
2780 * defs.h (xstrvprintf): Declare.
2781 * utils.c (xstrvprintf): New function.
2782 (internal_vproblem, xstrprintf, xasprintf)
2783 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2784 * serial.c (serial_printf): Ditto.
2785 * complaints.c (vcomplaint): Ditto.
2786
2787 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2788
2789 * infcmd.c (attach_command): Move call to target_terminal_inferior
2790 behind loading symbol table.
2791
2792 2004-06-28 Andrew Cagney <cagney@gnu.org>
2793
2794 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2795 change - add back extern deprecated_ui_loop_hook declaration.
2796
2797 2004-06-28 Andrew Cagney <cagney@gnu.org>
2798
2799 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2800 xstrprintf.
2801 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2802 (c_value_of_variable): Ditto.
2803 * utils.c (internal_vproblem): Ditto.
2804 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2805 * remote.c (add_packet_config_cmd): Ditto.
2806 * remote-rdp.c (rdp_set_command_line): Ditto.
2807 * regcache.c (regcache_dump): Ditto.
2808 * frv-tdep.c (new_variant, new_variant): Ditto.
2809 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2810 (fbsd_find_memory_regions): Ditto.
2811 * breakpoint.c (create_thread_event_breakpoint)
2812 (create_breakpoints): Ditto.
2813 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2814 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2815
2816 2004-06-28 Joel Brobecker <brobecker@gnat.com>
2817
2818 * ada-lang.c: Re-indent file, with some massaging to help indent
2819 a bit when the result is otherwise really too ugly.
2820
2821 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2822
2823 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2824 code_addr_p and special_addr_p to 'unsigned int'.
2825
2826 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2827
2828 * i386v4-nat.c: Update copyright year and tweak comment.
2829 (regmap): Remove trailing comma.
2830 (supply_gregset): Rename local variable i to regnum. Call
2831 regcache_raw_supply instead of supply_register.
2832 (fill_gregset): Rename argument regno to regnum. Call
2833 regcache_raw_collect instead of regcache_collect.
2834
2835 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2836
2837 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2838 and special_addr_p.
2839 (frame_id_build, frame_id_build_special): Update comments.
2840 (frame_id_build_wild): New prototype.
2841 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2842 struct frame_id fields.
2843 (frame_id_build_wild): New function.
2844 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2845
2846 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2847
2848 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2849 hppabsd-tdep.c.
2850
2851 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2852
2853 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2854
2855 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2856
2857 * ada-lang.c: Re-indent file.
2858
2859 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2860
2861 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2862 (no_symtab_msg): Likewise.
2863
2864 2004-06-27 Andreas Schwab <schwab@suse.de>
2865
2866 * source.c: Fix whitespace.
2867
2868 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2869
2870 * configure.in: Include <sys/param.h> for td_pcb test.
2871 * configure: Regenerated.
2872
2873 * i386nbsd-nat.c: New file.
2874 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2875 i386obsd-nat.c and i386obsd-tdep.c.
2876 (i386nbsd-nat.o): New dependency.
2877 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2878 bsd-kvm.o.
2879 (LOADLIBES): New variable.
2880 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2881 bsd-kvm.o.
2882 (LOADLIBES): New variable.
2883
2884 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2885 (LOADLIBES): New variable.
2886
2887 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2888 fetching from BSD_KVM_PADDR. Correctly lookup address for
2889 "_thread0".
2890
2891 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2892 "bsd-kvm.h".
2893 (amd64fbsd_supply_pcb): New funcion.
2894 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2895
2896 2004-06-27 <david@streamline-computing.com>
2897
2898 Partial fix for PR cli/1056.
2899 * valarith.c: Check for zero in division and remainder
2900 evaluation.
2901
2902 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2903
2904 * i387-tdep.c: Remove excessive whitespace.
2905
2906 2004-06-26 Andrew Cagney <cagney@gnu.org>
2907
2908 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2909 * gdb-events.h, gdb-events.c: Re-generate.
2910 * tui/tui-hooks.c (tui_install_hooks): Update.
2911 (tui_remove_hooks): Update.
2912 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2913
2914 2004-06-26 Mark Kettenis <kettenis@gnu.org>
2915
2916 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2917 (gregset_t, fpregset_t): Remove typedefs.
2918 (REG_OFFSET): Rename argument.
2919 (amd64bsd_r_reg_offset): Rename from reg_offset.
2920 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2921 Remove functions.
2922 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2923 of reg_offset.
2924 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2925
2926 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2927
2928 * vax-tdep.c: Tweak comment.
2929
2930 Add OpenBSD/hppa support.
2931 * NEWS (New native configurations): Mention OpenBSD/hppa.
2932 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2933 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2934 files.
2935 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2936 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2937 * configure.host: Add hppa*-*-openbsd*.
2938 * configure.tgt: Add hppa*-*-openbsd*.
2939
2940 2004-06-25 Andrew Cagney <cagney@gnu.org>
2941
2942 * defs.h (deprecated_ui_loop_hook): Deprecated.
2943 * wince.c (child_wait): Update.
2944 * win32-nat.c (child_wait): Update.
2945 * v850ice.c (v850ice_wait): Update.
2946 * top.c (deprecated_ui_loop_hook): Update.
2947 * serial.h: Update.
2948 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2949 (do_unix_readchar): Update.
2950 * ser-tcp.c (net_open): Update.
2951 * remote-sim.c (gdb_os_poll_quit): Update.
2952 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2953
2954 2004-06-24 Andrew Cagney <cagney@gnu.org>
2955
2956 * defs.h (deprecated_pre_add_symbol_hook)
2957 (deprecated_post_add_symbol_hook): Deprecated.
2958 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2959 (symbol_file_add_with_addrs_or_offsets): Update references.
2960
2961 2004-06-24 Andrew Cagney <cagney@gnu.org>
2962
2963 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2964 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2965 * wince.c (ui_loop_hook): Delete extern declaration.
2966 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2967 * v850ice.c (ui_loop_hook): Delete extern declaration..
2968 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2969 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2970 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2971 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2972 ui_loop_hook declaration.
2973
2974 2004-06-24 Andrew Cagney <cagney@gnu.org>
2975
2976 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2977 entry_func_highpc fields.
2978 * objfiles.c (init_entry_point_info): Do not clear
2979 entry_func_lowpc and entry_func_highpc.
2980 (objfile_relocate): Do not relocate entry_func_lowpc and
2981 entry_func_highpc.
2982 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2983 entry_func_highpc.
2984 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2985 entry_func_highpc.
2986 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2987 entry_func_lowpc and entry_func_highpc with call to
2988 inside_entry_func.
2989
2990 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2991
2992 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2993 quad-precision floating point arguments in registers.
2994
2995 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2996
2997 From Michael Mueller <m.mueller99@kay-mueller.de>:
2998 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2999 account.
3000
3001 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3002
3003 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3004 to -1.
3005 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3006 untriggered watchpoints to a separate if clause. Update function
3007 comment regarding STOPPED_BY_WATCHPOINT argument.
3008
3009 2004-06-22 Jim Blandy <jimb@redhat.com>
3010
3011 * gdbarch.sh: Doc fix.
3012
3013 2004-06-21 Martin Hunt <hunt@redhat.com>
3014 Kevin Buettner <kevinb@redhat.com>
3015
3016 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3017 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3018 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3019 to set_gdbarch_sp_regnum(). Use cooked register number.
3020 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3021
3022 2004-06-21 Andrew Cagney <cagney@gnu.org>
3023
3024 * gdbarch.sh: When the macro field is empty, do not generate a
3025 macro definition. When the macro field is "=", generate the macro
3026 name from the upper-case function name.
3027 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3028 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3029 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3030 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3031 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3032 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3033 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3034 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3035 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3036 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3037 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3038 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3039 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3040 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3041 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3042 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3043 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3044 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3045 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3046 (DEPRECATED_USE_STRUCT_CONVENTION)
3047 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3048 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3049 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3050 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3051 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3052 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3053 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3054 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3055 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3056 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3057 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3058 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
3059 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
3060 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
3061 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
3062 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
3063 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
3064 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
3065
3066 2004-06-21 Andrew Cagney <cagney@gnu.org>
3067
3068 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
3069 macro name, and the function rather than macro value. Only wrap
3070 macro print statements in #ifdef. Move format logic to where it
3071 is needed.
3072 * gdbarch.c: Re-generate.
3073
3074 * gdbarch.sh (read): Delete "print_p" and "description", add
3075 "garbage_at_eol". Check for non-empty garbage at end-of-line.
3076 Delete references to print_p.
3077 (TARGET_ARCHITECTURE): Delete print predicate.
3078 * gdbarch.c: Re-generate.
3079
3080 * gdbarch.sh: Check that multi-arch methods do not provide a
3081 macro.
3082 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
3083 (print_registers_info, print_float_info, print_vector_info)
3084 (adjust_breakpoint_address, remote_translate_xfer_address)
3085 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
3086 (address_class_type_flags_to_name, unwind_sp): Remove the macro
3087 name from the multi-arch definition.
3088
3089 2004-06-20 Andrew Cagney <cagney@gnu.org>
3090
3091 * gdbarch.sh: Sort by the function, instead of macro name.
3092 * gdbarch.c: Re-generate.
3093
3094 2004-06-20 Andrew Cagney <cagney@gnu.org>
3095
3096 * gdbarch.sh: Use the function, instead of macro name in
3097 errors and the log file.
3098 (return_value): Remove stray ":" in spec.
3099
3100 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
3101 * gdbarch.h, gdbarch.c: Re-generate.
3102 * Makefile.in (arch-utils.o): Update dependencies.
3103 * values.c (using_struct_return): Move code calling
3104 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
3105 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
3106 to legacy_return_value, simplify.
3107 * infcmd.c (print_return_value): Move code calling
3108 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
3109 to legacy_return_value, simplify.
3110 * infcall.c (call_function_by_hand): Move code calling
3111 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
3112 * arch-utils.c: Update copyright. Include "gdbcore.h".
3113 (legacy_return_value): New function.
3114 * arch-utils.h: Update copyright.
3115 (legacy_return_value): Declare.
3116
3117 2004-06-20 Andrew Cagney <cagney@gnu.org>
3118
3119 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
3120 * gdbarch.h, gdbarch.c: Re-generate.
3121 * values.c (using_struct_return): Update call.
3122 * mcore-tdep.c: Update comment.
3123 * infcall.c (call_function_by_hand): Update comment.
3124 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3125 * arch-utils.h (always_use_struct_convention): Update.
3126 * v850-tdep.c (v850_gdbarch_init): Update.
3127 * sh64-tdep.c (sh64_gdbarch_init): Update.
3128 * sh-tdep.c (sh_gdbarch_init): Update.
3129 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3130 * mips-tdep.c (mips_gdbarch_init): Update.
3131 * mcore-tdep.c (mcore_gdbarch_init): Update.
3132 * m32r-tdep.c (m32r_gdbarch_init): Update.
3133 * ia64-tdep.c (ia64_gdbarch_init): Update.
3134 * h8300-tdep.c (h8300_gdbarch_init): Update.
3135 * frv-tdep.c (frv_gdbarch_init): Update.
3136 * cris-tdep.c (cris_gdbarch_init): Update.
3137 * arm-tdep.c (arm_gdbarch_init): Update.
3138 * alpha-tdep.c (alpha_gdbarch_init): Update.
3139
3140 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3141
3142 * PROBLEMS: Add more specific information, and a work-around,
3143 for PR gdb/1458.
3144
3145 2004-06-18 Andrew Cagney <cagney@gnu.org>
3146
3147 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3148 * gdbarch.h, gdbarch.c: Re-generate.
3149 * ada-lang.c (ada_finish_decode_line_1): Update.
3150 * infrun.c (handle_inferior_event): Update.
3151 * infcall.c (find_function_addr): Update.
3152 * linespec.c (minsym_found): Update.
3153 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3154 Update.
3155 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3156 * cli/cli-cmds.c (disassemble_command): Update.
3157 * vax-tdep.c (vax_gdbarch_init): Update.
3158
3159 2004-06-18 Mark Kettenis <kettenis@gnu.org>
3160
3161 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3162
3163 2004-06-17 Andrew Cagney <cagney@gnu.org>
3164
3165 GDB 6.1.1 released from the GDB 6.1 branch.
3166 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3167 * PROBLEMS: Ditto.
3168
3169 2004-06-16 Daniel Jacobowitz <dan@debian.org>
3170
3171 PR gdb/1658
3172 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3173 operation as a uleb128. Found by Michael Coulter.
3174
3175 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3176
3177 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3178 make it non-static.
3179 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3180 to ada-lang.h; this is needed to be able to implement the kill command
3181 in multi-task mode.
3182 (task_ptid): Ditto.
3183 (task_entry): Ditto.
3184 (task_list): Ditto.
3185 (ada_build_task_list): Ditto.
3186
3187 * ada-lang.c: Conditionalize routines and data structures related
3188 to breakpoints, exceptions, completion, and symbol caching on
3189 GNAT_GDB, since these are not yet used in the submitted public sources.
3190 (ada_main_name): Editorial: Move definition out of exception-related
3191 code.
3192
3193 2004-06-15 Andrew Cagney <cagney@gnu.org>
3194
3195 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
3196 deprecated_pc_in_call_dummy.
3197
3198 2004-06-15 Alan Modra <amodra@bigpond.net.au>
3199
3200 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
3201 bfd_get_section_size_before_reloc or _raw_size.
3202 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3203 * dwarf2read.c (dwarf2_locate_sections): Likewise.
3204 (dwarf2_read_section): Likewise.
3205 * elfread.c (elf_locate_sections): Likewise.
3206 * gcore.c (derive_heap_segment): Likewise.
3207 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3208 * remote-e7000.c (e7000_load): Likewise.
3209 * remote-m32r-sdi.c (m32r_load): Likewise.
3210 * remote-mips.c (mips_load_srec): Likewise.
3211 (pmon_load_fast): Likewise.
3212 * remote.c (compare_sections_command): Likewise.
3213 * symfile.c (add_section_size_callback): Likewise.
3214 (load_section_callback): Likewise.
3215 (pc_in_unmapped_range): Likewise.
3216 (pc_in_mapped_range): Likewise.
3217 (sections_overlap): Likewise.
3218 (list_overlays_command): Likewise.
3219 (simple_overlay_update_1): Likewise.
3220 (simple_overlay_update): Likewise.
3221 * tracepoint.c (remote_set_transparent_ranges): Likewise.
3222 * win32-nat.c (core_section_load_dll_symbols): Likewise.
3223
3224 2004-06-14 Randolph Chung <tausq@debian.org>
3225
3226 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
3227 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
3228 static.
3229 (hppa_hpux_inferior_created): New function.
3230 (hppa_hpux_init_abi): Register observer.
3231 * symfile.c (hp_cxx_exception_support_initialized)
3232 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
3233 (symbol_file_add_main_1, symbol_file_clear): Likewise.
3234
3235 2004-06-14 Randolph Chung <tausq@debian.org>
3236
3237 * MAINTAINERS (Write After Approval): Alphabetize my entry
3238 correctly.
3239
3240 2004-06-14 Andrew Cagney <cagney@gnu.org>
3241
3242 * MAINTAINERS (testsuite): List Michael Chastain as the lead
3243 testsuite maintainer.
3244
3245 2004-06-13 Andrew Cagney <cagney@gnu.org>
3246
3247 * infcmd.c (print_return_value): Fix logic, allow
3248 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
3249
3250 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
3251 defining any macros.
3252 * gdbarch.h: Re-generate.
3253
3254 * gdbarch.sh: Delete "level" attribute. Only check for a macro
3255 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
3256 * gdbarch.h: Re-generate.
3257
3258 * values.c (generic_use_struct_convention): Don't check gcc_p.
3259
3260 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3261 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
3262 * gdbarch.h, gdbarch.c: Regenerate.
3263 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
3264 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
3265 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3266 deprecated_max_register_raw_size and
3267 deprecated_max_register_virtual_size.
3268 * v850-tdep.c (v850_gdbarch_init): Ditto.
3269 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3270 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3271 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3272 * cris-tdep.c (cris_gdbarch_init): Ditto.
3273
3274 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
3275 * gdbarch.h, gdbarch.c: Re-generate.
3276 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
3277 (m68hc11_use_struct_convention): Delete function.
3278 (m68hc11_extract_struct_value_address): Delete function.
3279 (m68hc11_return_value): New function.
3280 (m68hc11_gdbarch_init): Instead of store_return_value,
3281 extract_return_value, return_value_on_stack,
3282 deprecated_extract_struct_value_address and use_struct_convention,
3283 set return_value.
3284 * values.c (using_struct_return): Do not call
3285 RETURN_VALUE_ON_STACK.
3286 * arch-utils.h (generic_return_value_on_stack_not): Delete
3287 declaration.
3288 * arch-utils.c (generic_return_value_on_stack_not): Delete
3289 function.
3290
3291 2004-06-12 Andrew Cagney <cagney@gnu.org>
3292
3293 * values.c (register_value_being_returned): Delete function.
3294 * infcmd.c (legacy_return_value): Delete function.
3295 * infcall.c (call_function_by_hand): Inline
3296 "register_value_being_returned", simplify.
3297 * values.c (using_struct_return): Update comment, refer to
3298 print_return_value instead of register_value_being_returned.
3299 * infcmd.c (print_return_value): Inline calls to
3300 register_value_being_returned and legacy_return_value. Simplify.
3301
3302 2004-06-11 Randolph Chung <tausq@debian.org>
3303
3304 * somread.c (som_symtab_read): Exclude gcc local symbols.
3305
3306 2004-06-11 Randolph Chung <tausq@debian.org>
3307
3308 * infrun.c (handle_inferior_event): Handle the case when a
3309 trampoline ends up in the runtime resolver, and if the trampoline
3310 has no name. Rearrange the code so that all the trampoline
3311 processing happens before other step-out-of-range handling.
3312
3313 2004-06-11 Martin Hunt <hunt@redhat.com>
3314
3315 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
3316 has no fpu.
3317
3318 2004-06-10 Andrew Cagney <cagney@gnu.org>
3319
3320 * blockframe.c (legacy_inside_entry_func): Delete.
3321 (legacy_frame_chain_valid): Inline call to
3322 legacy_inside_entry_func, simplify.
3323
3324 2004-06-10 Bob Rossi <bob@brasko.net>
3325
3326 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3327 * dwarf2read.c (partial_die_info): Add dirname field.
3328 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
3329 (read_partial_die): Save away DW_AT_comp_dir.
3330 * defs.h (symtab_to_filename): Removed.
3331 * source.c (find_and_open_source): Added.
3332 (open_source_file): Just calls find_and_open_source.
3333 (symtab_to_filename): Removed.
3334 (symtab_to_fullname, psymtab_to_fullname): Added.
3335 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3336 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3337 symtab_to_filename.
3338 * symtab.h (partial_symtab): Add dirname field.
3339 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3340 (mi_cmd_file_list_exec_source_file): Call new function
3341 symtab_to_fullname to find fullname.
3342 (mi_cmd_file_list_exec_source_files): Added.
3343 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
3344 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3345
3346 2004-06-10 Andrew Cagney <cagney@gnu.org>
3347
3348 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3349 to generic_use_struct_convention, the default value.
3350
3351 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3352 of abort.
3353
3354 * ns32k-tdep.c (ns32k_push_arguments): New function.
3355 (ns32k_gdbarch_init): Set deprecated_push_arguments.
3356 * infcall.c (call_function_by_hand): Call error instead of
3357 legacy_push_arguments.
3358 * value.h (legacy_push_arguments): Delete declaration.
3359 * valops.c (legacy_push_arguments): Delete function.
3360 (value_push): Delete function.
3361
3362 2004-06-10 Brian Ford <ford@vss.fsi.com>
3363
3364 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3365 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3366 info.
3367 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3368
3369 2004-06-10 Andrew Cagney <cagney@gnu.org>
3370
3371 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3372 * gdbarch.h, gdbarch.c: Re-generate.
3373 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3374 parameters.
3375 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3376 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3377 deprecated_pc_in_call_dummy instead of
3378 DEPRECATED_PC_IN_CALL_DUMMY.
3379 (arm_skip_prologue): Ditto.
3380 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3381 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3382 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3383 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3384 Ditto.
3385 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3386 (sh64_init_extra_frame_info, sh64_get_saved_register)
3387 (sh64_pop_frame): Ditto.
3388 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3389 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3390 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3391 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3392 (h8300_pop_frame): Ditto.
3393 * blockframe.c (legacy_inside_entry_func)
3394 (legacy_frame_chain_valid): Ditto.
3395 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3396 to deprecated_pc_in_call_dummy.
3397
3398 2004-06-09 Andrew Cagney <cagney@gnu.org>
3399
3400 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3401 provide a default value.
3402 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3403 * gdbarch.h, gdbarch.c: Re-generate.
3404 * arch-utils.c (generic_convert_register_p): Rename
3405 legacy_convert_register_p
3406 (legacy_register_to_value, legacy_value_to_register): Delete
3407 functions.
3408 * arch-utils.h (generic_convert_register_p): Rename
3409 legacy_convert_register_p.
3410 (legacy_register_to_value, legacy_value_to_register): Delete
3411 declarations.
3412
3413 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3414 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3415 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3416 * gdbarch.h, gdbarch.c: Re-generate.
3417 * infcmd.c (default_print_registers_info): Simplify.
3418 * findvar.c (value_of_register): Simplify.
3419 * mi/mi-main.c (get_register): Simplify.
3420 * arch-utils.c (legacy_convert_register_p): Always return 0.
3421 (legacy_register_to_value, legacy_value_to_register): Always call
3422 internal_error.
3423
3424 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3425 #ifdef CLEAR_INSN_CACHE code.
3426 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3427 Delete #ifdef CLEAR_DEFERRED_STORES code.
3428
3429 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3430
3431 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3432 copyright.
3433 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3434
3435 * config/mips/mipsv4.mh: Delete file.
3436
3437 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3438 unreferenced macro.
3439 (hpread_adjust_stack_address): Delete declaration.
3440
3441 2004-06-08 Andrew Cagney <cagney@gnu.org>
3442
3443 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3444 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3445 PTRACE_ATTACH / PTRACE_DETACH available call error.
3446 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3447 * infttrace.c (update_thread_state_after_attach, attach, detach):
3448 Remove #ifdef wrappers.
3449 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3450 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3451 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3452 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3453 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3454 * config/nm-linux.h (ATTACH_DETACH): Delete.
3455 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3456 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3457 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3458 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3459 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3460
3461 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
3462
3463 * configure.in: Set $configdir to the right OS specific value.
3464 Use value when setting $tcldir and $tkdir.
3465 * configure: Regenerate.
3466
3467 2004-06-06 Paul Brook <paul@codesourcery.com>
3468
3469 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3470 records.
3471
3472 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3473
3474 * ada-lang.c (lookup_symbol_in_language): New function to allow
3475 re-use of another language's symbol lookup code. (Placed here
3476 temporarily while Ada support is being integrated into the public
3477 tree).
3478 (restore_language): New auxiliary function for
3479 lookup_symbol_in_language.
3480 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3481 temporarily while Ada support is being integrated into the public
3482 tree).
3483
3484 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
3485
3486 * Makefile.in (check//%): New.
3487
3488 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3489 (mn10300_store_return_value): Rewrite.
3490 (mn10300_type_align): New.
3491 (mn10300_use_struct_convention): Rewrite.
3492 (mn10300_return_value): New, using all of the above.
3493 (mn10300_pop_frame_regular): Add saved_regs_size.
3494 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3495
3496 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3497 regs if PC is on movm.
3498
3499 2004-06-07 Jim Blandy <jimb@redhat.com>
3500
3501 Add native Linux support for the PowerPC E500.
3502 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3503 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3504 all architectures except the E500.
3505 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3506 #definitions.
3507 (struct gdb_evrregset_t): New type.
3508 (have_ptrace_getsetevrregs): New variable.
3509 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3510 fetch_spe_registers): New functions.
3511 (fetch_register): Call fetch_spe_register as appropriate.
3512 Assert that we're only passed raw register numbers.
3513 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3514 Don't fetch gprs if they're pseudoregisters.
3515 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3516 store_spe_registers): New functions.
3517 (store_register): Call store_spe_register as appropriate.
3518 Assert that we're only passed raw register numbers.
3519 (store_ppc_registers): Call store_spe_registers as appropriate.
3520 Don't store gprs if they're pseudoregisters.
3521
3522 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3523
3524 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3525 struct if one exists, even if we are dealing with a zombie thread.
3526
3527 2004-06-07 Andrew Cagney <cagney@gnu.org>
3528
3529 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3530 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3531 Rename PC_REQUIRES_RUN_BEFORE_USE.
3532 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3533 #ifdef.
3534
3535 2004-06-07 Randolph Chung <tausq@debian.org>
3536
3537 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3538 unwinding after sp has been saved to the stack but before the end
3539 of the prologue, and after the fp has been modified but before it has
3540 been saved to the stack.
3541 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3542 Remove superfluous definitions.
3543 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3544
3545 2004-06-07 Guy Martin <gmsoft@gentoo.org>
3546
3547 Committed by Randolph Chung.
3548 * hppa-linux-nat.c: Include the correct version of the header file
3549 depending on the kernel version.
3550
3551 2004-06-06 Randolph Chung <tausq@debian.org>
3552
3553 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3554 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3555
3556 2004-06-06 Randolph Chung <tausq@debian.org>
3557
3558 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3559 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3560 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3561 * hppa-tdep.c (hppa_symbol_address): New function definition.
3562 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3563
3564 2004-06-06 Randolph Chung <tausq@debian.org>
3565
3566 * hppa-tdep.h (struct value): Forward declaration.
3567 (gdbarch_tdep): Define tdep find_global_pointer method.
3568 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3569 associated with the function we are trying to call, and write it
3570 to the gp register.
3571 (hppa32_convert_from_funct_ptr_addr): New function.
3572 (hppa_find_global_pointer): New function.
3573 (hppa_gdbarch_init): Set default find_global_pointer method; set
3574 convert_from_func_ptr_addr method.
3575 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3576 (hppa_linux_init_abi): Set find_global_pointer method.
3577 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3578
3579 2004-06-06 Randolph Chung <tausq@debian.org>
3580
3581 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3582 to struct value *function.
3583 * gdbarch.c: Regenerate.
3584 * gdbarch.h: Likewise.
3585 * infcall.c (call_function_by_hand): Pass entire function value
3586 to push_dummy_call.
3587
3588 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3589 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3590 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3591 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3592 * arm-tdep.c (arm_push_dummy_call): Likewise.
3593 * avr-tdep.c (avr_push_dummy_call): Likewise.
3594 * cris-tdep.c (cris_push_dummy_call): Likewise.
3595 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3596 * frv-tdep.c (frv_push_dummy_call): Likewise.
3597 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3598 * hppa-tdep.c (hppa32_push_dummy_call)
3599 (hppa64_push_dummy_call): Likewise.
3600 * i386-tdep.c (i386_push_dummy_call): Likewise.
3601 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3602 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3603 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3604 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3605 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3606 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3607 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3608 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3609 (ppc64_sysv_abi_push_dummy_call): Likewise.
3610 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3611 (ppc64_sysv_abi_push_dummy_call): Likewise.
3612 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3613 * s390-tdep.c (s390_push_dummy_call): Likewise.
3614 * sh-tdep.c (sh_push_dummy_call_fpu)
3615 (sh_push_dummy_call_nofpu): Likewise.
3616 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3617 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3618 * vax-tdep.c (vax_push_dummy_call): Likewise.
3619
3620 2004-06-04 Jim Blandy <jimb@redhat.com>
3621
3622 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3623 gdbarch argument to register_size.
3624
3625 * rs6000-tdep.c (rs6000_store_return_value): Use
3626 regcache_cooked_write_part instead of
3627 deprecated_write_register_bytes.
3628 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3629 not gdbarch_deprecated_store_return_value.
3630
3631 * ppc-linux-nat.c (store_register, fetch_register): Remove
3632 incorrect assertions. Simplify and generalize handling of
3633 transfers whose sizes are not multiples of, or less than, sizeof
3634 (PTRACE_XFER_TYPE).
3635
3636 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3637
3638 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3639 as a new thread event.
3640 * thread-db.c (thread_get_info_callback): If the thread is a
3641 zombie, return TD_THR_ZOMBIE.
3642 (thread_from_lwp): If thread_get_info_callback returns
3643 TD_THR_ZOMBIE, check if the thread is still on the thread list
3644 and return a -1 ptid if not found.
3645 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3646 change the status to TARGET_WAITKIND_SPURIOUS.
3647
3648 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
3649
3650 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3651 double values in little endian mode.
3652
3653 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3654
3655 Committed by Andrew Cagney.
3656 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3657 after last enum constant to avoid error from IBM C
3658 compiler.
3659
3660 2004-06-02 Jim Blandy <jimb@redhat.com>
3661
3662 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3663 to 'message', and make it local to the lone block that uses it.
3664
3665 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3666
3667 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3668
3669 * ada-exp.y: Update copyright notice.
3670 Include block.h.
3671
3672 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3673 SPECIAL_VARIABLE and unify the treatment of these cases.
3674
3675 (write_attribute_call0): Remove.
3676 (write_attribute_call1): Remove.
3677 (write_attribute_calln): Remove.
3678 (save_qualifier): Add missing semicolon.
3679
3680 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3681 temporarily disabled to allow compilation with FSF head version.
3682
3683 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3684 use individual operators (OP_*) for all attributes.
3685 (exp syntax): Use write_int.
3686 Handle STRING literals with OP_STRING.
3687 (variable syntax): Add limit parameter to calls to
3688 write_object_renaming.
3689
3690 (temp_parse_space): New definition to hold entities that need
3691 only live until the next call to ada_parse.
3692 (string_to_operator): Rename fields of ada_opname_table entries.
3693
3694 (write_var_from_sym): Record block.
3695 (write_var_from_name): Minor reformatting.
3696 Make sure saved name is properly encoded in the case of multiple
3697 matches, and set its language to Ada.
3698 Update comment.
3699 Modify to indicate unresolved name as symbol in the UNRESOLVED
3700 namespace, allocated in temp_parse_space.
3701 (write_int): New function.
3702
3703 (write_object_renaming): Add max_depth parameter to limit
3704 chains of object renamings.
3705 Handle case where root of renaming expression is itself a renaming.
3706 Use temp_parse_space for temporary name buffer.
3707 Handle renamings to dereferenced pointers (___XEXA suffices).
3708
3709 (ada_parse, yyerror, string_to_operator,
3710 write_var_from_sym, write_var_from_name, write_attribute_call0,
3711 write_attribute_call1, write_attribute_calln,
3712 write_object_renaming): Protoize.
3713
3714 (_initialize_ada_exp): New function.
3715
3716 * ada-lang.c: Update copyright notice.
3717 General terminology change to conform to GNAT compiler usage:
3718 mangle => encode, demangle => decode
3719 Include gdb_obstack.h.
3720 Include gdb_regex.h
3721 Include frame.h
3722 Include hashtab.h
3723 Include completer.h
3724 Include gdb_stat.h
3725 Include block.h
3726 Include infcall.h
3727
3728 (ADA_RETAIN_DOTS): Make sure this is defined.
3729 (TRUNCATION_TOWARDS_ZERO): Define.
3730 (struct string_vector): Define.
3731 (unresolved_names): Remove definition.
3732 (xnew_string_vector): New function.
3733 (string_vector_append): New function.
3734 (extract_string): Make static.
3735 (ada_unqualified_name): New function.
3736 (add_angle_brackets): New function.
3737 (function_name_from_pc): New function.
3738 (place_on_stack): Rename to ensure_lval.
3739
3740 (ensure_lval): Renamed from place_on_stack.
3741 Make identity on lvals.
3742 Update comment.
3743 (is_nonfunction): New interface.
3744 Only symbols in LOC_CONST class can be enumerals.
3745 (fill_in_ada_prototype): Remove; now independent of language.
3746 (add_defn_to_vec): Add obstack and symtab arguments.
3747 Use obstack to hold collected definitions.
3748 (num_defns_collected): New function.
3749 (defns_collected): New function.
3750 (ada_resolve_subexp): Rename to resolve_subexp.
3751 (resolve_subexp): Renamed from ada_resolve_subexp.
3752 (ada_op_name): Return non-const result.
3753 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3754 other purposes.
3755
3756 (to_fixed_array_type): Add declaration.
3757 (coerce_unspec_val_to_type): Remove offset parameter.
3758 (find_sal_from_funcs_and_line): New interface.
3759 (find_line_in_linetable): Ditto.
3760
3761 (all_sals_for_line): Rename to ada_sals_for_line and make
3762 global.
3763 Add new parameter. When set, do not ask the user to choose the
3764 instance, but use the first one found instead.
3765 Use given line number in returned sals.
3766 Fix comment.
3767 Skip the prologue if funfirstline is set.
3768 Correct for memory leak when 0 lines found.
3769
3770 (value_pos_atr): Use pos_atr.
3771 (pos_atr): New function.
3772 (standard_lookup): Add block parameter.
3773
3774 (makeTimeStart): Remove declaration and uses.
3775 (makeTimeStop): Remove declaration and uses.
3776
3777 (ada_completer_word_break_characters): Allow for VMS.
3778 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3779 (raise_sym_name): New constant.
3780 (raise_unhandled_sym_name): New constant.
3781 (raise_assert_sym_name): New constant.
3782 (process_raise_exception_name): New constant.
3783 (longest_exception_template): New constant.
3784 (warning_limit): New variable to limit warnings during expression
3785 evaluation.
3786 (warnings_issued): New variable to keep track of warnings issued.
3787 (known_runtime_file_name_patterns): New constant.
3788 (known_auxiliary_function_name_patterns): New constant.
3789 (symbol_list_obstack): New variable.
3790
3791 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3792 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3793 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3794 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3795 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3796 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3797 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3798 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3799 and strcmp.
3800
3801 (ada_get_field_index): New function.
3802 (lim_warning): New function.
3803 (ada_translate_error_message): New function.
3804 (MAX_OF_SIZE): New function.
3805 (MIN_OF_SIZE): New function.
3806 (UMAX_OF_SIZE): New function.
3807 (UMIN_OF_SIZE): New function.
3808 (discrete_type_high_bound): New function.
3809 (discrete_type_low_bound): New function.
3810 (base_type): New function.
3811 (do_command): Remove.
3812
3813 (ada_update_initial_language): Use language_ada, not language_unknown.
3814 (ada_encode): Renamed from ada_mangle.
3815 Obey ADA_RETAIN_DOTS.
3816 (ada_decode): Renamed from ada_demangle.
3817 Update coding conventions.
3818 (decoded_names_store): New hash table.
3819 (ada_decode_symbol): New function.
3820 (ada_la_decode): New function.
3821
3822 (modify_general_field): Correct computations of offset and bit
3823 position.
3824 (desc_base_type): Handle ref types, too.
3825 (ada_is_direct_array_type): New function.
3826
3827 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3828 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3829 (ada_is_bogus_array_descriptor,ada_type_of_array,
3830 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3831 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3832 ada_is_array_descriptor_type.
3833
3834 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3835 (ada_is_packed_array_type): Handle pointers or
3836 references to packed arrays as well.
3837 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3838 (decode_packed_array_type): Search for the packed array type
3839 symbol in the currently selected block and associated
3840 superblocks too.
3841 Use lookup_symbol again.
3842
3843 (decode_packed_array): Handle pointers and references.
3844 Update call to coerce_unspec_val_to_type.
3845 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3846 (ada_value_primitive_packed_val): Improve comment.
3847
3848 (ada_index_type): Substitute int type for "undefined".
3849 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3850 ada_array_langth, ada_is_string_type): Use renamed
3851 ada_is_simple_array_type.
3852 (empty_array): New function.
3853
3854 (ada_resolve): Rename to resolve.
3855 (resolve): Make static.
3856 Call renamed resolve_subexp.
3857 Update comment.
3858 (ada_resolve_subexp): Rename to resolve_subexp.
3859 (resolve_subexp): Update comment.
3860 Decomment disabled code.
3861 Add LOC_COMPUTED* cases.
3862 Modify to use temporary struct symbols (marked as being in
3863 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3864 OP_UNRESOLVED_VALUE.
3865 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3866 Add OP_STRING case.
3867 Remove OP_ARRAY.
3868 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3869 Use new ada_lookup_symbol_list interface.
3870 Use new ada_resolve_function interface.
3871 Remove OP_TYPE case.
3872
3873 (ada_args_match): Idiot proof against null actuals.
3874 Use intermediate variables to clarify.
3875 (ada_resolve_function): Update comment and interface.
3876 (mangled_ordered_before): Rename to encoded_ordered_before and
3877 update comment.
3878 (sort_choices): Update comment and interface.
3879 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3880 (user_select_syms): New interface.
3881 Use new sort_choices interface.
3882 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3883 (possible_user_operator_p): Idiot-proof against null values.
3884 (ada_simple_renamed_entity): Don't make cleanup; rely on
3885 caller to free result string.
3886 Remove const from return type.
3887 (make_array_descriptor): Rename uses of place_on_stack to
3888 ensure_lval.
3889 Make sure that arrays are on stack.
3890
3891 (HASH_SIZE): Define.
3892 (struct cache_entry): Define.
3893 (cache_space): Define.
3894 (cache): Define.
3895 (clear_ada_sym_cache): New function.
3896 (find_entry): New function.
3897 (lookup_cached_symbol): New function.
3898 (defn_vector_size): Define.
3899 (cache_symbol): New function.
3900 (defn_symbols): Remove.
3901
3902 (standard_lookup): Use lookup_symbol_in_language to get effect of
3903 C lookup.
3904 Cache results.
3905
3906 (symbol_completion_match): New function.
3907 (symbol_completion_add): New function.
3908 (ada_make_symbol_completion_list): New function.
3909
3910 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3911 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3912 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3913 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3914
3915 (ada_lookup_simple_minsym): New function.
3916 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3917
3918 (add_symbols_from_enclosing_procs): New interface.
3919 Conditionalize more helpfully.
3920 Don't bother if program isn't running.
3921 Use new interface to get_frame_block.
3922 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3923
3924 (remove_extra_symbols): New interface.
3925 (xget_renaming_scope): New function.
3926 (is_package_name): New function.
3927 (renaming_is_visible): New function.
3928 (remove_out_of_scope_renamings): New function.
3929
3930 (ada_lookup_symbol_list): New interface.
3931 Properly reinitialize the symbol list obstack.
3932 Don't call add_symbols_from_enclosing_procs if we start from a
3933 static or global block.
3934 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3935 add_symbols_from_enclosing_procs.
3936 Add symtab data to cached entries.
3937 Handle symbols prefixed with
3938 "standard__" specially; strip prefix and don't look in local symbols.
3939 Do not include out of scope renaming symbols in list of
3940 symbols returned.
3941 Add const to block parameter.
3942 Move check for non-local, non-global symbols earlier.
3943 Remove timing stuff.
3944 (ada_lookup_symbol): New interface.
3945 Find symtab as well.
3946 (ada_lookup_symbol_nonlocal): New function.
3947
3948 (is_name_suffix): Enhance suffix detection to recognize
3949 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3950 (is_dot_digits_suffix): New function.
3951 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3952
3953 (ada_add_block_symbols): New interface. Use obstack to return results
3954 in a vector of struct ada_symbol_infos. Add symtab argument.
3955 Use new interface to add_defn_to_vec.
3956 Remove calls to fill_in_ada_prototype.
3957 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3958
3959 (ada_finish_decode_line_1): Add const qualification to local to fix
3960 warning.
3961 Start looking in static block for functions to avoid attempts
3962 to search frame chain for up-level variables.
3963 Adapt to new ada_sals_for_line interface.
3964 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3965 Handle quoting of the function name inside the spec string.
3966 Skip prologue when funfirstline is set and update the
3967 function documentation to that effect.
3968
3969 (debug_print_lines, debug_print_block, debug_print_blocks,
3970 debug_print_symtab): Remove.
3971
3972 (ada_main_name): New function.
3973 (ada_exception_breakpoint_type): New function.
3974 (is_known_support_routine): New function.
3975 (ada_find_printable_frame): Renamed from find_printable_frame and made
3976 global.
3977 Remove level parameter.
3978 Use new interface to select_frame.
3979
3980 (begin_command): Remove.
3981 (ada_adjust_exception_stop): New function.
3982 (ada_print_exception_stop): New function.
3983 (exception_name_from_cond): New function.
3984 (ada_report_exception_break): Replace disabled code with
3985 conditionalization on GNAT_GDB.
3986 Get the exception name from the condition string.
3987 Remove and move functionality into new functions
3988 ada_print_exception_breakpoint_task and
3989 ada_print_exception_breakpoint_nontask.
3990 (error_breakpoint_runtime_sym_not_found): New function.
3991 (is_runtime_sym_defined): New function.
3992 (ada_breakpoint_rewrite): Uncomment suppressed code.
3993 Use symbolic error-message and runtime-symbol names.
3994 Surround runtime symbol names in quotes.
3995 Allow non-specific breakpoints on exceptions and assertions before
3996 program starts.
3997
3998 (ada_is_tagged_type): Add parameter.
3999 (ada_is_tag_type): New function.
4000 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4001 (ada_variant_discrim_type): Ditto.
4002 (value_tag_from_contents_and_address): New function.
4003 (type_from_tag): New function.
4004 (struct tag_args): New structure used to communicate with
4005 ada_tag_name_1.
4006 (ada_tag_name_1): New function.
4007 (ada_tag_name): New function.
4008
4009 (ada_scan_number): Update comment.
4010 (find_struct_field): New function.
4011 (ada_search_struct_field): Make static.
4012 (ada_value_struct_elt): New version that returns references when
4013 given pointers or references to structs.
4014 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4015 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4016 interface.
4017 (ada_value_ind): Use new ada_to_fixed_value interface.
4018 (ada_coerce_ref): Ditto.
4019 (field_offset): Remove.
4020
4021 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4022 (ada_find_renaming_symbol): New function.
4023 (ada_prefer_type): Prefer named types over unnamed ones.
4024 (variant_field_index): New function.
4025 (contains_variant_part): Removed: subsumed by variant_field_index.
4026 (ada_template_to_fixed_record_type): New function, mostly from
4027 template_to_fixed_record_type.
4028 (template_to_fixed_record_type):
4029 Do not scan the type fields beyond the last one; prevents a
4030 potential SEGV.
4031 Handle case where variant field is listed BEFORE discriminant it
4032 depends on.
4033 Fix calculation of record length when bit length is
4034 not evenly divisible by char length.
4035 Move code to ada_template_to_fixed_record_type and call it.
4036
4037 (template_to_static_fixed_type): Revise comment.
4038 Modify to work on ordinary record types as well as templates,
4039 so as to handle fields that use ___XVE or ___XVU encodings.
4040 (to_record_with_fixed_variant_part): Fill out comment.
4041 Initialize C++ stuff in right type.
4042 Allow case where DVAL is null.
4043 Handle case where variant field is not last.
4044 Fix typo concerning record length.
4045 (to_fixed_record_type): Decomment disabled code.
4046 (to_fixed_record_type): Use variant_field_index instead of
4047 contains_variant_part.
4048 (to_fixed_variant_branch_type): Ditto.
4049 (to_fixed_array_type): Decomment disabled code.
4050 (ada_to_fixed_type): Convert tagged types to the specific type.
4051 Deactivate the size-check for array types in order to avoid
4052 some false size alarms.
4053 (to_static_fixed_type): Decomment disabled code.
4054 Modify to call template_to_static_fixed_type
4055 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4056 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4057 Remove valaddr argument, as it is never really used.
4058 (ada_to_fixed_value): Change interface to act on single struct value*
4059 operand.
4060 (adjust_pc_past_prologue): New function.
4061 (ada_attribute_name): Modify to take enum exp_opcode argument.
4062
4063 (ada_enum_name): Recognize new homonym-distinguishing convention.
4064 Adjust local variable's type to remove compiler warning.
4065 Fix a small problem in the part that unqualifies the enumeration name.
4066 (ada_value_binop): New function.
4067 (ada_value_equal): New function.
4068
4069 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
4070 Don't give error message when not doing normal evaluation
4071 and a tagged type doesn't seem to contain a structure member.
4072 Give error message for packed arrays.
4073 For indexing arrays, handle pointers to packed arrays correctly.
4074 Handle case of 'first and 'last attributes of bare integral type
4075 without encoded subtype info.
4076 Remove some unnecessary casts.
4077 Fix uninitialized value of type in computing 'first, 'last, or 'length
4078 of array object.
4079 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
4080 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
4081 calls.
4082 Attributes are now exp_opcode values.
4083 Correct treatment of 'modulus.
4084 Better error message for taking 'length of wrong kind of type;
4085 improve comment.
4086 Change EVAL_NORMAL to noside for consistency.
4087 Use ada_value_binop for DIV, MOD, REM.
4088 Make special case out of array of length 0, since an argument
4089 of 0 upsets some platforms' malloc.
4090 Use OP_STRING instead of OP_ARRAY.
4091 For slice, add check that we have an array type before extracting
4092 a slice out of it. Avoids a SEGV.
4093 When evaluating an array slice, if the array type is a reference to
4094 an aligner type, then replace the aligner type by the actual type.
4095 Decomment disabled code.
4096 Remove some dead code.
4097 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
4098 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
4099 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
4100 and UNOP_MBR to UNOP_IN_RANGE.
4101 If an array type has a parallel ___XVE type, then use it.
4102 Turn arrays into pointers for lvalue arrays.
4103 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
4104 bounds error and handle 0-length slices.
4105 Use lim_warning.
4106 When selecting fields, apply ada_to_fixed_value (because the fields
4107 might have ___XVU or ___XVE encodings even if not dynamic.)
4108 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
4109 (ada_is_system_address_type): New function.
4110
4111 (get_var_value): Use new interface to ada_lookup_symbol_list.
4112 (get_int_var_value): New interface.
4113 (to_fixed_range_type): Allow unknown bound, with warning.
4114 (ada_is_modular_type): Decomment disabled code.
4115 (ADA_OPERATORS): New definition.
4116 (ada_operator_length): New function.
4117 (ada_expr_op_name): New function.
4118 (ada_forward_operator_length): New function.
4119 (ada_dump_subexp_body): New function.
4120 (ada_print_subexp): New function.
4121 (ada_exp_descriptor): New constant.
4122 (ada_op_print_tab): Add 'size. Remove FIXMEs.
4123 (ada_language_defn): Add ada_exp_descriptor entry.
4124 Change ada_parse => parse.
4125 Add post-parser entry.
4126 Use ada-specific non-local symbol lookup.
4127 Don't use C-style arrays.
4128 String lower-bound is 1.
4129 Decomment disabled code.
4130 (parse): New function.
4131 New fields ada_translate_error_message, ada_lookup_symbol,
4132 ada_lookup_minimal_symbol.
4133
4134 * ada-lang.h: Update copyright dates.
4135 Replace the mangle/demangle terminology throughout by the
4136 more appropriate encode/decode one.
4137 Include breakpoint.h.
4138 Forward declare struct partial_symbol, struct block.
4139 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4140 (EXTRACT_ADDRESS): Remove.
4141 (EXTRACT_INT): Remove.
4142 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4143 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4144 (MAX_RENAMING_CHAIN_LENGTH): Define.
4145 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4146
4147 (enum task_states): Remove.
4148 ada_task_states: Remove.
4149 (fat_string): Remove.
4150 (struct entry_call): Remove.
4151 (struct task_fields): Remove.
4152 (struct task_entry): Remove.
4153
4154 (struct ada_symbol_info): Define.
4155 (enum ada_attribute): Remove.
4156 (enum ada_operator): Define.
4157
4158 (ada_get_field_index): Declare.
4159 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4160 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4161 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4162 (ada_lookup_symbol_list): New interface.
4163 (ada_decode_symbol): Declare.
4164 (ada_decode): Declare.
4165 (ada_lookup_symbol): New interface.
4166 (ada_update_initial_language): Declare.
4167 (ada_lookup_simple_minsym): Declare.
4168 (user_select_syms): New interface.
4169 (ada_sals_for_line): Declare.
4170 (ada_is_tagged_type): New interface.
4171 (ada_tag_name): Declare.
4172 (ada_lookup_struct_elt_type): Remove declaration.
4173 (ada_search_struct_field): Remove declaration.
4174 (ada_attribute_name): New interface.
4175 (ada_is_system_address_type): Declare.
4176 (ada_to_fixed_value): Remove declaration.
4177 (ada_template_to_fixed_record_type_1): Declare.
4178 (get_int_var_value): New interface.
4179 (ada_find_any_symbol): Declare.
4180 (ada_find_renaming_symbol): Declare.
4181 (ada_mangle): Rename to ada_encode.
4182 (ada_simple_renamed_entity): Remove const.
4183 (ada_main_name): Declare.
4184 (get_current_task): Rename to ada_get_current_task.
4185 (get_entry_number): Remove declaration.
4186 (ada_report_exception_break): Remove declaration.
4187 (ada_print_exception_breakpoint_nontask): Declare.
4188 (ada_print_exception_breakpoint_task): Declare.
4189 (ada_find_printable_frame): Declare.
4190
4191 * ada-lex.l: Update copyright notices.
4192 Use xmalloc and xfree instead of malloc and free.
4193 Use new interface to name_lookup.
4194 Use new interface to
4195 ada_mangle=>ada_encode.
4196 Redo handling of '$...' variable to parallel current treatment
4197 in c-exp.y.
4198 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
4199 digit_to_int, strtoulst, processInt, processReal, processId,
4200 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
4201 yywrap): Protoize.
4202
4203 (processInt): Use cast to remove harmless warning.
4204 (processReal): Modify to get rid of compiler warning on scan formats.
4205
4206 (processId): Replace xmalloc with obstack_alloc for name and remove
4207 call to ada_name_string_cleanup.
4208 Remove obsolete disabled code.
4209 (name_lookup): Ditto.
4210 New interface.
4211 Use obsavestring on temp_parse_space instead of savestring
4212 on name, and remove call to ada_name_string_cleanup.
4213 Free string returned from ada_simple_renamed_entity.
4214 Use new interface to ada_lookup_symbol_list.
4215 Decomment disabled code.
4216 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
4217 not types.
4218 When a type name lookup succeeds as a result of
4219 lookup_primitive_typename, check for regular type entry that has not
4220 yet been read in.
4221 Limit length of chain of renamed symbols we are willing to follow.
4222 Do not break names beginning with "standard__" into segments.
4223 (block_lookup): Use new interface to ada_lookup_symbol_list.
4224
4225 * ada-typeprint.c: Update copyright notice.
4226 (demangled_type_name): Rename to decoded_type_name.
4227 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
4228 (print_range_bound): Correct handling of negative
4229 bounds that make the index type looked unsigned under STABS.
4230 (print_dynamic_range_bound): Use new interface to get_int_var_value.
4231 (print_range_type_named): Use the builtin int type if no type
4232 corresponding to the given type name could be found.
4233 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
4234 Add some bullet-proofing.
4235 (print_variant_clauses): Allow for variant branches with ___XVU
4236 encodings that are not dynamic fields.
4237 Use new interface to ada_is_tagged_type.
4238 (print_record_type): Allow for fields with ___XVE encodings that
4239 are not dynamic fields.
4240 Use new interface to ada_is_tagged_type.
4241 (ada_print_type): ada_is_array_descriptor =>
4242 ada_is_array_descriptor_type.
4243
4244 * ada-valprint.c: Update copyright notice.
4245 Include gdb_string.h
4246 Include infcall.h
4247 (ui_memcpy): New function.
4248 (ada_print_floating): New function.
4249 (ada_print_str): Order arguments correctly.
4250 Correct handling of empty arrays and arrays of 0-length items.
4251 ada_is_array_descriptor => ada_is_array_descriptor_type
4252 Print values of type System.Address in hexadecimal format.
4253 Use ada_print_floating to print floating-point numbers in Ada format.
4254 Print class tag values with type names.
4255 No longer print the address of reference values. Avoids
4256 a potential confusion.
4257 (ada_value_print): Stop printing the object type for reference
4258 values, but preserve that behavior for access types. Avoids
4259 a potential confusion.
4260 Simplify one conditional expression, as the first part is now
4261 necessarily true.
4262 ada_is_array_descriptor => ada_is_array_descriptor_type
4263 Add check for arrays for null records, and print them by hand.
4264
4265 2004-06-01 Jim Blandy <jimb@redhat.com>
4266
4267 * ppc-tdep.h: Delete unused 'regoff' member.
4268 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
4269
4270 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
4271
4272 Fix PR symtab/1661.
4273 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
4274 (hpread_read_struct_type): Likewise.
4275
4276 2004-06-01 Andrew Cagney <cagney@gnu.org>
4277
4278 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
4279 instead of xasprintf.
4280 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
4281 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4282 (mi_cmd_data_list_register_names)
4283 (mi_cmd_data_list_changed_registers)
4284 (mi_cmd_data_list_register_values)
4285 (get_register, mi_cmd_data_write_register_values)
4286 (mi_cmd_data_write_register_values)
4287 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
4288 (mi_cmd_target_download, mi_cmd_target_select)
4289 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
4290 (mi_execute_cli_command, mi_execute_async_cli_command)
4291 (mi_execute_async_cli_command): Ditto.
4292 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
4293 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
4294
4295 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
4296 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
4297 error_last_message instead of mi_error_last_message.
4298 * mi/mi-main.c (mi_error_last_message): Delete function.
4299
4300 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
4301 "invalid number of columns" error. Delete redundant "out of
4302 memory" check.
4303
4304 2004-05-31 Mark Kettenis <kettenis@gnu.org>
4305
4306 * i386bsd-nat.c: Don't include <sys/procfs.h>.
4307 (gregset_t, fpregset_t): Remove typedefs.
4308 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
4309 (REG_OFFSET): Rename argument.
4310 (i386bsd_r_reg_offset): Rename from reg_offset.
4311 (REG_ADDR): Remove macro.
4312 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
4313 functions.
4314 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
4315 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
4316 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
4317 instead of supply_gregset.
4318 (store_inferior_registers): Use `struct reg' and `struct fpreg'
4319 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
4320 instead of fill_gregset.
4321 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
4322
4323 * i386bsd-nat.c: Don't include "gregset.h".
4324 (supply_gregset, fill_gregset): Make static.
4325 (supply_fpregset, fill_fpregset): Remove.
4326 * Makefile.in (i386bsd-nat.o): Update dependencies.
4327
4328 2004-05-30 Mark Kettenis <kettenis@gnu.org>
4329
4330 * fbsd-proc.c: Include "regcache.h", "regset.h" and
4331 "gdb_assert.h". Con't include "gregset.h".
4332 (fbsd_make_corefile_notes): Use regset-based core file support
4333 instead off fill_gregset and fill_fpregset.
4334 * Makefile.in (fbsd-proc.o): Update dependencies.
4335
4336 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4337 instructions.
4338 (m88k_frame_prev_register): Simplify code a bit.
4339
4340 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4341 (amd64_collect_fpregset): New function.
4342 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4343
4344 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4345
4346 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4347 (i386_collect_gregset): New function.
4348 (i386_supply_fpregset): Adjust comment.
4349 (i386_collect_fpregset): New function.
4350 (i386_regset_from_core_section): Use i386_collect_gregset and
4351 i386_collect_fpregset.
4352
4353 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4354 handle VALUEP being null.
4355
4356 * regset.h (collect_regset_ftype): Unconstify fourth argument.
4357
4358 2004-05-29 Mark Kettenis <kettenis@gnu.org>
4359
4360 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4361
4362 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4363 assembler in OpenBSD 3.5-current.
4364 (amd64obsd_sigcontext_addr): Likewise.
4365
4366 2004-05-28 Jim Blandy <jimb@redhat.com>
4367
4368 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4369 register set, so our regcache isn't declared "legacy" and our E500
4370 pseudoregister read and write functions aren't ignored.
4371 (rs6000_register_byte, rs6000_register_raw_size,
4372 rs6000_register_virtual_type, rs6000_register_convertible,
4373 rs6000_register_convert_to_virtual,
4374 rs6000_register_convert_to_raw): Deleted.
4375 (rs6000_register_type, rs6000_convert_register_p,
4376 rs6000_register_to_value, rs6000_value_to_register): New
4377 functions.
4378 (rs6000_gdbarch_init): Don't register
4379 gdbarch_deprecated_register_size,
4380 gdbarch_deprecated_register_bytes,
4381 gdbarch_deprecated_register_byte,
4382 gdbarch_deprecated_register_raw_size,
4383 gdbarch_deprecated_register_virtual_type,
4384 gdbarch_deprecated_register_convertible,
4385 gdbarch_deprecated_register_convert_to_virtual, or
4386 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4387 register gdbarch_register_type, gdbarch_convert_register_p,
4388 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4389
4390 2004-05-26 Jim Blandy <jimb@redhat.com>
4391
4392 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4393 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4394 functions, updated to match the register numberings used in GCC.
4395 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4396 rs6000_dwarf2_reg_to_regnum as register number conversions
4397 functions for STABS and Dwarf2.
4398
4399 2004-05-26 Randolph Chung <tausq@debian.org>
4400
4401 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4402 in header file.
4403
4404 2004-05-25 Joel Brobecker <brobecker@gnat.com>
4405
4406 * NEWS: Document new "start" command.
4407
4408 2004-05-25 Randolph Chung <tausq@debian.org>
4409
4410 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4411 hppa-linux.
4412
4413 2004-05-25 Randolph Chung <tausq@debian.org>
4414
4415 * hppa-hpux-tdep.c (offsetof): Define.
4416 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4417 (hppa32_hpux_frame_base_before_sigtramp)
4418 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4419 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4420 (hppa64_hpux_frame_base_before_sigtramp)
4421 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4422 functions.
4423 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4424 (hppa_hpux_sigtramp_frame_unwind_cache)
4425 (hppa_hpux_sigtramp_frame_this_id)
4426 (hppa_hpux_sigtramp_frame_prev_register)
4427 (hppa_hpux_sigtramp_frame_unwind)
4428 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4429 (hppa_hpux_init_abi): Register sigtramp unwinder.
4430 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4431
4432 2004-05-25 Randolph Chung <tausq@debian.org>
4433
4434 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4435 and multiple stack unwinds.
4436 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4437
4438 2004-05-25 Andrew Cagney <cagney@gnu.org>
4439
4440 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4441 * symfile-mem.h: Delete file.
4442 * symfile-mem.c: Do not include "symfile-mem.h".
4443 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4444 "struct bfd_section". When an error do not bother returning NULL.
4445 (add_symbol_file_from_memory_command): Use "struct bfd" and
4446 "struct bfd_section".
4447 * Makefile.in (symfile_mem_h): Delete.
4448 (symfile-mem.o): Update dependencies.
4449
4450 2004-05-25 Nick Roberts <nickrob@gnu.org>
4451
4452 * gdb-mi.el: New file.
4453
4454 2004-05-25 Andrew Cagney <cagney@gnu.org>
4455
4456 * inftarg.c: Include "observer.h".
4457 (child_attach, child_create_inferior): Notify inferior_created.
4458 * corelow.c: Include "observer.h".
4459 (core_open): Notify inferior_created.
4460 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4461
4462 2004-05-25 Andrew Cagney <cagney@gnu.org>
4463
4464 * target.h (struct target_ops): Add from_tty to
4465 to_create_inferior.
4466 (target_create_inferior, find_default_create_inferior): Update.
4467 * infcmd.c (run_command): Update.
4468 * wince.c (child_create_inferior): Update.
4469 * win32-nat.c (child_create_inferior): Update.
4470 * uw-thread.c (uw_thread_create_inferior): Update.
4471 * thread-db.c (thread_db_create_inferior): Update.
4472 * target.c (debug_to_create_inferior)
4473 (find_default_create_inferior): Update.
4474 (maybe_kill_then_create_inferior): Update.
4475 * sol-thread.c (sol_thread_create_inferior): Update.
4476 * remote.c (extended_remote_async_create_inferior)
4477 (extended_remote_create_inferior): Update.
4478 * remote-vx.c (vx_create_inferior): Update.
4479 * remote-st.c (st2000_create_inferior): Update.
4480 * remote-sim.c (gdbsim_create_inferior): Update.
4481 * remote-sds.c (sds_create_inferior): Update.
4482 * remote-rdp.c (remote_rdp_create_inferior): Update.
4483 * remote-rdi.c (arm_rdi_create_inferior): Update.
4484 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4485 * remote-e7000.c (e7000_create_inferior): Update.
4486 * procfs.c (procfs_create_inferior): Update.
4487 * ocd.c (ocd_create_inferior): Update.
4488 * ocd.h (ocd_create_inferior): Update.
4489 * nto-procfs.c (procfs_create_inferior): Update.
4490 * monitor.c (monitor_create_inferior): Update.
4491 * lin-lwp.c (lin_lwp_create_inferior): Update.
4492 * inftarg.c (child_create_inferior): Update.
4493 * hpux-thread.c (hpux_thread_create_inferior): Update.
4494 * gnu-nat.c (gnu_create_inferior): Update.
4495
4496 2004-05-25 Andrew Cagney <cagney@gnu.com>
4497
4498 * MAINTAINERS: Update e-mail address.
4499
4500 2004-05-24 Randolph Chung <tausq@debian.org>
4501
4502 * thread.c (info_threads_command, thread_apply_all_command)
4503 (thread_apply_command, thread_command, do_captured_thread_select):
4504 Remove HPUXHPPA-specific code.
4505
4506 2004-05-24 Randolph Chung <tausq@debian.org>
4507
4508 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4509 unused symbols.
4510 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4511 references.
4512
4513 2004-05-24 Joel Brobecker <brobecker@gnat.com>
4514
4515 * infcmd.c (kill_if_already_running): New function, extracted
4516 from run_command().
4517 (run_command): Replace extracted code by call to
4518 kill_if_already_running().
4519 (start_command): New function.
4520 (_initialize_infcmd): Add "start" command.
4521
4522 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4523
4524 Add OpenBSD/m88k support.
4525 * NEWS (New native configurations): Mention OpenBSD/m88k.
4526 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4527 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4528 * Makefile.in (m88k_tdep_h): New variable.
4529 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4530 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4531 * configure.host: Add m88*-*-openbsd*.
4532 * configure.tgt: Add m88*-*-openbsd*.
4533
4534 2004-05-24 Jim Blandy <jimb@redhat.com>
4535
4536 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4537 to approve changes.
4538
4539 2004-05-24 Kevin Buettner <kevinb@redhat.com>
4540
4541 * symtab.c (fixup_section): Search section table when lookup by
4542 name fails.
4543
4544 2004-05-24 Randolph Chung <tausq@debian.org>
4545
4546 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4547 be "small_struct".
4548
4549 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4550
4551 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4552 register number in regcache_raw_collect call.
4553 (m68kbsd_collect_fpregset): Likewise.
4554 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4555
4556 * regset.h (struct regset): Add back `regset' member.
4557
4558 2004-05-23 Mark Kettenis <kettenis@gnu.org>
4559
4560 * configure.in: Check for td_pcb in `struct thread'.
4561 * configure, config.in: Regenerated.
4562
4563 * dpx2-nat.c: Remove file.
4564 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4565 (dpx2-nat.o): Remove dependencies.
4566
4567 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4568 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4569 (amd64obsd_supply_pcb): New function.
4570 (_initialize_amd64obsd_nat): Enable libkvm interface.
4571 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4572 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4573 (LOADLIBES): New variable.
4574
4575 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4576 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4577 (sparc32nbsd_supply_pcb): New function.
4578 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4579 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4580 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4581 (LOADLIBES): New variable.
4582
4583 2004-05-22 Mark Kettenis <kettenis@gnu.org>
4584
4585 * bsd-kvm.c, bsd-kvm.h: New files.
4586 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4587 "bsd-kvm.h".
4588 (i386fbsd_supply_pcb): New function.
4589 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4590 (i386fbsd-nat.o): Update dependencies.
4591 (bsd_kvm_h): New variable.
4592 (bsd-kvm.o): New dependency.
4593 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4594 (LOADLIBES): New variable.
4595
4596 * regset.c: Tweak comment.
4597 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4598 macro.
4599 * regset.h: Update copyright year.
4600 (struct regset): Remove `descr' member, add `gdbarch' member.
4601 (regset_alloc): Adjust prototype and comment.
4602 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4603 (i386_supply_fpregset): Likewise.
4604 (i386_regset_from_core_section): Update call to regset_alloc.
4605 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4606 REGSET->arch.
4607 (i386obsd_aout_regset_from_core_section): Update call to
4608 regset_alloc.
4609 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4610 REGSET->arch.
4611 (i386nbsd_aout_regset_from_core_section): Update call to
4612 regset_alloc.
4613 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4614 REGSET->arch.
4615 (amd64_regset_from_core_section): Update call to regset_alloc.
4616 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4617 REGSET->arch.
4618 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4619 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4620 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4621 (sparc32nbsd_init_abi): Update call to regset_alloc.
4622 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4623 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4624 (sparc64obsd_init_abi): Update call to regset_alloc.
4625 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4626 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4627 (sparc64nbsd_init_abi): Update call to regset_alloc.
4628 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4629 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4630 (sparc64fbsd_init_abi): Update call to regset_alloc.
4631
4632 2004-05-22 Jim Blandy <jimb@redhat.com>
4633
4634 * ppc-tdep.h (spe_register_p): New declaration.
4635 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4636 ppc_spefscr_regnum.
4637 * rs6000-tdep.c (spe_register_p): New function.
4638 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4639 spefscr.
4640 (rs6000_gdbarch_init): Initialize the new members of the tdep
4641 structure.
4642
4643 2004-05-21 Jim Blandy <jimb@redhat.com>
4644
4645 * ppc-linux-nat.c (fetch_register): Move code back to be next
4646 to the comment that describes it. (Moved code, instead of
4647 comment, for symmetry with store_register.)
4648
4649 Allocate regset structures in the gdbarch's obstack, not using
4650 xmalloc.
4651 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4652 Add 'arch' argument. Allocate the regset on arch's obstack, not
4653 using xmalloc.
4654 * regset.h (regset_alloc): Update declaration.
4655 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4656 gdbarch argument.
4657 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4658 * i386-tdep.c (i386_regset_from_core_section): Same.
4659 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4660 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4661 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4662 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4663 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4664 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4665
4666 2004-05-21 Joel Brobecker <brobecker@gnat.com>
4667
4668 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4669
4670 2004-05-21 Jim Blandy <jimb@redhat.com>
4671
4672 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4673 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4674
4675 2004-05-20 Jim Blandy <jimb@redhat.com>
4676
4677 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4678
4679 2004-05-20 Mark Kettenis <kettenis@gnu.org>
4680
4681 * regset.h: Make prototype const-correct.
4682 * regset.c (regset_xmalloc): Make const-correct.
4683
4684 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4685
4686 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4687 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4688 (symbol_search_name): Declare.
4689
4690 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4691 (iter_name_next_hashed): Ditto.
4692 (iter_name_next_linear): Ditto.
4693 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4694
4695 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4696 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4697 (symbol_search_name): New function.
4698
4699 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4700
4701 * minsyms.c (build_minimal_symbol_hash_tables): Change
4702 test for adding to demangled hash table to check for difference
4703 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4704
4705 2004-05-19 Jim Blandy <jimb@redhat.com>
4706
4707 Use a constructor function to create regset structures.
4708 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4709 (struct regset): Use supply_regset_ftype. Add new
4710 'collect_regset' member.
4711 (regset_xmalloc): New declaration.
4712 * regset.c: New file.
4713 * am64-tdep.c (amd64_regset_from_core_section): Use
4714 regset_xmalloc to construct regset structures.
4715 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4716 * i386-tdep.c (i386_regset_from_core_section): Same.
4717 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4718 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4719 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4720 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4721 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4722 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4723 * Makefile.in (COMMON_OBS): Add regset.o.
4724 (regset.o): New rule.
4725
4726 2004-05-19 Joel Brobecker <brobecker@gnat.com>
4727
4728 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4729 and pthread_cond_wait.c.
4730
4731 2004-05-18 Jim Blandy <jimb@redhat.com>
4732
4733 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4734 before the mach-specific switch, and then let the individual cases
4735 override the defaults, rather than leaving them uninitialized
4736 until the switch and then setting them in each case.
4737
4738 2004-05-18 Randolph Chung <tausq@debian.org>
4739
4740 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4741 millicode functions.
4742
4743 2004-05-18 Randolph Chung <tausq@debian.org>
4744
4745 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4746 references to dld_flags_buffer consistent.
4747
4748 2004-05-18 Randolph Chung <tausq@debian.org>
4749
4750 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4751 it for unwinding the stack.
4752
4753 2004-05-18 Randolph Chung <tausq@debian.org>
4754
4755 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4756 Undefine these so we can overide them using gdbarch.
4757
4758 2004-05-18 Randolph Chung <tausq@debian.org>
4759
4760 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4761 handling for 64-bit HPUX (elf).
4762
4763 2004-05-18 Daniel Jacobowitz <dan@debian.org>
4764
4765 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4766 constants.
4767 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4768 * ia64-tdep.c (examine_prologue): Likewise.
4769 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4770 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4771
4772 2004-05-18 Mark Kettenis <kettenis@gnu.org>
4773
4774 * vax-tdep.c (vax_return_value): Implement
4775 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4776
4777 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4778
4779 * vax-tdep.c (vax_return_value): Fix typo.
4780
4781 2004-05-17 Andrew Cagney <cagney@redhat.com>
4782
4783 * MAINTAINERS: Mark Salter was also responsible for
4784 testsuite/config/
4785
4786 * NEWS: Mention signal fixes.
4787
4788 2004-05-17 Randolph Chung <tausq@debian.org>
4789
4790 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4791 check to see if we are unwinding an export stub. Export stubs clobber
4792 the %rp in the call path and stores the original rp in a stack slot.
4793
4794 2004-05-17 Jim Blandy <jimb@redhat.com>
4795
4796 * MAINTAINERS: Update address for J.T. Conklin.
4797
4798 2004-05-17 Randolph Chung <tausq@debian.org>
4799
4800 * hppa-tdep.c: Remove superfluous #include's.
4801 * Makefile.in (hppa-tdep.o): Update dependencies.
4802
4803 2004-05-17 Randolph Chung <tausq@debian.org>
4804
4805 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4806 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4807 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4808 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4809 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4810 Remove static function declarations.
4811
4812 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4813
4814 * alphabsd-nat.c: Update copyright year.
4815 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4816
4817 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4818 and M68K_A2_REGNUM.
4819
4820 * m68k-tdep.c (m68k_svr4_return_value): Implement
4821 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4822
4823 2004-05-16 Mark Kettenis <kettenis@gnu.org>
4824
4825 * sol-thread.c Update copyright year. Fix various coding
4826 standards violations. Tweak a few comments.
4827 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4828 Delete prototypes.
4829
4830 2004-05-15 Randolph Chung <tausq@debian.org>
4831
4832 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4833 as pointer instead of array reference since HPUX compiler does
4834 not accept unsized array arguments.
4835 * somsolib.c (dld_flags_buffer): Use constant array size.
4836
4837 2004-05-15 Mark Kettenis <kettenis@gnu.org>
4838
4839 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4840 offset with decimal offset.
4841 (amd64obsd_sigcontext_addr): Return correct address for entire
4842 signal trampoline.
4843
4844 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4845 instead of get_frame_base.
4846
4847 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4848 (fill_gregset): Use regcache_raw_collect.
4849
4850 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4851 ppcobsd-tdep.c.
4852
4853 * config/sparc/tm-nbsd64.h: Remove file.
4854 * config/tm-sunos.h: Remove file.
4855
4856 2004-05-15 Joel Brobecker <brobecker@gnat.com>
4857
4858 * rs6000-tdep.c (store_param_on_stack_p): New function,
4859 an improved version of some code extracted from skip_prologue().
4860 (skip_prologue): Use store_param_on_stack_p() to detect
4861 instructions saving a parameter on the stack. Detect when r0
4862 is used to save a parameter.
4863 Do not mark "li rx, SIMM" instructions as part of the prologue,
4864 unless the following instruction is also part of the prologue.
4865
4866 2004-05-14 Andrew Cagney <cagney@redhat.com>
4867
4868 * infrun.c (handle_inferior_event): Simplify
4869 STEP_OVER_UNDEBUGGABLE.
4870
4871 * infrun.c (handle_step_into_function): Delete function.
4872 (handle_inferior_event): Inline calls to
4873 handle_step_into_function.
4874
4875 2004-05-14 Jerome Guitton <guitton@gnat.com>
4876
4877 * rs6000-nat.c: Fix a comment.
4878
4879 2004-05-12 David Anderson <davea@sgi.com>
4880
4881 Committed by Jim Blandy <jimb@redhat.com>:
4882 * regcache.c (struct regcache_descr): fix comment spelling.
4883
4884 2004-05-13 J. Brobecker <brobecker@gnat.com>
4885
4886 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4887 Fixes a link link failure.
4888
4889 2004-05-13 J. Brobecker <brobecker@gnat.com>
4890
4891 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4892 error that was causing the build to fail.
4893
4894 2004-05-13 J. Brobecker <brobecker@gnat.com>
4895
4896 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4897 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4898
4899 2004-05-13 Andrew Cagney <cagney@redhat.com>
4900
4901 * infrun.c (handle_inferior_event): Check for
4902 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4903 calls. Update comments.
4904
4905 2004-05-13 Jim Blandy <jimb@redhat.com>
4906
4907 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4908 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4909 (store_regs_user_thread, store_regs_kernel_thread): Use
4910 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4911 * ppc-linux-nat.c (fill_gregset): Same.
4912 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4913 (ppc_linux_sigtramp_cache): Same.
4914 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4915 (ppcnbsd_sigtramp_cache_init): Same.
4916 * rs6000-nat.c (fetch_core_registers): Same.
4917 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4918 (rs6000_frame_cache): Same.
4919
4920 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4921 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4922 of assuming that the gprs are numbered starting with zero.
4923 * ppc-linux-nat.c (fill_gregset): Same.
4924 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4925 * ppcnbsd-nat.c (getregs_supplies): Same.
4926 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4927 * rs6000-nat.c (fetch_core_registers): Same.
4928 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4929
4930 2004-05-07 Michael Snyder <msnyder@redhat.com>
4931
4932 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4933 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4934
4935 2004-05-13 Andrew Cagney <cagney@redhat.com>
4936
4937 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4938
4939 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4940
4941 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4942 base_address for shared libraries.
4943
4944 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4945
4946 * MAINTAINERS (write after approval): Add myself.
4947
4948 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4949
4950 * breakpoint.c (bpstat_stop_status): Add new argument
4951 STOPPED_BY_WATCHPOINT. Use it instead of testing
4952 target_stopped_data_address agaist 0 to check whether
4953 or not we stopped due to a hardware watchpoint.
4954 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4955 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4956 with new argument.
4957
4958 2004-05-12 Jim Blandy <jimb@redhat.com>
4959
4960 * configure.in: When checking whether we should use the -bbigtoc
4961 option, don't forget to restore the original value of LDFLAGS.
4962 * configure: Regenerated.
4963
4964 2004-05-12 Andrew Cagney <cagney@redhat.com>
4965
4966 * thread.c (load_infrun_state): Delete step_sp.
4967 * infrun.c (context_switch): Ditto.
4968 * inferior.h (step_sp): Ditto.
4969 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4970 * gdbthread.h (struct thread_info, save_infrun_state)
4971 (restore_infrun_state): Ditto.
4972
4973 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4974
4975 * MAINTAINERS (write after approval): Add myself.
4976
4977 2004-05-12 Andrew Cagney <cagney@redhat.com>
4978
4979 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4980 eliminate reference to step_sp.
4981 (struct execution_control_state, init_execution_control_state)
4982 (handle_inferior_event, keep_going): Delete update_step_sp and
4983 step_sp.
4984 * infcmd.c (step_sp): Note that variable is unused.
4985
4986 2004-05-11 Andrew Cagney <cagney@redhat.com>
4987
4988 * infrun.c (step_over_function): Delete function.
4989 (handle_step_into_function): Use insert_step_resume_breakpoint.
4990 (insert_step_resume_breakpoint): Fix assertion.
4991
4992 2004-05-11 Nick Roberts <nickrob@gnu.org>
4993
4994 * utils.c (defaulted_query): Just use the normal query input type
4995 when printing the annotations.
4996
4997 2004-05-11 Andrew Cagney <cagney@redhat.com>
4998
4999 * infrun.c (handle_inferior_event): Simplify code handling
5000 step-into or return-from a signal trampoline.
5001
5002 2004-05-11 Andrew Cagney <cagney@redhat.com>
5003
5004 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5005 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5006
5007 2004-05-10 Jim Blandy <jimb@redhat.com>
5008
5009 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5010 with a call to internal_error.
5011
5012 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5013 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5014 processor variant lacks those registers.
5015 (ppc_floating_point_unit_p): Change description to make it clear
5016 that this returns info about the ISA, not the ABI.
5017 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5018 return true or false by checking tdep->ppc_fp0_regnum and
5019 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5020 arch/mach switching done in rs6000_gdbarch_init; it's better to
5021 keep that logic there, and just check the results here.
5022 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5023 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5024 floating-point registers.
5025 (ppc_supply_fpregset, ppc_collect_fpregset)
5026 (rs6000_push_dummy_call, rs6000_extract_return_value)
5027 (rs6000_store_return_value): Assert that we have floating-point
5028 registers.
5029 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5030 (rs6000_frame_cache): Don't note the locations at which
5031 floating-point registers were saved if we have no fprs.
5032 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5033 registers.
5034 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5035 (store_regs_user_thread, store_regs_kernel_thread): Only call
5036 supply_fprs / fill_fprs if we actually have floating-point
5037 registers.
5038 (special_register_p): Check ppc_fpscr_regnum before matching
5039 against it.
5040 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5041 supply / collect fpscr if we don't have it.
5042 * ppc-bdm.c: #include "gdb_assert.h".
5043 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5044 have floating-point registers, since I can't test this code on
5045 FP-free systems to adapt it.
5046 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5047 fpscr and floating point register numbers if they don't exist.
5048 (fetch_register): Assert that we have floating-point registers
5049 before we reach the code that handles them.
5050 (store_register): Same. And use tdep instead of calling
5051 gdbarch_tdep again.
5052 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5053 don't have them.
5054 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5055 fprs and fpscr if we don't have them.
5056 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5057 don't have them.
5058 * ppcnbsd-nat.c: #include "gdb_assert.h".
5059 (getfpregs_supplies): Assert that we have floating-point registers.
5060 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
5061 * ppcobsd-tdep.c: #include "gdb_assert.h".
5062 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
5063 have floating-point registers.
5064 * rs6000-nat.c (regmap): Don't match against the fpscr and
5065 floating point register numbers if they don't exist.
5066 (fetch_inferior_registers, store_inferior_registers,
5067 fetch_core_registers): Only fetch / store / supply the
5068 floating-point registers and the fpscr if we have them.
5069 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
5070 (ppcobsd-tdep.o): Update dependencies.
5071
5072 2004-05-10 Andrew Cagney <cagney@redhat.com>
5073
5074 * infrun.c (through_sigtramp_breakpoint): Delete variable.
5075 (context_switch): Do not switch through_sigtramp_breakpoint.
5076 * gdbthread.h (save_infrun_state, load_infrun_state)
5077 (struct thread_info): Delete through_sigtramp_breakpoint parameter
5078 and structure member.
5079 * thread.c (load_infrun_state, save_infrun_state): Update.
5080
5081 2004-05-10 Mark Kettenis <kettenis@gnu.org>
5082
5083 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
5084
5085 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5086
5087 * acinclude.m4: Quote macro names being defined by AC_DEFUN
5088 throughout.
5089 * aclocal.m4: Regenerate.
5090
5091 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
5092
5093 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
5094
5095 2004-05-10 Andrew Cagney <cagney@redhat.com>
5096
5097 * infrun.c (check_sigtramp2): Delete function.
5098 (handle_inferior_event): When single stepping, and taking a
5099 signal, set a breakpoint at the signal return address. Delete
5100 redundant calls to check_sigtramp2.
5101 (insert_step_resume_breakpoint): New function.
5102 (through_sigtramp_breakpoint, handle_inferior_event)
5103 (follow_exec, wait_for_inferior, fetch_inferior_event)
5104 (currently_stepping, keep_going): Delete most uses of
5105 through_sigtramp_breakpoint, not that it should be deleted.
5106 (delete_breakpoint_current_contents): Delete function.
5107
5108 2004-05-10 Randolph Chung <tausq@debian.org>
5109
5110 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
5111 target.
5112 * config/pa/tm-linux.h: New file.
5113
5114 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
5115
5116 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
5117 of prefixes. Don't print the prefix twice in the CLI.
5118
5119 2004-05-10 Jim Blandy <jimb@redhat.com>
5120
5121 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
5122 collect all the gprs.
5123
5124 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
5125 loop collecting gprs.
5126
5127 2004-05-09 Andrew Cagney <cagney@redhat.com>
5128
5129 * remote-vx.c (net_step): Delete step-range code.
5130 * remote.c (remote_resume, init_all_packet_configs)
5131 (set_remote_protocol_E_packet_cmd)
5132 (show_remote_protocol_E_packet_cmd)
5133 (remote_protocol_E, show_remote_cmd, _initialize_remote)
5134 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5135 (show_remote_protocol_e_packet_cmd): Ditto.
5136
5137 2004-05-09 Mark Kettenis <kettenis@gnu.org>
5138
5139 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5140
5141 * hppa-tdep.h: Update copyright year.
5142 (struct trad_frame_saved_reg): Add opaque declaration.
5143
5144 * amd64-tdep.c (amd64_return_value): Implement
5145 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5146
5147 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5148 (m68k_value_to_register): New functions.
5149 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5150 value_to_register.
5151
5152 * defs.h (enum return_value_convention): Add
5153 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5154 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5155 * infcmd.c (legacy_return_value): New function.
5156 (print_return_value): Rwerite to implement
5157 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5158 * values.c (using_struct_return): Check for inequality to
5159 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5160 RETURN_VALUE_STRUCT_CONVENTION.
5161 * i386-tdep.c (i386_return_value): Implement
5162 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5163
5164 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5165 include "symtab.h", "opcode/vax.h" and "inferior.h".
5166 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5167 to read_memory_unsigned_integer.
5168 (vax_gdbarch_init): Reorder.
5169 (_initialize_vax_tdep): Spell out prototype.
5170 * Makefile.in (vax-tdep.o): Update dependencies.
5171
5172 2004-05-08 Andrew Cagney <cagney@redhat.com>
5173
5174 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5175 * target.c (target_detach, target_disconnect): Ditto.
5176
5177 * infcall.c (call_function_by_hand): When no
5178 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5179 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5180 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5181 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5182 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5183
5184 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5185 * gdbarch.h, gdbarch.c: Re-generate.
5186 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5187 deprecated_fix_call_dummy.
5188 * v850-tdep.c (v850_gdbarch_init): Ditto.
5189 * infcall.c (call_function_by_hand): Do not call
5190 DEPRECATED_FIX_CALL_DUMMY.
5191
5192 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
5193 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
5194 * gdbarch.h, gdbarch.c: Re-generate.
5195 * arm-linux-tdep.c (arm_linux_call_dummy_words)
5196 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
5197 deprecated_sizeof_call_dummy_words.
5198 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
5199 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5200 * v850-tdep.c (v850_gdbarch_init): Ditto.
5201 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5202 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
5203 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5204 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5205 * arch-utils.h (legacy_call_dummy_words)
5206 (legacy_sizeof_call_dummy_words): Delete declarations.
5207 * arch-utils.c (legacy_call_dummy_words)
5208 (legacy_sizeof_call_dummy_words): Delete variables.
5209
5210 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
5211 * gdbarch.h, gdbarch.c: Re-generate.
5212 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
5213 * infcall.c (call_function_by_hand): Eliminate call to
5214 DEPRECATED_PUSH_DUMMY_FRAME.
5215 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5216 push_dummy_frame.
5217 (ns32k_push_dummy_frame): Delete function.
5218
5219 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5220 deprecated_call_dummy_breakpoint_offset or
5221 deprecated_call_dummy_start_offset.
5222 * dummy-frame.c, arm-tdep.c: Update comments.
5223 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
5224 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
5225 * gdbarch.h, gdbarch.c: Re-generate.
5226
5227 * infcall.c (legacy_push_dummy_code): Delete function.
5228 (push_dummy_code): Delete call.
5229
5230 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
5231 * gdbarch.h, gdbarch.c: Re-generate.
5232 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
5233 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
5234 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
5235 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
5236
5237 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
5238 (struct frame_info): Delete opaque declaration.
5239 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
5240 * frame.c (get_frame_type): Delete call.
5241
5242 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5243 pc_in_call_dummy.
5244 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
5245 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
5246
5247 2004-05-08 Mark Kettenis <kettenis@gnu.org>
5248
5249 * alphanbsd-tdep.c: Include "gdb_string.h".
5250 * armnbsd-tdep.c: Update copyright year.
5251 Include "gdb_string.h".
5252 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
5253 dependencies.
5254
5255 * delta68-nat.c: Remove file.
5256 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
5257 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
5258 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
5259 (delta68-nat.o): Remove dependency.
5260
5261 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
5262 function.
5263 (m68k_gdbarch_init): Don't set
5264 deprecated_frameless_function_invocation.
5265
5266 2004-05-07 Randolph Chung <tausq@debian.org>
5267
5268 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
5269 read_memory_nobpt for code reading when doing frame unwinding.
5270 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
5271
5272 2004-05-07 Randolph Chung <tausq@debian.org>
5273
5274 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
5275 instead of sp, handle sigaltstack case.
5276 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
5277 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
5278 signal handler and not that of the caller.
5279 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
5280 hppa_linux_sigtramp_find_sigcontext.
5281
5282 2004-05-07 Randolph Chung <tausq@debian.org>
5283
5284 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
5285 hppa-linux-nat.c.
5286 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
5287 * hppa-linux-nat.c (fetch_register, store_register): Define.
5288 (fetch_inferior_registers, store_inferior_registers): Define.
5289 (supply_gregset): Add comment and clean up some unneeded code.
5290 (fill_gregset): Add comment and fix so that it saves registers in
5291 the right place in the gregset.
5292 (fill_fpregset): Fix buffer overrun problem.
5293 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5294
5295 2004-05-07 Randolph Chung <tausq@debian.org>
5296
5297 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
5298 do common handling of the pcoqt register.
5299 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
5300 to use helper function.
5301 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
5302 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
5303 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
5304 generic fallback unwinder when all else fails.
5305 (hppa_gdbarch_init): Add fallback sniffer.
5306 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
5307 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
5308 to use helper function.
5309
5310 2004-05-08 Joel Brobecker <brobecker@gnat.com>
5311
5312 * config/djgpp/fnchange.lst: Add translation rules for
5313 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
5314
5315 2004-05-08 Mark Kettenis <kettenis@gnu.org>
5316
5317 * frame.c (get_prev_frame_1): Work around GCC bug.
5318 * frame.h: Add comment about GCC bug.
5319
5320 2004-05-07 Andrew Cagney <cagney@redhat.com>
5321
5322 * observer.c: Include "commands.h" and "gdbcmd.h".
5323 (observer_debug, _initialize_observer): Add the
5324 command "set/show debug observer".
5325 * observer.sh: When observer debugging, log notify calls.
5326 * Makefile.in (observer.o): Update dependencies.
5327
5328 2004-05-07 Jason Molenda (jmolenda@apple.com)
5329
5330 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
5331
5332 2004-05-07 Jim Blandy <jimb@redhat.com>
5333
5334 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5335 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5336 to recognize gpr regnums, instead of assuming that
5337 tdep->ppc_fp0_regnum marks the end of the general-purpose
5338 registers.
5339
5340 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5341 the given architecture has floating-point registers.
5342
5343 2004-05-07 Andrew Cagney <cagney@redhat.com>
5344
5345 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5346 macro defined to 1.
5347 * gdbarch.h, gdbarch.c: Re-generate.
5348 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5349 deprecated_use_generic_dummy_frames.
5350
5351 2004-05-07 Brian Ford <ford@vss.fsi.com>
5352
5353 * NEWS: Mention Cygwin DWARF 2 support.
5354
5355 2004-05-07 Andrew Cagney <cagney@redhat.com>
5356
5357 * objfiles.h (struct entry_info): Delete unused fields
5358 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
5359 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
5360 * mipsread.c (mipscoff_symfile_read): Update.
5361 * mdebugread.c (parse_partial_symbols): Update.
5362 * dwarfread.c (read_file_scope): Update.
5363 * dwarf2read.c (read_file_scope): Update.
5364 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5365 * coffread.c (complete_symtab): Update.
5366
5367 2004-05-07 Mark Kettenis <kettenis@gnu.org>
5368
5369 * infcall.c (_initialize_infcall): Fix typo.
5370
5371 2004-05-07 Andrew Cagney <cagney@redhat.com>
5372
5373 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5374 * command.h (add_setshow_zinteger_cmd): Declare.
5375
5376 2004-05-06 Randolph Chung <tausq@debian.org>
5377
5378 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5379 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5380 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5381 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5382 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5383 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5384 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5385 definitions ...
5386 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5387 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5388 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5389 (hppa64_hpux_frame_find_saved_regs_in_sig)
5390 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5391 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5392 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5393 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5394 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5395 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5396 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5397 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5398 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5399 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5400 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5401 (hppa32_register_type, hppa_cannot_store_register)
5402 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5403 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5404 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5405 * pa64solib.c (pa64_solib_have_load_event)
5406 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5407 (pa64_solib_unloaded_library_pathname): Likewise.
5408 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5409 (som_solib_library_pathname): Likewise.
5410
5411 2004-05-05 Jim Ingham <jingham@apple.com>
5412
5413 * breakpoint.c (create_breakpoints): Copy the ignore count and
5414 thread id over from the pended breakpoint to the actual
5415 breakpoint.
5416
5417 2004-05-05 Andrew Cagney <cagney@redhat.com>
5418
5419 * gdbarch.sh (PARM_BOUNDARY): Delete.
5420 gdbarch.h, gdbarch.c: Re-generate.
5421 * valops.c (PARM_BOUNDARY): Delete macro.
5422 (value_push): Delete PARM_BOUNDARY code.
5423 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5424
5425 2004-05-04 Jim Blandy <jimb@redhat.com>
5426
5427 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5428 Don't assume that the gprs, fprs, and UISA sprs are
5429 contiguous, start at register number zero, and end with fpscr.
5430 Instead, use the numbers from the tdep structure.
5431
5432 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5433 should no longer be used in code specific to the RS6000 and its
5434 derivatives.
5435 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5436 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5437 tdep->ppc_fp0_regnum.
5438 (ppc_supply_fpregset, ppc_collect_fpregset)
5439 (rs6000_push_dummy_call, rs6000_extract_return_value)
5440 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5441 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5442 FP0_REGNUM.
5443 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5444 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5445 Same.
5446 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5447 bdm_ppc_store_registers): Same.
5448 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5449 (store_register, fill_fpregset): Same.
5450 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5451 (ppc_linux_supply_fpregset): Same.
5452 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5453 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5454 Same.
5455 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5456 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5457 ppc64_sysv_abi_return_value): Same.
5458 * rs6000-nat.c (regmap, fetch_inferior_registers)
5459 (store_inferior_registers, fetch_core_registers): Same.
5460
5461 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5462
5463 * m68knbsd-nat.c: Remove file.
5464 * m68knbsd-tdep.c: Remove file.
5465 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5466 dependencies.
5467 * configure.host: Add m68k-*-netbsdelf*.
5468 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5469 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5470 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5471 (XM_FILE): Remove.
5472 * config/m68k/nbsdelf.mh: New file.
5473 * config/m68k/nbsd.mt: New file.
5474 * config/m68k/nbsdaout.mt: Remove file.
5475 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5476 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5477 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5478 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5479 (use_struct_convention): Remove prototype.
5480 (USE_STRUCT_CONVENTION): Remove define.
5481 * config/m68k/xm-nbsd.h: Remove file.
5482
5483 2004-05-04 Michael Snyder <msnyder@redhat.com>
5484
5485 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5486 reg_struct_return method (as gcc usually does for cross targets).
5487
5488 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5489
5490 Committed by Andrew Cagney.
5491 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5492 alignment padding when accessing ucontext struct members.
5493
5494 2004-05-04 Jim Blandy <jimb@redhat.com>
5495
5496 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5497 'ppc_gplast_regnum' member.
5498 (ppc_num_gprs): New enum constant.
5499 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5500 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5501 * rs6000-nat.c (regmap, fetch_inferior_registers,
5502 store_inferior_registers): Same.
5503 * rs6000-tdep.c (e500_pseudo_register_read)
5504 (e500_pseudo_register_write): Same.
5505 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5506
5507 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5508 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5509 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5510 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5511 FPLAST_REGNUM.
5512 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5513 Same.
5514 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5515 * rs6000-nat.c (regmap, fetch_inferior_registers)
5516 (store_inferior_registers): Same.
5517
5518 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5519 with FPLAST_REGNUM.
5520
5521 2004-05-03 Joel Brobecker <brobecker@gnat.com>
5522
5523 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5524 failure detected by recent versions of GCC.
5525 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5526 to be consistent with the usage in dwarf2_create_include_psymtab.
5527
5528 2004-05-03 Michael Snyder <msnyder@redhat.com>
5529
5530 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5531 (heuristic_proc_start): Whitespace cleanup.
5532
5533 2004-05-04 Mark Kettenis <kettenis@gnu.org>
5534
5535 * sun3-nat.c: Remove file.
5536 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5537 dependencies.
5538 (ALLDEPFILES): Remove sun3-nat.c.
5539 (sun3-nat.o): Remove dependencies.
5540
5541 * i386-interix-nat.c, i386-interix-tdep.c,
5542 config/i386/nm-interix.h, config/i386/interix.mh,
5543 config/i386/interix.mt: Remove files.
5544 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5545 dependencies.
5546
5547 2004-05-03 Mark Kettenis <kettenis@gnu.org>
5548
5549 * m68k-tdep.h (struct gdbarch_tdep): Add member
5550 struct_value_regnum.
5551 (m68k_svr4_init_abi): New prototype.
5552 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5553 different calling conventions.
5554 (m68k_extract_return_value): Remove code dealing with single-field
5555 structs.
5556 (m68k_store_return_value): Remove code dealing with single-field
5557 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5558 (m68k_extract_struct_value_address): Remove function.
5559 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5560 (m68k_reg_struct_return_p, m68k_return_value)
5561 (m68k_svr4_return_value): New functions.
5562 (m68k_use_struct_convention): Remove function.
5563 (m68k_push_dummy_call): Use new struct_value_regnum member of
5564 `struct gdbarch_tdep' instead of hardcoded register number to
5565 store STRUCT_ADDR.
5566 (m68k_svr4_init_abi): New function.
5567 (m68k_gdbarch_init): Don't set extract_return_value,
5568 store_return_values, deprecated_extract_struct_value_address and
5569 use_struct_convention. Set return_value instead. Initialize new
5570 struct_value_regnum member of `struct gdbarch_tdep'.
5571 * m68klinux-tdep.c: Update copyright year.
5572 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5573 (m68k_linux_extract_struct_value_address): Remove function.
5574 (m68k_linux_init_abi): Don't set extract_return_value,
5575 store_return_values, deprecated_extract_struct_value_address and
5576 use_struct_convention. Call m68k_svr4_init_abi but override the
5577 new struct_value_regnum member of `struct gdbarch_tdep'.
5578 * Makefile.in (m68k-tdep.o): Update dependencies.
5579
5580 2004-05-03 J. Brobecker <brobecker@gnat.com>
5581
5582 * dwarf2read.c (line_header): Add new included_p field in
5583 field file_names.
5584 (partial_die_info): New field has_stmt_list. New field line_offset.
5585 (dwarf2_create_include_psymtab): New function.
5586 (dwarf2_build_include_psymtabs): New function.
5587 (add_file_name): Add forward declaration. Initialize new field.
5588 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5589 to be able to determine the list of files included by the
5590 given unit, and build their associated psymtabs.
5591 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5592 files as well.
5593 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5594 (read_file_scope): Update call to dwarf_decode_lines.
5595 (read_partial_die): Handle DW_AT_stmt_list attributes.
5596
5597 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5598
5599 Unfix PR gdb/1626.
5600 * configure.in: Revert special case for osf5.*.
5601 * configure: Regenerate.
5602
5603 2004-05-02 Jim Blandy <jimb@redhat.com>
5604
5605 Move the symbol-file-from-memory functions into their own file.
5606 * symfile-mem.c, symfile-mem.h: New files.
5607 * symfile.c (symbol_file_add_from_bfd): New function.
5608 (symbol_file_add): Call symbol_file_add_from_bfd.
5609 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5610 Moved to symfile-mem.c.
5611 (_initialize_symfile): Move definition of
5612 add-symbol-file-from-memory command to symfile-mem.c.
5613 * symfile.h (symbol_file_add_from_bfd): New declaration.
5614 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5615 * config/powerpc/linux.mt (TDEPFILES): Same.
5616 * Makefile.in (SFILES): Add symfile-mem.c.
5617 (symfile_mem_h): New variable.
5618 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5619 (symfile-mem.o): New rule.
5620
5621 2004-05-01 Andrew Cagney <cagney@redhat.com>
5622
5623 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5624 frame_find_by_id instead of frame_relative_level.
5625 (do_enable_breakpoint): Ditto.
5626 * thread.c: Update copyright.
5627 (info_threads_command): Ditto, simplify.
5628
5629 * frame.c (deprecated_generic_get_saved_register): Delete
5630 function, moved to "xstormy16-tdep.c".
5631 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5632 deprecated_generic_get_saved_register from "frame.c".
5633 (xstormy16_frame_saved_register): Call
5634 xstormy16_get_saved_register.
5635 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5636 static.
5637 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5638 * frame.h (deprecated_generic_get_saved_register): Delete.
5639
5640 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5641
5642 * dwarfread.c: Update documentation on the state of dwarf-1.
5643
5644 2004-05-01 Andrew Cagney <cagney@redhat.com>
5645
5646 * stack.c (select_frame_command): Delete call to
5647 frame_relative_level.
5648 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5649 Delete #if0 code.
5650 (frame_info): Do not print FRAMELESS.
5651 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5652 (catch_info): Delete #if0 code.
5653
5654 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5655 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5656 of frame_relative_level.
5657 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5658 to SENTINEL_FRAME.
5659 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5660 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5661 frame_relative_level.
5662
5663 * frame.h (deprecated_set_frame_type): Delete declaration.
5664 * frame.c (deprecated_set_frame_type): Delete function, update
5665 comments.
5666
5667 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5668 * gdbarch.h, gdbarch.c: Re-generate.
5669 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5670 (shnbsd_pc_in_sigtramp): Delete.
5671 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5672 pc_in_sigtramp.
5673 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5674 pc_in_sigtramp.
5675 * frame.h: Update comments.
5676 * ppc-linux-tdep.c: Update comments.
5677 * breakpoint.c (bpstat_what): Update comments.
5678
5679 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5680 m68klinux-tdep.o's dependencies, were previously added to
5681 m68klinux-nat.o.
5682
5683 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5684 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5685 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5686 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5687 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5688
5689 * Makefile.in (m68klinux-nat.o): Update dependencies.
5690 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5691 (m68k_linux_sigtramp_frame_cache)
5692 (m68k_linux_sigtramp_frame_this_id)
5693 (m68k_linux_sigtramp_frame_prev_register)
5694 (m68k_linux_sigtramp_frame_unwind)
5695 (m68k_linux_sigtramp_frame_sniffer)
5696 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5697 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5698 names, use trad-frame.h.
5699 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5700 (struct m68k_sigtramp_info): Delete.
5701 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5702 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5703 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5704 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5705 "m68klinux-tdep.c".
5706
5707 * infrun.c (check_sigtramp2): Delete check for
5708 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5709
5710 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5711
5712 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5713
5714 2004-05-01 Andrew Cagney <cagney@redhat.com>
5715
5716 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5717 (frv_linux_sigtramp_frame_cache)
5718 (frv_linux_sigtramp_frame_this_id)
5719 (frv_linux_sigtramp_frame_prev_register)
5720 (frv_linux_sigtramp_frame_unwind)
5721 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5722 include "linux" in function and variable names, directly call
5723 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5724 the latest trad-frame code.
5725 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5726 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5727 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5728 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5729 * frv-tdep.c (frv_sigtramp_frame_cache)
5730 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5731 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5732 frv-linux-tdep.c.
5733 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5734 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5735 (frv_set_sigcontext_reg_addr): Delete function.
5736
5737 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5738 (DEPRECATED_SIGTRAMP_END): Delete.
5739 * gdbarch.h, gdbarch.c: Re-generate.
5740 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5741 * config/vax/tm-vaxbsd.h: Update copyright.
5742 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5743 (DEPRECATED_IN_SIGTRAMP): Define.
5744 * config/m68k/tm-nbsd.h: Update copyright.
5745 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5746 (DEPRECATED_IN_SIGTRAMP): Define.
5747
5748 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5749
5750 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5751 encondings. Fixes PR gdb/1628.
5752
5753 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5754 DW_CFA_restore state without a matching DW_CFA_remember_state
5755 instead of aborting. Fixes PR backtrace/1589.
5756
5757 2004-04-30 Joel Brobecker <brobecker@gnat.com>
5758
5759 * MAINTAINERS: Add self as AIX maintainer.
5760 Update my e-mail address in write-after-approval section.
5761
5762 2004-04-30 Andrew Cagney <cagney@redhat.com>
5763
5764 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5765 (legacy_get_prev_frame): Ditto.
5766
5767 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5768 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5769 * mipsread.c (sigtramp_address): Delete extern variable.
5770 (mipscoff_new_init): Delete reference.
5771 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5772 (fixup_sigtramp): Delete function.
5773 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5774 (fixup_sigtramp): Delete declarations.
5775
5776 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5777 deprecated_pc_in_sigtramp.
5778 (ppcnbsd_pc_in_sigtramp): Delete function.
5779
5780 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5781
5782 * config/m68k/nm-nbsd.h: Tweak comments.
5783 * config/m68k/nm-nbsdaout.h: Likewise.
5784
5785 2004-04-30 Andrew Cagney <cagney@redhat.com>
5786
5787 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5788 legacy_pc_in_sigtramp.
5789 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5790
5791 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5792
5793 Add OpenBSD/m68k support.
5794 * NEWS (New native configurations): Mention OpenBSD/m68k.
5795 * m68kbsd-tdep.c: New file.
5796 * m68kbsd-nat.c: New file.
5797 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5798 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5799 * configure.host: Add m68k-*-openbsd.
5800 * configure.tgt: Add m68k-*-openbsd.
5801 * config/m68k/tm-obsd.h: New file.
5802 * config/m68k/obsd.mt: New file.
5803 * config/m68k/obsd.mh: New file.
5804 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5805 m68kbsd-tdep.c.
5806
5807 2004-04-30 Andrew Cagney <cagney@redhat.com>
5808
5809 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5810 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5811
5812 2004-04-30 Mark Kettenis <kettenis@gnu.org>
5813
5814 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5815 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5816
5817 2004-04-30 Brian Ford <ford@vss.fsi.com>
5818
5819 Revert 2004-04-16 change.
5820 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5821 (i386_coff_init_abi): Remove.
5822 * i386-tdep.h (i386_coff_init_abi): Remove.
5823 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5824
5825 2004-04-30 Andrew Cagney <cagney@redhat.com>
5826
5827 * blockframe.c (find_pc_partial_function): Delete use of
5828 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5829 DEPRECATED_SIGTRAMP_END.
5830
5831 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5832 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5833 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5834 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5835 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5836
5837 * defs.h (deprecated_inside_entry_file): Delete declaration.
5838 * blockframe.c (deprecated_inside_entry_file): Delete function.
5839 (legacy_frame_chain_valid): Delete call.
5840 * sh64-tdep.c (sh64_frame_chain): Delete call.
5841 * objfiles.h: Update comments.
5842 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5843 call.
5844 * frame.c (get_prev_frame): Delete call, update comments.
5845
5846 2004-04-30 Brian Ford <ford@vss.fsi.com>
5847
5848 * MAINTAINERS (Write After Approval): Add myself.
5849
5850 2004-04-30 Andrew Cagney <cagney@redhat.com>
5851
5852 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5853 * gdbarch.h, gdbarch.c: Re-generate.
5854 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5855 code.
5856
5857 2004-04-30 Andrew Cagney <cagney@redhat.com>
5858
5859 * gdb-events.sh (selected_thread_changed)
5860 (selected_frame_level_changed, target_changed): Delete.
5861 * gdb-events.h, gdb-events.c: Re-generate.
5862 * valops.c (value_assign): Update.
5863 * stack.c (select_frame_command, up_silently_base)
5864 (down_silently_base): Update.
5865
5866 2004-04-29 Andrew Cagney <cagney@redhat.com>
5867
5868 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5869 registers correctly.
5870 (print_gp_register_row, mips32_heuristic_proc_desc)
5871 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5872 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5873 references to mips_isa_regsize.
5874
5875 2004-04-29 Andrew Cagney <cagney@redhat.com>
5876
5877 * mips-tdep.c (struct gdbarch_tdep): Delete
5878 mips_fp_register_double.
5879 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5880 mips_abi_regsize.
5881 (mips_gdbarch_init): Do not set mips_fp_register_double.
5882 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5883
5884 2004-04-29 Joel Brobecker <brobecker@gnat.com>
5885
5886 Committed by Andrew Cagney.
5887 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5888 function calls.
5889
5890 2004-04-29 Andrew Cagney <cagney@redhat.com>
5891
5892 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5893 gdbarch, use mips_abi, update callers.
5894 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5895 mips_abi_regsize, update callers.
5896 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5897 mips_default_abi_regsize.
5898 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5899 mips_default_abi_regsize.
5900
5901 2004-04-29 Andrew Cagney <cagney@redhat.com>
5902
5903 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5904 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5905 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5906 mips_default_abi_regsize.
5907 (mips_isa_regsize): Rename mips_regisze.
5908 * mipsnbsd-tdep.c: Update.
5909 * mips-linux-tdep.c: Update.
5910 * irix5-nat.c: Update.
5911 * mips-tdep.h (mips_isa_regsize): Update.
5912
5913 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5914 Delete all disabled code.
5915 * gdb-events.h, gdb-events.c: Re-generate.
5916
5917 2004-04-19 Jerome Guitton <guitton@gnat.com>
5918 Mark Kettenis <kettenis@gnu.org>
5919
5920 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5921 the function begins with a branch instruction.
5922
5923 2004-04-29 Mark Kettenis <kettenis@gnu.org>
5924
5925 * i386-tdep.c: Fix spelling mistakes.
5926
5927 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5928 Andrew Cagney <cagney@redhat.com>
5929
5930 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5931 <sys/proc.h>.
5932 * acconfig.h: Provide default _KMEMUSER value.
5933 * config.in, configure: Re-generate.
5934 * NEWS: Mention fix.
5935
5936 2004-04-24 Randolph Chung <tausq@debian.org>
5937
5938 * configure.host (hppa*-*-linux*): New target.
5939 * configure.tgt (hppa*-*-linux*): Likewise.
5940 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5941 gdbarch_init_osabi() call earlier so that osabi-specific frame
5942 unwinders can be registered first.
5943 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5944 hppa-linux-nat.c.
5945 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5946 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5947 * config/pa/linux.mh: New file.
5948 * config/pa/linux.mt: New file.
5949 * config/pa/nm-linux.h: New file.
5950 * config/pa/xm-linux.h: New file.
5951 * hppa-linux-nat.c: New file.
5952 * hppa-linux-tdep.c: New file.
5953
5954 2004-04-28 Randolph Chung <tausq@debian.org>
5955
5956 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5957 return values.
5958 (hppa32_push_dummy_call): Fix small struct and floating point argument
5959 passing, and make sure the stack frame is properly aligned.
5960
5961 2004-04-28 Andrew Cagney <cagney@redhat.com>
5962
5963 * stack.c (print_stack_frame): Fix description.
5964
5965 * NEWS: Mention gdb/gdbserver/configure execute permission
5966 changed. PR server/519.
5967
5968 2004-04-28 Andrew Cagney <cagney@redhat.com>
5969
5970 * stack.c (print_stack_frame_stub): Delete declaration.
5971 (struct print_stack_frame_args, print_stack_frame)
5972 (print_frame_info, print_frame): Replace "source" with print what.
5973 Replace "print" with "print_level". Replace "args" with
5974 "print_args".
5975 * frame.h (show_and_print_stack_frame, print_stack_frame)
5976 (print_frame_info): Update declarations.
5977 * stack.c (select_and_print_frame, frame_command)
5978 (current_frame_command, up_command, down_command): Update calls -
5979 use get_selected_frame, pass "enum print_what" for source, do not
5980 call frame_relative_level.
5981 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5982 * remote-rdp.c (remote_rdp_open): Ditto.
5983 * remote-mips.c (common_open): Ditto.
5984 * remote-e7000.c (e7000_start_remote): Ditto.
5985 * ocd.c (ocd_start_remote): Ditto.
5986 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5987 * infrun.c (normal_stop): Ditto.
5988 * inflow.c (kill_command): Ditto.
5989 * infcmd.c (finish_command): Ditto.
5990 * corelow.c (core_open): Ditto.
5991 * tracepoint.c (finish_tfind_command): Ditto.
5992 * thread.c (info_threads_command, info_threads_command)
5993 (restore_current_thread, do_captured_thread_select): Ditto.
5994 * ada-tasks.c (task_command): Ditto.
5995
5996 2004-04-26 Orjan Friberg <orjanf@axis.com>
5997
5998 * frame.c: Include "observer.h".
5999 (frame_observer_target_changed): New function.
6000 (_initialize_frame): Attach target_changed observer.
6001 * regcache.c: Include "observer.h".
6002 (regcache_observer_target_changed): New function.
6003 (_initialize_regcache): Attach target_changed observer.
6004 * valops.c: Include "observer.h".
6005 (value_assign): Notify target_changed event when modifying register.
6006 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6007
6008 2004-04-26 Orjan Friberg <orjanf@axis.com>
6009
6010 From Paul Koning <pkoning@equallogic.com>:
6011 * breakpoint.c (free_valchain): New function.
6012 (insert_bp_location, delete_breakpoint): Use free_valchain.
6013 (remove_breakpoint): Do not remove the valchain.
6014 (bpstat_stop_status): If not stopped by watchpoint, skip
6015 watchpoints when generating stop status list.
6016 * infrun.c (handle_inferior_event): Make
6017 stepped_after_stopped_by_watchpoint a global variable.
6018 * remote.c (remote_stopped_data_address): Return watch data
6019 address rather than zero if stepped_after_stopped_by_watchpoint is
6020 set.
6021
6022 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6023
6024 Fix PR gdb/1626.
6025 * configure.in: Check for curses after termcap.
6026 On osf5.*, do not check for ncurses.
6027 * configure: Regenerate.
6028
6029 2004-04-25 Mark Kettenis <kettenis@gnu.org>
6030
6031 * ppcobsd-nat.c: Include "ppc-tdep.h".
6032 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6033
6034 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6035 Fixes PR tdep/1623 and PR tdep/1624.
6036
6037 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6038
6039 * xmodem.h, xmodem.c: Remove files.
6040 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6041
6042 2004-04-23 Randolph Chung <tausq@debian.org>
6043
6044 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6045 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6046 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6047 for handling stackless frames.
6048 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6049
6050 2004-04-23 Randolph Chung <tausq@debian.org>
6051
6052 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6053 starts at a pc before the frame is created.
6054
6055 2004-04-23 Joel Brobecker <brobecker@gnat.com>
6056
6057 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6058
6059 2004-04-23 Jerome Guitton <guitton@gnat.com>
6060
6061 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
6062 use convert_typed_floating to get the appropriate format.
6063
6064 2004-04-22 Randolph Chung <tausq@debian.org>
6065
6066 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
6067 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
6068 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
6069 (hppa_sign_extend): Add prototype.
6070 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
6071 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
6072 (sign_extend): Rename with hppa_ prefix and make non-static. Other
6073 hppa targets will also use these functions.
6074 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
6075 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
6076 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
6077 (hppa_gdbarch_init): Remove gdbarch setting of
6078 skip_trampoline_code, in_solib_call_trampoline and
6079 in_solib_return_trampoline.
6080 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6081 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
6082 hppa_in_solib_call_trampoline.
6083 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
6084 Moved from hppa-tdep.c.
6085 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
6086 in_solib_call_trampoline and in_solib_return_trampoline.
6087
6088 2004-04-22 Randolph Chung <tausq@debian.org>
6089
6090 * hppa-tdep.c (hppa_debug): New variable.
6091 (find_unwind_entry, hppa_frame_cache): Add debug output.
6092 (_initialize_hppa_tdep): Add command to set debug flag.
6093
6094 2004-04-22 Andrew Cagney <cagney@redhat.com>
6095
6096 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
6097 "trad-frame.h".
6098 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
6099 signal trampoline unwinder.
6100 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
6101
6102 2004-04-22 Mark Kettenis <kettenis@gnu.org>
6103
6104 Add OpenBSD/powerpc support.
6105 * NEWS (New native configurations): Mention OpenBSD/powerpc.
6106 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
6107 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
6108 (ppc_collect_fpregset): New prototypes.
6109 * ppcobsd-nat.c: New file.
6110 * ppcobsd-tdep.c: New file.
6111 * ppcobsd-tdep.h: New file.
6112 * rs6000-tdep.c: Include "regset.h".
6113 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
6114 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
6115 New functions.
6116 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
6117 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
6118 (rs6000-tdep.o): Update dependencies.
6119 * configure.host: Add powerpc-*-openbsd.
6120 * configure.tgt: Add powerpc-*-openbsd.
6121 * config/powerpc/obsd.mh: New file.
6122 * config/powerpc/nm-obsd.h: New file.
6123 * config/powerpc/obsd.mt: New file.
6124
6125 2004-04-22 Andrew Cagney <cagney@redhat.com>
6126
6127 * frame.h (show_frame_info): Delete declaration.
6128
6129 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
6130 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
6131 * m32r-tdep.c (m32r_frame_this_id): Ditto.
6132 * frv-tdep.c (frv_frame_this_id): Ditto.
6133 * avr-tdep.c (avr_frame_this_id): Ditto.
6134
6135 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
6136
6137 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6138
6139 2004-04-22 Jim Blandy <jimb@redhat.com>
6140
6141 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6142 register number zero.
6143
6144 2004-04-21 Michael Snyder <msnyder@redhat.com>
6145
6146 * mips-tdep.c (heuristic_proc_start):
6147 Warning() already prefixes "Warning: ".
6148
6149 2004-04-21 Andrew Cagney <cagney@redhat.com>
6150
6151 * annotate.h (deprecated_annotate_starting_hook)
6152 (deprecated_annotate_stopped_hook)
6153 (deprecated_annotate_exited_hook)
6154 (deprecated_annotate_signal_hook)
6155 (deprecated_annotate_signalled_hook): Deprecate.
6156 * tracepoint.h (deprecated_create_tracepoint_hook)
6157 (deprecated_delete_tracepoint_hook)
6158 (deprecated_modify_tracepoint_hook)
6159 (deprecated_trace_find_hook)
6160 (deprecated_trace_start_stop_hook): Deprecate.
6161 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6162 * remote.h (deprecated_target_resume_hook)
6163 (deprecated_target_wait_loop_hook): Deprecate.
6164 * gdbcore.h (deprecated_exec_file_display_hook)
6165 (deprecated_file_changed_hook): Deprecate.
6166 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6167 * defs.h (deprecated_modify_breakpoint_hook)
6168 (deprecated_command_loop_hook, deprecated_show_load_progress)
6169 (deprecated_print_frame_info_listing_hook)
6170 (deprecated_query_hook, deprecated_warning_hook)
6171 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6172 (deprecated_delete_breakpoint_hook)
6173 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6174 (deprecated_readline_begin_hook, deprecated_readline_hook)
6175 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6176 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6177 (deprecated_context_hook, deprecated_target_wait_hook)
6178 (deprecated_attach_hook, deprecated_detach_hook)
6179 (deprecated_call_command_hook, deprecated_set_hook)
6180 (deprecated_error_hook, deprecated_error_begin_hook)
6181 (deprecated_ui_load_progress_hook): Deprecate.
6182 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6183 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6184 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6185 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6186 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6187 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6188 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6189 * annotate.c, aix-thread.c: Update.
6190
6191 2004-04-21 Andrew Cagney <cagney@redhat.com>
6192
6193 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
6194 * vaxnbsd-tdep.c: Include "gdb_string.h".
6195
6196 * symfile.c (symbol_file_add_from_memory): #if 0 function.
6197 (add_symbol_file_from_memory_command): #if 0 function body, call
6198 error instead.
6199
6200 2004-04-21 Andrew Cagney <cagney@redhat.com>
6201
6202 * gdbcore.h: Update copyright.
6203 (deprecated_add_core_fns): Rename add_core_fns.
6204 * win32-nat.c (_initialize_core_win32): Update.
6205 * sun3-nat.c (_initialize_core_sun3): Update.
6206 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
6207 * rs6000-nat.c (_initialize_core_rs6000): Update.
6208 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
6209 * nto-tdep.c (_initialize_nto_tdep): Update.
6210 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
6211 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
6212 * mips-nat.c (_initialize_core_mips): Update.
6213 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6214 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
6215 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
6216 * lynx-nat.c (_initialize_core_lynx): Update.
6217 * irix5-nat.c (_initialize_core_irix5): Update.
6218 * i386-interix-nat.c (_initialize_core_interix): Update.
6219 * cris-tdep.c (_initialize_cris_tdep): Update.
6220 * corelow.c (deprecated_add_core_fns): Update.
6221 * core-regset.c (_initialize_core_regset): Update.
6222 * core-aout.c (_initialize_core_aout): Update.
6223 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
6224 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
6225 * alpha-nat.c (_initialize_core_alpha): Update.
6226
6227 2004-04-21 Jim Blandy <jimb@redhat.com>
6228
6229 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
6230
6231 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
6232
6233 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
6234 Delete.
6235 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
6236 (read_attribute_value): Update calls to dwarf_alloc_block.
6237 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
6238 dwarf2_tmp_obstack.
6239 (psymtab_to_symtab_1): Likewise. Clean up using
6240 free_stack_comp_unit.
6241 (add_to_cu_func_list): Use the comp_unit_obstack.
6242
6243 2004-04-19 Joel Brobecker <brobecker@gnat.com>
6244
6245 * dwarf2read.c (dwarf2_flag_true_p): New function.
6246 (die_is_declaration): Use the function above. Add some comments.
6247
6248 2004-04-19 Mark Kettenis <kettenis@gnu.org>
6249
6250 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
6251 architecture when registering sparcnbsd_core_osabi_sniffer.
6252 Adjust comment.
6253
6254 2004-04-18 Mark Kettenis <kettenis@gnu.org>
6255
6256 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
6257 return value.
6258
6259 Based on a patch from Brian Ford <ford@vss.fsi.com>:
6260 * i386-tdep.c: Correct register numbering scheme comments
6261 throughout.
6262 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
6263 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
6264 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
6265 (i386_gdb_arch_init): Likewise.
6266
6267 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
6268 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
6269 ppcnbsd-tdep.o.
6270
6271 * m68k-tdep.h: Tweak comments.
6272 * m68k-tdep.c: Tweak comment.
6273
6274 2004-04-17 Randolph Chung <tausq@debian.org>
6275
6276 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
6277 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
6278 (hppa_hpux_som_init_abi): Set is_elf to 0.
6279 (hppa_hpux_elf_init_abi): Set is_elf to 1.
6280 * hppa-tdep.c (low_text_segment_address): Remove global.
6281 (record_text_segment_lowaddr): Pass in low address as parameter. Use
6282 section offset to calculate segment address.
6283 (internalize_unwinds): Define low_text_segment_address as local and
6284 pass to record_text_segment_lowaddr for ELF targets.
6285 (hppa_gdbarch_init): Zero fill tdep structure.
6286 (hppa_dump_tdep): Print tdep structure.
6287 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
6288
6289 2004-04-17 Randolph Chung <tausq@debian.org>
6290
6291 * hppa-tdep.c (hppa_pseudo_register_read): Define.
6292 (hppa_gdbarch_init): Set pseudo_register_read.
6293 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
6294 * regcache.c (supply_register): Remove check for
6295 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
6296
6297 2004-04-17 Randolph Chung <tausq@debian.org>
6298
6299 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
6300 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
6301 (hpread_adjust_stack_address): Move to hpread.c.
6302 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6303 obj_private_struct): Move from tm-hppa.h.
6304 * hpread.c (hppa-tdep.h): Include.
6305 (hpread_adjust_stack_address): Move from hppa-tdep.c.
6306 (hpread_read_function_type, hpread_read_doc_function_type)
6307 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
6308 directly.
6309 * pa64solib.c (hppa-tdep.h): Include.
6310 * somsolib.c (hppa-tdep.h): Include.
6311 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
6312 inferior_status): Remove unused forward declarations.
6313 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
6314 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6315 obj_private_struct): Move to hppa-tdep.h.
6316 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
6317
6318 2004-04-17 Randolph Chung <tausq@debian.org>
6319
6320 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
6321 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
6322 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
6323 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
6324 Remove forward declaration and make static.
6325 (hppa_reg_struct_has_addr): Remove.
6326
6327 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6328
6329 * observer.sh: Move comments in sed command to first column.
6330
6331 2004-04-16 Jason Molenda (jmolenda@apple.com)
6332
6333 * frame.c: Minor typeo corrections in comments.
6334
6335 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6336
6337 * observer.c (observer_test_first_notification_function): Update
6338 function profile.
6339 (observer_test_second_notification_function): Likewise.
6340 (observer_test_third_notification_function): Likewise.
6341
6342 2004-04-16 Mark Kettenis <kettenis@gnu.org>
6343
6344 From Brian Ford <ford@vss.fsi.com>:
6345 * i386-tdep.c (i386_coff_init_abi): New function.
6346 * i386-tdep.h (i386_coff_init_abi): New prototype.
6347 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6348 register number translation functions for DWARF and DWARF 2.
6349
6350 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6351
6352 * dwarf2read.c: Back out my previous change, it was incorrect.
6353
6354 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
6355
6356 * dwarf2read.c: Include "hashtab.h".
6357 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
6358 has_namespace_info.
6359 (struct partial_die_info): Add comments. Use bitfields to reduce
6360 memory footprint. Add scope, scope_set, has_specification,
6361 spec_offset, die_parent, die_child, and die_sibling.
6362 (peek_die_abbrev): Add prototype.
6363 (partial_read_comp_unit_head): New function, broken out from
6364 dwarf2_build_psymtabs_hard.
6365 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6366 Use partial_read_comp_unit_head. Initialize the CU and
6367 comp_unit_obstack. Update calls to read_partial_die and
6368 scan_partial_symbols. Use free_stack_comp_unit and
6369 load_partial_dies.
6370 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6371 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6372 Update calls to helper functions. Remove NAMESPACE argument.
6373 Update comments.
6374 (partial_die_parent_scope, partial_die_full_name): New functions.
6375 (add_partial_symbol): Remove namespace argument. Update call to
6376 pdi_needs_namespace. Use partial_die_full_name. Handle
6377 DW_TAG_namespace. Check has_namespace_info flag.
6378 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6379 tag. Handle namespaces.
6380 (add_partial_namespace, add_partial_enumeration): Simplify.
6381 (guess_structure_name): New function, derived from
6382 add_partial_structure.
6383 (add_partial_structure): Remove.
6384 (determine_class_name): Update comment.
6385 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6386 (is_type_tag_for_partial, load_partial_dies): New functions.
6387 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6388 Record specifications instead of following them immediately.
6389 (find_partial_die_in_comp_unit, find_partial_die)
6390 (fixup_partial_die, free_stack_comp_unit)
6391 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6392 (partial_die_hash, partial_die_eq): New functions.
6393 * Makefile.in (hashtab_h): Define.
6394 (dwarf2read.o): Update dependencies.
6395 (observer_inc, observer_h): Move to the correct section.
6396
6397 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6398
6399 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6400 (die_is_declaration): Use the function above. Add comment.
6401
6402 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6403
6404 * dwarf2read.c (read_structure_scope): Identify stub types
6405 using die_is_declaration() only.
6406
6407 2004-04-15 Roland McGrath <roland@redhat.com>
6408
6409 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6410 argument instead of NAME.
6411 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6412 in call to symbol_file_add_with_addrs_or_offsets.
6413 (build_addr_info): New function, helper for ...
6414 (symbol_file_add_from_memory): New function.
6415 (add_symbol_file_from_memory_command): New function using that.
6416 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6417 (pre_add_symbol_hook): Add const to argument type.
6418 * symfile.h (symbol_file_add_from_memory): Declare it.
6419
6420 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6421
6422 * NEWS (New native configurations): Mention OpenBSD/vax.
6423 * configure.host: Add vax-*-openbsd*.
6424 * config/vax/obsd.mh: New file.
6425 * config/vax/nm-obsd.h: New file.
6426
6427 * vax-tdep.c: Include "regset.h".
6428 (vax_supply_gregset): New function.
6429 (vax_gregset): New variable.
6430 (vax_regset_from_core_section): New function.
6431 (vax_gdbarch_init): Set regset_from_core_section.
6432 * Makefile.in (vax-tdep.o): Update dependencies.
6433
6434 2004-04-15 Andrew Cagney <cagney@redhat.com>
6435
6436 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6437 (observer_normal_stop_notification_stub)
6438 (observer_attach_normal_stop, observer_detach_normal_stop):
6439 Delete, replaced by #include "observer.inc".
6440 * infrun.c (normal_stop): Pass "stop_bpstat" to
6441 observer_notify_normal_stop.
6442 * Makefile.in (observer_inc): Define.
6443 (observer.o): Update dependencies.
6444 (observer.h, observer.inc): New rules.
6445 * observer.h: Delete file.
6446 * observer.sh: New file.
6447
6448 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6449
6450 * vax-tdep.c (vax_frame_cache): Fix typo.
6451
6452 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6453
6454 * NEWS (New native configurations): Mention NetBSD/vax.
6455 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6456 * config/vax/nbsdelf.mh: New file.
6457 * config/vax/nbsdaout.mh: New file.
6458 * config/vax/nm-nbsd.h: New file.
6459 * config/vax/nm-nbsdaout.h: New file.
6460
6461 * vaxnbsd-tdep.c: New file.
6462 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6463 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6464 * config/vax/nbsd.mt: New file.
6465 * config/vax/tm-nbsd.h: New file.
6466
6467 * Makefile.in (vaxbsd-nat.o): New dependency.
6468
6469 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6470 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6471 struct_addr arguments. Don't push return value address.
6472 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6473 arguments to vax_store_arguments. Store return value address in
6474 R1.
6475 (vax_store_struct_return, vax_extract_return_value)
6476 (vax_store_return_value): Remove functions.
6477 (vax_return_value): New function.
6478 (vax_gdbarch_init): Set return value. Don't set
6479 deprecated_store_struct_return, deprecated_extract_struct_return
6480 and deprecated_store_return_value.
6481
6482 2004-04-14 Andreas Schwab <schwab@suse.de>
6483
6484 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6485 value buffer.
6486 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6487
6488 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6489
6490 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6491 (vax_unwind_dummy_id): New functions.
6492 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6493 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6494 variables.
6495 (vax_fix_call_dummy): Remove function.
6496 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6497 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6498 call_dummy_location, deprecated_call_dummy_words,
6499 deprecated_sizeof_call_dummy_words,
6500 deprecated_call_dummy_breakpoint_offset,
6501 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6502 and deprecated_dummy_write_sp.
6503
6504 2004-04-13 David Carlton <carlton@kealia.com>
6505
6506 * MAINTAINERS: Move myself to "paper trail" section.
6507
6508 2004-04-12 Mark Kettenis <kettenis@gnu.org>
6509
6510 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6511 "trad-frame.h".
6512 (vax_frame_init_saved_regs): Remove function.
6513 (vax_sigtramp_saved_pc): Remove function.
6514 (vax_frame_saved_pc): Remove function.
6515 (vax_frame_args_address): Remove function.
6516 (vax_frame_num_args): Rewrite.
6517 (vax_frame_chain): Remove function.
6518 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6519 VAX_FP_REGNUM.
6520 (vax_pop_frame): Likewise.
6521 (vax_saved_pc_after_call): Remove function.
6522 (struct vax_frame_cache): New structure.
6523 (vax_frame_cache): New function.
6524 (vax_frame_this_id): New function.
6525 (vax_frame_prev_register): New function.
6526 (vax_frame_unwind): New variable.
6527 (vax_frame_sniffer): New function.
6528 (vax_frame_base_address): New function.
6529 (vax_frame_args_address): New function.
6530 (vax_frame_base): New variable.
6531 (vax_unwind_pc): New function.
6532 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6533 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6534 deprecated_frame_chain, deprecated_frame_saved_pc,
6535 deprecated_frame_args_address and
6536 deprecated_frame_init_saved_regs.
6537 * Makefile.in (vax-tdep.o): Update dependencies.
6538
6539 * vaxbsd-nat.c: New file.
6540
6541 * vax-tdep.h: Update copyright year. Adjust comments.
6542 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6543 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6544 (vax_regnum): New enum. Replacing...
6545 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6546 (VAX_PS_REGNUM): ... these removed macros.
6547 * vax-tdep.c (vax_register_name): Remove prototype.
6548 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6549 (vax_register_byte, vax_register_raw_size,
6550 vax_register_virtual_size, vax_register_virtual_type): Remove
6551 functions.
6552 (vax_register_type): New function.
6553 (vax_breakpoint_from_pc): Reorganize.
6554 (vax_gdbarch_init): Set register_type. Don't set
6555 deprecated_register_size, deprecated_register_bytes,
6556 deprecated_register_byte, deprecated_register_raw_size,
6557 deprecated_max_register_raw_size,
6558 deprecated_register_virtual_size,
6559 deprecated_max_register_virtual_size and
6560 deprecated_register_virtual_type. Add comment on stack direction.
6561
6562 2004-04-11 Mark Kettenis <kettenis@gnu.org>
6563
6564 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6565 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
6566 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
6567
6568 2004-04-10 Randolph Chung <tausq@debian.org>
6569
6570 * MAINTAINERS (write after approval): Add myself.
6571
6572 2004-04-07 Randolph Chung <tausq@debian.org>
6573
6574 * hppa-tdep.c (hppa_inner_than): Remove.
6575 (is_pa_2): Remove unused static variable.
6576 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
6577
6578 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6579
6580 * language.h (language_defn): Add new la_post_parser field.
6581 * parser-defs.h (null_post_parser): New declaration (default for
6582 la_post_parser).
6583
6584 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6585 insert call to that function.
6586 (parse_exp_in_context): New function, including code formerly in
6587 parse_exp_1. Calls language-dependent post-parser after
6588 prefixification.
6589 (parse_expression_in_context): New exported function.
6590 (null_post_parser): New definition.
6591 * expression.h (parse_expression_in_context): Add declaration.
6592
6593 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6594 * c-lang.c (c_language_defn): Ditto.
6595 (cplus_language_defn): Ditto.
6596 (asm_language_defn): Ditto.
6597 (minimal_language_defn): Ditto.
6598 * f-lang.c (f_language_defn): Ditto.
6599 * jv-lang.c (java_language_defn): Ditto.
6600 * language.c (unknown_language_defn): Ditto.
6601 (auto_language_defn): Ditto.
6602 (local_language_defn): Ditto.
6603 * m2-lang.c (m2_language_defn): Ditto.
6604 * scm-lang.c (scm_language_defn): Ditto.
6605 * obj-lang.c (objc_language_defn): Ditto.
6606
6607 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6608
6609 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6610 (amd64nbsd_mcontext_addr): New function.
6611 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6612 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6613 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6614
6615 * corelow.c (core_xfer_partial): Fix coding standards violation.
6616 Add support for TARGET_OBJECT_WCOOKIE.
6617
6618 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6619 deprecated_pc_in_sigtramp.
6620 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6621 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6622 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6623 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6624 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6625 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6626 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6627
6628 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6629 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6630 Fix typo.
6631
6632 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6633 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6634 (amd64_collect_fxsave): Likewise.
6635
6636 * i386-sol2-tdep.c: Include "gdb_string.h".
6637 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6638 name.
6639 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6640
6641 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6642
6643 * i386-sol2-tdep.c: Include "solib-svr4.h".
6644 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6645 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6646 * config/i386/tm-i386sol2.h: Include :solib.h".
6647 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6648 solib-svr4.o and solib-legacy.o.
6649 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6650 solib-svr4.o.
6651
6652 2004-04-09 Mark Kettenis <kettenis@gnu.org>
6653
6654 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6655 whether a register is supplied by PTRACE_GETFPREGS.
6656 (store_inferior_registers): Likewise.
6657 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6658 whether a register is supplied by PT_GETFPREGS.
6659 (store_inferior_registers): Likewise.
6660
6661 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6662 * config/i386/linux64.mt (TDEPFILES): Likewise.
6663
6664 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6665
6666 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6667 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6668 the program counter is in the range specified by `struct
6669 gdbarch_tdep'.
6670 * amd64-linux-tdep.c: Include "symtab.h".
6671 (amd64_linux_pc_in_sigtramp): Remove function.
6672 (amd64_linux_sigtramp_p): New function.
6673 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6674 deprecated_pc_in_sigtramp.
6675 * amd64nbsd-tdep.c: Include "symtab.h".
6676 (amd64nbsd_sigtramp_p): New function.
6677 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6678 deprecated_pc_in_sigtramp.
6679 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6680 few comments.
6681 (amd64obsd_pc_in_sigtramp): Remove function.
6682 (amd64obsd_sigtramp_p): New function.
6683 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6684 deprecated_pc_in_sigtramp.
6685 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6686 (i386bsd_pc_ins_sigtramp): Remove prototype.
6687 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6688 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6689 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6690 the program counter is in the range specified by `struct
6691 gdbarch_tdep'.
6692 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6693 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6694 (i386_go32_pc_in_sigtramp): Remove function.
6695 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6696 Initialize TDEP->sigtramp_p.
6697 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6698 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6699 deprecated_pc_in_sigtramp.
6700 * i386-linux-tdep.c: Adjust comments.
6701 (i386_linux_pc_in_sigtramp): Remove function.
6702 (i386_linux_sigtramp_p): New function.
6703 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6704 deprecated_pc_in_sigtramp.
6705 * i386-nto-tdep.c: Update copyright year.
6706 (i386nto_pc_in_sigtramp): Remove function.
6707 (i386nto_sigtramp_p): New function.
6708 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6709 SP_REGNUM.
6710 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6711 deprecated_pc_in_sigtramp.
6712 * i386-sol2-tdep.c: Update copyright year.
6713 (i386_sol2_pc_in_sigtramp): Remove function.
6714 (i386_sol2_sigtramp_p): New function.
6715 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6716 deprecated_pc_in_sigtramp.
6717 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6718 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6719 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6720 deprecated_sigtramp_start and deprecated_sigtramp_end.
6721 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6722 (i386nbsd_pc_in_sigtramp): Remove function.
6723 (i386nbsd_sigtramp_p): New function.
6724 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6725 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6726 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6727 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6728 (i386obsd_pc_in_sigtramp): Remove function.
6729 (i386obsd_sigtramp_p): New function.
6730 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6731 functions.
6732 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6733 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6734 TDEP->sigtramp_p.
6735 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6736 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6737 dependencies.
6738
6739 * config/i386/i386aout.mt: Remove file.
6740
6741 * configure.tgt: Remove i[34567]86-*-go32*,
6742 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6743 and i[34567]86-*-isc*. Set gdb_target to i386 for
6744 i[34567]86-*-netware* and i[34567]86-*-*.
6745 * config/i386/i386.mt: New file.
6746 * config/i386/embed.mt: Remove file.
6747 * config/i386/go32.mt: Remove file.
6748 * config/i386/i386nw.mt: Remove file.
6749 * config/i386/i386v.mt: Remove file.
6750 * config/i386/tm-go32.h: Remove file.
6751
6752 * tui/tui-hooks.c: Include "readline/readline.h" after
6753 "gdb_curses.h" instead of before.
6754 * tui/tui-io.c: Likewise.
6755
6756 * tui/tui.c: Fix typo in comment.
6757
6758 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6759
6760 2004-04-08 Andrew Cagney <cagney@redhat.com>
6761
6762 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6763 (deprecated_exception_support_initialized): Declare.
6764 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
6765 (initialize_hp_cxx_exception_support)
6766 (child_enable_exception_callback): Update.
6767 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6768 (deprecated_exception_support_initialized): Rename
6769 deprecated_exception_catchpoints_are_fragile and
6770 deprecated_exception_support_initialized.
6771 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6772
6773 * symtab.c (deprecated_hp_som_som_object_present): Rename
6774 hp_som_som_object_present.
6775 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6776 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6777 Update. Delete extern declaration.
6778 * valops.c (hp_som_som_object_present): Ditto.
6779 * parse.c (deprecated_hp_som_som_object_present)
6780 (parse_nested_classes_for_hpacc): Ditto.
6781 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
6782 * hppa-hpux-tdep.c (hp_som_som_object_present)
6783 (initialize_hp_cxx_exception_support): Ditto.
6784 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
6785 * cp-valprint.c (hp_som_som_object_present)
6786 (cp_print_class_method): Ditto.
6787 * c-typeprint.c (hp_som_som_object_present):
6788 (c_type_print_base): Ditto.
6789 * c-exp.y (hp_som_som_object_present): Ditto.
6790
6791 2004-04-08 Andrew Cagney <cagney@redhat.com>
6792
6793 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6794 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6795 (frame_unwind_find_by_frame): Re-implement the unwind code so
6796 that it can both prepend and append sniffers. Replace
6797 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6798 * tramp-frame.c (tramp_frame_append): Use
6799 frame_unwind_prepend_unwinder.
6800 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6801 frame_unwind_register_unwinder.
6802 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6803 tramp_frame_append.
6804 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
6805 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
6806 (mips_linux_init_abi): Update.
6807
6808 2004-04-08 Kevin Buettner <kevinb@redhat.com>
6809
6810 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6811 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6812 file support.
6813
6814 2004-04-07 Kevin Buettner <kevinb@redhat.com>
6815
6816 * ia64-tdep.c (elf.h): Don't include.
6817 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6818
6819 2004-04-07 Jason Molenda (jmolenda@apple.com)
6820
6821 * frame.h: Typeo corrections in comments.
6822
6823 2004-04-07 Jim Blandy <jimb@redhat.com>
6824
6825 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6826 %esp and %ebp
6827
6828 2004-04-07 Mark Kettenis <kettenis@gnu.org>
6829
6830 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6831 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6832 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6833 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6834 and solib-legacy.o.
6835 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6836 solib-svr4.o.
6837 * config/sparc/tm-sol2.h: Update copyright year. Include
6838 "solib.h".
6839
6840 * sparc-sol2-tdep.c: Update copyright year. Include
6841 "solib-svr4.h".
6842 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6843 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6844 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6845 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
6846 dependencies.
6847
6848 2004-04-06 Andrew Cagney <cagney@redhat.com>
6849
6850 * infttrace.c: Include "infttrace.h".
6851 * infttrace.h: Include "target.h".
6852 * Makefile.in (infttrace_h): Update.
6853 (infttrace.o): Update.
6854
6855 2004-04-06 Andrew Cagney <cagney@redhat.com>
6856
6857 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6858 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6859 move extern declarations from here ...
6860 * infttrace.h: ... to here.
6861 * Makefile.in (hppah-nat.o): Update dependencies.
6862
6863 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6864 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
6865 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
6866 (hppa_breakpoint_from_pc): Delete.
6867
6868 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6869
6870 2004-04-05 Andrew Cagney <cagney@redhat.com>
6871
6872 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6873 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6874 <sys/file.h>.
6875
6876 2004-04-06 Randolph Chung <tausq@debian.org>
6877
6878 Committed by Andrew Cagney (mechanical change).
6879 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6880 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6881 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6882 child_enable_exception_callback, current_ex_event,
6883 null_symtab_and_line, child_get_current_exception_event,
6884 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6885 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6886 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6887 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6888 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6889 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6890 Move hpux-specific definitions ...
6891 * hppa-hpux-tdep.c: ... to here.
6892
6893 2004-04-05 Andrew Cagney <cagney@redhat.com>
6894
6895 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6896 skip_prologue_using_sal.
6897
6898 2004-04-05 Andrew Cagney <cagney@redhat.com>
6899
6900 * config/i386/tm-i386.h: Delete file.
6901 * config/i386/tm-vxworks.h: Update copyright, do not include
6902 "tm-i386.h".
6903 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6904 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6905 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6906 * config/i386/ncr3000.mt (TM_FILE): Delete.
6907 * config/i386/interix.mt (TM_FILE): Delete.
6908 * config/i386/i386v.mt (TM_FILE): Delete.
6909 * config/i386/i386nw.mt (TM_FILE): Delete.
6910 * config/i386/i386gnu.mt (TM_FILE): Delete.
6911 * config/i386/i386aout.mt (TM_FILE): Delete.
6912 * config/i386/embed.mt (TM_FILE): Delete.
6913
6914 2004-04-05 Kevin Buettner <kevinb@redhat.com>
6915
6916 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6917 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6918 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6919 (accg7_regnum): New constants.
6920 (last_spr_regnum, last_pseudo_regnum): Update.
6921 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6922 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
6923 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6924 for accg registers.
6925 (frv_register_sim_regno): Update spr_map[].
6926
6927 2004-04-04 Andrew Cagney <cagney@redhat.com>
6928
6929 * config/mips/xm-riscos.h: Delete.
6930 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6931 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6932 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6933 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6934 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6935 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6936 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6937 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6938 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6939 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6940 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6941 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6942 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6943 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6944 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6945 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6946 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6947 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6948 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6949 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6950 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6951 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6952 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6953 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6954 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6955 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
6956
6957 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6958 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6959 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6960 * configure.host: Remove m680[01]0-sun-sunos3*,
6961 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6962 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6963 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6964 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6965 mips-*-riscos*.
6966 * NEWS: Mention removed systems.
6967
6968 2004-04-04 Andrew Cagney <cagney@redhat.com>
6969
6970 GDB 6.1 release created from 6.1 branch.
6971
6972 2004-04-04 Andrew Cagney <cagney@redhat.com>
6973
6974 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6975 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6976 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6977
6978 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6979 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6980 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6981
6982 2004-04-03 Jim Blandy <jimb@redhat.com>
6983
6984 * MAINTAINERS: Chris Faylor has changed employers; add him to
6985 "paper trail" section, and update his E-mail address.
6986
6987 2004-04-03 Andrew Cagney <cagney@redhat.com>
6988
6989 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6990 generic dummy frames.
6991 * dummy-frame.c: Update copyright.
6992 (dummy_frame_sniffer): Delete check for generic dummy frames.
6993
6994 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
6995 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
6996 (REG_PARM_STACK_SPACE): Delete.
6997 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6998 Inline reference to REG_PARM_STACK_SPACE.
6999
7000 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7001 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7002 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7003 (FRAME_BASE_BEFORE_SIGTRAMP)
7004 (hppa32_hpux_frame_base_before_sigtramp)
7005 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7006 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7007 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7008 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7009 (FRAME_BASE_BEFORE_SIGTRAMP)
7010 (hppa64_hpux_frame_base_before_sigtramp)
7011 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7012
7013 2004-04-03 Andrew Cagney <cagney@redhat.com>
7014
7015 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7016
7017 2004-04-02 Andrew Cagney <cagney@redhat.com>
7018
7019 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7020 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7021 * dummy-frame.h: Delete out-of-date comments.
7022 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7023 * gdbarch.h, gdbarch.c: Re-generate.
7024
7025 2004-04-02 Joel Brobecker <brobecker@gnat.com>
7026
7027 Committed by Andrew Cagney <cagney@redhat.com>.
7028 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7029 into account an instruction saving a register if we have already
7030 seen an earlier instruction saving that same register.
7031
7032 2004-04-02 Andrew Cagney <cagney@redhat.com>
7033
7034 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7035 * gdbarch.h, gdbarch.c: Re-generate.
7036 * frame.c (legacy_get_prev_frame): Delete references to
7037 DEPRECATED_INIT_FRAME_PC_FIRST.
7038
7039 * infrun.c (pc_in_sigtramp): Delete function.
7040 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7041 get_frame_type.
7042
7043 2004-04-02 Andrew Cagney <cagney@redhat.com>
7044
7045 * infrun.c (handle_step_into_function): Delete code conditional on
7046 legacy_frame_p.
7047 (handle_inferior_event, step_over_function): Ditto.
7048
7049 2004-04-02 Andrew Cagney <cagney@redhat.com>
7050
7051 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7052 "previous frame inner to this frame" test.
7053
7054 2004-04-02 Andrew Cagney <cagney@redhat.com>
7055
7056 * frame.c (safe_frame_unwind_memory): New function.
7057 * frame.h (safe_frame_unwind_memory): Declare. Update description
7058 of /safe_/ methods.
7059 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
7060 "next_frame". Use safe_frame_unwind_memory.
7061 (tramp_frame_sniffer): Update call to tramp_frame_start.
7062
7063 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
7064
7065 * dwarf2read.c (dwarf2_objfile_data_key): New.
7066 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
7067 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
7068 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
7069 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
7070 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
7071 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
7072 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
7073 Remove variables.
7074 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
7075 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
7076 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
7077 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
7078 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
7079 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
7080 Remove macros.
7081 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
7082 data.
7083 (dwarf2_locate_sections, dwarf2_build_psymtabs)
7084 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
7085 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
7086 (read_partial_die, read_full_die, read_indirect_string)
7087 (dwarf_decode_line_header, dwarf_decode_macros)
7088 (dwarf2_symbol_mark_computed): Remove use of removed macros.
7089 Update uses of removed variables.
7090 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
7091 of removed macros.
7092 (_initialize_dwarf2_read): New function.
7093 * symfile.h (dwarf2_has_info): Update prototype.
7094 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
7095 * elfread.c (elf_symfile_read): Likewise.
7096
7097 2004-04-01 Jim Blandy <jimb@redhat.com>
7098
7099 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
7100 function for register numbers on all the rs6000-derived targets.
7101 (rs6000_gdbarch_init): Don't register a separate
7102 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
7103 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
7104 variants.
7105
7106 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
7107 numbering.
7108
7109 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
7110
7111 * valarith.c: Update copyright notice.
7112 (value_add): Handle range types.
7113 (value_sub): Ditto.
7114 (value_equal): Ditto.
7115 (value_less): Ditto.
7116 (value_neg): Ditto.
7117 (value_complement): Ditto.
7118 (value_binop): Simplify slightly by using is_integral_type and
7119 eliminiating unnecessary COERCE_ENUMs.
7120
7121 2004-03-31 Andrew Cagney <cagney@redhat.com>
7122
7123 * frame.h (frame_unwind_id): Declare.
7124 * frame.c (frame_unwind_id): New function.
7125 (get_prev_frame_1): New function.
7126 (frame_debug_got_null_frame): New function.
7127 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
7128 code proper to prev_frame, update description.
7129 * infrun.c (step_over_function): Use frame_unwind_id.
7130
7131 2004-04-31 J. Brobecker <brobecker@gnat.com>
7132
7133 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
7134 (hppa64_push_dummy_call): Likewise.
7135
7136 2004-03-30 Jim Blandy <jimb@redhat.com>
7137
7138 From Ulrich Weigand:
7139 * utils.c (query): Do not use a va_list variable multiple times.
7140
7141 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7142
7143 * Makefile.in (linux_nat_h): Update dependencies.
7144 * configure.in: Check for <gnu/libc-version.h>.
7145 * configure: Regenerate.
7146 * config.in: Regenerate.
7147 * linux-nat.h: Include "target.h". Add waitstatus field to
7148 struct lwp_info.
7149 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7150 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7151 to.
7152 (lin_lwp_handle_extended): New function. Handle clone events.
7153 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7154 thread exit events.
7155 (child_wait): Handle clone events.
7156 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7157 * linux-nat.c (linux_enable_event_reporting): Turn on
7158 PTRACE_O_TRACECLONE.
7159 (linux_handle_extended_wait): Handle clone events.
7160 * thread-db.c: Include <gnu/libc-version.h>.
7161 (struct private_thread_info): Add dying flag.
7162 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7163 higher.
7164 (attach_thread): Update comments. Handle dying threads.
7165 (detach_thread): Set the dying flag.
7166 (check_event): Always call attach_thread.
7167
7168 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7169
7170 * mips-tdep.c (mips_pdr_data): New.
7171 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7172 (_initialize_mips_tdep): Initialize mips_pdr_data.
7173
7174 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
7175
7176 * minsyms.c (install_minimal_symbols): Move dropping leading
7177 char from linkage name from here...
7178 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7179 test for "__gnu_compiled*" symbols.
7180
7181 2004-03-28 Jim Blandy <jimb@redhat.com>
7182
7183 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7184 registers to temp register r0 and byte stores as prologue
7185 instructions.
7186
7187 2004-03-28 Andrew Cagney <cagney@redhat.com>
7188
7189 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7190 arm*-*-*.
7191
7192 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7193
7194 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
7195 and switch the layout to force a display of register window.
7196
7197 2004-02-26 J. Brobecker <brobecker@gnat.com>
7198
7199 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
7200 of the INTEGER class.
7201
7202 2004-03-26 Jim Blandy <jimb@redhat.com>
7203
7204 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
7205 bytes long on PPC GNU/Linux.
7206
7207 2004-03-26 David Carlton <carlton@kealia.com>
7208
7209 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
7210
7211 2004-03-25 Andrew Cagney <cagney@redhat.com>
7212
7213 * PROBLEMS: Add general section titles, remove references to
7214 specific releases.
7215
7216 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
7217
7218 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
7219 INT_REGISTER_SIZE.
7220 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
7221 FP_REGISTER_VIRTUAL_SIZE.
7222 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
7223 of DEPRECATED_REGISTER_RAW_SIZE.
7224 (arm_register_type): Add gdbarch argument.
7225 (arm_register_raw_size, arm_register_virtual_size): Delete.
7226 (arm_register_byte, arm_extract_return_value)
7227 (arm_store_return_value, arm_get_longjmp_target): Update references
7228 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
7229 (arm_gdbarch_init): Likewise. Don't set
7230 deprecated_register_raw_size, deprecated_register_virtual_size,
7231 deprecated_max_register_raw_size,
7232 deprecated_max_register_virtual_size, or
7233 deprecated_max_register_virtual_type. Do set register_type.
7234 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
7235 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
7236 (FP_REGISTER_VIRTUAL_SIZE): Delete.
7237 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
7238 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
7239 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
7240 INT_REGISTER_SIZE.
7241 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
7242 (remote_rdp_store_register): Likewise.
7243
7244 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
7245
7246 * Makefile.in (mips-linux-tdep.o): Update dependencies.
7247 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
7248 to after osabi initialization.
7249 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
7250 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
7251 functions.
7252 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
7253 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
7254 variables.
7255 (mips_linux_init_abi): Append signal trampoline unwinders.
7256
7257 2004-03-24 Andrew Cagney <cagney@redhat.com>
7258
7259 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
7260 * tramp-frame.c: Include "gdb_assert.h".
7261 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
7262 correct sizeof.
7263 (tramp_frame_append): Validate the tramp frame's instructions.
7264 * Makefile.in (tramp-frame.o): Update dependencies.
7265
7266 2004-03-23 Andrew Cagney <cagney@redhat.com>
7267
7268 * trad-frame.h (trad_frame_set_reg_addr): Declare.
7269
7270 2004-03-23 Andrew Cagney <cagney@redhat.com>
7271
7272 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
7273 Nasser as past testsuite/lib/ (and other) maintainers.
7274
7275 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
7276
7277 * infcmd.c (attach_command): Reread symbols if we already have
7278 an exec file.
7279
7280 2004-03-23 Andrew Cagney <cagney@redhat.com>
7281
7282 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
7283
7284 2004-03-23 Andrew Cagney <cagney@redhat.com>
7285
7286 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
7287 * gdbarch.h, gdbarch.c: Re-generate.
7288 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7289 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7290 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7291 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
7292 (DEPRECATED_SIGTRAMP_START): Update.
7293 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
7294 (DEPRECATED_SIGTRAMP_START): Update.
7295 * blockframe.c (find_pc_sect_partial_function): Update.
7296 * arch-utils.c (legacy_pc_in_sigtramp): Update.
7297
7298 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
7299
7300 * remote.c (remote_open_1): Reopen the exec file and reread symbols
7301 if necessary.
7302
7303 2004-03-23 Andrew Cagney <cagney@redhat.com>
7304
7305 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
7306 predicate, deprecate.
7307 * gdbarch.h, gdbarch.c: Re-generate.
7308 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7309 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7310 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
7311 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7312 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
7313 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
7314 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
7315 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
7316 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
7317 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
7318 * blockframe.c (find_pc_partial_function): Update.
7319 * breakpoint.c (bpstat_what): Update.
7320 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
7321 * frv-linux-tdep.c (frv_linux_init_abi): Update.
7322 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
7323 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
7324 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7325 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7326 * i386-nto-tdep.c (i386nto_init_abi): Update.
7327 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
7328 * i386-tdep.c (i386_sigtramp_frame_sniffer)
7329 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
7330 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7331 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7332 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7333 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7334 * infrun.c (pc_in_sigtramp): Update.
7335 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7336 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7337 * mips-tdep.c (mips_gdbarch_init): Update.
7338 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7339 * ppc-linux-tdep.c: Update comment.
7340 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7341 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7342 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7343 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7344 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7345 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7346 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7347 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7348 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7349 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
7350
7351 2004-03-23 Andrew Cagney <cagney@redhat.com>
7352
7353 * tramp-frame.h, tramp-frame.h: New files.
7354 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
7355 Update rules to include "tramp-frame.h" and "tramp-frame.c".
7356
7357 * Makefile.in: Update all dependencies.
7358
7359 2004-03-23 Andrew Cagney <cagney@redhat.com>
7360
7361 * Makefile.in (trad_frame_h): Add $(frame_h).
7362 * trad-frame.h: Update copyright. Include "frame.h".
7363 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7364 (trad_frame_set_id, trad_frame_get_id): Declare.
7365 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7366 * trad-frame.c: Update copyright.
7367 (struct trad_frame_cache): Define.
7368 (trad_frame_cache_zalloc): New function.
7369 (trad_frame_set_id, trad_frame_get_id): New functions.
7370 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
7371
7372 2004-03-22 Andrew Cagney <cagney@redhat.com>
7373
7374 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7375 s390_pltstub_unwind_cache.
7376 (s390_stub_frame_unwind_cache): Rename
7377 s390_pltstub_frame_unwind_cache.
7378 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7379 (s390_stub_frame_prev_register): Rename
7380 s390_pltstub_frame_prev_register.
7381 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7382 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7383
7384 From Ulrich Weigand:
7385 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7386 pointer calls like PLT calls.
7387
7388 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7389
7390 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7391 PC rather than the partial function start address. Use the start
7392 address to sanity check the found PDR.
7393
7394 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7395
7396 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7397 linux_handle_extended_wait.
7398
7399 2004-03-22 Andrew Cagney <cagney@redhat.com>
7400
7401 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7402 function.
7403
7404 * frame.h (generic_pop_current_frame): Delete declaration.
7405 (deprecate_pop_dummy_frame): Deprecate
7406 generic_pop_dummy_frame.
7407 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7408 (generic_pop_current_frame): Delete function.
7409 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7410 generic_pop_current_frame.
7411 * v850-tdep.c (v850_pop_frame): Update.
7412 * mcore-tdep.c (mcore_pop_frame): Update.
7413 * sh64-tdep.c (sh64_pop_frame): Update.
7414 * h8300-tdep.c (h8300_pop_frame): Update.
7415
7416 2004-03-22 Andrew Cagney <cagney@redhat.com>
7417
7418 * frame.h (deprecated_pc_in_call_dummy): Rename
7419 generic_pc_in_call_dummy.
7420 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7421 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7422 generic_pc_in_call_dummy.
7423 (pc_in_dummy_frame): Make static.
7424 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7425 * gdbarch.h, gdbarch.c: Re-generate.
7426 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7427 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7428 (legacy_get_prev_frame): Ditto.
7429 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7430 comment.
7431
7432 2004-03-21 Andrew Cagney <cagney@redhat.com>
7433
7434 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7435 declaration and out-of-date comment.
7436 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7437 Delete function.
7438 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7439 deprecated_pc_in_call_dummy.
7440
7441 * infrun.c (handle_inferior_event): For non legacy frames, use the
7442 frame ID and frame type to identify a signal trampoline. Update
7443 comments.
7444
7445 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7446
7447 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7448 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7449
7450 2004-03-21 Andrew Cagney <cagney@redhat.com>
7451
7452 * frame-unwind.h: Update copyright.
7453 (struct frame_data): Add opaque declaration.
7454 (frame_sniffer_ftype): Declare.
7455 (struct frame_unwind): Add "unwind_data" and "sniffer".
7456 (frame_unwind_register_unwinder): Declare.
7457 (frame_unwind_find_by_frame): Add parameter "this_cache".
7458 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7459 (legacy_get_prev_frame, legacy_get_prev_frame)
7460 (get_frame_type): Pass the prologue_cache to
7461 frame_unwind_find_by_frame.
7462 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7463 "unwinder".
7464 (frame_unwind_register_unwinder): New function.
7465 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7466
7467 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7468
7469 * bcache.c (print_percentage): Use floating point to avoid
7470 incorrect results when portion*100 overflows.
7471
7472 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7473
7474 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7475 (ppc_linux_init_extra_frame_info)
7476 (ppc_linux_frameless_function_invocation)
7477 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7478 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7479 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7480 (rs6000_frame_chain): Delete declarations.
7481 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7482 (ppc_linux_init_extra_frame_info)
7483 (ppc_linux_frameless_function_invocation)
7484 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7485 (ppc_linux_init_abi): Remove registration of above deleted functions.
7486 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7487 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7488 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7489 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7490 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7491 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7492 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7493 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7494 frame management for all OSABIs.
7495
7496 2004-03-19 Andrew Cagney <cagney@redhat.com>
7497
7498 Committed by Kevin Buettner <kevinb@redhat.com>.
7499
7500 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7501 Update copyright.
7502 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7503 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7504 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7505 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7506 unwinders. #ifdef legacy frame code.
7507 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7508 "frame-base.h".
7509 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7510 (struct rs6000_frame_cache, rs6000_frame_cache)
7511 (rs6000_frame_this_id, rs6000_frame_prev_register)
7512 (rs6000_frame_sniffer, rs6000_frame_unwind)
7513 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7514 (rs6000_frame_base): Implement a traditional frame unwinder.
7515 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7516 frame unwinder.
7517
7518 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7519
7520 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7521 breakpoint address for watchpoints or the catch eventpoints.
7522 Add new paramter ``bptype''. Adjust all callers.
7523
7524 2004-03-19 Andrew Cagney <cagney@redhat.com>
7525
7526 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7527
7528 * PROBLEMS: Delete note that ARM does not use frame code, problem
7529 fixed.
7530
7531 2004-03-18 Andrew Cagney <cagney@redhat.com>
7532
7533 * stack.c (return_command): Delete code wrapped in #ifdef
7534 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7535
7536 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7537
7538 2004-03-18 Andrew Cagney <cagney@redhat.com>
7539
7540 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7541 DEPRECATED_IN_SIGTRAMP.
7542 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7543 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7544 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7545 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7546 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7547 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7548 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7549 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7550 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7551 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7552
7553 2004-03-18 Andrew Cagney <cagney@redhat.com>
7554
7555 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7556 (struct frame_base_table_entry): Define.
7557 (struct frame_base_table): Re-implement as a linked list.
7558 (frame_base_init): Re-implement.
7559 (frame_base_table): Delete function.
7560 (append_predicate): Delete function.
7561 (frame_base_append_sniffer): Update.
7562 (frame_base_set_default): Update.
7563 (frame_base_find_by_frame): Update.
7564 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7565 * Makefile.in (frame-base.o): Update dependencies.
7566
7567 2004-03-17 Andrew Cagney <cagney@redhat.com>
7568
7569 * frame.c (legacy_get_prev_frame): Pass correct frame to
7570 frame_unwind_find_by_frame.
7571
7572 2004-03-17 David Carlton <carlton@kealia.com>
7573
7574 * NEWS: Mention C++ nested types and namespaces
7575
7576 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7577
7578 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7579 and "Regressions since gdb 5.3.". Add known regressions since
7580 gdb 6.0.
7581
7582 2004-03-16 David Carlton <carlton@kealia.com>
7583
7584 * dwarf2read.c (process_structure_scope): Process children even
7585 when we're a declaration.
7586
7587 2004-03-16 Andrew Cagney <cagney@redhat.com>
7588
7589 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7590 * blockframe.c (find_pc_partial_function)
7591 (find_pc_sect_partial_function): Merge into a single
7592 find_pc_partial_function.
7593
7594 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7595
7596 * i386bsd-nat.c: s/regno/regnum/g.
7597 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7598 FP0_REGNUM.
7599 (store_inferior_registers): Likewise.
7600
7601 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7602
7603 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7604 of i387_fill_fsave.
7605 (store_inferior_registers): Call i387_collect_fsave and
7606 i387_collect_fxsave instead of i387_fill_fsave and
7607 i387_fill_fxsave.
7608
7609 2004-03-15 Andrew Cagney <cagney@redhat.com>
7610
7611 * Makefile.in (frame-unwind.o): Update dependencies.
7612 * frame-unwind.c: Include "gdb_obstack.h".
7613 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7614 parameter.
7615 (append_predicate): Delete function.
7616 (struct frame_unwind_table_entry): New structure.
7617 (struct frame_unwind_table): Replace "sniffer" with "head" and
7618 "tail".
7619 (frame_unwind_append_sniffer): Update.
7620 (frame_unwind_find_by_frame): Update.
7621 (_initialize_frame_unwind): Registe frame_unwind_init using
7622 gdbarch_data_register_pre_init.
7623
7624 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7625
7626 * i386bsd-nat.c: Update copyright year.
7627 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7628 define unconditionally.
7629
7630 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7631
7632 * i387-tdep.h (i387_collect_fsave): New prototype.
7633 * i387-tdep.c (i387_collect_fsave): New function containing most
7634 of the code from i387_fill_fsave.
7635 (i387_fill_fsave): Call i387_collect_fsave.
7636
7637 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7638
7639 * i386-linux-tdep.c: Update copyright year.
7640 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7641 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7642 svr4_ilp32_link_map_offsets instead of
7643 i386_linux_svr4_fetch_link_map_offsets.
7644
7645 2004-03-15 David Carlton <carlton@kealia.com>
7646
7647 Fix for PR c++/1553:
7648 * dwarf2read.c (read_structure_type): Determine type name by
7649 calling determine_class_name.
7650 (determine_class_name): New.
7651 (determine_prefix): Look at TYPE_TAG_NAME and call
7652 determine_class_name when appropriate.
7653 (determine_prefix_aux, class_name): Delete.
7654 (read_namespace): Set die->type.
7655
7656 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7657
7658 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7659 unused macro definition. The definition in target.h (or perhaps
7660 elsewhere) takes precedence.
7661
7662 2004-03-15 Andrew Cagney <cagney@redhat.com>
7663
7664 * ppc-tdep.h: Update copyright.
7665 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7666 function signatures to match "regsets.h".
7667 * ppc-linux-tdep.c: Include "regset.h".
7668 (ELF_GREGSET_SIZE): Delete.
7669 (right_supply_register): New function.
7670 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7671 using right_supply_register.
7672 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7673 functions.
7674 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7675 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7676 (_initialize_ppc_linux_tdep): Do not register
7677 ppc_linux_regset_core_fns.
7678 (ppc_linux_regset_from_core_section): Replace
7679 fetch_core_registers.
7680 (ppc_linux_regset_core_fns): Delete.
7681 * ppc-linux-nat.c: (right_fill_reg): New function.
7682 (supply_gregset): Update call to ppc_linux_supply_gregset.
7683 (fill_gregset): Clear the register set, use right_fill_reg.
7684 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7685 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7686
7687 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7688 unsigned.
7689
7690 2004-03-15 Andrew Cagney <cagney@redhat.com>
7691
7692 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7693 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7694 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7695 and register_gdbarch_data.
7696 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7697 (struct gdbarch_data): Replace "init" by "pre_init" and
7698 "post_init".
7699 * gdbarch.h, gdbarch.c: Re-generate.
7700 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7701 with"obstack", use OBSTACK_ZALLOC.
7702 (dwarf2_frame_ops): Delete.
7703 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7704 (dwarf2_frame_init_reg): Use gdbarch_data.
7705 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
7706 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
7707 (_initialize_svr4_solib): Update.
7708 * user-regs.c (_initialize_user_regs): Update.
7709 * reggroups.c (_initialize_reggroup): Update.
7710 * regcache.c (_initialize_regcache): Update.
7711 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7712 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7713 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7714 * frame-unwind.c (_initialize_frame_unwind): Update.
7715 * frame-base.c (_initialize_frame_base): Update.
7716 * user-regs.c (user_reg_add): Update.
7717 * reggroups.c (reggroup_add): Update.
7718 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7719 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7720 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7721 * frame-base.c (frame_base_table): Update.
7722 * remote.c (_initialize_remote): Update.
7723 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
7724
7725 2004-03-15 Andrew Cagney <cagney@redhat.com>
7726
7727 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7728
7729 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7730
7731 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7732 * frv-linux-tdep.c: New file.
7733 * frv-tdep.c (struct gdbarch_tdep): Add new field
7734 ``sigcontext_reg_addr''.
7735 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7736 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7737 (frv_sigramp_frame_sniffer): New functions.
7738 (frv_sigtramp_frame_unwind): New static global.
7739 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7740 sniffers.
7741 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7742 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7743
7744 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7745
7746 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7747 but not via a call to error(), when unable to read memory.
7748
7749 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7750
7751 * frv-tdep.c (frv_call_dummy_words): Delete.
7752 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7753
7754 2004-03-15 Andrew Cagney <cagney@redhat.com>
7755
7756 * infrun.c (handle_step_into_function, step_over_function): Only
7757 update and use STEP_FRAME_ID when the system is using legacy
7758 frames. Update comments.
7759
7760 2004-03-14 Mark Kettenis <kettenis@gnu.org>
7761
7762 * amd64-linux-tdep.h: Remove file.
7763 * amd64-linux-tdep.c: Don't include "inferior.h" and
7764 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7765 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7766 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7767 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7768 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7769 macros.
7770 (user_to_gdb_regmap): Remove variable.
7771 (amd64_linux_gregset_reg_offset): New variable.
7772 (amd64_core_fns): Remove variable.
7773 (fetch_core_registers): Remove function.
7774 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7775 functions.
7776 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7777 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7778 * Makefile.in (amd64_linux_tdep_h): Remove.
7779 (amd64-linux-nat.o): Update dependencies.
7780 (amd64-linux-tdep.o): Update dependencies.
7781
7782 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7783 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7784 functions.
7785 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7786
7787 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7788 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7789
7790 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
7791
7792 * dwarf2read.c (read_structure_type): Rename from
7793 read_structure_scope. Don't create a symbol or call process_die.
7794 Return immediately if die->type is set. Call read_type_die before
7795 dwarf2_add_member_fn.
7796 (process_structure_scope): New function.
7797 (read_enumeration_type, process_enumeration_scope): New functions,
7798 broken out from read_enumeration. Don't create the enumeration
7799 type if it has already been created.
7800 (read_enumeration): Removed.
7801 (process_die): Call read_structure_type, process_structure_scope,
7802 read_enumeration_type, and process_enumeration_scope. Just call
7803 new_symbol for base and subrange types. Add a comment about other
7804 type dies.
7805 (read_type_die): Call read_enumeration_type.
7806 (add_partial_structure, new_symbol): Update comments.
7807
7808 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7809
7810 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7811
7812 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7813
7814 * tui/tui-win.h (tui_get_cmd_list): Declare.
7815 * tui/tui-win.c (tui_command): New function.
7816 (tui_get_cmd_list): New function.
7817 (_initialize_tui_win): Moved initialization of tui command in
7818 tui_get_cmd_list.
7819
7820 * tui/tui-data.c (init_content_element): Setup new data members.
7821 (init_win_info): Likewise.
7822 (free_content_elements): Free it.
7823 * tui/tui-data.h (struct tui_data_element): Store the register
7824 content to print.
7825 (struct tui_data_info): Keep the current register group.
7826
7827 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7828
7829 * tui/tui-regs.h (tui_show_registers): Update prototype.
7830 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7831 (tui_resize_all): No need to calculate anything for register window.
7832 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7833 (tui_set_register_element, tui_set_general_regs_content): Remove.
7834 (tui_set_special_regs_content): Remove.
7835 (tui_set_general_and_special_regs_content): Remove.
7836 (tui_set_float_regs_content): Remove.
7837 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7838 (tui_set_regs_content): Remove.
7839 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7840 (tui_v_show_registers_command_support): Remove.
7841 (tui_show_registers): Use a reggroup to specify the registers to show.
7842 (tui_show_register_group): New function.
7843 (tui_display_registers_from): Compute the layout of register window
7844 and refresh with new API; be sure to delete old register windows.
7845 (tui_check_register_values): Update to use tui_get_register and
7846 tui_display_data.
7847 (tui_display_register): Just refresh the register window part.
7848 (tui_register_format): Format registers and save in tui_data_element.
7849 (tui_get_register): New to combine tui_reg_value_has_changed and
7850 tui_get_register_raw_value; fix to use the new gdb API.
7851 (tui_show_float_command): Renamed tui_reg_float_command.
7852 (tui_show_general_command): Renamed tui_reg_general_command.
7853 (tui_show_special_command): Renamed tui_reg_system_command.
7854 (_initialize_tui_regs): Remove unused commands.
7855
7856 2004-03-13 Mark Kettenis <kettenis@gnu.org>
7857
7858 * NEWS (New native configurations): Mention OpenBSD/amd64.
7859
7860 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7861 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7862 Remove defines.
7863 * config/i386/nm-fbsd64.h: Likewise.
7864 * config/i386/nm-obsd.h: Likewise.
7865 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7866 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7867
7868 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7869
7870 * frv-tdep.c (set_variant_scratch_registers): New function.
7871 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7872 New constants.
7873
7874 From Richard Sandiford <rsandifo@redhat.com>:
7875 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7876
7877 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7878
7879 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7880 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7881 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7882 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7883 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7884 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7885 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7886 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7887 definitions from frv-tdep.c to frv-tdep.h.
7888
7889 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7890
7891 Add shared library support for FR-V FDPIC ABI:
7892 * Makefile.in (solib-frv.o): Add dependencies.
7893 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7894 New functions.
7895 (frv_push_dummy_call): Add support for FDPIC ABI.
7896 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7897 for FDPIC ABI.
7898 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7899 (frv_fdpic_find_canonical_descriptor): Declare.
7900 * solib-frv.c: New file.
7901 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7902 * config/frv/tm-frv.h (solib.h): Include.
7903
7904 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7905
7906 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7907 (frv-tdep.o): Update dependencies.
7908 * frv-tdep.h: New file.
7909 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7910 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7911 constants.
7912 (struct gdbarch_tdep): Add new member ``frv_abi''.
7913 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7914 functions.
7915 (new_variant): Set ``frv_abi'' field.
7916 (gdb_arch_init): Detect FDPIC executables.
7917
7918 2004-03-12 Mark Kettenis <kettenis@gnu.org>
7919
7920 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7921 wrapper.
7922
7923 2004-03-11 Andrew Cagney <cagney@redhat.com>
7924
7925 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7926
7927 2004-03-11 Kevin Buettner <kevinb@redhat.com>
7928
7929 * solist.h (master_so_list): New function.
7930 * solib.c (master_so_list): Likewise.
7931 * solib-svr4.c (enable_break): Iterate over so_list entries
7932 obtained from master list instead of entries obtained directly
7933 via svr4_current_sos().
7934
7935 2004-03-10 Ben Elliston <bje@gnu.org>
7936
7937 * MAINTAINERS: Update my mail address.
7938
7939 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7940
7941 * remote-m32r-sdi.c: Support hardware watchpoint.
7942
7943 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7944
7945 * user-regs.c: Update copyright years.
7946 (struct user_regs): Rename to gdb_user_regs.
7947 (append_user_reg, builtin_user_regs, user_regs_init)
7948 (user_reg_add, user_reg_map_name_to_regnum)
7949 (usernum_to_user_reg): Update.
7950
7951 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7952
7953 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7954 (skip_children): New functions.
7955 (locate_pdi_sibling): Call skip_children.
7956
7957 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7958
7959 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7960 * gdbtypes.c (check_typedef): Update comments.
7961
7962 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7963
7964 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7965 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7966 pointer. Update comment about comp_unit_head.
7967 (struct abbrev_info): Shorten two int flags.
7968 (dwarf_alloc_abbrev): Take a CU argument.
7969 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7970 each time through the loop. Update cleanup argument.
7971 (psymtab_to_symtab_1): Update cleanup call.
7972 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7973 abbrev_obstack.
7974 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7975 Just call obstack_free and clear the pointer.
7976
7977 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7978
7979 * infrun.c (handle_inferior_event): Remove short-circuit code for
7980 events in a different thread.
7981
7982 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7983
7984 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7985 print the whole transfer.
7986 (initialize_targets): Update description of "set debug target".
7987
7988 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7989
7990 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7991
7992 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7993
7994 * MAINTAINERS (write after approval): Add myself.
7995
7996 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7997
7998 * sh-tdep.c (sh_print_registers_info): Use for loop.
7999 Don't skip multiple registers when a float register is encountered.
8000
8001 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
8002
8003 Fix PR tdep/1291.
8004 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8005 to official SH documentation.
8006
8007 2004-03-07 Andrew Cagney <cagney@redhat.com>
8008
8009 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8010 unused function.
8011
8012 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
8013
8014 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8015 (arm_get_next_pc): Handle BX and BLX.
8016
8017 2004-03-07 Andrew Cagney <cagney@redhat.com>
8018
8019 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8020 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8021 HPPA_SP_REGNUM.
8022 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8023 (hppa_target_read_fp): Delete.
8024 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8025 register_virtual_size, max_register_raw_size,
8026 max_register_virtual_size, register_byte, register_size,
8027 target_read_fp, fp_regnum, and register_bytes. Set register_type
8028 instead of register_virtual_type.
8029 (hppa32_register_type, hppa64_register_type): Replace
8030 hppa32_register_virtual_type and hppa64_register_virtual_type.
8031 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8032 (HPPA_FP_REGNUM): Define.
8033
8034 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8035
8036 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8037 (pa_do_registers_info): Delete.
8038 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8039 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
8040 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
8041
8042 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8043 GDB_TARGET_IS_HPPA code.
8044 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8045 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
8046 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8047 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8048 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8049 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8050 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
8051 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8052 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8053 (hppa_frameless_function_invocation, hppa64_store_return_value)
8054 (hppa_store_struct_return, hppa64_extract_return_value)
8055 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8056 (hppa32_call_dummy_length, hppa64_call_dummy_length)
8057 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8058 (find_proc_framesize, deposit_21, restore_pc_queue)
8059 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
8060 (rp_saved, pc_in_linker_stub): Delete.
8061
8062 Unconditionally enable 64-bit frame and ABI code.
8063 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
8064 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
8065 push_dummy_frame, fix_call_dummy, push_arguments,
8066 call_dummy_location, extract_return_value, use_struct_convention,
8067 store_return_value, store_struct_return, saved_pc_after_call,
8068 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
8069 frame_chain, frame_chain_valid, frameless_function_invocation,
8070 frame_saved_pc, and pop_frame.
8071
8072 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
8073 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
8074 (hppa_gdbarch_init): Do not set PC_REGNUM.
8075
8076 2004-03-06 Mark Kettenis <kettenis@gnu.org>
8077
8078 * config/alpha/tm-fbsd.h: Remove file.
8079 * config/alpha/fbsd.mt: Tweak comment.
8080 (TM_FILE): Set to tm-alpha.h.
8081
8082 2004-03-05 Andrew Cagney <cagney@redhat.com>
8083
8084 * infrun.c (step_over_function): When non-legacy code, and no
8085 step_frame_id, use the unwinder to get the caller's frame ID.
8086
8087 2004-03-05 Mark Kettenis <kettenis@gnu.org>
8088
8089 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
8090 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
8091 bfd_arch_unknown. Adjust comment.
8092
8093 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
8094 * i386obsd-tdep.c: Correct spelling in comment.
8095 * i386nbsd-tdep.c: Correct spelling in comment.
8096 * sparc-tdep.c: Correct spelling in comments.
8097
8098 2004-03-05 David Carlton <carlton@kealia.com>
8099
8100 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
8101 bug.
8102
8103 2004-03-05 Mark Kettenis <kettenis@gnu.org>
8104
8105 * sparc-tdep.c: Fix typo in comment.
8106
8107 2004-03-04 J. Brobecker <brobecker@gnat.com>
8108
8109 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
8110
8111 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
8112
8113 * dwarf2read.c: Add comment describing memory lifetimes.
8114 (struct dwarf2_pinfo): Update comment.
8115 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
8116 (read_enumeration, new_symbol): Don't use obsavestring.
8117
8118 2004-03-04 Mark Kettenis <kettenis@gnu.org>
8119
8120 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
8121 instead of amd64_fill_fxsave.
8122 * amd64bsd-nat.c (store_inferior_registers): Likewise.
8123 * amd64fbsd-nat.c (fill_fpregset): Likewise.
8124
8125 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
8126 Reorganize code a bit.
8127
8128 2004-03-04 Orjan Friberg <orjanf@axis.com>
8129
8130 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8131 when the frame pointer is pushed. Don't set the frame pointer's
8132 address on the stack unless it's actually located there.
8133 Set the SRP's address on the stack correctly when the PC is still in
8134 the prologue.
8135 (cris_return_value): New function.
8136 (cris_gdbarch_init): Clear deprecated store_return_value,
8137 extract_return_value.
8138
8139 2004-03-02 Jim Blandy <jimb@redhat.com>
8140
8141 * stabsread.c (reg_value_complaint): The maximum register number
8142 is one less than the number of registers.
8143
8144 2004-03-02 Andrew Cagney <cagney@redhat.com>
8145
8146 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8147 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8148 trailing comma and redundant assignment of I386_ST0_REGNUM.
8149 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8150 32-bit segment registers.
8151
8152 2004-03-01 Andrew Cagney <cagney@redhat.com>
8153
8154 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8155 use frame_relative_level and get_next_frame.
8156
8157 2004-02-29 Andrew Cagney <cagney@redhat.com>
8158
8159 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8160 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8161 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8162 Delete macro.
8163
8164 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8165
8166 * inflow.c (terminal_inferior): Don't give up the terminal if we
8167 previously couldn't get the inferior's terminal state.
8168
8169 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8170
8171 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8172 PC_REGNUM.
8173
8174 2004-02-28 Andrew Cagney <cagney@redhat.com>
8175
8176 * NEWS: Refer to GDB 6.1.
8177 * README: Refer to GDB 6.1.
8178 * PROBLEMS: Refer to GDB 6.1.
8179
8180 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
8181
8182 * thread-db.c (disable_thread_signals): Remove unused function.
8183
8184 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8185
8186 * amd64-nat.c: Include "gdb_string.h".
8187 (amd64_collect_native_gregset): Zero-extend the 32-bit
8188 general-purpose registers and %eip.
8189
8190 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8191 * amd64-tdep.c (amd64_collect_fxsave): New function.
8192 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
8193
8194 * i387-tdep.h: Update copyright year.
8195 (i387_collect_fxsave): New prototype.
8196 * i387-tdep.c: Update copyright year.
8197 (i387_collect_fxsave): New function containing most of the code
8198 from i387_fill_fxsave.
8199 (i387_fill_fxsave): Call i387_collect_fxsave.
8200
8201 2004-02-28 Andrew Cagney <cagney@redhat.com>
8202
8203 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
8204 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
8205
8206 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8207
8208 * amd64-tdep.c (amd64_frame_cache): Fix comment.
8209
8210 2004-02-28 Andrew Cagney <cagney@redhat.com>
8211
8212 * utils.c: Use "", instead of <>, to include readline.
8213 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
8214 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
8215 * source.c, solib.c, exec.c, event-top.c: Ditto.
8216 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
8217 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
8218 * Makefile.in: Update all dependencies.
8219 (readline_tilde_h, readline_history_h): Define.
8220 (readline_headers): Delete.
8221
8222 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8223
8224 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
8225 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
8226 "config/i386/tm-lx64.h".
8227
8228 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
8229 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
8230 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
8231
8232 2004-02-28 Andrew Cagney <cagney@redhat.com>
8233
8234 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
8235
8236 * breakpoint.c (_initialize_breakpoint): Use
8237 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
8238 Add help to show command.
8239
8240 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8241
8242 * i386-nat.c: Reformat to be closer to coding standards.
8243 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
8244 `retval'. Make variables `align' and `size' local to while-loop.
8245 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
8246 (_initialize_i386_nat): New prototype.
8247
8248 * tui/tui.c: Include <readline/readline.h> instead of
8249 "readline/readline.h". Include it after <term.h> and
8250 "gdb_curses.h".
8251
8252 2004-02-27 Andrew Cagney <cagney@redhat.com>
8253
8254 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
8255 the new frame unwind code.
8256 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
8257 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
8258 PCOQ_HEAD_REGNUM.
8259
8260 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
8261 "return_value" and "push_dummy_call".
8262 (hppa32_use_struct_convention): Delete unused function.
8263 (hppa32_store_return_value): Delete unused function.
8264 (hppa32_extract_return_value): Delete unused function.
8265 (hppa32_stack_align): Delete function.
8266
8267 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
8268
8269 * coffread.c (enter_linenos): Don't let rawptr reference memory
8270 outside linetab[]'s limits.
8271
8272 2004-02-27 Andrew Cagney <cagney@redhat.com>
8273
8274 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
8275 inferior stack space - the stack needs to grow upwards.
8276 (hppa32_frame_align): New function.
8277 (hppa64_frame_align): Replace hppa_frame_align.
8278 (hppa_gdbarch_init): Update.
8279
8280 2004-02-26 Orjan Friberg <orjanf@axis.com>
8281
8282 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
8283 (dwarf2-frame.h): Include.
8284 (enum cris_regnums): New enum CRIS_FP_REGNUM.
8285 Remove static variables related to ABI setting.
8286 (struct gdbarch_tdep): Remove cris_abi member.
8287 (struct frame_extra_info): Remove.
8288 (cris_unwind_cache, stack_item): New structs.
8289 (cris_frame_unwind, cris_frame_base): New variables.
8290 (push_stack_item, pop_stack_item)
8291 (cris_frame_unwind_cache, cris_frame_this_id)
8292 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
8293 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
8294 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
8295 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
8296 (cris_reg_struct_has_addr): New functions.
8297 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8298 (cris_frame_saved_pc, cris_saved_pc_after_call,
8299 (cris_store_struct_return, cris_frameless_function_invocation)
8300 (cris_pop_frame, cris_skip_prologue_main)
8301 (cris_abi_original_store_return_value)
8302 (cris_abi_v2_store_return_value)
8303 (cris_abi_original_extract_return_value)
8304 (cris_abi_v2_extract_return_value)
8305 (cris_abi_original_reg_struct_has_addr)
8306 (cris_abi_v2_reg_struct_has_addr)
8307 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
8308 (cris_push_return_address, cris_abi_update): Remove.
8309 (_initialize_cris_tdep): Remove ABI command.
8310 (cris_dump_tdep): Ditto.
8311 (cris_gdbarch_init): Remove ABI command.
8312 Set store_return_value, extract_return_value, push_dummy_code,
8313 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
8314 frame_unwind_append_sniffer, frame_base_set_default.
8315 Clear deprecated init_frame_pc, push_arguments, store_return_value,
8316 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
8317 sizeof_call_dummy_words, get_saved_register, push_return_address,
8318 pop_frame, store_struct_return, frame_init_saved_regs,
8319 init_extra_frame_info, frameless_function_invocation, frame_chain,
8320 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
8321 dummy_write_sp.
8322
8323 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8324
8325 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
8326 * valprint.c (print_hex_chars): Change from static to external.
8327 (print_char_chars): New function.
8328 * printcmd.c (print_scalar_formatted): For integer and enum types
8329 that are longer than LONGEST, perform processing via appropriate
8330 print_*_chars routines.
8331
8332 2004-02-26 Andrew Cagney <cagney@redhat.com>
8333
8334 * Makefile.in: Update dependencies.
8335 Changes from Ulrich Weigand,
8336 * s390-tdep.c: Include "dwarf2-frame.h".
8337 (s390_dwarf2_frame_init_reg): New function.
8338 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8339 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8340
8341 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8342
8343 * breakpoint.c (pending_break_support): New setting variable.
8344 (break_command_1): Account for pending_break_support setting
8345 when creating pending breakpoints.
8346 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8347 (_initialize_breakpoint): Add "set breakpoint pending" and
8348 "show breakpoint pending" commands.
8349
8350 2004-02-26 Andrew Cagney <cagney@redhat.com>
8351
8352 Fix PR i18n/1570.
8353 * charset.c (backslashable, backslashed, represented): Remove 'e'
8354 from list of escaped characters, not part of ISO-C.
8355
8356 2004-02-25 J. Brobecker <brobecker@gnat.com>
8357
8358 From Peter Schauer <schauer@pdf.de>:
8359 * tui/tui.c: Move system header includes after local includes.
8360 Fixes a build failure on solaris systems.
8361
8362 2004-02-25 J. Brobecker <brobecker@gnat.com>
8363
8364 * configure.in: Refine the previous change.
8365 * configure: Regenerate.
8366
8367 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8368
8369 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8370 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8371 "amd64-tdep.h" instead of "x86-64-tdep.h".
8372 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8373 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8374 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8375 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8376 and "x86-64-tdep.c".
8377 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8378 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8379 and "x86-64-tdep.c".
8380 * amd64bsd-nat.c: Update copyright year.
8381 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8382 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8383 "x86-64-tdep.h".
8384 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8385 "x86-64-tdep.h".
8386 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8387 "x86-64-tdep.h".
8388 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8389 "x86-64-tdep.h".
8390 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8391 "x86-64-tdep.h".
8392 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8393 "x86-64-tdep.h".
8394 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
8395 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8396 * Makefile.in (amd64_linux_tdep_h): Renamed from
8397 x86_64_linux_tdep_h.
8398 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8399 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8400 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8401 (amd64obsd-tdep.o): Update dependencies.
8402 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8403 dependencies.
8404 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8405 dependencies.
8406 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8407 amd64-linux-nat.c amd64-linux-tdep.c.
8408 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8409 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8410 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8411 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8412 amd64-tdep.o and amd64-linux-tdep.o.
8413 (TM_FILE): Set to tm-linux64.h.
8414 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8415 (NAT_FILE): Set to nm-linux64.h.
8416 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8417 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8418 amd64-tdep.o.
8419 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8420 amd64-tdep.o.
8421 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8422 amd64-tdep.o.
8423
8424 2004-02-25 Roland McGrath <roland@redhat.com>
8425
8426 * remote.c (remote_protocol_qPart_auxv): New variable.
8427 (init_all_packet_configs): Initialize it.
8428 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8429 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8430 (show_remote_cmd): Call it.
8431 (_initialize_remote): Initialize commands.
8432 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8433 service TARGET_OBJECT_AUXV requests.
8434
8435 2004-02-25 J. Brobecker <brobecker@gnat.com>
8436
8437 * configure.in: Make sure that the wborder function is available.
8438 Otherwise, search for it in the cur_colr library.
8439 * configure: Regenerate.
8440
8441 2004-02-25 Andrew Cagney <cagney@redhat.com>
8442
8443 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8444
8445 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8446
8447 * config/i386/tm-x86-64linux.h: Tweak comments.
8448
8449 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
8450
8451 * MAINTAINERS: Add self to write-after-approval list.
8452
8453 2004-02-25 Andrew Cagney <cagney@redhat.com>
8454
8455 PR cli/1566. Problem found, and fix suggested by David Allan.
8456 * cli/cli-script.c (execute_control_command): Unconditionally
8457 install a cleanup. Default "ret" to "invalid_control". Use
8458 "break" instead of "return" to escape from the switch.
8459
8460 2004-02-24 J. Brobecker <brobecker@gnat.com>
8461
8462 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8463 with the lines macro defined in term.h on AiX.
8464 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8465 a collision with the label_width macro defined in term.h on AiX.
8466
8467 2004-02-23 David Mosberger <davidm@hpl.hp.com>
8468
8469 Committed by Kevin Buettner <kevinb@redhat.com>.
8470
8471 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8472 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8473 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8474 instead of ia64_write_pc().
8475 * ia64-linux-tdep.c (regcache.h): Include.
8476 (ia64_linux_write_pc): New function.
8477
8478 2004-02-23 Roland McGrath <roland@redhat.com>
8479
8480 * auxv.c (info_auxv_command): Fix typos in error messages.
8481
8482 2004-02-23 Mark Kettenis <kettenis@gnu.org>
8483
8484 * x86-64-tdep.h: Tweak comment.
8485 (enum amd64_regnum): New.
8486 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8487 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8488 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8489 (X86_64_XMM1_REGNUM): Removed.
8490 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8491 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8492 prototypes for renamed functions.
8493 * x86-64-tdep.c: Fix typo.
8494 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8495 register numbers.
8496 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8497 Use constants from `enum amd64_regnum' for register numbers.
8498 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8499 (amd64_analyze_prologue, amd64_frame_cache,
8500 amd64_sigtramp_frame_cache): Use constants from `enum
8501 amd64_regnum' for register numbers.
8502 (amd64_supply_fpregset): Adjust for renamed functions.
8503 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8504 `enum amd64_regnum' for register numbers.
8505 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8506 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8507 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8508 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8509 (amd64_linux_fill_gregset): Adjust for renamed macros.
8510 (fetch_core_registers): Adjust for renamed functions.
8511 (amd64_linux_init_abi): Adjust for renamed functions.
8512 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8513 renamed functions.
8514 * amd64-nat.c: Adjust for renamed macros.
8515 * amd64bsd-nat.c (fetch_inferior_registers)
8516 (store_inferior_registers): Use constants from `enum amd64_regnum'
8517 for register numbers. Adjust for renamed variables.
8518 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8519 renamed variables.
8520 (_initialize_amd64fbsd_nat): Use constants from `enum
8521 amd64_regnum' for register numbers.
8522 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8523 `enum amd64_regnum' for register numbers.
8524 (amd64fbsd_init_abi): Adjust for renamed functions.
8525 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8526 `enum amd64_regnum' for register numbers.
8527 (amd64nbsd_init_abi): Adjust for renamed functions.
8528 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8529 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8530 `enum amd64_regnum' for register numbers.
8531 (amd64obsd_init_abi): Adjust for renamed functions.
8532 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8533
8534 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8535
8536 * breakpoint.c (print_one_breakpoint): Do not output spaces
8537 after printing <PENDING> for a pending breakpoint.
8538
8539 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8540
8541 * printcmd.c (print_scalar_formatted): Initialize val_long
8542 to remove compiler warning message.
8543
8544 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8545
8546 * defs.h (nquery, yquery): New prototypes.
8547 * breakpoint.c (break_command_1): Use new nquery interface.
8548 * utils.c (defaulted_query, nquery, yquery): New functions.
8549
8550 2004-02-23 Andrew Cagney <cagney@redhat.com>
8551
8552 * hppa-tdep.c (hppa_frame_align): New function.
8553 (hppa32_push_dummy_call): New function.
8554 (hppa64_push_dummy_call): New function.
8555 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8556 disabled.
8557
8558 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8559 FIX_CALL_DUMMY when push_dummy_call is available.
8560 (call_function_by_hand, push_dummy_code): Ditto.
8561
8562 2004-02-22 Andrew Cagney <cagney@redhat.com>
8563
8564 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8565 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8566 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8567 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8568 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8569 call_dummy_location to ON_STACK.
8570
8571 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8572
8573 * x86-64-linux-tdep.c: Tweak comment.
8574 (amd64_linux_supply_gregset): Renamed from
8575 x86_64_linux_supply_gresget.
8576 (amd64_linux_fill_gregset): Renamed from
8577 x86_64_linux_fill_gregset.
8578 (fetch_core_registers): Adjust for renamed functions.
8579 (amd64_core_fns): Renamed from x86_64_core_fns.
8580 (amd64_linux_sigtramp_start): Renamed from
8581 x86_64_linux_sigtramp_start.
8582 (amd64_linux_pc_in_sigtramp): Renamed from
8583 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8584 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8585 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8586 (amd64_linux_sigcontext_addr): Renamed from
8587 x86_64_linux_sigcontext_addr.
8588 (amd64_linux_sc_reg_offset): Renamed from
8589 x86_64_linux_sc_reg_offset.
8590 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8591 Adjust for renamed functions and variables.
8592 (_initialize_amd64_linux_tdep): Renamed from
8593 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8594 variables.
8595 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8596 Adjust for renamed functions.
8597
8598 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8599 from x86_64_linux_gregset64_reg_offset.
8600 (amd64_linux_gregset32_reg_offset): Rename from
8601 x86_64_linux_gregset64_reg_offset.
8602 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8603 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8604 (amd64_linux_dr_set_control): Renamed from
8605 x86_64_linux_dr_set_control. Adjust for renamed functions.
8606 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8607 Adjust for renamed functions.
8608 (amd64_linux_dr_reset_addr): Renamed from
8609 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8610 (amd64_linux_dr_get_status): Renamed from
8611 x86_64_linux_dr_get_status. Adjust for renamed functions.
8612 (_initialize_amd64_linux_nat): Renamed from
8613 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8614 functions.
8615 * config/i386/nm-x86-64linux.h: Update copyright year.
8616 Adjust for renamed functions.
8617
8618 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8619 amd64fbsd_sigtramp_start.
8620 (amd64fbsd_sigtramp_end_addr): Renamed from
8621 amd64fbsd_sigtramp_end.
8622 (amd64fbsd_init_abi): Adjust for renamed variables.
8623 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8624 variables.
8625 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8626 amd64fbsd_sigtramp_start.
8627 (amd64fbsd_sigtramp_end_addr): Renamed from
8628 amd64fbsd_sigtramp_end.
8629
8630 2004-02-22 Andrew Cagney <cagney@redhat.com>
8631
8632 * hppa-tdep.c (hppa32_return_value): New function.
8633 (hppa64_return_value): New function.
8634 (hppa_gdbarch_init): Set return_value; keep disabled.
8635
8636 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8637 struct-return and inferior function call methods.
8638
8639 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8640 "frame-base.h".
8641 (struct hppa_frame_cache): Define.
8642 (hppa_frame_cache, hppa_frame_this_id): New functions.
8643 (hppa_frame_prev_register): New function.
8644 (hppa_frame_unwind, hppa_frame_base): New variables.
8645 (hppa_frame_unwind_sniffer): New function.
8646 (hppa_frame_base_address, hppa_unwind_pc): New function.
8647 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8648 sniffer, and frame base sniffer; keep disabled.
8649 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8650 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8651
8652 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8653 to predicates for "seriously old code".
8654
8655 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8656 runtime if(0).
8657
8658 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8659 unsigned.
8660 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
8661
8662 * config/pa/tm-hppa.h: Update copyright.
8663 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8664 (deprecated_init_frame_pc_default): Delete declaration.
8665 (hppa_frame_init_saved_regs): Delete declaration.
8666 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8667 * hppa-tdep.c: Include "arch-utils.h".
8668 (hppa_gdbarch_init): Set deprecated init_frame_pc
8669 and deprecated frame_init_saved_regs.
8670 (hppa_frame_init_saved_regs): Make static.
8671
8672 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8673
8674 Remove old 386BSD support.
8675 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
8676 * configure.host: Remove i[34567]86-*-bsd*.
8677 * configure.tgt: Remove i[34567]86-*-bsd*.
8678 * i386b-nat.c: Removed.
8679 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
8680 (i386b-nat.o): Remove dependencies.
8681
8682 * config/i386/i386bsd.mh: Removed.
8683 * config/i386/i386bsd.mt: Removed.
8684 * config/i386/nm-i386bsd.h: Removed.
8685 * config/i386/tm-i386bsd.h: Removed.
8686 * config/i386/xm-i386bsd.h: Removed.
8687
8688 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8689
8690 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8691 (amd64fbsd_init_abi): Set link map offsets.
8692 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8693 (amd64nbsd_init_abi): Set link map offsets.
8694 * amd64obsd-tdep.c: Include "solib-svr4.h".
8695 (amd64obsd_init_abi): Set link map offsets.
8696 * i386fbsd-tdep.c: Include "solib-svr4.h".
8697 (i386fbsd_init_abi): Set link map offsets.
8698 * i386nbsd-tdep.c: Include "solib-svr4.h".
8699 (i386nbsdelf_init_abi): Set link map offsets.
8700 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8701 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8702 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8703 solib-legacy.o and core-aout.o. Reformat.
8704 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8705 solib-svr4.o, solib-legacy.o. Reformat.
8706 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8707 * config/i386/nbsdelf.mh: Reformat.
8708 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8709 solib-svr4.o, solib-legacy.o and corelow.o.
8710 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8711 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8712 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8713 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8714 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8715 (TM_FILE): Set to tm-fbsd.h.
8716 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8717 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8718 solib-svr4.o.
8719 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8720 solib-svr4.o.
8721 (TM_FILE): Set to nm-nbsd.h.
8722 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8723 Simplify shared library support. Don't include "elf/common.h".
8724 (SVR4_SHARED_LIBS): Don't define.
8725 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8726 "solib.h".
8727 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8728 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8729 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8730 Don't include "i386/tm-i386.h". Include "solib.h".
8731 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8732 Don't include "i386/tm-i386.h".
8733 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8734 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8735 Include "i386/xm-i386.h".
8736 (HOST_LONG_DOUBLE_FORMAT): Remove.
8737
8738 Fix OpenBSD/i386 sigtramp recognition.
8739 * i386-tdep.h: Update copyright year.
8740 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8741 (i386bsd_sigtramp_end): New prototypes.
8742 (i386fbsd_sigtramp_start_addr): Renamed from
8743 i386fbsd_sigtramp_start.
8744 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8745 (i386obsd_sigtramp_start_addr): Renamed from
8746 i386obsd_sigtramp_start.
8747 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8748 * i386bsd-tdep.c: Update copyright year.
8749 (i386bsd_pc_in_sigtramp): Make public.
8750 * i386fbsd-nat.c: Update copyright year.
8751 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8752 * i386fbsd-tdep.c: Update copyright year.
8753 (i386fbsd_sigtramp_start_addr): Renamed from
8754 i386fbsd_sigtramp_start.
8755 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8756 (i386fbsdaout_init_abi): Adjust for renamed variables.
8757 * i386obsd-nat.c: Update copyright year.
8758 (_initialize_i386obsd_nat): Adjust for renamed variables.
8759 * i386obsd-tdep.c: Include "target.h".
8760 (i386obsd_page_size): New variable.
8761 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8762 (i386obsd_sigtramp_end): New functions.
8763 (i386obsd_sigtramp_start_addr): Renamed from
8764 i386obsd_sigtramp_start.
8765 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8766 (i386obsd_init_abi): Adjust for renamed variables. Set
8767 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8768 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8769
8770 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8771 trampoline change in OpenBSD kernel.
8772
8773 * amd64-nat.c: Update copyright year.
8774 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8775 architecture from REGCACHE.
8776
8777 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8778 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8779
8780 2004-02-21 Mark Kettenis <kettenis@gnu.org>
8781
8782 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8783 i[34567]86-*-openbsd3.[0-3].
8784 * config/i386/obsdaout.mh: New file.
8785
8786 * config/i386/obsd.mh (MH_FLAGS): Remove.
8787
8788 Fix PR build/1549.
8789 * i386obsd-tdep.c: Update copyright years. Include
8790 "solib-svr4.h".
8791 (i386obsd_init_abi): Don't set regset_from_core_section here.
8792 (i386obsd_aout_init_abi): New function. Set
8793 regset_from_core_section here.
8794 (i386obsd_elf_init_abi): New function.
8795 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8796 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8797 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8798 (TM_FILE): Set to tm-nbsd.h.
8799
8800 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8801 solib-sunos.o.
8802
8803 * solib-svr4.h: Update copyright year.
8804 (svr4_ilp32_fetch_link_map_offsets)
8805 (svr4_lp64_fetch_link_map_offsets): New prototype.
8806 * solib-svr4.c: Update copyright year.
8807 (svr4_ilp32_fetch_link_map_offsets)
8808 (svr4_lp64_fetch_link_map_offsets): New function.
8809
8810 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
8811
8812 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8813 to the partial symbol table.
8814
8815 2004-02-20 J. brobecker <brobecker@gnat.com>
8816
8817 * PROBLEMS: Add description of problem documented under gdb/1560.
8818
8819 2004-02-20 Mark Kettenis <kettenis@gnu.org>
8820
8821 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8822 comments.
8823 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8824 functions.
8825 (amd64obsd_init_abi): Reorder initializations. Use
8826 amd64obsd_r_reg_offset to initialize the general-purpose register
8827 set details. Set regset_from_core_section.
8828 (_initialize_amd64obsd_tdep): Rename from
8829 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8830 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8831 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8832
8833 * NEWS (New native configurations): Mention OpenBSD/alpha.
8834 * configure.tgt: Add alpha*-*-openbsd*.
8835 * configure.host: Add alpha*-*-openbsd*.
8836 * alphanbsd-tdep.c: Update copyright year.
8837 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8838
8839 2004-02-20 Andrew Cagney <cagney@redhat.com>
8840
8841 Fix PR tdep/1372.
8842 * configure.tgt: Delete target "none-*-*".
8843 * configure.host: Delete host "none-*-*".
8844 * config/none/none.mh: Delete file.
8845 * config/none/none.mt: Delete file.
8846 * config/none/xm-none.h: Delete file.
8847 * config/none/tm-none.h: Delete file.
8848 * config/none/nm-none.h: Delete file.
8849
8850 2004-02-19 Fred Fish <fnf@redhat.com>
8851
8852 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8853 cache->uses_fp prior to setting it.
8854
8855 2004-02-19 Fred Fish <fnf@redhat.com>
8856
8857 Fix for PR breakpoint/1558.
8858 * sh-tdep.c (IS_JSR): New macro.
8859 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8860
8861 2004-02-19 Jim Blandy <jimb@redhat.com>
8862
8863 * findvar.c (value_from_register): Doc fix.
8864
8865 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8866
8867 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8868 type being greater than sizeof of host's LONGEST. Always use
8869 unpack_long() unless format 'f' chosen.
8870
8871 2004-02-19 Joel Brobecker <brobecker@gnat.com>
8872
8873 Committed by Elena Zannoni <ezannoni@redhat.com>
8874
8875 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8876 contains a symbol wich is the best, non-exact match for the given
8877 pc. Update comments.
8878
8879 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
8880
8881 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8882 macro, which was part of the now removed Mach 3 port.
8883 * utils.c (request_quit): Ditto.
8884
8885 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8886
8887 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8888 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8889
8890 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8891
8892 Committed by Mark Kettenis <kettenis@gnu.org>.
8893
8894 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8895 Define.
8896
8897 2004-02-18 Andrew Cagney <cagney@redhat.com>
8898
8899 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8900 CONFIG_INSTALL and CONFIG_UNINSTALL.
8901 * configure: Re-generate.
8902 * interps.h (INTERP_TUI): Define.
8903 * Makefile.in: Update dependencies.
8904 (TUI): New macro.
8905 (tui-main.o): Specify dependencies.
8906 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8907 * tui/tui-main.c: New file.
8908
8909 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8910
8911 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8912 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8913 dependencies.
8914 * configure.host: Add x86_64-*-openbsd*.
8915 * configure.tgt: Add x86_64-*-openbsd*.
8916 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8917
8918 * tui/tui.c: Don't include <malloc.h>.
8919
8920 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8921 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8922 amd64nbsd-tdep.c.
8923
8924 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8925 static. Remove extraneous whitespace.
8926 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8927 static.
8928
8929 2004-02-17 Jim Blandy <jimb@redhat.com>
8930
8931 * findvar.c (value_from_register): Doc fix.
8932
8933 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8934
8935 Committed by Jim Blandy <jimb@redhat.com>.
8936
8937 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
8938 CORE_ADDR as type for selectors. Correct types for GNU run time
8939 message lookup function to use double indirection.
8940 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8941 * objc-lang.h (lookup_child_selector): Adapt prototype.
8942
8943 * s390-nat.c (SUBOFF): New macro.
8944 (supply_gregset, fill_gregset): Use it to handle debugging
8945 of 32-bit exectuables running under a 64-bit kernel.
8946 * s390-tdep.c: Include "solib-svr4.h".
8947 (s390_svr4_fetch_link_map_offset): New function.
8948 (s390x_svr_fetch_link_map_offset): Likewise.
8949 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8950 * Makefile.in (s390-tdep.o): Update dependencies.
8951
8952 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8953 "frame-unwind.h".
8954 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8955 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8956 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8957 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8958 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8959 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8960 S390_SIGNAL_FRAMESIZE,
8961 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8962 (struct frame_extra_info): Remove.
8963 (s390_memset_extra_info): Remove.
8964 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8965 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8966 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
8967 (is_rse): Renamed to ...
8968 (is_rsy): ... this. Support long displacements.
8969 (is_rxe): Renamed to ...
8970 (is_rxy): ... this. Support long displacements.
8971 (compute_x_addr): Support long displacements.
8972 (struct s390_prologue_data): New data type.
8973 (s390_on_stack): Change API to use struct s390_prologue_data.
8974 (s390_store): Reimplement.
8975 (s390_load): New function.
8976 (s390_get_signal_frame_info): Remove.
8977 (s390_get_frame_info): Remove, replace by ...
8978 (s390_analyze_prolog): ... this new function.
8979 (s390_check_function_end): Remove.
8980 (s390_function_start): Remove.
8981 (s390_frameless_function_invokation): Remove.
8982 (s390_is_sigreturn): Remove.
8983 (s390_init_frame_pc_first): Remove.
8984 (s390_init_frame_extra_info): Remove.
8985 (s390_frame_init_saved_regs): Remove.
8986 (s390_frame_saved_pc_nofix): Remove.
8987 (s390_frame_saved_pc): Remove.
8988 (s390_frame_chain): Remove.
8989 (s390_fp_regnum, s390_read_fp): Remove.
8990 (s390_pop_frame_regular, s390_pop_frame): Remove.
8991 (s390_saved_pc_after_call): Remove.
8992 (s390_skip_prologue): Reimplement.
8993 (s390_in_function_epilogue_p): Support long displacements.
8994 (struct s390_unwind_cache): New data structure.
8995 (s390_frame_unwind_cache): New function.
8996 (s390_prologue_frame_unwind_cache): Likewise.
8997 (s390_backchain_frame_unwind_cache): Likewise.
8998 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8999 (s390_frame_unwind): Define.
9000 (s390_frame_sniffer): New function.
9001 (struct s390_pltstub_unwind_cache): New data structure.
9002 (s390_pltstub_frame_unwind_cache): New function.
9003 (s390_pltstub_frame_this_id): Likewise.
9004 (s390_pltstub_frame_prev_register): Likewise.
9005 (s390_pltstub_frame_unwind): Define.
9006 (s390_pltstub_frame_sniffer): New function.
9007 (struct s390_sigtramp_unwind_cache): New data structure.
9008 (s390_sigtramp_frame_unwind_cache): New function.
9009 (s390_sigtramp_frame_this_id): Likewise.
9010 (s390_sigtramp_frame_prev_register): Likewise.
9011 (s390_sigtramp_frame_unwind): Define.
9012 (s390_sigtramp_frame_sniffer): New function.
9013 (s390_frame_base_address, s390_local_base_address): New functions.
9014 (s390_frame_base): Define.
9015 (s390_unwind_pc, s390_unwind_sp): New function.
9016 (s390_push_dummy_call): Use new frame base location.
9017 (s390_unwind_dummy_id): Likewise.
9018 (s390_gdbarch_init): Remove calls to:
9019 set_gdbarch_frameless_function_invocation,
9020 set_gdbarch_deprecated_init_frame_pc,
9021 set_gdbarch_deprecated_frame_chain,
9022 set_gdbarch_deprecated_frame_init_saved_regs,
9023 set_gdbarch_deprecated_pop_frame,
9024 set_gdbarch_deprecated_init_extra_frame_info,
9025 set_gdbarch_deprecated_init_frame_pc_first,
9026 set_gdbarch_deprecated_target_read_fp,
9027 set_gdbarch_deprecated_frame_saved_pc,
9028 set_gdbarch_deprecated_saved_pc_after_call,
9029 set_gdbarch_deprecated_fp_regnum.
9030 Add calls to:
9031 set_gdbarch_in_solib_call_trampoline,
9032 frame_unwind_append_sniffer,
9033 frame_base_set_default,
9034 set_gdbarch_unwind_pc,
9035 set_gdbarch_unwind_sp.
9036 * Makefile.in (s390-tdep.o): Update dependencies.
9037
9038 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9039 (S390_STACK_FRAME_OVERHEAD): Remove.
9040 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9041 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9042 (s390_promote_integer_argument): Remove.
9043 (s390_cannot_extract_struct_value_address): Remove.
9044 (s390_use_struct_convention, s390_store_struct_return): Remove.
9045 (s390_extract_return_value, s390_store_return_value): Remove.
9046 (s390_return_value_convention, s390_return_value): New functions.
9047 (is_float_singleton): Handle typedefs.
9048 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
9049 Remove, replace by ...
9050 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9051 s390_function_arg_integer): ... these new functions.
9052 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9053 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9054 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9055 Fill in tdep->abi.
9056 Remove calls to:
9057 set_gdbarch_deprecated_store_struct_return,
9058 set_gdbarch_deprecated_extract_return_value,
9059 set_gdbarch_deprecated_store_return_value,
9060 set_gdbarch_use_struct_convention,
9061 set_gdbarch_extract_struct_value_address,
9062 set_gdbarch_deprecated_pc_in_call_dummy,
9063 set_gdbarch_deprecated_push_arguments,
9064 set_gdbarch_deprecated_save_dummy_frame_tos,
9065 set_gdbarch_deprecated_push_return_address,
9066 set_gdbarch_deprecated_sizeof_call_dummy_words,
9067 set_gdbarch_deprecated_call_dummy_words,
9068 set_gdbarch_deprecated_dummy_write_sp.
9069 Add calls to:
9070 set_gdbarch_push_dummy_call,
9071 set_gdbarch_unwind_dummy_id,
9072 set_gdbarch_return_value.
9073
9074 * config/s390/nm-linux.h: Update comments.
9075 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
9076 (STOPPED_BY_WATCHPOINT): Redefine.
9077 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
9078 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
9079 (s390_stopped_by_watchpoint): Likewise.
9080 (watch_area_cnt): Remove.
9081 * s390-nat.c: Update comments.
9082 (watch_area): Remove typedef.
9083 Global replace watch_area by struct watch_area.
9084 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
9085 (s390_stopped_by_watchpoint): Remove pid argument,
9086 use s390_inferior_tid. Add short-cut for the no watchpoint case.
9087 (s390_fix_watch_points): Remove pid argument,
9088 use s390_inferior_tid. Recompute area spanned by watchpoints.
9089 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
9090 argument. Reimplement.
9091
9092 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
9093 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
9094 (FETCH_INFERIOR_REGISTERS): Define.
9095 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
9096 core-regset.o.
9097 * config/s390/s390x.mt: Remove.
9098 * config/s390/tm-s390.h: Remove.
9099 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
9100 (TARGET_ELF64): Remove.
9101 (SKIP_TRAMPOLINE_CODE): Do not undefine.
9102 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
9103 s390*-*-* case; always set gdb_target to s390.
9104 * regformats/reg-s390.dat: Remove control registers.
9105 * regformats/reg-s390x.dat: Likewise.
9106 * s390-tdep.h: New file.
9107 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
9108 Include "inferior.h" and "s390-tdep.h".
9109 Remove private definition of offsetof.
9110 (s390_register_u_addr): Remove.
9111 (regmap_gregset, regmap_fpregset): Define.
9112 (supply_gregset, fill_gregset): Reimplement.
9113 (supply_fpregset, fill_fpregset): Likewise.
9114 (s390_inferior_tid): New function.
9115 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
9116 (fetch_inferior_registers, store_inferior_registers): Likewise.
9117 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
9118 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
9119 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
9120 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
9121 (struct gdbarch_tdep): Define.
9122 (struct s390_register_info): Define.
9123 (s390_register_info): New variable.
9124 (s390_register_name): Reimplement.
9125 (s390_register_type): New function.
9126 (s390_register_raw_size, s390x_register_raw_size): Remove.
9127 (s390_cannot_fetch_register): Remove.
9128 (s390_register_byte): Remove.
9129 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
9130 (s390_dwarf_regmap): New variable.
9131 (s390_dwarf_reg_to_regnum): New function.
9132 (s390_stab_reg_to_regnum): Remove.
9133 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
9134 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9135 (s390_convert_register_p): Likewise.
9136 (s390_register_to_value, s390_value_to_register): Likewise.
9137 (s390_register_reggroup_p): Likewise.
9138 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9139 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9140 (s390_supply_regset, s390_regset_from_core_section): New functions.
9141 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9142 (S390_FPR_SIZE): Likewise.
9143 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9144 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9145 (S390_NUM_GPRS): Move here from tm-s390.h.
9146 (S390_NUM_FPRS): Likewise.
9147 (s390_in_function_epilogue_p): New function.
9148 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9149 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9150 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9151 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9152 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9153 Remove calls to:
9154 set_gdbarch_deprecated_max_register_raw_size,
9155 set_gdbarch_deprecated_max_register_virtual_size,
9156 set_gdbarch_deprecated_register_byte,
9157 set_gdbarch_cannot_fetch_register,
9158 set_gdbarch_cannot_store_register,
9159 set_gdbarch_deprecated_register_size,
9160 set_gdbarch_deprecated_register_raw_size,
9161 set_gdbarch_deprecated_register_virtual_size,
9162 set_gdbarch_deprecated_register_virtual_type,
9163 set_gdbarch_deprecated_register_bytes.
9164 Add calls to:
9165 set_gdbarch_num_pseudo_regs,
9166 set_gdbarch_register_type,
9167 set_gdbarch_convert_register_p,
9168 set_gdbarch_register_to_value,
9169 set_gdbarch_value_to_register,
9170 set_gdbarch_register_reggroup_p,
9171 set_gdbarch_regset_from_core_section,
9172 set_gdbarch_pseudo_register_read,
9173 set_gdbarch_pseudo_register_write,
9174 set_gdbarch_in_function_epilogue_p.
9175 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9176 (s390_tdep_h): New variable.
9177
9178 2004-02-17 Jim Blandy <jimb@redhat.com>
9179
9180 * findvar.c (value_from_register): If the type has no length, just
9181 return an acceptable value --- don't report an internal error.
9182
9183 * stabsread.c (read_type): If we find any type numbers that are
9184 forward references, complain if the references aren't resolved by
9185 the time we're finished reading.
9186 (cleanup_undefined_types): Make error message more appropriate for
9187 a complaint.
9188
9189 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9190
9191 * Makefile.in (defs_h): Remove dependency on progress_h.
9192 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
9193 progress.h.
9194 * main.c (captured_main): Delete use of START_PROGRESS and
9195 END_PROGRESS.
9196
9197 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9198
9199 * objfiles.c (terminate_minimal_symbol_table): Add back
9200 initialization of MSYMBOL_TYPE.
9201
9202 2004-02-17 David Mosberger <davidm@hpl.hp.com>
9203
9204 Committed by Andrew Cagney.
9205 * Makefile.in (ia64_tdep_h): New macro.
9206 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
9207 (ia64-tdep.o): Likewise.
9208 * ia64-tdep.h: New file.
9209 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
9210 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
9211 (ia64_aix_sigcontext_register_address): Likewise.
9212 (ia64_linux_getunwind_table): Delete declaration.
9213 * ia64-linux-tdep.c: Likewise.
9214
9215 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
9216
9217 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
9218 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
9219 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
9220
9221 2004-02-17 Andrew Cagney <cagney@redhat.com>
9222
9223 * symtab.c (skip_prologue_using_sal): New function.
9224 * symtab.h (skip_prologue_using_sal): Declare.
9225 * frv-tdep.c: Include "symtab.h".
9226 (skip_prologue_using_sal): Delete function.
9227 * mips-tdep.c (skip_prologue_using_sal): Delete function.
9228 * rs6000-tdep.c (refine_prologue_limit): Mention
9229 skip_prologue_using_sal.
9230 * ia64-tdep.c (refine_prologue_limit): Ditto.
9231 * Makefile.in: Update dependencies.
9232
9233 2004-02-16 Andrew Cagney <cagney@redhat.com>
9234
9235 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
9236 START_INFERIOR_TRAPS_EXPECTED.
9237 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
9238 START_INFERIOR_TRAPS_EXPECTED.
9239 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
9240 Delete macro.
9241 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
9242 macro, moved to "nm-osf.h". Update copyright.
9243 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
9244 update copyright.
9245
9246 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
9247 and function replacing FRAMELESS_FUNCTION_INVOCATION.
9248 * blockframe.c (legacy_frameless_look_for_prologue): Rename
9249 frameless_look_for_prologue.
9250 * frame.h (legacy_frameless_look_for_prologue): Rename
9251 frameless_look_for_prologue.
9252 * gdbarch.h, gdbarch.c: Re-generate.
9253 * sh64-tdep.c (sh64_gdbarch_init): Update.
9254 * sh-tdep.c (sh_gdbarch_init): Update.
9255 * s390-tdep.c (s390_gdbarch_init): Update.
9256 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9257 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9258 * m68k-tdep.c (m68k_gdbarch_init): Update.
9259 (delta68_frame_args_address): Update.
9260 * m32r-tdep.c (m32r_gdbarch_init): Update.
9261 * hppa-tdep.c (hppa_gdbarch_init): Update.
9262 * h8300-tdep.c (h8300_gdbarch_init): Update.
9263 * frv-tdep.c (frv_gdbarch_init): Update.
9264 (frv_frameless_function_invocation): Update.
9265 * cris-tdep.c (cris_gdbarch_init): Update.
9266 (cris_frameless_function_invocation): Update.
9267 * avr-tdep.c (avr_gdbarch_init): Update.
9268 * arm-tdep.c (arm_gdbarch_init): Update.
9269 * stack.c (frame_info): Update, call predicate.
9270 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
9271 * frame.c (legacy_get_prev_frame): Update, call predicate..
9272 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
9273 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
9274 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
9275 invocation.
9276 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9277 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9278 * vax-tdep.c (vax_gdbarch_init): Ditto.
9279
9280 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
9281 function.
9282
9283 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
9284
9285 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
9286 initializations.
9287
9288 2004-02-16 Andrew Cagney <cagney@redhat.com>
9289
9290 * tui/tui-windata.c: Include "gdb_string.h".
9291 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
9292 * tui/tui-layout.c, tui/tui-command.c: Ditto.
9293 * Makefile.in: Update dependencies.
9294
9295 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
9296
9297 * Makefile.in (infrun.o): Add $(gdb_assert_h).
9298 * infrun.c: Include "gdb_assert.h".
9299 (singlestep_ptid, saved_singlestep_ptid)
9300 (stepping_past_singlestep_breakpoint): New variables.
9301 (resume): Set singlestep_ptid. Check for singlestep thread
9302 hop.
9303 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
9304 (handle_inferior_event): Handle singlestep thread hop.
9305
9306 2004-02-16 Andrew Cagney <cagney@redhat.com>
9307
9308 * dwarf2-frame.c (dwarf2_frame_ops): New function.
9309 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
9310 (dwarf2_frame_init_reg): Ditto.
9311
9312 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
9313 suggested by Joshua Neuheisel
9314
9315 * configure.in: Always check for curses, including pdcurses.
9316 Warn, instead of error, when no curses are found. Enable TUI when
9317 curses is available.
9318 * configure: Re-generate.
9319
9320 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9321
9322 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
9323 sh_sh4_register_convert_to_virtual.
9324 (sh_register_convert_to_raw): Rename from
9325 sh_sh4_register_convert_to_raw.
9326 (sh_pseudo_register_read): Accomodate above name change.
9327 (sh_pseudo_register_write): Ditto.
9328
9329 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9330
9331 * sh-tdep.c (sh_generic_register_name): Remove.
9332 (sh_gdbarch_init): Use sh_sh_register_name in default case.
9333
9334 2004-02-15 Andrew Cagney <cagney@redhat.com>
9335
9336 * configure.in (build_warnings): Add -Wunused-function.
9337 * configure: Re-generate.
9338
9339 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9340 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9341
9342 * procfs.c (procfs_init_inferior): Assume that
9343 START_INFERIOR_TRAPS_EXPECTED is defined.
9344 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9345 * config/ns32k/tm-nbsd.h: Delete file,
9346 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9347
9348 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9349 * config/vax/tm-vax.h: Delete file.
9350
9351 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9352 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9353 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9354 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9355 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
9356 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9357 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
9358
9359 2004-02-15 Mark Kettenis <kettenis@gnu.org>
9360
9361 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9362 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9363 (struct dwarf2_frame_ops): New.
9364 (dwarf2_frame_default_init_reg): New function, based on
9365 dwarf2_frame_init_reg.
9366 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9367 (dwarf2_frame_init_reg): Call architecture-specific function.
9368 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9369 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9370 instead of dwarf2_frame_data.
9371 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9372 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9373
9374 2004-02-15 Andrew Cagney <cagney@redhat.com>
9375
9376 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9377 register_gdbarch_swap.
9378 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9379 * f-lang.c (_initialize_f_language): Update, use
9380 DEPRECATED_REGISTER_GDBARCH_SWAP.
9381 * remote.c (_initialize_remote): Ditto.
9382 * regcache.c (_initialize_regcache): Ditto.
9383 * parse.c (_initialize_parse): Ditto.
9384 * infrun.c (_initialize_infrun): Ditto.
9385 * mi/mi-main.c (_initialize_mi_main): Ditto.
9386 * gdbtypes.c (_initialize_gdbtypes): Ditto.
9387
9388 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9389 poking .cacheable directly.
9390 * symfile.c (symfile_bfd_open): Ditto.
9391
9392 * Makefile.in: Update all dependencies.
9393
9394 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9395 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9396 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9397 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9398 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
9399
9400 2004-02-14 Andrew Cagney <cagney@redhat.com>
9401
9402 * arch-utils.c (legacy_convert_register_p): Check
9403 DEPRECATED_REGISTER_CONVERTIBLE_P.
9404 * findvar.c (value_of_register): Ditto.
9405
9406 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9407 * gdbarch.h, gdbarch.c: Re-generate.
9408 * arch-utils.c (deprecated_register_convertible_not): Delete.
9409 * arch-utils.h (deprecated_register_convertible_not): Delete.
9410 * mi/mi-main.c (get_register): Update. Update copyright.
9411 * infcmd.c (default_print_registers_info): Update.
9412
9413 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9414 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9415 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
9416 * gdbarch.h, gdbarch.c: Re-generate.
9417 * frame.c (deprecated_get_next_frame_hack): Delete function.
9418 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9419 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9420 Update.
9421 * infcall.c (call_function_by_hand): Update.
9422
9423 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
9424
9425 * symfile.c (init_entry_point_info, entry_point_address): Move
9426 from here...
9427 * objfiles.c (init_entry_point_info, entry_point_address):..to
9428 here.
9429 * symfile.h (init_entry_point_info, entry_point_address): Remove
9430 prototypes.
9431 * objfiles.h (init_entry_point_info, entry_point_address):Add
9432 prototypes.
9433 * cris-tdep.c: Remove include of symfile.h. Add include of
9434 objfiles.h.
9435 * infcall.c: Ditto.
9436 * mcore-tdep.c: Ditto.
9437 * mn10300-tdep.c: Ditto.
9438 * sh64-tdep.c: Ditto.
9439 * v850-tdep.c: Ditto.
9440 * arm-tdep.c: Remove include of symfile.h.
9441 * blockframe.c: Ditto.
9442 * coffread.c: Ditto.
9443 * dbxread.c: Ditto.
9444 * dwarf2read.c: Ditto.
9445 * dwarfread.c: Ditto.
9446 * frv-tdep.c: Ditto.
9447 * ia64-tdep.c: Ditto.
9448 * mdebugread.c: Ditto.
9449 * mipsread.c: Ditto.
9450 * rs6000-tdep.c: Ditto.
9451 * s390-tdep.c: Ditto.
9452 * sh-tdep.c: Ditto.
9453 * xstormy16-tdep.c: Ditto.
9454 * gdbarch.sh: Remove include of symfile.h.
9455 * gdbarch.c: Regenerate.
9456 * solib-irix.c (enable_break): Use entry_point_address().
9457 Add comment about include file.
9458 * xcoffread.c: Add comment about include file.
9459 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9460 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9461 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9462 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9463 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9464
9465 2004-02-13 Andrew Cagney <cagney@redhat.com>
9466
9467 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9468 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9469 copyright.
9470 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9471
9472 2004-02-12 Fred Fish <fnf@redhat.com>
9473
9474 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9475 set_gdbarch_store_return_value.
9476
9477 2004-02-12 Andrew Cagney <cagney@redhat.com>
9478
9479 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9480 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9481 (interrupt_query): Ditto.
9482 (ofunc): Delete unused variable.
9483 * cris-tdep.c (cris_abi): Delete unused function.
9484 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9485 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9486 (cris_get_asr_quick_shift_steps): Ditto.
9487 (cris_skip_prologue_frameless_p): Ditto.
9488 * arm-tdep.c (arm_push_return_address): Delete unused function.
9489 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9490 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9491 * s390-tdep.c (s390_function_start): Delete unused function.
9492
9493 2004-02-12 Andrew Cagney <cagney@redhat.com>
9494
9495 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9496 gdbarch.h, gdbarch.c: Re-generate.
9497 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9498 to generic_prologue_frameless_p.
9499 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9500 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9501
9502 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
9503
9504 * mips-linux-tdep.c: Include "frame.h".
9505 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9506 (mips_linux_skip_resolver): New functions.
9507 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9508 and set_gdbarch_in_solib_call_trampoline.
9509 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9510 to after set_gdbarch_in_solib_return_trampoline. Only set the
9511 solib hooks to mips16 functions if the OS ABI is unknown.
9512 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9513 including "config/tm-linux.h".
9514 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9515 * Makefile.in (mips-linux-tdep.o): Update.
9516
9517 2004-02-11 David Carlton <carlton@kealia.com>
9518
9519 * linespec.c (decode_compound): Only look for a class symbol when
9520 considering all but the rightmost component.
9521
9522 2004-02-11 Andrew Cagney <cagney@redhat.com>
9523
9524 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9525 abi code are are separatly grouped.
9526
9527 2004-02-11 Andrew Cagney <cagney@redhat.com>
9528
9529 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9530 * gdbarch.h, gdbarch.c: Re-generate.
9531 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9532 * v850-tdep.c (v850_gdbarch_init): Update.
9533 * sh64-tdep.c (sh64_gdbarch_init): Update.
9534 * sh-tdep.c (sh_gdbarch_init): Update.
9535 * s390-tdep.c (s390_gdbarch_init): Update.
9536 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9537 * mips-tdep.c (mips_gdbarch_init): Update.
9538 * mcore-tdep.c (mcore_gdbarch_init): Update.
9539 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9540 * m32r-tdep.c (m32r_gdbarch_init): Update.
9541 * ia64-tdep.c (ia64_gdbarch_init): Update.
9542 * hppa-tdep.c (hppa_gdbarch_init): Update.
9543 * h8300-tdep.c (h8300_gdbarch_init): Update.
9544 * frv-tdep.c (frv_gdbarch_init): Update.
9545 * d10v-tdep.c (d10v_gdbarch_init): Update.
9546 * cris-tdep.c (cris_gdbarch_init): Update.
9547 * avr-tdep.c (avr_gdbarch_init): Update.
9548 * arm-tdep.c (arm_gdbarch_init): Update.
9549 * alpha-tdep.c (alpha_gdbarch_init): Update.
9550
9551 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
9552
9553 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9554 comma.
9555 (sh_sh4al_dsp_register_name): Ditto.
9556
9557 2004-02-10 Andrew Cagney <cagney@redhat.com>
9558
9559 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9560 (mips_init_frame_pc_first): Delete function.
9561 (mips_frame_saved_pc): Delete function.
9562 (mips_frame_chain): Delete function.
9563 (mips_init_extra_frame_info): Delete function.
9564 (mips_xfer_register): Delete unused variable "reg".
9565 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9566 (mips_n32n64_return_value): Delete unused variable "reg".
9567 (mips_n32n64_return_value): Delete unused variable "pos".
9568 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9569 (mips_o32_return_value): Delete unused variable "pos".
9570 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9571 (mips_print_fp_register): Delete unused variable "namelen"
9572 (mips_print_fp_register): Delete unused variable "flt2"
9573 (get_frame_pointer): Delete function.
9574 (cached_proc_desc): Delete static variable.
9575 (mips_pop_frame): Delete function.
9576 (mips_find_saved_regs): Delete function.
9577 (mips_get_saved_register): Delete function.
9578 (mips_saved_pc_after_call): Delete function.
9579 (SIGFRAME_BASE): Delete macro.
9580 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9581 (SIGFRAME_PC_OFF): Delete macro.
9582 (SIGFRAME_REGSAVE_OFF): Delete macro.
9583 (mips_dump_tdep): Do not print deleted macro definitions.
9584
9585 2004-02-10 Andrew Cagney <cagney@redhat.com>
9586
9587 * Makefile.in (SFILES): Remove explictly listed tui files.
9588 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9589
9590 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
9591
9592 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9593 to use paddr functions to format ia64 addresses and long values.
9594 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9595 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9596 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9597 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9598 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9599
9600 2004-02-10 Andrew Cagney <cagney@redhat.com>
9601
9602 * defs.h: Do not include "tui.h".
9603 * gdb_curses.h: New file.
9604 * tui/tui-hooks.h: New file.
9605 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9606 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9607 (tui_initialize_io): Delete declaration.
9608 (tui_initialize_readline: Delete redundant declaration.
9609 (struct tui_point): Delete definition.
9610 * tui/tui-data.h (struct tui_point): Define.
9611 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9612 * utils.c: Include "tui/tui.h".
9613 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9614 * printcmd.c [TUI]: Include "tui/tui.h".
9615 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9616 * tui/tui-command.c: Include "gdb_curses.h".
9617 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9618 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9619 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9620 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9621 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9622 * Makefile.in: Update all dependencies.
9623 (tui_hooks_h, gdb_curses_h): Define.
9624 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9625
9626 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
9627
9628 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9629 auxf2. Add comments about some other rarely used fields.
9630
9631 2004-02-10 Andrew Cagney <cagney@redhat.com>
9632
9633 * Makefile.in (init.c): Fix script removing duplicates. Problem
9634 reported by Peter Schauer.
9635
9636 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9637
9638 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9639 obstack_specify_allocation.
9640 * objfiles.c (allocate_objfile): Ditto.
9641 * solib-sunos.c (solib_add_common_symbols)
9642 (allocate_rt_common_objfile): Ditto.
9643 * symfile.c (reread_symbols): Ditto.
9644 * gdb_obstack.h: Add comment.
9645
9646 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9647
9648 * linespec.c (decode_line_1, locate_first_half)
9649 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9650 commented out code.
9651
9652 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
9653
9654 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9655 obstack_free.
9656
9657 2004-02-09 Andrew Cagney <cagney@redhat.com>
9658
9659 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9660 fails, try find_pc_section. Fix PR c++/1267.
9661 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9662 instead of find_pc_mapped_section.
9663 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9664 not default to the section containing PC. Fix PR symtab/1519.
9665
9666 2004-02-09 Andrew Cagney <cagney@redhat.com>
9667
9668 * Makefile.in (mips-tdep.o): Update dependencies.
9669 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9670 "trad-frame.h".
9671 (mips_unwind_pc): Return the pseudo PC register.
9672 (mips_unwind_dummy_id): New function.
9673 (mips16_fetch_instruction): New function.
9674 (mips32_fetch_instruction): New function.
9675 (struct mips_frame_cache): Define.
9676 (mips_mdebug_frame_cache): New function.
9677 (mips_mdebug_frame_this_id): New function.
9678 (mips_mdebug_frame_prev_register): New function.
9679 (mips_mdebug_frame_unwind): Define.
9680 (mips_mdebug_frame_sniffer): New function.
9681 (mips_mdebug_frame_base_address): New function.
9682 (mips_mdebug_frame_base): Define.
9683 (mips_mdebug_frame_base_sniffer): New function.
9684 (mips_gdbarch_init): Append unwind and base sniffers. Set
9685 unwind_dummy_id.
9686
9687 2004-02-08 Andrew Cagney <cagney@redhat.com>
9688
9689 * frame.c: Print both the register number and name.
9690
9691 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9692 and a sed into a single sed. Make .c and .o patterns more robust.
9693 (OBS): Delete.
9694 (INIT_FILES): Replace OBS with COMMON_OBS.
9695 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9696
9697 2004-02-08 Mark Kettenis <kettenis@gnu.org>
9698
9699 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9700 the PT_WCOOKIE request.
9701
9702 2004-02-08 Andrew Cagney <cagney@redhat.com>
9703
9704 * mips-tdep.c (mips_unwind_pc): New function.
9705 (mips_gdbarch_init): Set mips_unwind_pc.
9706
9707 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9708 (get_frame_id): Allow the UNKNOWN_FRAME.
9709 (frame_register_unwind, get_frame_type): Ditto.
9710
9711 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9712 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9713 unwind_dummy_id indicates a legacy frame.
9714
9715 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9716 * configure: Re-generate.
9717
9718 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9719 methods.
9720
9721 2004-02-08 Andrew Cagney <cagney@redhat.com>
9722
9723 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9724 makefile macro.
9725 * configure: Re-generate.
9726 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9727 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9728 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9729 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9730 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9731 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9732 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9733 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9734 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9735 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9736
9737 2004-02-07 Andrew Cagney <cagney@redhat.com>
9738
9739 * Makefile.in: Update all dependencies.
9740
9741 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9742 * configure: Re-generate.
9743 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9744 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9745 (COMMON_OBS): Add "main.o" and "annotate.o".
9746 (ANNOTATE_OBS): Delete.
9747 (OBS): Remove ANNOTATE_OBS.
9748 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9749 CONFIG_INITS.
9750 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9751 against CONFIG_OBS and "main.o".
9752 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9753 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9754
9755 * tui/tui-command.c: Include "gdb_string.h", delete register
9756 attribute, use ISO-C function signatures.
9757 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9758 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9759 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9760 * tui/tui.c: Ditto.
9761
9762 * tui/tui-command.c: Change variable and function names to lower
9763 case.
9764 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9765 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9766 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9767 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9768 * tui/tui-winsource.c, tui/tui.c: Ditto.
9769
9770 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9771
9772 * buildsym.c (free_pending_blocks, finish_block)
9773 (record_pending_block, make_blockvector, end_symtab): Replace
9774 symbol_obstack with objfile_obstack.
9775 * coffread.c (process_coff_symbol, coff_read_struct_type)
9776 (coff_read_enum_type): Ditto.
9777 * cp-namespace.c (initialize_namespace_symtab)
9778 (check_one_possible_namespace_symbol): Ditto.
9779 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
9780 (dwarf2_symbol_mark_computed): Ditto.
9781 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9782 * elfread.c (elf_symtab_read): Ditto.
9783 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9784 (hpread_read_enum_type, hpread_read_function_type)
9785 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9786 Ditto.
9787 * jv-lang.c (get_java_class_symtab, add_class_symbol)
9788 (java_link_class_type): Ditto.
9789 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
9790 (new_symbol): Ditto.
9791 * minsyms.c (install_minimal_symbols): Ditto.
9792 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9793 (terminate_minimal_symbol_table): Replace symbol_obstack with
9794 objfile_obstack.
9795 (free_objfile): Remove freeing of symbol_obstack.
9796 * objfiles.h: Remove symbol_obstack field.
9797 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9798 objfile_obstack.
9799 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9800 symbol_obstack.
9801 (solib_add_common_symbols): Replace symbol_obstack with
9802 objfile_obstack.
9803 * somsolib.c (som_solib_add): Ditto.
9804 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9805 (common_block_start, common_block_end): Ditto.
9806 * symfile.c (reread_symbols): Remove freeing and init of
9807 symbol_obstack.
9808 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9809 * symfile.h: Update comment.
9810 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9811 stats printing.
9812 * symtab.c (symbol_set_names): Replace symbol_obstack with
9813 objfile_obstack.
9814 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9815 Update comments.
9816 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9817 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9818 objfile_obstack.
9819
9820 2004-02-07 Andrew Cagney <cagney@redhat.com>
9821
9822 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9823 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9824 fields and variables.
9825 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9826 (m_beInvisible): Delete macro.
9827 * tui/tui-data.h: Fix case case fields and variables.
9828 (m_genWinPtrIsNull): Delete macro.
9829 (tui_win_list): Rename winList.
9830 (TUI_SRC_WIN): Rename srcWin.
9831 (TUI_DISASM_WIN): Rename disassemWin.
9832 (TUI_DATA_WIN): Rename dataWin.
9833 (TUI_CMD_WIN): Rename cmdWin.
9834 (m_genWinPtrNotNull): Delete macro.
9835 (m_winPtrIsNull): Delete macro.
9836 (m_winPtrNotNull): Delete macro.
9837 (tui_win_is_source_type): Replace m_winIsSourceType
9838 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9839 (tui_win_has_locator): Replace m_hasLocator.
9840 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9841 m_setWinHighlightOff.
9842 * tui/tui-data.c: Update references.
9843 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9844 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9845 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9846 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9847 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9848 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9849 * tui/tui-winsource.c, tui/tui.c: Ditto.
9850
9851 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9852
9853 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9854 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9855 StackGhost.
9856
9857 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9858 variable `i6' to `i7'.
9859 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9860
9861 2004-02-07 Andrew Cagney <cagney@redhat.com>
9862
9863 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9864 (TuiPoint, TuiPointPtr): Ditto.
9865 (TuiStatus, TuiStatusPtr): Ditto.
9866 (TuiWinType, TuiWinTypePtr): Ditto.
9867 (struct tui_point): Rename _TuiPoint.
9868 (tui_get_low_disassembly_address): Rename
9869 tuiGetLowDisassemblyAddress.
9870 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9871 (tuiFree): Delete declaration.
9872 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9873 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9874 * tui/tui.c (tuiFree): Delete function.
9875 * cli/cli-cmds.c (disassemble_command): Update references.
9876 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9877 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9878 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9879 * tui/tui-winsource.c: Ditto.
9880
9881 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9882
9883 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9884 coffstab_build_psymtabs, elfstab_build_psymtabs)
9885 (stabsect_build_psymtabs): Replace psymbol_obstack with
9886 objfile_obstack.
9887 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9888 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9889 Ditto.
9890 * dwarfread.c (scan_compilation_units): Ditto.
9891 * elfread.c (elfstab_offset_sections): Ditto.
9892 * hppa-tdep.c (read_unwind_info): Ditto.
9893 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9894 (hpread_end_psymtab): Ditto.
9895 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9896 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9897 Ditto.
9898 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
9899 * objfiles.c (add_to_objfile_sections)
9900 (build_objfile_section_table): Ditto.
9901 (allocate_objfile): Remove init of psymbol_obstack.
9902 (free_objfile): Remove freeing of psymbol_obstack.
9903 * objfiles.h (struct objfile): Remove field
9904 psymbol_obstack. Update comments.
9905 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9906 psymbol_obstack with objfile_obstack.
9907 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9908 psymbol_obstack.
9909 * somread.c (som_symfile_offsets, init_import_symbols)
9910 (init_export_symbols): Replace psymbol_obstack with
9911 objfile_obstack.
9912 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9913 * symfile.c (default_symfile_offsets, syms_from_objfile)
9914 (reread_symbols): Remove freeing and init of psymbol_obstack.
9915 (cashier_psymtab): Update comment.
9916 * symmisc.c (print_objfile_statistics): Don't report stats for
9917 psymbol obstack.
9918 * symtab.h (struct general_symbol_info, struct partial_symtab):
9919 Update comments.
9920 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9921 (xcoff_symfile_offsets): Replace psymbol_obstack with
9922 objfile_obstack.
9923
9924 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9925
9926 * objfiles.h (struct objfile): Add objfile_obstack field.
9927 Remove type_obstack field.
9928
9929 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9930 read_structure_scope read_enumeration, new_symbol): Replace
9931 type_obstack with objfile_obstack.
9932 * dwarfread.c (struct_type, enum_type): Ditto.
9933 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
9934 (lookup_fundamental_type): Ditto.
9935 * gdbtypes.h (TYPE_ALLOC): Ditto.
9936 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9937 (hpread_read_doc_function_type, hpread_read_struct_type)
9938 (fix_static_member_physnames, hpread_read_array_type)
9939 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
9940 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
9941 (java_link_class_type): Ditto.
9942 * mdebugread.c (parse_type): Ditto.
9943 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9944 * solib-sunos.c (solib_add_common_symbols): Ditto.
9945 * stabsread.c (define_symbol, read_type, read_member_functions,
9946 read_cpp_abbrev, read_one_struct_field): Ditto.
9947 * symfile.c (reread_symbols): Ditto.
9948 * symmisc.c (print_objfile_statistics): Ditto.
9949
9950 2004-02-07 Andrew Cagney <cagney@redhat.com>
9951
9952 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9953 (tui_exec_info_content): Rename TuiExecInfoContent.
9954 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9955 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9956 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9957 (TuiList, TuiListPtr): Ditto.
9958 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9959 (TuiDataType, TuiDataTypePtr): Ditto.
9960 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9961 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9962 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9963 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9964 (TuiDataElement, TuiDataElementPtr): Ditto.
9965 (TuiWinElement, TuiWinElementPtr): Ditto.
9966 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9967 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9968 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9969 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9970 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9971 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9972 * tui/tui-command.c, tui/tui-data.c: Update references.
9973 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9974 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9975 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9976 * tui/tui-winsource.c, tui/tui.c: Ditto.
9977
9978 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9979
9980 * dwarf2-frame.h: Update copyright.
9981 (enum dwarf2_frame_reg_rule): New.
9982 (struct dwarf2_frame_state_reg): New.
9983 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9984 * dwarf2-frame.c: Update copyright.
9985 (enum dwarf2_reg_rule): Remove.
9986 (struct dwarf2_frame_state): Remove defenition of `struct
9987 dwarf2_frame_state_reg'.
9988 (read_reg): Call get_frame_arch to get the architecture instead of
9989 using CURRENT_GDBARCH.
9990 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9991 DWARF2_FRAME_.
9992 (dwarf2_frame_init_reg): New function.
9993 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9994 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9995 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9996 tags with DWARF2_FRAME_.
9997 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9998 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9999 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10000
10001 2004-02-06 Andrew Cagney <cagney@redhat.com>
10002
10003 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10004 (enum tui_data_type): Rename _TuiDataType.
10005 (struct tui_layout_def): Rename _TuiLayoutDef.
10006 (struct tui_source_element): Rename _TuiSourceElement.
10007 (struct tui_data_element): Rename _TuiDataElement.
10008 (struct tui_command_element): Rename _TuiCommandElement.
10009 (struct tui_locator_element): Rename _TuiLocatorElement.
10010 (union tui_which_element): Define.
10011 (struct tui_win_element): Rename _TuiWinElement.
10012 (struct tui_data_info): Rename _TuiDataInfo.
10013 (struct tui_source_info): Rename _TuiSourceInfo.
10014 (struct tui_command_info): Rename _TuiCommandInfo.
10015 (tui_initialize_static_data): Rename initializeStaticData.
10016 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10017 (tui_alloc_win_info): Rename allocWinInfo.
10018 (tui_init_generic_part): Rename initGenericPart.
10019 (tui_init_win_info): Rename initWinInfo.
10020 (tui_alloc_content): Rename allocContent.
10021 (tui_add_content_elements): Rename addContentElements.
10022 (tui_init_content_element): Rename initContentElement.
10023 (tui_free_window): Rename freeWindow.
10024 (tui_free_win_content): Rename freeWinContent.
10025 (tui_free_data_content): Rename freeDataContent.
10026 (tui_free_all_source_wins_content): Rename
10027 freeAllSourceWinsContent.
10028 (tui_del_window): Rename tuiDelWindow.
10029 (tui_del_data_windows): Rename tuiDelDataWindows.
10030 (tui_partial_win_by_name): Rename partialWinByName.
10031 (tui_win_name): Rename winName.
10032 (tui_current_layout): Rename currentLayout.
10033 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10034 (tui_term_height): Rename termHeight.
10035 (tui_set_term_height_to): Rename setTermHeightTo.
10036 (tui_term_width): Rename termWidth.
10037 (tui_set_term_width_to): Rename setTermWidthTo.
10038 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10039 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10040 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10041 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10042 (tui_source_windows): Rename sourceWindows.
10043 (tui_clear_source_windows): Rename clearSourceWindows.
10044 (tui_clear_source_windows_detail): Rename
10045 clearSourceWindowsDetail.
10046 (tui_clear_win_detail): Rename clearWinDetail.
10047 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10048 (tui_default_tab_len): Rename tuiDefaultTabLen.
10049 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10050 (tui_win_with_focus): Rename tuiWinWithFocus.
10051 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10052 (tui_layout_def): Rename tuiLayoutDef.
10053 (tui_win_resized): Rename tuiWinResized.
10054 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10055 (tui_next_win): Rename tuiNextWin.
10056 (tui_prev_win): Rename tuiPrevWin.
10057 (tui_add_to_source_windows): Rename addToSourceWindows.
10058 * tui/tui-winsource.c, tui/tui-win.c: Update references.
10059 * tui/tui-layout.c, tui/tui-source.c: Ditto.
10060 * tui/tui-stack.c, tui/tui-io.c: Ditto.
10061 * tui/tui.c, tui/tui-data.c: Ditto.
10062 * tui/tui-interp.c, tui/tui-data.c: Ditto.
10063 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
10064
10065 * tui/tui-source.h: Update copyright. Include "tui-data.h".
10066 (struct symtab): Declare.
10067 (tui_set_source_content): Rename tuiSetSourceContent.
10068 (tui_show_symtab_source): Rename tuiShowSource.
10069 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
10070 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
10071 * tui/tui-source.c: Update copyright. Update references.
10072 * tui/tui-win.c, tui/tui-winsource.c: Update references.
10073 * tui/tui-stack.c: Update references.
10074
10075 * tui/tui-win.h: Update copyright. Include "tui-data.h".
10076 (struct tui_win_info): Declare.
10077 (tui_scroll_forward): Rename tuiScrollForward.
10078 (tui_scroll_backward): Rename tuiScrollBackward.
10079 (tui_scroll_left): Rename tuiScrollLeft.
10080 (tui_scroll_right): Rename tuiScrollRight.
10081 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
10082 (tui_resize_all): Rename tuiResizeAll.
10083 (tui_refresh_all_win): Rename tuiRefreshAll.
10084 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
10085 * tui/tui-layout.c, * tui/tui-io.c: Update references.
10086 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
10087 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
10088
10089 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
10090 (tui_erase_data_content): Rename tuiEraseDataContent.
10091 (tui_display_all_data): Rename tuiDisplayAllData.
10092 (tui_check_data_values): Rename tuiCheckDataValues.
10093 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
10094 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
10095 (tui_first_data_element_no_in_line): Rename
10096 tuiFirstDataElementNoInLine.
10097 (tui_delete_data_content_windows): Rename
10098 tuiDeleteDataContentWindows.
10099 (tui_refresh_data_win): Rename tuiRefreshDataWin.
10100 (tui_display_data_from): Rename tuiDisplayDataFrom.
10101 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
10102 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
10103 * tui/tui-win.c, tui/tui-regs.c: Update references.
10104 * tui/tui-layout.c, tui/tui.c: Update references.
10105
10106 * tui/tui-wingeneral.h: Update copyright.
10107 (m_allBeVisible): Delete macro.
10108 (m_allBeInvisible): Delete macro.
10109 (struct tui_gen_win_info): Declare.
10110 (struct tui_win_info): Declare.
10111 (tui_unhighlight_win): Rename unhighlightWin.
10112 (tui_make_visible, tui_make_invisible): Replace makeVisible.
10113 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
10114 (tui_make_window): Rename makeWindow.
10115 (tui_copy_win): Rename copyWin.
10116 (tui_box_win): Rename boxWin.
10117 (tui_highlight_win): Rename highlightWin.
10118 (tui_check_and_display_highlight_if_needed): Rename
10119 checkAndDisplayHighlightIfNeeded.
10120 (tui_refresh_all): Rename refreshAll.
10121 (tui_delete_win): Rename tuiDelwin.
10122 (tui_refresh_win): Rename tuiRefreshWin.
10123 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
10124 (tui_make_visible, tui_make_invisible): New functions.
10125 (tui_make_all_visible, tui_make_all_invisible): New functions.
10126 (make_all_visible): Rename makeAllVisible.
10127 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
10128 * tui/tui-data.c, tui/tui-winsource.c: Update references.
10129 * tui/tui-windata.c, tui/tui-win.c: Update references.
10130 * tui/tui-regs.c, tui/tui-layout.c: Update references.
10131 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
10132
10133 2004-02-06 Mark Kettenis <kettenis@gnu.org>
10134
10135 * proc-api.c (write_with_trace): Initialize local variable to
10136 silence compiler warning.
10137
10138 2004-02-06 Andrew Cagney <cagney@redhat.com>
10139
10140 * tui/tui-source.h: Do not include "defs.h".
10141 (struct tui_win_info): Declare.
10142 (tui_set_source_content_nil): Declare.
10143 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10144 (union tui_line_or_address): Rename _TuiLineOrAddress.
10145 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10146 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10147 (tui_update_source_window_as_is): Rename
10148 tuiUpdateSourceWindowAsIs.
10149 (tui_update_source_windows_with_addr): Rename
10150 tuiUpdateSourceWindowsWithAddr.
10151 (tui_update_source_windows_with_line): Rename
10152 tuiUpdateSourceWindowsWithLine.
10153 (tui_clear_source_content): Rename tuiClearSourceContent.
10154 (tui_erase_source_content): Rename tuiEraseSourceContent.
10155 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10156 (tui_show_source_content): Rename tuiShowSourceContent.
10157 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10158 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10159 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10160 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10161 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10162 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10163 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10164 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10165 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10166 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10167 (struct tui_win_info): Declare.
10168 * tui/tui-stack.c: Update references.
10169 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10170 * tui/tui-win.c, tui/tui-source.c: Ditto.
10171 * tui/tui.c, tui/tui-disasm.c: Ditto.
10172
10173 2004-02-06 Mark Kettenis <kettenis@gnu.org>
10174
10175 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10176 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10177
10178 2004-02-05 Mark Kettenis <kettenis@gnu.org>
10179
10180 * infrun.c (handle_inferior_event): Allow for breakpoint
10181 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10182 and SIGEMT. Update comments.
10183 * NEWS (Revised SPARC target): Mention support for non-executable
10184 stack.
10185
10186 2004-02-04 Mark Kettenis <kettenis@gnu.org>
10187
10188 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10189 * inftarg.c: Update copyright year.
10190 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10191 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10192 (sparc_xfer_wcookie): New function.
10193 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10194 * Makefile.in (sparc-nat.o): Update dependencies.
10195 * config/sparc/nm-nbsd.h: Include "target.h".
10196 (NATIVE_XFER_WCOOKIE): New define.
10197 (sparc_xfer_wcookie): New prototype.
10198
10199 2004-02-04 Andrew Cagney <cagney@redhat.com>
10200
10201 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
10202 SYSCALL_TRAP function.
10203 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
10204
10205 2004-02-04 Andrew Cagney <cagney@redhat.com>
10206 Daniel Jacobowitz <drow@mvista.com>
10207
10208 * objfiles.h: Delete comments refering to inside_entry_func and
10209 DEPRECATED_FRAME_CHAIN_VALID.
10210 * defs.h (inside_entry_func): Update prototype..
10211 * blockframe.c (inside_entry_func): Rename to
10212 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
10213 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
10214
10215 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
10216
10217 * breakpoint.c (struct captured_parse_breakpoint_args): Move
10218 outside of #ifdef SOLIB_ADD region.
10219 (do_restore_lang_radix_cleanup): Ditto.
10220 (resolve_pending_breakpoint): Ditto.
10221
10222 2004-02-03 Andrew Cagney <cagney@redhat.com>
10223
10224 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
10225 (process_note_abi_tag_sections): Delete unused function.
10226 (ia64_read_fp): Delete unused function.
10227 (gdbarch_extract_struct_value_address): Delete declaration.
10228
10229 2004-02-02 Andrew Cagney <cagney@redhat.com>
10230
10231 * vax-tdep.c (vax_frame_chain): Delete call to
10232 deprecated_inside_entry_file.
10233 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
10234
10235 2004-02-02 Mark Kettenis <kettenis@gnu.org>
10236
10237 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
10238 column that's "empty" or "same value" when eliminating REG_RA
10239 rules.
10240
10241 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10242
10243 * NEWS: Add information about new pending breakpoint support.
10244
10245 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10246
10247 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
10248 and pending fields for pending breakpoint support.
10249 * breakpoint.c (breakpoint_enabled): Add check for not pending.
10250 (condition_command): Only parse condition if not a pending
10251 breakpoint.
10252 (print_one_breakpoint): Add support for pending breakpoints.
10253 (describe_other_breakpoints): Add checks to verify we are not
10254 dealing with pending breakpoints.
10255 (check_duplicates): Don't check pending breakpoints.
10256 (set_raw_breakpoint): Initialize pending flag.
10257 (do_restore_lang_radix_cleanup): New cleanup routine.
10258 (resolve_pending_breakpoint): New function.
10259 (re_enable_breakpoints_in_shlibs): Try and resolve any
10260 pending breakpoints via resolve_pending_breakpoint.
10261 (mention): Add pending breakpoint support.
10262 (parse_breakpoint_sals): Add new parameter to pass to
10263 decode_line_1 to indicate silent errors when files or functions
10264 are not found. Change all callers.
10265 (do_captured_parse_breakpoint): New function.
10266 (break_command_1): Change prototype to return an rc value and to
10267 take an optional pending breakpoint pointer. Support creating
10268 a pending breakpoint if a "not found" form of error occurs when
10269 parsing the breakpoint. Also support resolving an existing pending
10270 breakpoint and be silent if the resolution fails.
10271 (create_breakpoints): Change prototype to take pending breakpoint
10272 pointer. When resolving a pending breakpoint, use the new pointer
10273 to provide a conditional or commands added by the end-user.
10274 (delete_breakpoint): Add appropriate check for pending.
10275 (breakpoint_re_set_one): Ditto.
10276 (do_enable_breakpoint): Ditto.
10277
10278 2004-02-02 David Carlton <carlton@kealia.com>
10279
10280 * valops.c (enum oload_classification): New.
10281 (find_overload_match): Break implementation into separate
10282 functions; delete #if 0'd code; look for symbols within
10283 namespaces.
10284 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
10285 (find_oload_champ,oload_method_static,classify_oload_match): New.
10286 * cp-support.h: Add declaration for cp_func_name; update
10287 declaration for make_symbol_overload_list.
10288 * cp-support.c (cp_func_name): New.
10289 (overload_list_add_symbol): Fix comment, use
10290 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
10291 (make_symbol_overload_list): Take a function name and a namespace
10292 instead of a symbol; change implementation.
10293 (make_symbol_overload_list_using): New.
10294 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
10295
10296 2004-02-02 Fred Fish <fnf@redhat.com>
10297
10298 * main.c (gdb_stdtarg): Move definition to group with other
10299 gdb_stdtarg definitions and update copyright years.
10300 * remote-sim.c (gdb_os_write_stderr): Write output to
10301 gdb_stdtargerr stream instead of gdb_stdtarg stream.
10302 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
10303 gdb_stderr stream and update copyright years.
10304
10305 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10306
10307 * Makefile.in (mips-linux-nat.o): Update dependencies.
10308 * mips-linux-nat.c: Include mips-tdep.h.
10309
10310 2004-02-01 Roland McGrath <roland@redhat.com>
10311
10312 * sol-thread.c (sol_thread_xfer_partial): New function.
10313 (init_sol_thread_ops): Use that for to_xfer_partial hook.
10314 (init_sol_core_ops): Likewise.
10315
10316 * procfs.c (procfs_xfer_partial): New function.
10317 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
10318 * Makefile.in (procfs.o): Add $(auxv_h) dep.
10319
10320 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
10321 procfs_xfer_auxv function.
10322
10323 * procfs.c (procfs_make_note_section): If we can read
10324 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
10325 * linux-proc.c (linux_make_note_section): Likewise.
10326
10327 * auxv.h: New file.
10328 * auxv.c: New file.
10329 * Makefile.in (auxv_h): New variable.
10330 (COMMON_OBS): Add auxv.o here.
10331 (auxv.o): New target.
10332
10333 * corelow.c (core_xfer_partial): New function.
10334 (init_core_ops): Use it for core_ops.to_xfer_partial.
10335
10336 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10337 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10338 macro if that is defined.
10339
10340 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10341
10342 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10343 and check the specified thread for each breakpoint.
10344 * breakpoint.h (bpstat_stop_status): Update prototype.
10345 * infrun.c (handle_inferior_event): Update calls to
10346 bpstat_stop_status.
10347
10348 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10349
10350 * Makefile.in (cli-cmds.o): Add $(readline_h).
10351
10352 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10353
10354 * cli/cli-cmds.c: Include readline.h.
10355 (complete_command): Pass the start of the last word to
10356 complete_line.
10357
10358 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10359
10360 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10361 argument, and change first argument to a CORE_ADDR.
10362 * breakpoint.h (bpstat_stop_status): Update prototype.
10363 * infrun.c (adjust_pc_after_break): Add a new comment.
10364 (handle_inferior_event): Update calls to bpstat_stop_status.
10365
10366 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10367
10368 * breakpoint.h: Update copyright years.
10369
10370 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10371
10372 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10373 (bpstat_stop_status): Don't decrement PC.
10374 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10375 prototype.
10376 * infrun.c (adjust_pc_after_break): New function.
10377 (handle_inferior_event): Call it, early. Remove later references
10378 to DECR_PC_AFTER_BREAK.
10379 (normal_stop): Add commentary.
10380
10381 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10382
10383 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10384 2004-01-27 double-free fix.
10385
10386 2004-01-31 Mark Kettenis <kettenis@gnu.org>
10387
10388 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10389 (sparc32_frame_prev_register): Handle StackGhost.
10390 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10391
10392 2004-01-29 Roland McGrath <roland@redhat.com>
10393
10394 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10395 * configure: Regenerated.
10396
10397 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10398 * Makefile.in (procfs.o): Add dep.
10399
10400 2004-01-28 Andrew Cagney <cagney@redhat.com>
10401
10402 * tui/tui-stack.h: Update copyright.
10403 (struct frame_info): Add opaque declaration.
10404 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10405 (tui_show_locator_content): Rename tuiShowLocatorContent.
10406 (tui_show_frame_info): Rename tuiShowFrameInfo.
10407 * tui/tui-stack.c: Update copyright. Update references.
10408 * tui/tui-winsource.c: Update references.
10409 * tui/tui-win.c: Update references.
10410 * tui/tui-layout.c: Update references.
10411 * tui/tui-hooks.c: Update copyright, update references.
10412 * tui/tui.c: Update copyright, update references.
10413 * tui/tui-disasm.c: Update references.
10414
10415 2004-01-28 David Carlton <carlton@kealia.com>
10416
10417 * dwarf2read.c (add_partial_structure): Use demangled name if
10418 namespace equals "".
10419
10420 2004-01-27 Jim Blandy <jimb@redhat.com>
10421
10422 Clean up misapplied patch:
10423 * dwarf2read.c (determine_prefix): Change one of the two forward
10424 declarations for 'determine_prefix_aux' to a declaration for this.
10425 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10426 argument to 'die_specification'.
10427
10428 * dwarf2read.c (read_func_scope): Re-indent comment.
10429
10430 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
10431
10432 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10433 b->exp to NULL after freeing so that error during re-parsing or
10434 evaluation of expressions associated with breakpoint don't
10435 eventually lead to re-freeing of storage.
10436 Committed by Andrew Cagney.
10437
10438 2004-01-27 Andrew Cagney <cagney@redhat.com>
10439
10440 * source.c (ambiguous_line_spec): Delete undefined declaration.
10441 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10442 (m32r_set_server_address, m32r_set_download_path): Ditto.
10443 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10444
10445 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
10446
10447 * dwarf2read.c: Update calls to changed and renamed functions, and
10448 references to moved variables.
10449
10450 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10451 language, language_defn, list_in_scope, and ftypes members.
10452 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10453 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10454 (baseaddr): Remove globals.
10455
10456 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10457 (set_cu_language, die_is_declaration, die_specification)
10458 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10459 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10460 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10461 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10462
10463 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10464 cu.list_in_scope. Don't initialize cu_header_offset.
10465 (add_partial_symbol): Add local baseaddr.
10466 (psymtab_to_symtab_1): Add local baseaddr. Use
10467 objfile->section_offsets for consistency. Don't initialize
10468 cu_header_offset; do initialize cu.header.offset and
10469 cu.list_in_scope.
10470 (read_file_scope, read_func_scope, read_lexical_block_scope)
10471 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10472
10473 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10474
10475 * PROBLEMS: Add gdb/1516.
10476
10477 2003-12-29 Robert Millan <robertmh@gnu.org>
10478
10479 Patch committed by Andrw Cagney.
10480 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10481 * configure.tgt: Match knetbsd*-gnu.
10482
10483 2004-01-26 Andrew Cagney <cagney@redhat.com>
10484
10485 * breakpoint.c (catch_command_1): Delete #ifdef code.
10486 (catch_fork_command_1): Delete #ifdef wrapper.
10487 (catch_exec_command_1): Ditto.
10488 (catch_load_command_1): Ditto.
10489 (catch_unload_command_1): Ditto.
10490
10491 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10492 (catch_breakpoint): Delete #if0ed function.
10493 (disable_catch_breakpoint): Ditto.
10494 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10495 (disable_catch, enable_catch, delete_catch): Ditto.
10496
10497 2004-01-26 Andrew Cagney <cagney@redhat.com>
10498
10499 * remote.c (echo_check, quit_flag): Delete variables.
10500 (cisco_kernel_mode): Delete variable.
10501 (minitelnet_return, tty_input, escape_count): Delete variables.
10502 (remote_cisco_mode): Delete variable.
10503 (remote_cisco_open, remote_cisco_close): Delete function.
10504 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10505 (init_remote_cisco_ops): Delete function.
10506 (_initialize_remote): Do not install "remote cisco" code.
10507 (read_frame): Delete cisco specific code.
10508 (remote_info_process): Delete function.
10509 (remote_wait): Delete cisco specific code.
10510 (remote_cisco_section_offsets): Delete function.
10511 (remote_cisco_objfile_relocate): Delete function.
10512 (remote_async_wait): Delete cisco specific code.
10513 (minitelnet, readtty, readsocket): Delete function.
10514
10515 2004-01-26 Andrew Cagney <cagney@redhat.com>
10516
10517 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10518 comments mentioning extract_returned_value_address.
10519 * infcmd.c (print_return_value): Update. Add comments on
10520 extract_returned_value_address.
10521 * stack.c (return_command): Add comments on
10522 extract_returned_value_address.
10523 * values.c: Update comment.
10524 * m32r-tdep.c: Update comment.
10525 * sparc-tdep.c: Update comment.
10526 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10527 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10528 * sh64-tdep.c (sh64_gdbarch_init): Update.
10529 * sh-tdep.c (sh_gdbarch_init): Update.
10530 * s390-tdep.c (s390_gdbarch_init): Update.
10531 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10532 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10533 * m68k-tdep.c (m68k_gdbarch_init): Update.
10534 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10535 * m32r-tdep.c (m32r_gdbarch_init): Update.
10536 * ia64-tdep.c (ia64_gdbarch_init): Update.
10537 * h8300-tdep.c (h8300_gdbarch_init): Update.
10538 * frv-tdep.c (frv_gdbarch_init): Update.
10539 * arm-tdep.c (arm_gdbarch_init): Update.
10540 * alpha-tdep.c (alpha_gdbarch_init): Update.
10541
10542 2004-01-26 Andrew Cagney <cagney@redhat.com>
10543
10544 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10545 SYMBOL_LOCATION_FUNCS
10546 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10547 "struct symbol_ops".
10548 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10549 type to "struct symbol_ops".
10550 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10551 (struct symbol): Replace ".aux_value.loc.funcs" and
10552 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10553 (SYMBOL_OBJFILE): Delete macro.
10554 (SYMBOL_LOCATION_FUNCS): Delete macro.
10555 (SYMBOL_LOCATION_BATON): Update.
10556 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10557 intead of SYMBOL_LOCATION_FUNCS.
10558 * ax-gdb.c (gen_var_ref): Ditto.
10559 * printcmd.c (address_info): Ditto.
10560 * findvar.c (read_var_value): Ditto.
10561 (symbol_read_needs_frame): Ditto.
10562
10563 2004-01-26 Andrew Cagney <cagney@redhat.com>
10564
10565 * dwarf2read.c (read_func_scope): Document frame-base hack.
10566
10567 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10568
10569 * infcmd.c (print_return_value): Plug memory leak; delete
10570 ui_stream object. Rename argument `structure_return' to
10571 `struct_return'.
10572
10573 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10574
10575 * infcmd.c (print_return_value): Wrap long lines.
10576 (finish_command_continuation, finish_command): Remove unused
10577 variable `funcaddr'. Fix some coding-standards problems.
10578
10579 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
10580 SECT_SIZE is large enough, not whether it's exactly the right size.
10581 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10582 TDEP->fpregset to zero.
10583
10584 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
10585 floating-point registers for traditional NetBSD core files.
10586 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10587 TDEP->sizeof_fpregset here.
10588
10589 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10590
10591 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10592 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10593 function with code split out from
10594 sparc32nbsd_sigcontext_frame_cache.
10595 (sparc32nbsd_sigcontext_frame_cache): Use
10596 sparc32nbsd_sigcontext_saved_regs.
10597 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10598 OpenBSD.
10599 * sparcobsd-tdep.c: New file.
10600 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10601 (sparcobsd-tdep.o): New dependency.
10602 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10603 * config/sparc/obsd.mt: New file.
10604
10605 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10606 TDEP->fpregset to be initialized to enable core file register
10607 sets.
10608
10609 2004-01-24 Mark Kettenis <kettenis@gnu.org>
10610
10611 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
10612 Add opaque declarations.
10613 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10614 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10615 function with code split out from
10616 sparc64nbsd_sigcontext_frame_cache.
10617 (sparc64nbsd_sigcontext_frame_cache): Use
10618 sparc64nbsd_sigcontext_saved_regs.
10619 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10620 OpenBSD.
10621 * sparc64obsd-tdep.c: New file.
10622 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10623 (sparc64obsd-tdep.o): New dependency.
10624 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10625 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10626 * config/sparc/obsd64.mt: New file.
10627
10628 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10629 read the instruction at PC.
10630
10631 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10632 value of GDB_OSABI_DEFAULT.
10633 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10634 instead of GDB_OSABI_NETBSD_AOUT.
10635
10636 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
10637
10638 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10639 copyright.
10640
10641 2004-01-23 Andrew Cagney <cagney@redhat.com>
10642
10643 * printcmd.c (display_command): Replace tui_set_display call with
10644 tui_set_layout_for_display_command.
10645 * tui/tui.h (enum tui_win_type): Define.
10646 (tui_set_layout): Delete declaration.
10647 (tui_set_layout_for_display_command): Rename set_tui_layout.
10648 * tui/tui-data.h (enum tui_layout_type): Define.
10649 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10650 "tui.h".
10651 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10652 (tui_default_win_height): Rename tuiDefaultWinHeight.
10653 (tui_default_win_viewport_height): Rename
10654 tuiDefaultWinViewportHeight.
10655 (tui_set_layout): RenametuiSetLayout.
10656 * tui/tui-layout.c: Update references.
10657 * tui/tui.c: Update references.
10658 * tui/tui-disasm.c: Update references.
10659
10660 2004-01-23 David Carlton <carlton@kealia.com>
10661
10662 Partial workaround for PR c++/1511:
10663 * cp-namespace.c: Include frame.h.
10664 (cp_lookup_transparent_type): New
10665 (cp_lookup_transparent_type_loop): New.
10666 * cp-support.h: Declare cp_lookup_transparent_type.
10667 * symtab.c (basic_lookup_transparent_type): Renamed from
10668 lookup_transparent_type.
10669 (lookup_transparent_type): Replace old body by a call to
10670 current_language->la_lookup_transparent_type.
10671 * symtab.h: Update copyright. Declare
10672 basic_lookup_transparent_type.
10673 * language.h: Update copyright.
10674 (struct language_defn): Add la_lookup_transparent_type.
10675 * language.c: Update copyright.
10676 (unknown_language_defn): Add basic_lookup_transparent_type.
10677 (auto_language_defn): Add basic_lookup_transparent_type.
10678 (local_language_defn): Add basic_lookup_transparent_type.
10679 * ada-lang.c: Update copyright.
10680 (ada_language_defn): Add basic_lookup_transparent_type.
10681 * c-lang.c: Update copyright.
10682 (c_language_defn): Add basic_lookup_transparent_type.
10683 (cplus_language_defn): Add basic_lookup_transparent_type.
10684 (asm_language_defn): Add basic_lookup_transparent_type.
10685 (minimal_language_defn): Add basic_lookup_transparent_type.
10686 * f-lang.c: Update copyright.
10687 (f_language_defn): Add basic_lookup_transparent_type.
10688 * jv-lang.c: Update copyright.
10689 (java_language_defn): Add basic_lookup_transparent_type.
10690 * m2-lang.c: Update copyright.
10691 (m2_language_defn): Add basic_lookup_transparent_type.
10692 * objc-lang.c: Update copyright.
10693 (objc_language_defn): Add basic_lookup_transparent_type.
10694 * p-lang.c: Update copyright.
10695 (p_language_defn): Add basic_lookup_transparent_type.
10696 * scm-lang.c: Update copyright.
10697 (scm_language_defn): Add basic_lookup_transparent_type.
10698 * Makefile.in (cp-namespace.o): Depend on frame.h.
10699
10700 2004-01-23 David Carlton <carlton@kealia.com>
10701
10702 Patch for PR c++/1520:
10703 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10704 properly if we have a specification die.
10705 (determine_prefix_aux): Rename from determine_prefix.
10706 (determine_prefix): Like the old determine_prefix, but never
10707 returns NULL.
10708
10709 2004-01-23 Theodore A. Roth <troth@openavr.org>
10710
10711 * avr-tdep.c: Update copyright.
10712 (avr_iaddr_p): Delete unused function.
10713 (avr_saddr_p): Delete unused function.
10714
10715 2004-01-23 David Carlton <carlton@kealia.com>
10716
10717 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10718 Fix for PR symtab/1534.
10719
10720 2004-01-23 Mark Kettenis <kettenis@gnu.org>
10721
10722 * NEWS (New native configurations): Mention OpenBSD/sparc and
10723 OpenBSD/sparc64.
10724 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10725 * configure.host: Likewise.
10726 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10727 handler for OpenBSD.
10728 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10729
10730 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10731
10732 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10733 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10734
10735 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10736 * cli/cli-cmds.c (shell_escape): Likewise.
10737
10738 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10739 OpenBSD .note.openbsd.ident sections.
10740
10741 2004-01-22 David Carlton <carlton@kealia.com>
10742
10743 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10744 get_scope_pc_bounds.
10745 (read_file_scope): Ditto.
10746 (get_scope_pc_bounds): New function, produced by extracting code
10747 from the above two functions, consolidating it, and adding support
10748 for DW_TAG_namespace.
10749
10750 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10751
10752 * osabi.c (MAX_NOTESZ): New define.
10753 (check_note): New function.
10754 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10755 check_note.
10756
10757 2004-01-21 Roland McGrath <roland@redhat.com>
10758
10759 * MAINTAINERS (write after approval): Add myself.
10760
10761 2004-01-21 Eli Zaretskii <eliz@gnu.org>
10762
10763 * utils.c (init_page_info): Move declarations of `rows' and
10764 `cols' before the __GO32__-specific code. Move the closing brace
10765 outside the #ifdef __GO32__..#endif block.
10766 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10767
10768 2004-01-21 Paul Brook <paul@codesourcery.com>
10769
10770 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10771 BPSTAT_WHAT_CHECK_SHLIBS.
10772
10773 2004-01-21 Paul Brook <paul@codesourcery.com>
10774
10775 * MAINTAINERS: Add myself to write-after-approval.
10776
10777 2004-01-20 Andrew Cagney <cagney@redhat.com>
10778
10779 * ax-gdb.c (print_axs_value): Delete unused function.
10780 * jv-lang.c (java_lookup_type): Delete unused function.
10781 * cli/cli-dump.c (dump_filetype): Delete unused function.
10782 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10783 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10784 (mips_getstring): Delete unused function.
10785 (pmon_insert_breakpoint): Delete #if0ed function.
10786 (PMON_MAX_BP): Delete #if0ed MACRO.
10787 (mips_pmon_bp_info): Delete #if0ed variable.
10788 (pmon_remove_breakpoint): Delete #if0ed function.
10789 * monitor.c (monitor_write_even_block): Delete unused function.
10790 (monitor_write_memory_block): Delete #if0ed code.
10791 * dink32-rom.c (dink32_load): Delete unused function.
10792 (_initialize_dink32_rom): Delete #if0ed code.
10793 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10794
10795 * tui/tui-command.c: Update references.
10796 * tui/tui-io.c: Update references.
10797 * tui/tui-command.h: Update copyright.
10798 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10799
10800 * source.c (ambiguous_line_spec): Delete never-defined function.
10801 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10802 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10803 * cli/cli-cmds.c (validate_comname): Ditto.
10804
10805 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10806 "tui-data.h".
10807 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10808 (tui_show_disassem): Rename tuiShowDisassem.
10809 (tui_show_disassem_and_update_source): Rename
10810 tuiVerticalDisassemScroll.
10811 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10812 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10813 * tui/tui.h: Update copyright.
10814 (enum tui_status): Define.
10815 * tui/tui-data.h (enum tui_scroll_direction): Define.
10816 * tui/tui-disasm.c: Update copyright. Update references.
10817 * tui/tui-winsource.c: Update copyright. Update references.
10818 * tui/tui-win.c: Update references.
10819 * tui/tui-layout.c: Update references.
10820
10821 2004-01-20 Andrew Cagney <cagney@redhat.com>
10822
10823 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10824 sym2 to start of block.
10825
10826 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10827
10828 * MAINTAINERS: Delete mmalloc.
10829 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10830 * NEWS: Mention removal of --with-malloc.
10831 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10832 * config.in: Regenerate.
10833 * configure: Regenerate.
10834 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10835 USE_MMALLOC, MMCHECK_FORCE.
10836 * gdbinit.in: Remove mmalloc.
10837 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10838 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10839 * config/i386/go32.mh: Likewise.
10840 * config/i386/interix.mh: Likewise.
10841 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10842
10843 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10844
10845 * linespec.c (decode_variable, symtab_from_filename): Call
10846 error_silent with error message instead of throwing an exception
10847 directly.
10848 * defs.h (error_silent, error_output_message): Add prototypes.
10849 (catch_exceptions_with_msg): Ditto.
10850 * utils.c (error_silent, error_output_message): New functions.
10851 * top.c (catch_exceptions_with_msg): New function.
10852
10853 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
10854
10855 * mi/mi-cmds.h (enum print_values): Add definition.
10856
10857 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10858 type and value for simple data types and just the name and type
10859 for complex ones, if required.
10860
10861 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10862 children, if required.
10863
10864 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10865
10866 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10867 unused declarations.
10868
10869 2004-01-19 Andrew Cagney <cagney@redhat.com>
10870
10871 * top.h (mapped_symbol_files): Delete declaration.
10872 * main.c (captured_main): Delete option "m" and "mapped".
10873 * objfiles.c (mapped_symbol_files): Delete variable.
10874 * symfile.c (symbol_file_command): Delete mmap code.
10875 (symbol_file_add_with_addrs_or_offsets): Ditto.
10876 (add_symbol_file_command, reread_separate_symbols): Ditto.
10877 * objfiles.h (OBJF_MAPPED): Delete.
10878 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10879 (free_objfile) [USE_MMALLOC]: Ditto.
10880 (open_existing_mapped_file): Delete function.
10881 (open_mapped_file): Delete function.
10882 (map_to_file): Delete function.
10883
10884 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10885
10886 * infrun.c (step_into_function): Account for possible breakpoint
10887 adjustment when computing ``stop_func_start''.
10888
10889 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10890
10891 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10892 the region size against the size of a pointer, not the size of
10893 a register as given by DEPRECATED_REGISTER_SIZE.
10894
10895 2004-01-19 Andrew Cagney <cagney@redhat.com>
10896
10897 * tui/tui-regs.h: Include "tui-data.h".
10898 (tuiFirstRegElementNoInLine): Delete declaration.
10899 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10900 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10901 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10902 (tui_calculate_regs_column_count): Rename
10903 tuiCalculateRegsColumnCount.
10904 (tui_check_register_values): Rename tuiCheckRegisterValues.
10905 (tui_show_registers): Rename tuiShowRegisters.
10906 (tui_display_registers_from_line): Rename
10907 tuiDisplayRegistersFromLine.
10908 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10909 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10910 (tui_first_reg_element_no_inline): Rename
10911 tuiFirstRegElementNoInLine.
10912 * tui/tui-data.h: Update copyright.
10913 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10914 * tui/tui-windata.c: Update copyright, update references.
10915 * tui/tui-regs.c: Update copyright, update references.
10916 * tui/tui-win.c: Update copyright, update references.
10917 * tui/tui-layout.c: Update copyright, update references.
10918
10919 2004-01-18 Andrew Cagney <cagney@redhat.com>
10920
10921 * tui/tui-io.c: Update copyright.
10922 (key_is_end_sequence, key_is_backspace): New functions.
10923 (key_is_command_char, key_is_start_sequence): New function.
10924 (tui_getc): Update references.
10925 * tui/tui-io.h: Update copyright.
10926 (m_tuiStartNewLine): Delete macro.
10927 (m_isBackspace, m_isDeleteChar): Delete macros.
10928 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10929 (m_isNextPage, m_isPrevPage): Delete macros.
10930 (m_isLeftArrow, m_isRightArrow): Delete macros.
10931 (m_isXdbStyleCommandChar): Delete macro.
10932 (key_is_start_sequence): Declare, replace m_isStartSequence.
10933 (key_is_end_sequence): Declare, replace m_isEndSequence.
10934 (key_is_backspace): Declare ,replace m_isBackspace.
10935 (key_is_command_char): Declare, replace m_isCommandChar.
10936 * tui/tui-command.c: Update copyright.
10937 (tuiDispatchCtrlChar): Update references.
10938
10939 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10940 tuiSourceWin.h.
10941
10942 * tui/tui-command.c: Rename tui/tuiCommand.c.
10943 * tui/tui-command.h: Rename tui/tuiCommand.h.
10944 * tui/tui-data.c: Rename tui/tuiData.c.
10945 * tui/tui-data.h: Rename tui/tuiData.h.
10946 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10947 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10948 * tui/tui-io.c: Rename tui/tuiIO.c.
10949 * tui/tui-io.h: Rename tui/tuiIO.h.
10950 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10951 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10952 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10953 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10954 * tui/tui-source.c: Rename tui/tuiSource.c.
10955 * tui/tui-source.h: Rename tui/tuiSource.h.
10956 * tui/tui-stack.c: Rename tui/tuiStack.c.
10957 * tui/tui-stack.h: Rename tui/tuiStack.h.
10958 * tui/tui-win.c: Rename tui/tuiWin.c.
10959 * tui/tui-win.h: Rename tui/tuiWin.h.
10960 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10961 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10962 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10963 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10964 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10965 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10966 * tui/tui-file.c: Update includes.
10967 * tui/tui-hooks.c: Update includes.
10968 * tui/tui-interp.c: Update includes.
10969 * tui/tui.c: Update includes.
10970 * Makefile.in: Update all tui/ dependencies.
10971 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10972
10973 * Makefile.in: Update copyright. Update dependencies.
10974
10975 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10976 problem.
10977
10978 2004-01-18 Andrew Cagney <cagney@redhat.com>
10979
10980 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10981 instead of register_gdbarch_init.
10982
10983 * remote-sds.c (tohex): Delete unused function. Update copyright.
10984 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10985 * v850-tdep.c (v850_register_virtual_size): Ditto.
10986 * target.c (normal_target_post_startup_inferior): Ditto.
10987 * source.c (ambiguous_line_spec): Ditto.
10988 * remote.c (adapt_remote_get_threadinfo): Ditto.
10989 * mi/mi-out.c (out_field_fmt): Ditto.
10990 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10991 (output_control_change_notification): Ditto.
10992 * m68k-tdep.c (m68k_register_byte): Ditto.
10993 (m68k_remote_breakpoint_from_pc): Ditto.
10994 * ui-out.c (init_ui_out_state): Delete unused declaration.
10995 * stabsread.c (search_value): Ditto.
10996 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10997 * maint.c (print_section_table): Ditto.
10998 * infrun.c (set_follow_fork_mode_command): Ditto.
10999
11000 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11001
11002 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11003 DW_CFA_def_cfa_exporession. Add support for
11004 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11005 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11006
11007 2004-01-18 Andrew Cagney <cagney@redhat.com>
11008
11009 * ocd.c: Update copyright.
11010 (bdm_read_register_command): Delete unused function.
11011 (_initialize_remote_ocd): Delete commented out reference.
11012 (get_quoted_char, reset_packet): Delete #if0ed function.
11013 (output_packet, put_quoted_char): Delete #if0ed function.
11014 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11015 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11016 (BDM_BREAKPOINT): Delete #if0ed macro.
11017 (remote_timeout): Delete #if0ed variable.
11018
11019 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11020
11021 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11022 (core-sol2.o): Remove dependency.
11023 * core-sol2.c: Remove file.
11024
11025 2004-01-17 Andrew Cagney <cagney@redhat.com>
11026
11027 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11028 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11029 enums.
11030
11031 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11032
11033 * remote.c: Update copyright years.
11034
11035 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11036
11037 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11038
11039 2004-01-17 Andrew Cagney <cagney@redhat.com>
11040
11041 * mdebugread.c: Update copyright.
11042 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11043 (parse_type, parse_procedure): Ditto.
11044 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11045
11046 * cris-tdep.c (cris_store_struct_return): Put back accidently
11047 deleted function.
11048
11049 * gdbarch.sh: Update copyright year.
11050 * gdbarch.h, gdbarch.c: Re-generate.
11051
11052 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11053
11054 Suggested by George Anzinger.
11055 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11056 correct stack offset. Include unknown opcode numbers in the error
11057 message.
11058
11059 2004-01-17 Andrew Cagney <cagney@redhat.com>
11060
11061 * x86-64-tdep.c (x86_64_init_abi): No need to clear
11062 extract_struct_value_address, i386 does not set it.
11063 * sparc64-tdep.c (sparc64_init_abi): Do not set
11064 extract_struct_value_address, never called.
11065 (sparc64_extract_struct_value_address): Delete function.
11066 * m68hc11-tdep.c: Update copyright.
11067 (m68hc11_gdbarch_init): Delete redundant assignment of
11068 extract_struct_value_address.
11069 * i386-tdep.c: Update copyright.
11070 (i386_gdbarch_init): Do not set extract_struct_value_address,
11071 never called.
11072 (i386_extract_struct_value_address): Delete function.
11073 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
11074 extract_struct_value_address, never called.
11075 (sparc32_extract_struct_value_address): #if 0 function. Add
11076 comments explaining its future.
11077
11078 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11079
11080 * arm-tdep.c (arm_write_pc): New function.
11081 (arm_gdbarch_init): Call set_gdbarch_write_pc.
11082
11083 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11084
11085 * breakpoint.c (must_shift_inst_regs): Delete.
11086 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
11087 and SHIFT_INST_REGS.
11088 * infcmd.c (step_1, step_1_continuation): Delete references to
11089 SHIFT_INST_REGS.
11090 * infrun.c (keep_going): Likewise.
11091 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
11092 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
11093
11094 2004-01-17 Andrew Cagney <cagney@redhat.com>
11095
11096 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11097 * gdbarch.h, gdbarch.c: Re-generate.
11098 * infcmd.c (print_return_value): Delete reference to
11099 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
11100
11101 * cris-tdep.c (cris_gdbarch_init): Do not set
11102 deprecated_extract_struct_value_address.
11103
11104 * xstormy16-tdep.c: Update copyright.
11105 (xstormy16_extract_struct_value_address): Update to current
11106 extract struct value address interface.
11107 (xstormy16_gdbarch_init): Set extract_struct_value_address.
11108 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
11109 current extract struct value address interface.
11110 (sh64_gdbarch_init): Set extract_struct_value_address.
11111
11112 * cris-tdep.c: Update copyright.
11113 (cris_extract_struct_value_address): Delete function.
11114 (struct_return_address): Delete variable.
11115 (cris_store_struct_return): Do not set struct_return_address.
11116
11117 * mcore-tdep.c: Update copyright.
11118 (mcore_extract_struct_value_address): Delete function. Update
11119 comments.
11120 (mcore_gdbarch_init): Update.
11121 * mn10300-tdep.c: Update copyright.
11122 (mn10300_extract_struct_value_address): Delete function.
11123 (mn10300_gdbarch_init): Update.
11124 * v850-tdep.c: Update copyright.
11125 (v850_extract_struct_value_address): Delete.
11126 (v850_gdbarch_init): Update.
11127 * ns32k-tdep.c: Update copyright.
11128 (ns32k_extract_struct_value_address): Delete.
11129 (ns32k_gdbarch_init): Update.
11130 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
11131 (hppa_gdbarch_init): Update.
11132 * vax-tdep.c: Update copyright.
11133 (vax_extract_struct_value_address): Delete.
11134 (vax_gdbarch_init): Update.
11135
11136 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11137 * gdbarch.h, gdbarch.c: Re-generate.
11138 * procfs.c (procfs_fetch_registers): Delete reference to
11139 DEPRECATED_NPC_REGNUM.
11140 (procfs_store_registers): Ditto.
11141 * regcache.c (generic_target_write_pc): Simplify.
11142 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11143
11144 * core-sol2.c (fetch_core_registers): Replace
11145 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11146
11147 * hppa-tdep.c: Update copyright year.
11148 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11149 NPC_REGNUM.
11150 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11151
11152 * mips-tdep.c (mips_write_pc): New function.
11153 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11154 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11155 (mips_find_saved_regs, mips_software_single_step: Ditto.
11156 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11157 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11158
11159 2004-01-17 Andrew Cagney <cagney@redhat.com>
11160
11161 * mips-tdep.c: Re-indent. Group functions by ABI.
11162
11163 2004-01-17 Andrew Cagney <cagney@redhat.com>
11164
11165 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11166 * gdbarch.c: Re-generate.
11167 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11168 DECR_PC_AFTER_BREAK to zero.
11169 * vax-tdep.c (vax_gdbarch_init): Ditto.
11170 * v850-tdep.c (v850_gdbarch_init): Ditto.
11171 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11172 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11173 * sh-tdep.c (sh_gdbarch_init): Ditto.
11174 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11175 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11176 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11177 * mips-tdep.c (mips_gdbarch_init): Ditto.
11178 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11180 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11181 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11182 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11183 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11184 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11185 * frv-tdep.c (frv_gdbarch_init): Ditto.
11186 * cris-tdep.c (cris_gdbarch_init): Ditto.
11187 * avr-tdep.c (avr_gdbarch_init): Ditto.
11188 * arm-tdep.c (arm_gdbarch_init): Ditto.
11189 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11190
11191 2004-01-17 J. Brobecker <brobecker@gnat.com>
11192
11193 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
11194 Delete, no longer used.
11195 (read_subrange_type): New function, mostly extracted from
11196 read_array_type().
11197 (read_array_type): Replace extracted code by call to
11198 read_subrange_type().
11199 (dwarf2_get_attr_constant_value): New function.
11200 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
11201 (add_partial_symbol): Likewise.
11202 (process_die): Likewise.
11203 (new_symbol): Likewise.
11204 (read_type_die): Likewise.
11205
11206 2004-01-16 Andrew Cagney <cagney@redhat.com>
11207
11208 * symfile.c: Update copyright year.
11209 (compare_symbols): Delete unused function.
11210 * stabsread.c: Update copyright year.
11211 (lrs_general_complaint): Delete unused function.
11212 (ref_search_value): Ditto.
11213 (get_substring): Delete declaration.
11214 * sh64-tdep.c: Update copyright year.
11215 (sh64_get_gdb_regnum): Delete unused function.
11216 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
11217 Delete unused function.
11218
11219 2004-01-17 Mark Kettenis <kettenis@gnu.org>
11220
11221 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
11222 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
11223
11224 2004-01-16 Andrew Cagney <cagney@redhat.com>
11225
11226 Changes from Peter Schauer.
11227 * rs6000-tdep.c: Update copyright year.
11228 (rs6000_push_dummy_call): Update the stack pointer before
11229 accessing the corresponding stack region.
11230 * rs6000-nat.c: Update copyright year.
11231 (set_host_arch): Set "info.abfd" to "exec_bfd".
11232
11233 2004-01-15 Mark Kettenis <kettenis@gnu.org>
11234
11235 * blockframe.c: Update copyright year.
11236 (inside_entry_func): Don't treat a zero PC specially.
11237
11238 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
11239
11240 * gcore.c (gcore_copy_callback): Use paddr_d to print size
11241 variable.
11242 (gcore_create_callback): Ditto. Skip any memory segment that has
11243 no permissions set.
11244
11245 2004-01-14 David Carlton <carlton@kealia.com>
11246
11247 Change symbols for C++ nested types to contain the fully qualified
11248 name, if possible. (At least in the DWARF-2 case.) Partial fix
11249 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
11250 c++/895.
11251 * c-exp.y (qualified_type): Handle types nested within classes.
11252 * cp-namespace.c: Update comments.
11253 (cp_set_block_scope): Delete #if 0.
11254 (cp_lookup_nested_type): Handle types nested within classes.
11255 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
11256 when appropriate.
11257 (add_partial_symbol): Add the name of the enclosing namespace to
11258 types.
11259 (pdi_needs_namespace): New.
11260 (add_partial_namespace): Tweak comment.
11261 (add_partial_structure): New.
11262 (psymtab_to_symtab_1): Initialize processing_current_prefix
11263 here...
11264 (process_die): instead of here.
11265 (read_structure_scope): Try to figure out the name of the class or
11266 namespace that the structure might be defined within.
11267 (read_enumeration): Generate fully-qualified names, if possible.
11268 (read_namespace): Don't set name to NULL.
11269 (die_specification): New.
11270 (new_symbol): Generate fully-qualified names for types.
11271 (read_type_die): Determine appropriate prefix.
11272 (determine_prefix): New.
11273 (typename_concat): New.
11274 (class_name): New.
11275 * valops.c (value_aggregate_elt): Pass NOSIDE to
11276 value_struct_elt_for_reference.
11277 (value_struct_elt_for_reference): Make static, add NOSIDE
11278 parameter, call value_maybe_namespace_elt as a last resort.
11279 (value_namespace_elt): Break out code into
11280 value_maybe_namespace_elt.
11281 (value_maybe_namespace_elt): New.
11282
11283 2004-01-12 Andrew Cagney <cagney@redhat.com>
11284
11285 * mips-tdep.c (mips_convert_register_p): Handle both raw and
11286 cooked floating-point registers.
11287 (mips_gdbarch_init): Set convert_register_p, register_to_value,
11288 and value_to_register.
11289
11290 2004-01-13 Andrew Cagney <cagney@redhat.com>
11291
11292 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
11293 * gdbarch.c: Re-generate.
11294 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11295 FUNCTION_START_OFFSET.
11296 * v850-tdep.c (v850_gdbarch_init): Ditto.
11297 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11298 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11299 * sh-tdep.c (sh_gdbarch_init): Ditto.
11300 * s390-tdep.c (s390_gdbarch_init): Ditto.
11301 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11302 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11303 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11304 * mips-tdep.c (mips_gdbarch_init): Ditto.
11305 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11306 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11307 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11308 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11309 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11310 * i386-tdep.c (i386_gdbarch_init): Ditto.
11311 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11312 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11313 * frv-tdep.c (frv_gdbarch_init): Ditto.
11314 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11315 * cris-tdep.c (cris_gdbarch_init): Ditto.
11316 * avr-tdep.c (avr_gdbarch_init): Ditto.
11317 * arm-tdep.c (arm_gdbarch_init): Ditto.
11318 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11319
11320 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
11321
11322 * infrun.c (follow_fork_mode_ask): Remove.
11323 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
11324 (follow_fork): Simplify and remove internal error for
11325 follow_fork_mode_ask.
11326 (_initialize_infrun): Update "set follow-fork-mode" help text.
11327
11328 2004-01-13 Andrew Cagney <cagney@redhat.com>
11329
11330 * configure.in: Update copyright year.
11331 (build_warnings): Add -Wunused-label.
11332 * configure: Re-generate.
11333
11334 2004-01-12 Andrew Cagney <cagney@redhat.com>
11335
11336 * exec.h (exec_ops): Make "extern".
11337
11338 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11339 the function is void.
11340 (mips_pseudo_register_write): Ditto.
11341
11342 2004-01-12 Andrew Cagney <cagney@redhat.com>
11343
11344 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11345 call. Never defined.
11346 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11347 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11348 (struct sparc_gregset, struct regcache): Ditto.
11349 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11350
11351 2004-01-12 Andrew Cagney <cagney@redhat.com>
11352
11353 * mi/ChangeLog: Delete file. Renamed to ...
11354 * mi/ChangeLog-1999-2003: New file.
11355 * tui/ChangeLog: Delete file. Renamed to ...
11356 * tui/ChangeLog-1998-2003: New file.
11357
11358 2004-01-11 Mark Kettenis <kettenis@gnu.org>
11359
11360 * sparc64nbsd-tdep.c: Include "regset.h".
11361 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11362 Remove variables.
11363 (fetch_core_registers): Remove function.
11364 (sparc64nbsd_core_fns): Remove variable.
11365 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11366 functions.
11367 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11368 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11369 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11370
11371 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11372 sparc_extract_struct_value_address.
11373 (sparc32_gdbarch_init): Set extract_struct_value_address.
11374 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11375 function.
11376 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11377 return_value_on_stack.
11378
11379 * NEWS: Mention that %cs and %ss have been added to the AMD64
11380 configurations
11381
11382 * frame.c: Update copyright year.
11383 (get_prev_frame): Improve comment.
11384
11385 * sparc64fbsd-tdep.c: Include "regset.h".
11386 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11387 Remove variables.
11388 (fetch_core_registers): Remove function.
11389 (sparc64fbsd_core_fns): Remove variable.
11390 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11391 functions.
11392 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11393 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11394 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
11395
11396 * sparcnbsd-tdep.c: Include "regset.h".
11397 (fetch_core_registers): Remove function.
11398 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11399 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11400 functions.
11401 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11402 TDEP->fpregset.
11403 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
11404
11405 * sparc-tdep.h (struct regset): Provide opaque declaration.
11406 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11407 fpregset and sizeof_fpregset members.
11408 * sparc-tdep.c (struct regset): Provide opaque declaration.
11409 (sparc_regset_from_core_section): New function.
11410 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11411 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11412 Set regset_from_core_section when appropriate.
11413
11414 2004-01-10 Mark Kettenis <kettenis@gnu.org>
11415
11416 * x86-64-tdep.c (amd64_non_pod_p): New function.
11417 (amd64_classify_aggregate): Return class memory for non-POD
11418 C++ structure types.
11419
11420 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11421 argument. Use it to reserve a register if necessary.
11422 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11423 amd64_push_arguments.
11424
11425 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11426
11427 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11428 register numbers in comments.
11429 * x86-64-tdep.h: Update copyright year.
11430 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11431 Adjust for addition of %cs and %ss.
11432 * amd64fbsd-nat.c: Update copyright year.
11433 (reg_offset): Add register offsets for %cs and %ss.
11434 * amd64fbsd-tdep.c: Update copyright year.
11435 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11436 (amd64fbsd_sc_reg_offset): Likewise.
11437 * x86-64-linux-nat.c: Update copyright year.
11438 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11439 and %ss.
11440 * amd64nbsd-nat.c: Update copyright year.
11441 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11442 * amd64nbsd-tdep.c: Update copyright year.
11443 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11444 * x86-64-linux-tdep.c: Update copyright year.
11445 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11446 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11447 * regformats/reg-x86-64.dat: Add %cs and %ss.
11448
11449 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11450 variables to prevent long lines. Update comments to reflect
11451 reality.
11452
11453 2004-01-09 David Carlton <carlton@kealia.com>
11454
11455 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11456 * dwarf2read.c (read_namespace): Pull out name-generating code
11457 into namespace_name. Rename previous_namespace to previous_prefix
11458 and processing_current_namespace to processing_current_prefix..
11459 (namespace_name): New function.
11460 (add_partial_symbol): Substitute uses of pdi->name with
11461 actual_name.
11462 * cp-support.h: Rename processing_current_namespace to
11463 processing_current_prefix.
11464 Update copyright year.
11465 * cp-namespace.c: Rename processing_current_namespace to
11466 processing_current_prefix.
11467 Update copyright year.
11468
11469 2004-01-09 Andrew Cagney <cagney@redhat.com>
11470
11471 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11472
11473 2004-01-09 Mark Kettenis <kettenis@gnu.org>
11474
11475 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11476 complaining.
11477 (process_one_symbol): Deal with N_PATCH stabs.
11478
11479 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
11480
11481 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11482 ifdeffed code.
11483 Update copyright year.
11484
11485 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11486
11487 * config/pa/tm-hppa.h: Update extern declarations for
11488 hppa32_hpux_frame_saved_pc_in_sigtramp,
11489 hppa32_hpux_frame_base_before_sigtramp, and
11490 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11491
11492 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11493
11494 * config/pa/tm-hppah.h: Update copyright years.
11495
11496 2004-01-08 Andrew Cagney <cagney@redhat.com>
11497
11498 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11499 (mips_o32_reg_struct_has_addr): Delete function.
11500 (mips_gdbarch_init): Update.
11501 (mips_extract_struct_value_address): Delete function.
11502
11503 2004-01-08 David Mosberger <davidm@hpl.hp.com>
11504
11505 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11506 reality.
11507
11508 2004-01-07 Andrew Cagney <cagney@redhat.com>
11509
11510 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11511 architecture's elf flags (when available).
11512
11513 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11514 FPU to the start, check the MIPS FPU when looking for an old
11515 architecture.
11516 (set_mipsfpu_single_command): Update the architecture.
11517 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11518
11519 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11520 (mips_mask_address_p): Add "tdep" parameter.
11521 (show_mask_address, mips_addr_bits_remove): Update.
11522 (mips_dump_tdep): Update.
11523 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11524 (MIPS_STACK_ARGSIZE): Delete macro.
11525 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11526 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11527 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11528 (mips_dump_tdep): Update.
11529 (MIPS_SAVED_REGSIZE): Delete macro.
11530 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11531 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11532 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11533 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11534 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11535 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11536 (mips_pop_frame, return_value_location): Update.
11537 (mips_n32n64_return_value, mips_dump_tdep): Update.
11538
11539 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11540 MIPS ABI.
11541
11542 * mips-tdep.c: Update copyright.
11543 (mips_gdbarch_init): Merge two code blocks handling the register
11544 name and number layout.
11545
11546 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11547
11548 * tracepoint.c (validate_actionline): Fix segv at EOF
11549
11550 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11551
11552 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11553 properly for static fields.
11554
11555 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
11556 Jason Molenda <jmolenda@apple.com>
11557
11558 * disasm.c: Update copyright to include 2004.
11559 (do_mixed_source_and_assembly): For uiout asm list
11560 and tuple cleanups, initialize to null_cleanup instead of
11561 NULL and do so prior to loop. Only reset when we close off
11562 the tuple/list. Move check for whether to close off the
11563 asm tuple/list to after dump_insns call where it will be run
11564 on each loop iteration.
11565
11566 2004-01-05 Andrew Cagney <cagney@redhat.com>
11567
11568 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11569 should be a switch case and not a label.
11570 * mips-tdep.c (mips32_next_pc): Delete unused labels
11571 "greater_equal_branch" and "less_zero_branch".
11572 * jv-valprint.c (java_print_value_fields): Delete unused label
11573 "flush_it".
11574
11575 * target.c (unpush_target): Only close a target that is in the
11576 target stack.
11577
11578 2004-01-05 Mark Kettenis <kettenis@gnu.org>
11579
11580 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11581 address from [sp + 64] instead of %o2.
11582
11583 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11584 fixes PR backtrace/1476.
11585
11586 2004-01-05 Andrew Cagney <cagney@redhat.com>
11587
11588 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11589 move to start of file.
11590 * i386-tdep.h (struct regcache): Add opaque declaration.
11591 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11592 declaration.
11593 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11594 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11595 * win32-nat.c (fake_create_process): Use ISO C style definition.
11596 * stabsread.c (define_symbol): Delete #ifndef
11597 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11598 stabs_argument_has_addr call, macro never defined.
11599
11600 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11601
11602 * op50-rom.c: Delete.
11603 * w89k-rom.c: Delete.
11604 * Makefile.in: Remove references.
11605
11606 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11607
11608 * x86-64-tdep.c: Update copyright year.
11609 (struct amd64_register_info): Rename from x86_64_register_info.
11610 (amd64_register_info): Rename from x86_64_register_info.
11611 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11612 (amd64_register_name): Rename from x86_64_register_name.
11613 (amd64_register_type): Rename from x86_64_register_type.
11614 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11615 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11616 (amd64_dwarf_reg_to_regnum): Rename from
11617 x86_64_dwarf_reg_to_regnum.
11618 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11619 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11620 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11621 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11622 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11623 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11624 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11625 (amd64_frame_cache): Rename from x86_64_frame_cache.
11626 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11627 (amd64_frame_prev_register): Rename from
11628 x86_64_frame_prev_register.
11629 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11630 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11631 (amd64_sigtramp_frame_cache): Rename from
11632 x86_64_sigtramp_frame_cache.
11633 (amd64_sigtramp_frame_prev_register): Rename from
11634 x86_64_sigtramp_frame_prev_register.
11635 (amd64_sigtramp_frame_unwind): Rename from
11636 x86_64_sigtramp_frame_unwind.
11637 (amd64_sigtramp_frame_sniffer): Rename from
11638 x86_64_sigtramp_frame_sniffer.
11639 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11640 (amd64_frame_base): Rename from x86_64_frame_base.
11641 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11642 (amd64_frame_align): Rename from x86_64_frame_align.
11643 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11644 (amd64_regset_from_core_section): Rename from
11645 x86_64_regset_from_core_section.
11646 (x86_64_init_abi): Update comments.
11647
11648 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
11649
11650 * MAINTAINERS (write after approval): Add myself.
11651
11652 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11653
11654 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11655 `float' arguments.
11656
11657 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11658
11659 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11660 such that it mentions a specific version of GCC that exhibits this
11661 bug.
11662
11663 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11664
11665 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11666 structure that has a single `float' member, store it in %f1 in
11667 addition to %f0.
11668
11669 * sparc-sol2-nat.c: Add missing '\'.
11670
11671 * sparc-tdep.c (sparc32_return_value): New function.
11672 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11673 Remove functions.
11674 (sparc32_gdbarch_init): Set return_value, don't set
11675 extract_return_value, store_return_value, use_struct_convention
11676 and return_value_on_stack.
11677
11678 * sparc-sol2-nat.c: Add missing ')'.
11679
11680 2004-01-03 J. Brobecker <brobecker@gnat.com>
11681
11682 * infrun.c (handle_step_into_function): New function.
11683 (handle_inferior_event): Extract out some code into the new
11684 function above.
11685
11686 2004-01-03 J. Brobecker <brobecker@gnat.com>
11687
11688 * infrun.c (handle_inferior_event): Move the declaration of
11689 real_stop_pc inside the if blocks where it is used.
11690
11691 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11692
11693 * sparc64-tdep.c (sparc64_16_byte_align_p)
11694 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11695 Use check_typedef to get subtypes of structures and unions.
11696 (sparc64_store_return_value): Fix calculation of the appropriate
11697 offset into VALBUF when storing a structure or union.
11698 (sparc64_return_value): New function.
11699 (sparc64_use_struct_convention): Remove function.
11700 (sparc64_init_abi): Set return_value, don't set
11701 extract_return_value, store_return_value and
11702 use_struct_convention.
11703
11704 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
11705
11706 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11707 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11708 gdb/config/alpha/xm-alphaosf.h,
11709 gdb/config/powerpc/tm-ppcle-eabi.h,
11710 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11711 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11712 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11713 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11714 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11715 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11716 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11717 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11718 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11719 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11720 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11721 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11722 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11723 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11724 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11725 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11726 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11727 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11728 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11729 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11730 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11731 Remove lines for .cvsignore files.
11732
11733 2004-01-03 J. Brobecker <brobecker@gnat.com>
11734
11735 * infrun.c: Back out the previous change.
11736
11737 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11738
11739 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11740 sparc-*-sunos4* to the list of REMOVED configurations.
11741
11742 * configure.tgt: Add back sparc-*-vxworks*.
11743 * remote-vxsparc.c: Remove all includes except for "defs.h",
11744 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11745 Include "sparc-tdep.h".
11746 (SPARC_R_G1): New define.
11747 (vxsparc_gregset): New variable.
11748 (ext_format_sparc): Remove extern declaration.
11749 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11750 sparc32_supply_fpregset.
11751 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11752 sparc_collect_rwindow and sparc32_collect_fpregset.
11753 * config/sparc/tm-vxworks.h: New file, based on recently removed
11754 tm-vxsparc.h.
11755 * config/sparc/vxworks.mt: New file, based on recently removed
11756 vxworks.mt.
11757
11758 2004-01-03 J. Brobecker <brobecker@gnat.com>
11759
11760 * infrun.c (handle_step_into_function): New function.
11761 (handle_inferior_event): Extract out some code into the new
11762 function above.
11763
11764 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11765
11766 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11767 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11768 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11769 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11770 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11771 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11772 (sparc_nat_h): New variable.
11773 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11774 (tm-sun4os4.h): Remove dependency.
11775 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11776 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11777 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11778 sparc-tdep.o): Update dependencies.
11779 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11780 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11781 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11782 dependencies.
11783 * configure.host: Remove existing sparc-*-lynxos*,
11784 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11785 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11786 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11787 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11788 triplets.
11789 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11790 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11791 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11792 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11793 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11794 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11795 sparc64-*-solaris2* and sparc64-*-* triplets.
11796 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11797 "symtab.h" and "objfiles.h".
11798 (BIAS): Remove define.
11799 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11800 (X_DISP19): Remove macros.
11801 (sparc_fetch_instruction): Remove function.
11802 (struct gdbarch_tdep): Remove definition.
11803 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11804 (sparc_breakpoint_from_pc): Remove function.
11805 (struct sparc64_frame_cache): Remove definition.
11806 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11807 sparc64_unwind_pc): Remove functions.
11808 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11809 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11810 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11811 (sparc64_frame_cache): Change return type to `struct
11812 sparc_frame_cache *'. Simply call sparc_frame_cache.
11813 (sparc64_frame_this_id, sparc64_frame_prev_register,
11814 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11815 instead of `struct sparc64_frame_cache.
11816 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11817 sparc_analyze_control_transfer, sparc_software_single_step,
11818 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11819 _initialize_sparc64_tdep): Remove functions.
11820 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11821 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11822 macros.
11823 (sparc64_supply_gregset, sparc64_collect_gregset,
11824 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11825 (sparc64_init_abi): New function.
11826 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11827 inclusion guard. Include "sparc-tdep.h".
11828 (BIAS): Define.
11829 (r_tstate_offset, r_fprs_offset): New defines.
11830 (enum sparc_regnum): Remove defenition.
11831 (enum sparc64_regnum): Reformat.
11832 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11833 (sparc64_init_abi, sparc64_supply_gregset,
11834 sparc64_collect_gregset, sparc64_supply_fpregset,
11835 sparc64_collect_fpregset): New prototypes.
11836 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11837 Add extern declarations.
11838 (sparc64_sol2_init_abi): New prototype.
11839 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11840 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11841 prototypes.
11842 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11843 "sparnbsd-nat.h".
11844 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11845 functions.
11846 (_initialize_sparc64fbsd_nat): Remove initialization of
11847 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11848 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
11849 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
11850 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11851 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11852 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11853 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11854 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11855 (sparc64fbsd_r_y_offset): Remove variables.
11856 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11857 Make static and const.
11858 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11859 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11860 functions.
11861 (sparc64fbsd_gregset): New variable.
11862 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11863 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11864 and sparc64_supply_fpregset.
11865 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11866 (sparc64fbsd_sigtramp_frame_this_id)
11867 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11868 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11869 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11870 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11871 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11872 * sparcnbsd-tdep.c: Update copyright year. Include
11873 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11874 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11875 "value.h" and "sparcnbsd-tdep.h".
11876 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11877 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11878 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11879 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11880 defines.
11881 (sparcnbsd_gregset): New variable.
11882 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11883 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11884 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11885 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11886 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11887 variables.
11888 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11889 (sparc32nbsd_sigcontext_frame_this_id)
11890 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11891 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11892 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11893 (sparcnbsd_get_longjmp_target_32,
11894 sparcnbsd_get_longjmp_target_64): Remove functions.
11895 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11896 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11897 sparcnbsd_init_elf): Remove.
11898 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11899 (sparcnbsd_elf_init_abi): New functions.
11900 (_initialize_sparcnbsd_tdep): New prototype.
11901 (_initialize_sparnbsd_tdep): Update.
11902 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11903 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11904 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11905 * config/sparc/linux.mh: Update comment.
11906 (XM_FILE, HOST_IPC): Remove variables.
11907 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11908 sparc-linux-nat.o.
11909 * config/sparc/linux.mt: Update comment.
11910 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11911 * config/sparc/nbsd.mt: Reformat.
11912 * config/sparc/nbsd64.mh: Update comment.
11913 (NATDEPFILES): Add sparc-nat.o.
11914 * config/sparc/nbsd64.mt: Update comment.
11915 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11916 (TM_FILE): Set to tm-nbsd.h.
11917 * config/sparc/nbsdelf.mh: Update comment.
11918 (NATDEPFILES): Add sparc-nat.o.
11919 (XM_FILE): Delete.
11920 * config/sparc/nbsdaout.mh: Update comment.
11921 (NATDEPFILES): Add sparc-nat.o
11922 (XM_FILE): Delete.
11923 * config/sparc/nm-linux.h: Update copyright year. Don't include
11924 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11925 inclusion.
11926 (KERNEL_U_SIZE): Remove define.
11927 (kernel_u_size): Remove prototype.
11928 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11929 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11930 "regcache.h".
11931 (CHILD_PREPARE_TO_STORE): Remove define.
11932 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11933 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11934 sparcnbsd-nat.c: Rewrite files.
11935 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11936 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11937 sparcnbsd-tdep.h: Remove files.
11938 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11939 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11940 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11941 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11942 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11943 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11944 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11945 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11946 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11947 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11948 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11949 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11950 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11951 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11952 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11953 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11954 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11955 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11956 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11957
11958 2004-01-02 Andrew Cagney <cagney@redhat.com>
11959
11960 From 2003-12-18 Kazuhiro Inaoka:
11961 * configure.host: Add m32r-linux target.
11962
11963 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11964
11965 * top.c (print_gdb_version): Update year to 2004.
11966
11967 2004-01-02 Mark Mitchell <mark@codesourcery.com>
11968
11969 * MAINTAINERS: Add myself to the write-after-approval category.
11970
11971 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
11972
11973 From Bernardo Innocenti <bernie@develer.com>:
11974 * configure.tgt: Add uClinux target.
11975
11976 2004-01-02 Andrew Cagney <cagney@redhat.com>
11977
11978 * utils.c (do_my_cleanups): Make static, add forward declaration.
11979 * defs.h (do_my_cleanups): Delete declaration.
11980
11981 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
11982
11983 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11984 bfd/ChangeLog-0203.
11985
11986 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11987
11988 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11989 in <machine/reg.h>.
11990 * configure, config.in: Regenerate.
11991
11992 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11993 tui/ChangeLog-1998-2003.
11994 \f
11995 Local Variables:
11996 mode: change-log
11997 left-margin: 8
11998 fill-column: 74
11999 version-control: never
12000 End: