451d2aee5e4c20cfb06541813696006e729ac1cc
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-09-16 Andrew Cagney <cagney@gnu.org>
2
3 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
4 problem.
5
6 2004-09-14 Joel Brobecker <brobecker@gnat.com>
7
8 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
9 call to heuristic_proc_desc. Remove code that became redundant
10 as a consequence.
11 (read_next_frame_reg): Remove special case for SP_REGNUM.
12 (set_reg_offset): Fix small typo.
13 (reset_saved_regs): New procedure.
14 (mips32_heuristic_proc_desc): No longer compute a fake
15 procedure descriptor. Compute the full frame cache instead.
16 Some minor comment reformatting.
17
18 2004-09-14 Andrew Cagney <cagney@gnu.org>
19
20 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
21 maintainer.
22
23 * thread-db.c (thread_db_new_objfile): Assume that there is a
24 child process.
25
26 2004-09-13 Jim Blandy <jimb@redhat.com>
27
28 * valops.c (value_assign): Move 'buffer' to the enclosing block,
29 so that its storage isn't referenced after its lifetime ends.
30
31 * valops.c (value_assign): 'use_buffer' is initialized to zero,
32 and never assigned to. Delete it, and the 'if (use_buffer)'
33 clauses. Delete 'raw_buffer', since it is now unused.
34
35 2004-09-13 Andrew Cagney <cagney@gnu.org>
36
37 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
38 * configure: Re-generate.
39 * nlm/Makefile.in (TAGS): Update.
40 * Makefile.in (TAGS): Update.
41 * config/vax/nbsd.mt (TM_FILE): Update.
42 * config/sparc/vxworks.mt (TM_FILE): Update.
43 * config/sparc/sol2.mt (TM_FILE): Update.
44 * config/sparc/sol2-64.mt (TM_FILE): Update.
45 * config/sparc/obsd64.mt (TM_FILE): Update.
46 * config/sparc/obsd.mt (TM_FILE): Update.
47 * config/sparc/nbsd64.mt (TM_FILE): Update.
48 * config/sparc/nbsd.mt (TM_FILE): Update.
49 * config/sparc/linux64.mt (TM_FILE): Update.
50 * config/sparc/linux.mt (TM_FILE): Update.
51 * config/sparc/fbsd.mt (TM_FILE): Update.
52 * config/sh/wince.mt (TM_FILE): Update.
53 * config/sh/nbsd.mt (TM_FILE): Update.
54 * config/sh/linux.mt (TM_FILE): Update.
55 * config/sh/embed.mt (TM_FILE): Update.
56 * config/s390/s390.mt (TM_FILE): Update.
57 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
58 * config/rs6000/rs6000.mt (TM_FILE): Update.
59 * config/rs6000/aix4.mt (TM_FILE): Update.
60 * config/powerpc/vxworks.mt (TM_FILE): Update.
61 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
62 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
63 * config/powerpc/obsd.mt (TM_FILE): Update.
64 * config/powerpc/nbsd.mt (TM_FILE): Update.
65 * config/powerpc/linux.mt (TM_FILE): Update.
66 * config/powerpc/aix.mt (TM_FILE): Update.
67 * config/pa/obsd.mt (TM_FILE): Update.
68 * config/pa/linux.mt (TM_FILE): Update.
69 * config/pa/hppahpux.mt (TM_FILE): Update.
70 * config/pa/hppa64.mt (TM_FILE): Update.
71 * config/pa/hppa.mt (TM_FILE): Update.
72 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
73 * config/mips/wince.mt (TM_FILE): Update.
74 * config/mips/vxmips.mt (TM_FILE): Update.
75 * config/mips/nbsd.mt (TM_FILE): Update.
76 * config/mips/linux.mt (TM_FILE): Update.
77 * config/mips/irix6.mt (TM_FILE): Update.
78 * config/mips/irix5.mt (TM_FILE): Update.
79 * config/mips/embed.mt (TM_FILE): Update.
80 * config/m68k/vxworks68.mt (TM_FILE): Update.
81 * config/m68k/st2000.mt (TM_FILE): Update.
82 * config/m68k/os68k.mt (TM_FILE): Update.
83 * config/m68k/obsd.mt (TM_FILE): Update.
84 * config/m68k/nbsd.mt (TM_FILE): Update.
85 * config/m68k/monitor.mt (TM_FILE): Update.
86 * config/m68k/linux.mt (TM_FILE): Update.
87 * config/m68k/cisco.mt (TM_FILE): Update.
88 * config/ia64/linux.mt (TM_FILE): Update.
89 * config/ia64/aix.mt (TM_FILE): Update.
90 * config/ia64/ia64.mt (TM_FILE): Update.
91 * config/i386/vxworks.mt (TM_FILE): Update.
92 * config/i386/obsd64.mt (TM_FILE): Update.
93 * config/i386/obsd.mt (TM_FILE): Update.
94 * config/i386/nto.mt (TM_FILE): Update.
95 * config/i386/nbsd64.mt (TM_FILE): Update.
96 * config/i386/nbsd.mt (TM_FILE): Update.
97 * config/i386/linux64.mt (TM_FILE): Update.
98 * config/i386/linux.mt (TM_FILE): Update.
99 * config/i386/i386sol2.mt (TM_FILE): Update.
100 * config/i386/i386lynx.mt (TM_FILE): Update.
101 * config/i386/fbsd64.mt (TM_FILE): Update.
102 * config/i386/fbsd.mt (TM_FILE): Update.
103 * config/i386/cygwin.mt (TM_FILE): Update.
104 * config/h8300/h8300.mt (TM_FILE): Update.
105 * config/frv/frv.mt (TM_FILE): Update.
106 * config/cris/cris.mt (TM_FILE): Update.
107 * config/arm/wince.mt (TM_FILE): Update.
108 * config/arm/nbsd.mt (TM_FILE): Update.
109 * config/arm/linux.mt (TM_FILE): Update.
110 * config/arm/embed.mt (TM_FILE): Update.
111 * config/alpha/nbsd.mt (TM_FILE): Update.
112 * config/alpha/fbsd.mt (TM_FILE): Update.
113 * config/alpha/alpha.mt (TM_FILE): Update.
114 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
115 * config/alpha/alpha-linux.mt (TM_FILE): Update.
116
117 Eliminate event_loop_p, always has the value 1.
118 * defs.h (event_loop_p): Delete macro.
119 * breakpoint.c (until_break_command): Simplify.
120 * utils.c (prompt_for_continue): Simplify.
121 * tracepoint.c (read_actions): Simplify.
122 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
123 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
124 (set_prompt, init_main): Simplify.
125 (init_signals, disconnect): Delete, unused.
126 * remote.c (remote_async_resume)
127 (extended_remote_async_create_inferior): Simplify.
128 * mi/mi-interp.c (mi_input): Delete, unused.
129 (mi_interpreter_resume, mi_command_loop): Simplify.
130 * interps.c (current_interp_command_loop): Simplify.
131 * infrun.c (proceed): Simplify.
132 * infcmd.c (run_command, continue_command, step_1, jump_command)
133 (until_command, advance_command, finish_command)
134 (interrupt_target_command): Simplify.
135 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
136
137 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
138 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
139 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
140 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
141 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
142 * mips-tdep.c (mips_dump_tdep): Do not print same.
143
144 2004-09-12 Andrew Cagney <cagney@gnu.org>
145
146 * valprint.c (print_longest): Use fputs_filtered. Make "val"
147 const.
148 * Makefile.in (valprint.o): Delete explict rule.
149
150 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
151 reported by Dave Anderson.
152
153 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
154
155 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
156
157 2004-09-12 Salvador E. Tropea <set@users.sf.net>
158 Andrew Cagney <cagney@gnu.org>
159
160 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
161 (mi_cmd_data_list_register_values)
162 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
163 the register number computation.
164
165 2004-09-12 Andrew Cagney <cagney@gnu.org>
166
167 * ppcnbsd-nat.c: Include "inf-ptrace.h".
168 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
169 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
170 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
171 target.
172 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
173 inf-ptrace.o and inf-child.o.
174 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
175 * Makefile.in: Update dependencies.
176
177 2004-09-11 Andrew Cagney <cagney@gnu.org>
178
179 * language.c (hex_string, hex_string_custom): Move from here ...
180 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
181 (CELLSIZE): Increase to 50.
182 * language.h (hex_string, hex_string_custom): Move from here ...
183 * defs.h: ... to here.
184 * Makefile.in: Update all dependencies.
185
186 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
187
188 * language.c (local_hex_format_custom): Remove.
189 (local_hex_string): Rename to hex_string, use C format, and move to
190 utils.c
191 (local_hex_string_custom): Rename to hex_string_custom and change
192 interface. Now uses C format. Move to utils.c
193 (local_octal_format_custom): Remove.
194 (local_decimal_format_custom): Remove.
195 (unknown_language_defn): Remove language-specific number
196 formatting entries.
197 (auto_language_defn): Ditto.
198 (local_language_defn): Ditto.
199 * language.h (struct language_format_info): Delete declaration.
200 (struct language_defn): Remove language_format_info fields
201 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
202 (local_binary_format): Remove macro.
203 (local_binary_format_prefix): Remove macro.
204 (local_binary_format_specifier): Remove macro.
205 (local_binary_format_suffix): Remove macro.
206 (local_octal_format): Remove macro.
207 (local_octal_format_prefix): Remove macro.
208 (local_octal_format_specifier): Remove macro.
209 (local_octal_format_suffix): Remove macro.
210 (local_decimal_format): Remove macro.
211 (local_decimal_format_prefix): Remove macro.
212 (local_decimal_format_specifier): Remove macro.
213 (local_decimal_format_suffix): Remove macro.
214 (local_hex_format): Remove macro.
215 (local_hex_format_prefix): Remove macro.
216 (local_hex_format_specifier): Remove macro.
217 (local_hex_format_suffix): Remove macro.
218 (local_decimal_format_custom): Remove.
219 (local_octal_format_custom): Remove.
220 (local_hex_format_custom): Remove.
221 (local_hex_string): Rename to hex_string and move to defs.h.
222 (local_hex_string_custom): Rename to hex_string_custom, change
223 interface, and move to defs.h.
224 * utils.c: (int_string): New function.
225 (hex_string): New function (from language.c).
226 (hex_string_custom): New function (from language.c).
227 (octal2str): New function.
228 (decimal2str): Add width parameter.
229 (paddr_u): Use new decimal2str interface.
230 (paddr_d): Ditto.
231 * defs.h (hex_string): Declare.
232 (hex_string_custom): Declare.
233 (int_string): Declare.
234 * printcmd.c (print_scalar_formatted): Remove localized binary
235 formatting.
236 * valprint.c (print_longest): Use int_string.
237 (print_floating): Use C hex format.
238 (print_hex_chars): Ditto.
239 (print_binary_chars): Remove language-specific formatting.
240 (print_octal_chars): Use C octal format.
241 (print_decimal_chars): Delocalize format.
242 (print_decimal): Remove.
243 * ada-lang.c (ada_language_defn): Remove language-specific number
244 formatting entries.
245 * p-lang.c (pascal_language_defn): Ditto.
246 * c-lang.c (c_language_defn): Ditto.
247 (cplus_language_defn): Ditto.
248 (asm_language_defn): Ditto.
249 (minimal_language_defn): Ditto.
250 * f-lang.c (f_language_defn): Ditto.
251 * jv-lang.c (java_language_defn): Ditto.
252 * m2-lang.c (m2_language_defn): Ditto.
253 * scm-lang.c (scm_language_defn): Ditto.
254 * objc-lang.c (objc_language_defn): Ditto.
255 * memattr.c (mem_info_command): Use renamed hex_string_custom with
256 new interface.
257 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
258 * ui-out.c (ui_out_field_core_addr): Ditto.
259 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
260 * exec.c (print_section_info): Ditto.
261 * i387-tdep.c (print_i387_status_word): Ditto.
262 (print_i387_control_word): Ditto.
263 (i387_print_float_info): Ditto.
264 * maint.c (maint_print_section_info): Ditto.
265 * solib.c (info_sharedlibrary_command): Ditto.
266 * somsolib.c (som_sharedlibrary_info_command): Ditto.
267 * symtab.c (print_msymbol_info): Ditto.
268 * tracepoint.c (tracepoints_info): Ditto.
269 * solib-frv.c (lm_base): Ditto.
270 (frv_current_sos): Ditto.
271 (enable_break2): Ditto.
272 (enable_break): Ditto.
273 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
274 (process_one_symbol): Ditto.
275 * infcmd.c (program_info): Ditto.
276 * mdebugread.c (parse_partial_symbols): Ditto.
277 * symfile.c (add_symbol_file_command): Ditto.
278 * cli/cli-cmds.c (edit_command): Ditto.
279 (list_command): Ditto.
280 * infcall.c (call_function_by_hand): Ditto.
281 * remote-vx.c (vx_run_files_info): Ditto.
282 (vx_wait): Ditto.
283 (vx_attach): Ditto.
284 (vx_detach): Ditto.
285 (vx_kill): Ditto.
286 * aix-thread.c (pdc_symbol_addrs): Ditto.
287 (pdc_read_regs): Ditto.
288 (pdc_write_regs): Ditto.
289 (pdc_read_data): Ditto.
290 (pdc_write_data): Ditto.
291 * d10v-tdep.c (display_trace): Ditto.
292 * rs6000-nat.c (find_toc_address): Ditto.
293 * aix-thread.c: Don't include language.h.
294 * buildsym.c: Ditto.
295 * dbxread.c: Ditto.
296 * mdebugread.c: Ditto.
297 * rs6000-nat.c: Ditto.
298 * buildsym.c (make_blockvector): Use renamed hex_string.
299
300 2004-09-10 Jason Molenda (jmolenda@apple.com)
301
302 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
303 chars after 'if' or 'while' commands in user-defined commands.
304
305 2004-09-08 Jim Blandy <jimb@redhat.com>
306
307 Fix bug reported and analyzed by Olivier Crete:
308 * symfile.c (copy_section_addr_info): New function.
309 (symbol_file_add_with_addrs_or_offsets): Use it to save the
310 original set of address arguments, instead of handwritten code
311 that uses one length to allocate and a different length to
312 initialize. Use make_cleanup_free_section_addr_info.
313 * symfile.h (copy_section_addr_info): New declaration.
314 * utils.c: #include "symfile.h".
315 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
316 New functions.
317 * defs.h (make_cleanup_free_section_addr_info): New declaration.
318 * Makefile.in (utils.o): Update dependencies.
319
320 2004-09-08 Andrew Cagney <cagney@gnu.org>
321
322 * thread-db.c (keep_thread_db): Delete.
323 (thread_db_new_objfile, thread_db_create_inferior)
324 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
325
326 2004-09-08 Mark Kettenis <kettenis@gnu.org>
327
328 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
329 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
330 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
331 (i386_frameless_signal_p): Remove prototype.
332 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
333 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
334 I386_SSE_NUM_REGS.
335 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
336 instead of FP0_REGNUM.
337 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
338 of FP0_REGNUM and FPC_REGNUM.
339
340 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
341 (sunos_solib_create_inferior_hook): Don't call
342 sunos_relocate_main_executable.
343
344 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
345 solib_svr4_fetch_link_map_offsets to
346 svr4_ilp32_fetch_link_map_offsets.
347 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
348 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
349 svr4_ilp32_fetch_link_map_offsets.
350 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
351
352 2004-09-07 Jim Blandy <jimb@redhat.com>
353
354 * frame.h (frame_register): Doc fix.
355
356 2004-09-07 Andrew Cagney <cagney@gnu.org>
357
358 * vx-share/wait.h: Delete #ifdef USG.
359 * utils.c (request_quit): Ditto.
360 * tui/tui.c (tui_reset): Ditto.
361 * remote.c: Ditto.
362 * remote-sds.c: Ditto.
363 * remote-rdi.c: Ditto.
364 * mdebugread.c: Ditto.
365 * m68klinux-nat.c: Ditto.
366 * infttrace.c: Ditto.
367 * infptrace.c: Ditto.
368 * i386v-nat.c: Ditto.
369 * exec.c: Ditto.
370 * dbxread.c: Ditto.
371 * core-aout.c: Ditto.
372
373 2004-09-05 Joel Brobecker <brobecker@gnat.com>
374
375 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
376 heuristic_proc_desc.
377 (mips_insn32_frame_cache): Likewise.
378
379 2004-09-04 Joel Brobecker <brobecker@gnat.com>
380
381 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
382 left behind by error.
383
384 2004-09-04 Joel Brobecker <brobecker@gnat.com>
385
386 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
387 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
388
389 2004-09-04 Joel Brobecker <brobecker@gnat.com>
390
391 * config/rs6000/xm-aix4.h: Remove this file.
392 * config/rs6000/aix4.mh (XM_FILE): Delete.
393
394 2004-09-04 Joel Brobecker <brobecker@gnat.com>
395
396 * config/rs6000/xm-rs6000.h: Remove this file.
397 * config/rs6000/rs6000.mh (XM_FILE): Remove.
398
399 2004-09-03 Andrew Cagney <cagney@gnu.org>
400
401 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
402 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
403 only use.
404
405 * mips-tdep.c (temp_saved_regs): Delete.
406 (set_reg_offset): Replace saved_regs parameter with this_cache.
407 (heuristic_proc_desc, mips16_heuristic_proc_desc)
408 (mips32_heuristic_proc_desc): Add this_cache parameter.
409 (mips_insn32_frame_cache, mips_insn16_frame_cache)
410 (after_prologue): Pass a NULL this_cache.
411
412 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
413 non-kernel trap prologues.
414
415 * mips-tdep.c (find_proc_desc): Delete function.
416 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
417 simplify.
418 (mips_insn16_frame_cache): Replace find_proc_desc with code from
419 mips_insn32_frame_cache.
420
421 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
422 Simplify as NEXT_FRAME is NULL.
423 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
424
425 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
426 local variable.
427 (mips_skip_prologue): Update.
428
429 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
430 "cur_frame" parameter.
431 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
432 (mips_insn32_frame_cache, find_proc_desc): Update
433
434 * config/vax/nm-obsd.h: Delete file.
435 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
436 * config/vax/nm-nbsd.h: Delete file.
437 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
438 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
439 * config/sh/nm-nbsd.h: Delete file.
440 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
441 * config/rs6000/nm-rs6000ly.h: Delete file.
442 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
443 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
444 * config/powerpc/nm-obsd.h: Delete file.
445 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
446 * config/powerpc/nm-nbsd.h: Delete file.
447 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
448 * config/pa/nm-obsd.h: Delete file.
449 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
450 * config/mips/nm-nbsd.h: Delete file.
451 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
452 * config/m88k/nm-obsd.h: Delete file.
453 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
454 * config/m68k/nm-nbsd.h: Delete file.
455 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
456 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
457 * config/i386/nm-nbsd.h: Delete file.
458 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
459 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
460 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
461 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
462 * config/i386/nm-i386lynx.h: Delete file.
463 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
464 * config/arm/nm-nbsd.h: Delete file.
465 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
466 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
467
468 * config/i386/tm-fbsd.h: Delete file.
469 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
470 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
471
472 * config/rs6000/tm-rs6000-aix4.h: Delete file.
473 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
474 * config/rs6000/aix4.mt (TM_FILE): Set to
475 config/rs6000/tm-rs6000.h.
476 * config/powerpc/tm-ppc-aix.h: Delete file.
477 * config/powerpc/aix.mt (TM_FILE): Set to
478 config/rs6000/tm-rs6000.h.
479 * config/m68k/tm-linux.h: Delete file.
480 * config/m68k/linux.mt (TM_FILE): Set to solib.h
481 * config/i386/tm-linux64.h: Delete file.
482 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
483 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
484
485 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
486 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
487 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
488 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
489 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
490 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
491 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
492 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
493 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
494
495 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
496 gdb_host_cpu.
497
498 2004-09-02 Joel Brobecker <brobecker@gnat.com>
499
500 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
501 Minor reformatting. Some code factoring.
502
503 2004-09-02 Andrew Cagney <cagney@gnu.org>
504
505 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
506 * config/vax/tm-nbsd.h: Delete file.
507 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
508 * config/sparc/tm-vxworks.h: Delete file.
509 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
510 * config/sparc/tm-nbsd.h: Delete file.
511 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
512 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
513 * config/sparc/tm-linux.h: Delete file.
514 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
515 * config/s390/tm-linux.h: Delete file.
516 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
517 * config/pa/tm-bsd.h: Delete file.
518 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
519 * config/m68k/tm-obsd.h: Delete file.
520 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
521 * config/m68k/tm-nbsd.h: Delete file.
522 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
523 * config/i386/tm-vxworks.h: Delete file.
524 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
525 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
526 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
527 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
528 * config/i386/tm-nbsd.h: Delete file.
529 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
530 * config/i386/tm-i386lynx.h: Delete file.
531 * config/cris/cris.mt (TM_FILE): Set to solib.h.
532 * config/cris/tm-cris.h: Delete file.
533
534 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
535 * configure: Re-generate.
536 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
537 * config/arm/tm-nbsd.h: Delete file.
538
539 * config/powerpc/tm-ppcle-sim.h: Delete.
540 * config/powerpc/tm-ppcle-eabi.h: Delete.
541 * config/powerpc/tm-nbsd.h: Delete.
542 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
543 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
544 tm-ppcle-eabi.h.
545
546 * config/i386/nto.mh (NAT_FILE): Delete.
547 * config/i386/nm-nto.h: Delete.
548
549 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
550 * config/m68k/tm-os68k.h: Ditto.
551 * config/m68k/tm-monitor.h: Ditto.
552 * config/m68k/tm-cisco.h: Ditto.
553 * config/m68k/st2000.mt (TM_FILE): Delete.
554 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
555 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
556 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
557 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
558
559 * config/m68k/tm-st2000.h: Delete.
560 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
561 * config/sparc/fbsd.mt (TM_FILE): Delete.
562 * config/sparc/tm-fbsd.h: Delete.
563
564 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
565 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
566 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
567
568 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
569 GDB_TM_FILE and GDB_XM_FILE.
570 * gdbarch.c: Re-generate.
571 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
572 quotes in macro definition.
573 * configure.in: Re-generate.
574
575 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
576 validating architecture methods.
577 * gdbarch.c: Re-generate.
578
579 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
580 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
581 GDB_MULTI_ARCH_PARTIAL.
582 * gdbarch.h: Re-generate.
583
584 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
585 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
586 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
587 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
588 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
589 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
590 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
591 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
592 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
593 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
594 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
595 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
596
597 2004-09-01 Andrew Cagney <cagney@gnu.org>
598
599 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
600 and main_func_highpc.
601 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
602 * objfiles.c (init_entry_point_info, objfile_relocate): Update
603 * nlmread.c (nlm_symfile_read): Update.
604
605 2004-09-01 Joel Brobecker <brobecker@gnat.com>
606
607 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
608 (mips_insn32_frame_cache): Inline call to find_proc_desc.
609 (find_proc_desc): Remove dead code.
610
611 2004-09-01 Joel Brobecker <brobecker@gnat.com>
612
613 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
614
615 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
616
617 * observer.sh: Add struct so_list declaration.
618 * Makefile.in: Add dependencies on observer.h for solib.c and
619 breakpoint.c.
620 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
621 function.
622 (_initialize_breakpoint): Register
623 disable_breakpoints_in_unloaded_shlib as an observer of the
624 "solib unloaded" observation event.
625 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
626 call decode_line_1 so unfound breakpoint errors are silent.
627 * solib.c (update_solib_list): When a solib is discovered to have
628 been unloaded by the program, notify all observers of the
629 "solib unloaded" observation event.
630
631 2004-09-01 Andrew Cagney <cagney@gnu.org>
632
633 * frame.c: Include "objfiles.h".
634 (inside_main_func): New function.
635 (get_prev_frame): Use new inside_main_func.
636 * Makefile.in (frame.o): Update dependencies.
637 * defs.h (inside_main_func): Delete declaration.
638 * blockframe.c (inside_main_func): Delete function.
639
640 2004-08-31 Jim Blandy <jimb@redhat.com>
641
642 * dwarf2read.c (is_vtable_name): New function, based on logic from
643 read_structure_type, but passing the correct length to strncmp,
644 and using 'sizeof' instead of 'strlen'.
645 (read_structure_type): Call it.
646
647 2004-08-31 Joel Brobecker <brobecker@gnat.com>
648
649 * config/powerpc/aix.mh: Add comment.
650
651 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
652
653 * MAINTAINERS: Add self to Write-After-Approval.
654
655 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
656
657 * MAINTAINERS: Add self to Write-After-Approval.
658
659 2004-08-30 Andrew Cagney <cagney@gnu.org>
660
661 Fix PR breakpoints/1757.
662 * infrun.c (struct execution_control_state): Replace
663 remove_breakpoints_on_following_step with
664 step_after_step_resume_breakpoint.
665 (init_execution_control_state): Update.
666 (handle_inferior_event): For signals, when stepping off a
667 breakpoint, set step_after_step_resume_breakpoint. When
668 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
669 (keep_going): Delete code handling
670 remove_breakpoints_on_following_step.
671
672 2004-08-29 David Lecomber <david@streamline-computing.com>
673
674 Fix PR gdb/648
675 * language.h (enum array_ordering): New enum.
676 * language.h (struct language_defn): New la_array_ordering
677 attribute.
678 * language.c (unknown_language_defn, auto_language_defn)
679 (local_language_defn): Ditto.
680 * ada-lang.c (ada_language_defn): Ditto.
681 * c-lang.c (c_language_defn, cplus_language_defn)
682 (asm_language_defn, minimal_language_defn): Ditto.
683 * f-lang.c (f_language_defn): Ditto.
684 * jv-lang.c (java_language_defn): Ditto.
685 * m2-lang.c (f_language_defn): Ditto.
686 * objc-lang.c (objc_language_defn): Ditto.
687 * p-lang.c (pascal_language_defn): Ditto.
688 * scm-lang.c (scm_language_defn): Ditto.
689 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
690 oriented large to small in type structure.
691 * dwarf2read.c (read_array_order): New function.
692 (read_array_type): Use read_array_order to check row/column
693 major ordering.
694
695 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
696
697 * target.c (target_resize_to_sections): Check
698 current_target.to_sections for an old value when updating.
699
700 2004-08-27 Joel Brobecker <brobecker@gnat.com>
701
702 * procfs.c (dbx_link_bpt_addr): New static global variable.
703 (dbx_link_shadow_contents): New static global variable.
704 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
705 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
706 if we just hit it.
707 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
708 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
709 from run to run.
710 (procfs_create_inferior): Remove syssgi syscall-exit notifications
711 after the inferior has been forked.
712 (remove_dbx_link_breakpoint): New function.
713 (dbx_link_addr): New function.
714 (insert_dbx_link_bpt_in_file): New function.
715 (insert_dbx_link_bpt_in_region): New function.
716 (insert_dbx_link_breakpoint): New function.
717 (proc_trace_syscalls_1): New function, extracted from
718 proc_trace_syscalls.
719 (proc_trace_syscalls): Replace extract code by call to
720 proc_trace_syscalls_1.
721 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
722 is no longer valid.
723
724 2004-08-25 Jim Blandy <jimb@redhat.com>
725
726 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
727
728 2004-08-25 Andrew Cagney <cagney@gnu.org>
729
730 * infrun.c (struct execution_control_state): Delete field
731 "stepping_through_sigtramp".
732 (init_execution_control_state): Do not set same.
733 (context_switch): Do not pass same to save_infrun_state and
734 load_infrun_state.
735 * gdbthread.h (struct thread_info): Delete field
736 stepping_through_sigtramp.
737 (save_infrun_state, load_infrun_state): Delete parameter
738 stepping_through_sigtramp.
739 * thread.c (load_infrun_state, save_infrun_state): Update.
740
741 * infrun.c: Re-indent. Move expression operators to the beginning
742 of the line. Remove long disabled #if 0 code.
743
744 2004-08-24 Andrew Cagney <cagney@gnu.org>
745
746 * doublest.h (floatformat_ieee_quad): Rename
747 floatformat_ia64_quad.
748 * doublest.c (floatformat_ieee_quad): Rename
749 floatformat_ia64_quad.
750 (_initialize_doublest): Update.
751
752 2004-08-24 Jim Blandy <jimb@redhat.com>
753
754 * dwarf2expr.h (struct dwarf_expr_context): New members
755 'num_pieces' and 'pieces', for returning the result of an
756 expression that uses DW_OP_piece.
757 (struct dwarf_expr_piece): New struct type.
758 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
759 pieces.
760 (free_dwarf_expr_context): Free pieces, if any.
761 (add_piece): New function.
762 (execute_stack_op): Implement DW_OP_piece.
763 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
764 expression is a list of pieces, print an error message.
765 (dwarf2_loc_desc_needs_frame): If the expression yields
766 pieces, and any piece is in a register, then we need a frame.
767
768 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
769 the stack until we've decided what sort of result the evaluation
770 has produced. Use separate variables, with more specific names.
771
772 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
773
774 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
775 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
776 (arm_netbsd_init_abi_common): Register them.
777
778 2004-08-22 Mark Kettenis <kettenis@gnu.org>
779
780 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
781
782 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
783 safe_frame_unwind_memory instead of target_read_memory.
784
785 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
786 Reorder includes.
787 (fetch_register, store_register): Remove prototypes.
788 (child_resume): Reorganize code and comments such that it is
789 grouped a bit more logically.
790 (attach): Explicitly compare errno against 0.
791 (detach): Likewise. Use perror_with_name instead of
792 print_sys_errmsg.
793 * Makefile.in (infptrace.o): Update dependencies.
794
795 * ia64-linux-nat.c: Update copyright year.
796 (fetch_debug_register, store_debug_register)
797 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
798 PTRACE_TYPE_ARG3.
799 * config/ia64/nm-linux.h: Update copyright year.
800 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
801
802 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
803 from CORE_ADDR to struct frame_info *. Use
804 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
805 (amd64_linux_sigtramp_p): Adjust for changed signature of
806 and64_linux_sigtramp_start
807
808 * gdb_ptrace.h: GNU/Linux.
809
810 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
811 Remove defines.
812
813 * infptrace.c: Include "gdb_assert.h".
814 (PTRACE_XFER_TYPE): Remove define.
815 (offsetof): Only define if U_REGS_OFFSET isn't defined.
816 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
817 Tweak comment.
818 (fetch_inferior_registers, store_inferior_registers): Remove
819 redundant culry braces. Tweak comment. s/regno/regnum.
820 * Makefile.in (infptrace.o): Update dependencies.
821
822 * configure.in: Change test for return type of ptrace to default
823 to `long' instead of `int'.
824 * configure: Regenerate.
825
826 2004-08-21 Mark Kettenis <kettenis@gnu.org>
827
828 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
829
830 * configure.in: Check for ttrace function.
831 * configure, config.in: Regenerate.
832
833 * gdb_ptrace.h: New file.
834 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
835 <sys/ptrace.h>.
836 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
837 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
838 (attach): Don't define PT_ATTACH.
839 (detach): Don't define PT_DETACH.
840 * Makefile.in (gdb_ptrace_h): New variable.
841 (infptrace.o): Update dependencies.
842
843 2004-08-16 Mark Kettenis <kettenis@gnu.org>
844
845 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
846 instead of `int' if not already defined.
847 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
848 PTRACE_TYPE_ARG3.
849 * infptrace.c (call_ptrace): Revert change that replaced
850 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
851
852 2004-08-15 Mark Kettenis <kettenis@gnu.org>
853
854 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
855 Remove defines.
856
857 * linux-nat.c (kill_inferior): Add missing third and fourth
858 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
859
860 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
861 PTRACE_TYPE_RET.
862
863 * proc-why.c (proc_prettyfprint_why): Fix format string.
864
865 * solib-osf.c (osf_current_sos): Remove unsused label.
866
867 * configure.in: Add <ncurses/ncurses.h> to the list of possible
868 curses headers.
869 * configure, config.in: Regenerate.
870 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
871 <ncurses/ncurses.h>.
872
873 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
874 * config/nm-nbsd.h: Update copyright year.
875 (PTRACE_ARG3_TYPE): Remove define.
876
877 * sparc-nat.c (fetch_inferior_registers)
878 (store_inferior_registers, sparc_xfer_wcookie):
879 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
880
881 * alphabsd-nat.c (fetch_inferior_registers):
882 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
883 PTRACE_TYPE_ARG3.
884 * amd64bsd-nat.c (fetch_inferior_registers)
885 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
886 PTRACE_TYPE_ARG3.
887 * armnbsd-nat.c: Update copyright year.
888 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
889 (store_register, store_regs, store_fp_register, store_fp_regs):
890 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
891 * hppabsd-nat.c (fetch_inferior_registers)
892 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
893 PTRACE_TYPE_ARG3.
894 * i386bsd-nat.c (fetch_inferior_registers)
895 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
896 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
897 * m68kbsd-nat.c (fetch_inferior_registers)
898 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
899 PTRACE_TYPE_ARG3.
900 * m88kbsd-nat.c (fetch_inferior_registers)
901 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
902 PTRACE_TYPE_ARG3.
903 * mipsnbsd-nat.c: Update copyright year.
904 (fetch_inferior_registers, store_inferior_registers):
905 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
906 * ns32knbsd-nat.c: Update copyright year.
907 (fetch_inferior_registers, store_inferior_registers):
908 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
909 * ppcnbsd-nat.c (fetch_inferior_registers):
910 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
911 PTRACE_TYPE_ARG3.
912 * ppcobsd-nat.c (fetch_inferior_registers):
913 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
914 PTRACE_TYPE_ARG3.
915 * shnbsd-nat.c: Update copyright year.
916 (fetch_inferior_registers, store_inferior_registers):
917 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
918 * vaxbsd-nat.c (fetch_inferior_registers)
919 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
920 PTRACE_TYPE_ARG3.
921
922 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
923 PTRACE_TYPE_ARG3.
924 * infptrace.c (call_ptrace, child_resume, attach, detach)
925 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
926 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
927 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
928 PTRACE_TYPE_ARG3.
929
930 2004-08-14 Mark Kettenis <kettenis@gnu.org>
931
932 * defs.h: Remove out-of-date comment.
933 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
934 [!GETENV_PROVIDED] (getenv): Remove prototype.
935
936 * standalone.c: Remove file.
937 * Makefile.in (standalone.o): Remove dependency.
938
939 * i386-linux-nat.c (dummy_sse_values): Remove function and
940 prototype.
941 (i386_linux_dr_get): Fix typo in comment.
942 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
943
944 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
945
946 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
947 from declaration.
948 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
949 from definition.
950
951 2004-08-13 Mark Kettenis <kettenis@gnu.org>
952
953 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
954 parenthesis in definition.
955 * configure: Regenerated.
956
957 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
958
959 * PROBLEMS: Mention build/1411.
960
961 2004-08-09 Robert Millan <robertmh@gnu.org>
962
963 Committed by Nathanael Nerode.
964 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
965 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
966
967 2004-08-12 Andrew Cagney <cagney@gnu.org>
968
969 * NEWS: Mention fixes in GDB 6.2.1.
970 * PROBLEMS: Remove mention of mips-irix.
971
972 2004-08-11 Joel Brobecker <brobecker@gnat.com>
973
974 * config/powerpc/xm-aix.h: Delete.
975 * config/powerpc/aix.mh (MH_FILE): Remove.
976 * config/powerpc/aix432.mh (MH_FILE): Remove.
977
978 2004-08-11 Joel Brobecker <brobecker@gnat.com>
979
980 * config/powerpc/aix.mh: Remove obsolete comment.
981 * config/powerpc/aix432.mh: Likewise.
982
983 2004-08-11 Joel Brobecker <brobecker@gnat.com>
984
985 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
986
987 2004-08-11 Joel Brobecker <brobecker@gnat.com>
988
989 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
990 this file is now empty.
991 * config/xm-aix4.h: Remove, this file is no longer included
992 anywhere.
993
994 2004-08-11 Joel Brobecker <brobecker@gnat.com>
995
996 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
997 that file is now empty.
998 (termdef): Remove prototype, function no longer used.
999
1000 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1001
1002 * doc/gdbint.texinfo (Host Definition): Remove documentation
1003 for USE_O_NOCTTY, no longer used.
1004 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1005 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1006
1007 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1008
1009 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1010 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1011 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1012
1013 2004-08-11 Mark Kettenis <kettenis@gnu.org>
1014
1015 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1016 instead of FIVE_ARG_PTRACE.
1017
1018 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1019 (new_tty): Use O_NOCTTY unconditionally.
1020
1021 2004-08-10 Mark Kettenis <kettenis@gnu.org>
1022
1023 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1024 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1025 fflush on stdout.
1026
1027 2004-08-10 Joel Brobecker <brobecker@gnat.com>
1028
1029 * xcoff_symfile_finish: Replace last call to xmfree by call
1030 to xfree.
1031
1032 2004-08-10 Andrew Cagney <cagney@gnu.org>
1033
1034 * main.c (captured_main): Delete call to init_malloc.
1035 * defs.h (init_malloc): Delete declaration.
1036 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1037 (init_malloc): Delete functions.
1038
1039 * defs.h (xmfree): Delete.
1040 * utils.c (xmfree): Delete function.
1041 (xfree): Inline calls to xmfree and mfree.
1042 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1043 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1044 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1045 * somread.c (som_symfile_finish): Ditto.
1046 * objfiles.c (allocate_objfile, free_objfile):
1047 * nlmread.c (nlm_symfile_finish): Ditto.
1048 * hpread.c (hpread_symfile_finish): Ditto.
1049 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1050 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1051 * coffread.c (coff_symfile_finish): Ditto.
1052
1053 * defs.h (xmcalloc): Delete declaration.
1054 * utils.c (xmcalloc): Delete.
1055 (xcalloc): Inline calls to xmcalloc and mcalloc.
1056 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1057 xcalloc and xfree.
1058 * symtab.c (create_demangled_names_hash): Ditto.
1059
1060 * defs.h (xmrealloc): Delete.
1061 * utils.c (xmrealloc): Delete.
1062 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1063 * symmisc.c (extend_psymbol_list): Use xrealloc.
1064 * source.c (find_source_lines): Ditto.
1065 * hpread.c (hpread_lookup_type): Ditto.
1066 * dbxread.c (add_bincl_to_list): Ditto.
1067
1068 * utils.c (xmmalloc): Delete.
1069 (xmalloc): Inline xmmalloc and mmalloc calls.
1070 (msavestring): Use xmalloc.
1071 * defs.h (xmmalloc): Delete declaration.
1072 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1073 xmmalloc.
1074 * symmisc.c (extend_psymbol_list): Ditto.
1075 * symfile.c (init_psymbol_list): Ditto.
1076 * source.c (find_source_lines): Ditto.
1077 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
1078 * elfread.c (elf_symtab_read): Ditto.
1079 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
1080 * coffread.c (coff_symfile_init): Ditto.
1081
1082 2004-08-10 David Carlton <carlton@bactrian.org>
1083
1084 * MAINTAINERS: Remove David Carlton from c++ testsuite
1085 maintainers.
1086
1087 2004-08-10 Jerome Guitton <guitton@gnat.com>
1088
1089 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
1090 print a line feed before the prompt.
1091
1092 2004-08-10 Mark Kettenis <kettenis@gnu.org>
1093
1094 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
1095
1096 2004-08-09 Joel Brobecker <brobecker@gnat.com>
1097
1098 General cleanup of the AIX xm include file:
1099 * config/xm-aix4.h (fd_set): Remove undefine.
1100 Remove include of <sys/select.h>.
1101 (HAVE_TERMIO): Remove define.
1102 (USG): Likewise.
1103 (NULL): Remove redefine.
1104 (alloca): Remove #pragma.
1105 (vfork): Remove define.
1106 (termdef): Remove.
1107 (SIGWINCH_HANDLER): Remove.
1108 (SIGWINCH_HANDLER_BODY): Remove.
1109
1110 2004-08-09 Mark Kettenis <kettenis@gnu.org>
1111
1112 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
1113 GDB_OSABI_OPENBSD_ELF.
1114
1115 2004-08-07 Robert Millan <robertmh@gnu.org>
1116
1117 * bsd-kvm.c: Check for nlist.h before including it.
1118
1119 2004-08-09 Mark Kettenis <kettenis@gnu.org>
1120
1121 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
1122 sigcontext' offset consistency checks for ancient BSD.
1123
1124 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
1125
1126 * configure.in: Check for <sys/types.h>. Check return and
1127 argument types of ptrace.
1128 * configure, config.in: Regenerate.
1129
1130 2004-08-09 Jim Blandy <jimb@redhat.com>
1131
1132 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
1133 rs6000_register_sim_regno): Doc fixes.
1134
1135 2004-08-08 Joel Brobecker <brobecker@gnat.com>
1136
1137 * mips-tdep.c: Include "floatformat.h".
1138 (n32n64_floatformat_always_valid): New function.
1139 (floatformat_n32n64_long_double_big): New constant.
1140 (mips_gdbarch_init): Set size and format of long double
1141 for N32 and N64 ABIs.
1142 * Makefile.in (mips-tdep.o): Update dependencies.
1143
1144 2004-08-08 Andrew Cagney <cagney@gnu.org>
1145
1146 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
1147 print. Improve script's error messages.
1148 * gdbarch.h: Re-generate.
1149
1150 * gdbarch.sh (pformat): New function.
1151 (float_format, double_format, long_double_format): List with bit
1152 members. Use pformat when printing.
1153 * gdbarch.c, gdbarch.h: Re-generate.
1154
1155 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1156
1157 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1158 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1159 (ppcnbsd_supply_pcb): New function.
1160 (_initialize_ppcnbsd_nat): New prototype and function.
1161 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1162 (LOADLIBES): New variable.
1163 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1164
1165 2004-08-08 Andrew Cagney <cagney@gnu.org>
1166
1167 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1168 (builtin_type_ieee_double, builtin_type_ia64_quad)
1169 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1170 BE/LE floating-point types.
1171 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1172 (builtin_type_ieee_double, builtin_type_ia64_quad)
1173 (builtin_type_ia64_spill): Declare.
1174 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1175 (floatformat_ieee_double, floatformat_arm_ext)
1176 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1177 of LE/BE floatformats.
1178 * doublest.h: (struct floatformat, floatformat_ieee_single)
1179 (floatformat_ieee_double, floatformat_arm_ext)
1180 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1181
1182 2004-08-08 Mark Kettenis <kettenis@gnu.org>
1183
1184 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1185
1186 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1187 instead of regcache_raw_supply when storing the registers.
1188
1189 * i386gnu-nat.c: Update copyright year.
1190 (gnu_store_registers): Don't use deprecated_registers and
1191 deprecated_registers_valid. Use regcache_valid_p and
1192 regcache_raw_supply instead.
1193
1194 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1195 frame_pc_unwind.
1196
1197 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1198 variables. Incapitalized "process".
1199
1200 * configure.in: Add cursesX to the list of possible curses libs.
1201 Add cursesX.h to the list of possible curses headers.
1202 * configure, config.in: Regenerate.
1203
1204 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1205
1206 * configure.in: Test for struct lwp in <sys/lwp.h>.
1207 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1208 the offset of l_addr in struct lwp.
1209
1210 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1211
1212 * bsd-kvm.c: Include "gdbcore.h"
1213 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
1214
1215 2004-08-07 Andrew Cagney <cagney@gnu.org>
1216
1217 * gdbtypes.c (build_flt, build_complex): New functions.
1218 (gdbtypes_post_init): Use.
1219
1220 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
1221
1222 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
1223 through to builtin_type_uint128.
1224
1225 * c-exp.y: Use builtin_type function to obtain builtin types.
1226
1227 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
1228 builtin_uint128.
1229 * gdbtypes.c (gdbtypes_post_init): Update.
1230 (build_gdbtypes): Move initialization of builtin_type_int0
1231 through to builtin_type_uint128 from here ...
1232 (_initialize_gdbtypes): ... to here.
1233 * d10v-tdep.c (d10v_register_type): Update.
1234
1235 * doublest.c: Update copyright.
1236 (floatformat_from_length): Call error when floatformat is NULL.
1237 (extract_floating_by_length): Remove NULL fmt check.
1238 (store_floating_by_length): Ditto.
1239
1240 2004-08-07 Andrew Cagney <cagney@gnu.org>
1241
1242 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
1243 that the register is valid.
1244
1245 2004-08-05 Mark Kettenis <kettenis@chello.nl>
1246
1247 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1248 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
1249 struct frame_info *. Use safe_frame_unwind_memory instead of
1250 deprecated_read_memory_nobpt.
1251 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
1252 changed signature of i386_linux_sigtramp_start and
1253 i386_linux_rt_sigtramp_start.
1254
1255 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
1256 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
1257 instead of deprecated_read_memory_nobpt.
1258 (i386nbsd_sigtramp_p): Adjust for changed signature of
1259 i386nbsd_sigtramp_offset.
1260
1261 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
1262 safe_frame_unwind_memory instead of target_read_memory.
1263
1264 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1265 !NO_SYS_FILE.
1266 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
1267 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
1268 (_initialize_kernel_u_addr): Remove prototype and function.
1269 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1270 !NO_SYS_FILE.
1271 * xcoffread.c: Likewise.
1272
1273 2004-08-06 Mark Kettenis <kettenis@gnu.org>
1274
1275 * vax-nat.c: New file.
1276 * vaxbsd-nat.c: Tweak comment.
1277 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
1278 vaxnbsd-tdep.c.
1279 (vax-nat.o): New dependency.
1280 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
1281 (vax-*-ultrix2*): Remove.
1282 * config/vax/vax.mh: New file.
1283 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
1284 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
1285 (vax_register_u_addr): New prototype.
1286 (REGISTER_U_ADDR): Define using vax_register_u_addr.
1287 * config/vax/vaxult2.mh: Remove file.
1288 * config/vax/vaxult.mh: Remove file.
1289 * config/vax/vaxbsd.mh: Remove file.
1290 * config/vax/vax.mt (TM_FILE): Remove.
1291 * config/vax/tm-vaxbsd.h: Remove file.
1292
1293 2004-08-06 Joel Brobecker <brobecker@gnat.com>
1294
1295 * aix-thread.c (get_signaled_thread): New function.
1296 (iter_trap): Delete, no longer used.
1297 (iter_tid): New function.
1298 (pd_update): Find the thread that received the SIGTRAP signal
1299 by first locating the kernel thread, and then finding its
1300 associated thread.
1301
1302 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
1303
1304 * lin-lwp.c (child_wait): Continue inferior after processing
1305 PTRACE_EVENT_CLONE event.
1306
1307 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
1308
1309 * MAINTAINERS: Add self to Write-After-Approval.
1310
1311 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
1312
1313 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
1314 libunwind-xxxx.so" where xxxx is UNW_TARGET.
1315
1316 2004-08-05 Andrew Cagney <cagney@gnu.org>
1317
1318 * config/xm-sysv4.h: Delete file.
1319 * config/mips/xm-irix5.h: Delete file.
1320 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
1321 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
1322 * config/ia64/xm-aix.h: Delete file.
1323 * config/ia64/aix.mh (XM_FILE): Delete.
1324 * config/pa/xm-hppah.h: Delete file.
1325 * config/pa/hpux11w.mh (XM_FILE): Delete.
1326 * config/pa/hpux11.mh (XM_FILE): Delete.
1327 * config/pa/hpux1020.mh (XM_FILE): Delete.
1328 * config/pa/hppahpux.mh (XM_FILE): Delete.
1329
1330 * config/alpha/xm-alphalinux.h: Delete file.
1331 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
1332 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
1333 * config/alpha/xm-alphaosf.h: Delete file.
1334 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
1335 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
1336 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
1337 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
1338
1339 * config/i386/xm-i386v.h: Delete file.
1340 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
1341 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
1342 * config/i386/xm-i386sco.h: Delete file.
1343 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
1344 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
1345 * config/i386/xm-i386v4.h: Delete file.
1346 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
1347 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
1348 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
1349 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
1350
1351 * config/vax/xm-vax.h: Delete file.
1352 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1353 * config/vax/xm-vaxult2.h: Delete file.
1354 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1355 * config/vax/vaxult2.mh (XM_FILE): Delete.
1356 * config/vax/xm-vaxult.h: Delete file.
1357 * config/vax/vaxult.mh (XM_FILE): Delete.
1358 * config/vax/xm-vaxbsd.h: Delete file.
1359 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1360
1361 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1362 * gdbarch.h, gdbarch.c: Re-generate.
1363 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1364 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1365 * frame.h: Delete deprecated_read_fp from comments.
1366 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1367 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1368
1369 2004-08-04 Mark Kettenis <kettenis@gnu.org>
1370
1371 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
1372 trampoline in OpenBSD 3.5-current.
1373
1374 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
1375 SSE registers.
1376
1377 * Makefile.in: Remove embedded page breaks.
1378
1379 2004-08-04 Jim Blandy <jimb@redhat.com>
1380
1381 * regcache.c (regcache_raw_read): Assert that, after calling
1382 target_fetch_registers, the register we're reading is cached.
1383
1384 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1385 a call to 'internal_error', with a more helpful error message.
1386 * rs6000-tdep.c (e500_pseudo_register_read,
1387 e500_pseudo_register_write, rs6000_store_return_value): Same.
1388
1389 2004-08-04 Andrew Cagney <cagney@gnu.org>
1390
1391 * Makefile.in: Update dependencies.
1392
1393 2004-08-04 Jim Blandy <jimb@redhat.com>
1394
1395 Change the layout of the PowerPC E500 raw register cache to allow
1396 the lower 32-bit halves of the GPRS to be their own raw registers,
1397 not pseudoregisters.
1398 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1399 add ppc_ev0_upper_regnum flag.
1400 * rs6000-tdep.c: #include "reggroups.h".
1401 (spe_register_p): Recognize the ev upper half registers as SPE
1402 registers.
1403 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1404 registers.
1405 (e500_move_ev_register): New function.
1406 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1407 vector registers are the pseudo-registers now, formed by splicing
1408 together the gprs and the upper-half registers.
1409 (e500_register_reggroup_p): New function.
1410 (P): Macro deleted.
1411 (P8, A4): New macro.
1412 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1413 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1414 macros.
1415 (registers_e500): Rearrange register set so that the raw register
1416 set contains 32-bit GPRs and upper-half registers, and the SPE
1417 vector registers become pseudo-registers.
1418 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1419 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1420 register numbers are now the same for the E500 as they are for
1421 other PowerPC variants. Register e500_register_reggroup_p as the
1422 register group function for the E500.
1423 * Makefile.in (rs6000-tdep.o): Update dependencies.
1424
1425 Adapt PPC E500 native support to the new raw regcache layout.
1426 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1427 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1428 (fetch_spe_register, store_spe_register): Handle fetching/storing
1429 all the SPE registers at once, if regno == -1. These now take
1430 over the job of fetch_spe_registers and store_spe_registers.
1431 (fetch_spe_registers, store_spe_registers): Deleted.
1432 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1433 unconditionally; they're always raw. Fetch/store SPE upper half
1434 registers, if present, instead of ev registers.
1435 (fetch_register, store_register): Remove sanity checks: gprs are
1436 never pseudo-registers now, so we never need to even mention any
1437 registers that are ever pseudoregisters.
1438
1439 Use a fixed register numbering when communicating with the PowerPC
1440 simulator.
1441 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1442 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1443 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1444 New functions.
1445 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1446 init_sim_regno_table.
1447 * Makefile.in (gdb_sim_ppc_h): New variable.
1448 (rs6000-tdep.o): Update dependencies.
1449
1450 2004-08-02 Andrew Cagney <cagney@gnu.org>
1451
1452 * cris-tdep.c (cris_register_size): Restore function, still used
1453 locally.
1454
1455 * gdbarch.sh (deprecated_target_read_fp)
1456 (deprecated_frame_locals_address, deprecated_frame_args_address)
1457 (deprecated_frame_chain_valid, deprecated_frame_chain)
1458 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1459 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1460 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1461 * gdbarch.h, gdbarch.c: Re-generate.
1462 * regcache.c (deprecated_read_fp): Do not call
1463 DEPRECATED_TARGET_READ_FP_P.
1464 * infcmd.c (default_print_registers_info): Do not call
1465 DEPRECATED_DO_REGISTERS_INFO.
1466 * frame-base.c (default_frame_locals_address): Do not call
1467 DEPRECATED_FRAME_LOCALS_ADDRESS.
1468 (default_frame_args_address): Do not call
1469 DEPRECATED_FRAME_ARGS_ADDRESS.
1470
1471 * gdbarch.sh (deprecated_register_raw_size)
1472 (deprecated_register_virtual_size:int): Delete.
1473 * gdbarch.h, gdbarch.c: Re-generate.
1474 * cris-tdep.c (cris_register_size): Delete.
1475 (cris_gdbarch_init): Update.
1476 * alpha-tdep.c (alpha_register_raw_size)
1477 (alpha_register_virtual_size): Delete.
1478 (alpha_gdbarch_init): Update.
1479
1480 * gdbarch.sh (deprecated_register_virtual_type)
1481 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1482 (deprecated_dummy_write_sp): Delete.
1483 * gdbarch.h, gdbarch.c: Re-generate.
1484
1485 * gdbarch.sh (deprecated_register_bytes): Delete.
1486 * gdbarch.h, gdbarch.c: Re-generate.
1487 * regcache.c (deprecated_register_bytes): New function.
1488 * regcache.h (deprecated_register_bytes): Declare.
1489 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1490 * v850-tdep.c (v850_gdbarch_init): Update.
1491 * sh64-tdep.c (sh64_gdbarch_init): Update.
1492 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1493 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1494 * mcore-tdep.c (mcore_gdbarch_init): Update.
1495 * cris-tdep.c (cris_gdbarch_init): Update.
1496 * arm-tdep.c (arm_gdbarch_init): Update.
1497 * remote.c (init_remote_state): Update.
1498 * remote-vx.c (vx_prepare_to_store): Update.
1499 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1500 * irix5-nat.c (fetch_core_registers): Update.
1501 * cris-tdep.c (cris_register_bytes_ok): Update.
1502 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1503
1504 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1505 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1506 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1507 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1508 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1509 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1510 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1511 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1512 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1513 with mips_insn16 and mips_insn32.
1514
1515 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1516 * rs6000-tdep.c (rs6000_push_dummy_call)
1517 (rs6000_extract_return_value): Use register_size.
1518 * xstormy16-tdep.c (xstormy16_get_saved_register)
1519 (xstormy16_extract_return_value): Ditto.
1520 * valops.c (value_assign): Ditto.
1521 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1522 * v850-tdep.c (v850_extract_return_value): Ditto.
1523 * tracepoint.c (collect_symbol): Ditto.
1524 * target.c (debug_print_register): Ditto.
1525 * stack.c (frame_info): Ditto.
1526 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1527 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1528 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1529 (store_register_using_P): Ditto.
1530 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1531 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1532 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1533 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1534 * regcache.c (deprecated_read_register_bytes)
1535 (deprecated_write_register_bytes, read_register)
1536 (write_register): Ditto.
1537 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1538 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1539 * monitor.c (monitor_supply_register, monitor_fetch_register)
1540 (monitor_store_register): Ditto.
1541 * mn10300-tdep.c (mn10300_pop_frame_regular)
1542 (mn10300_print_register): Ditto.
1543 * mipsv4-nat.c (fill_fpregset): Ditto.
1544 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1545 (mips64_fill_fpregset): Ditto.
1546 * mi/mi-main.c (register_changed_p, get_register)
1547 (mi_cmd_data_write_register_values): Ditto.
1548 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1549 * irix5-nat.c (fill_gregset, fetch_core_registers):
1550 * infrun.c (write_inferior_status_register): Ditto.
1551 * infptrace.c (fetch_register, store_register): Ditto.
1552 * infcmd.c (default_print_registers_info): Ditto.
1553 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1554 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1555 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1556 * hpux-thread.c (hpux_thread_fetch_registers)
1557 (hpux_thread_store_registers): Ditto.
1558 * hppah-nat.c (store_inferior_registers, fetch_register):
1559 * findvar.c (value_from_register): Ditto.
1560 * dve3900-rom.c (fetch_bitmapped_register):
1561 * cris-tdep.c (cris_gdbarch_init): Ditto.
1562 * alpha-tdep.h: Ditto.
1563 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1564
1565 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1566 DEPRECATED_REGISTER_RAW_SIZE from comments.
1567 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1568 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1569 DEPRECATED_REGISTER_RAW_SIZE.
1570 * findvar.c (value_of_register): Simplify by assuming that the
1571 registers raw and virtual sizes are identical.
1572 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1573 comment.
1574 * arch-utils.c (generic_register_size): Simplify by assuming
1575 register_type.
1576
1577 * regcache.c (legacy_read_register_gen, real_register)
1578 (legacy_write_register_gen): Delete, not used.
1579
1580 * regcache.c (struct regcache_descr): Delete legacy_p.
1581 (init_legacy_regcache_descr): Delete function.
1582 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1583 Do not use deprecated register functions.
1584 (regcache_raw_read, deprecated_write_register_gen):
1585 (deprecated_read_register_gen, regcache_raw_write): Delete code
1586 predicated on legacy_p.
1587 (register_size): Delete check against register raw size.
1588
1589 * cris-tdep.c (cris_register_type): Replace
1590 cris_register_virtual_type.
1591 (cris_gdbarch_init): Update, set register_type.
1592
1593 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1594 * gdbarch.h, gdbarch.c: Re-generate.
1595 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1596 (arm_gdbarch_init) Do not set frameless function invocation.
1597 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1598 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1599 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1600 (frv_gdbarch_init): Do not set frameless function invocation.
1601 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1602 * sh-tdep.c (sh_gdbarch_init): Ditto.
1603 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1604 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1605 * avr-tdep.c (avr_gdbarch_init): Ditto.
1606
1607 * blockframe.c (legacy_frame_chain_valid): Delete function.
1608
1609 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1610 and pc. Update comments.
1611 (pc_in_dummy_frame): Delete function.
1612 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1613 use the "id".
1614 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1615 call_hi, top and pc, use the id.
1616 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1617
1618 * dummy-frame.c: Include "gdb_string.h".
1619 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1620 (generic_save_dummy_frame_tos): Delete.
1621 (dummy_frame_push): New function, replaces above.
1622 * dummy-frame.h: Update copyright.
1623 (dummy_frame_push): Declare.
1624 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1625 (generic_save_call_dummy_addr): Delete declarations.
1626 * infcall.c: Include "dummy-frame.h".
1627 (call_function_by_hand): Add locals caller_regcache,
1628 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1629 with call to frame_save_as_regcache plus cleanup. Delete calls to
1630 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1631 Move clear_proceed_status to just before the resume, add call to
1632 dummy_frame_push (discard cleanup).
1633 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1634 (dummy-frame.o): Add $(gdb_string_h).
1635
1636 2004-08-01 Andrew Cagney <cagney@gnu.org>
1637
1638 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1639 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1640 * dummy-frame.c (find_dummy_frame): Delete.
1641 (struct dummy_frame_cache, dummy_frame_sniffer)
1642 (dummy_frame_prev_register, dummy_frame_this_id)
1643 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1644 frame unwinder using a dummy_frame_cache.
1645
1646 2004-08-01 Andrew Cagney <cagney@gnu.org>
1647
1648 * frame.h (frame_save_as_regcache): Declare.
1649 * frame.c (frame_save_as_regcache): New function.
1650 (do_frame_read_register): Replace do_frame_unwind_register.
1651 (frame_pop): Use frame_save_as_regcache.
1652 * dummy-frame.c (generic_push_dummy_frame): Use
1653 frame_save_as_regcache.
1654
1655 2004-08-01 Joel Brobecker <brobecker@gnat.com>
1656
1657 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1658 file as included until we record the first line in the linetable.
1659
1660 2004-08-01 Andrew Cagney <cagney@gnu.org>
1661
1662 * frame.h (deprecated_pop_dummy_frame)
1663 (deprecated_read_register_dummy)
1664 (deprecated_generic_find_dummy_frame): Delete.
1665 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1666 (deprecated_read_register_dummy)
1667 (deprecated_find_dummy_frame_regcache)
1668 (discard_innermost_dummy)
1669 (deprecated_pop_dummy_frame): Delete.
1670 (dummy_frame_this_id): Simplify.
1671 (struct dummy_frame): Delete "fp" and "sp".
1672 (find_dummy_frame): Simplify.
1673 (generic_push_dummy_frame): Do not set "fp" or "sp".
1674 (fprint_dummy_frames): Do not print "fp" and "sp"
1675
1676 2004-08-01 Mark Kettenis <kettenis@gnu.org>
1677
1678 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1679 (struct i386_insn): New structure.
1680 (i386_match_insn): New function.
1681 (i386_frame_setup_skip_insns): New variable.
1682 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1683 array i386_frame_setup_insns of instructions that should be
1684 skipped inside the frame setup sequence.
1685
1686 2004-08-01 Andrew Cagney <cagney@gnu.org>
1687
1688 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1689 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1690 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1691 * stack.c (frame_info): Delete references to
1692 DEPRECATED_FRAME_INIT_SAVED_REGS and
1693 deprecated_get_frame_saved_regs.
1694 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1695 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1696 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1697 (frame_unwind_register_signed)
1698 (frame_unwind_register_unsigned)
1699 (frame_unwind_unsigned_register): Use register_size.
1700 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1701 (deprecated_frame_xmalloc_with_cleanup)
1702 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1703 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1704
1705 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1706 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1707 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1708 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1709
1710 * infcall.c (call_function_by_hand): Do not use
1711 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1712 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1713 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1714 DEPRECATED_STACK_ALIGN.
1715
1716 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1717
1718 Committed by Andrew Cagney.
1719 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1720
1721 2004-08-01 Andrew Cagney <cagney@gnu.org>
1722
1723 * mips-tdep.c (mips16_frame_cache)
1724 (mips16_frame_this_id, mips16_frame_prev_register)
1725 (mips16_frame_unwind, mips16_frame_sniffer)
1726 (mips16_frame_base_address, mips16_frame_base)
1727 (mips16_frame_base_sniffer, mips32_frame_cache)
1728 (mips32_frame_this_id, mips32_frame_prev_register)
1729 (mips32_frame_unwind, mips32_frame_sniffer)
1730 (mips32_frame_base_address, mips32_frame_base)
1731 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1732 separate heuristic mips16 and mips32 unwinders.
1733 (mips_stub_frame_cache, mips_stub_frame_this_id)
1734 (mips_stub_frame_prev_register)
1735 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1736 (mips_stub_frame_base_address, mips_stub_frame_base)
1737 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1738 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1739 match true mdebug frames.
1740 (non_heuristic_proc_desc): Add forward declaration.
1741
1742 2004-08-01 Andrew Cagney <cagney@gnu.org>
1743
1744 * config/mips/tm-irix6.h: Delete file.
1745 * config/mips/tm-irix5.h: Delete file.
1746 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1747 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1748
1749 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1750 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1751 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1752 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1753 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1754 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1755 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1756 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1757 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1758 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1759 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1760 (TARGET_SIGNAL_RAW_VALUES): Delete.
1761 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1762 Delete.
1763 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1764 (TARGET_HW_WATCH_LIMIT): Delete.
1765 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1766 * minimon.h: Delete file.
1767
1768 * trad-frame.c (trad_frame_get_this_base)
1769 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1770 functions.
1771 * trad-frame.h (trad_frame_set_this_base)
1772 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1773
1774 2004-07-31 Andrew Cagney <cagney@gnu.org>
1775
1776 * trad-frame.c (trad_frame_get_prev_register): Rename
1777 trad_frame_get_prev_register.
1778 * vax-tdep.c (vax_frame_prev_register): Update.
1779 * trad-frame.h: Update.
1780 * trad-frame.c (trad_frame_get_register): Update.
1781 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1782 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1783 Update.
1784 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1785 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1786 Update.
1787 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1788 Update.
1789 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1790 Update.
1791 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1792 Update.
1793 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1794 Update.
1795 * s390-tdep.c (s390_frame_prev_register)
1796 (s390_stub_frame_prev_register)
1797 (s390_sigtramp_frame_prev_register): Update.
1798 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1799 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1800 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1801 * m88k-tdep.c (m88k_frame_prev_register)
1802 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1803 * m32r-tdep.c (m32r_frame_prev_register): Update.
1804 * hppa-tdep.c (hppa_frame_prev_register_helper)
1805 * frv-tdep.c (frv_frame_prev_register): Update.
1806 * d10v-tdep.c (d10v_frame_prev_register): Update.
1807 * cris-tdep.c (cris_frame_prev_register): Update.
1808 * avr-tdep.c (avr_frame_prev_register): Update.
1809 * arm-tdep.c (arm_prologue_prev_register)
1810 (arm_sigtramp_prev_register): Update.
1811
1812 2004-07-31 Andrew Cagney <cagney@gnu.org>
1813
1814 * frame.h (legacy_saved_regs_unwind)
1815 (legacy_frame_chain_valid, legacy_frame_p)
1816 (enum frame_type): Delete UNKNOWN_FRAME.
1817 * dummy-frame.c (dummy_frame_this_id): Simplify.
1818 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
1819 * frame.c (struct frame_info): Delete the field "type".
1820 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1821 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1822 (legacy_saved_regs_unwind, legacy_frame_p)
1823 (frame_type_from_pc): Delete.
1824 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1825 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1826
1827 2004-07-31 Mark Kettenis <kettenis@gnu.org>
1828
1829 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1830 indentation.
1831
1832 * mips-nat.c: Remove file.
1833 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1834 (mips-nat.o): Remove dependency.
1835
1836 * infptrace.c: Update copyright year.
1837 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1838 explicitly setting the buffer to all zeroes.
1839
1840 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1841 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1842
1843 2004-07-30 Andrew Cagney <cagney@gnu.org>
1844
1845 * GDB 6.2 released from gdb_6_2-branch.
1846
1847 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1848
1849 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1850
1851 * exec.c (exec_file_attach):
1852 * nto-tdep.c (nto_find_and_open_solib):
1853 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1854 * solib.c (solib_open):
1855 * somsolib.c (som_solib_sizeof_symbol_table):
1856 * source.c (is_regular_file, openp, open_source_file):
1857 * symfile.c (symfile_bfd_open):
1858 * wince.c (upload_to_device): Differentiate between the search for
1859 binary and source files.
1860
1861 2004-07-30 Andrew Cagney <cagney@gnu.org>
1862
1863 * complaints.c (_initialize_complaints): Pass NULL to
1864 add_setshow_zinteger_cmd for help_doc.
1865 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1866
1867 2004-07-30 Andrew Cagney <cagney@gnu.org>
1868
1869 Fix PR i18n/761.
1870 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1871 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1872 $(PACKAGE).pot and update-po.
1873 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1874 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1875 (update-po): New rules.
1876 (localedir): Define using autoconf.
1877 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1878 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1879 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1880 * configure.in: Generate CATALOGS and LINGUAS from contents of
1881 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1882 * configure: Re-generate.
1883 * po/gdbtext: New file
1884
1885 2004-07-30 Jerome Guitton <guitton@gnat.com>
1886
1887 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1888 order.
1889
1890 2004-07-30 David Lecomber <dsl@sources.redhat.com>
1891
1892 * dwarf2read.c (read_file_scope): Set producer if attribute
1893 present.
1894 (struct dwarf2_cu): Added new member producer.
1895
1896 2004-07-30 Jerome Guitton <guitton@gnat.com>
1897
1898 * inflow.c (kill_command): release file handles in BFD.
1899 * exec.c (exec_file_attach): Ditto.
1900 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1901
1902 2004-07-29 Andrew Cagney <cagney@gnu.org>
1903
1904 * PROBLEMS (mips-irix): Note that it is broken.
1905
1906 2004-07-29 Andrew Cagney <cagney@gnu.org>
1907
1908 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1909 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1910
1911 * config/xm-nbsd.h: Delete file.
1912 * config/arm/xm-nbsd.h: Delete file.
1913 * config/i386/xm-nbsd.h: Delete file.
1914 * config/ns32k/xm-nbsd.h: Delete file.
1915 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1916 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1917 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1918 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1919 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1920
1921 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1922 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1923 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1924 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1925 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1926 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1927
1928 * config/powerpc/xm-linux.h: Delete empty file.
1929 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1930 * config/powerpc/linux.mh (XM_FILE): Delete.
1931 * config/m68k/xm-linux.h: Delete empty file.
1932 * config/m68k/linux.mh (XM_FILE): Delete.
1933 * config/ia64/xm-linux.h: Delete empty file.
1934 * config/ia64/linux.mh (XM_FILE): Delete.
1935 * config/arm/xm-linux.h: Delete empty file.
1936 * config/arm/linux.mh (XM_FILE): Delete.
1937
1938 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1939 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1940 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1941 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1942 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1943 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1944 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1945 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1946
1947 * config/m68k/xm-m68k.h: Delete file.
1948 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1949 copyright.
1950 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1951 * config/pa/xm-linux.h: Delete empty file.
1952 * config/pa/linux.mh (XM_FILE): Delete.
1953 * config/i386/xm-i386.h: Delete empty file.
1954 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1955 "i386/xm-i386.h".
1956 * config/i386/obsdaout.mh (XM_FILE): Delete.
1957 * config/i386/obsd64.mh (XM_FILE): Delete.
1958 * config/i386/fbsd64.mh (XM_FILE): Delete.
1959 * config/i386/nto.mh (XM_FILE): Delete.
1960 * config/i386/obsd.mh (XM_FILE): Delete.
1961 * config/i386/linux64.mh (XM_FILE): Delete.
1962 * config/i386/linux.mh (XM_FILE): Delete.
1963 * config/i386/i386sol2.mh (XM_FILE): Delete.
1964 * config/i386/i386gnu.mh (XM_FILE): Delete.
1965 * config/i386/fbsd.mh (XM_FILE): Delete.
1966 * config/i386/nbsd64.mh (XM_FILE): Delete.
1967
1968 2004-07-29 Andrew Cagney <cagney@gnu.org>
1969
1970 * config/pa/xm-linux.h: Do not include "floatformat.h".
1971 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1972 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1973 * config/i386/xm-i386.h: Do not include "floatformat.h".
1974 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1975 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1976 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1977 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1978 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1979 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1980 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1981 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1982 * configure, config.in: Regenerate.
1983 * configure.host (gdb_host_float_format, gdb_host_double_format)
1984 (gdb_host_long_double_format): Set according to the host.
1985
1986 2004-07-29 Andrew Cagney <cagney@gnu.org>
1987
1988 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1989
1990 2004-07-28 Andrew Cagney <cagney@gnu.org>
1991
1992 * PROBLEMS: Mention threads/1650.
1993 * NEWS: Mention the NPTL fix.
1994
1995 2004-07-28 Andrew Cagney <cagney@gnu.org>
1996
1997 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1998 (add_setshow_cmd_full): Make static.
1999 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2000 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2001 * cli/cli-decode.c (add_setshow_filename_cmd)
2002 (add_setshow_string_cmd): New functions.
2003 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2004 * mips-tdep.c (_initialize_mips_tdep): Update.
2005 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2006 * cli/cli-logging.c (_initialize_cli_logging): Update.
2007 * complaints.c (_initialize_complaints): Update.
2008 * remote.c (_initialize_remote): Update.
2009
2010 2004-07-28 Andrew Cagney <cagney@gnu.org>
2011
2012 * cli/cli-decode.c (add_setshow_zinteger_cmd)
2013 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2014 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2015 print parameters. Make string parameters constant.
2016 * command.h: Update. Update copyright.
2017 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2018 * observer.c (_initialize_observer): Ditto.
2019 * frame.c (_initialize_frame): Ditto.
2020 * complaints.c (_initialize_complaints): Ditto.
2021 * maint.c (_initialize_maint_cmds): Ditto.
2022 * target.c (initialize_targets): Ditto.
2023 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2024 * infcall.c (_initialize_infcall): Ditto.
2025 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2026 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2027 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2028 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2029 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2030
2031 2004-07-28 Andrew Cagney <cagney@gnu.org>
2032
2033 * gdbtypes.c (lookup_primitive_typename): Delete function.
2034 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2035 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2036 * gdbtypes.c (lookup_typename): Ditto.
2037 * f-exp.y (yylex): Ditto.
2038 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2039
2040 * scm-lang.c (c_builtin_types): Delete extern declaration.
2041 (scm_language_defn): Replace
2042 string_char_type and primitive_type_vector with
2043 la_language_arch_info.
2044 * jv-lang.c (java_language_defn): Replace
2045 string_char_type and primitive_type_vector with
2046 la_language_arch_info.
2047 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2048 c_builtin_types in comment.
2049 * c-lang.h (struct language_arch_info): Declare opaque.
2050 (c_language_arch_info): Declare.
2051 (c_builtin_types): Delete declaration.
2052 * c-lang.c (c_language_arch_info): Set string_char_type to
2053 builtin_char, not builtin_true_char. Make global.
2054 (c_builtin_types): Delete array.
2055 (asm_language_defn, minimal_language_defn): Replace
2056 string_char_type and primitive_type_vector with
2057 la_language_arch_info.
2058
2059 2004-07-28 Andrew Cagney <cagney@gnu.org>
2060
2061 * gdbtypes.h (struct builtin_type): Rename true_char to
2062 builtin_true_char.
2063 * gdbtypes.c (gdbtypes_post_init): Update.
2064 * c-lang.c (arch_info): New function.
2065 (enum c_primitive_types): New enum.
2066 (c_language_defn): Instead of string_char_type and
2067 primitive_type_vector set la_language_arch_info.
2068
2069 2004-07-28 Andrew Cagney <cagney@gnu.org>
2070
2071 * language.h (struct language_arch_info): Fix typo
2072 s/primative/primitive/.
2073 * gdbtypes.c (lookup_primitive_typename): Ditto.
2074 * language.c (language_lookup_primitive_type_by_name)
2075 (unknown_language_arch_info): Ditto.
2076
2077 2004-07-27 Andrew Cagney <cagney@gnu.org>
2078
2079 * defs.h (enum language): Add nr_languages.
2080 * language.h (struct language_arch_info): Define.
2081 (struct language_defn): Add la_language_arch_info.
2082 (language_lookup_primative_type_by_name): Declare.
2083 (language_string_char_type): Declare.
2084 * language.c (_initialize_language, language_gdbarch_post_init)
2085 (struct language_gdbarch, language_gdbarch_data): Implement
2086 per-architecture language information.
2087 (unknown_language_arch_info, language_string_char_type)
2088 (language_lookup_primative_type_by_name): New functions.
2089 (unknown_language_defn, auto_language_defn)
2090 (local_language_defn): Set la_language_arch_info to
2091 unknown_language_arch_info.
2092 (unknown_builtin_types): Delete.
2093 * gdbtypes.c (lookup_primitive_typename): Use
2094 language_lookup_primative_type_by_name.
2095 (create_string_type): Use language_string_char_type.
2096 * values.c (value_from_string): Use language_string_char_type.
2097 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
2098 * p-lang.c (pascal_language_defn): Ditto.
2099 * m2-lang.c (m2_language_defn): Ditto.
2100 * jv-lang.c (java_language_defn): Ditto.
2101 * objc-lang.c (objc_language_defn): Ditto.
2102 * f-lang.c (f_language_defn): Ditto.
2103 * c-lang.c (c_language_defn, cplus_language_defn)
2104 (asm_language_defn, minimal_language_defn): Ditto.
2105
2106 2004-07-27 Andrew Cagney <cagney@gnu.org>
2107
2108 * gdbtypes.h (struct builtin_type): Declare.
2109 (builtin_type): Declare.
2110 * d10v-tdep.c (d10v_register_type): Use builtin_type.
2111 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
2112 (gdbtypes_post_init): New function.
2113 (builtin_type): New function.
2114
2115 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
2116
2117 * remote-m32r-sdi.c: Fix breakpoint bug.
2118 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
2119 recv_char_data, recv_long_data): New functions to replace communication
2120 sequences.
2121
2122 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
2123
2124 Document PR threads/1650.
2125 * PROBLEMS (Threads): Document problem with many threads
2126
2127 2004-07-26 Andrew Cagney <cagney@gnu.org>
2128
2129 * gdb-mi.el: Move from here ...
2130 * mi/gdb-mi.el: ... to here.
2131
2132 2004-07-26 Andrew Cagney <cagney@gnu.org>
2133
2134 Problem reported by Ashley Pittman <ashley@quadrics.com>.
2135 * main.c (captured_main): When in batch mode always detach.
2136
2137 2004-07-26 Andrew Cagney <cagney@gnu.org>
2138
2139 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
2140 and h8300 as broken.
2141 * NEWS: END-OF-LIFE frame compatibility module.
2142 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
2143 specific comments.
2144
2145 2004-07-26 Andrew Cagney <cagney@gnu.org>
2146
2147 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
2148 * xcoffsolib.c (_initialize_xcoffsolib): Update.
2149 * wince.c (_initialize_wince): Update.
2150 * win32-nat.c (_initialize_win32_nat): Update.
2151 * varobj.c (_initialize_varobj): Update.
2152 * valops.c (_initialize_valops): Update.
2153 * utils.c (initialize_utils, initialize_utils): Update.
2154 * tui/tui-win.c (_initialize_tui_win): Update.
2155 * top.c (init_main): Update.
2156 * symfile.c (_initialize_symfile): Update.
2157 * source.c (_initialize_source): Update.
2158 * somsolib.c (_initialize_som_solib): Update.
2159 * solib.c (_initialize_solib): Update.
2160 * solib-frv.c (_initialize_frv_solib): Update.
2161 * serial.c (_initialize_serial): Update.
2162 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2163 * remote.c (_initialize_remote, _initialize_remote): Update.
2164 * remote-vx.c (_initialize_vx): Update.
2165 * remote-utils.c (_initialize_sr_support): Update.
2166 * remote-sds.c (_initialize_remote_sds): Update.
2167 * remote-mips.c (_initialize_remote_mips): Update.
2168 * remote-e7000.c (_initialize_remote_e7000): Update.
2169 * proc-api.c (_initialize_proc_api): Update.
2170 * printcmd.c: Update.
2171 * parse.c (_initialize_parse): Update.
2172 * pa64solib.c (_initialize_pa64_solib): Update.
2173 * p-valprint.c (_initialize_pascal_valprint): Update.
2174 * monitor.c (_initialize_remote_monitors): Update.
2175 * mips-tdep.c (_initialize_mips_tdep): Update.
2176 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2177 * maint.c (_initialize_maint_cmds): Update.
2178 * lin-lwp.c (_initialize_lin_lwp): Update.
2179 * language.c (_initialize_language): Update.
2180 * kod.c (_initialize_kod): Update.
2181 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2182 * i386-tdep.c (_initialize_i386_tdep): Update.
2183 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2184 * gdbarch.sh: Update.
2185 * gdbarch.c: Re-generate.
2186 * gdb-events.sh: Update.
2187 * gdb-events.c: Re-generate.
2188 * frame.c (_initialize_frame): Update.
2189 * exec.c: Update.
2190 * demangle.c (_initialize_demangler): Update.
2191 * dcache.c (_initialize_dcache): Update.
2192 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2193 * cp-valprint.c (_initialize_cp_valprint): Update.
2194 * corefile.c (_initialize_core): Update.
2195 * command.h: Update.
2196 * cli/cli-decode.h: Update.
2197 * cli/cli-cmds.c (init_cli_cmds): Update.
2198 * charset.c (_initialize_charset): Update.
2199 * breakpoint.c (_initialize_breakpoint): Update.
2200 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2201 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2202 * aix-thread.c (_initialize_aix_thread): Update.
2203
2204 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2205
2206 Partial fix for PR backtrace/1718.
2207 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2208 that GCC migrates into the prolugue. Don't handle any
2209 instructions that clobber %ebx.
2210
2211 2004-07-23 Andrew Cagney <cagney@gnu.org>
2212
2213 Use regcache_raw_collect instead of regcache_collect.
2214 * regcache.h (regcache_collect): Delete declaration.
2215 * regcache.c (regcache_colect): Delete function.
2216 * win32-nat.c (do_child_store_inferior_registers): Update.
2217 * sol-thread.c (sol_thread_store_registers): Update.
2218 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
2219 * rs6000-nat.c (store_register): Update.
2220 * remote.c (store_register_using_P, remote_store_registers): Update.
2221 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
2222 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
2223 (fill_vrregset, store_spe_registers, fill_gregset)
2224 (fill_gregset): Update.
2225 * nto-procfs.c (procfs_store_registers): Update.
2226 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
2227 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
2228 * m68klinux-nat.c (store_register, fill_gregset): Update.
2229 * m68k-tdep.c (fill_gregset): Update.
2230 * infptrace.c (store_register): Update.
2231 * i386-nto-tdep.c (i386nto_regset_fill): Update.
2232 * i386-linux-nat.c (store_register, fill_gregset): Update.
2233 * hppa-linux-nat.c (fill_gregset): Update.
2234 * go32-nat.c (store_register): Update.
2235 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
2236 (store_fp_regs): Update.
2237 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
2238 (store_nwfpe_extended, store_fpregister, store_fpregs)
2239 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
2240 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
2241 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
2242 (store_regs_user_thread, store_regs_kernel_thread): Update.
2243
2244 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2245
2246 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
2247 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
2248 encoding.
2249 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
2250 member of `struct comp_unit'.
2251
2252 2004-07-23 Andrew Cagney <cagney@gnu.org>
2253
2254 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
2255 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
2256
2257 2004-07-23 Martin Hunt <hunt@redhat.com>
2258 Kevin Buettner <kevinb@redhat.com>
2259
2260 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
2261 alignment was being added to the offset instead of multiplied.
2262
2263 2004-07-23 Mark Kettenis <kettenis@gnu.org>
2264
2265 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
2266 changed signal trampoline in OpenBSD 3.5-current.
2267
2268 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
2269 <machine/pcb.h> and "bsd-kvm.h".
2270 (sparc64nbsd_supply_pcb): New function.
2271 (_initialize_sparc64nbsd_nat): Renamed from
2272 _initialize_sparcnbsd_nat. Enable libkvm interface.
2273 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2274 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
2275 (LOADLIBES): New variable.
2276
2277 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
2278
2279 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
2280
2281 2004-07-21 Andrew Cagney <cagney@gnu.org>
2282
2283 Use regcache_raw_supply instead of supply_register.
2284 * regcache.h (supply_register): Delete declaration.
2285 * regcache.c (supply_register): Delete function.
2286 * wince.c (do_child_fetch_inferior_registers): Update.
2287 * win32-nat.c (do_child_fetch_inferior_registers)
2288 (fetch_elf_core_registers): Update.
2289 * v850ice.c (v850ice_fetch_registers): Update.
2290 * thread-db.c (thread_db_store_registers): Update.
2291 * sol-thread.c (sol_thread_store_registers): Update.
2292 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
2293 * rs6000-nat.c (fetch_register): Update.
2294 * rom68k-rom.c (rom68k_supply_one_register): Update.
2295 * remote.c (remote_wait, remote_async_wait): Update.
2296 * remote-st.c (get_hex_regs): Update.
2297 * remote-sim.c (gdbsim_fetch_register): Update.
2298 * remote-sds.c (sds_fetch_registers): Update.
2299 * remote-rdp.c (remote_rdp_fetch_register): Update.
2300 * remote-rdi.c (arm_rdi_fetch_registers): Update.
2301 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
2302 * remote-m32r-sdi.c (m32r_fetch_register): Update.
2303 * remote-hms.c (init_hms_cmds): Update.
2304 * remote-est.c (init_est_cmds): Update.
2305 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
2306 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
2307 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
2308 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
2309 (fetch_register, supply_vrregset, supply_vrregset)
2310 (fetch_spe_registers): Update.
2311 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
2312 * monitor.c (monitor_supply_register): Update.
2313 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
2314 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
2315 (mipsnbsd_supply_fpreg): Update.
2316 * mips-nat.c (fetch_inferior_registers)
2317 (fetch_core_registers): Update.
2318 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
2319 (supply_fpregset, mips64_supply_gregset)
2320 (mips64_supply_fpregset): Update.
2321 * m68klinux-nat.c (fetch_register, supply_gregset)
2322 (supply_fpregset): Update.
2323 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
2324 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
2325 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
2326 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
2327 * infptrace.c (fetch_register): Update.
2328 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
2329 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
2330 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
2331 (gnu_fetch_registers, gnu_store_registers): Update.
2332 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
2333 * i386-linux-nat.c (fetch_register, supply_gregset)
2334 (dummy_sse_values): Update.
2335 * hpux-thread.c (hpux_thread_fetch_registers): Update.
2336 * hppah-nat.c (fetch_register): Update.
2337 * hppa-linux-nat.c (fetch_register, supply_gregset)
2338 (supply_fpregset): Update.
2339 * go32-nat.c (fetch_register): Update.
2340 * dve3900-rom.c (fetch_bitmapped_register)
2341 (_initialize_r3900_rom): Update.
2342 * cris-tdep.c (supply_gregset): Update.
2343 * abug-rom.c (init_abug_cmds): Update.
2344 * core-aout.c (fetch_core_registers): Update.
2345 * armnbsd-nat.c (supply_gregset, supply_fparegset)
2346 (fetch_register, fetch_fp_register): Update.
2347 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
2348 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
2349 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
2350 * alphanbsd-tdep.c (fetch_core_registers): Update.
2351 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2352 * alpha-nat.c (fetch_osf_core_registers)
2353 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2354 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2355 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2356
2357 2004-07-21 Andrew Cagney <cagney@gnu.org>
2358
2359 * PROBLEMS: Mention breakpoints/1702.
2360 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2361 that is known to work.
2362
2363 2004-07-21 Andrew Cagney <cagney@gnu.org>
2364
2365 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2366 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2367 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2368 (handle_inferior_event): Wrap call to deprecated
2369 IGNORE_HELPER_CALL in #ifdef.
2370 * config/mips/tm-nbsd.h: Update.
2371
2372 2004-07-20 Jim Blandy <jimb@redhat.com>
2373
2374 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
2375 bfd_mach_ppc has no segment registers.
2376
2377 Include PowerPC SPR numbers for special-purpose registers.
2378 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2379 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2380 new member in initializer.
2381 (S, S4, SN4, S64): New macros for defining special-purpose
2382 registers.
2383 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2384 registers_403, registers_403GC, registers_505, registers_860,
2385 registers_601, registers_602, registers_603, registers_604,
2386 registers_750, registers_e500): Use them.
2387
2388 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2389 replace references with expression used to initialize variable.
2390
2391 2004-07-20 Andrew Cagney <cagney@gnu.org>
2392
2393 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2394 read_memory_nobpt.
2395 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2396 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2397 (s390_sigtramp_frame_sniffer): Update.
2398 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2399 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2400 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2401 (mips32_fetch_instruction): Update.
2402 * mcore-tdep.c (get_insn): Update.
2403 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2404 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2405 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2406 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2407 (i386_linux_rt_sigtramp_start): Update.
2408 * i386-linux-nat.c (child_resume): Update.
2409 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2410 * hppa-linux-tdep.c (insns_match_pattern): Update.
2411 * gdbcore.h: Update.
2412 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2413 * frame.c (safe_frame_unwind_memory): Update.
2414 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2415 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2416 * alpha-tdep.c (alpha_read_insn): Update.
2417
2418 2004-07-20 Andrew Cagney <cagney@gnu.org>
2419
2420 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2421 containing both bytes and mask. Add "frame_type".
2422 * tramp-frame.c (tramp_frame_start): Update.
2423 (tramp_frame_prepend_unwinder): Update.
2424 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2425 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2426 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2427 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2428
2429 2004-07-19 Eli Zaretskii <eliz@gnu.org>
2430
2431 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2432 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2433 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2434 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2435
2436 2004-07-17 Andrew Cagney <cagney@gnu.org>
2437
2438 * NEWS, PROBLEMS: Update for 6.2.
2439
2440 * README: Update to 6.2.
2441
2442 * utils.c (xvasprintf): Call xstrvprintf.
2443
2444 * parse.c: Update copyright.
2445 (null_post_parser): Eliminate ARGSUSED.
2446
2447 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2448 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2449 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2450
2451 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2452 * ppc-linux-nat.c: Use "Linux kernel".
2453 * hppa-linux-tdep.c: Use GNU/Linux.
2454 * hppa-linux-nat.c: Use GNU/Linux.
2455 * dwarfread.c: Add [sic] to use of Linux.
2456
2457 * hppa-linux-nat.c: Do not include <string.h>.
2458 (supply_fpregset): Remove "register" attribute.
2459
2460 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2461
2462 2004-07-17 Mark Kettenis <kettenis@gnu.org>
2463
2464 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2465 * configure, config.in: Regenerated.
2466
2467 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2468 "bsd-kvm.h".
2469 (vaxbsd_supply_pcb): New function.
2470 (_initialize_vaxbsd_nat): New prototype and function.
2471 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2472 solib-sunos.o.
2473 (LOADLIBES): New variable.
2474 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2475 (LOADLIBES): New variable.
2476 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2477 (LOADLIBES): New variable.
2478 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2479
2480 2004-07-16 Andrew Cagney <cagney@gnu.org>
2481
2482 * defs.h (event_loop_p): Replace variable declaration with macro,
2483 always 1.
2484 * main.c (captured_main): Delete options "-async" and "-noasync".
2485 (event_loop_p): Delete variable.
2486 * NEWS: Mention that "-async" and "-noasync" were removed.
2487
2488 2004-07-16 Andrew Cagney <cagney@gnu.org>
2489
2490 * remote-m32r-sdi.c: Re-indent.
2491
2492 2004-07-16 Jim Blandy <jimb@redhat.com>
2493
2494 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2495 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2496 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2497 missing MPC823 SPRs.
2498 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2499 incorrect. (This was corrected in GDB's register name tables on
2500 2004-07-14.)
2501
2502 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2503 should be "esasrr" ("ESA Save and Restore Register").
2504
2505 2004-07-16 Andrew Cagney <cagney@gnu.org>
2506
2507 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2508 calls, no longer applicable. Update comments and rename parameter
2509 "step_frame" to "return_frame".
2510
2511 2004-07-16 Andrew Cagney <cagney@gnu.org>
2512
2513 * frame.c (fprint_field): New function.
2514 (fprint_frame_id): Use fprint_field.
2515
2516 2004-07-15 Joel Brobecker <brobecker@gnat.com>
2517
2518 * ada-lang.c (ada_language_defn): Remove commented out code.
2519
2520 2004-07-15 Jim Blandy <jimb@redhat.com>
2521
2522 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2523 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2524
2525 2004-07-14 Jim Blandy <jimb@redhat.com>
2526
2527 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2528
2529 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2530
2531 * ppc-tdep.h (ppc_num_srs): New enum constant.
2532
2533 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2534 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2535 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2536 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2537 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2538 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2539 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2540 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2541 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2542 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2543 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2544 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2545 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2546 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2547 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2548 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2549 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2550 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2551 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2552 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2553 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2554 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2555 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2556 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2557 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2558 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2559 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2560 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2561 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2562 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2563 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2564 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2565 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2566 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2567 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2568 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2569 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2570 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2571 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2572 special-purpose register numbers.
2573
2574 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2575 manual mentions 'md_twb', but many mention 'm_twb', and at that
2576 point in the register list.)
2577
2578 2004-07-14 Andrew Cagney <cagney@gnu.org>
2579
2580 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2581 instead of "internal-error".
2582
2583 2004-07-10 Joel Brobecker <brobecker@gnat.com>
2584
2585 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2586 that was inserted inside a comment.
2587
2588 2004-07-10 Randolph Chung <tausq@debian.org>
2589
2590 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2591 function.
2592 (hppa_hpux_push_dummy_code): New function.
2593 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2594 Set find_global_pointer method.
2595
2596 2004-07-10 Mark Kettenis <kettenis@gnu.org>
2597
2598 * NEWS: Mention BSD libkvm interface.
2599
2600 2004-07-10 Michael Snyder <msnyder@redhat.com>
2601
2602 * symfile.c (generic_load): Comment typo.
2603 * stack.c (get_selected_block): Ditto.
2604 * regcache.c (regcache_cooked_read): Ditto.
2605 * monitor.c (monitor_debug): Ditto.
2606 * mips-tdep.c (mips_read_pc): Ditto.
2607 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2608 * gdb_mbuild.sh: Ditto.
2609 * gdbarch.sh: Ditto.
2610 * gdbarch.h: Ditto.
2611
2612 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2613
2614 * ada-tasks.c: Remove file.
2615
2616 Remove ARI problems:
2617
2618 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2619 beginning of line.
2620
2621 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2622 Add comment.
2623 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2624 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2625 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2626 (UMIN_OF_SIZE): Remove.
2627 (max_of_type): New function to replace orphan macro in gdbtypes.h
2628 (min_of_type): Ditto.
2629 (discrete_type_high_bound): Use max_of_type.
2630 (discrete_type_low_bound): Use min_of_type.
2631 (possible_user_operator_p): Move operator to beginning of line.
2632 (ada_is_variant_part): Ditto.
2633 (ensure_lval): Rewrite to avoid deprecated operations.
2634 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2635 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2636 (ada_enum_name): Remove assignments in 'if' statements.
2637 (build_ada_types): Add gdbarch parameter.
2638 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2639 with gdbarch_data_register_post_init.
2640 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2641 add_show_from_set.
2642
2643 * ada-valprint.c (inspect_it): Remove declaration.
2644 (repeat_count_threshold): Remove declaration.
2645 (ada_print_floating): Remove assignments in 'if' statements.
2646 (print_str): Move operator to beginning of line.
2647
2648 2004-07-08 Jim Blandy <jimb@redhat.com>
2649
2650 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2651
2652 2004-07-08 Bob Rossi <bob@brasko.net>
2653
2654 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2655
2656 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2657
2658 * language.h (struct_language_defn): Add new function pointer:
2659 la_class_name_from_physname. Also add new prototype for
2660 language_class_name_from_physname.
2661 * language.c (language_class_name_from_physname): New function.
2662 (unk_lang_class_name): Ditto.
2663 (unknown_language_defn, auto_language_defn): Change
2664 to add unk_lang_class_name function pointer for
2665 la_class_name_from_physname.
2666 (local_language_defn): Ditto.
2667 * dwarf2read.c (guess_structure_name): Change to call
2668 language_class_name_from_physname.
2669 (determine_class_name): Ditto.
2670 * cp-support.c (class_name_from_physname): Renamed.
2671 (cp_class_name_from_physname): New name of function.
2672 * cp-support.h: Ditto.
2673 * c-lang.c (c_language_defn): Change to add NULL
2674 for class_name_from_physname function pointer.
2675 (cplus_language_defn): Change to add cp_class_name_from_physname.
2676 * jv-lang.c (java_class_name_physname): New function.
2677 (java_find_last_component): New static routine.
2678 (java_language_defn): Add java_class_name_from_physname pointer.
2679 * ada-lang.c (ada_language_defn): Change to add NULL
2680 for class_name_from_physname function pointer.
2681 * f-lang.c (f_language_defn): Ditto.
2682 * m2-lang.c (m2_language_defn): Ditto.
2683 * objc-lang.c (objc_language_defn): Ditto.
2684 * p-lang.c (pascal_language_defn): Ditto.
2685 * scm-lang.c (scm_language_defn): Ditto.
2686
2687 2004-07-06 Andrew Cagney <cagney@gnu.org>
2688
2689 Patch from Bart Robinson.
2690 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2691 (O_LARGEFILE): Define to 0, if not defined.
2692
2693 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2694
2695 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2696 <machine/pcb.h> and "bsd-kvm.h".
2697 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2698 (m68kbsd_supply_pcb): New function.
2699 (_initialize_m68kbsd_nat): New prototype and function.
2700 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2701 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2702 (LOADLIBES): New variable.
2703 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2704 (LOADLIBES): New variable.
2705
2706 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2707
2708 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2709
2710 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2711 <sys/proc.h>.
2712 (bsd_kvm_cmdlist): New variable.
2713 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2714 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2715 command and "kvm proc" command.
2716 * Makefile.in (bsd-kvm.o): Update dependencies.
2717
2718 2004-07-02 Mark Kettenis <kettenis@gnu.org>
2719
2720 * osabi.c: Update copyright year.
2721 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2722 notes if EI_OSABI is set to ELFOSABI_HPUX.
2723
2724 2004-07-01 Michael Snyder <msnyder@redhat.com>
2725
2726 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2727 that seems to have gotten whacked out of line.
2728
2729 2004-07-01 Mark Kettenis <kettenis@gnu.org>
2730
2731 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2732 code.
2733
2734 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2735
2736 * ada-lang.c (decode_packed_array): Minor change to comment.
2737 (ada_value_slice_ptr): New function.
2738 (ada_value_slice): New function.
2739 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2740 test. Don't know why it is there.
2741 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2742 to avoid dereferencing huge arrays from which one is slicing.
2743 (empty_array): Correct to return an array rather than
2744 a subrange value.
2745 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2746 on empty arrays (let'em use 'FIRST instead).
2747
2748 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2749
2750 Address complaints from gdb_ari.sh:
2751
2752 * ada-exp.y: Include gdb_string.h rather than string.h.
2753 (convert_char_literal): Reformat declaration.
2754 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2755 * ada-lex.l: Change use of free to xfree (the macro would do so
2756 anyway, but this is harmless).
2757 Include gdb_string.h rather than string.h.
2758 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2759
2760 * ada-lang.c (parse): Remove K&Rism in parameter list.
2761 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2762
2763 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2764
2765 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2766 dead code.
2767
2768 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2769
2770 * alphabsd-nat.c: Update copyright year.
2771 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2772
2773 2004-06-29 Joel Brobecker <brobecker@gnat.com>
2774
2775 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
2776 (i386_cygwin_in_solib_call_trampoline): New function.
2777 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2778 and skip_trampoline_code gdbarch methods.
2779
2780 2004-06-29 Jim Blandy <jimb@redhat.com>
2781
2782 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2783 name actually used in the dependency lists.
2784
2785 2004-06-29 Randolph Chung <tausq@debian.org>
2786
2787 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2788
2789 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2790
2791 * win32-nat.c (child_pid_to_exec_file): New function.
2792 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
2793 functionality.
2794
2795 2004-06-28 Andrew Cagney <cagney@gnu.org>
2796
2797 * defs.h (xstrvprintf): Declare.
2798 * utils.c (xstrvprintf): New function.
2799 (internal_vproblem, xstrprintf, xasprintf)
2800 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2801 * serial.c (serial_printf): Ditto.
2802 * complaints.c (vcomplaint): Ditto.
2803
2804 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2805
2806 * infcmd.c (attach_command): Move call to target_terminal_inferior
2807 behind loading symbol table.
2808
2809 2004-06-28 Andrew Cagney <cagney@gnu.org>
2810
2811 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2812 change - add back extern deprecated_ui_loop_hook declaration.
2813
2814 2004-06-28 Andrew Cagney <cagney@gnu.org>
2815
2816 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2817 xstrprintf.
2818 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2819 (c_value_of_variable): Ditto.
2820 * utils.c (internal_vproblem): Ditto.
2821 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2822 * remote.c (add_packet_config_cmd): Ditto.
2823 * remote-rdp.c (rdp_set_command_line): Ditto.
2824 * regcache.c (regcache_dump): Ditto.
2825 * frv-tdep.c (new_variant, new_variant): Ditto.
2826 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2827 (fbsd_find_memory_regions): Ditto.
2828 * breakpoint.c (create_thread_event_breakpoint)
2829 (create_breakpoints): Ditto.
2830 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2831 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2832
2833 2004-06-28 Joel Brobecker <brobecker@gnat.com>
2834
2835 * ada-lang.c: Re-indent file, with some massaging to help indent
2836 a bit when the result is otherwise really too ugly.
2837
2838 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2839
2840 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2841 code_addr_p and special_addr_p to 'unsigned int'.
2842
2843 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2844
2845 * i386v4-nat.c: Update copyright year and tweak comment.
2846 (regmap): Remove trailing comma.
2847 (supply_gregset): Rename local variable i to regnum. Call
2848 regcache_raw_supply instead of supply_register.
2849 (fill_gregset): Rename argument regno to regnum. Call
2850 regcache_raw_collect instead of regcache_collect.
2851
2852 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2853
2854 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2855 and special_addr_p.
2856 (frame_id_build, frame_id_build_special): Update comments.
2857 (frame_id_build_wild): New prototype.
2858 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2859 struct frame_id fields.
2860 (frame_id_build_wild): New function.
2861 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2862
2863 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2864
2865 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2866 hppabsd-tdep.c.
2867
2868 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2869
2870 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2871
2872 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2873
2874 * ada-lang.c: Re-indent file.
2875
2876 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2877
2878 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2879 (no_symtab_msg): Likewise.
2880
2881 2004-06-27 Andreas Schwab <schwab@suse.de>
2882
2883 * source.c: Fix whitespace.
2884
2885 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2886
2887 * configure.in: Include <sys/param.h> for td_pcb test.
2888 * configure: Regenerated.
2889
2890 * i386nbsd-nat.c: New file.
2891 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2892 i386obsd-nat.c and i386obsd-tdep.c.
2893 (i386nbsd-nat.o): New dependency.
2894 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2895 bsd-kvm.o.
2896 (LOADLIBES): New variable.
2897 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2898 bsd-kvm.o.
2899 (LOADLIBES): New variable.
2900
2901 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2902 (LOADLIBES): New variable.
2903
2904 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2905 fetching from BSD_KVM_PADDR. Correctly lookup address for
2906 "_thread0".
2907
2908 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2909 "bsd-kvm.h".
2910 (amd64fbsd_supply_pcb): New funcion.
2911 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2912
2913 2004-06-27 <david@streamline-computing.com>
2914
2915 Partial fix for PR cli/1056.
2916 * valarith.c: Check for zero in division and remainder
2917 evaluation.
2918
2919 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2920
2921 * i387-tdep.c: Remove excessive whitespace.
2922
2923 2004-06-26 Andrew Cagney <cagney@gnu.org>
2924
2925 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2926 * gdb-events.h, gdb-events.c: Re-generate.
2927 * tui/tui-hooks.c (tui_install_hooks): Update.
2928 (tui_remove_hooks): Update.
2929 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2930
2931 2004-06-26 Mark Kettenis <kettenis@gnu.org>
2932
2933 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2934 (gregset_t, fpregset_t): Remove typedefs.
2935 (REG_OFFSET): Rename argument.
2936 (amd64bsd_r_reg_offset): Rename from reg_offset.
2937 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2938 Remove functions.
2939 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2940 of reg_offset.
2941 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2942
2943 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2944
2945 * vax-tdep.c: Tweak comment.
2946
2947 Add OpenBSD/hppa support.
2948 * NEWS (New native configurations): Mention OpenBSD/hppa.
2949 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2950 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2951 files.
2952 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2953 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2954 * configure.host: Add hppa*-*-openbsd*.
2955 * configure.tgt: Add hppa*-*-openbsd*.
2956
2957 2004-06-25 Andrew Cagney <cagney@gnu.org>
2958
2959 * defs.h (deprecated_ui_loop_hook): Deprecated.
2960 * wince.c (child_wait): Update.
2961 * win32-nat.c (child_wait): Update.
2962 * v850ice.c (v850ice_wait): Update.
2963 * top.c (deprecated_ui_loop_hook): Update.
2964 * serial.h: Update.
2965 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2966 (do_unix_readchar): Update.
2967 * ser-tcp.c (net_open): Update.
2968 * remote-sim.c (gdb_os_poll_quit): Update.
2969 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2970
2971 2004-06-24 Andrew Cagney <cagney@gnu.org>
2972
2973 * defs.h (deprecated_pre_add_symbol_hook)
2974 (deprecated_post_add_symbol_hook): Deprecated.
2975 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2976 (symbol_file_add_with_addrs_or_offsets): Update references.
2977
2978 2004-06-24 Andrew Cagney <cagney@gnu.org>
2979
2980 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2981 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2982 * wince.c (ui_loop_hook): Delete extern declaration.
2983 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2984 * v850ice.c (ui_loop_hook): Delete extern declaration..
2985 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2986 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2987 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2988 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2989 ui_loop_hook declaration.
2990
2991 2004-06-24 Andrew Cagney <cagney@gnu.org>
2992
2993 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2994 entry_func_highpc fields.
2995 * objfiles.c (init_entry_point_info): Do not clear
2996 entry_func_lowpc and entry_func_highpc.
2997 (objfile_relocate): Do not relocate entry_func_lowpc and
2998 entry_func_highpc.
2999 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3000 entry_func_highpc.
3001 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3002 entry_func_highpc.
3003 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3004 entry_func_lowpc and entry_func_highpc with call to
3005 inside_entry_func.
3006
3007 2004-06-24 Mark Kettenis <kettenis@gnu.org>
3008
3009 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3010 quad-precision floating point arguments in registers.
3011
3012 2004-06-24 Mark Kettenis <kettenis@gnu.org>
3013
3014 From Michael Mueller <m.mueller99@kay-mueller.de>:
3015 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3016 account.
3017
3018 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3019
3020 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3021 to -1.
3022 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3023 untriggered watchpoints to a separate if clause. Update function
3024 comment regarding STOPPED_BY_WATCHPOINT argument.
3025
3026 2004-06-22 Jim Blandy <jimb@redhat.com>
3027
3028 * gdbarch.sh: Doc fix.
3029
3030 2004-06-21 Martin Hunt <hunt@redhat.com>
3031 Kevin Buettner <kevinb@redhat.com>
3032
3033 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3034 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3035 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3036 to set_gdbarch_sp_regnum(). Use cooked register number.
3037 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3038
3039 2004-06-21 Andrew Cagney <cagney@gnu.org>
3040
3041 * gdbarch.sh: When the macro field is empty, do not generate a
3042 macro definition. When the macro field is "=", generate the macro
3043 name from the upper-case function name.
3044 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3045 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3046 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3047 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3048 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3049 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3050 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3051 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3052 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3053 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3054 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3055 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3056 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3057 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3058 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3059 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3060 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3061 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3062 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3063 (DEPRECATED_USE_STRUCT_CONVENTION)
3064 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3065 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3066 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3067 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3068 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3069 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3070 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3071 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3072 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3073 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3074 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3075 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
3076 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
3077 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
3078 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
3079 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
3080 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
3081 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
3082
3083 2004-06-21 Andrew Cagney <cagney@gnu.org>
3084
3085 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
3086 macro name, and the function rather than macro value. Only wrap
3087 macro print statements in #ifdef. Move format logic to where it
3088 is needed.
3089 * gdbarch.c: Re-generate.
3090
3091 * gdbarch.sh (read): Delete "print_p" and "description", add
3092 "garbage_at_eol". Check for non-empty garbage at end-of-line.
3093 Delete references to print_p.
3094 (TARGET_ARCHITECTURE): Delete print predicate.
3095 * gdbarch.c: Re-generate.
3096
3097 * gdbarch.sh: Check that multi-arch methods do not provide a
3098 macro.
3099 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
3100 (print_registers_info, print_float_info, print_vector_info)
3101 (adjust_breakpoint_address, remote_translate_xfer_address)
3102 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
3103 (address_class_type_flags_to_name, unwind_sp): Remove the macro
3104 name from the multi-arch definition.
3105
3106 2004-06-20 Andrew Cagney <cagney@gnu.org>
3107
3108 * gdbarch.sh: Sort by the function, instead of macro name.
3109 * gdbarch.c: Re-generate.
3110
3111 2004-06-20 Andrew Cagney <cagney@gnu.org>
3112
3113 * gdbarch.sh: Use the function, instead of macro name in
3114 errors and the log file.
3115 (return_value): Remove stray ":" in spec.
3116
3117 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
3118 * gdbarch.h, gdbarch.c: Re-generate.
3119 * Makefile.in (arch-utils.o): Update dependencies.
3120 * values.c (using_struct_return): Move code calling
3121 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
3122 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
3123 to legacy_return_value, simplify.
3124 * infcmd.c (print_return_value): Move code calling
3125 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
3126 to legacy_return_value, simplify.
3127 * infcall.c (call_function_by_hand): Move code calling
3128 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
3129 * arch-utils.c: Update copyright. Include "gdbcore.h".
3130 (legacy_return_value): New function.
3131 * arch-utils.h: Update copyright.
3132 (legacy_return_value): Declare.
3133
3134 2004-06-20 Andrew Cagney <cagney@gnu.org>
3135
3136 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
3137 * gdbarch.h, gdbarch.c: Re-generate.
3138 * values.c (using_struct_return): Update call.
3139 * mcore-tdep.c: Update comment.
3140 * infcall.c (call_function_by_hand): Update comment.
3141 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3142 * arch-utils.h (always_use_struct_convention): Update.
3143 * v850-tdep.c (v850_gdbarch_init): Update.
3144 * sh64-tdep.c (sh64_gdbarch_init): Update.
3145 * sh-tdep.c (sh_gdbarch_init): Update.
3146 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3147 * mips-tdep.c (mips_gdbarch_init): Update.
3148 * mcore-tdep.c (mcore_gdbarch_init): Update.
3149 * m32r-tdep.c (m32r_gdbarch_init): Update.
3150 * ia64-tdep.c (ia64_gdbarch_init): Update.
3151 * h8300-tdep.c (h8300_gdbarch_init): Update.
3152 * frv-tdep.c (frv_gdbarch_init): Update.
3153 * cris-tdep.c (cris_gdbarch_init): Update.
3154 * arm-tdep.c (arm_gdbarch_init): Update.
3155 * alpha-tdep.c (alpha_gdbarch_init): Update.
3156
3157 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3158
3159 * PROBLEMS: Add more specific information, and a work-around,
3160 for PR gdb/1458.
3161
3162 2004-06-18 Andrew Cagney <cagney@gnu.org>
3163
3164 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3165 * gdbarch.h, gdbarch.c: Re-generate.
3166 * ada-lang.c (ada_finish_decode_line_1): Update.
3167 * infrun.c (handle_inferior_event): Update.
3168 * infcall.c (find_function_addr): Update.
3169 * linespec.c (minsym_found): Update.
3170 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3171 Update.
3172 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3173 * cli/cli-cmds.c (disassemble_command): Update.
3174 * vax-tdep.c (vax_gdbarch_init): Update.
3175
3176 2004-06-18 Mark Kettenis <kettenis@gnu.org>
3177
3178 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3179
3180 2004-06-17 Andrew Cagney <cagney@gnu.org>
3181
3182 GDB 6.1.1 released from the GDB 6.1 branch.
3183 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3184 * PROBLEMS: Ditto.
3185
3186 2004-06-16 Daniel Jacobowitz <dan@debian.org>
3187
3188 PR gdb/1658
3189 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3190 operation as a uleb128. Found by Michael Coulter.
3191
3192 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3193
3194 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3195 make it non-static.
3196 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3197 to ada-lang.h; this is needed to be able to implement the kill command
3198 in multi-task mode.
3199 (task_ptid): Ditto.
3200 (task_entry): Ditto.
3201 (task_list): Ditto.
3202 (ada_build_task_list): Ditto.
3203
3204 * ada-lang.c: Conditionalize routines and data structures related
3205 to breakpoints, exceptions, completion, and symbol caching on
3206 GNAT_GDB, since these are not yet used in the submitted public sources.
3207 (ada_main_name): Editorial: Move definition out of exception-related
3208 code.
3209
3210 2004-06-15 Andrew Cagney <cagney@gnu.org>
3211
3212 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
3213 deprecated_pc_in_call_dummy.
3214
3215 2004-06-15 Alan Modra <amodra@bigpond.net.au>
3216
3217 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
3218 bfd_get_section_size_before_reloc or _raw_size.
3219 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3220 * dwarf2read.c (dwarf2_locate_sections): Likewise.
3221 (dwarf2_read_section): Likewise.
3222 * elfread.c (elf_locate_sections): Likewise.
3223 * gcore.c (derive_heap_segment): Likewise.
3224 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3225 * remote-e7000.c (e7000_load): Likewise.
3226 * remote-m32r-sdi.c (m32r_load): Likewise.
3227 * remote-mips.c (mips_load_srec): Likewise.
3228 (pmon_load_fast): Likewise.
3229 * remote.c (compare_sections_command): Likewise.
3230 * symfile.c (add_section_size_callback): Likewise.
3231 (load_section_callback): Likewise.
3232 (pc_in_unmapped_range): Likewise.
3233 (pc_in_mapped_range): Likewise.
3234 (sections_overlap): Likewise.
3235 (list_overlays_command): Likewise.
3236 (simple_overlay_update_1): Likewise.
3237 (simple_overlay_update): Likewise.
3238 * tracepoint.c (remote_set_transparent_ranges): Likewise.
3239 * win32-nat.c (core_section_load_dll_symbols): Likewise.
3240
3241 2004-06-14 Randolph Chung <tausq@debian.org>
3242
3243 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
3244 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
3245 static.
3246 (hppa_hpux_inferior_created): New function.
3247 (hppa_hpux_init_abi): Register observer.
3248 * symfile.c (hp_cxx_exception_support_initialized)
3249 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
3250 (symbol_file_add_main_1, symbol_file_clear): Likewise.
3251
3252 2004-06-14 Randolph Chung <tausq@debian.org>
3253
3254 * MAINTAINERS (Write After Approval): Alphabetize my entry
3255 correctly.
3256
3257 2004-06-14 Andrew Cagney <cagney@gnu.org>
3258
3259 * MAINTAINERS (testsuite): List Michael Chastain as the lead
3260 testsuite maintainer.
3261
3262 2004-06-13 Andrew Cagney <cagney@gnu.org>
3263
3264 * infcmd.c (print_return_value): Fix logic, allow
3265 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
3266
3267 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
3268 defining any macros.
3269 * gdbarch.h: Re-generate.
3270
3271 * gdbarch.sh: Delete "level" attribute. Only check for a macro
3272 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
3273 * gdbarch.h: Re-generate.
3274
3275 * values.c (generic_use_struct_convention): Don't check gcc_p.
3276
3277 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3278 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
3279 * gdbarch.h, gdbarch.c: Regenerate.
3280 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
3281 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
3282 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3283 deprecated_max_register_raw_size and
3284 deprecated_max_register_virtual_size.
3285 * v850-tdep.c (v850_gdbarch_init): Ditto.
3286 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3287 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3288 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3289 * cris-tdep.c (cris_gdbarch_init): Ditto.
3290
3291 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
3292 * gdbarch.h, gdbarch.c: Re-generate.
3293 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
3294 (m68hc11_use_struct_convention): Delete function.
3295 (m68hc11_extract_struct_value_address): Delete function.
3296 (m68hc11_return_value): New function.
3297 (m68hc11_gdbarch_init): Instead of store_return_value,
3298 extract_return_value, return_value_on_stack,
3299 deprecated_extract_struct_value_address and use_struct_convention,
3300 set return_value.
3301 * values.c (using_struct_return): Do not call
3302 RETURN_VALUE_ON_STACK.
3303 * arch-utils.h (generic_return_value_on_stack_not): Delete
3304 declaration.
3305 * arch-utils.c (generic_return_value_on_stack_not): Delete
3306 function.
3307
3308 2004-06-12 Andrew Cagney <cagney@gnu.org>
3309
3310 * values.c (register_value_being_returned): Delete function.
3311 * infcmd.c (legacy_return_value): Delete function.
3312 * infcall.c (call_function_by_hand): Inline
3313 "register_value_being_returned", simplify.
3314 * values.c (using_struct_return): Update comment, refer to
3315 print_return_value instead of register_value_being_returned.
3316 * infcmd.c (print_return_value): Inline calls to
3317 register_value_being_returned and legacy_return_value. Simplify.
3318
3319 2004-06-11 Randolph Chung <tausq@debian.org>
3320
3321 * somread.c (som_symtab_read): Exclude gcc local symbols.
3322
3323 2004-06-11 Randolph Chung <tausq@debian.org>
3324
3325 * infrun.c (handle_inferior_event): Handle the case when a
3326 trampoline ends up in the runtime resolver, and if the trampoline
3327 has no name. Rearrange the code so that all the trampoline
3328 processing happens before other step-out-of-range handling.
3329
3330 2004-06-11 Martin Hunt <hunt@redhat.com>
3331
3332 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
3333 has no fpu.
3334
3335 2004-06-10 Andrew Cagney <cagney@gnu.org>
3336
3337 * blockframe.c (legacy_inside_entry_func): Delete.
3338 (legacy_frame_chain_valid): Inline call to
3339 legacy_inside_entry_func, simplify.
3340
3341 2004-06-10 Bob Rossi <bob@brasko.net>
3342
3343 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3344 * dwarf2read.c (partial_die_info): Add dirname field.
3345 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
3346 (read_partial_die): Save away DW_AT_comp_dir.
3347 * defs.h (symtab_to_filename): Removed.
3348 * source.c (find_and_open_source): Added.
3349 (open_source_file): Just calls find_and_open_source.
3350 (symtab_to_filename): Removed.
3351 (symtab_to_fullname, psymtab_to_fullname): Added.
3352 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3353 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3354 symtab_to_filename.
3355 * symtab.h (partial_symtab): Add dirname field.
3356 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3357 (mi_cmd_file_list_exec_source_file): Call new function
3358 symtab_to_fullname to find fullname.
3359 (mi_cmd_file_list_exec_source_files): Added.
3360 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
3361 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3362
3363 2004-06-10 Andrew Cagney <cagney@gnu.org>
3364
3365 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3366 to generic_use_struct_convention, the default value.
3367
3368 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3369 of abort.
3370
3371 * ns32k-tdep.c (ns32k_push_arguments): New function.
3372 (ns32k_gdbarch_init): Set deprecated_push_arguments.
3373 * infcall.c (call_function_by_hand): Call error instead of
3374 legacy_push_arguments.
3375 * value.h (legacy_push_arguments): Delete declaration.
3376 * valops.c (legacy_push_arguments): Delete function.
3377 (value_push): Delete function.
3378
3379 2004-06-10 Brian Ford <ford@vss.fsi.com>
3380
3381 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3382 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3383 info.
3384 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3385
3386 2004-06-10 Andrew Cagney <cagney@gnu.org>
3387
3388 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3389 * gdbarch.h, gdbarch.c: Re-generate.
3390 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3391 parameters.
3392 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3393 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3394 deprecated_pc_in_call_dummy instead of
3395 DEPRECATED_PC_IN_CALL_DUMMY.
3396 (arm_skip_prologue): Ditto.
3397 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3398 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3399 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3400 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3401 Ditto.
3402 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3403 (sh64_init_extra_frame_info, sh64_get_saved_register)
3404 (sh64_pop_frame): Ditto.
3405 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3406 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3407 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3408 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3409 (h8300_pop_frame): Ditto.
3410 * blockframe.c (legacy_inside_entry_func)
3411 (legacy_frame_chain_valid): Ditto.
3412 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3413 to deprecated_pc_in_call_dummy.
3414
3415 2004-06-09 Andrew Cagney <cagney@gnu.org>
3416
3417 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3418 provide a default value.
3419 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3420 * gdbarch.h, gdbarch.c: Re-generate.
3421 * arch-utils.c (generic_convert_register_p): Rename
3422 legacy_convert_register_p
3423 (legacy_register_to_value, legacy_value_to_register): Delete
3424 functions.
3425 * arch-utils.h (generic_convert_register_p): Rename
3426 legacy_convert_register_p.
3427 (legacy_register_to_value, legacy_value_to_register): Delete
3428 declarations.
3429
3430 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3431 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3432 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3433 * gdbarch.h, gdbarch.c: Re-generate.
3434 * infcmd.c (default_print_registers_info): Simplify.
3435 * findvar.c (value_of_register): Simplify.
3436 * mi/mi-main.c (get_register): Simplify.
3437 * arch-utils.c (legacy_convert_register_p): Always return 0.
3438 (legacy_register_to_value, legacy_value_to_register): Always call
3439 internal_error.
3440
3441 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3442 #ifdef CLEAR_INSN_CACHE code.
3443 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3444 Delete #ifdef CLEAR_DEFERRED_STORES code.
3445
3446 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3447
3448 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3449 copyright.
3450 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3451
3452 * config/mips/mipsv4.mh: Delete file.
3453
3454 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3455 unreferenced macro.
3456 (hpread_adjust_stack_address): Delete declaration.
3457
3458 2004-06-08 Andrew Cagney <cagney@gnu.org>
3459
3460 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3461 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3462 PTRACE_ATTACH / PTRACE_DETACH available call error.
3463 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3464 * infttrace.c (update_thread_state_after_attach, attach, detach):
3465 Remove #ifdef wrappers.
3466 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3467 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3468 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3469 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3470 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3471 * config/nm-linux.h (ATTACH_DETACH): Delete.
3472 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3473 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3474 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3475 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3476 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3477
3478 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
3479
3480 * configure.in: Set $configdir to the right OS specific value.
3481 Use value when setting $tcldir and $tkdir.
3482 * configure: Regenerate.
3483
3484 2004-06-06 Paul Brook <paul@codesourcery.com>
3485
3486 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3487 records.
3488
3489 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3490
3491 * ada-lang.c (lookup_symbol_in_language): New function to allow
3492 re-use of another language's symbol lookup code. (Placed here
3493 temporarily while Ada support is being integrated into the public
3494 tree).
3495 (restore_language): New auxiliary function for
3496 lookup_symbol_in_language.
3497 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3498 temporarily while Ada support is being integrated into the public
3499 tree).
3500
3501 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
3502
3503 * Makefile.in (check//%): New.
3504
3505 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3506 (mn10300_store_return_value): Rewrite.
3507 (mn10300_type_align): New.
3508 (mn10300_use_struct_convention): Rewrite.
3509 (mn10300_return_value): New, using all of the above.
3510 (mn10300_pop_frame_regular): Add saved_regs_size.
3511 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3512
3513 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3514 regs if PC is on movm.
3515
3516 2004-06-07 Jim Blandy <jimb@redhat.com>
3517
3518 Add native Linux support for the PowerPC E500.
3519 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3520 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3521 all architectures except the E500.
3522 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3523 #definitions.
3524 (struct gdb_evrregset_t): New type.
3525 (have_ptrace_getsetevrregs): New variable.
3526 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3527 fetch_spe_registers): New functions.
3528 (fetch_register): Call fetch_spe_register as appropriate.
3529 Assert that we're only passed raw register numbers.
3530 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3531 Don't fetch gprs if they're pseudoregisters.
3532 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3533 store_spe_registers): New functions.
3534 (store_register): Call store_spe_register as appropriate.
3535 Assert that we're only passed raw register numbers.
3536 (store_ppc_registers): Call store_spe_registers as appropriate.
3537 Don't store gprs if they're pseudoregisters.
3538
3539 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3540
3541 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3542 struct if one exists, even if we are dealing with a zombie thread.
3543
3544 2004-06-07 Andrew Cagney <cagney@gnu.org>
3545
3546 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3547 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3548 Rename PC_REQUIRES_RUN_BEFORE_USE.
3549 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3550 #ifdef.
3551
3552 2004-06-07 Randolph Chung <tausq@debian.org>
3553
3554 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3555 unwinding after sp has been saved to the stack but before the end
3556 of the prologue, and after the fp has been modified but before it has
3557 been saved to the stack.
3558 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3559 Remove superfluous definitions.
3560 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3561
3562 2004-06-07 Guy Martin <gmsoft@gentoo.org>
3563
3564 Committed by Randolph Chung.
3565 * hppa-linux-nat.c: Include the correct version of the header file
3566 depending on the kernel version.
3567
3568 2004-06-06 Randolph Chung <tausq@debian.org>
3569
3570 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3571 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3572
3573 2004-06-06 Randolph Chung <tausq@debian.org>
3574
3575 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3576 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3577 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3578 * hppa-tdep.c (hppa_symbol_address): New function definition.
3579 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3580
3581 2004-06-06 Randolph Chung <tausq@debian.org>
3582
3583 * hppa-tdep.h (struct value): Forward declaration.
3584 (gdbarch_tdep): Define tdep find_global_pointer method.
3585 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3586 associated with the function we are trying to call, and write it
3587 to the gp register.
3588 (hppa32_convert_from_funct_ptr_addr): New function.
3589 (hppa_find_global_pointer): New function.
3590 (hppa_gdbarch_init): Set default find_global_pointer method; set
3591 convert_from_func_ptr_addr method.
3592 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3593 (hppa_linux_init_abi): Set find_global_pointer method.
3594 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3595
3596 2004-06-06 Randolph Chung <tausq@debian.org>
3597
3598 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3599 to struct value *function.
3600 * gdbarch.c: Regenerate.
3601 * gdbarch.h: Likewise.
3602 * infcall.c (call_function_by_hand): Pass entire function value
3603 to push_dummy_call.
3604
3605 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3606 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3607 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3608 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3609 * arm-tdep.c (arm_push_dummy_call): Likewise.
3610 * avr-tdep.c (avr_push_dummy_call): Likewise.
3611 * cris-tdep.c (cris_push_dummy_call): Likewise.
3612 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3613 * frv-tdep.c (frv_push_dummy_call): Likewise.
3614 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3615 * hppa-tdep.c (hppa32_push_dummy_call)
3616 (hppa64_push_dummy_call): Likewise.
3617 * i386-tdep.c (i386_push_dummy_call): Likewise.
3618 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3619 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3620 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3621 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3622 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3623 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3624 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3625 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3626 (ppc64_sysv_abi_push_dummy_call): Likewise.
3627 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3628 (ppc64_sysv_abi_push_dummy_call): Likewise.
3629 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3630 * s390-tdep.c (s390_push_dummy_call): Likewise.
3631 * sh-tdep.c (sh_push_dummy_call_fpu)
3632 (sh_push_dummy_call_nofpu): Likewise.
3633 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3634 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3635 * vax-tdep.c (vax_push_dummy_call): Likewise.
3636
3637 2004-06-04 Jim Blandy <jimb@redhat.com>
3638
3639 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3640 gdbarch argument to register_size.
3641
3642 * rs6000-tdep.c (rs6000_store_return_value): Use
3643 regcache_cooked_write_part instead of
3644 deprecated_write_register_bytes.
3645 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3646 not gdbarch_deprecated_store_return_value.
3647
3648 * ppc-linux-nat.c (store_register, fetch_register): Remove
3649 incorrect assertions. Simplify and generalize handling of
3650 transfers whose sizes are not multiples of, or less than, sizeof
3651 (PTRACE_XFER_TYPE).
3652
3653 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3654
3655 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3656 as a new thread event.
3657 * thread-db.c (thread_get_info_callback): If the thread is a
3658 zombie, return TD_THR_ZOMBIE.
3659 (thread_from_lwp): If thread_get_info_callback returns
3660 TD_THR_ZOMBIE, check if the thread is still on the thread list
3661 and return a -1 ptid if not found.
3662 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3663 change the status to TARGET_WAITKIND_SPURIOUS.
3664
3665 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
3666
3667 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3668 double values in little endian mode.
3669
3670 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3671
3672 Committed by Andrew Cagney.
3673 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3674 after last enum constant to avoid error from IBM C
3675 compiler.
3676
3677 2004-06-02 Jim Blandy <jimb@redhat.com>
3678
3679 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3680 to 'message', and make it local to the lone block that uses it.
3681
3682 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3683
3684 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3685
3686 * ada-exp.y: Update copyright notice.
3687 Include block.h.
3688
3689 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3690 SPECIAL_VARIABLE and unify the treatment of these cases.
3691
3692 (write_attribute_call0): Remove.
3693 (write_attribute_call1): Remove.
3694 (write_attribute_calln): Remove.
3695 (save_qualifier): Add missing semicolon.
3696
3697 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3698 temporarily disabled to allow compilation with FSF head version.
3699
3700 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3701 use individual operators (OP_*) for all attributes.
3702 (exp syntax): Use write_int.
3703 Handle STRING literals with OP_STRING.
3704 (variable syntax): Add limit parameter to calls to
3705 write_object_renaming.
3706
3707 (temp_parse_space): New definition to hold entities that need
3708 only live until the next call to ada_parse.
3709 (string_to_operator): Rename fields of ada_opname_table entries.
3710
3711 (write_var_from_sym): Record block.
3712 (write_var_from_name): Minor reformatting.
3713 Make sure saved name is properly encoded in the case of multiple
3714 matches, and set its language to Ada.
3715 Update comment.
3716 Modify to indicate unresolved name as symbol in the UNRESOLVED
3717 namespace, allocated in temp_parse_space.
3718 (write_int): New function.
3719
3720 (write_object_renaming): Add max_depth parameter to limit
3721 chains of object renamings.
3722 Handle case where root of renaming expression is itself a renaming.
3723 Use temp_parse_space for temporary name buffer.
3724 Handle renamings to dereferenced pointers (___XEXA suffices).
3725
3726 (ada_parse, yyerror, string_to_operator,
3727 write_var_from_sym, write_var_from_name, write_attribute_call0,
3728 write_attribute_call1, write_attribute_calln,
3729 write_object_renaming): Protoize.
3730
3731 (_initialize_ada_exp): New function.
3732
3733 * ada-lang.c: Update copyright notice.
3734 General terminology change to conform to GNAT compiler usage:
3735 mangle => encode, demangle => decode
3736 Include gdb_obstack.h.
3737 Include gdb_regex.h
3738 Include frame.h
3739 Include hashtab.h
3740 Include completer.h
3741 Include gdb_stat.h
3742 Include block.h
3743 Include infcall.h
3744
3745 (ADA_RETAIN_DOTS): Make sure this is defined.
3746 (TRUNCATION_TOWARDS_ZERO): Define.
3747 (struct string_vector): Define.
3748 (unresolved_names): Remove definition.
3749 (xnew_string_vector): New function.
3750 (string_vector_append): New function.
3751 (extract_string): Make static.
3752 (ada_unqualified_name): New function.
3753 (add_angle_brackets): New function.
3754 (function_name_from_pc): New function.
3755 (place_on_stack): Rename to ensure_lval.
3756
3757 (ensure_lval): Renamed from place_on_stack.
3758 Make identity on lvals.
3759 Update comment.
3760 (is_nonfunction): New interface.
3761 Only symbols in LOC_CONST class can be enumerals.
3762 (fill_in_ada_prototype): Remove; now independent of language.
3763 (add_defn_to_vec): Add obstack and symtab arguments.
3764 Use obstack to hold collected definitions.
3765 (num_defns_collected): New function.
3766 (defns_collected): New function.
3767 (ada_resolve_subexp): Rename to resolve_subexp.
3768 (resolve_subexp): Renamed from ada_resolve_subexp.
3769 (ada_op_name): Return non-const result.
3770 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3771 other purposes.
3772
3773 (to_fixed_array_type): Add declaration.
3774 (coerce_unspec_val_to_type): Remove offset parameter.
3775 (find_sal_from_funcs_and_line): New interface.
3776 (find_line_in_linetable): Ditto.
3777
3778 (all_sals_for_line): Rename to ada_sals_for_line and make
3779 global.
3780 Add new parameter. When set, do not ask the user to choose the
3781 instance, but use the first one found instead.
3782 Use given line number in returned sals.
3783 Fix comment.
3784 Skip the prologue if funfirstline is set.
3785 Correct for memory leak when 0 lines found.
3786
3787 (value_pos_atr): Use pos_atr.
3788 (pos_atr): New function.
3789 (standard_lookup): Add block parameter.
3790
3791 (makeTimeStart): Remove declaration and uses.
3792 (makeTimeStop): Remove declaration and uses.
3793
3794 (ada_completer_word_break_characters): Allow for VMS.
3795 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3796 (raise_sym_name): New constant.
3797 (raise_unhandled_sym_name): New constant.
3798 (raise_assert_sym_name): New constant.
3799 (process_raise_exception_name): New constant.
3800 (longest_exception_template): New constant.
3801 (warning_limit): New variable to limit warnings during expression
3802 evaluation.
3803 (warnings_issued): New variable to keep track of warnings issued.
3804 (known_runtime_file_name_patterns): New constant.
3805 (known_auxiliary_function_name_patterns): New constant.
3806 (symbol_list_obstack): New variable.
3807
3808 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3809 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3810 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3811 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3812 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3813 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3814 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3815 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3816 and strcmp.
3817
3818 (ada_get_field_index): New function.
3819 (lim_warning): New function.
3820 (ada_translate_error_message): New function.
3821 (MAX_OF_SIZE): New function.
3822 (MIN_OF_SIZE): New function.
3823 (UMAX_OF_SIZE): New function.
3824 (UMIN_OF_SIZE): New function.
3825 (discrete_type_high_bound): New function.
3826 (discrete_type_low_bound): New function.
3827 (base_type): New function.
3828 (do_command): Remove.
3829
3830 (ada_update_initial_language): Use language_ada, not language_unknown.
3831 (ada_encode): Renamed from ada_mangle.
3832 Obey ADA_RETAIN_DOTS.
3833 (ada_decode): Renamed from ada_demangle.
3834 Update coding conventions.
3835 (decoded_names_store): New hash table.
3836 (ada_decode_symbol): New function.
3837 (ada_la_decode): New function.
3838
3839 (modify_general_field): Correct computations of offset and bit
3840 position.
3841 (desc_base_type): Handle ref types, too.
3842 (ada_is_direct_array_type): New function.
3843
3844 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3845 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3846 (ada_is_bogus_array_descriptor,ada_type_of_array,
3847 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3848 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3849 ada_is_array_descriptor_type.
3850
3851 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3852 (ada_is_packed_array_type): Handle pointers or
3853 references to packed arrays as well.
3854 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3855 (decode_packed_array_type): Search for the packed array type
3856 symbol in the currently selected block and associated
3857 superblocks too.
3858 Use lookup_symbol again.
3859
3860 (decode_packed_array): Handle pointers and references.
3861 Update call to coerce_unspec_val_to_type.
3862 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3863 (ada_value_primitive_packed_val): Improve comment.
3864
3865 (ada_index_type): Substitute int type for "undefined".
3866 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3867 ada_array_langth, ada_is_string_type): Use renamed
3868 ada_is_simple_array_type.
3869 (empty_array): New function.
3870
3871 (ada_resolve): Rename to resolve.
3872 (resolve): Make static.
3873 Call renamed resolve_subexp.
3874 Update comment.
3875 (ada_resolve_subexp): Rename to resolve_subexp.
3876 (resolve_subexp): Update comment.
3877 Decomment disabled code.
3878 Add LOC_COMPUTED* cases.
3879 Modify to use temporary struct symbols (marked as being in
3880 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3881 OP_UNRESOLVED_VALUE.
3882 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3883 Add OP_STRING case.
3884 Remove OP_ARRAY.
3885 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3886 Use new ada_lookup_symbol_list interface.
3887 Use new ada_resolve_function interface.
3888 Remove OP_TYPE case.
3889
3890 (ada_args_match): Idiot proof against null actuals.
3891 Use intermediate variables to clarify.
3892 (ada_resolve_function): Update comment and interface.
3893 (mangled_ordered_before): Rename to encoded_ordered_before and
3894 update comment.
3895 (sort_choices): Update comment and interface.
3896 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3897 (user_select_syms): New interface.
3898 Use new sort_choices interface.
3899 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3900 (possible_user_operator_p): Idiot-proof against null values.
3901 (ada_simple_renamed_entity): Don't make cleanup; rely on
3902 caller to free result string.
3903 Remove const from return type.
3904 (make_array_descriptor): Rename uses of place_on_stack to
3905 ensure_lval.
3906 Make sure that arrays are on stack.
3907
3908 (HASH_SIZE): Define.
3909 (struct cache_entry): Define.
3910 (cache_space): Define.
3911 (cache): Define.
3912 (clear_ada_sym_cache): New function.
3913 (find_entry): New function.
3914 (lookup_cached_symbol): New function.
3915 (defn_vector_size): Define.
3916 (cache_symbol): New function.
3917 (defn_symbols): Remove.
3918
3919 (standard_lookup): Use lookup_symbol_in_language to get effect of
3920 C lookup.
3921 Cache results.
3922
3923 (symbol_completion_match): New function.
3924 (symbol_completion_add): New function.
3925 (ada_make_symbol_completion_list): New function.
3926
3927 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3928 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3929 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3930 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3931
3932 (ada_lookup_simple_minsym): New function.
3933 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3934
3935 (add_symbols_from_enclosing_procs): New interface.
3936 Conditionalize more helpfully.
3937 Don't bother if program isn't running.
3938 Use new interface to get_frame_block.
3939 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3940
3941 (remove_extra_symbols): New interface.
3942 (xget_renaming_scope): New function.
3943 (is_package_name): New function.
3944 (renaming_is_visible): New function.
3945 (remove_out_of_scope_renamings): New function.
3946
3947 (ada_lookup_symbol_list): New interface.
3948 Properly reinitialize the symbol list obstack.
3949 Don't call add_symbols_from_enclosing_procs if we start from a
3950 static or global block.
3951 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3952 add_symbols_from_enclosing_procs.
3953 Add symtab data to cached entries.
3954 Handle symbols prefixed with
3955 "standard__" specially; strip prefix and don't look in local symbols.
3956 Do not include out of scope renaming symbols in list of
3957 symbols returned.
3958 Add const to block parameter.
3959 Move check for non-local, non-global symbols earlier.
3960 Remove timing stuff.
3961 (ada_lookup_symbol): New interface.
3962 Find symtab as well.
3963 (ada_lookup_symbol_nonlocal): New function.
3964
3965 (is_name_suffix): Enhance suffix detection to recognize
3966 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3967 (is_dot_digits_suffix): New function.
3968 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3969
3970 (ada_add_block_symbols): New interface. Use obstack to return results
3971 in a vector of struct ada_symbol_infos. Add symtab argument.
3972 Use new interface to add_defn_to_vec.
3973 Remove calls to fill_in_ada_prototype.
3974 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3975
3976 (ada_finish_decode_line_1): Add const qualification to local to fix
3977 warning.
3978 Start looking in static block for functions to avoid attempts
3979 to search frame chain for up-level variables.
3980 Adapt to new ada_sals_for_line interface.
3981 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3982 Handle quoting of the function name inside the spec string.
3983 Skip prologue when funfirstline is set and update the
3984 function documentation to that effect.
3985
3986 (debug_print_lines, debug_print_block, debug_print_blocks,
3987 debug_print_symtab): Remove.
3988
3989 (ada_main_name): New function.
3990 (ada_exception_breakpoint_type): New function.
3991 (is_known_support_routine): New function.
3992 (ada_find_printable_frame): Renamed from find_printable_frame and made
3993 global.
3994 Remove level parameter.
3995 Use new interface to select_frame.
3996
3997 (begin_command): Remove.
3998 (ada_adjust_exception_stop): New function.
3999 (ada_print_exception_stop): New function.
4000 (exception_name_from_cond): New function.
4001 (ada_report_exception_break): Replace disabled code with
4002 conditionalization on GNAT_GDB.
4003 Get the exception name from the condition string.
4004 Remove and move functionality into new functions
4005 ada_print_exception_breakpoint_task and
4006 ada_print_exception_breakpoint_nontask.
4007 (error_breakpoint_runtime_sym_not_found): New function.
4008 (is_runtime_sym_defined): New function.
4009 (ada_breakpoint_rewrite): Uncomment suppressed code.
4010 Use symbolic error-message and runtime-symbol names.
4011 Surround runtime symbol names in quotes.
4012 Allow non-specific breakpoints on exceptions and assertions before
4013 program starts.
4014
4015 (ada_is_tagged_type): Add parameter.
4016 (ada_is_tag_type): New function.
4017 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4018 (ada_variant_discrim_type): Ditto.
4019 (value_tag_from_contents_and_address): New function.
4020 (type_from_tag): New function.
4021 (struct tag_args): New structure used to communicate with
4022 ada_tag_name_1.
4023 (ada_tag_name_1): New function.
4024 (ada_tag_name): New function.
4025
4026 (ada_scan_number): Update comment.
4027 (find_struct_field): New function.
4028 (ada_search_struct_field): Make static.
4029 (ada_value_struct_elt): New version that returns references when
4030 given pointers or references to structs.
4031 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4032 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4033 interface.
4034 (ada_value_ind): Use new ada_to_fixed_value interface.
4035 (ada_coerce_ref): Ditto.
4036 (field_offset): Remove.
4037
4038 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4039 (ada_find_renaming_symbol): New function.
4040 (ada_prefer_type): Prefer named types over unnamed ones.
4041 (variant_field_index): New function.
4042 (contains_variant_part): Removed: subsumed by variant_field_index.
4043 (ada_template_to_fixed_record_type): New function, mostly from
4044 template_to_fixed_record_type.
4045 (template_to_fixed_record_type):
4046 Do not scan the type fields beyond the last one; prevents a
4047 potential SEGV.
4048 Handle case where variant field is listed BEFORE discriminant it
4049 depends on.
4050 Fix calculation of record length when bit length is
4051 not evenly divisible by char length.
4052 Move code to ada_template_to_fixed_record_type and call it.
4053
4054 (template_to_static_fixed_type): Revise comment.
4055 Modify to work on ordinary record types as well as templates,
4056 so as to handle fields that use ___XVE or ___XVU encodings.
4057 (to_record_with_fixed_variant_part): Fill out comment.
4058 Initialize C++ stuff in right type.
4059 Allow case where DVAL is null.
4060 Handle case where variant field is not last.
4061 Fix typo concerning record length.
4062 (to_fixed_record_type): Decomment disabled code.
4063 (to_fixed_record_type): Use variant_field_index instead of
4064 contains_variant_part.
4065 (to_fixed_variant_branch_type): Ditto.
4066 (to_fixed_array_type): Decomment disabled code.
4067 (ada_to_fixed_type): Convert tagged types to the specific type.
4068 Deactivate the size-check for array types in order to avoid
4069 some false size alarms.
4070 (to_static_fixed_type): Decomment disabled code.
4071 Modify to call template_to_static_fixed_type
4072 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4073 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4074 Remove valaddr argument, as it is never really used.
4075 (ada_to_fixed_value): Change interface to act on single struct value*
4076 operand.
4077 (adjust_pc_past_prologue): New function.
4078 (ada_attribute_name): Modify to take enum exp_opcode argument.
4079
4080 (ada_enum_name): Recognize new homonym-distinguishing convention.
4081 Adjust local variable's type to remove compiler warning.
4082 Fix a small problem in the part that unqualifies the enumeration name.
4083 (ada_value_binop): New function.
4084 (ada_value_equal): New function.
4085
4086 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
4087 Don't give error message when not doing normal evaluation
4088 and a tagged type doesn't seem to contain a structure member.
4089 Give error message for packed arrays.
4090 For indexing arrays, handle pointers to packed arrays correctly.
4091 Handle case of 'first and 'last attributes of bare integral type
4092 without encoded subtype info.
4093 Remove some unnecessary casts.
4094 Fix uninitialized value of type in computing 'first, 'last, or 'length
4095 of array object.
4096 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
4097 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
4098 calls.
4099 Attributes are now exp_opcode values.
4100 Correct treatment of 'modulus.
4101 Better error message for taking 'length of wrong kind of type;
4102 improve comment.
4103 Change EVAL_NORMAL to noside for consistency.
4104 Use ada_value_binop for DIV, MOD, REM.
4105 Make special case out of array of length 0, since an argument
4106 of 0 upsets some platforms' malloc.
4107 Use OP_STRING instead of OP_ARRAY.
4108 For slice, add check that we have an array type before extracting
4109 a slice out of it. Avoids a SEGV.
4110 When evaluating an array slice, if the array type is a reference to
4111 an aligner type, then replace the aligner type by the actual type.
4112 Decomment disabled code.
4113 Remove some dead code.
4114 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
4115 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
4116 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
4117 and UNOP_MBR to UNOP_IN_RANGE.
4118 If an array type has a parallel ___XVE type, then use it.
4119 Turn arrays into pointers for lvalue arrays.
4120 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
4121 bounds error and handle 0-length slices.
4122 Use lim_warning.
4123 When selecting fields, apply ada_to_fixed_value (because the fields
4124 might have ___XVU or ___XVE encodings even if not dynamic.)
4125 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
4126 (ada_is_system_address_type): New function.
4127
4128 (get_var_value): Use new interface to ada_lookup_symbol_list.
4129 (get_int_var_value): New interface.
4130 (to_fixed_range_type): Allow unknown bound, with warning.
4131 (ada_is_modular_type): Decomment disabled code.
4132 (ADA_OPERATORS): New definition.
4133 (ada_operator_length): New function.
4134 (ada_expr_op_name): New function.
4135 (ada_forward_operator_length): New function.
4136 (ada_dump_subexp_body): New function.
4137 (ada_print_subexp): New function.
4138 (ada_exp_descriptor): New constant.
4139 (ada_op_print_tab): Add 'size. Remove FIXMEs.
4140 (ada_language_defn): Add ada_exp_descriptor entry.
4141 Change ada_parse => parse.
4142 Add post-parser entry.
4143 Use ada-specific non-local symbol lookup.
4144 Don't use C-style arrays.
4145 String lower-bound is 1.
4146 Decomment disabled code.
4147 (parse): New function.
4148 New fields ada_translate_error_message, ada_lookup_symbol,
4149 ada_lookup_minimal_symbol.
4150
4151 * ada-lang.h: Update copyright dates.
4152 Replace the mangle/demangle terminology throughout by the
4153 more appropriate encode/decode one.
4154 Include breakpoint.h.
4155 Forward declare struct partial_symbol, struct block.
4156 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4157 (EXTRACT_ADDRESS): Remove.
4158 (EXTRACT_INT): Remove.
4159 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4160 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4161 (MAX_RENAMING_CHAIN_LENGTH): Define.
4162 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4163
4164 (enum task_states): Remove.
4165 ada_task_states: Remove.
4166 (fat_string): Remove.
4167 (struct entry_call): Remove.
4168 (struct task_fields): Remove.
4169 (struct task_entry): Remove.
4170
4171 (struct ada_symbol_info): Define.
4172 (enum ada_attribute): Remove.
4173 (enum ada_operator): Define.
4174
4175 (ada_get_field_index): Declare.
4176 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4177 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4178 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4179 (ada_lookup_symbol_list): New interface.
4180 (ada_decode_symbol): Declare.
4181 (ada_decode): Declare.
4182 (ada_lookup_symbol): New interface.
4183 (ada_update_initial_language): Declare.
4184 (ada_lookup_simple_minsym): Declare.
4185 (user_select_syms): New interface.
4186 (ada_sals_for_line): Declare.
4187 (ada_is_tagged_type): New interface.
4188 (ada_tag_name): Declare.
4189 (ada_lookup_struct_elt_type): Remove declaration.
4190 (ada_search_struct_field): Remove declaration.
4191 (ada_attribute_name): New interface.
4192 (ada_is_system_address_type): Declare.
4193 (ada_to_fixed_value): Remove declaration.
4194 (ada_template_to_fixed_record_type_1): Declare.
4195 (get_int_var_value): New interface.
4196 (ada_find_any_symbol): Declare.
4197 (ada_find_renaming_symbol): Declare.
4198 (ada_mangle): Rename to ada_encode.
4199 (ada_simple_renamed_entity): Remove const.
4200 (ada_main_name): Declare.
4201 (get_current_task): Rename to ada_get_current_task.
4202 (get_entry_number): Remove declaration.
4203 (ada_report_exception_break): Remove declaration.
4204 (ada_print_exception_breakpoint_nontask): Declare.
4205 (ada_print_exception_breakpoint_task): Declare.
4206 (ada_find_printable_frame): Declare.
4207
4208 * ada-lex.l: Update copyright notices.
4209 Use xmalloc and xfree instead of malloc and free.
4210 Use new interface to name_lookup.
4211 Use new interface to
4212 ada_mangle=>ada_encode.
4213 Redo handling of '$...' variable to parallel current treatment
4214 in c-exp.y.
4215 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
4216 digit_to_int, strtoulst, processInt, processReal, processId,
4217 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
4218 yywrap): Protoize.
4219
4220 (processInt): Use cast to remove harmless warning.
4221 (processReal): Modify to get rid of compiler warning on scan formats.
4222
4223 (processId): Replace xmalloc with obstack_alloc for name and remove
4224 call to ada_name_string_cleanup.
4225 Remove obsolete disabled code.
4226 (name_lookup): Ditto.
4227 New interface.
4228 Use obsavestring on temp_parse_space instead of savestring
4229 on name, and remove call to ada_name_string_cleanup.
4230 Free string returned from ada_simple_renamed_entity.
4231 Use new interface to ada_lookup_symbol_list.
4232 Decomment disabled code.
4233 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
4234 not types.
4235 When a type name lookup succeeds as a result of
4236 lookup_primitive_typename, check for regular type entry that has not
4237 yet been read in.
4238 Limit length of chain of renamed symbols we are willing to follow.
4239 Do not break names beginning with "standard__" into segments.
4240 (block_lookup): Use new interface to ada_lookup_symbol_list.
4241
4242 * ada-typeprint.c: Update copyright notice.
4243 (demangled_type_name): Rename to decoded_type_name.
4244 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
4245 (print_range_bound): Correct handling of negative
4246 bounds that make the index type looked unsigned under STABS.
4247 (print_dynamic_range_bound): Use new interface to get_int_var_value.
4248 (print_range_type_named): Use the builtin int type if no type
4249 corresponding to the given type name could be found.
4250 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
4251 Add some bullet-proofing.
4252 (print_variant_clauses): Allow for variant branches with ___XVU
4253 encodings that are not dynamic fields.
4254 Use new interface to ada_is_tagged_type.
4255 (print_record_type): Allow for fields with ___XVE encodings that
4256 are not dynamic fields.
4257 Use new interface to ada_is_tagged_type.
4258 (ada_print_type): ada_is_array_descriptor =>
4259 ada_is_array_descriptor_type.
4260
4261 * ada-valprint.c: Update copyright notice.
4262 Include gdb_string.h
4263 Include infcall.h
4264 (ui_memcpy): New function.
4265 (ada_print_floating): New function.
4266 (ada_print_str): Order arguments correctly.
4267 Correct handling of empty arrays and arrays of 0-length items.
4268 ada_is_array_descriptor => ada_is_array_descriptor_type
4269 Print values of type System.Address in hexadecimal format.
4270 Use ada_print_floating to print floating-point numbers in Ada format.
4271 Print class tag values with type names.
4272 No longer print the address of reference values. Avoids
4273 a potential confusion.
4274 (ada_value_print): Stop printing the object type for reference
4275 values, but preserve that behavior for access types. Avoids
4276 a potential confusion.
4277 Simplify one conditional expression, as the first part is now
4278 necessarily true.
4279 ada_is_array_descriptor => ada_is_array_descriptor_type
4280 Add check for arrays for null records, and print them by hand.
4281
4282 2004-06-01 Jim Blandy <jimb@redhat.com>
4283
4284 * ppc-tdep.h: Delete unused 'regoff' member.
4285 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
4286
4287 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
4288
4289 Fix PR symtab/1661.
4290 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
4291 (hpread_read_struct_type): Likewise.
4292
4293 2004-06-01 Andrew Cagney <cagney@gnu.org>
4294
4295 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
4296 instead of xasprintf.
4297 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
4298 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4299 (mi_cmd_data_list_register_names)
4300 (mi_cmd_data_list_changed_registers)
4301 (mi_cmd_data_list_register_values)
4302 (get_register, mi_cmd_data_write_register_values)
4303 (mi_cmd_data_write_register_values)
4304 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
4305 (mi_cmd_target_download, mi_cmd_target_select)
4306 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
4307 (mi_execute_cli_command, mi_execute_async_cli_command)
4308 (mi_execute_async_cli_command): Ditto.
4309 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
4310 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
4311
4312 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
4313 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
4314 error_last_message instead of mi_error_last_message.
4315 * mi/mi-main.c (mi_error_last_message): Delete function.
4316
4317 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
4318 "invalid number of columns" error. Delete redundant "out of
4319 memory" check.
4320
4321 2004-05-31 Mark Kettenis <kettenis@gnu.org>
4322
4323 * i386bsd-nat.c: Don't include <sys/procfs.h>.
4324 (gregset_t, fpregset_t): Remove typedefs.
4325 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
4326 (REG_OFFSET): Rename argument.
4327 (i386bsd_r_reg_offset): Rename from reg_offset.
4328 (REG_ADDR): Remove macro.
4329 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
4330 functions.
4331 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
4332 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
4333 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
4334 instead of supply_gregset.
4335 (store_inferior_registers): Use `struct reg' and `struct fpreg'
4336 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
4337 instead of fill_gregset.
4338 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
4339
4340 * i386bsd-nat.c: Don't include "gregset.h".
4341 (supply_gregset, fill_gregset): Make static.
4342 (supply_fpregset, fill_fpregset): Remove.
4343 * Makefile.in (i386bsd-nat.o): Update dependencies.
4344
4345 2004-05-30 Mark Kettenis <kettenis@gnu.org>
4346
4347 * fbsd-proc.c: Include "regcache.h", "regset.h" and
4348 "gdb_assert.h". Con't include "gregset.h".
4349 (fbsd_make_corefile_notes): Use regset-based core file support
4350 instead off fill_gregset and fill_fpregset.
4351 * Makefile.in (fbsd-proc.o): Update dependencies.
4352
4353 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4354 instructions.
4355 (m88k_frame_prev_register): Simplify code a bit.
4356
4357 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4358 (amd64_collect_fpregset): New function.
4359 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4360
4361 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4362
4363 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4364 (i386_collect_gregset): New function.
4365 (i386_supply_fpregset): Adjust comment.
4366 (i386_collect_fpregset): New function.
4367 (i386_regset_from_core_section): Use i386_collect_gregset and
4368 i386_collect_fpregset.
4369
4370 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4371 handle VALUEP being null.
4372
4373 * regset.h (collect_regset_ftype): Unconstify fourth argument.
4374
4375 2004-05-29 Mark Kettenis <kettenis@gnu.org>
4376
4377 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4378
4379 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4380 assembler in OpenBSD 3.5-current.
4381 (amd64obsd_sigcontext_addr): Likewise.
4382
4383 2004-05-28 Jim Blandy <jimb@redhat.com>
4384
4385 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4386 register set, so our regcache isn't declared "legacy" and our E500
4387 pseudoregister read and write functions aren't ignored.
4388 (rs6000_register_byte, rs6000_register_raw_size,
4389 rs6000_register_virtual_type, rs6000_register_convertible,
4390 rs6000_register_convert_to_virtual,
4391 rs6000_register_convert_to_raw): Deleted.
4392 (rs6000_register_type, rs6000_convert_register_p,
4393 rs6000_register_to_value, rs6000_value_to_register): New
4394 functions.
4395 (rs6000_gdbarch_init): Don't register
4396 gdbarch_deprecated_register_size,
4397 gdbarch_deprecated_register_bytes,
4398 gdbarch_deprecated_register_byte,
4399 gdbarch_deprecated_register_raw_size,
4400 gdbarch_deprecated_register_virtual_type,
4401 gdbarch_deprecated_register_convertible,
4402 gdbarch_deprecated_register_convert_to_virtual, or
4403 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4404 register gdbarch_register_type, gdbarch_convert_register_p,
4405 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4406
4407 2004-05-26 Jim Blandy <jimb@redhat.com>
4408
4409 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4410 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4411 functions, updated to match the register numberings used in GCC.
4412 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4413 rs6000_dwarf2_reg_to_regnum as register number conversions
4414 functions for STABS and Dwarf2.
4415
4416 2004-05-26 Randolph Chung <tausq@debian.org>
4417
4418 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4419 in header file.
4420
4421 2004-05-25 Joel Brobecker <brobecker@gnat.com>
4422
4423 * NEWS: Document new "start" command.
4424
4425 2004-05-25 Randolph Chung <tausq@debian.org>
4426
4427 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4428 hppa-linux.
4429
4430 2004-05-25 Randolph Chung <tausq@debian.org>
4431
4432 * hppa-hpux-tdep.c (offsetof): Define.
4433 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4434 (hppa32_hpux_frame_base_before_sigtramp)
4435 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4436 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4437 (hppa64_hpux_frame_base_before_sigtramp)
4438 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4439 functions.
4440 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4441 (hppa_hpux_sigtramp_frame_unwind_cache)
4442 (hppa_hpux_sigtramp_frame_this_id)
4443 (hppa_hpux_sigtramp_frame_prev_register)
4444 (hppa_hpux_sigtramp_frame_unwind)
4445 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4446 (hppa_hpux_init_abi): Register sigtramp unwinder.
4447 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4448
4449 2004-05-25 Randolph Chung <tausq@debian.org>
4450
4451 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4452 and multiple stack unwinds.
4453 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4454
4455 2004-05-25 Andrew Cagney <cagney@gnu.org>
4456
4457 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4458 * symfile-mem.h: Delete file.
4459 * symfile-mem.c: Do not include "symfile-mem.h".
4460 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4461 "struct bfd_section". When an error do not bother returning NULL.
4462 (add_symbol_file_from_memory_command): Use "struct bfd" and
4463 "struct bfd_section".
4464 * Makefile.in (symfile_mem_h): Delete.
4465 (symfile-mem.o): Update dependencies.
4466
4467 2004-05-25 Nick Roberts <nickrob@gnu.org>
4468
4469 * gdb-mi.el: New file.
4470
4471 2004-05-25 Andrew Cagney <cagney@gnu.org>
4472
4473 * inftarg.c: Include "observer.h".
4474 (child_attach, child_create_inferior): Notify inferior_created.
4475 * corelow.c: Include "observer.h".
4476 (core_open): Notify inferior_created.
4477 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4478
4479 2004-05-25 Andrew Cagney <cagney@gnu.org>
4480
4481 * target.h (struct target_ops): Add from_tty to
4482 to_create_inferior.
4483 (target_create_inferior, find_default_create_inferior): Update.
4484 * infcmd.c (run_command): Update.
4485 * wince.c (child_create_inferior): Update.
4486 * win32-nat.c (child_create_inferior): Update.
4487 * uw-thread.c (uw_thread_create_inferior): Update.
4488 * thread-db.c (thread_db_create_inferior): Update.
4489 * target.c (debug_to_create_inferior)
4490 (find_default_create_inferior): Update.
4491 (maybe_kill_then_create_inferior): Update.
4492 * sol-thread.c (sol_thread_create_inferior): Update.
4493 * remote.c (extended_remote_async_create_inferior)
4494 (extended_remote_create_inferior): Update.
4495 * remote-vx.c (vx_create_inferior): Update.
4496 * remote-st.c (st2000_create_inferior): Update.
4497 * remote-sim.c (gdbsim_create_inferior): Update.
4498 * remote-sds.c (sds_create_inferior): Update.
4499 * remote-rdp.c (remote_rdp_create_inferior): Update.
4500 * remote-rdi.c (arm_rdi_create_inferior): Update.
4501 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4502 * remote-e7000.c (e7000_create_inferior): Update.
4503 * procfs.c (procfs_create_inferior): Update.
4504 * ocd.c (ocd_create_inferior): Update.
4505 * ocd.h (ocd_create_inferior): Update.
4506 * nto-procfs.c (procfs_create_inferior): Update.
4507 * monitor.c (monitor_create_inferior): Update.
4508 * lin-lwp.c (lin_lwp_create_inferior): Update.
4509 * inftarg.c (child_create_inferior): Update.
4510 * hpux-thread.c (hpux_thread_create_inferior): Update.
4511 * gnu-nat.c (gnu_create_inferior): Update.
4512
4513 2004-05-25 Andrew Cagney <cagney@gnu.com>
4514
4515 * MAINTAINERS: Update e-mail address.
4516
4517 2004-05-24 Randolph Chung <tausq@debian.org>
4518
4519 * thread.c (info_threads_command, thread_apply_all_command)
4520 (thread_apply_command, thread_command, do_captured_thread_select):
4521 Remove HPUXHPPA-specific code.
4522
4523 2004-05-24 Randolph Chung <tausq@debian.org>
4524
4525 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4526 unused symbols.
4527 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4528 references.
4529
4530 2004-05-24 Joel Brobecker <brobecker@gnat.com>
4531
4532 * infcmd.c (kill_if_already_running): New function, extracted
4533 from run_command().
4534 (run_command): Replace extracted code by call to
4535 kill_if_already_running().
4536 (start_command): New function.
4537 (_initialize_infcmd): Add "start" command.
4538
4539 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4540
4541 Add OpenBSD/m88k support.
4542 * NEWS (New native configurations): Mention OpenBSD/m88k.
4543 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4544 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4545 * Makefile.in (m88k_tdep_h): New variable.
4546 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4547 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4548 * configure.host: Add m88*-*-openbsd*.
4549 * configure.tgt: Add m88*-*-openbsd*.
4550
4551 2004-05-24 Jim Blandy <jimb@redhat.com>
4552
4553 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4554 to approve changes.
4555
4556 2004-05-24 Kevin Buettner <kevinb@redhat.com>
4557
4558 * symtab.c (fixup_section): Search section table when lookup by
4559 name fails.
4560
4561 2004-05-24 Randolph Chung <tausq@debian.org>
4562
4563 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4564 be "small_struct".
4565
4566 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4567
4568 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4569 register number in regcache_raw_collect call.
4570 (m68kbsd_collect_fpregset): Likewise.
4571 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4572
4573 * regset.h (struct regset): Add back `regset' member.
4574
4575 2004-05-23 Mark Kettenis <kettenis@gnu.org>
4576
4577 * configure.in: Check for td_pcb in `struct thread'.
4578 * configure, config.in: Regenerated.
4579
4580 * dpx2-nat.c: Remove file.
4581 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4582 (dpx2-nat.o): Remove dependencies.
4583
4584 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4585 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4586 (amd64obsd_supply_pcb): New function.
4587 (_initialize_amd64obsd_nat): Enable libkvm interface.
4588 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4589 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4590 (LOADLIBES): New variable.
4591
4592 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4593 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4594 (sparc32nbsd_supply_pcb): New function.
4595 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4596 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4597 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4598 (LOADLIBES): New variable.
4599
4600 2004-05-22 Mark Kettenis <kettenis@gnu.org>
4601
4602 * bsd-kvm.c, bsd-kvm.h: New files.
4603 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4604 "bsd-kvm.h".
4605 (i386fbsd_supply_pcb): New function.
4606 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4607 (i386fbsd-nat.o): Update dependencies.
4608 (bsd_kvm_h): New variable.
4609 (bsd-kvm.o): New dependency.
4610 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4611 (LOADLIBES): New variable.
4612
4613 * regset.c: Tweak comment.
4614 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4615 macro.
4616 * regset.h: Update copyright year.
4617 (struct regset): Remove `descr' member, add `gdbarch' member.
4618 (regset_alloc): Adjust prototype and comment.
4619 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4620 (i386_supply_fpregset): Likewise.
4621 (i386_regset_from_core_section): Update call to regset_alloc.
4622 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4623 REGSET->arch.
4624 (i386obsd_aout_regset_from_core_section): Update call to
4625 regset_alloc.
4626 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4627 REGSET->arch.
4628 (i386nbsd_aout_regset_from_core_section): Update call to
4629 regset_alloc.
4630 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4631 REGSET->arch.
4632 (amd64_regset_from_core_section): Update call to regset_alloc.
4633 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4634 REGSET->arch.
4635 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4636 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4637 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4638 (sparc32nbsd_init_abi): Update call to regset_alloc.
4639 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4640 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4641 (sparc64obsd_init_abi): Update call to regset_alloc.
4642 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4643 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4644 (sparc64nbsd_init_abi): Update call to regset_alloc.
4645 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4646 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4647 (sparc64fbsd_init_abi): Update call to regset_alloc.
4648
4649 2004-05-22 Jim Blandy <jimb@redhat.com>
4650
4651 * ppc-tdep.h (spe_register_p): New declaration.
4652 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4653 ppc_spefscr_regnum.
4654 * rs6000-tdep.c (spe_register_p): New function.
4655 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4656 spefscr.
4657 (rs6000_gdbarch_init): Initialize the new members of the tdep
4658 structure.
4659
4660 2004-05-21 Jim Blandy <jimb@redhat.com>
4661
4662 * ppc-linux-nat.c (fetch_register): Move code back to be next
4663 to the comment that describes it. (Moved code, instead of
4664 comment, for symmetry with store_register.)
4665
4666 Allocate regset structures in the gdbarch's obstack, not using
4667 xmalloc.
4668 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4669 Add 'arch' argument. Allocate the regset on arch's obstack, not
4670 using xmalloc.
4671 * regset.h (regset_alloc): Update declaration.
4672 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4673 gdbarch argument.
4674 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4675 * i386-tdep.c (i386_regset_from_core_section): Same.
4676 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4677 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4678 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4679 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4680 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4681 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4682
4683 2004-05-21 Joel Brobecker <brobecker@gnat.com>
4684
4685 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4686
4687 2004-05-21 Jim Blandy <jimb@redhat.com>
4688
4689 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4690 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4691
4692 2004-05-20 Jim Blandy <jimb@redhat.com>
4693
4694 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4695
4696 2004-05-20 Mark Kettenis <kettenis@gnu.org>
4697
4698 * regset.h: Make prototype const-correct.
4699 * regset.c (regset_xmalloc): Make const-correct.
4700
4701 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4702
4703 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4704 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4705 (symbol_search_name): Declare.
4706
4707 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4708 (iter_name_next_hashed): Ditto.
4709 (iter_name_next_linear): Ditto.
4710 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4711
4712 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4713 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4714 (symbol_search_name): New function.
4715
4716 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4717
4718 * minsyms.c (build_minimal_symbol_hash_tables): Change
4719 test for adding to demangled hash table to check for difference
4720 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4721
4722 2004-05-19 Jim Blandy <jimb@redhat.com>
4723
4724 Use a constructor function to create regset structures.
4725 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4726 (struct regset): Use supply_regset_ftype. Add new
4727 'collect_regset' member.
4728 (regset_xmalloc): New declaration.
4729 * regset.c: New file.
4730 * am64-tdep.c (amd64_regset_from_core_section): Use
4731 regset_xmalloc to construct regset structures.
4732 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4733 * i386-tdep.c (i386_regset_from_core_section): Same.
4734 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4735 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4736 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4737 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4738 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4739 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4740 * Makefile.in (COMMON_OBS): Add regset.o.
4741 (regset.o): New rule.
4742
4743 2004-05-19 Joel Brobecker <brobecker@gnat.com>
4744
4745 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4746 and pthread_cond_wait.c.
4747
4748 2004-05-18 Jim Blandy <jimb@redhat.com>
4749
4750 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4751 before the mach-specific switch, and then let the individual cases
4752 override the defaults, rather than leaving them uninitialized
4753 until the switch and then setting them in each case.
4754
4755 2004-05-18 Randolph Chung <tausq@debian.org>
4756
4757 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4758 millicode functions.
4759
4760 2004-05-18 Randolph Chung <tausq@debian.org>
4761
4762 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4763 references to dld_flags_buffer consistent.
4764
4765 2004-05-18 Randolph Chung <tausq@debian.org>
4766
4767 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4768 it for unwinding the stack.
4769
4770 2004-05-18 Randolph Chung <tausq@debian.org>
4771
4772 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4773 Undefine these so we can overide them using gdbarch.
4774
4775 2004-05-18 Randolph Chung <tausq@debian.org>
4776
4777 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4778 handling for 64-bit HPUX (elf).
4779
4780 2004-05-18 Daniel Jacobowitz <dan@debian.org>
4781
4782 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4783 constants.
4784 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4785 * ia64-tdep.c (examine_prologue): Likewise.
4786 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4787 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4788
4789 2004-05-18 Mark Kettenis <kettenis@gnu.org>
4790
4791 * vax-tdep.c (vax_return_value): Implement
4792 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4793
4794 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4795
4796 * vax-tdep.c (vax_return_value): Fix typo.
4797
4798 2004-05-17 Andrew Cagney <cagney@redhat.com>
4799
4800 * MAINTAINERS: Mark Salter was also responsible for
4801 testsuite/config/
4802
4803 * NEWS: Mention signal fixes.
4804
4805 2004-05-17 Randolph Chung <tausq@debian.org>
4806
4807 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4808 check to see if we are unwinding an export stub. Export stubs clobber
4809 the %rp in the call path and stores the original rp in a stack slot.
4810
4811 2004-05-17 Jim Blandy <jimb@redhat.com>
4812
4813 * MAINTAINERS: Update address for J.T. Conklin.
4814
4815 2004-05-17 Randolph Chung <tausq@debian.org>
4816
4817 * hppa-tdep.c: Remove superfluous #include's.
4818 * Makefile.in (hppa-tdep.o): Update dependencies.
4819
4820 2004-05-17 Randolph Chung <tausq@debian.org>
4821
4822 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4823 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4824 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4825 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4826 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4827 Remove static function declarations.
4828
4829 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4830
4831 * alphabsd-nat.c: Update copyright year.
4832 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4833
4834 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4835 and M68K_A2_REGNUM.
4836
4837 * m68k-tdep.c (m68k_svr4_return_value): Implement
4838 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4839
4840 2004-05-16 Mark Kettenis <kettenis@gnu.org>
4841
4842 * sol-thread.c Update copyright year. Fix various coding
4843 standards violations. Tweak a few comments.
4844 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4845 Delete prototypes.
4846
4847 2004-05-15 Randolph Chung <tausq@debian.org>
4848
4849 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4850 as pointer instead of array reference since HPUX compiler does
4851 not accept unsized array arguments.
4852 * somsolib.c (dld_flags_buffer): Use constant array size.
4853
4854 2004-05-15 Mark Kettenis <kettenis@gnu.org>
4855
4856 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4857 offset with decimal offset.
4858 (amd64obsd_sigcontext_addr): Return correct address for entire
4859 signal trampoline.
4860
4861 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4862 instead of get_frame_base.
4863
4864 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4865 (fill_gregset): Use regcache_raw_collect.
4866
4867 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4868 ppcobsd-tdep.c.
4869
4870 * config/sparc/tm-nbsd64.h: Remove file.
4871 * config/tm-sunos.h: Remove file.
4872
4873 2004-05-15 Joel Brobecker <brobecker@gnat.com>
4874
4875 * rs6000-tdep.c (store_param_on_stack_p): New function,
4876 an improved version of some code extracted from skip_prologue().
4877 (skip_prologue): Use store_param_on_stack_p() to detect
4878 instructions saving a parameter on the stack. Detect when r0
4879 is used to save a parameter.
4880 Do not mark "li rx, SIMM" instructions as part of the prologue,
4881 unless the following instruction is also part of the prologue.
4882
4883 2004-05-14 Andrew Cagney <cagney@redhat.com>
4884
4885 * infrun.c (handle_inferior_event): Simplify
4886 STEP_OVER_UNDEBUGGABLE.
4887
4888 * infrun.c (handle_step_into_function): Delete function.
4889 (handle_inferior_event): Inline calls to
4890 handle_step_into_function.
4891
4892 2004-05-14 Jerome Guitton <guitton@gnat.com>
4893
4894 * rs6000-nat.c: Fix a comment.
4895
4896 2004-05-12 David Anderson <davea@sgi.com>
4897
4898 Committed by Jim Blandy <jimb@redhat.com>:
4899 * regcache.c (struct regcache_descr): fix comment spelling.
4900
4901 2004-05-13 J. Brobecker <brobecker@gnat.com>
4902
4903 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4904 Fixes a link link failure.
4905
4906 2004-05-13 J. Brobecker <brobecker@gnat.com>
4907
4908 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4909 error that was causing the build to fail.
4910
4911 2004-05-13 J. Brobecker <brobecker@gnat.com>
4912
4913 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4914 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4915
4916 2004-05-13 Andrew Cagney <cagney@redhat.com>
4917
4918 * infrun.c (handle_inferior_event): Check for
4919 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4920 calls. Update comments.
4921
4922 2004-05-13 Jim Blandy <jimb@redhat.com>
4923
4924 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4925 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4926 (store_regs_user_thread, store_regs_kernel_thread): Use
4927 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4928 * ppc-linux-nat.c (fill_gregset): Same.
4929 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4930 (ppc_linux_sigtramp_cache): Same.
4931 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4932 (ppcnbsd_sigtramp_cache_init): Same.
4933 * rs6000-nat.c (fetch_core_registers): Same.
4934 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4935 (rs6000_frame_cache): Same.
4936
4937 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4938 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4939 of assuming that the gprs are numbered starting with zero.
4940 * ppc-linux-nat.c (fill_gregset): Same.
4941 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4942 * ppcnbsd-nat.c (getregs_supplies): Same.
4943 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4944 * rs6000-nat.c (fetch_core_registers): Same.
4945 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4946
4947 2004-05-07 Michael Snyder <msnyder@redhat.com>
4948
4949 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4950 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4951
4952 2004-05-13 Andrew Cagney <cagney@redhat.com>
4953
4954 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4955
4956 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4957
4958 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4959 base_address for shared libraries.
4960
4961 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4962
4963 * MAINTAINERS (write after approval): Add myself.
4964
4965 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4966
4967 * breakpoint.c (bpstat_stop_status): Add new argument
4968 STOPPED_BY_WATCHPOINT. Use it instead of testing
4969 target_stopped_data_address agaist 0 to check whether
4970 or not we stopped due to a hardware watchpoint.
4971 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4972 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4973 with new argument.
4974
4975 2004-05-12 Jim Blandy <jimb@redhat.com>
4976
4977 * configure.in: When checking whether we should use the -bbigtoc
4978 option, don't forget to restore the original value of LDFLAGS.
4979 * configure: Regenerated.
4980
4981 2004-05-12 Andrew Cagney <cagney@redhat.com>
4982
4983 * thread.c (load_infrun_state): Delete step_sp.
4984 * infrun.c (context_switch): Ditto.
4985 * inferior.h (step_sp): Ditto.
4986 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4987 * gdbthread.h (struct thread_info, save_infrun_state)
4988 (restore_infrun_state): Ditto.
4989
4990 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4991
4992 * MAINTAINERS (write after approval): Add myself.
4993
4994 2004-05-12 Andrew Cagney <cagney@redhat.com>
4995
4996 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4997 eliminate reference to step_sp.
4998 (struct execution_control_state, init_execution_control_state)
4999 (handle_inferior_event, keep_going): Delete update_step_sp and
5000 step_sp.
5001 * infcmd.c (step_sp): Note that variable is unused.
5002
5003 2004-05-11 Andrew Cagney <cagney@redhat.com>
5004
5005 * infrun.c (step_over_function): Delete function.
5006 (handle_step_into_function): Use insert_step_resume_breakpoint.
5007 (insert_step_resume_breakpoint): Fix assertion.
5008
5009 2004-05-11 Nick Roberts <nickrob@gnu.org>
5010
5011 * utils.c (defaulted_query): Just use the normal query input type
5012 when printing the annotations.
5013
5014 2004-05-11 Andrew Cagney <cagney@redhat.com>
5015
5016 * infrun.c (handle_inferior_event): Simplify code handling
5017 step-into or return-from a signal trampoline.
5018
5019 2004-05-11 Andrew Cagney <cagney@redhat.com>
5020
5021 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5022 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5023
5024 2004-05-10 Jim Blandy <jimb@redhat.com>
5025
5026 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5027 with a call to internal_error.
5028
5029 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5030 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5031 processor variant lacks those registers.
5032 (ppc_floating_point_unit_p): Change description to make it clear
5033 that this returns info about the ISA, not the ABI.
5034 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5035 return true or false by checking tdep->ppc_fp0_regnum and
5036 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5037 arch/mach switching done in rs6000_gdbarch_init; it's better to
5038 keep that logic there, and just check the results here.
5039 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5040 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5041 floating-point registers.
5042 (ppc_supply_fpregset, ppc_collect_fpregset)
5043 (rs6000_push_dummy_call, rs6000_extract_return_value)
5044 (rs6000_store_return_value): Assert that we have floating-point
5045 registers.
5046 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5047 (rs6000_frame_cache): Don't note the locations at which
5048 floating-point registers were saved if we have no fprs.
5049 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5050 registers.
5051 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5052 (store_regs_user_thread, store_regs_kernel_thread): Only call
5053 supply_fprs / fill_fprs if we actually have floating-point
5054 registers.
5055 (special_register_p): Check ppc_fpscr_regnum before matching
5056 against it.
5057 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5058 supply / collect fpscr if we don't have it.
5059 * ppc-bdm.c: #include "gdb_assert.h".
5060 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5061 have floating-point registers, since I can't test this code on
5062 FP-free systems to adapt it.
5063 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5064 fpscr and floating point register numbers if they don't exist.
5065 (fetch_register): Assert that we have floating-point registers
5066 before we reach the code that handles them.
5067 (store_register): Same. And use tdep instead of calling
5068 gdbarch_tdep again.
5069 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5070 don't have them.
5071 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5072 fprs and fpscr if we don't have them.
5073 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5074 don't have them.
5075 * ppcnbsd-nat.c: #include "gdb_assert.h".
5076 (getfpregs_supplies): Assert that we have floating-point registers.
5077 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
5078 * ppcobsd-tdep.c: #include "gdb_assert.h".
5079 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
5080 have floating-point registers.
5081 * rs6000-nat.c (regmap): Don't match against the fpscr and
5082 floating point register numbers if they don't exist.
5083 (fetch_inferior_registers, store_inferior_registers,
5084 fetch_core_registers): Only fetch / store / supply the
5085 floating-point registers and the fpscr if we have them.
5086 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
5087 (ppcobsd-tdep.o): Update dependencies.
5088
5089 2004-05-10 Andrew Cagney <cagney@redhat.com>
5090
5091 * infrun.c (through_sigtramp_breakpoint): Delete variable.
5092 (context_switch): Do not switch through_sigtramp_breakpoint.
5093 * gdbthread.h (save_infrun_state, load_infrun_state)
5094 (struct thread_info): Delete through_sigtramp_breakpoint parameter
5095 and structure member.
5096 * thread.c (load_infrun_state, save_infrun_state): Update.
5097
5098 2004-05-10 Mark Kettenis <kettenis@gnu.org>
5099
5100 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
5101
5102 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5103
5104 * acinclude.m4: Quote macro names being defined by AC_DEFUN
5105 throughout.
5106 * aclocal.m4: Regenerate.
5107
5108 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
5109
5110 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
5111
5112 2004-05-10 Andrew Cagney <cagney@redhat.com>
5113
5114 * infrun.c (check_sigtramp2): Delete function.
5115 (handle_inferior_event): When single stepping, and taking a
5116 signal, set a breakpoint at the signal return address. Delete
5117 redundant calls to check_sigtramp2.
5118 (insert_step_resume_breakpoint): New function.
5119 (through_sigtramp_breakpoint, handle_inferior_event)
5120 (follow_exec, wait_for_inferior, fetch_inferior_event)
5121 (currently_stepping, keep_going): Delete most uses of
5122 through_sigtramp_breakpoint, not that it should be deleted.
5123 (delete_breakpoint_current_contents): Delete function.
5124
5125 2004-05-10 Randolph Chung <tausq@debian.org>
5126
5127 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
5128 target.
5129 * config/pa/tm-linux.h: New file.
5130
5131 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
5132
5133 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
5134 of prefixes. Don't print the prefix twice in the CLI.
5135
5136 2004-05-10 Jim Blandy <jimb@redhat.com>
5137
5138 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
5139 collect all the gprs.
5140
5141 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
5142 loop collecting gprs.
5143
5144 2004-05-09 Andrew Cagney <cagney@redhat.com>
5145
5146 * remote-vx.c (net_step): Delete step-range code.
5147 * remote.c (remote_resume, init_all_packet_configs)
5148 (set_remote_protocol_E_packet_cmd)
5149 (show_remote_protocol_E_packet_cmd)
5150 (remote_protocol_E, show_remote_cmd, _initialize_remote)
5151 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5152 (show_remote_protocol_e_packet_cmd): Ditto.
5153
5154 2004-05-09 Mark Kettenis <kettenis@gnu.org>
5155
5156 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5157
5158 * hppa-tdep.h: Update copyright year.
5159 (struct trad_frame_saved_reg): Add opaque declaration.
5160
5161 * amd64-tdep.c (amd64_return_value): Implement
5162 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5163
5164 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5165 (m68k_value_to_register): New functions.
5166 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5167 value_to_register.
5168
5169 * defs.h (enum return_value_convention): Add
5170 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5171 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5172 * infcmd.c (legacy_return_value): New function.
5173 (print_return_value): Rwerite to implement
5174 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5175 * values.c (using_struct_return): Check for inequality to
5176 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5177 RETURN_VALUE_STRUCT_CONVENTION.
5178 * i386-tdep.c (i386_return_value): Implement
5179 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5180
5181 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5182 include "symtab.h", "opcode/vax.h" and "inferior.h".
5183 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5184 to read_memory_unsigned_integer.
5185 (vax_gdbarch_init): Reorder.
5186 (_initialize_vax_tdep): Spell out prototype.
5187 * Makefile.in (vax-tdep.o): Update dependencies.
5188
5189 2004-05-08 Andrew Cagney <cagney@redhat.com>
5190
5191 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5192 * target.c (target_detach, target_disconnect): Ditto.
5193
5194 * infcall.c (call_function_by_hand): When no
5195 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5196 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5197 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5198 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5199 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5200
5201 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5202 * gdbarch.h, gdbarch.c: Re-generate.
5203 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5204 deprecated_fix_call_dummy.
5205 * v850-tdep.c (v850_gdbarch_init): Ditto.
5206 * infcall.c (call_function_by_hand): Do not call
5207 DEPRECATED_FIX_CALL_DUMMY.
5208
5209 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
5210 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
5211 * gdbarch.h, gdbarch.c: Re-generate.
5212 * arm-linux-tdep.c (arm_linux_call_dummy_words)
5213 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
5214 deprecated_sizeof_call_dummy_words.
5215 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
5216 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5217 * v850-tdep.c (v850_gdbarch_init): Ditto.
5218 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5219 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
5220 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5221 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5222 * arch-utils.h (legacy_call_dummy_words)
5223 (legacy_sizeof_call_dummy_words): Delete declarations.
5224 * arch-utils.c (legacy_call_dummy_words)
5225 (legacy_sizeof_call_dummy_words): Delete variables.
5226
5227 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
5228 * gdbarch.h, gdbarch.c: Re-generate.
5229 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
5230 * infcall.c (call_function_by_hand): Eliminate call to
5231 DEPRECATED_PUSH_DUMMY_FRAME.
5232 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5233 push_dummy_frame.
5234 (ns32k_push_dummy_frame): Delete function.
5235
5236 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5237 deprecated_call_dummy_breakpoint_offset or
5238 deprecated_call_dummy_start_offset.
5239 * dummy-frame.c, arm-tdep.c: Update comments.
5240 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
5241 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
5242 * gdbarch.h, gdbarch.c: Re-generate.
5243
5244 * infcall.c (legacy_push_dummy_code): Delete function.
5245 (push_dummy_code): Delete call.
5246
5247 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
5248 * gdbarch.h, gdbarch.c: Re-generate.
5249 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
5250 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
5251 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
5252 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
5253
5254 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
5255 (struct frame_info): Delete opaque declaration.
5256 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
5257 * frame.c (get_frame_type): Delete call.
5258
5259 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5260 pc_in_call_dummy.
5261 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
5262 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
5263
5264 2004-05-08 Mark Kettenis <kettenis@gnu.org>
5265
5266 * alphanbsd-tdep.c: Include "gdb_string.h".
5267 * armnbsd-tdep.c: Update copyright year.
5268 Include "gdb_string.h".
5269 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
5270 dependencies.
5271
5272 * delta68-nat.c: Remove file.
5273 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
5274 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
5275 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
5276 (delta68-nat.o): Remove dependency.
5277
5278 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
5279 function.
5280 (m68k_gdbarch_init): Don't set
5281 deprecated_frameless_function_invocation.
5282
5283 2004-05-07 Randolph Chung <tausq@debian.org>
5284
5285 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
5286 read_memory_nobpt for code reading when doing frame unwinding.
5287 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
5288
5289 2004-05-07 Randolph Chung <tausq@debian.org>
5290
5291 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
5292 instead of sp, handle sigaltstack case.
5293 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
5294 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
5295 signal handler and not that of the caller.
5296 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
5297 hppa_linux_sigtramp_find_sigcontext.
5298
5299 2004-05-07 Randolph Chung <tausq@debian.org>
5300
5301 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
5302 hppa-linux-nat.c.
5303 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
5304 * hppa-linux-nat.c (fetch_register, store_register): Define.
5305 (fetch_inferior_registers, store_inferior_registers): Define.
5306 (supply_gregset): Add comment and clean up some unneeded code.
5307 (fill_gregset): Add comment and fix so that it saves registers in
5308 the right place in the gregset.
5309 (fill_fpregset): Fix buffer overrun problem.
5310 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5311
5312 2004-05-07 Randolph Chung <tausq@debian.org>
5313
5314 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
5315 do common handling of the pcoqt register.
5316 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
5317 to use helper function.
5318 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
5319 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
5320 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
5321 generic fallback unwinder when all else fails.
5322 (hppa_gdbarch_init): Add fallback sniffer.
5323 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
5324 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
5325 to use helper function.
5326
5327 2004-05-08 Joel Brobecker <brobecker@gnat.com>
5328
5329 * config/djgpp/fnchange.lst: Add translation rules for
5330 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
5331
5332 2004-05-08 Mark Kettenis <kettenis@gnu.org>
5333
5334 * frame.c (get_prev_frame_1): Work around GCC bug.
5335 * frame.h: Add comment about GCC bug.
5336
5337 2004-05-07 Andrew Cagney <cagney@redhat.com>
5338
5339 * observer.c: Include "commands.h" and "gdbcmd.h".
5340 (observer_debug, _initialize_observer): Add the
5341 command "set/show debug observer".
5342 * observer.sh: When observer debugging, log notify calls.
5343 * Makefile.in (observer.o): Update dependencies.
5344
5345 2004-05-07 Jason Molenda (jmolenda@apple.com)
5346
5347 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
5348
5349 2004-05-07 Jim Blandy <jimb@redhat.com>
5350
5351 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5352 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5353 to recognize gpr regnums, instead of assuming that
5354 tdep->ppc_fp0_regnum marks the end of the general-purpose
5355 registers.
5356
5357 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5358 the given architecture has floating-point registers.
5359
5360 2004-05-07 Andrew Cagney <cagney@redhat.com>
5361
5362 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5363 macro defined to 1.
5364 * gdbarch.h, gdbarch.c: Re-generate.
5365 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5366 deprecated_use_generic_dummy_frames.
5367
5368 2004-05-07 Brian Ford <ford@vss.fsi.com>
5369
5370 * NEWS: Mention Cygwin DWARF 2 support.
5371
5372 2004-05-07 Andrew Cagney <cagney@redhat.com>
5373
5374 * objfiles.h (struct entry_info): Delete unused fields
5375 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
5376 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
5377 * mipsread.c (mipscoff_symfile_read): Update.
5378 * mdebugread.c (parse_partial_symbols): Update.
5379 * dwarfread.c (read_file_scope): Update.
5380 * dwarf2read.c (read_file_scope): Update.
5381 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5382 * coffread.c (complete_symtab): Update.
5383
5384 2004-05-07 Mark Kettenis <kettenis@gnu.org>
5385
5386 * infcall.c (_initialize_infcall): Fix typo.
5387
5388 2004-05-07 Andrew Cagney <cagney@redhat.com>
5389
5390 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5391 * command.h (add_setshow_zinteger_cmd): Declare.
5392
5393 2004-05-06 Randolph Chung <tausq@debian.org>
5394
5395 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5396 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5397 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5398 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5399 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5400 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5401 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5402 definitions ...
5403 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5404 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5405 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5406 (hppa64_hpux_frame_find_saved_regs_in_sig)
5407 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5408 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5409 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5410 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5411 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5412 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5413 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5414 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5415 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5416 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5417 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5418 (hppa32_register_type, hppa_cannot_store_register)
5419 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5420 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5421 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5422 * pa64solib.c (pa64_solib_have_load_event)
5423 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5424 (pa64_solib_unloaded_library_pathname): Likewise.
5425 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5426 (som_solib_library_pathname): Likewise.
5427
5428 2004-05-05 Jim Ingham <jingham@apple.com>
5429
5430 * breakpoint.c (create_breakpoints): Copy the ignore count and
5431 thread id over from the pended breakpoint to the actual
5432 breakpoint.
5433
5434 2004-05-05 Andrew Cagney <cagney@redhat.com>
5435
5436 * gdbarch.sh (PARM_BOUNDARY): Delete.
5437 gdbarch.h, gdbarch.c: Re-generate.
5438 * valops.c (PARM_BOUNDARY): Delete macro.
5439 (value_push): Delete PARM_BOUNDARY code.
5440 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5441
5442 2004-05-04 Jim Blandy <jimb@redhat.com>
5443
5444 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5445 Don't assume that the gprs, fprs, and UISA sprs are
5446 contiguous, start at register number zero, and end with fpscr.
5447 Instead, use the numbers from the tdep structure.
5448
5449 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5450 should no longer be used in code specific to the RS6000 and its
5451 derivatives.
5452 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5453 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5454 tdep->ppc_fp0_regnum.
5455 (ppc_supply_fpregset, ppc_collect_fpregset)
5456 (rs6000_push_dummy_call, rs6000_extract_return_value)
5457 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5458 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5459 FP0_REGNUM.
5460 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5461 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5462 Same.
5463 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5464 bdm_ppc_store_registers): Same.
5465 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5466 (store_register, fill_fpregset): Same.
5467 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5468 (ppc_linux_supply_fpregset): Same.
5469 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5470 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5471 Same.
5472 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5473 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5474 ppc64_sysv_abi_return_value): Same.
5475 * rs6000-nat.c (regmap, fetch_inferior_registers)
5476 (store_inferior_registers, fetch_core_registers): Same.
5477
5478 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5479
5480 * m68knbsd-nat.c: Remove file.
5481 * m68knbsd-tdep.c: Remove file.
5482 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5483 dependencies.
5484 * configure.host: Add m68k-*-netbsdelf*.
5485 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5486 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5487 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5488 (XM_FILE): Remove.
5489 * config/m68k/nbsdelf.mh: New file.
5490 * config/m68k/nbsd.mt: New file.
5491 * config/m68k/nbsdaout.mt: Remove file.
5492 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5493 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5494 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5495 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5496 (use_struct_convention): Remove prototype.
5497 (USE_STRUCT_CONVENTION): Remove define.
5498 * config/m68k/xm-nbsd.h: Remove file.
5499
5500 2004-05-04 Michael Snyder <msnyder@redhat.com>
5501
5502 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5503 reg_struct_return method (as gcc usually does for cross targets).
5504
5505 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5506
5507 Committed by Andrew Cagney.
5508 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5509 alignment padding when accessing ucontext struct members.
5510
5511 2004-05-04 Jim Blandy <jimb@redhat.com>
5512
5513 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5514 'ppc_gplast_regnum' member.
5515 (ppc_num_gprs): New enum constant.
5516 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5517 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5518 * rs6000-nat.c (regmap, fetch_inferior_registers,
5519 store_inferior_registers): Same.
5520 * rs6000-tdep.c (e500_pseudo_register_read)
5521 (e500_pseudo_register_write): Same.
5522 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5523
5524 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5525 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5526 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5527 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5528 FPLAST_REGNUM.
5529 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5530 Same.
5531 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5532 * rs6000-nat.c (regmap, fetch_inferior_registers)
5533 (store_inferior_registers): Same.
5534
5535 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5536 with FPLAST_REGNUM.
5537
5538 2004-05-03 Joel Brobecker <brobecker@gnat.com>
5539
5540 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5541 failure detected by recent versions of GCC.
5542 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5543 to be consistent with the usage in dwarf2_create_include_psymtab.
5544
5545 2004-05-03 Michael Snyder <msnyder@redhat.com>
5546
5547 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5548 (heuristic_proc_start): Whitespace cleanup.
5549
5550 2004-05-04 Mark Kettenis <kettenis@gnu.org>
5551
5552 * sun3-nat.c: Remove file.
5553 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5554 dependencies.
5555 (ALLDEPFILES): Remove sun3-nat.c.
5556 (sun3-nat.o): Remove dependencies.
5557
5558 * i386-interix-nat.c, i386-interix-tdep.c,
5559 config/i386/nm-interix.h, config/i386/interix.mh,
5560 config/i386/interix.mt: Remove files.
5561 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5562 dependencies.
5563
5564 2004-05-03 Mark Kettenis <kettenis@gnu.org>
5565
5566 * m68k-tdep.h (struct gdbarch_tdep): Add member
5567 struct_value_regnum.
5568 (m68k_svr4_init_abi): New prototype.
5569 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5570 different calling conventions.
5571 (m68k_extract_return_value): Remove code dealing with single-field
5572 structs.
5573 (m68k_store_return_value): Remove code dealing with single-field
5574 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5575 (m68k_extract_struct_value_address): Remove function.
5576 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5577 (m68k_reg_struct_return_p, m68k_return_value)
5578 (m68k_svr4_return_value): New functions.
5579 (m68k_use_struct_convention): Remove function.
5580 (m68k_push_dummy_call): Use new struct_value_regnum member of
5581 `struct gdbarch_tdep' instead of hardcoded register number to
5582 store STRUCT_ADDR.
5583 (m68k_svr4_init_abi): New function.
5584 (m68k_gdbarch_init): Don't set extract_return_value,
5585 store_return_values, deprecated_extract_struct_value_address and
5586 use_struct_convention. Set return_value instead. Initialize new
5587 struct_value_regnum member of `struct gdbarch_tdep'.
5588 * m68klinux-tdep.c: Update copyright year.
5589 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5590 (m68k_linux_extract_struct_value_address): Remove function.
5591 (m68k_linux_init_abi): Don't set extract_return_value,
5592 store_return_values, deprecated_extract_struct_value_address and
5593 use_struct_convention. Call m68k_svr4_init_abi but override the
5594 new struct_value_regnum member of `struct gdbarch_tdep'.
5595 * Makefile.in (m68k-tdep.o): Update dependencies.
5596
5597 2004-05-03 J. Brobecker <brobecker@gnat.com>
5598
5599 * dwarf2read.c (line_header): Add new included_p field in
5600 field file_names.
5601 (partial_die_info): New field has_stmt_list. New field line_offset.
5602 (dwarf2_create_include_psymtab): New function.
5603 (dwarf2_build_include_psymtabs): New function.
5604 (add_file_name): Add forward declaration. Initialize new field.
5605 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5606 to be able to determine the list of files included by the
5607 given unit, and build their associated psymtabs.
5608 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5609 files as well.
5610 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5611 (read_file_scope): Update call to dwarf_decode_lines.
5612 (read_partial_die): Handle DW_AT_stmt_list attributes.
5613
5614 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5615
5616 Unfix PR gdb/1626.
5617 * configure.in: Revert special case for osf5.*.
5618 * configure: Regenerate.
5619
5620 2004-05-02 Jim Blandy <jimb@redhat.com>
5621
5622 Move the symbol-file-from-memory functions into their own file.
5623 * symfile-mem.c, symfile-mem.h: New files.
5624 * symfile.c (symbol_file_add_from_bfd): New function.
5625 (symbol_file_add): Call symbol_file_add_from_bfd.
5626 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5627 Moved to symfile-mem.c.
5628 (_initialize_symfile): Move definition of
5629 add-symbol-file-from-memory command to symfile-mem.c.
5630 * symfile.h (symbol_file_add_from_bfd): New declaration.
5631 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5632 * config/powerpc/linux.mt (TDEPFILES): Same.
5633 * Makefile.in (SFILES): Add symfile-mem.c.
5634 (symfile_mem_h): New variable.
5635 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5636 (symfile-mem.o): New rule.
5637
5638 2004-05-01 Andrew Cagney <cagney@redhat.com>
5639
5640 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5641 frame_find_by_id instead of frame_relative_level.
5642 (do_enable_breakpoint): Ditto.
5643 * thread.c: Update copyright.
5644 (info_threads_command): Ditto, simplify.
5645
5646 * frame.c (deprecated_generic_get_saved_register): Delete
5647 function, moved to "xstormy16-tdep.c".
5648 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5649 deprecated_generic_get_saved_register from "frame.c".
5650 (xstormy16_frame_saved_register): Call
5651 xstormy16_get_saved_register.
5652 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5653 static.
5654 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5655 * frame.h (deprecated_generic_get_saved_register): Delete.
5656
5657 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5658
5659 * dwarfread.c: Update documentation on the state of dwarf-1.
5660
5661 2004-05-01 Andrew Cagney <cagney@redhat.com>
5662
5663 * stack.c (select_frame_command): Delete call to
5664 frame_relative_level.
5665 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5666 Delete #if0 code.
5667 (frame_info): Do not print FRAMELESS.
5668 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5669 (catch_info): Delete #if0 code.
5670
5671 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5672 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5673 of frame_relative_level.
5674 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5675 to SENTINEL_FRAME.
5676 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5677 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5678 frame_relative_level.
5679
5680 * frame.h (deprecated_set_frame_type): Delete declaration.
5681 * frame.c (deprecated_set_frame_type): Delete function, update
5682 comments.
5683
5684 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5685 * gdbarch.h, gdbarch.c: Re-generate.
5686 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5687 (shnbsd_pc_in_sigtramp): Delete.
5688 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5689 pc_in_sigtramp.
5690 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5691 pc_in_sigtramp.
5692 * frame.h: Update comments.
5693 * ppc-linux-tdep.c: Update comments.
5694 * breakpoint.c (bpstat_what): Update comments.
5695
5696 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5697 m68klinux-tdep.o's dependencies, were previously added to
5698 m68klinux-nat.o.
5699
5700 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5701 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5702 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5703 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5704 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5705
5706 * Makefile.in (m68klinux-nat.o): Update dependencies.
5707 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5708 (m68k_linux_sigtramp_frame_cache)
5709 (m68k_linux_sigtramp_frame_this_id)
5710 (m68k_linux_sigtramp_frame_prev_register)
5711 (m68k_linux_sigtramp_frame_unwind)
5712 (m68k_linux_sigtramp_frame_sniffer)
5713 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5714 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5715 names, use trad-frame.h.
5716 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5717 (struct m68k_sigtramp_info): Delete.
5718 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5719 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5720 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5721 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5722 "m68klinux-tdep.c".
5723
5724 * infrun.c (check_sigtramp2): Delete check for
5725 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5726
5727 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5728
5729 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5730
5731 2004-05-01 Andrew Cagney <cagney@redhat.com>
5732
5733 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5734 (frv_linux_sigtramp_frame_cache)
5735 (frv_linux_sigtramp_frame_this_id)
5736 (frv_linux_sigtramp_frame_prev_register)
5737 (frv_linux_sigtramp_frame_unwind)
5738 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5739 include "linux" in function and variable names, directly call
5740 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5741 the latest trad-frame code.
5742 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5743 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5744 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5745 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5746 * frv-tdep.c (frv_sigtramp_frame_cache)
5747 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5748 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5749 frv-linux-tdep.c.
5750 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5751 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5752 (frv_set_sigcontext_reg_addr): Delete function.
5753
5754 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5755 (DEPRECATED_SIGTRAMP_END): Delete.
5756 * gdbarch.h, gdbarch.c: Re-generate.
5757 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5758 * config/vax/tm-vaxbsd.h: Update copyright.
5759 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5760 (DEPRECATED_IN_SIGTRAMP): Define.
5761 * config/m68k/tm-nbsd.h: Update copyright.
5762 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5763 (DEPRECATED_IN_SIGTRAMP): Define.
5764
5765 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5766
5767 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5768 encondings. Fixes PR gdb/1628.
5769
5770 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5771 DW_CFA_restore state without a matching DW_CFA_remember_state
5772 instead of aborting. Fixes PR backtrace/1589.
5773
5774 2004-04-30 Joel Brobecker <brobecker@gnat.com>
5775
5776 * MAINTAINERS: Add self as AIX maintainer.
5777 Update my e-mail address in write-after-approval section.
5778
5779 2004-04-30 Andrew Cagney <cagney@redhat.com>
5780
5781 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5782 (legacy_get_prev_frame): Ditto.
5783
5784 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5785 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5786 * mipsread.c (sigtramp_address): Delete extern variable.
5787 (mipscoff_new_init): Delete reference.
5788 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5789 (fixup_sigtramp): Delete function.
5790 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5791 (fixup_sigtramp): Delete declarations.
5792
5793 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5794 deprecated_pc_in_sigtramp.
5795 (ppcnbsd_pc_in_sigtramp): Delete function.
5796
5797 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5798
5799 * config/m68k/nm-nbsd.h: Tweak comments.
5800 * config/m68k/nm-nbsdaout.h: Likewise.
5801
5802 2004-04-30 Andrew Cagney <cagney@redhat.com>
5803
5804 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5805 legacy_pc_in_sigtramp.
5806 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5807
5808 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5809
5810 Add OpenBSD/m68k support.
5811 * NEWS (New native configurations): Mention OpenBSD/m68k.
5812 * m68kbsd-tdep.c: New file.
5813 * m68kbsd-nat.c: New file.
5814 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5815 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5816 * configure.host: Add m68k-*-openbsd.
5817 * configure.tgt: Add m68k-*-openbsd.
5818 * config/m68k/tm-obsd.h: New file.
5819 * config/m68k/obsd.mt: New file.
5820 * config/m68k/obsd.mh: New file.
5821 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5822 m68kbsd-tdep.c.
5823
5824 2004-04-30 Andrew Cagney <cagney@redhat.com>
5825
5826 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5827 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5828
5829 2004-04-30 Mark Kettenis <kettenis@gnu.org>
5830
5831 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5832 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5833
5834 2004-04-30 Brian Ford <ford@vss.fsi.com>
5835
5836 Revert 2004-04-16 change.
5837 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5838 (i386_coff_init_abi): Remove.
5839 * i386-tdep.h (i386_coff_init_abi): Remove.
5840 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5841
5842 2004-04-30 Andrew Cagney <cagney@redhat.com>
5843
5844 * blockframe.c (find_pc_partial_function): Delete use of
5845 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5846 DEPRECATED_SIGTRAMP_END.
5847
5848 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5849 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5850 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5851 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5852 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5853
5854 * defs.h (deprecated_inside_entry_file): Delete declaration.
5855 * blockframe.c (deprecated_inside_entry_file): Delete function.
5856 (legacy_frame_chain_valid): Delete call.
5857 * sh64-tdep.c (sh64_frame_chain): Delete call.
5858 * objfiles.h: Update comments.
5859 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5860 call.
5861 * frame.c (get_prev_frame): Delete call, update comments.
5862
5863 2004-04-30 Brian Ford <ford@vss.fsi.com>
5864
5865 * MAINTAINERS (Write After Approval): Add myself.
5866
5867 2004-04-30 Andrew Cagney <cagney@redhat.com>
5868
5869 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5870 * gdbarch.h, gdbarch.c: Re-generate.
5871 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5872 code.
5873
5874 2004-04-30 Andrew Cagney <cagney@redhat.com>
5875
5876 * gdb-events.sh (selected_thread_changed)
5877 (selected_frame_level_changed, target_changed): Delete.
5878 * gdb-events.h, gdb-events.c: Re-generate.
5879 * valops.c (value_assign): Update.
5880 * stack.c (select_frame_command, up_silently_base)
5881 (down_silently_base): Update.
5882
5883 2004-04-29 Andrew Cagney <cagney@redhat.com>
5884
5885 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5886 registers correctly.
5887 (print_gp_register_row, mips32_heuristic_proc_desc)
5888 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5889 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5890 references to mips_isa_regsize.
5891
5892 2004-04-29 Andrew Cagney <cagney@redhat.com>
5893
5894 * mips-tdep.c (struct gdbarch_tdep): Delete
5895 mips_fp_register_double.
5896 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5897 mips_abi_regsize.
5898 (mips_gdbarch_init): Do not set mips_fp_register_double.
5899 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5900
5901 2004-04-29 Joel Brobecker <brobecker@gnat.com>
5902
5903 Committed by Andrew Cagney.
5904 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5905 function calls.
5906
5907 2004-04-29 Andrew Cagney <cagney@redhat.com>
5908
5909 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5910 gdbarch, use mips_abi, update callers.
5911 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5912 mips_abi_regsize, update callers.
5913 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5914 mips_default_abi_regsize.
5915 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5916 mips_default_abi_regsize.
5917
5918 2004-04-29 Andrew Cagney <cagney@redhat.com>
5919
5920 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5921 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5922 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5923 mips_default_abi_regsize.
5924 (mips_isa_regsize): Rename mips_regisze.
5925 * mipsnbsd-tdep.c: Update.
5926 * mips-linux-tdep.c: Update.
5927 * irix5-nat.c: Update.
5928 * mips-tdep.h (mips_isa_regsize): Update.
5929
5930 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5931 Delete all disabled code.
5932 * gdb-events.h, gdb-events.c: Re-generate.
5933
5934 2004-04-19 Jerome Guitton <guitton@gnat.com>
5935 Mark Kettenis <kettenis@gnu.org>
5936
5937 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5938 the function begins with a branch instruction.
5939
5940 2004-04-29 Mark Kettenis <kettenis@gnu.org>
5941
5942 * i386-tdep.c: Fix spelling mistakes.
5943
5944 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5945 Andrew Cagney <cagney@redhat.com>
5946
5947 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5948 <sys/proc.h>.
5949 * acconfig.h: Provide default _KMEMUSER value.
5950 * config.in, configure: Re-generate.
5951 * NEWS: Mention fix.
5952
5953 2004-04-24 Randolph Chung <tausq@debian.org>
5954
5955 * configure.host (hppa*-*-linux*): New target.
5956 * configure.tgt (hppa*-*-linux*): Likewise.
5957 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5958 gdbarch_init_osabi() call earlier so that osabi-specific frame
5959 unwinders can be registered first.
5960 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5961 hppa-linux-nat.c.
5962 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5963 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5964 * config/pa/linux.mh: New file.
5965 * config/pa/linux.mt: New file.
5966 * config/pa/nm-linux.h: New file.
5967 * config/pa/xm-linux.h: New file.
5968 * hppa-linux-nat.c: New file.
5969 * hppa-linux-tdep.c: New file.
5970
5971 2004-04-28 Randolph Chung <tausq@debian.org>
5972
5973 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5974 return values.
5975 (hppa32_push_dummy_call): Fix small struct and floating point argument
5976 passing, and make sure the stack frame is properly aligned.
5977
5978 2004-04-28 Andrew Cagney <cagney@redhat.com>
5979
5980 * stack.c (print_stack_frame): Fix description.
5981
5982 * NEWS: Mention gdb/gdbserver/configure execute permission
5983 changed. PR server/519.
5984
5985 2004-04-28 Andrew Cagney <cagney@redhat.com>
5986
5987 * stack.c (print_stack_frame_stub): Delete declaration.
5988 (struct print_stack_frame_args, print_stack_frame)
5989 (print_frame_info, print_frame): Replace "source" with print what.
5990 Replace "print" with "print_level". Replace "args" with
5991 "print_args".
5992 * frame.h (show_and_print_stack_frame, print_stack_frame)
5993 (print_frame_info): Update declarations.
5994 * stack.c (select_and_print_frame, frame_command)
5995 (current_frame_command, up_command, down_command): Update calls -
5996 use get_selected_frame, pass "enum print_what" for source, do not
5997 call frame_relative_level.
5998 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5999 * remote-rdp.c (remote_rdp_open): Ditto.
6000 * remote-mips.c (common_open): Ditto.
6001 * remote-e7000.c (e7000_start_remote): Ditto.
6002 * ocd.c (ocd_start_remote): Ditto.
6003 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6004 * infrun.c (normal_stop): Ditto.
6005 * inflow.c (kill_command): Ditto.
6006 * infcmd.c (finish_command): Ditto.
6007 * corelow.c (core_open): Ditto.
6008 * tracepoint.c (finish_tfind_command): Ditto.
6009 * thread.c (info_threads_command, info_threads_command)
6010 (restore_current_thread, do_captured_thread_select): Ditto.
6011 * ada-tasks.c (task_command): Ditto.
6012
6013 2004-04-26 Orjan Friberg <orjanf@axis.com>
6014
6015 * frame.c: Include "observer.h".
6016 (frame_observer_target_changed): New function.
6017 (_initialize_frame): Attach target_changed observer.
6018 * regcache.c: Include "observer.h".
6019 (regcache_observer_target_changed): New function.
6020 (_initialize_regcache): Attach target_changed observer.
6021 * valops.c: Include "observer.h".
6022 (value_assign): Notify target_changed event when modifying register.
6023 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6024
6025 2004-04-26 Orjan Friberg <orjanf@axis.com>
6026
6027 From Paul Koning <pkoning@equallogic.com>:
6028 * breakpoint.c (free_valchain): New function.
6029 (insert_bp_location, delete_breakpoint): Use free_valchain.
6030 (remove_breakpoint): Do not remove the valchain.
6031 (bpstat_stop_status): If not stopped by watchpoint, skip
6032 watchpoints when generating stop status list.
6033 * infrun.c (handle_inferior_event): Make
6034 stepped_after_stopped_by_watchpoint a global variable.
6035 * remote.c (remote_stopped_data_address): Return watch data
6036 address rather than zero if stepped_after_stopped_by_watchpoint is
6037 set.
6038
6039 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6040
6041 Fix PR gdb/1626.
6042 * configure.in: Check for curses after termcap.
6043 On osf5.*, do not check for ncurses.
6044 * configure: Regenerate.
6045
6046 2004-04-25 Mark Kettenis <kettenis@gnu.org>
6047
6048 * ppcobsd-nat.c: Include "ppc-tdep.h".
6049 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6050
6051 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6052 Fixes PR tdep/1623 and PR tdep/1624.
6053
6054 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6055
6056 * xmodem.h, xmodem.c: Remove files.
6057 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6058
6059 2004-04-23 Randolph Chung <tausq@debian.org>
6060
6061 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6062 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6063 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6064 for handling stackless frames.
6065 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6066
6067 2004-04-23 Randolph Chung <tausq@debian.org>
6068
6069 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6070 starts at a pc before the frame is created.
6071
6072 2004-04-23 Joel Brobecker <brobecker@gnat.com>
6073
6074 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6075
6076 2004-04-23 Jerome Guitton <guitton@gnat.com>
6077
6078 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
6079 use convert_typed_floating to get the appropriate format.
6080
6081 2004-04-22 Randolph Chung <tausq@debian.org>
6082
6083 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
6084 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
6085 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
6086 (hppa_sign_extend): Add prototype.
6087 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
6088 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
6089 (sign_extend): Rename with hppa_ prefix and make non-static. Other
6090 hppa targets will also use these functions.
6091 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
6092 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
6093 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
6094 (hppa_gdbarch_init): Remove gdbarch setting of
6095 skip_trampoline_code, in_solib_call_trampoline and
6096 in_solib_return_trampoline.
6097 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6098 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
6099 hppa_in_solib_call_trampoline.
6100 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
6101 Moved from hppa-tdep.c.
6102 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
6103 in_solib_call_trampoline and in_solib_return_trampoline.
6104
6105 2004-04-22 Randolph Chung <tausq@debian.org>
6106
6107 * hppa-tdep.c (hppa_debug): New variable.
6108 (find_unwind_entry, hppa_frame_cache): Add debug output.
6109 (_initialize_hppa_tdep): Add command to set debug flag.
6110
6111 2004-04-22 Andrew Cagney <cagney@redhat.com>
6112
6113 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
6114 "trad-frame.h".
6115 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
6116 signal trampoline unwinder.
6117 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
6118
6119 2004-04-22 Mark Kettenis <kettenis@gnu.org>
6120
6121 Add OpenBSD/powerpc support.
6122 * NEWS (New native configurations): Mention OpenBSD/powerpc.
6123 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
6124 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
6125 (ppc_collect_fpregset): New prototypes.
6126 * ppcobsd-nat.c: New file.
6127 * ppcobsd-tdep.c: New file.
6128 * ppcobsd-tdep.h: New file.
6129 * rs6000-tdep.c: Include "regset.h".
6130 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
6131 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
6132 New functions.
6133 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
6134 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
6135 (rs6000-tdep.o): Update dependencies.
6136 * configure.host: Add powerpc-*-openbsd.
6137 * configure.tgt: Add powerpc-*-openbsd.
6138 * config/powerpc/obsd.mh: New file.
6139 * config/powerpc/nm-obsd.h: New file.
6140 * config/powerpc/obsd.mt: New file.
6141
6142 2004-04-22 Andrew Cagney <cagney@redhat.com>
6143
6144 * frame.h (show_frame_info): Delete declaration.
6145
6146 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
6147 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
6148 * m32r-tdep.c (m32r_frame_this_id): Ditto.
6149 * frv-tdep.c (frv_frame_this_id): Ditto.
6150 * avr-tdep.c (avr_frame_this_id): Ditto.
6151
6152 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
6153
6154 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6155
6156 2004-04-22 Jim Blandy <jimb@redhat.com>
6157
6158 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6159 register number zero.
6160
6161 2004-04-21 Michael Snyder <msnyder@redhat.com>
6162
6163 * mips-tdep.c (heuristic_proc_start):
6164 Warning() already prefixes "Warning: ".
6165
6166 2004-04-21 Andrew Cagney <cagney@redhat.com>
6167
6168 * annotate.h (deprecated_annotate_starting_hook)
6169 (deprecated_annotate_stopped_hook)
6170 (deprecated_annotate_exited_hook)
6171 (deprecated_annotate_signal_hook)
6172 (deprecated_annotate_signalled_hook): Deprecate.
6173 * tracepoint.h (deprecated_create_tracepoint_hook)
6174 (deprecated_delete_tracepoint_hook)
6175 (deprecated_modify_tracepoint_hook)
6176 (deprecated_trace_find_hook)
6177 (deprecated_trace_start_stop_hook): Deprecate.
6178 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6179 * remote.h (deprecated_target_resume_hook)
6180 (deprecated_target_wait_loop_hook): Deprecate.
6181 * gdbcore.h (deprecated_exec_file_display_hook)
6182 (deprecated_file_changed_hook): Deprecate.
6183 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6184 * defs.h (deprecated_modify_breakpoint_hook)
6185 (deprecated_command_loop_hook, deprecated_show_load_progress)
6186 (deprecated_print_frame_info_listing_hook)
6187 (deprecated_query_hook, deprecated_warning_hook)
6188 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6189 (deprecated_delete_breakpoint_hook)
6190 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6191 (deprecated_readline_begin_hook, deprecated_readline_hook)
6192 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6193 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6194 (deprecated_context_hook, deprecated_target_wait_hook)
6195 (deprecated_attach_hook, deprecated_detach_hook)
6196 (deprecated_call_command_hook, deprecated_set_hook)
6197 (deprecated_error_hook, deprecated_error_begin_hook)
6198 (deprecated_ui_load_progress_hook): Deprecate.
6199 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6200 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6201 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6202 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6203 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6204 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6205 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6206 * annotate.c, aix-thread.c: Update.
6207
6208 2004-04-21 Andrew Cagney <cagney@redhat.com>
6209
6210 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
6211 * vaxnbsd-tdep.c: Include "gdb_string.h".
6212
6213 * symfile.c (symbol_file_add_from_memory): #if 0 function.
6214 (add_symbol_file_from_memory_command): #if 0 function body, call
6215 error instead.
6216
6217 2004-04-21 Andrew Cagney <cagney@redhat.com>
6218
6219 * gdbcore.h: Update copyright.
6220 (deprecated_add_core_fns): Rename add_core_fns.
6221 * win32-nat.c (_initialize_core_win32): Update.
6222 * sun3-nat.c (_initialize_core_sun3): Update.
6223 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
6224 * rs6000-nat.c (_initialize_core_rs6000): Update.
6225 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
6226 * nto-tdep.c (_initialize_nto_tdep): Update.
6227 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
6228 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
6229 * mips-nat.c (_initialize_core_mips): Update.
6230 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6231 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
6232 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
6233 * lynx-nat.c (_initialize_core_lynx): Update.
6234 * irix5-nat.c (_initialize_core_irix5): Update.
6235 * i386-interix-nat.c (_initialize_core_interix): Update.
6236 * cris-tdep.c (_initialize_cris_tdep): Update.
6237 * corelow.c (deprecated_add_core_fns): Update.
6238 * core-regset.c (_initialize_core_regset): Update.
6239 * core-aout.c (_initialize_core_aout): Update.
6240 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
6241 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
6242 * alpha-nat.c (_initialize_core_alpha): Update.
6243
6244 2004-04-21 Jim Blandy <jimb@redhat.com>
6245
6246 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
6247
6248 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
6249
6250 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
6251 Delete.
6252 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
6253 (read_attribute_value): Update calls to dwarf_alloc_block.
6254 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
6255 dwarf2_tmp_obstack.
6256 (psymtab_to_symtab_1): Likewise. Clean up using
6257 free_stack_comp_unit.
6258 (add_to_cu_func_list): Use the comp_unit_obstack.
6259
6260 2004-04-19 Joel Brobecker <brobecker@gnat.com>
6261
6262 * dwarf2read.c (dwarf2_flag_true_p): New function.
6263 (die_is_declaration): Use the function above. Add some comments.
6264
6265 2004-04-19 Mark Kettenis <kettenis@gnu.org>
6266
6267 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
6268 architecture when registering sparcnbsd_core_osabi_sniffer.
6269 Adjust comment.
6270
6271 2004-04-18 Mark Kettenis <kettenis@gnu.org>
6272
6273 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
6274 return value.
6275
6276 Based on a patch from Brian Ford <ford@vss.fsi.com>:
6277 * i386-tdep.c: Correct register numbering scheme comments
6278 throughout.
6279 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
6280 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
6281 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
6282 (i386_gdb_arch_init): Likewise.
6283
6284 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
6285 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
6286 ppcnbsd-tdep.o.
6287
6288 * m68k-tdep.h: Tweak comments.
6289 * m68k-tdep.c: Tweak comment.
6290
6291 2004-04-17 Randolph Chung <tausq@debian.org>
6292
6293 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
6294 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
6295 (hppa_hpux_som_init_abi): Set is_elf to 0.
6296 (hppa_hpux_elf_init_abi): Set is_elf to 1.
6297 * hppa-tdep.c (low_text_segment_address): Remove global.
6298 (record_text_segment_lowaddr): Pass in low address as parameter. Use
6299 section offset to calculate segment address.
6300 (internalize_unwinds): Define low_text_segment_address as local and
6301 pass to record_text_segment_lowaddr for ELF targets.
6302 (hppa_gdbarch_init): Zero fill tdep structure.
6303 (hppa_dump_tdep): Print tdep structure.
6304 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
6305
6306 2004-04-17 Randolph Chung <tausq@debian.org>
6307
6308 * hppa-tdep.c (hppa_pseudo_register_read): Define.
6309 (hppa_gdbarch_init): Set pseudo_register_read.
6310 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
6311 * regcache.c (supply_register): Remove check for
6312 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
6313
6314 2004-04-17 Randolph Chung <tausq@debian.org>
6315
6316 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
6317 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
6318 (hpread_adjust_stack_address): Move to hpread.c.
6319 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6320 obj_private_struct): Move from tm-hppa.h.
6321 * hpread.c (hppa-tdep.h): Include.
6322 (hpread_adjust_stack_address): Move from hppa-tdep.c.
6323 (hpread_read_function_type, hpread_read_doc_function_type)
6324 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
6325 directly.
6326 * pa64solib.c (hppa-tdep.h): Include.
6327 * somsolib.c (hppa-tdep.h): Include.
6328 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
6329 inferior_status): Remove unused forward declarations.
6330 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
6331 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6332 obj_private_struct): Move to hppa-tdep.h.
6333 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
6334
6335 2004-04-17 Randolph Chung <tausq@debian.org>
6336
6337 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
6338 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
6339 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
6340 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
6341 Remove forward declaration and make static.
6342 (hppa_reg_struct_has_addr): Remove.
6343
6344 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6345
6346 * observer.sh: Move comments in sed command to first column.
6347
6348 2004-04-16 Jason Molenda (jmolenda@apple.com)
6349
6350 * frame.c: Minor typeo corrections in comments.
6351
6352 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6353
6354 * observer.c (observer_test_first_notification_function): Update
6355 function profile.
6356 (observer_test_second_notification_function): Likewise.
6357 (observer_test_third_notification_function): Likewise.
6358
6359 2004-04-16 Mark Kettenis <kettenis@gnu.org>
6360
6361 From Brian Ford <ford@vss.fsi.com>:
6362 * i386-tdep.c (i386_coff_init_abi): New function.
6363 * i386-tdep.h (i386_coff_init_abi): New prototype.
6364 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6365 register number translation functions for DWARF and DWARF 2.
6366
6367 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6368
6369 * dwarf2read.c: Back out my previous change, it was incorrect.
6370
6371 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
6372
6373 * dwarf2read.c: Include "hashtab.h".
6374 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
6375 has_namespace_info.
6376 (struct partial_die_info): Add comments. Use bitfields to reduce
6377 memory footprint. Add scope, scope_set, has_specification,
6378 spec_offset, die_parent, die_child, and die_sibling.
6379 (peek_die_abbrev): Add prototype.
6380 (partial_read_comp_unit_head): New function, broken out from
6381 dwarf2_build_psymtabs_hard.
6382 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6383 Use partial_read_comp_unit_head. Initialize the CU and
6384 comp_unit_obstack. Update calls to read_partial_die and
6385 scan_partial_symbols. Use free_stack_comp_unit and
6386 load_partial_dies.
6387 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6388 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6389 Update calls to helper functions. Remove NAMESPACE argument.
6390 Update comments.
6391 (partial_die_parent_scope, partial_die_full_name): New functions.
6392 (add_partial_symbol): Remove namespace argument. Update call to
6393 pdi_needs_namespace. Use partial_die_full_name. Handle
6394 DW_TAG_namespace. Check has_namespace_info flag.
6395 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6396 tag. Handle namespaces.
6397 (add_partial_namespace, add_partial_enumeration): Simplify.
6398 (guess_structure_name): New function, derived from
6399 add_partial_structure.
6400 (add_partial_structure): Remove.
6401 (determine_class_name): Update comment.
6402 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6403 (is_type_tag_for_partial, load_partial_dies): New functions.
6404 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6405 Record specifications instead of following them immediately.
6406 (find_partial_die_in_comp_unit, find_partial_die)
6407 (fixup_partial_die, free_stack_comp_unit)
6408 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6409 (partial_die_hash, partial_die_eq): New functions.
6410 * Makefile.in (hashtab_h): Define.
6411 (dwarf2read.o): Update dependencies.
6412 (observer_inc, observer_h): Move to the correct section.
6413
6414 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6415
6416 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6417 (die_is_declaration): Use the function above. Add comment.
6418
6419 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6420
6421 * dwarf2read.c (read_structure_scope): Identify stub types
6422 using die_is_declaration() only.
6423
6424 2004-04-15 Roland McGrath <roland@redhat.com>
6425
6426 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6427 argument instead of NAME.
6428 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6429 in call to symbol_file_add_with_addrs_or_offsets.
6430 (build_addr_info): New function, helper for ...
6431 (symbol_file_add_from_memory): New function.
6432 (add_symbol_file_from_memory_command): New function using that.
6433 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6434 (pre_add_symbol_hook): Add const to argument type.
6435 * symfile.h (symbol_file_add_from_memory): Declare it.
6436
6437 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6438
6439 * NEWS (New native configurations): Mention OpenBSD/vax.
6440 * configure.host: Add vax-*-openbsd*.
6441 * config/vax/obsd.mh: New file.
6442 * config/vax/nm-obsd.h: New file.
6443
6444 * vax-tdep.c: Include "regset.h".
6445 (vax_supply_gregset): New function.
6446 (vax_gregset): New variable.
6447 (vax_regset_from_core_section): New function.
6448 (vax_gdbarch_init): Set regset_from_core_section.
6449 * Makefile.in (vax-tdep.o): Update dependencies.
6450
6451 2004-04-15 Andrew Cagney <cagney@redhat.com>
6452
6453 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6454 (observer_normal_stop_notification_stub)
6455 (observer_attach_normal_stop, observer_detach_normal_stop):
6456 Delete, replaced by #include "observer.inc".
6457 * infrun.c (normal_stop): Pass "stop_bpstat" to
6458 observer_notify_normal_stop.
6459 * Makefile.in (observer_inc): Define.
6460 (observer.o): Update dependencies.
6461 (observer.h, observer.inc): New rules.
6462 * observer.h: Delete file.
6463 * observer.sh: New file.
6464
6465 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6466
6467 * vax-tdep.c (vax_frame_cache): Fix typo.
6468
6469 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6470
6471 * NEWS (New native configurations): Mention NetBSD/vax.
6472 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6473 * config/vax/nbsdelf.mh: New file.
6474 * config/vax/nbsdaout.mh: New file.
6475 * config/vax/nm-nbsd.h: New file.
6476 * config/vax/nm-nbsdaout.h: New file.
6477
6478 * vaxnbsd-tdep.c: New file.
6479 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6480 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6481 * config/vax/nbsd.mt: New file.
6482 * config/vax/tm-nbsd.h: New file.
6483
6484 * Makefile.in (vaxbsd-nat.o): New dependency.
6485
6486 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6487 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6488 struct_addr arguments. Don't push return value address.
6489 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6490 arguments to vax_store_arguments. Store return value address in
6491 R1.
6492 (vax_store_struct_return, vax_extract_return_value)
6493 (vax_store_return_value): Remove functions.
6494 (vax_return_value): New function.
6495 (vax_gdbarch_init): Set return value. Don't set
6496 deprecated_store_struct_return, deprecated_extract_struct_return
6497 and deprecated_store_return_value.
6498
6499 2004-04-14 Andreas Schwab <schwab@suse.de>
6500
6501 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6502 value buffer.
6503 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6504
6505 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6506
6507 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6508 (vax_unwind_dummy_id): New functions.
6509 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6510 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6511 variables.
6512 (vax_fix_call_dummy): Remove function.
6513 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6514 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6515 call_dummy_location, deprecated_call_dummy_words,
6516 deprecated_sizeof_call_dummy_words,
6517 deprecated_call_dummy_breakpoint_offset,
6518 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6519 and deprecated_dummy_write_sp.
6520
6521 2004-04-13 David Carlton <carlton@kealia.com>
6522
6523 * MAINTAINERS: Move myself to "paper trail" section.
6524
6525 2004-04-12 Mark Kettenis <kettenis@gnu.org>
6526
6527 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6528 "trad-frame.h".
6529 (vax_frame_init_saved_regs): Remove function.
6530 (vax_sigtramp_saved_pc): Remove function.
6531 (vax_frame_saved_pc): Remove function.
6532 (vax_frame_args_address): Remove function.
6533 (vax_frame_num_args): Rewrite.
6534 (vax_frame_chain): Remove function.
6535 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6536 VAX_FP_REGNUM.
6537 (vax_pop_frame): Likewise.
6538 (vax_saved_pc_after_call): Remove function.
6539 (struct vax_frame_cache): New structure.
6540 (vax_frame_cache): New function.
6541 (vax_frame_this_id): New function.
6542 (vax_frame_prev_register): New function.
6543 (vax_frame_unwind): New variable.
6544 (vax_frame_sniffer): New function.
6545 (vax_frame_base_address): New function.
6546 (vax_frame_args_address): New function.
6547 (vax_frame_base): New variable.
6548 (vax_unwind_pc): New function.
6549 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6550 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6551 deprecated_frame_chain, deprecated_frame_saved_pc,
6552 deprecated_frame_args_address and
6553 deprecated_frame_init_saved_regs.
6554 * Makefile.in (vax-tdep.o): Update dependencies.
6555
6556 * vaxbsd-nat.c: New file.
6557
6558 * vax-tdep.h: Update copyright year. Adjust comments.
6559 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6560 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6561 (vax_regnum): New enum. Replacing...
6562 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6563 (VAX_PS_REGNUM): ... these removed macros.
6564 * vax-tdep.c (vax_register_name): Remove prototype.
6565 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6566 (vax_register_byte, vax_register_raw_size,
6567 vax_register_virtual_size, vax_register_virtual_type): Remove
6568 functions.
6569 (vax_register_type): New function.
6570 (vax_breakpoint_from_pc): Reorganize.
6571 (vax_gdbarch_init): Set register_type. Don't set
6572 deprecated_register_size, deprecated_register_bytes,
6573 deprecated_register_byte, deprecated_register_raw_size,
6574 deprecated_max_register_raw_size,
6575 deprecated_register_virtual_size,
6576 deprecated_max_register_virtual_size and
6577 deprecated_register_virtual_type. Add comment on stack direction.
6578
6579 2004-04-11 Mark Kettenis <kettenis@gnu.org>
6580
6581 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6582 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
6583 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
6584
6585 2004-04-10 Randolph Chung <tausq@debian.org>
6586
6587 * MAINTAINERS (write after approval): Add myself.
6588
6589 2004-04-07 Randolph Chung <tausq@debian.org>
6590
6591 * hppa-tdep.c (hppa_inner_than): Remove.
6592 (is_pa_2): Remove unused static variable.
6593 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
6594
6595 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6596
6597 * language.h (language_defn): Add new la_post_parser field.
6598 * parser-defs.h (null_post_parser): New declaration (default for
6599 la_post_parser).
6600
6601 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6602 insert call to that function.
6603 (parse_exp_in_context): New function, including code formerly in
6604 parse_exp_1. Calls language-dependent post-parser after
6605 prefixification.
6606 (parse_expression_in_context): New exported function.
6607 (null_post_parser): New definition.
6608 * expression.h (parse_expression_in_context): Add declaration.
6609
6610 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6611 * c-lang.c (c_language_defn): Ditto.
6612 (cplus_language_defn): Ditto.
6613 (asm_language_defn): Ditto.
6614 (minimal_language_defn): Ditto.
6615 * f-lang.c (f_language_defn): Ditto.
6616 * jv-lang.c (java_language_defn): Ditto.
6617 * language.c (unknown_language_defn): Ditto.
6618 (auto_language_defn): Ditto.
6619 (local_language_defn): Ditto.
6620 * m2-lang.c (m2_language_defn): Ditto.
6621 * scm-lang.c (scm_language_defn): Ditto.
6622 * obj-lang.c (objc_language_defn): Ditto.
6623
6624 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6625
6626 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6627 (amd64nbsd_mcontext_addr): New function.
6628 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6629 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6630 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6631
6632 * corelow.c (core_xfer_partial): Fix coding standards violation.
6633 Add support for TARGET_OBJECT_WCOOKIE.
6634
6635 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6636 deprecated_pc_in_sigtramp.
6637 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6638 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6639 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6640 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6641 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6642 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6643 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6644
6645 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6646 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6647 Fix typo.
6648
6649 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6650 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6651 (amd64_collect_fxsave): Likewise.
6652
6653 * i386-sol2-tdep.c: Include "gdb_string.h".
6654 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6655 name.
6656 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6657
6658 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6659
6660 * i386-sol2-tdep.c: Include "solib-svr4.h".
6661 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6662 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6663 * config/i386/tm-i386sol2.h: Include :solib.h".
6664 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6665 solib-svr4.o and solib-legacy.o.
6666 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6667 solib-svr4.o.
6668
6669 2004-04-09 Mark Kettenis <kettenis@gnu.org>
6670
6671 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6672 whether a register is supplied by PTRACE_GETFPREGS.
6673 (store_inferior_registers): Likewise.
6674 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6675 whether a register is supplied by PT_GETFPREGS.
6676 (store_inferior_registers): Likewise.
6677
6678 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6679 * config/i386/linux64.mt (TDEPFILES): Likewise.
6680
6681 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6682
6683 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6684 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6685 the program counter is in the range specified by `struct
6686 gdbarch_tdep'.
6687 * amd64-linux-tdep.c: Include "symtab.h".
6688 (amd64_linux_pc_in_sigtramp): Remove function.
6689 (amd64_linux_sigtramp_p): New function.
6690 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6691 deprecated_pc_in_sigtramp.
6692 * amd64nbsd-tdep.c: Include "symtab.h".
6693 (amd64nbsd_sigtramp_p): New function.
6694 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6695 deprecated_pc_in_sigtramp.
6696 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6697 few comments.
6698 (amd64obsd_pc_in_sigtramp): Remove function.
6699 (amd64obsd_sigtramp_p): New function.
6700 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6701 deprecated_pc_in_sigtramp.
6702 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6703 (i386bsd_pc_ins_sigtramp): Remove prototype.
6704 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6705 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6706 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6707 the program counter is in the range specified by `struct
6708 gdbarch_tdep'.
6709 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6710 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6711 (i386_go32_pc_in_sigtramp): Remove function.
6712 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6713 Initialize TDEP->sigtramp_p.
6714 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6715 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6716 deprecated_pc_in_sigtramp.
6717 * i386-linux-tdep.c: Adjust comments.
6718 (i386_linux_pc_in_sigtramp): Remove function.
6719 (i386_linux_sigtramp_p): New function.
6720 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6721 deprecated_pc_in_sigtramp.
6722 * i386-nto-tdep.c: Update copyright year.
6723 (i386nto_pc_in_sigtramp): Remove function.
6724 (i386nto_sigtramp_p): New function.
6725 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6726 SP_REGNUM.
6727 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6728 deprecated_pc_in_sigtramp.
6729 * i386-sol2-tdep.c: Update copyright year.
6730 (i386_sol2_pc_in_sigtramp): Remove function.
6731 (i386_sol2_sigtramp_p): New function.
6732 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6733 deprecated_pc_in_sigtramp.
6734 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6735 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6736 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6737 deprecated_sigtramp_start and deprecated_sigtramp_end.
6738 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6739 (i386nbsd_pc_in_sigtramp): Remove function.
6740 (i386nbsd_sigtramp_p): New function.
6741 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6742 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6743 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6744 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6745 (i386obsd_pc_in_sigtramp): Remove function.
6746 (i386obsd_sigtramp_p): New function.
6747 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6748 functions.
6749 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6750 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6751 TDEP->sigtramp_p.
6752 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6753 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6754 dependencies.
6755
6756 * config/i386/i386aout.mt: Remove file.
6757
6758 * configure.tgt: Remove i[34567]86-*-go32*,
6759 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6760 and i[34567]86-*-isc*. Set gdb_target to i386 for
6761 i[34567]86-*-netware* and i[34567]86-*-*.
6762 * config/i386/i386.mt: New file.
6763 * config/i386/embed.mt: Remove file.
6764 * config/i386/go32.mt: Remove file.
6765 * config/i386/i386nw.mt: Remove file.
6766 * config/i386/i386v.mt: Remove file.
6767 * config/i386/tm-go32.h: Remove file.
6768
6769 * tui/tui-hooks.c: Include "readline/readline.h" after
6770 "gdb_curses.h" instead of before.
6771 * tui/tui-io.c: Likewise.
6772
6773 * tui/tui.c: Fix typo in comment.
6774
6775 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6776
6777 2004-04-08 Andrew Cagney <cagney@redhat.com>
6778
6779 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6780 (deprecated_exception_support_initialized): Declare.
6781 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
6782 (initialize_hp_cxx_exception_support)
6783 (child_enable_exception_callback): Update.
6784 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6785 (deprecated_exception_support_initialized): Rename
6786 deprecated_exception_catchpoints_are_fragile and
6787 deprecated_exception_support_initialized.
6788 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6789
6790 * symtab.c (deprecated_hp_som_som_object_present): Rename
6791 hp_som_som_object_present.
6792 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6793 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6794 Update. Delete extern declaration.
6795 * valops.c (hp_som_som_object_present): Ditto.
6796 * parse.c (deprecated_hp_som_som_object_present)
6797 (parse_nested_classes_for_hpacc): Ditto.
6798 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
6799 * hppa-hpux-tdep.c (hp_som_som_object_present)
6800 (initialize_hp_cxx_exception_support): Ditto.
6801 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
6802 * cp-valprint.c (hp_som_som_object_present)
6803 (cp_print_class_method): Ditto.
6804 * c-typeprint.c (hp_som_som_object_present):
6805 (c_type_print_base): Ditto.
6806 * c-exp.y (hp_som_som_object_present): Ditto.
6807
6808 2004-04-08 Andrew Cagney <cagney@redhat.com>
6809
6810 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6811 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6812 (frame_unwind_find_by_frame): Re-implement the unwind code so
6813 that it can both prepend and append sniffers. Replace
6814 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6815 * tramp-frame.c (tramp_frame_append): Use
6816 frame_unwind_prepend_unwinder.
6817 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6818 frame_unwind_register_unwinder.
6819 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6820 tramp_frame_append.
6821 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
6822 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
6823 (mips_linux_init_abi): Update.
6824
6825 2004-04-08 Kevin Buettner <kevinb@redhat.com>
6826
6827 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6828 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6829 file support.
6830
6831 2004-04-07 Kevin Buettner <kevinb@redhat.com>
6832
6833 * ia64-tdep.c (elf.h): Don't include.
6834 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6835
6836 2004-04-07 Jason Molenda (jmolenda@apple.com)
6837
6838 * frame.h: Typeo corrections in comments.
6839
6840 2004-04-07 Jim Blandy <jimb@redhat.com>
6841
6842 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6843 %esp and %ebp
6844
6845 2004-04-07 Mark Kettenis <kettenis@gnu.org>
6846
6847 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6848 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6849 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6850 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6851 and solib-legacy.o.
6852 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6853 solib-svr4.o.
6854 * config/sparc/tm-sol2.h: Update copyright year. Include
6855 "solib.h".
6856
6857 * sparc-sol2-tdep.c: Update copyright year. Include
6858 "solib-svr4.h".
6859 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6860 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6861 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6862 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
6863 dependencies.
6864
6865 2004-04-06 Andrew Cagney <cagney@redhat.com>
6866
6867 * infttrace.c: Include "infttrace.h".
6868 * infttrace.h: Include "target.h".
6869 * Makefile.in (infttrace_h): Update.
6870 (infttrace.o): Update.
6871
6872 2004-04-06 Andrew Cagney <cagney@redhat.com>
6873
6874 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6875 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6876 move extern declarations from here ...
6877 * infttrace.h: ... to here.
6878 * Makefile.in (hppah-nat.o): Update dependencies.
6879
6880 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6881 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
6882 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
6883 (hppa_breakpoint_from_pc): Delete.
6884
6885 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6886
6887 2004-04-05 Andrew Cagney <cagney@redhat.com>
6888
6889 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6890 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6891 <sys/file.h>.
6892
6893 2004-04-06 Randolph Chung <tausq@debian.org>
6894
6895 Committed by Andrew Cagney (mechanical change).
6896 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6897 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6898 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6899 child_enable_exception_callback, current_ex_event,
6900 null_symtab_and_line, child_get_current_exception_event,
6901 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6902 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6903 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6904 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6905 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6906 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6907 Move hpux-specific definitions ...
6908 * hppa-hpux-tdep.c: ... to here.
6909
6910 2004-04-05 Andrew Cagney <cagney@redhat.com>
6911
6912 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6913 skip_prologue_using_sal.
6914
6915 2004-04-05 Andrew Cagney <cagney@redhat.com>
6916
6917 * config/i386/tm-i386.h: Delete file.
6918 * config/i386/tm-vxworks.h: Update copyright, do not include
6919 "tm-i386.h".
6920 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6921 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6922 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6923 * config/i386/ncr3000.mt (TM_FILE): Delete.
6924 * config/i386/interix.mt (TM_FILE): Delete.
6925 * config/i386/i386v.mt (TM_FILE): Delete.
6926 * config/i386/i386nw.mt (TM_FILE): Delete.
6927 * config/i386/i386gnu.mt (TM_FILE): Delete.
6928 * config/i386/i386aout.mt (TM_FILE): Delete.
6929 * config/i386/embed.mt (TM_FILE): Delete.
6930
6931 2004-04-05 Kevin Buettner <kevinb@redhat.com>
6932
6933 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6934 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6935 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6936 (accg7_regnum): New constants.
6937 (last_spr_regnum, last_pseudo_regnum): Update.
6938 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6939 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
6940 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6941 for accg registers.
6942 (frv_register_sim_regno): Update spr_map[].
6943
6944 2004-04-04 Andrew Cagney <cagney@redhat.com>
6945
6946 * config/mips/xm-riscos.h: Delete.
6947 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6948 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6949 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6950 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6951 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6952 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6953 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6954 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6955 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6956 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6957 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6958 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6959 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6960 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6961 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6962 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6963 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6964 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6965 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6966 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6967 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6968 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6969 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6970 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6971 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6972 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
6973
6974 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6975 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6976 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6977 * configure.host: Remove m680[01]0-sun-sunos3*,
6978 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6979 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6980 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6981 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6982 mips-*-riscos*.
6983 * NEWS: Mention removed systems.
6984
6985 2004-04-04 Andrew Cagney <cagney@redhat.com>
6986
6987 GDB 6.1 release created from 6.1 branch.
6988
6989 2004-04-04 Andrew Cagney <cagney@redhat.com>
6990
6991 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6992 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6993 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6994
6995 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6996 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6997 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6998
6999 2004-04-03 Jim Blandy <jimb@redhat.com>
7000
7001 * MAINTAINERS: Chris Faylor has changed employers; add him to
7002 "paper trail" section, and update his E-mail address.
7003
7004 2004-04-03 Andrew Cagney <cagney@redhat.com>
7005
7006 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7007 generic dummy frames.
7008 * dummy-frame.c: Update copyright.
7009 (dummy_frame_sniffer): Delete check for generic dummy frames.
7010
7011 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
7012 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
7013 (REG_PARM_STACK_SPACE): Delete.
7014 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7015 Inline reference to REG_PARM_STACK_SPACE.
7016
7017 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7018 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7019 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7020 (FRAME_BASE_BEFORE_SIGTRAMP)
7021 (hppa32_hpux_frame_base_before_sigtramp)
7022 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7023 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7024 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7025 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7026 (FRAME_BASE_BEFORE_SIGTRAMP)
7027 (hppa64_hpux_frame_base_before_sigtramp)
7028 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7029
7030 2004-04-03 Andrew Cagney <cagney@redhat.com>
7031
7032 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7033
7034 2004-04-02 Andrew Cagney <cagney@redhat.com>
7035
7036 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7037 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7038 * dummy-frame.h: Delete out-of-date comments.
7039 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7040 * gdbarch.h, gdbarch.c: Re-generate.
7041
7042 2004-04-02 Joel Brobecker <brobecker@gnat.com>
7043
7044 Committed by Andrew Cagney <cagney@redhat.com>.
7045 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7046 into account an instruction saving a register if we have already
7047 seen an earlier instruction saving that same register.
7048
7049 2004-04-02 Andrew Cagney <cagney@redhat.com>
7050
7051 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7052 * gdbarch.h, gdbarch.c: Re-generate.
7053 * frame.c (legacy_get_prev_frame): Delete references to
7054 DEPRECATED_INIT_FRAME_PC_FIRST.
7055
7056 * infrun.c (pc_in_sigtramp): Delete function.
7057 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7058 get_frame_type.
7059
7060 2004-04-02 Andrew Cagney <cagney@redhat.com>
7061
7062 * infrun.c (handle_step_into_function): Delete code conditional on
7063 legacy_frame_p.
7064 (handle_inferior_event, step_over_function): Ditto.
7065
7066 2004-04-02 Andrew Cagney <cagney@redhat.com>
7067
7068 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7069 "previous frame inner to this frame" test.
7070
7071 2004-04-02 Andrew Cagney <cagney@redhat.com>
7072
7073 * frame.c (safe_frame_unwind_memory): New function.
7074 * frame.h (safe_frame_unwind_memory): Declare. Update description
7075 of /safe_/ methods.
7076 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
7077 "next_frame". Use safe_frame_unwind_memory.
7078 (tramp_frame_sniffer): Update call to tramp_frame_start.
7079
7080 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
7081
7082 * dwarf2read.c (dwarf2_objfile_data_key): New.
7083 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
7084 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
7085 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
7086 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
7087 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
7088 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
7089 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
7090 Remove variables.
7091 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
7092 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
7093 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
7094 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
7095 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
7096 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
7097 Remove macros.
7098 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
7099 data.
7100 (dwarf2_locate_sections, dwarf2_build_psymtabs)
7101 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
7102 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
7103 (read_partial_die, read_full_die, read_indirect_string)
7104 (dwarf_decode_line_header, dwarf_decode_macros)
7105 (dwarf2_symbol_mark_computed): Remove use of removed macros.
7106 Update uses of removed variables.
7107 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
7108 of removed macros.
7109 (_initialize_dwarf2_read): New function.
7110 * symfile.h (dwarf2_has_info): Update prototype.
7111 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
7112 * elfread.c (elf_symfile_read): Likewise.
7113
7114 2004-04-01 Jim Blandy <jimb@redhat.com>
7115
7116 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
7117 function for register numbers on all the rs6000-derived targets.
7118 (rs6000_gdbarch_init): Don't register a separate
7119 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
7120 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
7121 variants.
7122
7123 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
7124 numbering.
7125
7126 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
7127
7128 * valarith.c: Update copyright notice.
7129 (value_add): Handle range types.
7130 (value_sub): Ditto.
7131 (value_equal): Ditto.
7132 (value_less): Ditto.
7133 (value_neg): Ditto.
7134 (value_complement): Ditto.
7135 (value_binop): Simplify slightly by using is_integral_type and
7136 eliminiating unnecessary COERCE_ENUMs.
7137
7138 2004-03-31 Andrew Cagney <cagney@redhat.com>
7139
7140 * frame.h (frame_unwind_id): Declare.
7141 * frame.c (frame_unwind_id): New function.
7142 (get_prev_frame_1): New function.
7143 (frame_debug_got_null_frame): New function.
7144 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
7145 code proper to prev_frame, update description.
7146 * infrun.c (step_over_function): Use frame_unwind_id.
7147
7148 2004-04-31 J. Brobecker <brobecker@gnat.com>
7149
7150 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
7151 (hppa64_push_dummy_call): Likewise.
7152
7153 2004-03-30 Jim Blandy <jimb@redhat.com>
7154
7155 From Ulrich Weigand:
7156 * utils.c (query): Do not use a va_list variable multiple times.
7157
7158 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7159
7160 * Makefile.in (linux_nat_h): Update dependencies.
7161 * configure.in: Check for <gnu/libc-version.h>.
7162 * configure: Regenerate.
7163 * config.in: Regenerate.
7164 * linux-nat.h: Include "target.h". Add waitstatus field to
7165 struct lwp_info.
7166 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7167 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7168 to.
7169 (lin_lwp_handle_extended): New function. Handle clone events.
7170 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7171 thread exit events.
7172 (child_wait): Handle clone events.
7173 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7174 * linux-nat.c (linux_enable_event_reporting): Turn on
7175 PTRACE_O_TRACECLONE.
7176 (linux_handle_extended_wait): Handle clone events.
7177 * thread-db.c: Include <gnu/libc-version.h>.
7178 (struct private_thread_info): Add dying flag.
7179 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7180 higher.
7181 (attach_thread): Update comments. Handle dying threads.
7182 (detach_thread): Set the dying flag.
7183 (check_event): Always call attach_thread.
7184
7185 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7186
7187 * mips-tdep.c (mips_pdr_data): New.
7188 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7189 (_initialize_mips_tdep): Initialize mips_pdr_data.
7190
7191 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
7192
7193 * minsyms.c (install_minimal_symbols): Move dropping leading
7194 char from linkage name from here...
7195 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7196 test for "__gnu_compiled*" symbols.
7197
7198 2004-03-28 Jim Blandy <jimb@redhat.com>
7199
7200 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7201 registers to temp register r0 and byte stores as prologue
7202 instructions.
7203
7204 2004-03-28 Andrew Cagney <cagney@redhat.com>
7205
7206 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7207 arm*-*-*.
7208
7209 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7210
7211 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
7212 and switch the layout to force a display of register window.
7213
7214 2004-02-26 J. Brobecker <brobecker@gnat.com>
7215
7216 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
7217 of the INTEGER class.
7218
7219 2004-03-26 Jim Blandy <jimb@redhat.com>
7220
7221 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
7222 bytes long on PPC GNU/Linux.
7223
7224 2004-03-26 David Carlton <carlton@kealia.com>
7225
7226 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
7227
7228 2004-03-25 Andrew Cagney <cagney@redhat.com>
7229
7230 * PROBLEMS: Add general section titles, remove references to
7231 specific releases.
7232
7233 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
7234
7235 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
7236 INT_REGISTER_SIZE.
7237 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
7238 FP_REGISTER_VIRTUAL_SIZE.
7239 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
7240 of DEPRECATED_REGISTER_RAW_SIZE.
7241 (arm_register_type): Add gdbarch argument.
7242 (arm_register_raw_size, arm_register_virtual_size): Delete.
7243 (arm_register_byte, arm_extract_return_value)
7244 (arm_store_return_value, arm_get_longjmp_target): Update references
7245 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
7246 (arm_gdbarch_init): Likewise. Don't set
7247 deprecated_register_raw_size, deprecated_register_virtual_size,
7248 deprecated_max_register_raw_size,
7249 deprecated_max_register_virtual_size, or
7250 deprecated_max_register_virtual_type. Do set register_type.
7251 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
7252 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
7253 (FP_REGISTER_VIRTUAL_SIZE): Delete.
7254 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
7255 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
7256 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
7257 INT_REGISTER_SIZE.
7258 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
7259 (remote_rdp_store_register): Likewise.
7260
7261 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
7262
7263 * Makefile.in (mips-linux-tdep.o): Update dependencies.
7264 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
7265 to after osabi initialization.
7266 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
7267 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
7268 functions.
7269 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
7270 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
7271 variables.
7272 (mips_linux_init_abi): Append signal trampoline unwinders.
7273
7274 2004-03-24 Andrew Cagney <cagney@redhat.com>
7275
7276 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
7277 * tramp-frame.c: Include "gdb_assert.h".
7278 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
7279 correct sizeof.
7280 (tramp_frame_append): Validate the tramp frame's instructions.
7281 * Makefile.in (tramp-frame.o): Update dependencies.
7282
7283 2004-03-23 Andrew Cagney <cagney@redhat.com>
7284
7285 * trad-frame.h (trad_frame_set_reg_addr): Declare.
7286
7287 2004-03-23 Andrew Cagney <cagney@redhat.com>
7288
7289 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
7290 Nasser as past testsuite/lib/ (and other) maintainers.
7291
7292 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
7293
7294 * infcmd.c (attach_command): Reread symbols if we already have
7295 an exec file.
7296
7297 2004-03-23 Andrew Cagney <cagney@redhat.com>
7298
7299 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
7300
7301 2004-03-23 Andrew Cagney <cagney@redhat.com>
7302
7303 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
7304 * gdbarch.h, gdbarch.c: Re-generate.
7305 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7306 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7307 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7308 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
7309 (DEPRECATED_SIGTRAMP_START): Update.
7310 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
7311 (DEPRECATED_SIGTRAMP_START): Update.
7312 * blockframe.c (find_pc_sect_partial_function): Update.
7313 * arch-utils.c (legacy_pc_in_sigtramp): Update.
7314
7315 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
7316
7317 * remote.c (remote_open_1): Reopen the exec file and reread symbols
7318 if necessary.
7319
7320 2004-03-23 Andrew Cagney <cagney@redhat.com>
7321
7322 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
7323 predicate, deprecate.
7324 * gdbarch.h, gdbarch.c: Re-generate.
7325 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7326 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7327 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
7328 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7329 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
7330 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
7331 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
7332 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
7333 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
7334 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
7335 * blockframe.c (find_pc_partial_function): Update.
7336 * breakpoint.c (bpstat_what): Update.
7337 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
7338 * frv-linux-tdep.c (frv_linux_init_abi): Update.
7339 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
7340 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
7341 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7342 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7343 * i386-nto-tdep.c (i386nto_init_abi): Update.
7344 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
7345 * i386-tdep.c (i386_sigtramp_frame_sniffer)
7346 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
7347 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7348 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7349 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7350 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7351 * infrun.c (pc_in_sigtramp): Update.
7352 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7353 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7354 * mips-tdep.c (mips_gdbarch_init): Update.
7355 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7356 * ppc-linux-tdep.c: Update comment.
7357 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7358 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7359 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7360 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7361 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7362 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7363 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7364 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7365 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7366 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
7367
7368 2004-03-23 Andrew Cagney <cagney@redhat.com>
7369
7370 * tramp-frame.h, tramp-frame.h: New files.
7371 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
7372 Update rules to include "tramp-frame.h" and "tramp-frame.c".
7373
7374 * Makefile.in: Update all dependencies.
7375
7376 2004-03-23 Andrew Cagney <cagney@redhat.com>
7377
7378 * Makefile.in (trad_frame_h): Add $(frame_h).
7379 * trad-frame.h: Update copyright. Include "frame.h".
7380 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7381 (trad_frame_set_id, trad_frame_get_id): Declare.
7382 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7383 * trad-frame.c: Update copyright.
7384 (struct trad_frame_cache): Define.
7385 (trad_frame_cache_zalloc): New function.
7386 (trad_frame_set_id, trad_frame_get_id): New functions.
7387 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
7388
7389 2004-03-22 Andrew Cagney <cagney@redhat.com>
7390
7391 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7392 s390_pltstub_unwind_cache.
7393 (s390_stub_frame_unwind_cache): Rename
7394 s390_pltstub_frame_unwind_cache.
7395 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7396 (s390_stub_frame_prev_register): Rename
7397 s390_pltstub_frame_prev_register.
7398 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7399 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7400
7401 From Ulrich Weigand:
7402 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7403 pointer calls like PLT calls.
7404
7405 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7406
7407 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7408 PC rather than the partial function start address. Use the start
7409 address to sanity check the found PDR.
7410
7411 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7412
7413 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7414 linux_handle_extended_wait.
7415
7416 2004-03-22 Andrew Cagney <cagney@redhat.com>
7417
7418 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7419 function.
7420
7421 * frame.h (generic_pop_current_frame): Delete declaration.
7422 (deprecate_pop_dummy_frame): Deprecate
7423 generic_pop_dummy_frame.
7424 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7425 (generic_pop_current_frame): Delete function.
7426 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7427 generic_pop_current_frame.
7428 * v850-tdep.c (v850_pop_frame): Update.
7429 * mcore-tdep.c (mcore_pop_frame): Update.
7430 * sh64-tdep.c (sh64_pop_frame): Update.
7431 * h8300-tdep.c (h8300_pop_frame): Update.
7432
7433 2004-03-22 Andrew Cagney <cagney@redhat.com>
7434
7435 * frame.h (deprecated_pc_in_call_dummy): Rename
7436 generic_pc_in_call_dummy.
7437 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7438 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7439 generic_pc_in_call_dummy.
7440 (pc_in_dummy_frame): Make static.
7441 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7442 * gdbarch.h, gdbarch.c: Re-generate.
7443 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7444 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7445 (legacy_get_prev_frame): Ditto.
7446 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7447 comment.
7448
7449 2004-03-21 Andrew Cagney <cagney@redhat.com>
7450
7451 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7452 declaration and out-of-date comment.
7453 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7454 Delete function.
7455 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7456 deprecated_pc_in_call_dummy.
7457
7458 * infrun.c (handle_inferior_event): For non legacy frames, use the
7459 frame ID and frame type to identify a signal trampoline. Update
7460 comments.
7461
7462 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7463
7464 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7465 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7466
7467 2004-03-21 Andrew Cagney <cagney@redhat.com>
7468
7469 * frame-unwind.h: Update copyright.
7470 (struct frame_data): Add opaque declaration.
7471 (frame_sniffer_ftype): Declare.
7472 (struct frame_unwind): Add "unwind_data" and "sniffer".
7473 (frame_unwind_register_unwinder): Declare.
7474 (frame_unwind_find_by_frame): Add parameter "this_cache".
7475 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7476 (legacy_get_prev_frame, legacy_get_prev_frame)
7477 (get_frame_type): Pass the prologue_cache to
7478 frame_unwind_find_by_frame.
7479 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7480 "unwinder".
7481 (frame_unwind_register_unwinder): New function.
7482 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7483
7484 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7485
7486 * bcache.c (print_percentage): Use floating point to avoid
7487 incorrect results when portion*100 overflows.
7488
7489 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7490
7491 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7492 (ppc_linux_init_extra_frame_info)
7493 (ppc_linux_frameless_function_invocation)
7494 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7495 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7496 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7497 (rs6000_frame_chain): Delete declarations.
7498 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7499 (ppc_linux_init_extra_frame_info)
7500 (ppc_linux_frameless_function_invocation)
7501 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7502 (ppc_linux_init_abi): Remove registration of above deleted functions.
7503 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7504 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7505 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7506 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7507 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7508 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7509 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7510 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7511 frame management for all OSABIs.
7512
7513 2004-03-19 Andrew Cagney <cagney@redhat.com>
7514
7515 Committed by Kevin Buettner <kevinb@redhat.com>.
7516
7517 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7518 Update copyright.
7519 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7520 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7521 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7522 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7523 unwinders. #ifdef legacy frame code.
7524 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7525 "frame-base.h".
7526 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7527 (struct rs6000_frame_cache, rs6000_frame_cache)
7528 (rs6000_frame_this_id, rs6000_frame_prev_register)
7529 (rs6000_frame_sniffer, rs6000_frame_unwind)
7530 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7531 (rs6000_frame_base): Implement a traditional frame unwinder.
7532 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7533 frame unwinder.
7534
7535 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7536
7537 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7538 breakpoint address for watchpoints or the catch eventpoints.
7539 Add new paramter ``bptype''. Adjust all callers.
7540
7541 2004-03-19 Andrew Cagney <cagney@redhat.com>
7542
7543 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7544
7545 * PROBLEMS: Delete note that ARM does not use frame code, problem
7546 fixed.
7547
7548 2004-03-18 Andrew Cagney <cagney@redhat.com>
7549
7550 * stack.c (return_command): Delete code wrapped in #ifdef
7551 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7552
7553 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7554
7555 2004-03-18 Andrew Cagney <cagney@redhat.com>
7556
7557 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7558 DEPRECATED_IN_SIGTRAMP.
7559 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7560 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7561 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7562 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7563 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7564 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7565 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7566 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7567 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7568 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7569
7570 2004-03-18 Andrew Cagney <cagney@redhat.com>
7571
7572 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7573 (struct frame_base_table_entry): Define.
7574 (struct frame_base_table): Re-implement as a linked list.
7575 (frame_base_init): Re-implement.
7576 (frame_base_table): Delete function.
7577 (append_predicate): Delete function.
7578 (frame_base_append_sniffer): Update.
7579 (frame_base_set_default): Update.
7580 (frame_base_find_by_frame): Update.
7581 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7582 * Makefile.in (frame-base.o): Update dependencies.
7583
7584 2004-03-17 Andrew Cagney <cagney@redhat.com>
7585
7586 * frame.c (legacy_get_prev_frame): Pass correct frame to
7587 frame_unwind_find_by_frame.
7588
7589 2004-03-17 David Carlton <carlton@kealia.com>
7590
7591 * NEWS: Mention C++ nested types and namespaces
7592
7593 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7594
7595 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7596 and "Regressions since gdb 5.3.". Add known regressions since
7597 gdb 6.0.
7598
7599 2004-03-16 David Carlton <carlton@kealia.com>
7600
7601 * dwarf2read.c (process_structure_scope): Process children even
7602 when we're a declaration.
7603
7604 2004-03-16 Andrew Cagney <cagney@redhat.com>
7605
7606 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7607 * blockframe.c (find_pc_partial_function)
7608 (find_pc_sect_partial_function): Merge into a single
7609 find_pc_partial_function.
7610
7611 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7612
7613 * i386bsd-nat.c: s/regno/regnum/g.
7614 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7615 FP0_REGNUM.
7616 (store_inferior_registers): Likewise.
7617
7618 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7619
7620 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7621 of i387_fill_fsave.
7622 (store_inferior_registers): Call i387_collect_fsave and
7623 i387_collect_fxsave instead of i387_fill_fsave and
7624 i387_fill_fxsave.
7625
7626 2004-03-15 Andrew Cagney <cagney@redhat.com>
7627
7628 * Makefile.in (frame-unwind.o): Update dependencies.
7629 * frame-unwind.c: Include "gdb_obstack.h".
7630 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7631 parameter.
7632 (append_predicate): Delete function.
7633 (struct frame_unwind_table_entry): New structure.
7634 (struct frame_unwind_table): Replace "sniffer" with "head" and
7635 "tail".
7636 (frame_unwind_append_sniffer): Update.
7637 (frame_unwind_find_by_frame): Update.
7638 (_initialize_frame_unwind): Registe frame_unwind_init using
7639 gdbarch_data_register_pre_init.
7640
7641 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7642
7643 * i386bsd-nat.c: Update copyright year.
7644 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7645 define unconditionally.
7646
7647 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7648
7649 * i387-tdep.h (i387_collect_fsave): New prototype.
7650 * i387-tdep.c (i387_collect_fsave): New function containing most
7651 of the code from i387_fill_fsave.
7652 (i387_fill_fsave): Call i387_collect_fsave.
7653
7654 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7655
7656 * i386-linux-tdep.c: Update copyright year.
7657 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7658 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7659 svr4_ilp32_link_map_offsets instead of
7660 i386_linux_svr4_fetch_link_map_offsets.
7661
7662 2004-03-15 David Carlton <carlton@kealia.com>
7663
7664 Fix for PR c++/1553:
7665 * dwarf2read.c (read_structure_type): Determine type name by
7666 calling determine_class_name.
7667 (determine_class_name): New.
7668 (determine_prefix): Look at TYPE_TAG_NAME and call
7669 determine_class_name when appropriate.
7670 (determine_prefix_aux, class_name): Delete.
7671 (read_namespace): Set die->type.
7672
7673 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7674
7675 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7676 unused macro definition. The definition in target.h (or perhaps
7677 elsewhere) takes precedence.
7678
7679 2004-03-15 Andrew Cagney <cagney@redhat.com>
7680
7681 * ppc-tdep.h: Update copyright.
7682 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7683 function signatures to match "regsets.h".
7684 * ppc-linux-tdep.c: Include "regset.h".
7685 (ELF_GREGSET_SIZE): Delete.
7686 (right_supply_register): New function.
7687 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7688 using right_supply_register.
7689 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7690 functions.
7691 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7692 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7693 (_initialize_ppc_linux_tdep): Do not register
7694 ppc_linux_regset_core_fns.
7695 (ppc_linux_regset_from_core_section): Replace
7696 fetch_core_registers.
7697 (ppc_linux_regset_core_fns): Delete.
7698 * ppc-linux-nat.c: (right_fill_reg): New function.
7699 (supply_gregset): Update call to ppc_linux_supply_gregset.
7700 (fill_gregset): Clear the register set, use right_fill_reg.
7701 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7702 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7703
7704 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7705 unsigned.
7706
7707 2004-03-15 Andrew Cagney <cagney@redhat.com>
7708
7709 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7710 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7711 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7712 and register_gdbarch_data.
7713 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7714 (struct gdbarch_data): Replace "init" by "pre_init" and
7715 "post_init".
7716 * gdbarch.h, gdbarch.c: Re-generate.
7717 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7718 with"obstack", use OBSTACK_ZALLOC.
7719 (dwarf2_frame_ops): Delete.
7720 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7721 (dwarf2_frame_init_reg): Use gdbarch_data.
7722 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
7723 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
7724 (_initialize_svr4_solib): Update.
7725 * user-regs.c (_initialize_user_regs): Update.
7726 * reggroups.c (_initialize_reggroup): Update.
7727 * regcache.c (_initialize_regcache): Update.
7728 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7729 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7730 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7731 * frame-unwind.c (_initialize_frame_unwind): Update.
7732 * frame-base.c (_initialize_frame_base): Update.
7733 * user-regs.c (user_reg_add): Update.
7734 * reggroups.c (reggroup_add): Update.
7735 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7736 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7737 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7738 * frame-base.c (frame_base_table): Update.
7739 * remote.c (_initialize_remote): Update.
7740 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
7741
7742 2004-03-15 Andrew Cagney <cagney@redhat.com>
7743
7744 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7745
7746 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7747
7748 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7749 * frv-linux-tdep.c: New file.
7750 * frv-tdep.c (struct gdbarch_tdep): Add new field
7751 ``sigcontext_reg_addr''.
7752 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7753 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7754 (frv_sigramp_frame_sniffer): New functions.
7755 (frv_sigtramp_frame_unwind): New static global.
7756 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7757 sniffers.
7758 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7759 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7760
7761 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7762
7763 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7764 but not via a call to error(), when unable to read memory.
7765
7766 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7767
7768 * frv-tdep.c (frv_call_dummy_words): Delete.
7769 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7770
7771 2004-03-15 Andrew Cagney <cagney@redhat.com>
7772
7773 * infrun.c (handle_step_into_function, step_over_function): Only
7774 update and use STEP_FRAME_ID when the system is using legacy
7775 frames. Update comments.
7776
7777 2004-03-14 Mark Kettenis <kettenis@gnu.org>
7778
7779 * amd64-linux-tdep.h: Remove file.
7780 * amd64-linux-tdep.c: Don't include "inferior.h" and
7781 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7782 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7783 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7784 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7785 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7786 macros.
7787 (user_to_gdb_regmap): Remove variable.
7788 (amd64_linux_gregset_reg_offset): New variable.
7789 (amd64_core_fns): Remove variable.
7790 (fetch_core_registers): Remove function.
7791 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7792 functions.
7793 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7794 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7795 * Makefile.in (amd64_linux_tdep_h): Remove.
7796 (amd64-linux-nat.o): Update dependencies.
7797 (amd64-linux-tdep.o): Update dependencies.
7798
7799 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7800 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7801 functions.
7802 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7803
7804 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7805 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7806
7807 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
7808
7809 * dwarf2read.c (read_structure_type): Rename from
7810 read_structure_scope. Don't create a symbol or call process_die.
7811 Return immediately if die->type is set. Call read_type_die before
7812 dwarf2_add_member_fn.
7813 (process_structure_scope): New function.
7814 (read_enumeration_type, process_enumeration_scope): New functions,
7815 broken out from read_enumeration. Don't create the enumeration
7816 type if it has already been created.
7817 (read_enumeration): Removed.
7818 (process_die): Call read_structure_type, process_structure_scope,
7819 read_enumeration_type, and process_enumeration_scope. Just call
7820 new_symbol for base and subrange types. Add a comment about other
7821 type dies.
7822 (read_type_die): Call read_enumeration_type.
7823 (add_partial_structure, new_symbol): Update comments.
7824
7825 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7826
7827 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7828
7829 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7830
7831 * tui/tui-win.h (tui_get_cmd_list): Declare.
7832 * tui/tui-win.c (tui_command): New function.
7833 (tui_get_cmd_list): New function.
7834 (_initialize_tui_win): Moved initialization of tui command in
7835 tui_get_cmd_list.
7836
7837 * tui/tui-data.c (init_content_element): Setup new data members.
7838 (init_win_info): Likewise.
7839 (free_content_elements): Free it.
7840 * tui/tui-data.h (struct tui_data_element): Store the register
7841 content to print.
7842 (struct tui_data_info): Keep the current register group.
7843
7844 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7845
7846 * tui/tui-regs.h (tui_show_registers): Update prototype.
7847 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7848 (tui_resize_all): No need to calculate anything for register window.
7849 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7850 (tui_set_register_element, tui_set_general_regs_content): Remove.
7851 (tui_set_special_regs_content): Remove.
7852 (tui_set_general_and_special_regs_content): Remove.
7853 (tui_set_float_regs_content): Remove.
7854 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7855 (tui_set_regs_content): Remove.
7856 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7857 (tui_v_show_registers_command_support): Remove.
7858 (tui_show_registers): Use a reggroup to specify the registers to show.
7859 (tui_show_register_group): New function.
7860 (tui_display_registers_from): Compute the layout of register window
7861 and refresh with new API; be sure to delete old register windows.
7862 (tui_check_register_values): Update to use tui_get_register and
7863 tui_display_data.
7864 (tui_display_register): Just refresh the register window part.
7865 (tui_register_format): Format registers and save in tui_data_element.
7866 (tui_get_register): New to combine tui_reg_value_has_changed and
7867 tui_get_register_raw_value; fix to use the new gdb API.
7868 (tui_show_float_command): Renamed tui_reg_float_command.
7869 (tui_show_general_command): Renamed tui_reg_general_command.
7870 (tui_show_special_command): Renamed tui_reg_system_command.
7871 (_initialize_tui_regs): Remove unused commands.
7872
7873 2004-03-13 Mark Kettenis <kettenis@gnu.org>
7874
7875 * NEWS (New native configurations): Mention OpenBSD/amd64.
7876
7877 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7878 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7879 Remove defines.
7880 * config/i386/nm-fbsd64.h: Likewise.
7881 * config/i386/nm-obsd.h: Likewise.
7882 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7883 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7884
7885 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7886
7887 * frv-tdep.c (set_variant_scratch_registers): New function.
7888 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7889 New constants.
7890
7891 From Richard Sandiford <rsandifo@redhat.com>:
7892 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7893
7894 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7895
7896 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7897 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7898 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7899 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7900 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7901 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7902 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7903 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7904 definitions from frv-tdep.c to frv-tdep.h.
7905
7906 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7907
7908 Add shared library support for FR-V FDPIC ABI:
7909 * Makefile.in (solib-frv.o): Add dependencies.
7910 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7911 New functions.
7912 (frv_push_dummy_call): Add support for FDPIC ABI.
7913 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7914 for FDPIC ABI.
7915 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7916 (frv_fdpic_find_canonical_descriptor): Declare.
7917 * solib-frv.c: New file.
7918 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7919 * config/frv/tm-frv.h (solib.h): Include.
7920
7921 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7922
7923 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7924 (frv-tdep.o): Update dependencies.
7925 * frv-tdep.h: New file.
7926 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7927 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7928 constants.
7929 (struct gdbarch_tdep): Add new member ``frv_abi''.
7930 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7931 functions.
7932 (new_variant): Set ``frv_abi'' field.
7933 (gdb_arch_init): Detect FDPIC executables.
7934
7935 2004-03-12 Mark Kettenis <kettenis@gnu.org>
7936
7937 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7938 wrapper.
7939
7940 2004-03-11 Andrew Cagney <cagney@redhat.com>
7941
7942 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7943
7944 2004-03-11 Kevin Buettner <kevinb@redhat.com>
7945
7946 * solist.h (master_so_list): New function.
7947 * solib.c (master_so_list): Likewise.
7948 * solib-svr4.c (enable_break): Iterate over so_list entries
7949 obtained from master list instead of entries obtained directly
7950 via svr4_current_sos().
7951
7952 2004-03-10 Ben Elliston <bje@gnu.org>
7953
7954 * MAINTAINERS: Update my mail address.
7955
7956 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7957
7958 * remote-m32r-sdi.c: Support hardware watchpoint.
7959
7960 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7961
7962 * user-regs.c: Update copyright years.
7963 (struct user_regs): Rename to gdb_user_regs.
7964 (append_user_reg, builtin_user_regs, user_regs_init)
7965 (user_reg_add, user_reg_map_name_to_regnum)
7966 (usernum_to_user_reg): Update.
7967
7968 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7969
7970 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7971 (skip_children): New functions.
7972 (locate_pdi_sibling): Call skip_children.
7973
7974 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7975
7976 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7977 * gdbtypes.c (check_typedef): Update comments.
7978
7979 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7980
7981 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7982 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7983 pointer. Update comment about comp_unit_head.
7984 (struct abbrev_info): Shorten two int flags.
7985 (dwarf_alloc_abbrev): Take a CU argument.
7986 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7987 each time through the loop. Update cleanup argument.
7988 (psymtab_to_symtab_1): Update cleanup call.
7989 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7990 abbrev_obstack.
7991 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7992 Just call obstack_free and clear the pointer.
7993
7994 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7995
7996 * infrun.c (handle_inferior_event): Remove short-circuit code for
7997 events in a different thread.
7998
7999 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8000
8001 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8002 print the whole transfer.
8003 (initialize_targets): Update description of "set debug target".
8004
8005 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8006
8007 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8008
8009 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8010
8011 * MAINTAINERS (write after approval): Add myself.
8012
8013 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
8014
8015 * sh-tdep.c (sh_print_registers_info): Use for loop.
8016 Don't skip multiple registers when a float register is encountered.
8017
8018 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
8019
8020 Fix PR tdep/1291.
8021 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8022 to official SH documentation.
8023
8024 2004-03-07 Andrew Cagney <cagney@redhat.com>
8025
8026 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8027 unused function.
8028
8029 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
8030
8031 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8032 (arm_get_next_pc): Handle BX and BLX.
8033
8034 2004-03-07 Andrew Cagney <cagney@redhat.com>
8035
8036 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8037 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8038 HPPA_SP_REGNUM.
8039 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8040 (hppa_target_read_fp): Delete.
8041 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8042 register_virtual_size, max_register_raw_size,
8043 max_register_virtual_size, register_byte, register_size,
8044 target_read_fp, fp_regnum, and register_bytes. Set register_type
8045 instead of register_virtual_type.
8046 (hppa32_register_type, hppa64_register_type): Replace
8047 hppa32_register_virtual_type and hppa64_register_virtual_type.
8048 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8049 (HPPA_FP_REGNUM): Define.
8050
8051 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8052
8053 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8054 (pa_do_registers_info): Delete.
8055 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8056 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
8057 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
8058
8059 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8060 GDB_TARGET_IS_HPPA code.
8061 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8062 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
8063 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8064 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8065 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8066 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8067 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
8068 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8069 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8070 (hppa_frameless_function_invocation, hppa64_store_return_value)
8071 (hppa_store_struct_return, hppa64_extract_return_value)
8072 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8073 (hppa32_call_dummy_length, hppa64_call_dummy_length)
8074 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8075 (find_proc_framesize, deposit_21, restore_pc_queue)
8076 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
8077 (rp_saved, pc_in_linker_stub): Delete.
8078
8079 Unconditionally enable 64-bit frame and ABI code.
8080 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
8081 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
8082 push_dummy_frame, fix_call_dummy, push_arguments,
8083 call_dummy_location, extract_return_value, use_struct_convention,
8084 store_return_value, store_struct_return, saved_pc_after_call,
8085 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
8086 frame_chain, frame_chain_valid, frameless_function_invocation,
8087 frame_saved_pc, and pop_frame.
8088
8089 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
8090 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
8091 (hppa_gdbarch_init): Do not set PC_REGNUM.
8092
8093 2004-03-06 Mark Kettenis <kettenis@gnu.org>
8094
8095 * config/alpha/tm-fbsd.h: Remove file.
8096 * config/alpha/fbsd.mt: Tweak comment.
8097 (TM_FILE): Set to tm-alpha.h.
8098
8099 2004-03-05 Andrew Cagney <cagney@redhat.com>
8100
8101 * infrun.c (step_over_function): When non-legacy code, and no
8102 step_frame_id, use the unwinder to get the caller's frame ID.
8103
8104 2004-03-05 Mark Kettenis <kettenis@gnu.org>
8105
8106 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
8107 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
8108 bfd_arch_unknown. Adjust comment.
8109
8110 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
8111 * i386obsd-tdep.c: Correct spelling in comment.
8112 * i386nbsd-tdep.c: Correct spelling in comment.
8113 * sparc-tdep.c: Correct spelling in comments.
8114
8115 2004-03-05 David Carlton <carlton@kealia.com>
8116
8117 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
8118 bug.
8119
8120 2004-03-05 Mark Kettenis <kettenis@gnu.org>
8121
8122 * sparc-tdep.c: Fix typo in comment.
8123
8124 2004-03-04 J. Brobecker <brobecker@gnat.com>
8125
8126 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
8127
8128 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
8129
8130 * dwarf2read.c: Add comment describing memory lifetimes.
8131 (struct dwarf2_pinfo): Update comment.
8132 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
8133 (read_enumeration, new_symbol): Don't use obsavestring.
8134
8135 2004-03-04 Mark Kettenis <kettenis@gnu.org>
8136
8137 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
8138 instead of amd64_fill_fxsave.
8139 * amd64bsd-nat.c (store_inferior_registers): Likewise.
8140 * amd64fbsd-nat.c (fill_fpregset): Likewise.
8141
8142 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
8143 Reorganize code a bit.
8144
8145 2004-03-04 Orjan Friberg <orjanf@axis.com>
8146
8147 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8148 when the frame pointer is pushed. Don't set the frame pointer's
8149 address on the stack unless it's actually located there.
8150 Set the SRP's address on the stack correctly when the PC is still in
8151 the prologue.
8152 (cris_return_value): New function.
8153 (cris_gdbarch_init): Clear deprecated store_return_value,
8154 extract_return_value.
8155
8156 2004-03-02 Jim Blandy <jimb@redhat.com>
8157
8158 * stabsread.c (reg_value_complaint): The maximum register number
8159 is one less than the number of registers.
8160
8161 2004-03-02 Andrew Cagney <cagney@redhat.com>
8162
8163 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8164 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8165 trailing comma and redundant assignment of I386_ST0_REGNUM.
8166 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8167 32-bit segment registers.
8168
8169 2004-03-01 Andrew Cagney <cagney@redhat.com>
8170
8171 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8172 use frame_relative_level and get_next_frame.
8173
8174 2004-02-29 Andrew Cagney <cagney@redhat.com>
8175
8176 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8177 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8178 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8179 Delete macro.
8180
8181 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8182
8183 * inflow.c (terminal_inferior): Don't give up the terminal if we
8184 previously couldn't get the inferior's terminal state.
8185
8186 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8187
8188 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8189 PC_REGNUM.
8190
8191 2004-02-28 Andrew Cagney <cagney@redhat.com>
8192
8193 * NEWS: Refer to GDB 6.1.
8194 * README: Refer to GDB 6.1.
8195 * PROBLEMS: Refer to GDB 6.1.
8196
8197 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
8198
8199 * thread-db.c (disable_thread_signals): Remove unused function.
8200
8201 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8202
8203 * amd64-nat.c: Include "gdb_string.h".
8204 (amd64_collect_native_gregset): Zero-extend the 32-bit
8205 general-purpose registers and %eip.
8206
8207 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8208 * amd64-tdep.c (amd64_collect_fxsave): New function.
8209 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
8210
8211 * i387-tdep.h: Update copyright year.
8212 (i387_collect_fxsave): New prototype.
8213 * i387-tdep.c: Update copyright year.
8214 (i387_collect_fxsave): New function containing most of the code
8215 from i387_fill_fxsave.
8216 (i387_fill_fxsave): Call i387_collect_fxsave.
8217
8218 2004-02-28 Andrew Cagney <cagney@redhat.com>
8219
8220 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
8221 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
8222
8223 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8224
8225 * amd64-tdep.c (amd64_frame_cache): Fix comment.
8226
8227 2004-02-28 Andrew Cagney <cagney@redhat.com>
8228
8229 * utils.c: Use "", instead of <>, to include readline.
8230 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
8231 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
8232 * source.c, solib.c, exec.c, event-top.c: Ditto.
8233 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
8234 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
8235 * Makefile.in: Update all dependencies.
8236 (readline_tilde_h, readline_history_h): Define.
8237 (readline_headers): Delete.
8238
8239 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8240
8241 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
8242 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
8243 "config/i386/tm-lx64.h".
8244
8245 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
8246 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
8247 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
8248
8249 2004-02-28 Andrew Cagney <cagney@redhat.com>
8250
8251 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
8252
8253 * breakpoint.c (_initialize_breakpoint): Use
8254 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
8255 Add help to show command.
8256
8257 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8258
8259 * i386-nat.c: Reformat to be closer to coding standards.
8260 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
8261 `retval'. Make variables `align' and `size' local to while-loop.
8262 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
8263 (_initialize_i386_nat): New prototype.
8264
8265 * tui/tui.c: Include <readline/readline.h> instead of
8266 "readline/readline.h". Include it after <term.h> and
8267 "gdb_curses.h".
8268
8269 2004-02-27 Andrew Cagney <cagney@redhat.com>
8270
8271 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
8272 the new frame unwind code.
8273 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
8274 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
8275 PCOQ_HEAD_REGNUM.
8276
8277 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
8278 "return_value" and "push_dummy_call".
8279 (hppa32_use_struct_convention): Delete unused function.
8280 (hppa32_store_return_value): Delete unused function.
8281 (hppa32_extract_return_value): Delete unused function.
8282 (hppa32_stack_align): Delete function.
8283
8284 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
8285
8286 * coffread.c (enter_linenos): Don't let rawptr reference memory
8287 outside linetab[]'s limits.
8288
8289 2004-02-27 Andrew Cagney <cagney@redhat.com>
8290
8291 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
8292 inferior stack space - the stack needs to grow upwards.
8293 (hppa32_frame_align): New function.
8294 (hppa64_frame_align): Replace hppa_frame_align.
8295 (hppa_gdbarch_init): Update.
8296
8297 2004-02-26 Orjan Friberg <orjanf@axis.com>
8298
8299 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
8300 (dwarf2-frame.h): Include.
8301 (enum cris_regnums): New enum CRIS_FP_REGNUM.
8302 Remove static variables related to ABI setting.
8303 (struct gdbarch_tdep): Remove cris_abi member.
8304 (struct frame_extra_info): Remove.
8305 (cris_unwind_cache, stack_item): New structs.
8306 (cris_frame_unwind, cris_frame_base): New variables.
8307 (push_stack_item, pop_stack_item)
8308 (cris_frame_unwind_cache, cris_frame_this_id)
8309 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
8310 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
8311 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
8312 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
8313 (cris_reg_struct_has_addr): New functions.
8314 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8315 (cris_frame_saved_pc, cris_saved_pc_after_call,
8316 (cris_store_struct_return, cris_frameless_function_invocation)
8317 (cris_pop_frame, cris_skip_prologue_main)
8318 (cris_abi_original_store_return_value)
8319 (cris_abi_v2_store_return_value)
8320 (cris_abi_original_extract_return_value)
8321 (cris_abi_v2_extract_return_value)
8322 (cris_abi_original_reg_struct_has_addr)
8323 (cris_abi_v2_reg_struct_has_addr)
8324 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
8325 (cris_push_return_address, cris_abi_update): Remove.
8326 (_initialize_cris_tdep): Remove ABI command.
8327 (cris_dump_tdep): Ditto.
8328 (cris_gdbarch_init): Remove ABI command.
8329 Set store_return_value, extract_return_value, push_dummy_code,
8330 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
8331 frame_unwind_append_sniffer, frame_base_set_default.
8332 Clear deprecated init_frame_pc, push_arguments, store_return_value,
8333 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
8334 sizeof_call_dummy_words, get_saved_register, push_return_address,
8335 pop_frame, store_struct_return, frame_init_saved_regs,
8336 init_extra_frame_info, frameless_function_invocation, frame_chain,
8337 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
8338 dummy_write_sp.
8339
8340 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8341
8342 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
8343 * valprint.c (print_hex_chars): Change from static to external.
8344 (print_char_chars): New function.
8345 * printcmd.c (print_scalar_formatted): For integer and enum types
8346 that are longer than LONGEST, perform processing via appropriate
8347 print_*_chars routines.
8348
8349 2004-02-26 Andrew Cagney <cagney@redhat.com>
8350
8351 * Makefile.in: Update dependencies.
8352 Changes from Ulrich Weigand,
8353 * s390-tdep.c: Include "dwarf2-frame.h".
8354 (s390_dwarf2_frame_init_reg): New function.
8355 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8356 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8357
8358 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8359
8360 * breakpoint.c (pending_break_support): New setting variable.
8361 (break_command_1): Account for pending_break_support setting
8362 when creating pending breakpoints.
8363 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8364 (_initialize_breakpoint): Add "set breakpoint pending" and
8365 "show breakpoint pending" commands.
8366
8367 2004-02-26 Andrew Cagney <cagney@redhat.com>
8368
8369 Fix PR i18n/1570.
8370 * charset.c (backslashable, backslashed, represented): Remove 'e'
8371 from list of escaped characters, not part of ISO-C.
8372
8373 2004-02-25 J. Brobecker <brobecker@gnat.com>
8374
8375 From Peter Schauer <schauer@pdf.de>:
8376 * tui/tui.c: Move system header includes after local includes.
8377 Fixes a build failure on solaris systems.
8378
8379 2004-02-25 J. Brobecker <brobecker@gnat.com>
8380
8381 * configure.in: Refine the previous change.
8382 * configure: Regenerate.
8383
8384 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8385
8386 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8387 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8388 "amd64-tdep.h" instead of "x86-64-tdep.h".
8389 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8390 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8391 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8392 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8393 and "x86-64-tdep.c".
8394 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8395 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8396 and "x86-64-tdep.c".
8397 * amd64bsd-nat.c: Update copyright year.
8398 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8399 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8400 "x86-64-tdep.h".
8401 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8402 "x86-64-tdep.h".
8403 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8404 "x86-64-tdep.h".
8405 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8406 "x86-64-tdep.h".
8407 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8408 "x86-64-tdep.h".
8409 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8410 "x86-64-tdep.h".
8411 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
8412 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8413 * Makefile.in (amd64_linux_tdep_h): Renamed from
8414 x86_64_linux_tdep_h.
8415 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8416 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8417 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8418 (amd64obsd-tdep.o): Update dependencies.
8419 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8420 dependencies.
8421 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8422 dependencies.
8423 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8424 amd64-linux-nat.c amd64-linux-tdep.c.
8425 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8426 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8427 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8428 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8429 amd64-tdep.o and amd64-linux-tdep.o.
8430 (TM_FILE): Set to tm-linux64.h.
8431 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8432 (NAT_FILE): Set to nm-linux64.h.
8433 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8434 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8435 amd64-tdep.o.
8436 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8437 amd64-tdep.o.
8438 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8439 amd64-tdep.o.
8440
8441 2004-02-25 Roland McGrath <roland@redhat.com>
8442
8443 * remote.c (remote_protocol_qPart_auxv): New variable.
8444 (init_all_packet_configs): Initialize it.
8445 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8446 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8447 (show_remote_cmd): Call it.
8448 (_initialize_remote): Initialize commands.
8449 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8450 service TARGET_OBJECT_AUXV requests.
8451
8452 2004-02-25 J. Brobecker <brobecker@gnat.com>
8453
8454 * configure.in: Make sure that the wborder function is available.
8455 Otherwise, search for it in the cur_colr library.
8456 * configure: Regenerate.
8457
8458 2004-02-25 Andrew Cagney <cagney@redhat.com>
8459
8460 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8461
8462 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8463
8464 * config/i386/tm-x86-64linux.h: Tweak comments.
8465
8466 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
8467
8468 * MAINTAINERS: Add self to write-after-approval list.
8469
8470 2004-02-25 Andrew Cagney <cagney@redhat.com>
8471
8472 PR cli/1566. Problem found, and fix suggested by David Allan.
8473 * cli/cli-script.c (execute_control_command): Unconditionally
8474 install a cleanup. Default "ret" to "invalid_control". Use
8475 "break" instead of "return" to escape from the switch.
8476
8477 2004-02-24 J. Brobecker <brobecker@gnat.com>
8478
8479 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8480 with the lines macro defined in term.h on AiX.
8481 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8482 a collision with the label_width macro defined in term.h on AiX.
8483
8484 2004-02-23 David Mosberger <davidm@hpl.hp.com>
8485
8486 Committed by Kevin Buettner <kevinb@redhat.com>.
8487
8488 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8489 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8490 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8491 instead of ia64_write_pc().
8492 * ia64-linux-tdep.c (regcache.h): Include.
8493 (ia64_linux_write_pc): New function.
8494
8495 2004-02-23 Roland McGrath <roland@redhat.com>
8496
8497 * auxv.c (info_auxv_command): Fix typos in error messages.
8498
8499 2004-02-23 Mark Kettenis <kettenis@gnu.org>
8500
8501 * x86-64-tdep.h: Tweak comment.
8502 (enum amd64_regnum): New.
8503 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8504 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8505 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8506 (X86_64_XMM1_REGNUM): Removed.
8507 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8508 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8509 prototypes for renamed functions.
8510 * x86-64-tdep.c: Fix typo.
8511 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8512 register numbers.
8513 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8514 Use constants from `enum amd64_regnum' for register numbers.
8515 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8516 (amd64_analyze_prologue, amd64_frame_cache,
8517 amd64_sigtramp_frame_cache): Use constants from `enum
8518 amd64_regnum' for register numbers.
8519 (amd64_supply_fpregset): Adjust for renamed functions.
8520 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8521 `enum amd64_regnum' for register numbers.
8522 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8523 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8524 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8525 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8526 (amd64_linux_fill_gregset): Adjust for renamed macros.
8527 (fetch_core_registers): Adjust for renamed functions.
8528 (amd64_linux_init_abi): Adjust for renamed functions.
8529 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8530 renamed functions.
8531 * amd64-nat.c: Adjust for renamed macros.
8532 * amd64bsd-nat.c (fetch_inferior_registers)
8533 (store_inferior_registers): Use constants from `enum amd64_regnum'
8534 for register numbers. Adjust for renamed variables.
8535 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8536 renamed variables.
8537 (_initialize_amd64fbsd_nat): Use constants from `enum
8538 amd64_regnum' for register numbers.
8539 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8540 `enum amd64_regnum' for register numbers.
8541 (amd64fbsd_init_abi): Adjust for renamed functions.
8542 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8543 `enum amd64_regnum' for register numbers.
8544 (amd64nbsd_init_abi): Adjust for renamed functions.
8545 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8546 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8547 `enum amd64_regnum' for register numbers.
8548 (amd64obsd_init_abi): Adjust for renamed functions.
8549 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8550
8551 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8552
8553 * breakpoint.c (print_one_breakpoint): Do not output spaces
8554 after printing <PENDING> for a pending breakpoint.
8555
8556 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8557
8558 * printcmd.c (print_scalar_formatted): Initialize val_long
8559 to remove compiler warning message.
8560
8561 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8562
8563 * defs.h (nquery, yquery): New prototypes.
8564 * breakpoint.c (break_command_1): Use new nquery interface.
8565 * utils.c (defaulted_query, nquery, yquery): New functions.
8566
8567 2004-02-23 Andrew Cagney <cagney@redhat.com>
8568
8569 * hppa-tdep.c (hppa_frame_align): New function.
8570 (hppa32_push_dummy_call): New function.
8571 (hppa64_push_dummy_call): New function.
8572 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8573 disabled.
8574
8575 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8576 FIX_CALL_DUMMY when push_dummy_call is available.
8577 (call_function_by_hand, push_dummy_code): Ditto.
8578
8579 2004-02-22 Andrew Cagney <cagney@redhat.com>
8580
8581 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8582 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8583 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8584 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8585 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8586 call_dummy_location to ON_STACK.
8587
8588 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8589
8590 * x86-64-linux-tdep.c: Tweak comment.
8591 (amd64_linux_supply_gregset): Renamed from
8592 x86_64_linux_supply_gresget.
8593 (amd64_linux_fill_gregset): Renamed from
8594 x86_64_linux_fill_gregset.
8595 (fetch_core_registers): Adjust for renamed functions.
8596 (amd64_core_fns): Renamed from x86_64_core_fns.
8597 (amd64_linux_sigtramp_start): Renamed from
8598 x86_64_linux_sigtramp_start.
8599 (amd64_linux_pc_in_sigtramp): Renamed from
8600 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8601 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8602 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8603 (amd64_linux_sigcontext_addr): Renamed from
8604 x86_64_linux_sigcontext_addr.
8605 (amd64_linux_sc_reg_offset): Renamed from
8606 x86_64_linux_sc_reg_offset.
8607 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8608 Adjust for renamed functions and variables.
8609 (_initialize_amd64_linux_tdep): Renamed from
8610 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8611 variables.
8612 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8613 Adjust for renamed functions.
8614
8615 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8616 from x86_64_linux_gregset64_reg_offset.
8617 (amd64_linux_gregset32_reg_offset): Rename from
8618 x86_64_linux_gregset64_reg_offset.
8619 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8620 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8621 (amd64_linux_dr_set_control): Renamed from
8622 x86_64_linux_dr_set_control. Adjust for renamed functions.
8623 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8624 Adjust for renamed functions.
8625 (amd64_linux_dr_reset_addr): Renamed from
8626 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8627 (amd64_linux_dr_get_status): Renamed from
8628 x86_64_linux_dr_get_status. Adjust for renamed functions.
8629 (_initialize_amd64_linux_nat): Renamed from
8630 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8631 functions.
8632 * config/i386/nm-x86-64linux.h: Update copyright year.
8633 Adjust for renamed functions.
8634
8635 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8636 amd64fbsd_sigtramp_start.
8637 (amd64fbsd_sigtramp_end_addr): Renamed from
8638 amd64fbsd_sigtramp_end.
8639 (amd64fbsd_init_abi): Adjust for renamed variables.
8640 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8641 variables.
8642 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8643 amd64fbsd_sigtramp_start.
8644 (amd64fbsd_sigtramp_end_addr): Renamed from
8645 amd64fbsd_sigtramp_end.
8646
8647 2004-02-22 Andrew Cagney <cagney@redhat.com>
8648
8649 * hppa-tdep.c (hppa32_return_value): New function.
8650 (hppa64_return_value): New function.
8651 (hppa_gdbarch_init): Set return_value; keep disabled.
8652
8653 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8654 struct-return and inferior function call methods.
8655
8656 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8657 "frame-base.h".
8658 (struct hppa_frame_cache): Define.
8659 (hppa_frame_cache, hppa_frame_this_id): New functions.
8660 (hppa_frame_prev_register): New function.
8661 (hppa_frame_unwind, hppa_frame_base): New variables.
8662 (hppa_frame_unwind_sniffer): New function.
8663 (hppa_frame_base_address, hppa_unwind_pc): New function.
8664 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8665 sniffer, and frame base sniffer; keep disabled.
8666 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8667 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8668
8669 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8670 to predicates for "seriously old code".
8671
8672 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8673 runtime if(0).
8674
8675 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8676 unsigned.
8677 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
8678
8679 * config/pa/tm-hppa.h: Update copyright.
8680 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8681 (deprecated_init_frame_pc_default): Delete declaration.
8682 (hppa_frame_init_saved_regs): Delete declaration.
8683 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8684 * hppa-tdep.c: Include "arch-utils.h".
8685 (hppa_gdbarch_init): Set deprecated init_frame_pc
8686 and deprecated frame_init_saved_regs.
8687 (hppa_frame_init_saved_regs): Make static.
8688
8689 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8690
8691 Remove old 386BSD support.
8692 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
8693 * configure.host: Remove i[34567]86-*-bsd*.
8694 * configure.tgt: Remove i[34567]86-*-bsd*.
8695 * i386b-nat.c: Removed.
8696 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
8697 (i386b-nat.o): Remove dependencies.
8698
8699 * config/i386/i386bsd.mh: Removed.
8700 * config/i386/i386bsd.mt: Removed.
8701 * config/i386/nm-i386bsd.h: Removed.
8702 * config/i386/tm-i386bsd.h: Removed.
8703 * config/i386/xm-i386bsd.h: Removed.
8704
8705 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8706
8707 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8708 (amd64fbsd_init_abi): Set link map offsets.
8709 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8710 (amd64nbsd_init_abi): Set link map offsets.
8711 * amd64obsd-tdep.c: Include "solib-svr4.h".
8712 (amd64obsd_init_abi): Set link map offsets.
8713 * i386fbsd-tdep.c: Include "solib-svr4.h".
8714 (i386fbsd_init_abi): Set link map offsets.
8715 * i386nbsd-tdep.c: Include "solib-svr4.h".
8716 (i386nbsdelf_init_abi): Set link map offsets.
8717 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8718 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8719 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8720 solib-legacy.o and core-aout.o. Reformat.
8721 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8722 solib-svr4.o, solib-legacy.o. Reformat.
8723 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8724 * config/i386/nbsdelf.mh: Reformat.
8725 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8726 solib-svr4.o, solib-legacy.o and corelow.o.
8727 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8728 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8729 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8730 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8731 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8732 (TM_FILE): Set to tm-fbsd.h.
8733 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8734 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8735 solib-svr4.o.
8736 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8737 solib-svr4.o.
8738 (TM_FILE): Set to nm-nbsd.h.
8739 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8740 Simplify shared library support. Don't include "elf/common.h".
8741 (SVR4_SHARED_LIBS): Don't define.
8742 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8743 "solib.h".
8744 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8745 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8746 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8747 Don't include "i386/tm-i386.h". Include "solib.h".
8748 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8749 Don't include "i386/tm-i386.h".
8750 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8751 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8752 Include "i386/xm-i386.h".
8753 (HOST_LONG_DOUBLE_FORMAT): Remove.
8754
8755 Fix OpenBSD/i386 sigtramp recognition.
8756 * i386-tdep.h: Update copyright year.
8757 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8758 (i386bsd_sigtramp_end): New prototypes.
8759 (i386fbsd_sigtramp_start_addr): Renamed from
8760 i386fbsd_sigtramp_start.
8761 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8762 (i386obsd_sigtramp_start_addr): Renamed from
8763 i386obsd_sigtramp_start.
8764 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8765 * i386bsd-tdep.c: Update copyright year.
8766 (i386bsd_pc_in_sigtramp): Make public.
8767 * i386fbsd-nat.c: Update copyright year.
8768 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8769 * i386fbsd-tdep.c: Update copyright year.
8770 (i386fbsd_sigtramp_start_addr): Renamed from
8771 i386fbsd_sigtramp_start.
8772 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8773 (i386fbsdaout_init_abi): Adjust for renamed variables.
8774 * i386obsd-nat.c: Update copyright year.
8775 (_initialize_i386obsd_nat): Adjust for renamed variables.
8776 * i386obsd-tdep.c: Include "target.h".
8777 (i386obsd_page_size): New variable.
8778 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8779 (i386obsd_sigtramp_end): New functions.
8780 (i386obsd_sigtramp_start_addr): Renamed from
8781 i386obsd_sigtramp_start.
8782 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8783 (i386obsd_init_abi): Adjust for renamed variables. Set
8784 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8785 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8786
8787 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8788 trampoline change in OpenBSD kernel.
8789
8790 * amd64-nat.c: Update copyright year.
8791 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8792 architecture from REGCACHE.
8793
8794 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8795 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8796
8797 2004-02-21 Mark Kettenis <kettenis@gnu.org>
8798
8799 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8800 i[34567]86-*-openbsd3.[0-3].
8801 * config/i386/obsdaout.mh: New file.
8802
8803 * config/i386/obsd.mh (MH_FLAGS): Remove.
8804
8805 Fix PR build/1549.
8806 * i386obsd-tdep.c: Update copyright years. Include
8807 "solib-svr4.h".
8808 (i386obsd_init_abi): Don't set regset_from_core_section here.
8809 (i386obsd_aout_init_abi): New function. Set
8810 regset_from_core_section here.
8811 (i386obsd_elf_init_abi): New function.
8812 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8813 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8814 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8815 (TM_FILE): Set to tm-nbsd.h.
8816
8817 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8818 solib-sunos.o.
8819
8820 * solib-svr4.h: Update copyright year.
8821 (svr4_ilp32_fetch_link_map_offsets)
8822 (svr4_lp64_fetch_link_map_offsets): New prototype.
8823 * solib-svr4.c: Update copyright year.
8824 (svr4_ilp32_fetch_link_map_offsets)
8825 (svr4_lp64_fetch_link_map_offsets): New function.
8826
8827 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
8828
8829 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8830 to the partial symbol table.
8831
8832 2004-02-20 J. brobecker <brobecker@gnat.com>
8833
8834 * PROBLEMS: Add description of problem documented under gdb/1560.
8835
8836 2004-02-20 Mark Kettenis <kettenis@gnu.org>
8837
8838 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8839 comments.
8840 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8841 functions.
8842 (amd64obsd_init_abi): Reorder initializations. Use
8843 amd64obsd_r_reg_offset to initialize the general-purpose register
8844 set details. Set regset_from_core_section.
8845 (_initialize_amd64obsd_tdep): Rename from
8846 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8847 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8848 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8849
8850 * NEWS (New native configurations): Mention OpenBSD/alpha.
8851 * configure.tgt: Add alpha*-*-openbsd*.
8852 * configure.host: Add alpha*-*-openbsd*.
8853 * alphanbsd-tdep.c: Update copyright year.
8854 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8855
8856 2004-02-20 Andrew Cagney <cagney@redhat.com>
8857
8858 Fix PR tdep/1372.
8859 * configure.tgt: Delete target "none-*-*".
8860 * configure.host: Delete host "none-*-*".
8861 * config/none/none.mh: Delete file.
8862 * config/none/none.mt: Delete file.
8863 * config/none/xm-none.h: Delete file.
8864 * config/none/tm-none.h: Delete file.
8865 * config/none/nm-none.h: Delete file.
8866
8867 2004-02-19 Fred Fish <fnf@redhat.com>
8868
8869 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8870 cache->uses_fp prior to setting it.
8871
8872 2004-02-19 Fred Fish <fnf@redhat.com>
8873
8874 Fix for PR breakpoint/1558.
8875 * sh-tdep.c (IS_JSR): New macro.
8876 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8877
8878 2004-02-19 Jim Blandy <jimb@redhat.com>
8879
8880 * findvar.c (value_from_register): Doc fix.
8881
8882 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8883
8884 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8885 type being greater than sizeof of host's LONGEST. Always use
8886 unpack_long() unless format 'f' chosen.
8887
8888 2004-02-19 Joel Brobecker <brobecker@gnat.com>
8889
8890 Committed by Elena Zannoni <ezannoni@redhat.com>
8891
8892 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8893 contains a symbol wich is the best, non-exact match for the given
8894 pc. Update comments.
8895
8896 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
8897
8898 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8899 macro, which was part of the now removed Mach 3 port.
8900 * utils.c (request_quit): Ditto.
8901
8902 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8903
8904 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8905 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8906
8907 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8908
8909 Committed by Mark Kettenis <kettenis@gnu.org>.
8910
8911 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8912 Define.
8913
8914 2004-02-18 Andrew Cagney <cagney@redhat.com>
8915
8916 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8917 CONFIG_INSTALL and CONFIG_UNINSTALL.
8918 * configure: Re-generate.
8919 * interps.h (INTERP_TUI): Define.
8920 * Makefile.in: Update dependencies.
8921 (TUI): New macro.
8922 (tui-main.o): Specify dependencies.
8923 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8924 * tui/tui-main.c: New file.
8925
8926 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8927
8928 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8929 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8930 dependencies.
8931 * configure.host: Add x86_64-*-openbsd*.
8932 * configure.tgt: Add x86_64-*-openbsd*.
8933 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8934
8935 * tui/tui.c: Don't include <malloc.h>.
8936
8937 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8938 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8939 amd64nbsd-tdep.c.
8940
8941 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8942 static. Remove extraneous whitespace.
8943 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8944 static.
8945
8946 2004-02-17 Jim Blandy <jimb@redhat.com>
8947
8948 * findvar.c (value_from_register): Doc fix.
8949
8950 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8951
8952 Committed by Jim Blandy <jimb@redhat.com>.
8953
8954 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
8955 CORE_ADDR as type for selectors. Correct types for GNU run time
8956 message lookup function to use double indirection.
8957 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8958 * objc-lang.h (lookup_child_selector): Adapt prototype.
8959
8960 * s390-nat.c (SUBOFF): New macro.
8961 (supply_gregset, fill_gregset): Use it to handle debugging
8962 of 32-bit exectuables running under a 64-bit kernel.
8963 * s390-tdep.c: Include "solib-svr4.h".
8964 (s390_svr4_fetch_link_map_offset): New function.
8965 (s390x_svr_fetch_link_map_offset): Likewise.
8966 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8967 * Makefile.in (s390-tdep.o): Update dependencies.
8968
8969 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8970 "frame-unwind.h".
8971 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8972 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8973 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8974 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8975 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8976 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8977 S390_SIGNAL_FRAMESIZE,
8978 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8979 (struct frame_extra_info): Remove.
8980 (s390_memset_extra_info): Remove.
8981 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8982 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8983 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
8984 (is_rse): Renamed to ...
8985 (is_rsy): ... this. Support long displacements.
8986 (is_rxe): Renamed to ...
8987 (is_rxy): ... this. Support long displacements.
8988 (compute_x_addr): Support long displacements.
8989 (struct s390_prologue_data): New data type.
8990 (s390_on_stack): Change API to use struct s390_prologue_data.
8991 (s390_store): Reimplement.
8992 (s390_load): New function.
8993 (s390_get_signal_frame_info): Remove.
8994 (s390_get_frame_info): Remove, replace by ...
8995 (s390_analyze_prolog): ... this new function.
8996 (s390_check_function_end): Remove.
8997 (s390_function_start): Remove.
8998 (s390_frameless_function_invokation): Remove.
8999 (s390_is_sigreturn): Remove.
9000 (s390_init_frame_pc_first): Remove.
9001 (s390_init_frame_extra_info): Remove.
9002 (s390_frame_init_saved_regs): Remove.
9003 (s390_frame_saved_pc_nofix): Remove.
9004 (s390_frame_saved_pc): Remove.
9005 (s390_frame_chain): Remove.
9006 (s390_fp_regnum, s390_read_fp): Remove.
9007 (s390_pop_frame_regular, s390_pop_frame): Remove.
9008 (s390_saved_pc_after_call): Remove.
9009 (s390_skip_prologue): Reimplement.
9010 (s390_in_function_epilogue_p): Support long displacements.
9011 (struct s390_unwind_cache): New data structure.
9012 (s390_frame_unwind_cache): New function.
9013 (s390_prologue_frame_unwind_cache): Likewise.
9014 (s390_backchain_frame_unwind_cache): Likewise.
9015 (s390_frame_this_id, s390_frame_prev_register): Likewise.
9016 (s390_frame_unwind): Define.
9017 (s390_frame_sniffer): New function.
9018 (struct s390_pltstub_unwind_cache): New data structure.
9019 (s390_pltstub_frame_unwind_cache): New function.
9020 (s390_pltstub_frame_this_id): Likewise.
9021 (s390_pltstub_frame_prev_register): Likewise.
9022 (s390_pltstub_frame_unwind): Define.
9023 (s390_pltstub_frame_sniffer): New function.
9024 (struct s390_sigtramp_unwind_cache): New data structure.
9025 (s390_sigtramp_frame_unwind_cache): New function.
9026 (s390_sigtramp_frame_this_id): Likewise.
9027 (s390_sigtramp_frame_prev_register): Likewise.
9028 (s390_sigtramp_frame_unwind): Define.
9029 (s390_sigtramp_frame_sniffer): New function.
9030 (s390_frame_base_address, s390_local_base_address): New functions.
9031 (s390_frame_base): Define.
9032 (s390_unwind_pc, s390_unwind_sp): New function.
9033 (s390_push_dummy_call): Use new frame base location.
9034 (s390_unwind_dummy_id): Likewise.
9035 (s390_gdbarch_init): Remove calls to:
9036 set_gdbarch_frameless_function_invocation,
9037 set_gdbarch_deprecated_init_frame_pc,
9038 set_gdbarch_deprecated_frame_chain,
9039 set_gdbarch_deprecated_frame_init_saved_regs,
9040 set_gdbarch_deprecated_pop_frame,
9041 set_gdbarch_deprecated_init_extra_frame_info,
9042 set_gdbarch_deprecated_init_frame_pc_first,
9043 set_gdbarch_deprecated_target_read_fp,
9044 set_gdbarch_deprecated_frame_saved_pc,
9045 set_gdbarch_deprecated_saved_pc_after_call,
9046 set_gdbarch_deprecated_fp_regnum.
9047 Add calls to:
9048 set_gdbarch_in_solib_call_trampoline,
9049 frame_unwind_append_sniffer,
9050 frame_base_set_default,
9051 set_gdbarch_unwind_pc,
9052 set_gdbarch_unwind_sp.
9053 * Makefile.in (s390-tdep.o): Update dependencies.
9054
9055 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9056 (S390_STACK_FRAME_OVERHEAD): Remove.
9057 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9058 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9059 (s390_promote_integer_argument): Remove.
9060 (s390_cannot_extract_struct_value_address): Remove.
9061 (s390_use_struct_convention, s390_store_struct_return): Remove.
9062 (s390_extract_return_value, s390_store_return_value): Remove.
9063 (s390_return_value_convention, s390_return_value): New functions.
9064 (is_float_singleton): Handle typedefs.
9065 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
9066 Remove, replace by ...
9067 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9068 s390_function_arg_integer): ... these new functions.
9069 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9070 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9071 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9072 Fill in tdep->abi.
9073 Remove calls to:
9074 set_gdbarch_deprecated_store_struct_return,
9075 set_gdbarch_deprecated_extract_return_value,
9076 set_gdbarch_deprecated_store_return_value,
9077 set_gdbarch_use_struct_convention,
9078 set_gdbarch_extract_struct_value_address,
9079 set_gdbarch_deprecated_pc_in_call_dummy,
9080 set_gdbarch_deprecated_push_arguments,
9081 set_gdbarch_deprecated_save_dummy_frame_tos,
9082 set_gdbarch_deprecated_push_return_address,
9083 set_gdbarch_deprecated_sizeof_call_dummy_words,
9084 set_gdbarch_deprecated_call_dummy_words,
9085 set_gdbarch_deprecated_dummy_write_sp.
9086 Add calls to:
9087 set_gdbarch_push_dummy_call,
9088 set_gdbarch_unwind_dummy_id,
9089 set_gdbarch_return_value.
9090
9091 * config/s390/nm-linux.h: Update comments.
9092 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
9093 (STOPPED_BY_WATCHPOINT): Redefine.
9094 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
9095 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
9096 (s390_stopped_by_watchpoint): Likewise.
9097 (watch_area_cnt): Remove.
9098 * s390-nat.c: Update comments.
9099 (watch_area): Remove typedef.
9100 Global replace watch_area by struct watch_area.
9101 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
9102 (s390_stopped_by_watchpoint): Remove pid argument,
9103 use s390_inferior_tid. Add short-cut for the no watchpoint case.
9104 (s390_fix_watch_points): Remove pid argument,
9105 use s390_inferior_tid. Recompute area spanned by watchpoints.
9106 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
9107 argument. Reimplement.
9108
9109 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
9110 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
9111 (FETCH_INFERIOR_REGISTERS): Define.
9112 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
9113 core-regset.o.
9114 * config/s390/s390x.mt: Remove.
9115 * config/s390/tm-s390.h: Remove.
9116 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
9117 (TARGET_ELF64): Remove.
9118 (SKIP_TRAMPOLINE_CODE): Do not undefine.
9119 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
9120 s390*-*-* case; always set gdb_target to s390.
9121 * regformats/reg-s390.dat: Remove control registers.
9122 * regformats/reg-s390x.dat: Likewise.
9123 * s390-tdep.h: New file.
9124 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
9125 Include "inferior.h" and "s390-tdep.h".
9126 Remove private definition of offsetof.
9127 (s390_register_u_addr): Remove.
9128 (regmap_gregset, regmap_fpregset): Define.
9129 (supply_gregset, fill_gregset): Reimplement.
9130 (supply_fpregset, fill_fpregset): Likewise.
9131 (s390_inferior_tid): New function.
9132 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
9133 (fetch_inferior_registers, store_inferior_registers): Likewise.
9134 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
9135 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
9136 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
9137 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
9138 (struct gdbarch_tdep): Define.
9139 (struct s390_register_info): Define.
9140 (s390_register_info): New variable.
9141 (s390_register_name): Reimplement.
9142 (s390_register_type): New function.
9143 (s390_register_raw_size, s390x_register_raw_size): Remove.
9144 (s390_cannot_fetch_register): Remove.
9145 (s390_register_byte): Remove.
9146 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
9147 (s390_dwarf_regmap): New variable.
9148 (s390_dwarf_reg_to_regnum): New function.
9149 (s390_stab_reg_to_regnum): Remove.
9150 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
9151 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9152 (s390_convert_register_p): Likewise.
9153 (s390_register_to_value, s390_value_to_register): Likewise.
9154 (s390_register_reggroup_p): Likewise.
9155 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9156 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9157 (s390_supply_regset, s390_regset_from_core_section): New functions.
9158 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9159 (S390_FPR_SIZE): Likewise.
9160 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9161 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9162 (S390_NUM_GPRS): Move here from tm-s390.h.
9163 (S390_NUM_FPRS): Likewise.
9164 (s390_in_function_epilogue_p): New function.
9165 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9166 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9167 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9168 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9169 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9170 Remove calls to:
9171 set_gdbarch_deprecated_max_register_raw_size,
9172 set_gdbarch_deprecated_max_register_virtual_size,
9173 set_gdbarch_deprecated_register_byte,
9174 set_gdbarch_cannot_fetch_register,
9175 set_gdbarch_cannot_store_register,
9176 set_gdbarch_deprecated_register_size,
9177 set_gdbarch_deprecated_register_raw_size,
9178 set_gdbarch_deprecated_register_virtual_size,
9179 set_gdbarch_deprecated_register_virtual_type,
9180 set_gdbarch_deprecated_register_bytes.
9181 Add calls to:
9182 set_gdbarch_num_pseudo_regs,
9183 set_gdbarch_register_type,
9184 set_gdbarch_convert_register_p,
9185 set_gdbarch_register_to_value,
9186 set_gdbarch_value_to_register,
9187 set_gdbarch_register_reggroup_p,
9188 set_gdbarch_regset_from_core_section,
9189 set_gdbarch_pseudo_register_read,
9190 set_gdbarch_pseudo_register_write,
9191 set_gdbarch_in_function_epilogue_p.
9192 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9193 (s390_tdep_h): New variable.
9194
9195 2004-02-17 Jim Blandy <jimb@redhat.com>
9196
9197 * findvar.c (value_from_register): If the type has no length, just
9198 return an acceptable value --- don't report an internal error.
9199
9200 * stabsread.c (read_type): If we find any type numbers that are
9201 forward references, complain if the references aren't resolved by
9202 the time we're finished reading.
9203 (cleanup_undefined_types): Make error message more appropriate for
9204 a complaint.
9205
9206 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9207
9208 * Makefile.in (defs_h): Remove dependency on progress_h.
9209 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
9210 progress.h.
9211 * main.c (captured_main): Delete use of START_PROGRESS and
9212 END_PROGRESS.
9213
9214 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9215
9216 * objfiles.c (terminate_minimal_symbol_table): Add back
9217 initialization of MSYMBOL_TYPE.
9218
9219 2004-02-17 David Mosberger <davidm@hpl.hp.com>
9220
9221 Committed by Andrew Cagney.
9222 * Makefile.in (ia64_tdep_h): New macro.
9223 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
9224 (ia64-tdep.o): Likewise.
9225 * ia64-tdep.h: New file.
9226 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
9227 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
9228 (ia64_aix_sigcontext_register_address): Likewise.
9229 (ia64_linux_getunwind_table): Delete declaration.
9230 * ia64-linux-tdep.c: Likewise.
9231
9232 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
9233
9234 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
9235 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
9236 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
9237
9238 2004-02-17 Andrew Cagney <cagney@redhat.com>
9239
9240 * symtab.c (skip_prologue_using_sal): New function.
9241 * symtab.h (skip_prologue_using_sal): Declare.
9242 * frv-tdep.c: Include "symtab.h".
9243 (skip_prologue_using_sal): Delete function.
9244 * mips-tdep.c (skip_prologue_using_sal): Delete function.
9245 * rs6000-tdep.c (refine_prologue_limit): Mention
9246 skip_prologue_using_sal.
9247 * ia64-tdep.c (refine_prologue_limit): Ditto.
9248 * Makefile.in: Update dependencies.
9249
9250 2004-02-16 Andrew Cagney <cagney@redhat.com>
9251
9252 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
9253 START_INFERIOR_TRAPS_EXPECTED.
9254 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
9255 START_INFERIOR_TRAPS_EXPECTED.
9256 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
9257 Delete macro.
9258 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
9259 macro, moved to "nm-osf.h". Update copyright.
9260 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
9261 update copyright.
9262
9263 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
9264 and function replacing FRAMELESS_FUNCTION_INVOCATION.
9265 * blockframe.c (legacy_frameless_look_for_prologue): Rename
9266 frameless_look_for_prologue.
9267 * frame.h (legacy_frameless_look_for_prologue): Rename
9268 frameless_look_for_prologue.
9269 * gdbarch.h, gdbarch.c: Re-generate.
9270 * sh64-tdep.c (sh64_gdbarch_init): Update.
9271 * sh-tdep.c (sh_gdbarch_init): Update.
9272 * s390-tdep.c (s390_gdbarch_init): Update.
9273 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9274 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9275 * m68k-tdep.c (m68k_gdbarch_init): Update.
9276 (delta68_frame_args_address): Update.
9277 * m32r-tdep.c (m32r_gdbarch_init): Update.
9278 * hppa-tdep.c (hppa_gdbarch_init): Update.
9279 * h8300-tdep.c (h8300_gdbarch_init): Update.
9280 * frv-tdep.c (frv_gdbarch_init): Update.
9281 (frv_frameless_function_invocation): Update.
9282 * cris-tdep.c (cris_gdbarch_init): Update.
9283 (cris_frameless_function_invocation): Update.
9284 * avr-tdep.c (avr_gdbarch_init): Update.
9285 * arm-tdep.c (arm_gdbarch_init): Update.
9286 * stack.c (frame_info): Update, call predicate.
9287 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
9288 * frame.c (legacy_get_prev_frame): Update, call predicate..
9289 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
9290 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
9291 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
9292 invocation.
9293 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9294 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9295 * vax-tdep.c (vax_gdbarch_init): Ditto.
9296
9297 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
9298 function.
9299
9300 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
9301
9302 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
9303 initializations.
9304
9305 2004-02-16 Andrew Cagney <cagney@redhat.com>
9306
9307 * tui/tui-windata.c: Include "gdb_string.h".
9308 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
9309 * tui/tui-layout.c, tui/tui-command.c: Ditto.
9310 * Makefile.in: Update dependencies.
9311
9312 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
9313
9314 * Makefile.in (infrun.o): Add $(gdb_assert_h).
9315 * infrun.c: Include "gdb_assert.h".
9316 (singlestep_ptid, saved_singlestep_ptid)
9317 (stepping_past_singlestep_breakpoint): New variables.
9318 (resume): Set singlestep_ptid. Check for singlestep thread
9319 hop.
9320 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
9321 (handle_inferior_event): Handle singlestep thread hop.
9322
9323 2004-02-16 Andrew Cagney <cagney@redhat.com>
9324
9325 * dwarf2-frame.c (dwarf2_frame_ops): New function.
9326 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
9327 (dwarf2_frame_init_reg): Ditto.
9328
9329 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
9330 suggested by Joshua Neuheisel
9331
9332 * configure.in: Always check for curses, including pdcurses.
9333 Warn, instead of error, when no curses are found. Enable TUI when
9334 curses is available.
9335 * configure: Re-generate.
9336
9337 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9338
9339 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
9340 sh_sh4_register_convert_to_virtual.
9341 (sh_register_convert_to_raw): Rename from
9342 sh_sh4_register_convert_to_raw.
9343 (sh_pseudo_register_read): Accomodate above name change.
9344 (sh_pseudo_register_write): Ditto.
9345
9346 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9347
9348 * sh-tdep.c (sh_generic_register_name): Remove.
9349 (sh_gdbarch_init): Use sh_sh_register_name in default case.
9350
9351 2004-02-15 Andrew Cagney <cagney@redhat.com>
9352
9353 * configure.in (build_warnings): Add -Wunused-function.
9354 * configure: Re-generate.
9355
9356 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9357 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9358
9359 * procfs.c (procfs_init_inferior): Assume that
9360 START_INFERIOR_TRAPS_EXPECTED is defined.
9361 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9362 * config/ns32k/tm-nbsd.h: Delete file,
9363 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9364
9365 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9366 * config/vax/tm-vax.h: Delete file.
9367
9368 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9369 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9370 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9371 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9372 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
9373 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9374 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
9375
9376 2004-02-15 Mark Kettenis <kettenis@gnu.org>
9377
9378 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9379 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9380 (struct dwarf2_frame_ops): New.
9381 (dwarf2_frame_default_init_reg): New function, based on
9382 dwarf2_frame_init_reg.
9383 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9384 (dwarf2_frame_init_reg): Call architecture-specific function.
9385 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9386 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9387 instead of dwarf2_frame_data.
9388 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9389 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9390
9391 2004-02-15 Andrew Cagney <cagney@redhat.com>
9392
9393 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9394 register_gdbarch_swap.
9395 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9396 * f-lang.c (_initialize_f_language): Update, use
9397 DEPRECATED_REGISTER_GDBARCH_SWAP.
9398 * remote.c (_initialize_remote): Ditto.
9399 * regcache.c (_initialize_regcache): Ditto.
9400 * parse.c (_initialize_parse): Ditto.
9401 * infrun.c (_initialize_infrun): Ditto.
9402 * mi/mi-main.c (_initialize_mi_main): Ditto.
9403 * gdbtypes.c (_initialize_gdbtypes): Ditto.
9404
9405 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9406 poking .cacheable directly.
9407 * symfile.c (symfile_bfd_open): Ditto.
9408
9409 * Makefile.in: Update all dependencies.
9410
9411 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9412 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9413 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9414 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9415 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
9416
9417 2004-02-14 Andrew Cagney <cagney@redhat.com>
9418
9419 * arch-utils.c (legacy_convert_register_p): Check
9420 DEPRECATED_REGISTER_CONVERTIBLE_P.
9421 * findvar.c (value_of_register): Ditto.
9422
9423 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9424 * gdbarch.h, gdbarch.c: Re-generate.
9425 * arch-utils.c (deprecated_register_convertible_not): Delete.
9426 * arch-utils.h (deprecated_register_convertible_not): Delete.
9427 * mi/mi-main.c (get_register): Update. Update copyright.
9428 * infcmd.c (default_print_registers_info): Update.
9429
9430 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9431 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9432 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
9433 * gdbarch.h, gdbarch.c: Re-generate.
9434 * frame.c (deprecated_get_next_frame_hack): Delete function.
9435 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9436 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9437 Update.
9438 * infcall.c (call_function_by_hand): Update.
9439
9440 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
9441
9442 * symfile.c (init_entry_point_info, entry_point_address): Move
9443 from here...
9444 * objfiles.c (init_entry_point_info, entry_point_address):..to
9445 here.
9446 * symfile.h (init_entry_point_info, entry_point_address): Remove
9447 prototypes.
9448 * objfiles.h (init_entry_point_info, entry_point_address):Add
9449 prototypes.
9450 * cris-tdep.c: Remove include of symfile.h. Add include of
9451 objfiles.h.
9452 * infcall.c: Ditto.
9453 * mcore-tdep.c: Ditto.
9454 * mn10300-tdep.c: Ditto.
9455 * sh64-tdep.c: Ditto.
9456 * v850-tdep.c: Ditto.
9457 * arm-tdep.c: Remove include of symfile.h.
9458 * blockframe.c: Ditto.
9459 * coffread.c: Ditto.
9460 * dbxread.c: Ditto.
9461 * dwarf2read.c: Ditto.
9462 * dwarfread.c: Ditto.
9463 * frv-tdep.c: Ditto.
9464 * ia64-tdep.c: Ditto.
9465 * mdebugread.c: Ditto.
9466 * mipsread.c: Ditto.
9467 * rs6000-tdep.c: Ditto.
9468 * s390-tdep.c: Ditto.
9469 * sh-tdep.c: Ditto.
9470 * xstormy16-tdep.c: Ditto.
9471 * gdbarch.sh: Remove include of symfile.h.
9472 * gdbarch.c: Regenerate.
9473 * solib-irix.c (enable_break): Use entry_point_address().
9474 Add comment about include file.
9475 * xcoffread.c: Add comment about include file.
9476 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9477 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9478 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9479 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9480 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9481
9482 2004-02-13 Andrew Cagney <cagney@redhat.com>
9483
9484 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9485 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9486 copyright.
9487 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9488
9489 2004-02-12 Fred Fish <fnf@redhat.com>
9490
9491 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9492 set_gdbarch_store_return_value.
9493
9494 2004-02-12 Andrew Cagney <cagney@redhat.com>
9495
9496 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9497 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9498 (interrupt_query): Ditto.
9499 (ofunc): Delete unused variable.
9500 * cris-tdep.c (cris_abi): Delete unused function.
9501 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9502 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9503 (cris_get_asr_quick_shift_steps): Ditto.
9504 (cris_skip_prologue_frameless_p): Ditto.
9505 * arm-tdep.c (arm_push_return_address): Delete unused function.
9506 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9507 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9508 * s390-tdep.c (s390_function_start): Delete unused function.
9509
9510 2004-02-12 Andrew Cagney <cagney@redhat.com>
9511
9512 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9513 gdbarch.h, gdbarch.c: Re-generate.
9514 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9515 to generic_prologue_frameless_p.
9516 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9517 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9518
9519 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
9520
9521 * mips-linux-tdep.c: Include "frame.h".
9522 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9523 (mips_linux_skip_resolver): New functions.
9524 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9525 and set_gdbarch_in_solib_call_trampoline.
9526 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9527 to after set_gdbarch_in_solib_return_trampoline. Only set the
9528 solib hooks to mips16 functions if the OS ABI is unknown.
9529 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9530 including "config/tm-linux.h".
9531 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9532 * Makefile.in (mips-linux-tdep.o): Update.
9533
9534 2004-02-11 David Carlton <carlton@kealia.com>
9535
9536 * linespec.c (decode_compound): Only look for a class symbol when
9537 considering all but the rightmost component.
9538
9539 2004-02-11 Andrew Cagney <cagney@redhat.com>
9540
9541 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9542 abi code are are separatly grouped.
9543
9544 2004-02-11 Andrew Cagney <cagney@redhat.com>
9545
9546 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9547 * gdbarch.h, gdbarch.c: Re-generate.
9548 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9549 * v850-tdep.c (v850_gdbarch_init): Update.
9550 * sh64-tdep.c (sh64_gdbarch_init): Update.
9551 * sh-tdep.c (sh_gdbarch_init): Update.
9552 * s390-tdep.c (s390_gdbarch_init): Update.
9553 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9554 * mips-tdep.c (mips_gdbarch_init): Update.
9555 * mcore-tdep.c (mcore_gdbarch_init): Update.
9556 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9557 * m32r-tdep.c (m32r_gdbarch_init): Update.
9558 * ia64-tdep.c (ia64_gdbarch_init): Update.
9559 * hppa-tdep.c (hppa_gdbarch_init): Update.
9560 * h8300-tdep.c (h8300_gdbarch_init): Update.
9561 * frv-tdep.c (frv_gdbarch_init): Update.
9562 * d10v-tdep.c (d10v_gdbarch_init): Update.
9563 * cris-tdep.c (cris_gdbarch_init): Update.
9564 * avr-tdep.c (avr_gdbarch_init): Update.
9565 * arm-tdep.c (arm_gdbarch_init): Update.
9566 * alpha-tdep.c (alpha_gdbarch_init): Update.
9567
9568 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
9569
9570 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9571 comma.
9572 (sh_sh4al_dsp_register_name): Ditto.
9573
9574 2004-02-10 Andrew Cagney <cagney@redhat.com>
9575
9576 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9577 (mips_init_frame_pc_first): Delete function.
9578 (mips_frame_saved_pc): Delete function.
9579 (mips_frame_chain): Delete function.
9580 (mips_init_extra_frame_info): Delete function.
9581 (mips_xfer_register): Delete unused variable "reg".
9582 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9583 (mips_n32n64_return_value): Delete unused variable "reg".
9584 (mips_n32n64_return_value): Delete unused variable "pos".
9585 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9586 (mips_o32_return_value): Delete unused variable "pos".
9587 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9588 (mips_print_fp_register): Delete unused variable "namelen"
9589 (mips_print_fp_register): Delete unused variable "flt2"
9590 (get_frame_pointer): Delete function.
9591 (cached_proc_desc): Delete static variable.
9592 (mips_pop_frame): Delete function.
9593 (mips_find_saved_regs): Delete function.
9594 (mips_get_saved_register): Delete function.
9595 (mips_saved_pc_after_call): Delete function.
9596 (SIGFRAME_BASE): Delete macro.
9597 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9598 (SIGFRAME_PC_OFF): Delete macro.
9599 (SIGFRAME_REGSAVE_OFF): Delete macro.
9600 (mips_dump_tdep): Do not print deleted macro definitions.
9601
9602 2004-02-10 Andrew Cagney <cagney@redhat.com>
9603
9604 * Makefile.in (SFILES): Remove explictly listed tui files.
9605 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9606
9607 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
9608
9609 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9610 to use paddr functions to format ia64 addresses and long values.
9611 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9612 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9613 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9614 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9615 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9616
9617 2004-02-10 Andrew Cagney <cagney@redhat.com>
9618
9619 * defs.h: Do not include "tui.h".
9620 * gdb_curses.h: New file.
9621 * tui/tui-hooks.h: New file.
9622 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9623 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9624 (tui_initialize_io): Delete declaration.
9625 (tui_initialize_readline: Delete redundant declaration.
9626 (struct tui_point): Delete definition.
9627 * tui/tui-data.h (struct tui_point): Define.
9628 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9629 * utils.c: Include "tui/tui.h".
9630 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9631 * printcmd.c [TUI]: Include "tui/tui.h".
9632 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9633 * tui/tui-command.c: Include "gdb_curses.h".
9634 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9635 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9636 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9637 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9638 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9639 * Makefile.in: Update all dependencies.
9640 (tui_hooks_h, gdb_curses_h): Define.
9641 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9642
9643 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
9644
9645 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9646 auxf2. Add comments about some other rarely used fields.
9647
9648 2004-02-10 Andrew Cagney <cagney@redhat.com>
9649
9650 * Makefile.in (init.c): Fix script removing duplicates. Problem
9651 reported by Peter Schauer.
9652
9653 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9654
9655 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9656 obstack_specify_allocation.
9657 * objfiles.c (allocate_objfile): Ditto.
9658 * solib-sunos.c (solib_add_common_symbols)
9659 (allocate_rt_common_objfile): Ditto.
9660 * symfile.c (reread_symbols): Ditto.
9661 * gdb_obstack.h: Add comment.
9662
9663 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9664
9665 * linespec.c (decode_line_1, locate_first_half)
9666 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9667 commented out code.
9668
9669 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
9670
9671 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9672 obstack_free.
9673
9674 2004-02-09 Andrew Cagney <cagney@redhat.com>
9675
9676 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9677 fails, try find_pc_section. Fix PR c++/1267.
9678 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9679 instead of find_pc_mapped_section.
9680 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9681 not default to the section containing PC. Fix PR symtab/1519.
9682
9683 2004-02-09 Andrew Cagney <cagney@redhat.com>
9684
9685 * Makefile.in (mips-tdep.o): Update dependencies.
9686 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9687 "trad-frame.h".
9688 (mips_unwind_pc): Return the pseudo PC register.
9689 (mips_unwind_dummy_id): New function.
9690 (mips16_fetch_instruction): New function.
9691 (mips32_fetch_instruction): New function.
9692 (struct mips_frame_cache): Define.
9693 (mips_mdebug_frame_cache): New function.
9694 (mips_mdebug_frame_this_id): New function.
9695 (mips_mdebug_frame_prev_register): New function.
9696 (mips_mdebug_frame_unwind): Define.
9697 (mips_mdebug_frame_sniffer): New function.
9698 (mips_mdebug_frame_base_address): New function.
9699 (mips_mdebug_frame_base): Define.
9700 (mips_mdebug_frame_base_sniffer): New function.
9701 (mips_gdbarch_init): Append unwind and base sniffers. Set
9702 unwind_dummy_id.
9703
9704 2004-02-08 Andrew Cagney <cagney@redhat.com>
9705
9706 * frame.c: Print both the register number and name.
9707
9708 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9709 and a sed into a single sed. Make .c and .o patterns more robust.
9710 (OBS): Delete.
9711 (INIT_FILES): Replace OBS with COMMON_OBS.
9712 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9713
9714 2004-02-08 Mark Kettenis <kettenis@gnu.org>
9715
9716 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9717 the PT_WCOOKIE request.
9718
9719 2004-02-08 Andrew Cagney <cagney@redhat.com>
9720
9721 * mips-tdep.c (mips_unwind_pc): New function.
9722 (mips_gdbarch_init): Set mips_unwind_pc.
9723
9724 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9725 (get_frame_id): Allow the UNKNOWN_FRAME.
9726 (frame_register_unwind, get_frame_type): Ditto.
9727
9728 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9729 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9730 unwind_dummy_id indicates a legacy frame.
9731
9732 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9733 * configure: Re-generate.
9734
9735 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9736 methods.
9737
9738 2004-02-08 Andrew Cagney <cagney@redhat.com>
9739
9740 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9741 makefile macro.
9742 * configure: Re-generate.
9743 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9744 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9745 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9746 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9747 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9748 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9749 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9750 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9751 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9752 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9753
9754 2004-02-07 Andrew Cagney <cagney@redhat.com>
9755
9756 * Makefile.in: Update all dependencies.
9757
9758 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9759 * configure: Re-generate.
9760 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9761 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9762 (COMMON_OBS): Add "main.o" and "annotate.o".
9763 (ANNOTATE_OBS): Delete.
9764 (OBS): Remove ANNOTATE_OBS.
9765 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9766 CONFIG_INITS.
9767 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9768 against CONFIG_OBS and "main.o".
9769 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9770 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9771
9772 * tui/tui-command.c: Include "gdb_string.h", delete register
9773 attribute, use ISO-C function signatures.
9774 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9775 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9776 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9777 * tui/tui.c: Ditto.
9778
9779 * tui/tui-command.c: Change variable and function names to lower
9780 case.
9781 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9782 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9783 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9784 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9785 * tui/tui-winsource.c, tui/tui.c: Ditto.
9786
9787 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9788
9789 * buildsym.c (free_pending_blocks, finish_block)
9790 (record_pending_block, make_blockvector, end_symtab): Replace
9791 symbol_obstack with objfile_obstack.
9792 * coffread.c (process_coff_symbol, coff_read_struct_type)
9793 (coff_read_enum_type): Ditto.
9794 * cp-namespace.c (initialize_namespace_symtab)
9795 (check_one_possible_namespace_symbol): Ditto.
9796 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
9797 (dwarf2_symbol_mark_computed): Ditto.
9798 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9799 * elfread.c (elf_symtab_read): Ditto.
9800 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9801 (hpread_read_enum_type, hpread_read_function_type)
9802 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9803 Ditto.
9804 * jv-lang.c (get_java_class_symtab, add_class_symbol)
9805 (java_link_class_type): Ditto.
9806 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
9807 (new_symbol): Ditto.
9808 * minsyms.c (install_minimal_symbols): Ditto.
9809 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9810 (terminate_minimal_symbol_table): Replace symbol_obstack with
9811 objfile_obstack.
9812 (free_objfile): Remove freeing of symbol_obstack.
9813 * objfiles.h: Remove symbol_obstack field.
9814 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9815 objfile_obstack.
9816 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9817 symbol_obstack.
9818 (solib_add_common_symbols): Replace symbol_obstack with
9819 objfile_obstack.
9820 * somsolib.c (som_solib_add): Ditto.
9821 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9822 (common_block_start, common_block_end): Ditto.
9823 * symfile.c (reread_symbols): Remove freeing and init of
9824 symbol_obstack.
9825 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9826 * symfile.h: Update comment.
9827 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9828 stats printing.
9829 * symtab.c (symbol_set_names): Replace symbol_obstack with
9830 objfile_obstack.
9831 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9832 Update comments.
9833 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9834 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9835 objfile_obstack.
9836
9837 2004-02-07 Andrew Cagney <cagney@redhat.com>
9838
9839 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9840 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9841 fields and variables.
9842 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9843 (m_beInvisible): Delete macro.
9844 * tui/tui-data.h: Fix case case fields and variables.
9845 (m_genWinPtrIsNull): Delete macro.
9846 (tui_win_list): Rename winList.
9847 (TUI_SRC_WIN): Rename srcWin.
9848 (TUI_DISASM_WIN): Rename disassemWin.
9849 (TUI_DATA_WIN): Rename dataWin.
9850 (TUI_CMD_WIN): Rename cmdWin.
9851 (m_genWinPtrNotNull): Delete macro.
9852 (m_winPtrIsNull): Delete macro.
9853 (m_winPtrNotNull): Delete macro.
9854 (tui_win_is_source_type): Replace m_winIsSourceType
9855 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9856 (tui_win_has_locator): Replace m_hasLocator.
9857 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9858 m_setWinHighlightOff.
9859 * tui/tui-data.c: Update references.
9860 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9861 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9862 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9863 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9864 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9865 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9866 * tui/tui-winsource.c, tui/tui.c: Ditto.
9867
9868 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9869
9870 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9871 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9872 StackGhost.
9873
9874 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9875 variable `i6' to `i7'.
9876 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9877
9878 2004-02-07 Andrew Cagney <cagney@redhat.com>
9879
9880 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9881 (TuiPoint, TuiPointPtr): Ditto.
9882 (TuiStatus, TuiStatusPtr): Ditto.
9883 (TuiWinType, TuiWinTypePtr): Ditto.
9884 (struct tui_point): Rename _TuiPoint.
9885 (tui_get_low_disassembly_address): Rename
9886 tuiGetLowDisassemblyAddress.
9887 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9888 (tuiFree): Delete declaration.
9889 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9890 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9891 * tui/tui.c (tuiFree): Delete function.
9892 * cli/cli-cmds.c (disassemble_command): Update references.
9893 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9894 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9895 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9896 * tui/tui-winsource.c: Ditto.
9897
9898 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9899
9900 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9901 coffstab_build_psymtabs, elfstab_build_psymtabs)
9902 (stabsect_build_psymtabs): Replace psymbol_obstack with
9903 objfile_obstack.
9904 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9905 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9906 Ditto.
9907 * dwarfread.c (scan_compilation_units): Ditto.
9908 * elfread.c (elfstab_offset_sections): Ditto.
9909 * hppa-tdep.c (read_unwind_info): Ditto.
9910 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9911 (hpread_end_psymtab): Ditto.
9912 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9913 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9914 Ditto.
9915 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
9916 * objfiles.c (add_to_objfile_sections)
9917 (build_objfile_section_table): Ditto.
9918 (allocate_objfile): Remove init of psymbol_obstack.
9919 (free_objfile): Remove freeing of psymbol_obstack.
9920 * objfiles.h (struct objfile): Remove field
9921 psymbol_obstack. Update comments.
9922 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9923 psymbol_obstack with objfile_obstack.
9924 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9925 psymbol_obstack.
9926 * somread.c (som_symfile_offsets, init_import_symbols)
9927 (init_export_symbols): Replace psymbol_obstack with
9928 objfile_obstack.
9929 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9930 * symfile.c (default_symfile_offsets, syms_from_objfile)
9931 (reread_symbols): Remove freeing and init of psymbol_obstack.
9932 (cashier_psymtab): Update comment.
9933 * symmisc.c (print_objfile_statistics): Don't report stats for
9934 psymbol obstack.
9935 * symtab.h (struct general_symbol_info, struct partial_symtab):
9936 Update comments.
9937 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9938 (xcoff_symfile_offsets): Replace psymbol_obstack with
9939 objfile_obstack.
9940
9941 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9942
9943 * objfiles.h (struct objfile): Add objfile_obstack field.
9944 Remove type_obstack field.
9945
9946 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9947 read_structure_scope read_enumeration, new_symbol): Replace
9948 type_obstack with objfile_obstack.
9949 * dwarfread.c (struct_type, enum_type): Ditto.
9950 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
9951 (lookup_fundamental_type): Ditto.
9952 * gdbtypes.h (TYPE_ALLOC): Ditto.
9953 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9954 (hpread_read_doc_function_type, hpread_read_struct_type)
9955 (fix_static_member_physnames, hpread_read_array_type)
9956 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
9957 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
9958 (java_link_class_type): Ditto.
9959 * mdebugread.c (parse_type): Ditto.
9960 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9961 * solib-sunos.c (solib_add_common_symbols): Ditto.
9962 * stabsread.c (define_symbol, read_type, read_member_functions,
9963 read_cpp_abbrev, read_one_struct_field): Ditto.
9964 * symfile.c (reread_symbols): Ditto.
9965 * symmisc.c (print_objfile_statistics): Ditto.
9966
9967 2004-02-07 Andrew Cagney <cagney@redhat.com>
9968
9969 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9970 (tui_exec_info_content): Rename TuiExecInfoContent.
9971 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9972 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9973 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9974 (TuiList, TuiListPtr): Ditto.
9975 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9976 (TuiDataType, TuiDataTypePtr): Ditto.
9977 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9978 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9979 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9980 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9981 (TuiDataElement, TuiDataElementPtr): Ditto.
9982 (TuiWinElement, TuiWinElementPtr): Ditto.
9983 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9984 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9985 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9986 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9987 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9988 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9989 * tui/tui-command.c, tui/tui-data.c: Update references.
9990 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9991 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9992 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9993 * tui/tui-winsource.c, tui/tui.c: Ditto.
9994
9995 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9996
9997 * dwarf2-frame.h: Update copyright.
9998 (enum dwarf2_frame_reg_rule): New.
9999 (struct dwarf2_frame_state_reg): New.
10000 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10001 * dwarf2-frame.c: Update copyright.
10002 (enum dwarf2_reg_rule): Remove.
10003 (struct dwarf2_frame_state): Remove defenition of `struct
10004 dwarf2_frame_state_reg'.
10005 (read_reg): Call get_frame_arch to get the architecture instead of
10006 using CURRENT_GDBARCH.
10007 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10008 DWARF2_FRAME_.
10009 (dwarf2_frame_init_reg): New function.
10010 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10011 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
10012 initialize the register state. Prefix old `enum dwarf2_reg_rule'
10013 tags with DWARF2_FRAME_.
10014 (dwarf2_frame_prev_register): Call get_frame_arch to get the
10015 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
10016 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10017
10018 2004-02-06 Andrew Cagney <cagney@redhat.com>
10019
10020 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10021 (enum tui_data_type): Rename _TuiDataType.
10022 (struct tui_layout_def): Rename _TuiLayoutDef.
10023 (struct tui_source_element): Rename _TuiSourceElement.
10024 (struct tui_data_element): Rename _TuiDataElement.
10025 (struct tui_command_element): Rename _TuiCommandElement.
10026 (struct tui_locator_element): Rename _TuiLocatorElement.
10027 (union tui_which_element): Define.
10028 (struct tui_win_element): Rename _TuiWinElement.
10029 (struct tui_data_info): Rename _TuiDataInfo.
10030 (struct tui_source_info): Rename _TuiSourceInfo.
10031 (struct tui_command_info): Rename _TuiCommandInfo.
10032 (tui_initialize_static_data): Rename initializeStaticData.
10033 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10034 (tui_alloc_win_info): Rename allocWinInfo.
10035 (tui_init_generic_part): Rename initGenericPart.
10036 (tui_init_win_info): Rename initWinInfo.
10037 (tui_alloc_content): Rename allocContent.
10038 (tui_add_content_elements): Rename addContentElements.
10039 (tui_init_content_element): Rename initContentElement.
10040 (tui_free_window): Rename freeWindow.
10041 (tui_free_win_content): Rename freeWinContent.
10042 (tui_free_data_content): Rename freeDataContent.
10043 (tui_free_all_source_wins_content): Rename
10044 freeAllSourceWinsContent.
10045 (tui_del_window): Rename tuiDelWindow.
10046 (tui_del_data_windows): Rename tuiDelDataWindows.
10047 (tui_partial_win_by_name): Rename partialWinByName.
10048 (tui_win_name): Rename winName.
10049 (tui_current_layout): Rename currentLayout.
10050 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10051 (tui_term_height): Rename termHeight.
10052 (tui_set_term_height_to): Rename setTermHeightTo.
10053 (tui_term_width): Rename termWidth.
10054 (tui_set_term_width_to): Rename setTermWidthTo.
10055 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10056 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10057 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10058 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10059 (tui_source_windows): Rename sourceWindows.
10060 (tui_clear_source_windows): Rename clearSourceWindows.
10061 (tui_clear_source_windows_detail): Rename
10062 clearSourceWindowsDetail.
10063 (tui_clear_win_detail): Rename clearWinDetail.
10064 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10065 (tui_default_tab_len): Rename tuiDefaultTabLen.
10066 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10067 (tui_win_with_focus): Rename tuiWinWithFocus.
10068 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10069 (tui_layout_def): Rename tuiLayoutDef.
10070 (tui_win_resized): Rename tuiWinResized.
10071 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10072 (tui_next_win): Rename tuiNextWin.
10073 (tui_prev_win): Rename tuiPrevWin.
10074 (tui_add_to_source_windows): Rename addToSourceWindows.
10075 * tui/tui-winsource.c, tui/tui-win.c: Update references.
10076 * tui/tui-layout.c, tui/tui-source.c: Ditto.
10077 * tui/tui-stack.c, tui/tui-io.c: Ditto.
10078 * tui/tui.c, tui/tui-data.c: Ditto.
10079 * tui/tui-interp.c, tui/tui-data.c: Ditto.
10080 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
10081
10082 * tui/tui-source.h: Update copyright. Include "tui-data.h".
10083 (struct symtab): Declare.
10084 (tui_set_source_content): Rename tuiSetSourceContent.
10085 (tui_show_symtab_source): Rename tuiShowSource.
10086 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
10087 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
10088 * tui/tui-source.c: Update copyright. Update references.
10089 * tui/tui-win.c, tui/tui-winsource.c: Update references.
10090 * tui/tui-stack.c: Update references.
10091
10092 * tui/tui-win.h: Update copyright. Include "tui-data.h".
10093 (struct tui_win_info): Declare.
10094 (tui_scroll_forward): Rename tuiScrollForward.
10095 (tui_scroll_backward): Rename tuiScrollBackward.
10096 (tui_scroll_left): Rename tuiScrollLeft.
10097 (tui_scroll_right): Rename tuiScrollRight.
10098 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
10099 (tui_resize_all): Rename tuiResizeAll.
10100 (tui_refresh_all_win): Rename tuiRefreshAll.
10101 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
10102 * tui/tui-layout.c, * tui/tui-io.c: Update references.
10103 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
10104 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
10105
10106 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
10107 (tui_erase_data_content): Rename tuiEraseDataContent.
10108 (tui_display_all_data): Rename tuiDisplayAllData.
10109 (tui_check_data_values): Rename tuiCheckDataValues.
10110 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
10111 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
10112 (tui_first_data_element_no_in_line): Rename
10113 tuiFirstDataElementNoInLine.
10114 (tui_delete_data_content_windows): Rename
10115 tuiDeleteDataContentWindows.
10116 (tui_refresh_data_win): Rename tuiRefreshDataWin.
10117 (tui_display_data_from): Rename tuiDisplayDataFrom.
10118 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
10119 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
10120 * tui/tui-win.c, tui/tui-regs.c: Update references.
10121 * tui/tui-layout.c, tui/tui.c: Update references.
10122
10123 * tui/tui-wingeneral.h: Update copyright.
10124 (m_allBeVisible): Delete macro.
10125 (m_allBeInvisible): Delete macro.
10126 (struct tui_gen_win_info): Declare.
10127 (struct tui_win_info): Declare.
10128 (tui_unhighlight_win): Rename unhighlightWin.
10129 (tui_make_visible, tui_make_invisible): Replace makeVisible.
10130 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
10131 (tui_make_window): Rename makeWindow.
10132 (tui_copy_win): Rename copyWin.
10133 (tui_box_win): Rename boxWin.
10134 (tui_highlight_win): Rename highlightWin.
10135 (tui_check_and_display_highlight_if_needed): Rename
10136 checkAndDisplayHighlightIfNeeded.
10137 (tui_refresh_all): Rename refreshAll.
10138 (tui_delete_win): Rename tuiDelwin.
10139 (tui_refresh_win): Rename tuiRefreshWin.
10140 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
10141 (tui_make_visible, tui_make_invisible): New functions.
10142 (tui_make_all_visible, tui_make_all_invisible): New functions.
10143 (make_all_visible): Rename makeAllVisible.
10144 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
10145 * tui/tui-data.c, tui/tui-winsource.c: Update references.
10146 * tui/tui-windata.c, tui/tui-win.c: Update references.
10147 * tui/tui-regs.c, tui/tui-layout.c: Update references.
10148 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
10149
10150 2004-02-06 Mark Kettenis <kettenis@gnu.org>
10151
10152 * proc-api.c (write_with_trace): Initialize local variable to
10153 silence compiler warning.
10154
10155 2004-02-06 Andrew Cagney <cagney@redhat.com>
10156
10157 * tui/tui-source.h: Do not include "defs.h".
10158 (struct tui_win_info): Declare.
10159 (tui_set_source_content_nil): Declare.
10160 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10161 (union tui_line_or_address): Rename _TuiLineOrAddress.
10162 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10163 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10164 (tui_update_source_window_as_is): Rename
10165 tuiUpdateSourceWindowAsIs.
10166 (tui_update_source_windows_with_addr): Rename
10167 tuiUpdateSourceWindowsWithAddr.
10168 (tui_update_source_windows_with_line): Rename
10169 tuiUpdateSourceWindowsWithLine.
10170 (tui_clear_source_content): Rename tuiClearSourceContent.
10171 (tui_erase_source_content): Rename tuiEraseSourceContent.
10172 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10173 (tui_show_source_content): Rename tuiShowSourceContent.
10174 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10175 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10176 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10177 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10178 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10179 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10180 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10181 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10182 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10183 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10184 (struct tui_win_info): Declare.
10185 * tui/tui-stack.c: Update references.
10186 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10187 * tui/tui-win.c, tui/tui-source.c: Ditto.
10188 * tui/tui.c, tui/tui-disasm.c: Ditto.
10189
10190 2004-02-06 Mark Kettenis <kettenis@gnu.org>
10191
10192 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10193 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10194
10195 2004-02-05 Mark Kettenis <kettenis@gnu.org>
10196
10197 * infrun.c (handle_inferior_event): Allow for breakpoint
10198 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10199 and SIGEMT. Update comments.
10200 * NEWS (Revised SPARC target): Mention support for non-executable
10201 stack.
10202
10203 2004-02-04 Mark Kettenis <kettenis@gnu.org>
10204
10205 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10206 * inftarg.c: Update copyright year.
10207 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10208 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10209 (sparc_xfer_wcookie): New function.
10210 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10211 * Makefile.in (sparc-nat.o): Update dependencies.
10212 * config/sparc/nm-nbsd.h: Include "target.h".
10213 (NATIVE_XFER_WCOOKIE): New define.
10214 (sparc_xfer_wcookie): New prototype.
10215
10216 2004-02-04 Andrew Cagney <cagney@redhat.com>
10217
10218 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
10219 SYSCALL_TRAP function.
10220 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
10221
10222 2004-02-04 Andrew Cagney <cagney@redhat.com>
10223 Daniel Jacobowitz <drow@mvista.com>
10224
10225 * objfiles.h: Delete comments refering to inside_entry_func and
10226 DEPRECATED_FRAME_CHAIN_VALID.
10227 * defs.h (inside_entry_func): Update prototype..
10228 * blockframe.c (inside_entry_func): Rename to
10229 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
10230 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
10231
10232 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
10233
10234 * breakpoint.c (struct captured_parse_breakpoint_args): Move
10235 outside of #ifdef SOLIB_ADD region.
10236 (do_restore_lang_radix_cleanup): Ditto.
10237 (resolve_pending_breakpoint): Ditto.
10238
10239 2004-02-03 Andrew Cagney <cagney@redhat.com>
10240
10241 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
10242 (process_note_abi_tag_sections): Delete unused function.
10243 (ia64_read_fp): Delete unused function.
10244 (gdbarch_extract_struct_value_address): Delete declaration.
10245
10246 2004-02-02 Andrew Cagney <cagney@redhat.com>
10247
10248 * vax-tdep.c (vax_frame_chain): Delete call to
10249 deprecated_inside_entry_file.
10250 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
10251
10252 2004-02-02 Mark Kettenis <kettenis@gnu.org>
10253
10254 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
10255 column that's "empty" or "same value" when eliminating REG_RA
10256 rules.
10257
10258 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10259
10260 * NEWS: Add information about new pending breakpoint support.
10261
10262 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10263
10264 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
10265 and pending fields for pending breakpoint support.
10266 * breakpoint.c (breakpoint_enabled): Add check for not pending.
10267 (condition_command): Only parse condition if not a pending
10268 breakpoint.
10269 (print_one_breakpoint): Add support for pending breakpoints.
10270 (describe_other_breakpoints): Add checks to verify we are not
10271 dealing with pending breakpoints.
10272 (check_duplicates): Don't check pending breakpoints.
10273 (set_raw_breakpoint): Initialize pending flag.
10274 (do_restore_lang_radix_cleanup): New cleanup routine.
10275 (resolve_pending_breakpoint): New function.
10276 (re_enable_breakpoints_in_shlibs): Try and resolve any
10277 pending breakpoints via resolve_pending_breakpoint.
10278 (mention): Add pending breakpoint support.
10279 (parse_breakpoint_sals): Add new parameter to pass to
10280 decode_line_1 to indicate silent errors when files or functions
10281 are not found. Change all callers.
10282 (do_captured_parse_breakpoint): New function.
10283 (break_command_1): Change prototype to return an rc value and to
10284 take an optional pending breakpoint pointer. Support creating
10285 a pending breakpoint if a "not found" form of error occurs when
10286 parsing the breakpoint. Also support resolving an existing pending
10287 breakpoint and be silent if the resolution fails.
10288 (create_breakpoints): Change prototype to take pending breakpoint
10289 pointer. When resolving a pending breakpoint, use the new pointer
10290 to provide a conditional or commands added by the end-user.
10291 (delete_breakpoint): Add appropriate check for pending.
10292 (breakpoint_re_set_one): Ditto.
10293 (do_enable_breakpoint): Ditto.
10294
10295 2004-02-02 David Carlton <carlton@kealia.com>
10296
10297 * valops.c (enum oload_classification): New.
10298 (find_overload_match): Break implementation into separate
10299 functions; delete #if 0'd code; look for symbols within
10300 namespaces.
10301 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
10302 (find_oload_champ,oload_method_static,classify_oload_match): New.
10303 * cp-support.h: Add declaration for cp_func_name; update
10304 declaration for make_symbol_overload_list.
10305 * cp-support.c (cp_func_name): New.
10306 (overload_list_add_symbol): Fix comment, use
10307 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
10308 (make_symbol_overload_list): Take a function name and a namespace
10309 instead of a symbol; change implementation.
10310 (make_symbol_overload_list_using): New.
10311 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
10312
10313 2004-02-02 Fred Fish <fnf@redhat.com>
10314
10315 * main.c (gdb_stdtarg): Move definition to group with other
10316 gdb_stdtarg definitions and update copyright years.
10317 * remote-sim.c (gdb_os_write_stderr): Write output to
10318 gdb_stdtargerr stream instead of gdb_stdtarg stream.
10319 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
10320 gdb_stderr stream and update copyright years.
10321
10322 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10323
10324 * Makefile.in (mips-linux-nat.o): Update dependencies.
10325 * mips-linux-nat.c: Include mips-tdep.h.
10326
10327 2004-02-01 Roland McGrath <roland@redhat.com>
10328
10329 * sol-thread.c (sol_thread_xfer_partial): New function.
10330 (init_sol_thread_ops): Use that for to_xfer_partial hook.
10331 (init_sol_core_ops): Likewise.
10332
10333 * procfs.c (procfs_xfer_partial): New function.
10334 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
10335 * Makefile.in (procfs.o): Add $(auxv_h) dep.
10336
10337 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
10338 procfs_xfer_auxv function.
10339
10340 * procfs.c (procfs_make_note_section): If we can read
10341 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
10342 * linux-proc.c (linux_make_note_section): Likewise.
10343
10344 * auxv.h: New file.
10345 * auxv.c: New file.
10346 * Makefile.in (auxv_h): New variable.
10347 (COMMON_OBS): Add auxv.o here.
10348 (auxv.o): New target.
10349
10350 * corelow.c (core_xfer_partial): New function.
10351 (init_core_ops): Use it for core_ops.to_xfer_partial.
10352
10353 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10354 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10355 macro if that is defined.
10356
10357 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10358
10359 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10360 and check the specified thread for each breakpoint.
10361 * breakpoint.h (bpstat_stop_status): Update prototype.
10362 * infrun.c (handle_inferior_event): Update calls to
10363 bpstat_stop_status.
10364
10365 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10366
10367 * Makefile.in (cli-cmds.o): Add $(readline_h).
10368
10369 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10370
10371 * cli/cli-cmds.c: Include readline.h.
10372 (complete_command): Pass the start of the last word to
10373 complete_line.
10374
10375 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10376
10377 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10378 argument, and change first argument to a CORE_ADDR.
10379 * breakpoint.h (bpstat_stop_status): Update prototype.
10380 * infrun.c (adjust_pc_after_break): Add a new comment.
10381 (handle_inferior_event): Update calls to bpstat_stop_status.
10382
10383 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10384
10385 * breakpoint.h: Update copyright years.
10386
10387 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10388
10389 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10390 (bpstat_stop_status): Don't decrement PC.
10391 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10392 prototype.
10393 * infrun.c (adjust_pc_after_break): New function.
10394 (handle_inferior_event): Call it, early. Remove later references
10395 to DECR_PC_AFTER_BREAK.
10396 (normal_stop): Add commentary.
10397
10398 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10399
10400 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10401 2004-01-27 double-free fix.
10402
10403 2004-01-31 Mark Kettenis <kettenis@gnu.org>
10404
10405 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10406 (sparc32_frame_prev_register): Handle StackGhost.
10407 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10408
10409 2004-01-29 Roland McGrath <roland@redhat.com>
10410
10411 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10412 * configure: Regenerated.
10413
10414 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10415 * Makefile.in (procfs.o): Add dep.
10416
10417 2004-01-28 Andrew Cagney <cagney@redhat.com>
10418
10419 * tui/tui-stack.h: Update copyright.
10420 (struct frame_info): Add opaque declaration.
10421 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10422 (tui_show_locator_content): Rename tuiShowLocatorContent.
10423 (tui_show_frame_info): Rename tuiShowFrameInfo.
10424 * tui/tui-stack.c: Update copyright. Update references.
10425 * tui/tui-winsource.c: Update references.
10426 * tui/tui-win.c: Update references.
10427 * tui/tui-layout.c: Update references.
10428 * tui/tui-hooks.c: Update copyright, update references.
10429 * tui/tui.c: Update copyright, update references.
10430 * tui/tui-disasm.c: Update references.
10431
10432 2004-01-28 David Carlton <carlton@kealia.com>
10433
10434 * dwarf2read.c (add_partial_structure): Use demangled name if
10435 namespace equals "".
10436
10437 2004-01-27 Jim Blandy <jimb@redhat.com>
10438
10439 Clean up misapplied patch:
10440 * dwarf2read.c (determine_prefix): Change one of the two forward
10441 declarations for 'determine_prefix_aux' to a declaration for this.
10442 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10443 argument to 'die_specification'.
10444
10445 * dwarf2read.c (read_func_scope): Re-indent comment.
10446
10447 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
10448
10449 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10450 b->exp to NULL after freeing so that error during re-parsing or
10451 evaluation of expressions associated with breakpoint don't
10452 eventually lead to re-freeing of storage.
10453 Committed by Andrew Cagney.
10454
10455 2004-01-27 Andrew Cagney <cagney@redhat.com>
10456
10457 * source.c (ambiguous_line_spec): Delete undefined declaration.
10458 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10459 (m32r_set_server_address, m32r_set_download_path): Ditto.
10460 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10461
10462 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
10463
10464 * dwarf2read.c: Update calls to changed and renamed functions, and
10465 references to moved variables.
10466
10467 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10468 language, language_defn, list_in_scope, and ftypes members.
10469 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10470 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10471 (baseaddr): Remove globals.
10472
10473 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10474 (set_cu_language, die_is_declaration, die_specification)
10475 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10476 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10477 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10478 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10479
10480 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10481 cu.list_in_scope. Don't initialize cu_header_offset.
10482 (add_partial_symbol): Add local baseaddr.
10483 (psymtab_to_symtab_1): Add local baseaddr. Use
10484 objfile->section_offsets for consistency. Don't initialize
10485 cu_header_offset; do initialize cu.header.offset and
10486 cu.list_in_scope.
10487 (read_file_scope, read_func_scope, read_lexical_block_scope)
10488 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10489
10490 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10491
10492 * PROBLEMS: Add gdb/1516.
10493
10494 2003-12-29 Robert Millan <robertmh@gnu.org>
10495
10496 Patch committed by Andrw Cagney.
10497 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10498 * configure.tgt: Match knetbsd*-gnu.
10499
10500 2004-01-26 Andrew Cagney <cagney@redhat.com>
10501
10502 * breakpoint.c (catch_command_1): Delete #ifdef code.
10503 (catch_fork_command_1): Delete #ifdef wrapper.
10504 (catch_exec_command_1): Ditto.
10505 (catch_load_command_1): Ditto.
10506 (catch_unload_command_1): Ditto.
10507
10508 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10509 (catch_breakpoint): Delete #if0ed function.
10510 (disable_catch_breakpoint): Ditto.
10511 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10512 (disable_catch, enable_catch, delete_catch): Ditto.
10513
10514 2004-01-26 Andrew Cagney <cagney@redhat.com>
10515
10516 * remote.c (echo_check, quit_flag): Delete variables.
10517 (cisco_kernel_mode): Delete variable.
10518 (minitelnet_return, tty_input, escape_count): Delete variables.
10519 (remote_cisco_mode): Delete variable.
10520 (remote_cisco_open, remote_cisco_close): Delete function.
10521 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10522 (init_remote_cisco_ops): Delete function.
10523 (_initialize_remote): Do not install "remote cisco" code.
10524 (read_frame): Delete cisco specific code.
10525 (remote_info_process): Delete function.
10526 (remote_wait): Delete cisco specific code.
10527 (remote_cisco_section_offsets): Delete function.
10528 (remote_cisco_objfile_relocate): Delete function.
10529 (remote_async_wait): Delete cisco specific code.
10530 (minitelnet, readtty, readsocket): Delete function.
10531
10532 2004-01-26 Andrew Cagney <cagney@redhat.com>
10533
10534 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10535 comments mentioning extract_returned_value_address.
10536 * infcmd.c (print_return_value): Update. Add comments on
10537 extract_returned_value_address.
10538 * stack.c (return_command): Add comments on
10539 extract_returned_value_address.
10540 * values.c: Update comment.
10541 * m32r-tdep.c: Update comment.
10542 * sparc-tdep.c: Update comment.
10543 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10544 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10545 * sh64-tdep.c (sh64_gdbarch_init): Update.
10546 * sh-tdep.c (sh_gdbarch_init): Update.
10547 * s390-tdep.c (s390_gdbarch_init): Update.
10548 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10549 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10550 * m68k-tdep.c (m68k_gdbarch_init): Update.
10551 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10552 * m32r-tdep.c (m32r_gdbarch_init): Update.
10553 * ia64-tdep.c (ia64_gdbarch_init): Update.
10554 * h8300-tdep.c (h8300_gdbarch_init): Update.
10555 * frv-tdep.c (frv_gdbarch_init): Update.
10556 * arm-tdep.c (arm_gdbarch_init): Update.
10557 * alpha-tdep.c (alpha_gdbarch_init): Update.
10558
10559 2004-01-26 Andrew Cagney <cagney@redhat.com>
10560
10561 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10562 SYMBOL_LOCATION_FUNCS
10563 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10564 "struct symbol_ops".
10565 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10566 type to "struct symbol_ops".
10567 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10568 (struct symbol): Replace ".aux_value.loc.funcs" and
10569 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10570 (SYMBOL_OBJFILE): Delete macro.
10571 (SYMBOL_LOCATION_FUNCS): Delete macro.
10572 (SYMBOL_LOCATION_BATON): Update.
10573 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10574 intead of SYMBOL_LOCATION_FUNCS.
10575 * ax-gdb.c (gen_var_ref): Ditto.
10576 * printcmd.c (address_info): Ditto.
10577 * findvar.c (read_var_value): Ditto.
10578 (symbol_read_needs_frame): Ditto.
10579
10580 2004-01-26 Andrew Cagney <cagney@redhat.com>
10581
10582 * dwarf2read.c (read_func_scope): Document frame-base hack.
10583
10584 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10585
10586 * infcmd.c (print_return_value): Plug memory leak; delete
10587 ui_stream object. Rename argument `structure_return' to
10588 `struct_return'.
10589
10590 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10591
10592 * infcmd.c (print_return_value): Wrap long lines.
10593 (finish_command_continuation, finish_command): Remove unused
10594 variable `funcaddr'. Fix some coding-standards problems.
10595
10596 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
10597 SECT_SIZE is large enough, not whether it's exactly the right size.
10598 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10599 TDEP->fpregset to zero.
10600
10601 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
10602 floating-point registers for traditional NetBSD core files.
10603 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10604 TDEP->sizeof_fpregset here.
10605
10606 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10607
10608 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10609 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10610 function with code split out from
10611 sparc32nbsd_sigcontext_frame_cache.
10612 (sparc32nbsd_sigcontext_frame_cache): Use
10613 sparc32nbsd_sigcontext_saved_regs.
10614 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10615 OpenBSD.
10616 * sparcobsd-tdep.c: New file.
10617 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10618 (sparcobsd-tdep.o): New dependency.
10619 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10620 * config/sparc/obsd.mt: New file.
10621
10622 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10623 TDEP->fpregset to be initialized to enable core file register
10624 sets.
10625
10626 2004-01-24 Mark Kettenis <kettenis@gnu.org>
10627
10628 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
10629 Add opaque declarations.
10630 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10631 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10632 function with code split out from
10633 sparc64nbsd_sigcontext_frame_cache.
10634 (sparc64nbsd_sigcontext_frame_cache): Use
10635 sparc64nbsd_sigcontext_saved_regs.
10636 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10637 OpenBSD.
10638 * sparc64obsd-tdep.c: New file.
10639 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10640 (sparc64obsd-tdep.o): New dependency.
10641 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10642 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10643 * config/sparc/obsd64.mt: New file.
10644
10645 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10646 read the instruction at PC.
10647
10648 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10649 value of GDB_OSABI_DEFAULT.
10650 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10651 instead of GDB_OSABI_NETBSD_AOUT.
10652
10653 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
10654
10655 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10656 copyright.
10657
10658 2004-01-23 Andrew Cagney <cagney@redhat.com>
10659
10660 * printcmd.c (display_command): Replace tui_set_display call with
10661 tui_set_layout_for_display_command.
10662 * tui/tui.h (enum tui_win_type): Define.
10663 (tui_set_layout): Delete declaration.
10664 (tui_set_layout_for_display_command): Rename set_tui_layout.
10665 * tui/tui-data.h (enum tui_layout_type): Define.
10666 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10667 "tui.h".
10668 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10669 (tui_default_win_height): Rename tuiDefaultWinHeight.
10670 (tui_default_win_viewport_height): Rename
10671 tuiDefaultWinViewportHeight.
10672 (tui_set_layout): RenametuiSetLayout.
10673 * tui/tui-layout.c: Update references.
10674 * tui/tui.c: Update references.
10675 * tui/tui-disasm.c: Update references.
10676
10677 2004-01-23 David Carlton <carlton@kealia.com>
10678
10679 Partial workaround for PR c++/1511:
10680 * cp-namespace.c: Include frame.h.
10681 (cp_lookup_transparent_type): New
10682 (cp_lookup_transparent_type_loop): New.
10683 * cp-support.h: Declare cp_lookup_transparent_type.
10684 * symtab.c (basic_lookup_transparent_type): Renamed from
10685 lookup_transparent_type.
10686 (lookup_transparent_type): Replace old body by a call to
10687 current_language->la_lookup_transparent_type.
10688 * symtab.h: Update copyright. Declare
10689 basic_lookup_transparent_type.
10690 * language.h: Update copyright.
10691 (struct language_defn): Add la_lookup_transparent_type.
10692 * language.c: Update copyright.
10693 (unknown_language_defn): Add basic_lookup_transparent_type.
10694 (auto_language_defn): Add basic_lookup_transparent_type.
10695 (local_language_defn): Add basic_lookup_transparent_type.
10696 * ada-lang.c: Update copyright.
10697 (ada_language_defn): Add basic_lookup_transparent_type.
10698 * c-lang.c: Update copyright.
10699 (c_language_defn): Add basic_lookup_transparent_type.
10700 (cplus_language_defn): Add basic_lookup_transparent_type.
10701 (asm_language_defn): Add basic_lookup_transparent_type.
10702 (minimal_language_defn): Add basic_lookup_transparent_type.
10703 * f-lang.c: Update copyright.
10704 (f_language_defn): Add basic_lookup_transparent_type.
10705 * jv-lang.c: Update copyright.
10706 (java_language_defn): Add basic_lookup_transparent_type.
10707 * m2-lang.c: Update copyright.
10708 (m2_language_defn): Add basic_lookup_transparent_type.
10709 * objc-lang.c: Update copyright.
10710 (objc_language_defn): Add basic_lookup_transparent_type.
10711 * p-lang.c: Update copyright.
10712 (p_language_defn): Add basic_lookup_transparent_type.
10713 * scm-lang.c: Update copyright.
10714 (scm_language_defn): Add basic_lookup_transparent_type.
10715 * Makefile.in (cp-namespace.o): Depend on frame.h.
10716
10717 2004-01-23 David Carlton <carlton@kealia.com>
10718
10719 Patch for PR c++/1520:
10720 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10721 properly if we have a specification die.
10722 (determine_prefix_aux): Rename from determine_prefix.
10723 (determine_prefix): Like the old determine_prefix, but never
10724 returns NULL.
10725
10726 2004-01-23 Theodore A. Roth <troth@openavr.org>
10727
10728 * avr-tdep.c: Update copyright.
10729 (avr_iaddr_p): Delete unused function.
10730 (avr_saddr_p): Delete unused function.
10731
10732 2004-01-23 David Carlton <carlton@kealia.com>
10733
10734 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10735 Fix for PR symtab/1534.
10736
10737 2004-01-23 Mark Kettenis <kettenis@gnu.org>
10738
10739 * NEWS (New native configurations): Mention OpenBSD/sparc and
10740 OpenBSD/sparc64.
10741 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10742 * configure.host: Likewise.
10743 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10744 handler for OpenBSD.
10745 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10746
10747 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10748
10749 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10750 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10751
10752 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10753 * cli/cli-cmds.c (shell_escape): Likewise.
10754
10755 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10756 OpenBSD .note.openbsd.ident sections.
10757
10758 2004-01-22 David Carlton <carlton@kealia.com>
10759
10760 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10761 get_scope_pc_bounds.
10762 (read_file_scope): Ditto.
10763 (get_scope_pc_bounds): New function, produced by extracting code
10764 from the above two functions, consolidating it, and adding support
10765 for DW_TAG_namespace.
10766
10767 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10768
10769 * osabi.c (MAX_NOTESZ): New define.
10770 (check_note): New function.
10771 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10772 check_note.
10773
10774 2004-01-21 Roland McGrath <roland@redhat.com>
10775
10776 * MAINTAINERS (write after approval): Add myself.
10777
10778 2004-01-21 Eli Zaretskii <eliz@gnu.org>
10779
10780 * utils.c (init_page_info): Move declarations of `rows' and
10781 `cols' before the __GO32__-specific code. Move the closing brace
10782 outside the #ifdef __GO32__..#endif block.
10783 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10784
10785 2004-01-21 Paul Brook <paul@codesourcery.com>
10786
10787 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10788 BPSTAT_WHAT_CHECK_SHLIBS.
10789
10790 2004-01-21 Paul Brook <paul@codesourcery.com>
10791
10792 * MAINTAINERS: Add myself to write-after-approval.
10793
10794 2004-01-20 Andrew Cagney <cagney@redhat.com>
10795
10796 * ax-gdb.c (print_axs_value): Delete unused function.
10797 * jv-lang.c (java_lookup_type): Delete unused function.
10798 * cli/cli-dump.c (dump_filetype): Delete unused function.
10799 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10800 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10801 (mips_getstring): Delete unused function.
10802 (pmon_insert_breakpoint): Delete #if0ed function.
10803 (PMON_MAX_BP): Delete #if0ed MACRO.
10804 (mips_pmon_bp_info): Delete #if0ed variable.
10805 (pmon_remove_breakpoint): Delete #if0ed function.
10806 * monitor.c (monitor_write_even_block): Delete unused function.
10807 (monitor_write_memory_block): Delete #if0ed code.
10808 * dink32-rom.c (dink32_load): Delete unused function.
10809 (_initialize_dink32_rom): Delete #if0ed code.
10810 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10811
10812 * tui/tui-command.c: Update references.
10813 * tui/tui-io.c: Update references.
10814 * tui/tui-command.h: Update copyright.
10815 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10816
10817 * source.c (ambiguous_line_spec): Delete never-defined function.
10818 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10819 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10820 * cli/cli-cmds.c (validate_comname): Ditto.
10821
10822 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10823 "tui-data.h".
10824 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10825 (tui_show_disassem): Rename tuiShowDisassem.
10826 (tui_show_disassem_and_update_source): Rename
10827 tuiVerticalDisassemScroll.
10828 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10829 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10830 * tui/tui.h: Update copyright.
10831 (enum tui_status): Define.
10832 * tui/tui-data.h (enum tui_scroll_direction): Define.
10833 * tui/tui-disasm.c: Update copyright. Update references.
10834 * tui/tui-winsource.c: Update copyright. Update references.
10835 * tui/tui-win.c: Update references.
10836 * tui/tui-layout.c: Update references.
10837
10838 2004-01-20 Andrew Cagney <cagney@redhat.com>
10839
10840 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10841 sym2 to start of block.
10842
10843 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10844
10845 * MAINTAINERS: Delete mmalloc.
10846 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10847 * NEWS: Mention removal of --with-malloc.
10848 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10849 * config.in: Regenerate.
10850 * configure: Regenerate.
10851 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10852 USE_MMALLOC, MMCHECK_FORCE.
10853 * gdbinit.in: Remove mmalloc.
10854 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10855 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10856 * config/i386/go32.mh: Likewise.
10857 * config/i386/interix.mh: Likewise.
10858 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10859
10860 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10861
10862 * linespec.c (decode_variable, symtab_from_filename): Call
10863 error_silent with error message instead of throwing an exception
10864 directly.
10865 * defs.h (error_silent, error_output_message): Add prototypes.
10866 (catch_exceptions_with_msg): Ditto.
10867 * utils.c (error_silent, error_output_message): New functions.
10868 * top.c (catch_exceptions_with_msg): New function.
10869
10870 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
10871
10872 * mi/mi-cmds.h (enum print_values): Add definition.
10873
10874 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10875 type and value for simple data types and just the name and type
10876 for complex ones, if required.
10877
10878 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10879 children, if required.
10880
10881 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10882
10883 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10884 unused declarations.
10885
10886 2004-01-19 Andrew Cagney <cagney@redhat.com>
10887
10888 * top.h (mapped_symbol_files): Delete declaration.
10889 * main.c (captured_main): Delete option "m" and "mapped".
10890 * objfiles.c (mapped_symbol_files): Delete variable.
10891 * symfile.c (symbol_file_command): Delete mmap code.
10892 (symbol_file_add_with_addrs_or_offsets): Ditto.
10893 (add_symbol_file_command, reread_separate_symbols): Ditto.
10894 * objfiles.h (OBJF_MAPPED): Delete.
10895 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10896 (free_objfile) [USE_MMALLOC]: Ditto.
10897 (open_existing_mapped_file): Delete function.
10898 (open_mapped_file): Delete function.
10899 (map_to_file): Delete function.
10900
10901 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10902
10903 * infrun.c (step_into_function): Account for possible breakpoint
10904 adjustment when computing ``stop_func_start''.
10905
10906 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10907
10908 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10909 the region size against the size of a pointer, not the size of
10910 a register as given by DEPRECATED_REGISTER_SIZE.
10911
10912 2004-01-19 Andrew Cagney <cagney@redhat.com>
10913
10914 * tui/tui-regs.h: Include "tui-data.h".
10915 (tuiFirstRegElementNoInLine): Delete declaration.
10916 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10917 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10918 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10919 (tui_calculate_regs_column_count): Rename
10920 tuiCalculateRegsColumnCount.
10921 (tui_check_register_values): Rename tuiCheckRegisterValues.
10922 (tui_show_registers): Rename tuiShowRegisters.
10923 (tui_display_registers_from_line): Rename
10924 tuiDisplayRegistersFromLine.
10925 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10926 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10927 (tui_first_reg_element_no_inline): Rename
10928 tuiFirstRegElementNoInLine.
10929 * tui/tui-data.h: Update copyright.
10930 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10931 * tui/tui-windata.c: Update copyright, update references.
10932 * tui/tui-regs.c: Update copyright, update references.
10933 * tui/tui-win.c: Update copyright, update references.
10934 * tui/tui-layout.c: Update copyright, update references.
10935
10936 2004-01-18 Andrew Cagney <cagney@redhat.com>
10937
10938 * tui/tui-io.c: Update copyright.
10939 (key_is_end_sequence, key_is_backspace): New functions.
10940 (key_is_command_char, key_is_start_sequence): New function.
10941 (tui_getc): Update references.
10942 * tui/tui-io.h: Update copyright.
10943 (m_tuiStartNewLine): Delete macro.
10944 (m_isBackspace, m_isDeleteChar): Delete macros.
10945 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10946 (m_isNextPage, m_isPrevPage): Delete macros.
10947 (m_isLeftArrow, m_isRightArrow): Delete macros.
10948 (m_isXdbStyleCommandChar): Delete macro.
10949 (key_is_start_sequence): Declare, replace m_isStartSequence.
10950 (key_is_end_sequence): Declare, replace m_isEndSequence.
10951 (key_is_backspace): Declare ,replace m_isBackspace.
10952 (key_is_command_char): Declare, replace m_isCommandChar.
10953 * tui/tui-command.c: Update copyright.
10954 (tuiDispatchCtrlChar): Update references.
10955
10956 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10957 tuiSourceWin.h.
10958
10959 * tui/tui-command.c: Rename tui/tuiCommand.c.
10960 * tui/tui-command.h: Rename tui/tuiCommand.h.
10961 * tui/tui-data.c: Rename tui/tuiData.c.
10962 * tui/tui-data.h: Rename tui/tuiData.h.
10963 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10964 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10965 * tui/tui-io.c: Rename tui/tuiIO.c.
10966 * tui/tui-io.h: Rename tui/tuiIO.h.
10967 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10968 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10969 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10970 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10971 * tui/tui-source.c: Rename tui/tuiSource.c.
10972 * tui/tui-source.h: Rename tui/tuiSource.h.
10973 * tui/tui-stack.c: Rename tui/tuiStack.c.
10974 * tui/tui-stack.h: Rename tui/tuiStack.h.
10975 * tui/tui-win.c: Rename tui/tuiWin.c.
10976 * tui/tui-win.h: Rename tui/tuiWin.h.
10977 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10978 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10979 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10980 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10981 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10982 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10983 * tui/tui-file.c: Update includes.
10984 * tui/tui-hooks.c: Update includes.
10985 * tui/tui-interp.c: Update includes.
10986 * tui/tui.c: Update includes.
10987 * Makefile.in: Update all tui/ dependencies.
10988 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10989
10990 * Makefile.in: Update copyright. Update dependencies.
10991
10992 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10993 problem.
10994
10995 2004-01-18 Andrew Cagney <cagney@redhat.com>
10996
10997 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10998 instead of register_gdbarch_init.
10999
11000 * remote-sds.c (tohex): Delete unused function. Update copyright.
11001 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11002 * v850-tdep.c (v850_register_virtual_size): Ditto.
11003 * target.c (normal_target_post_startup_inferior): Ditto.
11004 * source.c (ambiguous_line_spec): Ditto.
11005 * remote.c (adapt_remote_get_threadinfo): Ditto.
11006 * mi/mi-out.c (out_field_fmt): Ditto.
11007 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11008 (output_control_change_notification): Ditto.
11009 * m68k-tdep.c (m68k_register_byte): Ditto.
11010 (m68k_remote_breakpoint_from_pc): Ditto.
11011 * ui-out.c (init_ui_out_state): Delete unused declaration.
11012 * stabsread.c (search_value): Ditto.
11013 * mi/mi-cmd-env.c (env_cli_command): Ditto.
11014 * maint.c (print_section_table): Ditto.
11015 * infrun.c (set_follow_fork_mode_command): Ditto.
11016
11017 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11018
11019 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11020 DW_CFA_def_cfa_exporession. Add support for
11021 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11022 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11023
11024 2004-01-18 Andrew Cagney <cagney@redhat.com>
11025
11026 * ocd.c: Update copyright.
11027 (bdm_read_register_command): Delete unused function.
11028 (_initialize_remote_ocd): Delete commented out reference.
11029 (get_quoted_char, reset_packet): Delete #if0ed function.
11030 (output_packet, put_quoted_char): Delete #if0ed function.
11031 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11032 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11033 (BDM_BREAKPOINT): Delete #if0ed macro.
11034 (remote_timeout): Delete #if0ed variable.
11035
11036 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11037
11038 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11039 (core-sol2.o): Remove dependency.
11040 * core-sol2.c: Remove file.
11041
11042 2004-01-17 Andrew Cagney <cagney@redhat.com>
11043
11044 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11045 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11046 enums.
11047
11048 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11049
11050 * remote.c: Update copyright years.
11051
11052 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11053
11054 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11055
11056 2004-01-17 Andrew Cagney <cagney@redhat.com>
11057
11058 * mdebugread.c: Update copyright.
11059 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11060 (parse_type, parse_procedure): Ditto.
11061 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11062
11063 * cris-tdep.c (cris_store_struct_return): Put back accidently
11064 deleted function.
11065
11066 * gdbarch.sh: Update copyright year.
11067 * gdbarch.h, gdbarch.c: Re-generate.
11068
11069 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11070
11071 Suggested by George Anzinger.
11072 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11073 correct stack offset. Include unknown opcode numbers in the error
11074 message.
11075
11076 2004-01-17 Andrew Cagney <cagney@redhat.com>
11077
11078 * x86-64-tdep.c (x86_64_init_abi): No need to clear
11079 extract_struct_value_address, i386 does not set it.
11080 * sparc64-tdep.c (sparc64_init_abi): Do not set
11081 extract_struct_value_address, never called.
11082 (sparc64_extract_struct_value_address): Delete function.
11083 * m68hc11-tdep.c: Update copyright.
11084 (m68hc11_gdbarch_init): Delete redundant assignment of
11085 extract_struct_value_address.
11086 * i386-tdep.c: Update copyright.
11087 (i386_gdbarch_init): Do not set extract_struct_value_address,
11088 never called.
11089 (i386_extract_struct_value_address): Delete function.
11090 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
11091 extract_struct_value_address, never called.
11092 (sparc32_extract_struct_value_address): #if 0 function. Add
11093 comments explaining its future.
11094
11095 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11096
11097 * arm-tdep.c (arm_write_pc): New function.
11098 (arm_gdbarch_init): Call set_gdbarch_write_pc.
11099
11100 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11101
11102 * breakpoint.c (must_shift_inst_regs): Delete.
11103 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
11104 and SHIFT_INST_REGS.
11105 * infcmd.c (step_1, step_1_continuation): Delete references to
11106 SHIFT_INST_REGS.
11107 * infrun.c (keep_going): Likewise.
11108 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
11109 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
11110
11111 2004-01-17 Andrew Cagney <cagney@redhat.com>
11112
11113 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11114 * gdbarch.h, gdbarch.c: Re-generate.
11115 * infcmd.c (print_return_value): Delete reference to
11116 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
11117
11118 * cris-tdep.c (cris_gdbarch_init): Do not set
11119 deprecated_extract_struct_value_address.
11120
11121 * xstormy16-tdep.c: Update copyright.
11122 (xstormy16_extract_struct_value_address): Update to current
11123 extract struct value address interface.
11124 (xstormy16_gdbarch_init): Set extract_struct_value_address.
11125 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
11126 current extract struct value address interface.
11127 (sh64_gdbarch_init): Set extract_struct_value_address.
11128
11129 * cris-tdep.c: Update copyright.
11130 (cris_extract_struct_value_address): Delete function.
11131 (struct_return_address): Delete variable.
11132 (cris_store_struct_return): Do not set struct_return_address.
11133
11134 * mcore-tdep.c: Update copyright.
11135 (mcore_extract_struct_value_address): Delete function. Update
11136 comments.
11137 (mcore_gdbarch_init): Update.
11138 * mn10300-tdep.c: Update copyright.
11139 (mn10300_extract_struct_value_address): Delete function.
11140 (mn10300_gdbarch_init): Update.
11141 * v850-tdep.c: Update copyright.
11142 (v850_extract_struct_value_address): Delete.
11143 (v850_gdbarch_init): Update.
11144 * ns32k-tdep.c: Update copyright.
11145 (ns32k_extract_struct_value_address): Delete.
11146 (ns32k_gdbarch_init): Update.
11147 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
11148 (hppa_gdbarch_init): Update.
11149 * vax-tdep.c: Update copyright.
11150 (vax_extract_struct_value_address): Delete.
11151 (vax_gdbarch_init): Update.
11152
11153 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11154 * gdbarch.h, gdbarch.c: Re-generate.
11155 * procfs.c (procfs_fetch_registers): Delete reference to
11156 DEPRECATED_NPC_REGNUM.
11157 (procfs_store_registers): Ditto.
11158 * regcache.c (generic_target_write_pc): Simplify.
11159 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11160
11161 * core-sol2.c (fetch_core_registers): Replace
11162 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11163
11164 * hppa-tdep.c: Update copyright year.
11165 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11166 NPC_REGNUM.
11167 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11168
11169 * mips-tdep.c (mips_write_pc): New function.
11170 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11171 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11172 (mips_find_saved_regs, mips_software_single_step: Ditto.
11173 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11174 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11175
11176 2004-01-17 Andrew Cagney <cagney@redhat.com>
11177
11178 * mips-tdep.c: Re-indent. Group functions by ABI.
11179
11180 2004-01-17 Andrew Cagney <cagney@redhat.com>
11181
11182 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11183 * gdbarch.c: Re-generate.
11184 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11185 DECR_PC_AFTER_BREAK to zero.
11186 * vax-tdep.c (vax_gdbarch_init): Ditto.
11187 * v850-tdep.c (v850_gdbarch_init): Ditto.
11188 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11189 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11190 * sh-tdep.c (sh_gdbarch_init): Ditto.
11191 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11192 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11193 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11194 * mips-tdep.c (mips_gdbarch_init): Ditto.
11195 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11196 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11197 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11198 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11199 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11200 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11201 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11202 * frv-tdep.c (frv_gdbarch_init): Ditto.
11203 * cris-tdep.c (cris_gdbarch_init): Ditto.
11204 * avr-tdep.c (avr_gdbarch_init): Ditto.
11205 * arm-tdep.c (arm_gdbarch_init): Ditto.
11206 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11207
11208 2004-01-17 J. Brobecker <brobecker@gnat.com>
11209
11210 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
11211 Delete, no longer used.
11212 (read_subrange_type): New function, mostly extracted from
11213 read_array_type().
11214 (read_array_type): Replace extracted code by call to
11215 read_subrange_type().
11216 (dwarf2_get_attr_constant_value): New function.
11217 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
11218 (add_partial_symbol): Likewise.
11219 (process_die): Likewise.
11220 (new_symbol): Likewise.
11221 (read_type_die): Likewise.
11222
11223 2004-01-16 Andrew Cagney <cagney@redhat.com>
11224
11225 * symfile.c: Update copyright year.
11226 (compare_symbols): Delete unused function.
11227 * stabsread.c: Update copyright year.
11228 (lrs_general_complaint): Delete unused function.
11229 (ref_search_value): Ditto.
11230 (get_substring): Delete declaration.
11231 * sh64-tdep.c: Update copyright year.
11232 (sh64_get_gdb_regnum): Delete unused function.
11233 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
11234 Delete unused function.
11235
11236 2004-01-17 Mark Kettenis <kettenis@gnu.org>
11237
11238 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
11239 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
11240
11241 2004-01-16 Andrew Cagney <cagney@redhat.com>
11242
11243 Changes from Peter Schauer.
11244 * rs6000-tdep.c: Update copyright year.
11245 (rs6000_push_dummy_call): Update the stack pointer before
11246 accessing the corresponding stack region.
11247 * rs6000-nat.c: Update copyright year.
11248 (set_host_arch): Set "info.abfd" to "exec_bfd".
11249
11250 2004-01-15 Mark Kettenis <kettenis@gnu.org>
11251
11252 * blockframe.c: Update copyright year.
11253 (inside_entry_func): Don't treat a zero PC specially.
11254
11255 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
11256
11257 * gcore.c (gcore_copy_callback): Use paddr_d to print size
11258 variable.
11259 (gcore_create_callback): Ditto. Skip any memory segment that has
11260 no permissions set.
11261
11262 2004-01-14 David Carlton <carlton@kealia.com>
11263
11264 Change symbols for C++ nested types to contain the fully qualified
11265 name, if possible. (At least in the DWARF-2 case.) Partial fix
11266 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
11267 c++/895.
11268 * c-exp.y (qualified_type): Handle types nested within classes.
11269 * cp-namespace.c: Update comments.
11270 (cp_set_block_scope): Delete #if 0.
11271 (cp_lookup_nested_type): Handle types nested within classes.
11272 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
11273 when appropriate.
11274 (add_partial_symbol): Add the name of the enclosing namespace to
11275 types.
11276 (pdi_needs_namespace): New.
11277 (add_partial_namespace): Tweak comment.
11278 (add_partial_structure): New.
11279 (psymtab_to_symtab_1): Initialize processing_current_prefix
11280 here...
11281 (process_die): instead of here.
11282 (read_structure_scope): Try to figure out the name of the class or
11283 namespace that the structure might be defined within.
11284 (read_enumeration): Generate fully-qualified names, if possible.
11285 (read_namespace): Don't set name to NULL.
11286 (die_specification): New.
11287 (new_symbol): Generate fully-qualified names for types.
11288 (read_type_die): Determine appropriate prefix.
11289 (determine_prefix): New.
11290 (typename_concat): New.
11291 (class_name): New.
11292 * valops.c (value_aggregate_elt): Pass NOSIDE to
11293 value_struct_elt_for_reference.
11294 (value_struct_elt_for_reference): Make static, add NOSIDE
11295 parameter, call value_maybe_namespace_elt as a last resort.
11296 (value_namespace_elt): Break out code into
11297 value_maybe_namespace_elt.
11298 (value_maybe_namespace_elt): New.
11299
11300 2004-01-12 Andrew Cagney <cagney@redhat.com>
11301
11302 * mips-tdep.c (mips_convert_register_p): Handle both raw and
11303 cooked floating-point registers.
11304 (mips_gdbarch_init): Set convert_register_p, register_to_value,
11305 and value_to_register.
11306
11307 2004-01-13 Andrew Cagney <cagney@redhat.com>
11308
11309 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
11310 * gdbarch.c: Re-generate.
11311 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11312 FUNCTION_START_OFFSET.
11313 * v850-tdep.c (v850_gdbarch_init): Ditto.
11314 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11315 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11316 * sh-tdep.c (sh_gdbarch_init): Ditto.
11317 * s390-tdep.c (s390_gdbarch_init): Ditto.
11318 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11319 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11320 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11321 * mips-tdep.c (mips_gdbarch_init): Ditto.
11322 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11323 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11324 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11325 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11326 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11327 * i386-tdep.c (i386_gdbarch_init): Ditto.
11328 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11329 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11330 * frv-tdep.c (frv_gdbarch_init): Ditto.
11331 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11332 * cris-tdep.c (cris_gdbarch_init): Ditto.
11333 * avr-tdep.c (avr_gdbarch_init): Ditto.
11334 * arm-tdep.c (arm_gdbarch_init): Ditto.
11335 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11336
11337 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
11338
11339 * infrun.c (follow_fork_mode_ask): Remove.
11340 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
11341 (follow_fork): Simplify and remove internal error for
11342 follow_fork_mode_ask.
11343 (_initialize_infrun): Update "set follow-fork-mode" help text.
11344
11345 2004-01-13 Andrew Cagney <cagney@redhat.com>
11346
11347 * configure.in: Update copyright year.
11348 (build_warnings): Add -Wunused-label.
11349 * configure: Re-generate.
11350
11351 2004-01-12 Andrew Cagney <cagney@redhat.com>
11352
11353 * exec.h (exec_ops): Make "extern".
11354
11355 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11356 the function is void.
11357 (mips_pseudo_register_write): Ditto.
11358
11359 2004-01-12 Andrew Cagney <cagney@redhat.com>
11360
11361 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11362 call. Never defined.
11363 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11364 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11365 (struct sparc_gregset, struct regcache): Ditto.
11366 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11367
11368 2004-01-12 Andrew Cagney <cagney@redhat.com>
11369
11370 * mi/ChangeLog: Delete file. Renamed to ...
11371 * mi/ChangeLog-1999-2003: New file.
11372 * tui/ChangeLog: Delete file. Renamed to ...
11373 * tui/ChangeLog-1998-2003: New file.
11374
11375 2004-01-11 Mark Kettenis <kettenis@gnu.org>
11376
11377 * sparc64nbsd-tdep.c: Include "regset.h".
11378 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11379 Remove variables.
11380 (fetch_core_registers): Remove function.
11381 (sparc64nbsd_core_fns): Remove variable.
11382 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11383 functions.
11384 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11385 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11386 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11387
11388 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11389 sparc_extract_struct_value_address.
11390 (sparc32_gdbarch_init): Set extract_struct_value_address.
11391 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11392 function.
11393 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11394 return_value_on_stack.
11395
11396 * NEWS: Mention that %cs and %ss have been added to the AMD64
11397 configurations
11398
11399 * frame.c: Update copyright year.
11400 (get_prev_frame): Improve comment.
11401
11402 * sparc64fbsd-tdep.c: Include "regset.h".
11403 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11404 Remove variables.
11405 (fetch_core_registers): Remove function.
11406 (sparc64fbsd_core_fns): Remove variable.
11407 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11408 functions.
11409 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11410 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11411 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
11412
11413 * sparcnbsd-tdep.c: Include "regset.h".
11414 (fetch_core_registers): Remove function.
11415 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11416 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11417 functions.
11418 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11419 TDEP->fpregset.
11420 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
11421
11422 * sparc-tdep.h (struct regset): Provide opaque declaration.
11423 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11424 fpregset and sizeof_fpregset members.
11425 * sparc-tdep.c (struct regset): Provide opaque declaration.
11426 (sparc_regset_from_core_section): New function.
11427 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11428 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11429 Set regset_from_core_section when appropriate.
11430
11431 2004-01-10 Mark Kettenis <kettenis@gnu.org>
11432
11433 * x86-64-tdep.c (amd64_non_pod_p): New function.
11434 (amd64_classify_aggregate): Return class memory for non-POD
11435 C++ structure types.
11436
11437 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11438 argument. Use it to reserve a register if necessary.
11439 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11440 amd64_push_arguments.
11441
11442 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11443
11444 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11445 register numbers in comments.
11446 * x86-64-tdep.h: Update copyright year.
11447 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11448 Adjust for addition of %cs and %ss.
11449 * amd64fbsd-nat.c: Update copyright year.
11450 (reg_offset): Add register offsets for %cs and %ss.
11451 * amd64fbsd-tdep.c: Update copyright year.
11452 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11453 (amd64fbsd_sc_reg_offset): Likewise.
11454 * x86-64-linux-nat.c: Update copyright year.
11455 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11456 and %ss.
11457 * amd64nbsd-nat.c: Update copyright year.
11458 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11459 * amd64nbsd-tdep.c: Update copyright year.
11460 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11461 * x86-64-linux-tdep.c: Update copyright year.
11462 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11463 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11464 * regformats/reg-x86-64.dat: Add %cs and %ss.
11465
11466 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11467 variables to prevent long lines. Update comments to reflect
11468 reality.
11469
11470 2004-01-09 David Carlton <carlton@kealia.com>
11471
11472 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11473 * dwarf2read.c (read_namespace): Pull out name-generating code
11474 into namespace_name. Rename previous_namespace to previous_prefix
11475 and processing_current_namespace to processing_current_prefix..
11476 (namespace_name): New function.
11477 (add_partial_symbol): Substitute uses of pdi->name with
11478 actual_name.
11479 * cp-support.h: Rename processing_current_namespace to
11480 processing_current_prefix.
11481 Update copyright year.
11482 * cp-namespace.c: Rename processing_current_namespace to
11483 processing_current_prefix.
11484 Update copyright year.
11485
11486 2004-01-09 Andrew Cagney <cagney@redhat.com>
11487
11488 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11489
11490 2004-01-09 Mark Kettenis <kettenis@gnu.org>
11491
11492 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11493 complaining.
11494 (process_one_symbol): Deal with N_PATCH stabs.
11495
11496 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
11497
11498 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11499 ifdeffed code.
11500 Update copyright year.
11501
11502 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11503
11504 * config/pa/tm-hppa.h: Update extern declarations for
11505 hppa32_hpux_frame_saved_pc_in_sigtramp,
11506 hppa32_hpux_frame_base_before_sigtramp, and
11507 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11508
11509 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11510
11511 * config/pa/tm-hppah.h: Update copyright years.
11512
11513 2004-01-08 Andrew Cagney <cagney@redhat.com>
11514
11515 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11516 (mips_o32_reg_struct_has_addr): Delete function.
11517 (mips_gdbarch_init): Update.
11518 (mips_extract_struct_value_address): Delete function.
11519
11520 2004-01-08 David Mosberger <davidm@hpl.hp.com>
11521
11522 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11523 reality.
11524
11525 2004-01-07 Andrew Cagney <cagney@redhat.com>
11526
11527 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11528 architecture's elf flags (when available).
11529
11530 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11531 FPU to the start, check the MIPS FPU when looking for an old
11532 architecture.
11533 (set_mipsfpu_single_command): Update the architecture.
11534 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11535
11536 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11537 (mips_mask_address_p): Add "tdep" parameter.
11538 (show_mask_address, mips_addr_bits_remove): Update.
11539 (mips_dump_tdep): Update.
11540 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11541 (MIPS_STACK_ARGSIZE): Delete macro.
11542 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11543 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11544 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11545 (mips_dump_tdep): Update.
11546 (MIPS_SAVED_REGSIZE): Delete macro.
11547 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11548 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11549 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11550 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11551 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11552 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11553 (mips_pop_frame, return_value_location): Update.
11554 (mips_n32n64_return_value, mips_dump_tdep): Update.
11555
11556 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11557 MIPS ABI.
11558
11559 * mips-tdep.c: Update copyright.
11560 (mips_gdbarch_init): Merge two code blocks handling the register
11561 name and number layout.
11562
11563 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11564
11565 * tracepoint.c (validate_actionline): Fix segv at EOF
11566
11567 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11568
11569 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11570 properly for static fields.
11571
11572 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
11573 Jason Molenda <jmolenda@apple.com>
11574
11575 * disasm.c: Update copyright to include 2004.
11576 (do_mixed_source_and_assembly): For uiout asm list
11577 and tuple cleanups, initialize to null_cleanup instead of
11578 NULL and do so prior to loop. Only reset when we close off
11579 the tuple/list. Move check for whether to close off the
11580 asm tuple/list to after dump_insns call where it will be run
11581 on each loop iteration.
11582
11583 2004-01-05 Andrew Cagney <cagney@redhat.com>
11584
11585 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11586 should be a switch case and not a label.
11587 * mips-tdep.c (mips32_next_pc): Delete unused labels
11588 "greater_equal_branch" and "less_zero_branch".
11589 * jv-valprint.c (java_print_value_fields): Delete unused label
11590 "flush_it".
11591
11592 * target.c (unpush_target): Only close a target that is in the
11593 target stack.
11594
11595 2004-01-05 Mark Kettenis <kettenis@gnu.org>
11596
11597 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11598 address from [sp + 64] instead of %o2.
11599
11600 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11601 fixes PR backtrace/1476.
11602
11603 2004-01-05 Andrew Cagney <cagney@redhat.com>
11604
11605 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11606 move to start of file.
11607 * i386-tdep.h (struct regcache): Add opaque declaration.
11608 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11609 declaration.
11610 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11611 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11612 * win32-nat.c (fake_create_process): Use ISO C style definition.
11613 * stabsread.c (define_symbol): Delete #ifndef
11614 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11615 stabs_argument_has_addr call, macro never defined.
11616
11617 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11618
11619 * op50-rom.c: Delete.
11620 * w89k-rom.c: Delete.
11621 * Makefile.in: Remove references.
11622
11623 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11624
11625 * x86-64-tdep.c: Update copyright year.
11626 (struct amd64_register_info): Rename from x86_64_register_info.
11627 (amd64_register_info): Rename from x86_64_register_info.
11628 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11629 (amd64_register_name): Rename from x86_64_register_name.
11630 (amd64_register_type): Rename from x86_64_register_type.
11631 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11632 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11633 (amd64_dwarf_reg_to_regnum): Rename from
11634 x86_64_dwarf_reg_to_regnum.
11635 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11636 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11637 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11638 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11639 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11640 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11641 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11642 (amd64_frame_cache): Rename from x86_64_frame_cache.
11643 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11644 (amd64_frame_prev_register): Rename from
11645 x86_64_frame_prev_register.
11646 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11647 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11648 (amd64_sigtramp_frame_cache): Rename from
11649 x86_64_sigtramp_frame_cache.
11650 (amd64_sigtramp_frame_prev_register): Rename from
11651 x86_64_sigtramp_frame_prev_register.
11652 (amd64_sigtramp_frame_unwind): Rename from
11653 x86_64_sigtramp_frame_unwind.
11654 (amd64_sigtramp_frame_sniffer): Rename from
11655 x86_64_sigtramp_frame_sniffer.
11656 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11657 (amd64_frame_base): Rename from x86_64_frame_base.
11658 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11659 (amd64_frame_align): Rename from x86_64_frame_align.
11660 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11661 (amd64_regset_from_core_section): Rename from
11662 x86_64_regset_from_core_section.
11663 (x86_64_init_abi): Update comments.
11664
11665 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
11666
11667 * MAINTAINERS (write after approval): Add myself.
11668
11669 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11670
11671 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11672 `float' arguments.
11673
11674 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11675
11676 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11677 such that it mentions a specific version of GCC that exhibits this
11678 bug.
11679
11680 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11681
11682 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11683 structure that has a single `float' member, store it in %f1 in
11684 addition to %f0.
11685
11686 * sparc-sol2-nat.c: Add missing '\'.
11687
11688 * sparc-tdep.c (sparc32_return_value): New function.
11689 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11690 Remove functions.
11691 (sparc32_gdbarch_init): Set return_value, don't set
11692 extract_return_value, store_return_value, use_struct_convention
11693 and return_value_on_stack.
11694
11695 * sparc-sol2-nat.c: Add missing ')'.
11696
11697 2004-01-03 J. Brobecker <brobecker@gnat.com>
11698
11699 * infrun.c (handle_step_into_function): New function.
11700 (handle_inferior_event): Extract out some code into the new
11701 function above.
11702
11703 2004-01-03 J. Brobecker <brobecker@gnat.com>
11704
11705 * infrun.c (handle_inferior_event): Move the declaration of
11706 real_stop_pc inside the if blocks where it is used.
11707
11708 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11709
11710 * sparc64-tdep.c (sparc64_16_byte_align_p)
11711 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11712 Use check_typedef to get subtypes of structures and unions.
11713 (sparc64_store_return_value): Fix calculation of the appropriate
11714 offset into VALBUF when storing a structure or union.
11715 (sparc64_return_value): New function.
11716 (sparc64_use_struct_convention): Remove function.
11717 (sparc64_init_abi): Set return_value, don't set
11718 extract_return_value, store_return_value and
11719 use_struct_convention.
11720
11721 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
11722
11723 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11724 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11725 gdb/config/alpha/xm-alphaosf.h,
11726 gdb/config/powerpc/tm-ppcle-eabi.h,
11727 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11728 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11729 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11730 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11731 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11732 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11733 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11734 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11735 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11736 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11737 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11738 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11739 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11740 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11741 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11742 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11743 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11744 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11745 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11746 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11747 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11748 Remove lines for .cvsignore files.
11749
11750 2004-01-03 J. Brobecker <brobecker@gnat.com>
11751
11752 * infrun.c: Back out the previous change.
11753
11754 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11755
11756 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11757 sparc-*-sunos4* to the list of REMOVED configurations.
11758
11759 * configure.tgt: Add back sparc-*-vxworks*.
11760 * remote-vxsparc.c: Remove all includes except for "defs.h",
11761 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11762 Include "sparc-tdep.h".
11763 (SPARC_R_G1): New define.
11764 (vxsparc_gregset): New variable.
11765 (ext_format_sparc): Remove extern declaration.
11766 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11767 sparc32_supply_fpregset.
11768 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11769 sparc_collect_rwindow and sparc32_collect_fpregset.
11770 * config/sparc/tm-vxworks.h: New file, based on recently removed
11771 tm-vxsparc.h.
11772 * config/sparc/vxworks.mt: New file, based on recently removed
11773 vxworks.mt.
11774
11775 2004-01-03 J. Brobecker <brobecker@gnat.com>
11776
11777 * infrun.c (handle_step_into_function): New function.
11778 (handle_inferior_event): Extract out some code into the new
11779 function above.
11780
11781 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11782
11783 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11784 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11785 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11786 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11787 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11788 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11789 (sparc_nat_h): New variable.
11790 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11791 (tm-sun4os4.h): Remove dependency.
11792 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11793 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11794 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11795 sparc-tdep.o): Update dependencies.
11796 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11797 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11798 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11799 dependencies.
11800 * configure.host: Remove existing sparc-*-lynxos*,
11801 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11802 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11803 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11804 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11805 triplets.
11806 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11807 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11808 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11809 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11810 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11811 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11812 sparc64-*-solaris2* and sparc64-*-* triplets.
11813 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11814 "symtab.h" and "objfiles.h".
11815 (BIAS): Remove define.
11816 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11817 (X_DISP19): Remove macros.
11818 (sparc_fetch_instruction): Remove function.
11819 (struct gdbarch_tdep): Remove definition.
11820 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11821 (sparc_breakpoint_from_pc): Remove function.
11822 (struct sparc64_frame_cache): Remove definition.
11823 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11824 sparc64_unwind_pc): Remove functions.
11825 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11826 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11827 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11828 (sparc64_frame_cache): Change return type to `struct
11829 sparc_frame_cache *'. Simply call sparc_frame_cache.
11830 (sparc64_frame_this_id, sparc64_frame_prev_register,
11831 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11832 instead of `struct sparc64_frame_cache.
11833 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11834 sparc_analyze_control_transfer, sparc_software_single_step,
11835 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11836 _initialize_sparc64_tdep): Remove functions.
11837 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11838 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11839 macros.
11840 (sparc64_supply_gregset, sparc64_collect_gregset,
11841 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11842 (sparc64_init_abi): New function.
11843 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11844 inclusion guard. Include "sparc-tdep.h".
11845 (BIAS): Define.
11846 (r_tstate_offset, r_fprs_offset): New defines.
11847 (enum sparc_regnum): Remove defenition.
11848 (enum sparc64_regnum): Reformat.
11849 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11850 (sparc64_init_abi, sparc64_supply_gregset,
11851 sparc64_collect_gregset, sparc64_supply_fpregset,
11852 sparc64_collect_fpregset): New prototypes.
11853 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11854 Add extern declarations.
11855 (sparc64_sol2_init_abi): New prototype.
11856 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11857 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11858 prototypes.
11859 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11860 "sparnbsd-nat.h".
11861 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11862 functions.
11863 (_initialize_sparc64fbsd_nat): Remove initialization of
11864 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11865 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
11866 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
11867 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11868 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11869 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11870 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11871 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11872 (sparc64fbsd_r_y_offset): Remove variables.
11873 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11874 Make static and const.
11875 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11876 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11877 functions.
11878 (sparc64fbsd_gregset): New variable.
11879 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11880 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11881 and sparc64_supply_fpregset.
11882 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11883 (sparc64fbsd_sigtramp_frame_this_id)
11884 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11885 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11886 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11887 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11888 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11889 * sparcnbsd-tdep.c: Update copyright year. Include
11890 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11891 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11892 "value.h" and "sparcnbsd-tdep.h".
11893 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11894 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11895 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11896 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11897 defines.
11898 (sparcnbsd_gregset): New variable.
11899 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11900 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11901 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11902 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11903 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11904 variables.
11905 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11906 (sparc32nbsd_sigcontext_frame_this_id)
11907 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11908 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11909 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11910 (sparcnbsd_get_longjmp_target_32,
11911 sparcnbsd_get_longjmp_target_64): Remove functions.
11912 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11913 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11914 sparcnbsd_init_elf): Remove.
11915 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11916 (sparcnbsd_elf_init_abi): New functions.
11917 (_initialize_sparcnbsd_tdep): New prototype.
11918 (_initialize_sparnbsd_tdep): Update.
11919 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11920 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11921 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11922 * config/sparc/linux.mh: Update comment.
11923 (XM_FILE, HOST_IPC): Remove variables.
11924 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11925 sparc-linux-nat.o.
11926 * config/sparc/linux.mt: Update comment.
11927 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11928 * config/sparc/nbsd.mt: Reformat.
11929 * config/sparc/nbsd64.mh: Update comment.
11930 (NATDEPFILES): Add sparc-nat.o.
11931 * config/sparc/nbsd64.mt: Update comment.
11932 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11933 (TM_FILE): Set to tm-nbsd.h.
11934 * config/sparc/nbsdelf.mh: Update comment.
11935 (NATDEPFILES): Add sparc-nat.o.
11936 (XM_FILE): Delete.
11937 * config/sparc/nbsdaout.mh: Update comment.
11938 (NATDEPFILES): Add sparc-nat.o
11939 (XM_FILE): Delete.
11940 * config/sparc/nm-linux.h: Update copyright year. Don't include
11941 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11942 inclusion.
11943 (KERNEL_U_SIZE): Remove define.
11944 (kernel_u_size): Remove prototype.
11945 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11946 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11947 "regcache.h".
11948 (CHILD_PREPARE_TO_STORE): Remove define.
11949 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11950 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11951 sparcnbsd-nat.c: Rewrite files.
11952 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11953 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11954 sparcnbsd-tdep.h: Remove files.
11955 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11956 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11957 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11958 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11959 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11960 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11961 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11962 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11963 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11964 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11965 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11966 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11967 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11968 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11969 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11970 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11971 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11972 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11973 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11974
11975 2004-01-02 Andrew Cagney <cagney@redhat.com>
11976
11977 From 2003-12-18 Kazuhiro Inaoka:
11978 * configure.host: Add m32r-linux target.
11979
11980 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11981
11982 * top.c (print_gdb_version): Update year to 2004.
11983
11984 2004-01-02 Mark Mitchell <mark@codesourcery.com>
11985
11986 * MAINTAINERS: Add myself to the write-after-approval category.
11987
11988 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
11989
11990 From Bernardo Innocenti <bernie@develer.com>:
11991 * configure.tgt: Add uClinux target.
11992
11993 2004-01-02 Andrew Cagney <cagney@redhat.com>
11994
11995 * utils.c (do_my_cleanups): Make static, add forward declaration.
11996 * defs.h (do_my_cleanups): Delete declaration.
11997
11998 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
11999
12000 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12001 bfd/ChangeLog-0203.
12002
12003 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12004
12005 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12006 in <machine/reg.h>.
12007 * configure, config.in: Regenerate.
12008
12009 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12010 tui/ChangeLog-1998-2003.
12011 \f
12012 Local Variables:
12013 mode: change-log
12014 left-margin: 8
12015 fill-column: 74
12016 version-control: never
12017 End:
This page took 0.281021 seconds and 3 git commands to generate.